[Libreoffice-commits] online.git: 2 commits - loleaflet/README

Mihai Varga mihai.varga at collabora.com
Mon Sep 7 07:20:43 PDT 2015


 loleaflet/README |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit 12da97f3942631ab646aa162b5430cec54b07673
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Mon Sep 7 16:36:45 2015 +0300

    loleaflet: mention about removePreviewUpdate

diff --git a/loleaflet/README b/loleaflet/README
index 28c240d..cd97f1d 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -97,6 +97,9 @@ Parts (like slides in presentation, or sheets in spreadsheets):
             + options = {autoUpdate: true} - automatically updates the previews
         map.getNumberOfParts()
         map.getCurrentPartNumber()
+        map.removePreviewUpdate(id)
+            + id = the preview's id
+
     - events:
         map.on('updateparts', function (e) {}) where:
             + e.currentPart is the current part
@@ -177,6 +180,8 @@ Writer pages:
               image might be returned in order to keep the original ratio of the document
             + x/y = starting position, where to get the preview from
             + options = {autoUpdate: true} - automatically updates the previews
+        map.removePreviewUpdate(id)
+            + id = the preview's id
 
     - events
         map.on('pagenumberchanged', function (e) {}) where:
commit ee34470c733f0031b22af548f64c3802443a717c
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Mon Sep 7 16:28:10 2015 +0300

    loleaflet: mention about tilepreview event

diff --git a/loleaflet/README b/loleaflet/README
index dbf59a7..28c240d 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -105,6 +105,13 @@ Parts (like slides in presentation, or sheets in spreadsheets):
             + [e.partNames] if present, part names (e.g. sheet names)
         map.on('invalidatepreview', function (e) {})
             + e.id = the preview's id
+        map.on('tilepreview', function (e) {}) where:
+            + e.tile - the preview image
+            + e.id - the preview id
+            + e.width - widht of the image
+            + e.height - height of the image
+            + [e.part] - if the preview is for a part
+            + e.docType
 
 Statusindicator (when the document is loading):
     - events


More information about the Libreoffice-commits mailing list