可以将形状组拖到图层之外,并在 kineticjs 中暂存

Groups of shapes can be dragged outside the layers and stage in kineticjs

本文关键字:并在 kineticjs 图层      更新时间:2023-09-26
形状

组可以拖到KineticJS层和舞台之外,并且会丢失。下面的教程(拖动)在 ie9 中的工作方式不同。http://www.html5canvastutorials.com/labs/html5-canvas-drag-and-drop-resize-and-invert-images/

是的,这是真的...可以将形状拖到其组外。

如果您希望它们包含在组中,则可以在对象上设置dragBoundFunc函数:

http://www.html5canvastutorials.com/kineticjs/html5-canvas-drag-and-drop-shapes-horizontally-or-vertically-tutorial/