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

Preview: Corrupted Multi-Tailed Arrows when saving to SVG/PNG #2400

Closed
Zhirnoff opened this issue Sep 18, 2024 · 3 comments
Closed

Preview: Corrupted Multi-Tailed Arrows when saving to SVG/PNG #2400

Zhirnoff opened this issue Sep 18, 2024 · 3 comments
Assignees
Labels
Bug Cascade reactions MMPK Scope for Pathway reactions, View-only mode, Static images, Custom buttons and Ketcher API changes Priority: High SVG/PNG Bucket: Bugs related to SVG/PNG export

Comments

@Zhirnoff
Copy link
Collaborator

Zhirnoff commented Sep 18, 2024

Summary
Corrupted Multi-Tail Arrows When Saving to SVG/PNG in Ketcher

Steps to Reproduce

  1. Create a structure in Ketcher that includes multi-tail arrows.
  2. Save the structure as an SVG or PNG file.
  3. Observe preview for multi-tail arrows

Expected behavior
The multi-tail arrows should be rendered correctly in the saved SVG/PNG file, maintaining their original appearance.

Actual behavior
When saving as SVG/PNG, the multi-tail arrows appear distorted, resulting in the visual corruption seen in the attached screenshot (with unusual shapes and misaligned elements replacing the arrows).
2024-09-18_12h01_50

Note: When a plus sign is present on canvas, multi-tail arrows display correctly in preview window.
2024-09-18_12h23_29

2024-09-18_12h26_47

Environment details:

  • OS: Windows 11
  • Browser Chrome
  • Version 128.0.6613.120 (Official Build) (64-bit)

Ketcher version
[Version 2.25.0-rc.1]
Indigo version
[Version 1.25.0-dev.1]

Bug found during pre-testing: #2129

@Zhirnoff Zhirnoff added Bug Priority: High SVG/PNG Bucket: Bugs related to SVG/PNG export Cascade reactions MMPK Scope for Pathway reactions, View-only mode, Static images, Custom buttons and Ketcher API changes labels Sep 18, 2024
@Zhirnoff Zhirnoff added this to the Indigo-1.25.0-rc.1 milestone Sep 18, 2024
@ivanmaslow ivanmaslow changed the title Preview: Corrupted Multi-Tail Arrows when saving to SVG/PNG Preview: Corrupted Multi-Tailed Arrows when saving to SVG/PNG Sep 18, 2024
@yauhen-karmyzau
Copy link
Collaborator

Implemented in scope #2237

@Zhirnoff
Copy link
Collaborator Author

Zhirnoff commented Oct 1, 2024

Pre-tested. Multi-tailed Arrows are saved without distortion. SVG is saved as PNG.

2024-10-01_10h34_27
2024-10-01_10h34_34
2024-10-01_10h39_00

Desktop:

  • OS: Windows 11
  • Browser Chrome
  • Version 128.0.6613.120 (Official Build) (64-bit)

Ketcher version
[Version 2.25.0-rc.4]
Indigo version
[Version 1.25.0-dev.2]

@Zhirnoff
Copy link
Collaborator Author

Zhirnoff commented Oct 8, 2024

Tested. Bug fixed. But Multi-Tailed Arrows looks faded. Added bug to 1.25.0-rc.2
2024-10-08_17h10_25
2024-10-08_17h08_41
2024-10-08_17h08_36

Desktop:

  • OS: Windows 11
  • Browser Chrome
  • Version 128.0.6613.120 (Official Build) (64-bit)

Ketcher version
[Version 2.26.0-rc.1]
Indigo version
[Version 1.25.0-rc.1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Cascade reactions MMPK Scope for Pathway reactions, View-only mode, Static images, Custom buttons and Ketcher API changes Priority: High SVG/PNG Bucket: Bugs related to SVG/PNG export
Projects
None yet
Development

No branches or pull requests

3 participants