-
Notifications
You must be signed in to change notification settings - Fork 186
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
View only mode #4965
Comments
To turn view only mode on\off use the following api call (from code or web console) P.S. do not use |
Tested.
Ketcher version
2024-09-11_16h27_25.mp4
|
* #4965 - Implemented view only mode * #4965 - Updated config types * #4965 - added new option to hotkeys test mock * #4965 - fixed tool reset on view only enabling * #4965 - implemented view only selection, fixed right click and zoom * #4965 - removed linter ignore after constructor changed to useful * #4965 - added help, about and fullscreen to allowlist * #4965 - updated selectable tools in view only mode * #4965 - update editor after view only mode turned off
* #4965 - Implemented view only mode * #4965 - Updated config types * #4965 - added new option to hotkeys test mock * #4965 - fixed tool reset on view only enabling * #4965 - implemented view only selection, fixed right click and zoom * #4965 - removed linter ignore after constructor changed to useful * #4965 - added help, about and fullscreen to allowlist * #4965 - updated selectable tools in view only mode * #4965 - update editor after view only mode turned off
As an Application Administrator, I want the ability to configure Ketcher into a view-only mode so that I can control user interactions and limit modifications to the chemical structures. The view-only mode should be configurable from settings on load and by Ketcher API in runtime.
Acceptance Criteria:
An Application Administrator should be able to configure Ketcher into a view-only mode from settings before web app load.
The Application Administrator should also be able to switch Ketcher into and out of view-only mode in runtime using the Ketcher API.
In view-only mode, all editing tools should be disabled including hotkeys, preventing users from modifying the chemical structures.
The following tools and functions should be enabled:
"Add to Canvas" button should be disabled in the "Open structure" dialog window and "Open as New Project" must be highlighted as default.

When the user is using Ketcher and has any tool selected, switching to View Only mode will automatically reset the selected tool to "Rectangle Selection."
To turn on/turn off option use this command in console with true and false flag: ketcher.editor.options({ viewOnlyMode: true })
Hotkeys whitelist:
The text was updated successfully, but these errors were encountered: