Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以在用户绘制路径后使用用户输入的值来调整路径的大小。例如设置宽度和高度。
我目前正在使用 JS 函数中的 transform 属性来做到这一点,但是当路径被调整大小时,路径的句柄保持在原始位置,这使得事情变得一团糟。
有任何想法吗?
假设选择了路径:
svgCanvas.changeSelectedAttribute("transform", "scale(0.5, 1)");