leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

zIndex设置询问

Open amourlemon opened this issue 1 year ago • 1 comments

加入我现在在画布上添加了A, B, C, D, E,五个元素,zIndex分别为1,2,3,4,5如果我想将B元素放置D,E中间,有合适的api直接进行改变吗

amourlemon avatar Jan 08 '25 11:01 amourlemon

目前还没有直接的api,如果不用zIndex,可以直接用addAt(), addBefore()等方法调整顺序

leaferjs avatar Jan 09 '25 01:01 leaferjs