Replies: 1 comment
-
Here's an example of how to do this: import { Editor, PanZoomTool } from 'js-draw';
import 'js-draw/styles';
const editor = new Editor(document.body);
editor.addToolbar();
const primaryTools = editor.toolController.getPrimaryTools();
const panZoomTool = primaryTools.find(tool => tool instanceof PanZoomTool);
panZoomTool.setEnabled(true); Above:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, how can i select PanZoomTool programmatically. Thank you
Beta Was this translation helpful? Give feedback.
All reactions