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

添加父子节点后重新打开渲染时子节点不在父节点内部 #4541

Open
MrZhang-Wang opened this issue Dec 27, 2024 · 1 comment

Comments

@MrZhang-Wang
Copy link

Describe the bug

在画布中添加了父节点和字节点,这时的子节点是在父节点的内部,保存数据后再重新打开拿已有数据去添加节点,并在节点的position属性赋值父节点和子节点存储的坐标值,但这个时候渲染出来的子节点在父节点外部,当鼠标去点击按下移动任一节点时 ,子节点又回到了父节点内部 图一是根据已有数据渲染 ,图二是任意移动后又恢复的样子
e972e600db3096b4f8078f4538756c7c
cc712d2b2666fe0196247271d5026a55

Your Example Website or App

Steps to Reproduce the Bug or Issue

拖拽子节点进入父节点 然后保存数据 再重新打开根据之前的数据渲染添加节点 接点位置偏移

Expected behavior

parent.addNode后 子节点能够在父节点当中

Screenshots or Videos

image
如上是我的渲染代码

Platform

Windows Chrome131.0.6778.205

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 27, 2024

👋 @MrZhang-Wang

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

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

1 participant