Diva.js 3.2.0
Changes in Diva.js 3.2.0
New plugins:
- Autoscroll plugin
Sets Diva to automatically scroll in the primary direction (as determined by settings.verticallyOriented) at a changeable rate. See */js/plugins/autoscroll.js for more documentation. Included demo page.
New public methods:
- this.isPageInDOM(pageIndex)
Public wrapper for private "isPageLoaded" function, which checks to see if the HTML element (settings.id + "page-" + pageIndex) exists in the DOM.
- this.getCurrentPageOffset()
Shortcut for this.getPageOffset(this.getCurrentPageIndex()). Returns the offset relative to the parent .diva-outer.
- this.isVerticallyOriented()
Returns settings.verticallyOriented.
- Entirety of autoscroll plugin.
If Diva is instantiated with settings.enableAutoscroll.
Changes to public methods:
- this.getPageIndexForPageXYValues(pageX, pageY)
Functions significantly better. See the Diva 3.1.0 release notes for usage instructions.
- this.highlightOnPages
Functions correctly now.
Changes to events:
- HighlightCompleted
Now passes [pageIndex, filename, pageSelector] to all listening functions.
No methods or parameters have been deprecated with this change.
Other notable changes:
- Updated build script to take in custom location for closure-compiler
- multiDivaController renamed to activeDivaController
This is used to control which Diva pane is currently active for receiving mouse/keyboard events.