Problem with path update 路径更新问题 #9334
Replies: 4 comments 1 reply
-
@asturur @ShaMan123 |
Beta Was this translation helpful? Give feedback.
-
new question! |
Beta Was this translation helpful? Give feedback.
-
This is the same case of the polygon points demo. |
Beta Was this translation helpful? Give feedback.
-
我无法解决toJSON()后的问题,它总是会有偏差,所以我使用原始一点的方法
没有办法的办法,曲线的曲率更新暂时没有更好的方法可以支持toJSON() |
Beta Was this translation helpful? Give feedback.
-
在对path.path数组进行更改时,会出现选择框不更新的情况,导致改变path后对于超出框体的部分无法选择
When changes are made to the path.path array, the selection box will not be updated. As a result, the parts beyond the box cannot be selected after the path is changed
我在这里提出我的解决办法,并希望官方能够尽快给出对于该问题的官方函数或者案例
I propose my solution here, and hope that the official function or case for this problem can be given as soon as possible
这个方法会导致使用toJSON()异常,请查看下方留言!!!!
This method will result in a toJSON() exception, see the comment below at !!!!
我使用如下环境
I use the following environment
path的参数
path options
最初的问题情景
The original problem scenario
结果如下:
results are as follows:
在框体外我无法选中path
I can't select path outside the box
所以我使用了一种取巧的办法:让框体变大到包含曲线的三个重要点
So I used a trick: I made the box large enough to include three important points on the curve
新建一个工具ts
Create a new tool ts
使用这个工具函数
Use this utility function
结果如下:
results are as follows:
我在节点移动中也使用了工具函数
I also used utility functions in node movement
在移动节点时也同样好用
It also works well when moving nodes
最后将path参数中的
//perPixelTargetFind:true
解除注释即可Finally in the path parameter
/ / perPixelTargetFind: true
remove annotation这样就会通过像素来选择path
This will select the path by pixel
Beta Was this translation helpful? Give feedback.
All reactions