mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
71fd747051
This commit adds full support for a new OpenSeaDragon(OSD) feature - Mirror/Flip. In order to fully support this new feature, the following OSD objects had to be modified: - drawer.js: - navigator - openseadragon - strings - tiledImage - viewer Additionally, a new flip button was created (similar to the existing ones). Flip Logic Whenever the state is flip button is pressed, flip state is toogled, inverting all the controls and displays (the rotation direction is inverted as well). This means that all viewer coordinates (including user inputs) must me inverted too. Summary of modifications - drawer.js: modified _offsetForRotation to invert rotation angle on flipped state. Added a _flip method to scale/mirror canvas context. - navigator.js: adds full flip support and inverts nagivator inputs. - openseadragon.js: new buttons, flip state variable and showFlipControl variable. - strings.js: flip tool help tips. - tiledImage.js: flips the actual drawing canvas. - viewer.js: Added keyboardshortcuts to rotate 90degrees (r/R) and flip image (f/F). flip button state is stored here and flip order is set. The flipped state is stored on viewer object. |
||
---|---|---|
.. | ||
button_grouphover.png | ||
button_hover.png | ||
button_pressed.png | ||
button_rest.png | ||
flip_grouphover.png | ||
flip_hover.png | ||
flip_pressed.png | ||
flip_rest.png | ||
fullpage_grouphover.png | ||
fullpage_hover.png | ||
fullpage_pressed.png | ||
fullpage_rest.png | ||
home_grouphover.png | ||
home_hover.png | ||
home_pressed.png | ||
home_rest.png | ||
next_grouphover.png | ||
next_hover.png | ||
next_pressed.png | ||
next_rest.png | ||
previous_grouphover.png | ||
previous_hover.png | ||
previous_pressed.png | ||
previous_rest.png | ||
rotateleft_grouphover.png | ||
rotateleft_hover.png | ||
rotateleft_pressed.png | ||
rotateleft_rest.png | ||
rotateright_grouphover.png | ||
rotateright_hover.png | ||
rotateright_pressed.png | ||
rotateright_rest.png | ||
zoomin_grouphover.png | ||
zoomin_hover.png | ||
zoomin_pressed.png | ||
zoomin_rest.png | ||
zoomout_grouphover.png | ||
zoomout_hover.png | ||
zoomout_pressed.png | ||
zoomout_rest.png |