|
2
|
| Greg Combs · 技术社区 · 15 年前 |
|
1
3
另一种选择是 iterate on the points of the path 记下锚点的最左边、最右边、最上面和最下面的坐标,然后根据这些数字计算出原点和大小。
您应该将它包装在一个函数中,并将其命名为
|