使用setZoom()
后,Paper.js图像越界,如何将变焦绑定到左上方coordinate (0 , 0),
,以便图像从中缩放? setZoom(85)上的实际结果:
预期的结果,当coordinates (0, 0):
上的图像
我发现,我需要将我的方法添加到paper.js。
setZoomToTopLeft: function (zoom)
{
this.transform(new Matrix().scale(zoom / this.getZoom(),
new Point(0, 0)));
},