Skip to content

LayerPlugin ​

对画布中元素图层层级操作封装。

代码位置

up ​

将画布中当前选中的元素向上移动一层。

js
canvasEditor.up()

down ​

将画布中当前选中的元素向下移动一层。

js
canvasEditor.down()

toFront ​

将画布中当前选中的元素移动的最顶层。

js
canvasEditor.toFront()

toBack ​

将画布中当前选中的元素移动的最后一层。

js
canvasEditor.toBack()

Released under the MIT License.