当 applyMatrix 为 true 时,笔画宽度不会进行缩放
作者: mattheww-skyward创建于 2025年10月15日更新于 2025年10月15日
位置和渐变会被更新,但 strokeWidth 并不会被缩放。示例: https://jsbin.com/qorerohaca/edit?html,output 该线条应该非常宽,而使用 `applyMatrix = false` 后,它的宽度就很大了。我的猜测是,只需要在 Item.transform 中检查 strokeScaling 并更新 strokeWidth 即可,但我对代码并不十分熟悉。
内容来源: paperjs/paper.js