fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
28.92k stars 3.5k forks source link

he controlls point is not valid, i can`t scale the size by the controlls points #9875

Closed zerzhier closed 5 months ago

zerzhier commented 5 months ago

Description

image how open the controlls , now the controlls point is not valid, i can`t scale the size by the controlls points

Additional Context

the test code :

zerzhier commented 5 months ago

Demos can operate control points for scaling normally,but i can't

zerzhier commented 5 months ago

找到原因了,new fabric.Canvas('studio-canvas')赋值给ref响应式变量会导致控制点失效,赋值给普通js变量可以正常操作 Found the reason, new fabric Assigning Canvas ('studio Canvas') to a ref responsive variable will cause the control point to fail, while assigning it to a regular JavaScript variable can operate normally