@inweb/viewer-visualize 25.3.20 → 25.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -361,7 +361,9 @@ class Options {
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
const
|
|
364
|
+
const CanvasEvents = [ "click", "contextmenu", "dblclick", "mousedown", "mouseleave", "mousemove", "mouseup", "pointercancel", "pointerdown", "pointerleave", "pointermove", "pointerup", "touchcancel", "touchend", "touchmove", "touchstart", "wheel" ];
|
|
365
|
+
|
|
366
|
+
const CANVAS_EVENTS = CanvasEvents;
|
|
365
367
|
|
|
366
368
|
const composeMatrixFromTransform = (translate, rotate, scale, modelCenter, matrix) => {
|
|
367
369
|
const translateMatrix = matrix.setTranslation([ translate.x, translate.y, translate.z ]);
|
|
@@ -4943,7 +4945,7 @@ class Viewer extends EventEmitter2 {
|
|
|
4943
4945
|
markupDraggers === null || markupDraggers === void 0 ? void 0 : markupDraggers.forEach(((value, key) => {
|
|
4944
4946
|
this.registerDragger(key, value);
|
|
4945
4947
|
}));
|
|
4946
|
-
this.canvasEvents = CANVAS_EVENTS;
|
|
4948
|
+
this.canvasEvents = CANVAS_EVENTS.slice();
|
|
4947
4949
|
this.canvaseventlistener = event => this.emit(event);
|
|
4948
4950
|
this._enableAutoUpdate = (_b = params.enableAutoUpdate) !== null && _b !== void 0 ? _b : true;
|
|
4949
4951
|
this._isNeedRender = false;
|
|
@@ -5608,5 +5610,5 @@ class Viewer extends EventEmitter2 {
|
|
|
5608
5610
|
}
|
|
5609
5611
|
}
|
|
5610
5612
|
|
|
5611
|
-
export { CANVAS_EVENTS, OdBaseDragger, Options, Viewer, commands, defaultOptions };
|
|
5613
|
+
export { CANVAS_EVENTS, CanvasEvents, OdBaseDragger, Options, Viewer, commands, defaultOptions };
|
|
5612
5614
|
//# sourceMappingURL=viewer-visualize.module.js.map
|