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: When zooming via the Ketcher API, the program reacts to input of values, not from a valid range #4670

Closed
ViktoriaTkacheva opened this issue May 21, 2024 · 1 comment
Labels
Export to SVG/PNG Bucket: Bugs related to SVG/PNG export Macromolecules Priority: Low

Comments

@ViktoriaTkacheva
Copy link
Collaborator

Steps to Reproduce

  1. Switch to the Macro mode
  2. Add any nucleotide on the canvas
    image
  3. In the Console enter ketcher.setZoom(20) (instead of 20 you can substitute any value greater than 4) and press the “Enter” key
  4. In the Console enter ketcher.setZoom(-20) (instead of -20 you can substitute any value less than -4) and press the “Enter” key

Actual behavior
The program reacts to input of values, not from a valid range

image image

Expected behavior
The program reacts to input values only from a valid range (-4, -3, -2, -1, 0, 1, 2, 3, 4)

As per requirements:
• ketcher.setZoom(zoom) - zoom: number (-4, -3, -2, -1, 0, 1, 2, 3, 4)

Desktop (please complete the following information):

  • OS: Windows 10 Pro (version 22H2) x64
  • Browser: Сhrome
  • Version: (124.0.6367.201) x64

Ketcher version 2.21.0-rc.2, Build at 2024-05-20; 11:00:53

Issue found while testing #4539

@AlexeyGirin
Copy link
Collaborator

Not a bug - requirements has been clarified - valid range for zoom parameter: [0.2 ... 4]
If value is out of range - system tooks closed value from range

@AlexeyGirin AlexeyGirin closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
@AlexeyGirin AlexeyGirin removed this from the Ketcher 2.22.0-rc.1 milestone May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Export to SVG/PNG Bucket: Bugs related to SVG/PNG export Macromolecules Priority: Low
Projects
None yet
Development

No branches or pull requests

2 participants