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

[BUG] 重新导入保存到本地的文件, 选中元素时的层级有问题 #65

Closed
web-dahuyou opened this issue Mar 12, 2024 · 0 comments
Assignees

Comments

@web-dahuyou
Copy link
Contributor

Bug Report / 缺陷报告

问题描述 / Describe the bug
正常情况,在新建画布中选中图形元素时,出现的矩形框层级是最高的,但是重新导入之前保存到本地的文件, 再选中元素时的矩形框层级出现问题

复现步骤 / To Reproduce
1、在空白花白中随便画几个图形元素,为了方便观察,几个元素最好有重叠,然后点击 菜单 -> 保存到本地, 假设自动下载的文件名为 xxx.pictode
2、点击 菜单 -> 打开 重新加载刚才保存的 xxx.pictode 文件
3、选中一个图形元素后,出现选中的矩形框
4、你会发现矩形框的层级不在最上层了
5、排查源码发现是导入时 optionLayer 层级初始化问题

期望行为 / Expected behavior
重新导入已保存的文件,重新渲染元素,选中元素后,矩形框层级正常展示

截图 / Screenshots
正常时的状态:
image
层级异常时的状态:
image

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