-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Add a zoom feature with actions
- zoomIn: increase the scale by one step
- zoomOut: decrease the scale by one step
- zoomReset: reset the scale to 100%
- zoomWidth: set the scale so that the full width of the image just fits in the window
- zoomPage: set the scale so that the full image fits in the window.
All these actions just need to manipulate a scale variable and call a setScale method so that when drawing the image, it is drawn to the appropriate scale. Note that everything else has to be scaled accordingly: bounding boxes, scroll window preferred size etc.
Both GTE and Layout sub-projects need essentially the same code.
Reactions are currently unavailable