Jianning Pan
Results
4
comments of
Jianning Pan
参考这两个就能实现 http://fabricjs.com/freedrawing http://fabricjs.com/erasing ![image](https://github.com/nihaojob/vue-fabric-editor/assets/15498988/fc08b467-40aa-4306-ba06-403d4f4528fa) https://www.tinygimp.com/#/edit/
拖拽时是改变的是scaleX和scaleY, fontSize不变。 可以监听object:modified事件,将文本的scaleX和scaleY设回1,fontSize *= scaleX ```javascript const updateTextSize = (obj) => { // obj.target.type.indexOf('text')!=-1 if (obj && obj.action == 'scale' && obj.target && obj.target.type == 'i-text') { let textObj =...
https://www.tinygimp.com/#/edit/ ![image](https://github.com/nihaojob/vue-fabric-editor/assets/15498988/6eab19e9-8030-4fd7-b923-036fc76d452f)