summaryrefslogtreecommitdiff
path: root/loleaflet/README
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-08-12 19:16:34 +0300
committerMihai Varga <mihai.varga@collabora.com>2015-08-12 19:16:34 +0300
commite3ae95bfc9b69c6b001bca26994ae2d054de4b21 (patch)
treecc45b9fe39db4ba6c466f70e3b13d9db4c835556 /loleaflet/README
parent6d12b870fb25b9ae5d5404a69dc3c040495c463d (diff)
loleaflet: get numberOfPages/Parts and getCurrentPart/Page mehtods
Diffstat (limited to 'loleaflet/README')
-rw-r--r--loleaflet/README3
1 files changed, 3 insertions, 0 deletions
diff --git a/loleaflet/README b/loleaflet/README
index f201d0c14..9a0eebb07 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -93,6 +93,8 @@ Parts (like slides in presentation, or sheets in spreadsheets):
+ id = the ID of the request so that the response can be identified
+ maxWidth / maxHeight are the desired dimensions of the preview, a smaller
image might be returned in order to keep the original ratio of the document
+ map.getNumberOfParts()
+ map.getCurrentPart()
- events:
map.on('updateparts', function (e) {}) where:
+ e.currentPart is the current part
@@ -151,6 +153,7 @@ Writer pages:
- API:
map.goToPage(page)
map.getNumberOfPages()
+ map.getCurrentPart()
- events
map.on('pagenumberchanged', function (e) {}) where:
+ e.currentPage = the page on which the cursor lies