- Improve modal opening and closing.
- Remove
build
event. - Rename
built
event toready
. - Fixed a bug of
data-*
attributes setting and getting (#33).
- Added some properties to "event.detail" of the "view" and "viewed" events.
- Fix the issue of hiding wrong element in the "view" method (#19).
- Fix the parameters error on the "url" option when it is a function.
- Added tests.
- Ignored invalid class name.
- Re-render image only when viewed.
- Add more available values to the "title", "toolbar" and "navbar" options.
- Support to toggle the visibility of title, toolbar and navbar between different screen widths.
- Exit fullscreen when stop playing.
- Fixed title not generated bug.
- Added "update" method for update image dynamically.
- Hides title and toolbar on small screen (width < 768px).
- Supports to zoom from event triggering point.
- Optimized "toggle" method.
- Fixed a bug of the index of viewing image.
- Supports 2 modes: "modal" (default), "inline"
- Supports 30 options: "inline", "button", "navbar", "title", "toolbar", "tooltip", "movable", "zoomable", "rotatable", "scalable", "transition", "fullscreen", "keyboard", "interval", "minWidth", "minHeight", "zoomRatio", "minZoomRatio", "maxZoomRatio", "zIndex", "zIndexInline", "url", "build", "built", "show", "shown", "hide", "hidden", "view", "viewed"
- Supports 22 methods: "show", "hide", "view", "prev", "next", "move", "moveTo", "zoom", "zoomTo", "rotate", "rotateTo", "scale", "scaleX", "scaleY", "play", "stop", "full", "exit", "tooltip", "toggle", "reset", "destroy"
- Supports 8 events: "build", "built", "show", "shown", "hide", "hidden", "view", "viewed"