-
Notifications
You must be signed in to change notification settings - Fork 83
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
如果要基于现有源码添加图层(类似z-index)有什么思路上的建议? #4
Comments
目前组件是通过一个数组中的元素顺序来渲染的,最好的做法应该是需要有个面板来显示图层。 |
shape_controls.js 的逻辑应该在这
|
组件添加shapeIndex属性,修改shape_controls.js遍历排序可以实现图层自定义排序
|
是的,这个近期会实现一下。 |
太棒了 |
看了下源码,源码封装的很好,使用中遇到个问题,假设有多张图片或者其他的组件时,鼠标点中哪个组件对应组件就被默认拉到最顶层了,这个不是最优的解决方案,特别是不小心点中了背景图就尴尬了,应该把选择权留个使用者,如果想要对每个组件都可以自由的设置层级顺序,这个思路该从和下手去修改?
The text was updated successfully, but these errors were encountered: