diff --git a/config/webpack/webpack-bundle.js b/config/webpack/webpack-bundle.js index 7d14fa05..dfda62cc 100644 --- a/config/webpack/webpack-bundle.js +++ b/config/webpack/webpack-bundle.js @@ -71,6 +71,7 @@ module.exports = { asyncWebAssembly: true }, optimization: { + minimize: false, minimizer: [ new TerserPlugin({ parallel: true diff --git a/config/webpack/webpack-dynamic-import.js b/config/webpack/webpack-dynamic-import.js index e9024854..6a051abc 100644 --- a/config/webpack/webpack-dynamic-import.js +++ b/config/webpack/webpack-dynamic-import.js @@ -17,6 +17,7 @@ const prodConfig = { filename: '[name].min.js' }, optimization: { + minimize: false, minimizer: [ new TerserPlugin({ parallel: true diff --git a/src/annotations/_AnnotationManager.js b/src/annotations/_AnnotationManager.js index f907bd60..8e88e840 100644 --- a/src/annotations/_AnnotationManager.js +++ b/src/annotations/_AnnotationManager.js @@ -178,6 +178,7 @@ class _AnnotationManager { } onDrawAbort (event) { + console.log("event=", event); this[Marker.Arrow].onDrawAbort(event) this[Markup.Measurement].onDrawAbort(event) this[Markup.TextEvaluation].onDrawAbort(event) diff --git a/src/annotations/markups/_MarkupManager.js b/src/annotations/markups/_MarkupManager.js index ce225355..952a0079 100644 --- a/src/annotations/markups/_MarkupManager.js +++ b/src/annotations/markups/_MarkupManager.js @@ -311,6 +311,7 @@ class _MarkupManager { } }) + console.log("adding mouse down listener"); markup.element.addEventListener(Enums.HTMLElementEvents.MOUSE_DOWN, () => { const markup = this.get(id) if (markup) { diff --git a/src/viewer.js b/src/viewer.js index 4a70cd8f..66660241 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -686,7 +686,7 @@ function _getColorPaletteStyleForPointLayer ({ return { color: expression } } -const _affine = Symbol('affine') +const _affine = Symbol.for('affine') const _affineInverse = Symbol('affineInverse') const _annotationManager = Symbol('annotationManager') const _annotationGroups = Symbol('annotationGroups') @@ -697,15 +697,15 @@ const _drawingLayer = Symbol('drawingLayer') const _drawingSource = Symbol('drawingSource') const _features = Symbol('features') const _imageLayer = Symbol('imageLayer') -const _interactions = Symbol('interactions') -const _map = Symbol('map') -const _mappings = Symbol('mappings') +const _interactions = Symbol.for('interactions') +const _map = Symbol.for('map') +const _mappings = Symbol.for('mappings') const _metadata = Symbol('metadata') const _opticalPaths = Symbol('opticalPaths') const _options = Symbol('options') const _overlays = Symbol('overlays') const _overviewMap = Symbol('overviewMap') -const _projection = Symbol('projection') +const _projection = Symbol.for('projection') const _pyramid = Symbol('pyramid') const _segments = Symbol('segments') const _rotation = Symbol('rotation') @@ -791,6 +791,7 @@ class VolumeImageViewer { if (this[_options].controls == null) { this[_options].controls = [] } + console.log("Setting controls to", this[_options].controls); this[_options].controls = new Set(this[_options].controls) if (this[_options].primaryColor == null) { @@ -2249,6 +2250,7 @@ class VolumeImageViewer { * modifierKey: 'ctrl' // The modifier * }, */ + console.log("bindings are", options.bindings); if (options.bindings) { drawOptions.condition = _getInteractionBindingCondition(options.bindings) } @@ -2558,7 +2560,6 @@ class VolumeImageViewer { * Deactivate drag pan interaction. */ deactivateDragPanInteraction () { - console.info('deactivate "drag pan" interaction') if (this[_interactions].dragPan) { this[_map].removeInteraction(this[_interactions].dragPan) this[_interactions].dragPan = undefined