loleaflet/README                      |    4 +++-
 loleaflet/src/layer/tile/TileLayer.js |    5 +++++
 2 files changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 1254dbd0b1e5d5456f583801598241da02f7d20b
Author: Mihai Varga <[email protected]>
Date:   Fri Aug 7 09:50:50 2015 +0300

    loleaflet: updated README with alltilesloaded event

diff --git a/loleaflet/README b/loleaflet/README
index 67faeeb..2b35a9e 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -101,11 +101,13 @@ Parts (like slides in presentation, or sheets in 
spreadsheets):
 Statusindicator (when the document is loading):
     - events
         map.on('statusindicator', function (e) {}) where:
-            + e.statusType = 'start' | 'setvalue' | 'finish' | 
'loleafletloaded'
+            + e.statusType = 'start' | 'setvalue' | 'finish' | 
'loleafletloaded' | 'alltilesloaded'
             + e.value == a value from 0 to 100 indicating the status
               if the statusType is 'setvalue
             + 'loleafletloaded' is fired when the JS code is initialized and 
the document
                 load request is sent and we're waiting for the tiles
+            + 'alltilesloaded' is fired when all newly requested (empty tiles) 
have been loaded
+                it is not fired during pre-fetching and during editing
 
 Save:
     - API:
commit 4836668c665f79bdec58e662790073bf718d40ea
Author: Mihai Varga <[email protected]>
Date:   Fri Aug 7 09:49:20 2015 +0300

    loleaflet: requestLOKSession event handler

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 64f15b9..774ced8 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -111,6 +111,7 @@ L.TileLayer = L.GridLayer.extend({
                this._map.on('copy', this._onCopy, this);
                this._map.on('zoomend', this._onUpdateCursor, this);
                this._map.on('dragstart', this._onDragStart, this);
+               this._map.on('requestloksession', this._onRequestLOKSession, 
this);
                this._startMarker.on('drag dragend', 
this._onSelectionHandleDrag, this);
                this._endMarker.on('drag dragend', this._onSelectionHandleDrag, 
this);
                this._textArea = this._map._textArea;
@@ -740,6 +741,10 @@ L.TileLayer = L.GridLayer.extend({
 
        _onDragStart: function () {
                this._map.on('moveend', this._updateScrollOffset, this);
+       },
+
+       _onRequestLOKSession: function () {
+               this.sendMessage('requestloksession');
        }
 });
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to