Skip to content

Ketcher API renderAndRecoordinateStruct crash with text nodes #7025

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

Open
haditariq opened this issue May 5, 2025 · 0 comments
Open

Ketcher API renderAndRecoordinateStruct crash with text nodes #7025

haditariq opened this issue May 5, 2025 · 0 comments

Comments

@haditariq
Copy link

Steps to Reproduce

  1. Add a text node to the canvas
  2. call api renderAndRecoordinateStruct

Code: // await editor._structureDef.editor.editor.renderAndRecoordinateStruct();

Actual behavior
On using the api function, canvas is crashing because it has text-node otherwise API works well.

Expected behavior
Canvas should center the content with everything including text-nodes.

Screenshots

Image
Image

Desktop (please complete the following information):

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

No branches or pull requests

2 participants