Comments (21)
版本更新导致的问题,请重新npm install 和重新下载customiseControls.min.js.、 fabric.min.js文件
当前version 0.1.15
谢谢!
from vue-fabric.
大神,选中时四边操作位样式怎么修改??还有那个组合操作可以实现吗?
from vue-fabric.
更新了版本0.1.7 添加了个方法 setCornerIcons(options) 可以设置操作按钮,
toDataUrl() 方法 返回当前画布的组合图片(base64格式)
from vue-fabric.
大神,如果我想用vue,数据驱动改变toJson()那些数据吗??怎么做到,比如想要改变textbox,fontfamily,linethrough,textalign,fontweight,…………当然,最好都能改。怎么做?
from vue-fabric.
获取对象方法getEditObj() 和 getObjects() 直接修改所获取的Object对象值然后调用renderAll() 重新渲染画布即可
from vue-fabric.
getEditObj();怎么用?还是不太明白,可以直接双向绑定?
from vue-fabric.
请问,重置画布canvas宽高的方法有吗?
from vue-fabric.
或者说是放大缩小整个画布的方法有吗?
from vue-fabric.
<vue-fabric ref="canvas" :width="width" :height="height"></vue-fabric>
这里的宽高你试试改下大小 这里就是画布宽高
from vue-fabric.
请问:怎么知道选中对象是画布内所有元素中的第几个?
from vue-fabric.
更新到最新版本v0.1.19 每个元素创建的时候 options 有个属性id 唯一标识该元素
from vue-fabric.
新版本:创建文本怎么默认有下划线了??
from vue-fabric.
上面一个问题忽视忽视。呵呵。那个双向绑定怎么用您知道吗?
from vue-fabric.
比如你创建一个文字元素到画布 options 包含参数 id="myFont" ,创建完成后 获取所有对象getObjects() 返回的对象数组里面 每个对象都有id 你要改哪个遍历就可以了,获取当前选中对象方法是 getEditObj(), 获取到的对象都是双向绑定的,修改完调用下renderAll()方法即可
from vue-fabric.
还有个问题:我设置:width和:height,数据变动时,canvas宽高变化了,但是canvas外层包的canvas-container还是初始值,是不是需要一个setWidth()函数渲染才能改变?
from vue-fabric.
`` this.$refs.canvas.canvas.setWidth(this.width)
this.$refs.canvas.canvas.setHeight(this.height)
this.$nextTick(() => {
this.$refs.canvas.renderAll()
})
from vue-fabric.
Thank you very much!
from vue-fabric.
getEditObj() 返回当前选中对象,并不在画布上显示,用于编辑当前元素,这个什么情况下再加载出来画布上元素?
from vue-fabric.
我还有个问题呢,那个图片插入能不能插入远程url的图片??
from vue-fabric.
最近有事,回晚了。可以的,可以网络链接图片
from vue-fabric.
按文档安装后fabric is not defined
from vue-fabric.
Related Issues (20)
- 如何做到将组件拖入画布呢 HOT 1
- 希望能支持触摸屏上的touch 鼠标事件还是延迟还高了 HOT 1
- 大佬node-pre-gyp WARN Using request for node-pre-gyp https download gyp ERR! find Python 怎么回事啊 HOT 1
- 一个页面使用两个vue-fabric时候第二个vue-fabric没有渲染成功 HOT 1
- setting crossOrigin: 'anonymous'
- id = canvas的情况下会报错,应该可以屏蔽这个问题 HOT 1
- Mirror working only on image objects HOT 1
- 你好,能支持撤销操作吗,比如前进一步,后退一步 HOT 1
- 增加橡皮擦功能 HOT 1
- createTextbox 如何设置字体?
- 请问这个控制的边框的蓝色要如何去掉
- IText 支持的吗
- 怎么禁止选中图片啊? HOT 1
- this.$refs.canvas.createImage绘制图片时设置top无效
- fabric 4.0.0即将发布,是否有适配计划?
- 支持滚轮缩放、平移吗
- createCircle Stroke colour HOT 5
- not working on vue3
- uniapp中怎么使用vue-fabric
- 使用 this.$refs.canvas.todataurl()只会保存上一次操作的图片
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-fabric.