summaryrefslogtreecommitdiff
path: root/loleaflet/README
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-08-03 19:19:38 +0300
committerMihai Varga <mihai.varga@collabora.com>2015-08-03 19:19:38 +0300
commitb38d701b973fa6bf2471973e73a5bf9a1df9f6d9 (patch)
tree3212c608475a9c7b922799633ea52f94a39b9be7 /loleaflet/README
parent6eef93a288b8f280430d4ca96f070d6aadd09c9b (diff)
loleaflet: updated README to reflect new API
Diffstat (limited to 'loleaflet/README')
-rw-r--r--loleaflet/README9
1 files changed, 9 insertions, 0 deletions
diff --git a/loleaflet/README b/loleaflet/README
index c91c0d4e6..1e36a9512 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -135,6 +135,15 @@ Scroll (the following are measured in pixels):
+ e.x = the amount scrolled to the right (or left if negative)
+ e.y = the amount scrolled to the bottom (or top if negative)
+Writer pages:
+ - API:
+ map.goToPage(page)
+ map.getNumberOfPages()
+ - events
+ map.on('pagenumberchanged', function (e) {}) where:
+ + e.currentPage = the page on which the cursor lies
+ + e.pages = number of pages
+ + e.docType = document type, should be 'text'
Contributing
------------