summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2021-02-09 15:16:37 +0530
committerDennis Francis <dennis.francis@collabora.com>2021-02-09 15:18:25 +0530
commit5f2bd1988e5a64ce88e033760867c3060947360a (patch)
treead0fecc868f657cdf39aa18fe97b94151bc871bf
parentskip redraw only if both current and prev bounds are not in view (diff)
downloadonline-5f2bd1988e5a64ce88e033760867c3060947360a.tar.gz
online-5f2bd1988e5a64ce88e033760867c3060947360a.zip
remove hardcoding of debug-mode calc-grid drawingOrder private/dennisf/overlay-on-canvas
Signed-off-by: Dennis Francis <dennis.francis@collabora.com> Change-Id: I1b074e73b5e8dd8110f66e3f639433a07c73ae57
-rw-r--r--loleaflet/src/layer/tile/CanvasSectionProps.js4
-rw-r--r--loleaflet/src/layer/tile/TileLayer.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/loleaflet/src/layer/tile/CanvasSectionProps.js b/loleaflet/src/layer/tile/CanvasSectionProps.js
index 29b36ea769..cdf62e639f 100644
--- a/loleaflet/src/layer/tile/CanvasSectionProps.js
+++ b/loleaflet/src/layer/tile/CanvasSectionProps.js
@@ -45,11 +45,11 @@ L.CSections.CalcGrid.processingOrder = 60; // Calc. This is bound to tiles,
L.CSections.Debug.Splits.processingOrder = 60; // Calc. This is bound to tiles, processingOrder is not important.
-L.CSections.CalcGrid.drawingOrder = 4; // Calc. This is 8 when debugging is enabled.
+L.CSections.CalcGrid.drawingOrder = 4; // Calc.
L.CSections.Tiles.drawingOrder = 5; // Writer & Impress & Calc.
L.CSections.Debug.TilePixelGrid.drawingOrder = 6; // Writer & Impress & Calc.
L.CSections.Overlays.drawingOrder = 7; // Writer & Impress & Calc.
-/* drawingOrder = 8 is reserved for debugging mode of CalcGrid */
+L.CSections.CalcGrid.drawingOrderDebug = 8; // Calc debug mode.
L.CSections.Debug.Splits.drawingOrder = 9; // Calc.
L.CSections.RowGroup.drawingOrder = 10; // Calc.
L.CSections.ColumnGroup.drawingOrder = 11; // Calc.
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index ac0ab9ef03..b0d1d90450 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -3841,7 +3841,7 @@ L.TileLayer = L.GridLayer.extend({
if (this._map._docLayer._docType === 'spreadsheet') {
var section = this._map._docLayer._painter._sectionContainer.getSectionWithName('calc grid');
if (section) {
- section.drawingOrder = 7;
+ section.drawingOrder = L.CSections.CalcGrid.drawingOrderDebug;
section.sectionProperties.strokeStyle = 'blue';
}
this._map._docLayer._painter._addSplitsSection();