Commit Graph
9 Commits
Author SHA1 Message Date
Aditya Bhatt 5108ee6585 Add "about" information to the viewer,
including an attribution line in the title bar
and plugin information in an about dialog.
2013-11-27 19:52:54 +01:00
Friedrich W. H. Kossebau c2a795e668 Update link to repo: now https://github.com/kogmbh/WebODF/ 2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau 508570dab8 Add copy of the AGPL3 to sources (+ add to created zip files) 2013-10-21 17:55:16 +02:00
Aditya Bhatt 374ffc2fbc * Allow annotations to be enabled/disabled via OdfCanvas
* Documentation++
* Enable annotations by default in editor and viewer.
* Detach range in highlighter after use

Also: Annotation handling is broken when annotations overlap. Add TODO for
that.
2013-08-01 16:17:08 +02:00
Aditya Bhatt a12f490e2b Make ODFViewerPlugin.js load webodf.js upon initialization, instead of
hard-linking it in index.html
2013-07-12 11:50:01 +02:00
Aditya Bhatt 48904fcc24 New changes to viewer deemed necessary after writing a PDF plugin:
* Reduced the number of getElementById calls for some often-used elements
* Added canvasContainer.onscroll handling - which will call the onScroll
of the viewer plugin, if present; for example for updating page numbers
or updating the rendering (if we are using lazy loading)
* Added a delayedRefresh() function which starts a timeout to run the
onScroll() function for lazy rendering refresh, but unloads the previous
timeout if delayedRefresh() is called again, so you can resize the
window rapidly as much as you want and as long as you want and the
rendering redraw will only happen 300 milliseconds after you stop doing
that. (In case of ODF, this will still seem butter-smooth and
continuously resizing because it's just CSS scaling, and no canvas
redrawing since the onScroll of ODFViewerPlugin is not defined)
* Added several small fixes suggested by Jos
2013-07-05 13:47:23 +02:00
Aditya Bhatt a932baac8a Make the slideshow flag into a method, and make the logic for displaying
toolbars more clear
2013-07-05 13:47:22 +02:00
Aditya Bhatt 21d92bb0e6 Remove unneeded variables, fix zooming 2013-07-05 13:47:22 +02:00
Aditya Bhatt 9ed4acb905 Refactor and make API
Rename viewer.js to ODFViewerPlugin.js
Add a viewer.js and pull non-odf specific methods into this API from
the ODF plugin

Initialize Viewer with ODFViewerPlugin during window.onload
2013-07-05 13:47:22 +02:00