其中item.points是点列表如何求paper.js所画图形的面积?这种写法得到的数值好像是错的?
const oPath = new Path({segments: item.points});
const area = ((oPath.area / (pixelsPerMeter * pixelsPerMeter)) * 1000000).toFixed(5);
其中item.points是点列表如何求paper.js所画图形的面积?这种写法得到的数值好像是错的?
const oPath = new Path({segments: item.points});
const area = ((oPath.area / (pixelsPerMeter * pixelsPerMeter)) * 1000000).toFixed(5);
10 回答11.2k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
3 回答2.3k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决