loleaflet/README | 2 loleaflet/reference.html | 604 +++++++++++++++++++++++++-- loleaflet/src/layer/tile/CalcTileLayer.js | 2 loleaflet/src/layer/tile/ImpressTileLayer.js | 4 loleaflet/src/layer/tile/WriterTileLayer.js | 2 5 files changed, 566 insertions(+), 48 deletions(-)
New commits: commit 2e726e4a01953dace5f8e8c6b821f6e97a32ef74 Author: Mihai Varga <[email protected]> Date: Tue Sep 15 19:34:38 2015 +0300 loleaflet: html documentation - mentioned the public events diff --git a/loleaflet/reference.html b/loleaflet/reference.html index ad3879f..e64bfe3 100644 --- a/loleaflet/reference.html +++ b/loleaflet/reference.html @@ -6613,6 +6613,261 @@ map.addControl(new MyControl()); </tr> </table> +<h3 id="updateparts-event">UpdatePartsEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>selectedPart</b></code></td> + <td><code>Number</code></td> + <td>The currently selected part.</td> + </tr> + <tr> + <td><code><b>parts</b></code></td> + <td><code>Number</code></td> + <td>The number of parts in the document.</td> + </tr> + <tr> + <td><code><b>docType</b></code></td> + <td><code><a href="#doctype-values">DocumentTypeValues</a></code></td> + <td>The document type.</td> + </tr> + <tr> + <td><code><b>partNames</b></code></td> + <td><code>String[]</code></td> + <td>If present, an array containing slides' / spreadsheets' names.</td> + </tr> +</table> + +<h3 id="invalidatepreview-event">InvalidatePreviewEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>id</b></code></td> + <td><code>Object</code></td> + <td>Preview's id that needs to be invalidated.</td> + </tr> +</table> + +<h3 id="tilepreview-event">TilePreviewEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>tile</b></code></td> + <td><code>Image</code></td> + <td>The actual preview.</td> + </tr> + <tr> + <td><code><b>id</b></code></td> + <td><code>Object</code></td> + <td>Preview id.</td> + </tr> + <tr> + <td><code><b>width</b></code></td> + <td><code>Number</code></td> + <td>Image width.</td> + </tr> + <tr> + <td><code><b>height</b></code></td> + <td><code>Number</code></td> + <td>Image height.</td> + </tr> + <tr> + <td><code><b>docType</b></code></td> + <td><code><a href="#doctype-values">DocumentTypeValues</a></code></td> + <td>The document type.</td> + </tr> + <tr> + <td><code><b>part</b></code></td> + <td><code>Number</code></td> + <td>If the preview is for a whole part.</td> + </tr> +</table> + +<h3 id="statusindicator-event">StatusIndicatorEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>statusType</b></code></td> + <td><code><a href="#statusindicator-values">StatusIndicatorValues</a></code></td> + <td>Status type.</td> + </tr> + <tr> + <td><code><b>value</b></code></td> + <td><code>Number</code></td> + <td>If present, a number for 0 to 100 represending the loading status.<td> + </tr> +</table> + +<h3 id="docsize-event">DocumentSizeEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>x</b></code></td> + <td><code>Number</code></td> + <td>Document width in pixels.</td> + </tr> + <tr> + <td><code><b>y</b></code></td> + <td><code>Number</code></td> + <td>Document height in pixels.</td> + </tr> +</table> + +<h3 id="updatescrolloffset-event">UpdateScrollOffsetEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>x</b></code></td> + <td><code>Number</code></td> + <td>Difference in pixels between the document's left border and view's left border.</td> + </tr> + <tr> + <td><code><b>y</b></code></td> + <td><code>Number</code></td> + <td>Difference in pixels between the document's top border and view's top border.</td> + </tr> +</table> + +<h3 id="scrollto-event">ScrollToEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>x</b></code></td> + <td><code>Number</code></td> + <td>View's left border position in pixels.</td> + </tr> + <tr> + <td><code><b>y</b></code></td> + <td><code>Number</code></td> + <td>View's top border position in pixels.</td> + </tr> +</table> + +<h3 id="scrollby-event">ScrollByEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>x</b></code></td> + <td><code>Number</code></td> + <td>Scroll right by x pixels, or left if negative.</td> + </tr> + <tr> + <td><code><b>y</b></code></td> + <td><code>Number</code></td> + <td>Scroll down by y pixels, or up if negative.</td> + </tr> +</table> + +<h3 id="pagenumberchanged-event">PageNumberChangedEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>currentPage</b></code></td> + <td><code>Number</code></td> + <td>The current page in the document.</td> + </tr> + <tr> + <td><code><b>pages</b></code></td> + <td><code>Number</code></td> + <td>The number of pages.</td> + </tr> + <tr> + <td><code><b>docType</b></code></td> + <td><code><a href="#doctype-values">DocumentTypeValues</a></code></td> + <td>The document type.</td> + </tr> +</table> + +<h3 id="error-event">ErrorEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>msg</b></code></td> + <td><code>String</code></td> + <td>If present, the error message.</td> + </tr> + <tr> + <td><code><b>cmd</b></code></td> + <td><code>String</code></td> + <td>If present, the server command that caused the error.</td> + </tr> + <tr> + <td><code><b>kind</b></code></td> + <td><code>String</code></td> + <td>If present, the kind of error associated with the command.</td> + </tr> +</table> + +<h3 id="updatetoolbarcommandvalues-event">UpdateToolbarCommandValuesEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>commandName</b></code></td> + <td><code><a href="#toolbarcommand-values">ToolbarCommandValues</a></code></td> + <td>UNO command.</td> + </tr> + <tr> + <td><code><b>commandValues</b></code></td> + <td><code>Object</code></td> + <td>JSON mapping of the possible values.</td> + </tr> +</table> + <h3 id="mouse-event">MouseEvent</h3> <table data-id='events'> @@ -6997,6 +7252,96 @@ map.addControl(new MyControl()); </tr> </table> +<h3 id="doctype-values">DocumentTypeValues</h3> + +<table data-id='values'> + <tr> + <th class="width100">value</th> + <th class="width100">type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>'text'</b></code></td> + <td><code>String</code></td> + <td>Text document, usually handled by Writer.</td> + </tr> + <tr> + <td><code><b>'presentation'</b></code></td> + <td><code>String</code></td> + <td>Text document, usually handled by Impress.</td> + </tr> + <tr> + <td><code><b>'spreadsheet'</b></code></td> + <td><code>String</code></td> + <td>Text document, usually handled by Calc.</td> + </tr> + <tr> + <td><code><b>'drawing'</b></code></td> + <td><code>String</code></td> + <td>Text document, usually handled by Draw.</td> + </tr> + <tr> + <td><code><b>'other'</b></code></td> + <td><code>String</code></td> + <td>Other document type.</td> + </tr> +</table> + +<h3 id="statusindicator-values">StatusIndicatorValues</h3> + +<table data-id='values'> + <tr> + <th class="width100">value</th> + <th class="width100">type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>'start'</b></code></td> + <td><code>String</code></td> + <td>Fired when the progress broadcast is being started.</td> + </tr> + <tr> + <td><code><b>'setvalue'</b></code></td> + <td><code>String</code></td> + <td>Set a value between 0 and 100.</td> + </tr> + <tr> + <td><code><b>'finish'</b></code></td> + <td><code>String</code></td> + <td>The progress is at 100%.</td> + </tr> + <tr> + <td><code><b>'loleafletloaded'</b></code></td> + <td><code>String</code></td> + <td>Fired when the code has been initialized.</td> + </tr> + <tr> + <td><code><b>'alltilesloaded'</b></code></td> + <td><code>String</code></td> + <td>Fired when all empty tiles have been loaded (fired several times).</td> + </tr> +</table> + +<h3 id="toolbarcommand-values">ToolbarCommandValues</h3> + +<table data-id='values'> + <tr> + <th class="width100">value</th> + <th class="width100">type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>'.uno:StyleApply'</b></code></td> + <td><code>String</code></td> + <td>Style related uno command.</td> + </tr> + <tr> + <td><code><b>'.uno:CharFontName'</b></code></td> + <td><code>String</code></td> + <td>Font related uno command.</td> + </tr> +</table> + <h2 id="global">Global Switches</h2> <p>Global switches are created for rare cases and generally make Leaflet to not detect a particular browser feature even if it's there. You need to set the switch as a global variable to <code><span class="literal">true</span></code> <em>before</em> including Leaflet on the page, like this:</p> commit fc5d617737638463c362b4e0e999b8cfd828e37f Author: Mihai Varga <[email protected]> Date: Tue Sep 15 17:53:27 2015 +0300 loleaflet: renamed remaining currentPart to selectedPart diff --git a/loleaflet/README b/loleaflet/README index dade690..4a32d13 100644 --- a/loleaflet/README +++ b/loleaflet/README @@ -105,7 +105,7 @@ Parts (like slides in presentation, or sheets in spreadsheets): - events: map.on('updateparts', function (e) {}) where: - + e.currentPart is the current part + + e.selectedPart is the current part + e.parts == the number of parts that the document has + e.docType == 'text' | 'spreadsheet' | 'presentation' | 'drawing' | 'other' + [e.partNames] if present, part names (e.g. sheet names) diff --git a/loleaflet/reference.html b/loleaflet/reference.html index 8390911..ad3879f 100644 --- a/loleaflet/reference.html +++ b/loleaflet/reference.html @@ -140,6 +140,7 @@ <h4>Misc</h4> <ul> <li><a href="#event-objects">Event objects</a></li> + <li><a href="#object-values">Object values</a></li> <li><a href="#global">global switches</a></li> <li><a href="#noconflict">noConflict</a></li> <li><a href="#version">version</a></li> @@ -158,10 +159,10 @@ <h3 id="map-usage">Usage example</h3> -<pre><code class="javascript">// initialize the map on the "map" div with a given center and zoom +<pre><code class="javascript">// initialize the map on the "map" div with a server and document URL var map = L.map('map', { - center: [51.505, -0.09], - zoom: 13 + doc: 'file:///path/to/document', + server: 'ws://localhost' });</code></pre> <h3 id="map-constructor" class="left">Creation</h3> @@ -199,13 +200,13 @@ var map = L.map('map', { <tr> <td><code><b>center</b></code></td> <td><code><a href="#latlng">LatLng</a></code></td> - <td><code><span class="literal">null</span></code></td> + <td><code><span class="literal">[0, 0]</span></code></td> <td>Initial geographical center of the map.</td> </tr> <tr> <td><code><b>zoom</b></code></td> <td><code>Number</code></td> - <td><code><span class="literal">null</span></code></td> + <td><code><span class="literal">10</span></code></td> <td>Initial map zoom.</td> </tr> <tr> @@ -217,13 +218,13 @@ var map = L.map('map', { <tr> <td><code><b>minZoom</b></code></td> <td><code>Number</code></td> - <td><code><span class="literal">null</span></code></td> + <td><code><span class="literal">1</span></code></td> <td>Minimum zoom level of the map. Overrides any <code>minZoom</code> set on map layers.</td> </tr> <tr> <td><code><b>maxZoom</b></code></td> <td><code>Number</code></td> - <td><code><span class="literal">null</span></code></td> + <td><code><span class="literal">20</span></code></td> <td>Maximum zoom level of the map. This overrides any <code>maxZoom</code> set on map layers.</td> </tr> <tr id="map-maxbounds"> @@ -241,7 +242,7 @@ var map = L.map('map', { <tr> <td><code><b>crs</b></code></td> <td><code><a href="#crs">CRS</a></code></td> - <td><code>L.CRS.<br/>EPSG3857</code></td> + <td><code>L.CRS.<br/>Simple</code></td> <td>Coordinate Reference System to use. Don't change this if you're not sure what it means.</td> </tr> <tr> @@ -262,22 +263,23 @@ var map = L.map('map', { <th>Description</th> </tr> <tr> - <td><code><b>dragging</b></code></td> + <td><code><b>editing</b></code></td> <td><code>Boolean</code></td> - <td><code><span class="literal">true</span></code></td> - <td>Whether the map be draggable with mouse/touch or not.</td> + <td><code><span class="literal">false</span></code></td> + <td>Whether the document is in editing or viewing mode.</td> </tr> <tr> - <td><code><b>touchZoom</b></code></td> + <td><code><b>readOnly</b></code></td> <td><code>Boolean</code></td> - <td><code><span class="literal">true</span></code></td> - <td>Whether the map can be zoomed by touch-dragging with two fingers. If passed <code><span class="string">'center'</span></code>, it will zoom to the center of the view regardless of where the touch events (fingers) were.</td> + <td><code><span class="literal">false</span></code></td> + <td>Whether the document is read-only.</td> </tr> + <tr> - <td><code><b>scrollWheelZoom</b></code></td> + <td><code><b>dragging</b></code></td> <td><code>Boolean</code></td> <td><code><span class="literal">true</span></code></td> - <td>Whether the map can be zoomed by using the mouse wheel. If passed <code><span class="string">'center'</span></code>, it will zoom to the center of the view regardless of where the mouse was.</td> + <td>Whether the map be draggable with mouse/touch or not.</td> </tr> <tr> <td><code><b>wheelDebounceTime</b></code></td> @@ -288,7 +290,7 @@ var map = L.map('map', { <tr> <td><code><b>doubleClickZoom</b></code></td> <td><code>Boolean</code></td> - <td><code><span class="literal">true</span></code></td> + <td><code><span class="literal">false</span></code></td> <td>Whether the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift. If passed <code><span class="string">'center'</span></code>, double-click zoom will zoom to the center of the view regardless of where the mouse was.</td> </tr> <tr> @@ -353,7 +355,7 @@ var map = L.map('map', { <tr> <td><code><b>keyboardPanOffset</b></code></td> <td><code>Number</code></td> - <td><code><span class="number">80</span></code></td> + <td><code><span class="number">20</span></code></td> <td>Amount of pixels to pan when pressing an arrow key.</td> </tr> <tr> @@ -399,29 +401,6 @@ var map = L.map('map', { </tr> </table> -<h4>Control options</h4> - -<table data-id='map'> - <tr> - <th class="width140">Option</th> - <th>Type</th> - <th>Default</th> - <th>Description</th> - </tr> - <tr> - <td><code><b>zoomControl</b></code></td> - <td><code>Boolean</code></td> - <td><code><span class="literal">true</span></code></td> - <td>Whether the <a href="#control-zoom">zoom control</a> is added to the map by default.</td> - </tr> - <tr> - <td><code><b>attributionControl</b></code></td> - <td><code>Boolean</code></td> - <td><code><span class="literal">true</span></code></td> - <td>Whether the <a href="#control-attribution">attribution control</a> is added to the map by default.</td> - </tr> -</table> - <h4>Animation options</h4> <table data-id='map'> @@ -434,8 +413,8 @@ var map = L.map('map', { <tr> <td><code><b>fadeAnimation</b></code></td> <td><code>Boolean</code></td> - <td>depends</td> - <td>Whether the tile fade animation is enabled. By default it's enabled in all browsers that support CSS3 Transitions except Android.</td> + <td>false</td> + <td>Whether the tile fade animation is enabled. By default it's disabled because it produces a bad effect when editing.</td> </tr> <tr> <td><code><b>zoomAnimation</b></code></td> @@ -6579,6 +6558,61 @@ map.addControl(new MyControl()); </tr> </table> +<h3 id="search-event">SearchEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>originalPhrase</b></code></td> + <td><code>String</code></td> + <td>The phrase that has been searched for</td> + </tr> + <tr> + <td><code><b>count</b></code></td> + <td><code>Number</code></td> + <td>Number of search results</td> + </tr> +</table> + +<h3 id="permission-event">PermissionEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>perm</b></code></td> + <td><code><a href="#documentpermission-values">DocumentPermission</a></code></td> + <td>Document permission.</td> + </tr> +</table> + +<h3 id="commandstatechanged-event">CommandStateChangedEvent</h3> + +<table data-id='events'> + <tr> + <th class="width100">property</th> + <th>type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>commandName</b></code></td> + <td><code><a href="#commandstatechanged-values">CommandStateChangedValues</a></code></td> + <td>UNO command.</td> + </tr> + <tr> + <td><code><b>state</b></code></td> + <td><code><a href="#commandstate-values">CommandStateValues</a></code></td> + <td>UNO command state.</td> + </tr> +</table> + <h3 id="mouse-event">MouseEvent</h3> <table data-id='events'> @@ -6824,6 +6858,145 @@ map.addControl(new MyControl()); </tr> </table> +<h2 id="object-values">Object values</h2> + +<p>A list of possible values for different event object properties.</p> + +<h3 id="documentpermission-values">DocumentPermissionValues</h3> + +<table data-id='values'> + <tr> + <th class="width100">value</th> + <th class="width100">type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>'edit'</b></code></td> + <td><code>String</code></td> + <td>The document can be edited, dragging is disabled and mouse selection is active.</td> + </tr> + <tr> + <td><code><b>'view'</b></code></td> + <td><code>String</code></td> + <td>The document is in viewing mode, dragging is enabled by default and by clicking in it, editing mode is entered.</td> + </tr> + <tr> + <td><code><b>'readonly'</b></code></td> + <td><code>String</code></td> + <td>The document is in read-only mode, dragging is enabled by default.</td> + </tr> +</table> + +<h3 id="commandstatechanged-values">CommandStateChangedValues</h3> + +<table data-id='values'> + <tr> + <th class="width100">value</th> + <th class="width100">type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>'.uno:Bold'</b></code></td> + <td><code>String</code></td> + <td>Bold.</td> + </tr> + <tr> + <td><code><b>'.uno:Italic'</b></code></td> + <td><code>String</code></td> + <td>Italic.</td> + </tr> + <tr> + <td><code><b>'.uno:Underline'</b></code></td> + <td><code>String</code></td> + <td>Underline.</td> + </tr> + <tr> + <td><code><b>'.uno:Strikeout'</b></code></td> + <td><code>String</code></td> + <td>Strikeout.</td> + </tr> + <tr> + <td><code><b>'.uno:LeftPara'</b></code></td> + <td><code>String</code></td> + <td>Align left.</td> + </tr> + <tr> + <td><code><b>'.uno:CenterPara'</b></code></td> + <td><code>String</code></td> + <td>Center horizontaly.</td> + </tr> + <tr> + <td><code><b>'.uno:RightPara'</b></code></td> + <td><code>String</code></td> + <td>Align right.</td> + </tr> + <tr> + <td><code><b>'.uno:JustifyPara'</b></code></td> + <td><code>String</code></td> + <td>Justified.</td> + </tr> + <tr> + <td><code><b>'.uno:IncrementIndent'</b></code></td> + <td><code>String</code></td> + <td>Increment indent.</td> + </tr> + <tr> + <td><code><b>'.uno:DecrementIndent'</b></code></td> + <td><code>String</code></td> + <td>Decrement indent.</td> + </tr> + <tr> + <td><code><b>'.uno:StyleApply'</b></code></td> + <td><code>String</code></td> + <td>Style related uno command.</td> + </tr> + <tr> + <td><code><b>'.uno:CharFontName'</b></code></td> + <td><code>String</code></td> + <td>Font related uno command.</td> + </tr> + <tr> + <td><code><b>'.uno:FontHeight'</b></code></td> + <td><code>String</code></td> + <td>Font size related uno command.</td> + </tr> +</table> + +<h3 id="commandstate-values">CommandStateValues</h3> + +<table data-id='values'> + <tr> + <th class="width100">value</th> + <th class="width100">type</th> + <th>description</th> + </tr> + <tr> + <td><code><b>'true'</b></code></td> + <td><code>String</code></td> + <td>For '.uno:Bold', '.uno:Italic', etc.</td> + </tr> + <tr> + <td><code><b>'false'</b></code></td> + <td><code>String</code></td> + <td>For '.uno:Bold', '.uno:Italic', etc.</td> + </tr> + <tr> + <td><code><b>styleName</b></code></td> + <td><code>String</code></td> + <td>For '.uno:StyleApply'.</td> + </tr> + <tr> + <td><code><b>fontName</b></code></td> + <td><code>String</code></td> + <td>For '.uno:CharFontName'.</td> + </tr> + <tr> + <td><code><b>fontSize</b></code></td> + <td><code>String</code></td> + <td>For '.uno:FontHeight'.</td> + </tr> +</table> + <h2 id="global">Global Switches</h2> <p>Global switches are created for rare cases and generally make Leaflet to not detect a particular browser feature even if it's there. You need to set the switch as a global variable to <code><span class="literal">true</span></code> <em>before</em> including Leaflet on the page, like this:</p> diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js index d405e2d..df1fe80 100644 --- a/loleaflet/src/layer/tile/CalcTileLayer.js +++ b/loleaflet/src/layer/tile/CalcTileLayer.js @@ -12,7 +12,7 @@ L.CalcTileLayer = L.TileLayer.extend({ command.y = parseInt(strTwips[1]); command.width = parseInt(strTwips[2]); command.height = parseInt(strTwips[3]); - command.part = this._currentPart; + command.part = this._selectedPart; } if (this._docType === 'text') { command.part = 0; diff --git a/loleaflet/src/layer/tile/ImpressTileLayer.js b/loleaflet/src/layer/tile/ImpressTileLayer.js index 1717cf3..dfb00f3 100644 --- a/loleaflet/src/layer/tile/ImpressTileLayer.js +++ b/loleaflet/src/layer/tile/ImpressTileLayer.js @@ -12,7 +12,7 @@ L.ImpressTileLayer = L.TileLayer.extend({ command.y = parseInt(strTwips[1]); command.width = parseInt(strTwips[2]); command.height = parseInt(strTwips[3]); - command.part = this._currentPart; + command.part = this._selectedPart; } var topLeftTwips = new L.Point(command.x, command.y); var offset = new L.Point(command.width, command.height); @@ -81,7 +81,7 @@ L.ImpressTileLayer = L.TileLayer.extend({ delete this._tileCache[key]; } } - if (command.part === this._currentPart && + if (command.part === this._selectedPart && command.part !== this._lastValidPart) { this._lastValidPart = command.part; this._map.fire('updatepart', {part: command.part, docType: this._docType}); diff --git a/loleaflet/src/layer/tile/WriterTileLayer.js b/loleaflet/src/layer/tile/WriterTileLayer.js index fe85e9d..5686727 100644 --- a/loleaflet/src/layer/tile/WriterTileLayer.js +++ b/loleaflet/src/layer/tile/WriterTileLayer.js @@ -12,7 +12,7 @@ L.WriterTileLayer = L.TileLayer.extend({ command.y = parseInt(strTwips[1]); command.width = parseInt(strTwips[2]); command.height = parseInt(strTwips[3]); - command.part = this._currentPart; + command.part = this._selectedPart; } command.part = 0; var topLeftTwips = new L.Point(command.x, command.y); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
