[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Wed Apr 19 14:12:27 UTC 2017
loleaflet/src/layer/AnnotationManager.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
New commits:
commit 78fd7f6ffd32d59eca6ac978dec20313649594d4
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Wed Apr 19 19:39:55 2017 +0530
loleaflet: Select change tracking comments; hidden overlay
Make this overlay interactive, but we don't want to color this overlay
since LO core already colors redlines in tiles for us.
Change-Id: I46077f5b6a28cdd492325b8ab3014fb25ecd94ec
diff --git a/loleaflet/src/layer/AnnotationManager.js b/loleaflet/src/layer/AnnotationManager.js
index b3f2d74c..fc7d077c 100644
--- a/loleaflet/src/layer/AnnotationManager.js
+++ b/loleaflet/src/layer/AnnotationManager.js
@@ -80,12 +80,13 @@ L.AnnotationManager = L.Class.extend({
color = viewId >= 0 ? L.LOUtil.rgbToHex(this._map.getViewColor(viewId)) : '#43ACE8';
if (rectangles.length > 0) {
redline.textSelected = L.polygon(rectangles, {
- pointerEvents: 'none',
- fillColor: color,
- fillOpacity: 0.25,
- weight: 2,
- opacity: 0.25
+ interactive: true,
+ fillOpacity: 0,
+ opacity: 0
});
+ redline.textSelected.on('click', function() {
+ this.selectById(redline.id);
+ }, this);
}
},
More information about the Libreoffice-commits
mailing list