GithubHelp home page GithubHelp logo

Comments (21)

purestart avatar purestart commented on August 24, 2024

版本更新导致的问题,请重新npm install 和重新下载customiseControls.min.js.、 fabric.min.js文件
当前version 0.1.15
谢谢!

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

大神,选中时四边操作位样式怎么修改??还有那个组合操作可以实现吗?

from vue-fabric.

purestart avatar purestart commented on August 24, 2024

更新了版本0.1.7 添加了个方法 setCornerIcons(options) 可以设置操作按钮,
toDataUrl() 方法 返回当前画布的组合图片(base64格式)

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

大神,如果我想用vue,数据驱动改变toJson()那些数据吗??怎么做到,比如想要改变textbox,fontfamily,linethrough,textalign,fontweight,…………当然,最好都能改。怎么做?

from vue-fabric.

purestart avatar purestart commented on August 24, 2024

获取对象方法getEditObj() 和 getObjects() 直接修改所获取的Object对象值然后调用renderAll() 重新渲染画布即可

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

getEditObj();怎么用?还是不太明白,可以直接双向绑定?

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

请问,重置画布canvas宽高的方法有吗?

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

或者说是放大缩小整个画布的方法有吗?

from vue-fabric.

purestart avatar purestart commented on August 24, 2024

<vue-fabric ref="canvas" :width="width" :height="height"></vue-fabric>
这里的宽高你试试改下大小 这里就是画布宽高

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

请问:怎么知道选中对象是画布内所有元素中的第几个?

from vue-fabric.

purestart avatar purestart commented on August 24, 2024

更新到最新版本v0.1.19 每个元素创建的时候 options 有个属性id 唯一标识该元素

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

新版本:创建文本怎么默认有下划线了??

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

上面一个问题忽视忽视。呵呵。那个双向绑定怎么用您知道吗?

from vue-fabric.

purestart avatar purestart commented on August 24, 2024

比如你创建一个文字元素到画布 options 包含参数 id="myFont" ,创建完成后 获取所有对象getObjects() 返回的对象数组里面 每个对象都有id 你要改哪个遍历就可以了,获取当前选中对象方法是 getEditObj(), 获取到的对象都是双向绑定的,修改完调用下renderAll()方法即可

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

还有个问题:我设置:width和:height,数据变动时,canvas宽高变化了,但是canvas外层包的canvas-container还是初始值,是不是需要一个setWidth()函数渲染才能改变?

from vue-fabric.

purestart avatar purestart commented on August 24, 2024

`` this.$refs.canvas.canvas.setWidth(this.width)
this.$refs.canvas.canvas.setHeight(this.height)
this.$nextTick(() => {
this.$refs.canvas.renderAll()
})

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

Thank you very much!

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

getEditObj() 返回当前选中对象,并不在画布上显示,用于编辑当前元素,这个什么情况下再加载出来画布上元素?

from vue-fabric.

happyzhanhan avatar happyzhanhan commented on August 24, 2024

我还有个问题呢,那个图片插入能不能插入远程url的图片??

from vue-fabric.

purestart avatar purestart commented on August 24, 2024

最近有事,回晚了。可以的,可以网络链接图片

from vue-fabric.

hhly avatar hhly commented on August 24, 2024

按文档安装后fabric is not defined

from vue-fabric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.