Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zIndex设置询问 #321

Open
amourlemon opened this issue Jan 8, 2025 · 1 comment
Open

zIndex设置询问 #321

amourlemon opened this issue Jan 8, 2025 · 1 comment

Comments

@amourlemon
Copy link

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

@leaferjs
Copy link
Owner

leaferjs commented Jan 9, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants