mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
An open-source, web-based viewer for zoomable images, implemented in pure JavaScript.
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. |
||
---|---|---|
.vscode | ||
images | ||
nbproject | ||
psd | ||
src | ||
test | ||
.editorconfig | ||
.eslintrc.hound.json | ||
.eslintrc.json | ||
.gitignore | ||
.hound.yml | ||
.travis.yml | ||
changelog.txt | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
openseadragon.sublime-project | ||
package-lock.json | ||
package.json | ||
README.md |
OpenSeadragon
An open-source, web-based viewer for zoomable images, implemented in pure JavaScript.
See it in action and get started using it at http://openseadragon.github.io/.
Stable Builds
See the GitHub releases page.
Development
If you want to use OpenSeadragon in your own projects, you can find the latest stable build, API documentation, and example code at http://openseadragon.github.io/. If you want to modify OpenSeadragon and/or contribute to its development, read the contributing guide for instructions.
License
OpenSeadragon is released under the New BSD license. For details, see the LICENSE.txt file.