From d34d9bae4074aaf63dc3e210cde7a415835f66d2 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Mon, 16 Aug 2021 15:05:20 +0200 Subject: [PATCH] disableSelect now an init option --- src/OSDAnnotationLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OSDAnnotationLayer.js b/src/OSDAnnotationLayer.js index d70775a..ca197dd 100644 --- a/src/OSDAnnotationLayer.js +++ b/src/OSDAnnotationLayer.js @@ -23,7 +23,7 @@ export class AnnotationLayer extends EventEmitter { this.headless = props.config.headless; this.formatter = props.config.formatter; - this.disableSelect = false; + this.disableSelect = props.disableSelect; this.svg = document.createElementNS(SVG_NAMESPACE, 'svg');