@inweb/viewer-visualize 26.3.1 → 26.3.3
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.
- package/LICENSE +2 -2
- package/README.md +1 -1
- package/dist/viewer-visualize.js +303 -281
- package/dist/viewer-visualize.js.map +1 -1
- package/dist/viewer-visualize.min.js +1 -1
- package/dist/viewer-visualize.module.js +32 -32
- package/dist/viewer-visualize.module.js.map +1 -1
- package/package.json +6 -6
- package/src/Viewer/Commands/ApplyModelTransform.ts +2 -2
- package/src/Viewer/Commands/AutoTransformAllModelsToCentralPoint.ts +2 -2
- package/src/Viewer/Commands/ClearMarkup.ts +2 -2
- package/src/Viewer/Commands/ClearSelected.ts +2 -2
- package/src/Viewer/Commands/ClearSlices.ts +2 -2
- package/src/Viewer/Commands/CreatePreview.ts +2 -2
- package/src/Viewer/Commands/Explode.ts +2 -2
- package/src/Viewer/Commands/GetDefaultViewPositions.ts +2 -2
- package/src/Viewer/Commands/GetModels.ts +2 -2
- package/src/Viewer/Commands/GetSelected.ts +2 -2
- package/src/Viewer/Commands/HideSelected.ts +2 -2
- package/src/Viewer/Commands/IsolateSelected.ts +2 -2
- package/src/Viewer/Commands/RegenerateAll.ts +2 -2
- package/src/Viewer/Commands/ResetView.ts +2 -2
- package/src/Viewer/Commands/SelectModel.ts +2 -2
- package/src/Viewer/Commands/SetActiveDragger.ts +2 -2
- package/src/Viewer/Commands/SetDefaultViewPosition.ts +2 -2
- package/src/Viewer/Commands/SetMarkupColor.ts +2 -2
- package/src/Viewer/Commands/SetSelected.ts +2 -2
- package/src/Viewer/Commands/ShowAll.ts +2 -2
- package/src/Viewer/Commands/ZoomToExtents.ts +2 -2
- package/src/Viewer/Commands/ZoomToObjects.ts +2 -2
- package/src/Viewer/Commands/ZoomToSelected.ts +2 -2
- package/src/Viewer/Commands/index.ts +2 -2
- package/src/Viewer/Components/GestureManagerComponent.ts +2 -2
- package/src/Viewer/Components/RenderLoopComponent.ts +2 -2
- package/src/Viewer/Components/ResizeCanvasComponent.ts +2 -2
- package/src/Viewer/Components/ZoomWheelComponent.ts +2 -2
- package/src/Viewer/Components/index.ts +2 -2
- package/src/Viewer/Draggers/Actions/OrbitAction.ts +2 -2
- package/src/Viewer/Draggers/Actions/PanAction.ts +2 -2
- package/src/Viewer/Draggers/Actions/ZoomAction.ts +2 -2
- package/src/Viewer/Draggers/Common/Geometry.ts +2 -2
- package/src/Viewer/Draggers/Common/GestureManager.ts +2 -2
- package/src/Viewer/Draggers/Common/OdBaseDragger.ts +2 -2
- package/src/Viewer/Draggers/Common/OdaGeAction.ts +2 -2
- package/src/Viewer/Draggers/MeasureLineDragger/MeasureLineItem.ts +2 -2
- package/src/Viewer/Draggers/MeasureLineDragger/MeasureUtils.ts +2 -2
- package/src/Viewer/Draggers/MeasureLineDragger/index.ts +2 -2
- package/src/Viewer/Draggers/OdBaseCuttingPlaneDragger.ts +2 -2
- package/src/Viewer/Draggers/OdCuttingPlaneXAxisDragger.ts +2 -2
- package/src/Viewer/Draggers/OdCuttingPlaneYAxisDragger.ts +2 -2
- package/src/Viewer/Draggers/OdCuttingPlaneZAxisDragger.ts +2 -2
- package/src/Viewer/Draggers/OdOrbitDragger.ts +2 -2
- package/src/Viewer/Draggers/OdPanDragger.ts +2 -2
- package/src/Viewer/Draggers/OdZoomDragger.ts +2 -2
- package/src/Viewer/Draggers/OdZoomWheelDragger.ts +2 -2
- package/src/Viewer/Draggers/OdZoomWindowDragger/OdSelectionFrame.ts +2 -2
- package/src/Viewer/Draggers/OdZoomWindowDragger/index.ts +2 -2
- package/src/Viewer/Draggers/OdaLineDragger.ts +2 -2
- package/src/Viewer/Draggers/OdaTextDragger.ts +2 -2
- package/src/Viewer/Draggers/OdaWalkDragger.ts +2 -2
- package/src/Viewer/Draggers/OrbitAroundBuildingDragger.ts +2 -2
- package/src/Viewer/Draggers/index.ts +2 -2
- package/src/Viewer/Loaders/BaseLoader.ts +2 -2
- package/src/Viewer/Loaders/LoaderFactory.ts +2 -2
- package/src/Viewer/Loaders/TCSLoader.ts +2 -2
- package/src/Viewer/Loaders/VsfXLoader.ts +2 -2
- package/src/Viewer/Loaders/VsfXPartialLoader.ts +2 -2
- package/src/Viewer/Loaders/VsfXStreamingLoader.ts +2 -2
- package/src/Viewer/Markup/MarkupFactory.ts +2 -2
- package/src/Viewer/Viewer.ts +2 -2
- package/src/Viewer/utils.ts +2 -2
- package/src/index.ts +2 -2
package/dist/viewer-visualize.js
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
const {handler: handler, thisArg: thisArg} = command;
|
|
41
41
|
const result = handler.apply(thisArg, [ viewer, ...args ]);
|
|
42
|
-
viewer === null || viewer ===
|
|
42
|
+
viewer === null || viewer === void 0 ? void 0 : viewer.emit({
|
|
43
43
|
type: "command",
|
|
44
44
|
data: id,
|
|
45
45
|
args: args
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
hasRequiredGlobal = 1;
|
|
485
485
|
(function (exports) {
|
|
486
486
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
487
|
-
exports._registerNode = exports.Konva = exports.glob =
|
|
487
|
+
exports._registerNode = exports.Konva = exports.glob = void 0;
|
|
488
488
|
const PI_OVER_180 = Math.PI / 180;
|
|
489
489
|
function detectBrowser() {
|
|
490
490
|
return (typeof window !== 'undefined' &&
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
: {};
|
|
501
501
|
exports.Konva = {
|
|
502
502
|
_global: exports.glob,
|
|
503
|
-
version: '9.3.
|
|
503
|
+
version: '9.3.20',
|
|
504
504
|
isBrowser: detectBrowser(),
|
|
505
505
|
isUnminified: /param/.test(function (param) { }.toString()),
|
|
506
506
|
dblClickWindow: 400,
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
},
|
|
533
533
|
isTransforming() {
|
|
534
534
|
var _a;
|
|
535
|
-
return (_a = exports.Konva['Transformer']) === null || _a ===
|
|
535
|
+
return (_a = exports.Konva['Transformer']) === null || _a === void 0 ? void 0 : _a.isTransforming();
|
|
536
536
|
},
|
|
537
537
|
isDragReady() {
|
|
538
538
|
return !!exports.Konva['DD'].node;
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
hasRequiredUtil = 1;
|
|
562
562
|
(function (exports) {
|
|
563
563
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
564
|
-
exports.Util = exports.Transform =
|
|
564
|
+
exports.Util = exports.Transform = void 0;
|
|
565
565
|
const Global_1 = requireGlobal();
|
|
566
566
|
class Transform {
|
|
567
567
|
constructor(m = [1, 0, 0, 1, 0, 0]) {
|
|
@@ -1579,7 +1579,7 @@
|
|
|
1579
1579
|
hasRequiredFactory = 1;
|
|
1580
1580
|
(function (exports) {
|
|
1581
1581
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1582
|
-
exports.Factory =
|
|
1582
|
+
exports.Factory = void 0;
|
|
1583
1583
|
const Util_1 = requireUtil();
|
|
1584
1584
|
const Validators_1 = requireValidators();
|
|
1585
1585
|
const GET = 'get';
|
|
@@ -1717,7 +1717,7 @@
|
|
|
1717
1717
|
if (hasRequiredContext) return Context;
|
|
1718
1718
|
hasRequiredContext = 1;
|
|
1719
1719
|
Object.defineProperty(Context, "__esModule", { value: true });
|
|
1720
|
-
Context.HitContext = Context.SceneContext = Context.Context =
|
|
1720
|
+
Context.HitContext = Context.SceneContext = Context.Context = void 0;
|
|
1721
1721
|
const Util_1 = requireUtil();
|
|
1722
1722
|
const Global_1 = requireGlobal();
|
|
1723
1723
|
function simplifyArray(arr) {
|
|
@@ -2206,7 +2206,7 @@
|
|
|
2206
2206
|
}
|
|
2207
2207
|
_applyShadow(shape) {
|
|
2208
2208
|
var _a, _b, _c;
|
|
2209
|
-
const color = (_a = shape.getShadowRGBA()) !== null && _a !==
|
|
2209
|
+
const color = (_a = shape.getShadowRGBA()) !== null && _a !== void 0 ? _a : 'black', blur = (_b = shape.getShadowBlur()) !== null && _b !== void 0 ? _b : 5, offset = (_c = shape.getShadowOffset()) !== null && _c !== void 0 ? _c : {
|
|
2210
2210
|
x: 0,
|
|
2211
2211
|
y: 0,
|
|
2212
2212
|
}, scale = shape.getAbsoluteScale(), ratio = this.canvas.getPixelRatio(), scaleX = scale.x * ratio, scaleY = scale.y * ratio;
|
|
@@ -2265,12 +2265,10 @@
|
|
|
2265
2265
|
if (hasRequiredCanvas) return Canvas;
|
|
2266
2266
|
hasRequiredCanvas = 1;
|
|
2267
2267
|
Object.defineProperty(Canvas, "__esModule", { value: true });
|
|
2268
|
-
Canvas.HitCanvas = Canvas.SceneCanvas = Canvas.Canvas =
|
|
2268
|
+
Canvas.HitCanvas = Canvas.SceneCanvas = Canvas.Canvas = void 0;
|
|
2269
2269
|
const Util_1 = requireUtil();
|
|
2270
2270
|
const Context_1 = requireContext();
|
|
2271
2271
|
const Global_1 = requireGlobal();
|
|
2272
|
-
const Factory_1 = requireFactory();
|
|
2273
|
-
const Validators_1 = requireValidators();
|
|
2274
2272
|
let _pixelRatio;
|
|
2275
2273
|
function getDevicePixelRatio() {
|
|
2276
2274
|
if (_pixelRatio) {
|
|
@@ -2359,7 +2357,6 @@
|
|
|
2359
2357
|
}
|
|
2360
2358
|
};
|
|
2361
2359
|
Canvas.Canvas = Canvas$1;
|
|
2362
|
-
Factory_1.Factory.addGetterSetter(Canvas$1, 'pixelRatio', undefined, (0, Validators_1.getNumberValidator)());
|
|
2363
2360
|
class SceneCanvas extends Canvas$1 {
|
|
2364
2361
|
constructor(config = { width: 0, height: 0, willReadFrequently: false }) {
|
|
2365
2362
|
super(config);
|
|
@@ -2391,7 +2388,7 @@
|
|
|
2391
2388
|
hasRequiredDragAndDrop = 1;
|
|
2392
2389
|
(function (exports) {
|
|
2393
2390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2394
|
-
exports.DD =
|
|
2391
|
+
exports.DD = void 0;
|
|
2395
2392
|
const Global_1 = requireGlobal();
|
|
2396
2393
|
const Util_1 = requireUtil();
|
|
2397
2394
|
exports.DD = {
|
|
@@ -2512,7 +2509,7 @@
|
|
|
2512
2509
|
if (hasRequiredNode) return Node;
|
|
2513
2510
|
hasRequiredNode = 1;
|
|
2514
2511
|
Object.defineProperty(Node, "__esModule", { value: true });
|
|
2515
|
-
Node.Node =
|
|
2512
|
+
Node.Node = void 0;
|
|
2516
2513
|
const Util_1 = requireUtil();
|
|
2517
2514
|
const Factory_1 = requireFactory();
|
|
2518
2515
|
const Canvas_1 = requireCanvas();
|
|
@@ -3417,7 +3414,7 @@
|
|
|
3417
3414
|
var _a, _b;
|
|
3418
3415
|
const m = this._cache.get(TRANSFORM) || new Util_1.Transform();
|
|
3419
3416
|
m.reset();
|
|
3420
|
-
const x = this.x(), y = this.y(), rotation = Global_1.Konva.getAngle(this.rotation()), scaleX = (_a = this.attrs.scaleX) !== null && _a !==
|
|
3417
|
+
const x = this.x(), y = this.y(), rotation = Global_1.Konva.getAngle(this.rotation()), scaleX = (_a = this.attrs.scaleX) !== null && _a !== void 0 ? _a : 1, scaleY = (_b = this.attrs.scaleY) !== null && _b !== void 0 ? _b : 1, skewX = this.attrs.skewX || 0, skewY = this.attrs.skewY || 0, offsetX = this.attrs.offsetX || 0, offsetY = this.attrs.offsetY || 0;
|
|
3421
3418
|
if (x !== 0 || y !== 0) {
|
|
3422
3419
|
m.translate(x, y);
|
|
3423
3420
|
}
|
|
@@ -3619,7 +3616,7 @@
|
|
|
3619
3616
|
_requestDraw() {
|
|
3620
3617
|
if (Global_1.Konva.autoDrawEnabled) {
|
|
3621
3618
|
const drawNode = this.getLayer() || this.getStage();
|
|
3622
|
-
drawNode === null || drawNode ===
|
|
3619
|
+
drawNode === null || drawNode === void 0 ? void 0 : drawNode.batchDraw();
|
|
3623
3620
|
}
|
|
3624
3621
|
}
|
|
3625
3622
|
_setAttr(key, val) {
|
|
@@ -3680,13 +3677,13 @@
|
|
|
3680
3677
|
}
|
|
3681
3678
|
_getProtoListeners(eventType) {
|
|
3682
3679
|
var _a, _b, _c;
|
|
3683
|
-
const allListeners = (_a = this._cache.get(ALL_LISTENERS)) !== null && _a !==
|
|
3684
|
-
let events = allListeners === null || allListeners ===
|
|
3680
|
+
const allListeners = (_a = this._cache.get(ALL_LISTENERS)) !== null && _a !== void 0 ? _a : {};
|
|
3681
|
+
let events = allListeners === null || allListeners === void 0 ? void 0 : allListeners[eventType];
|
|
3685
3682
|
if (events === undefined) {
|
|
3686
3683
|
events = [];
|
|
3687
3684
|
let obj = Object.getPrototypeOf(this);
|
|
3688
3685
|
while (obj) {
|
|
3689
|
-
const hierarchyEvents = (_c = (_b = obj.eventListeners) === null || _b ===
|
|
3686
|
+
const hierarchyEvents = (_c = (_b = obj.eventListeners) === null || _b === void 0 ? void 0 : _b[eventType]) !== null && _c !== void 0 ? _c : [];
|
|
3690
3687
|
events.push(...hierarchyEvents);
|
|
3691
3688
|
obj = Object.getPrototypeOf(obj);
|
|
3692
3689
|
}
|
|
@@ -3952,7 +3949,7 @@
|
|
|
3952
3949
|
if (hasRequiredContainer) return Container;
|
|
3953
3950
|
hasRequiredContainer = 1;
|
|
3954
3951
|
Object.defineProperty(Container, "__esModule", { value: true });
|
|
3955
|
-
Container.Container =
|
|
3952
|
+
Container.Container = void 0;
|
|
3956
3953
|
const Factory_1 = requireFactory();
|
|
3957
3954
|
const Node_1 = requireNode();
|
|
3958
3955
|
const Validators_1 = requireValidators();
|
|
@@ -4109,13 +4106,13 @@
|
|
|
4109
4106
|
if (this.isCached()) {
|
|
4110
4107
|
return;
|
|
4111
4108
|
}
|
|
4112
|
-
(_a = this.children) === null || _a ===
|
|
4109
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (node) {
|
|
4113
4110
|
node._clearSelfAndDescendantCache(attr);
|
|
4114
4111
|
});
|
|
4115
4112
|
}
|
|
4116
4113
|
_setChildrenIndices() {
|
|
4117
4114
|
var _a;
|
|
4118
|
-
(_a = this.children) === null || _a ===
|
|
4115
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child, n) {
|
|
4119
4116
|
child.index = n;
|
|
4120
4117
|
});
|
|
4121
4118
|
this._requestDraw();
|
|
@@ -4186,7 +4183,7 @@
|
|
|
4186
4183
|
context.save();
|
|
4187
4184
|
context._applyGlobalCompositeOperation(this);
|
|
4188
4185
|
}
|
|
4189
|
-
(_a = this.children) === null || _a ===
|
|
4186
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) {
|
|
4190
4187
|
child[drawMethod](canvas, top, bufferCanvas);
|
|
4191
4188
|
});
|
|
4192
4189
|
if (hasComposition) {
|
|
@@ -4208,7 +4205,7 @@
|
|
|
4208
4205
|
height: 0,
|
|
4209
4206
|
};
|
|
4210
4207
|
const that = this;
|
|
4211
|
-
(_a = this.children) === null || _a ===
|
|
4208
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) {
|
|
4212
4209
|
if (!child.visible()) {
|
|
4213
4210
|
return;
|
|
4214
4211
|
}
|
|
@@ -4340,7 +4337,7 @@
|
|
|
4340
4337
|
hasRequiredStage = 1;
|
|
4341
4338
|
(function (exports) {
|
|
4342
4339
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4343
|
-
exports.Stage = exports.stages =
|
|
4340
|
+
exports.Stage = exports.stages = void 0;
|
|
4344
4341
|
const Util_1 = requireUtil();
|
|
4345
4342
|
const Factory_1 = requireFactory();
|
|
4346
4343
|
const Container_1 = requireContainer();
|
|
@@ -5057,7 +5054,7 @@
|
|
|
5057
5054
|
hasRequiredShape = 1;
|
|
5058
5055
|
(function (exports) {
|
|
5059
5056
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5060
|
-
exports.Shape = exports.shapes =
|
|
5057
|
+
exports.Shape = exports.shapes = void 0;
|
|
5061
5058
|
const Global_1 = requireGlobal();
|
|
5062
5059
|
const Util_1 = requireUtil();
|
|
5063
5060
|
const Factory_1 = requireFactory();
|
|
@@ -5290,7 +5287,7 @@
|
|
|
5290
5287
|
}
|
|
5291
5288
|
_useBufferCanvas(forceFill) {
|
|
5292
5289
|
var _a;
|
|
5293
|
-
const perfectDrawEnabled = (_a = this.attrs.perfectDrawEnabled) !== null && _a !==
|
|
5290
|
+
const perfectDrawEnabled = (_a = this.attrs.perfectDrawEnabled) !== null && _a !== void 0 ? _a : true;
|
|
5294
5291
|
if (!perfectDrawEnabled) {
|
|
5295
5292
|
return false;
|
|
5296
5293
|
}
|
|
@@ -5610,7 +5607,7 @@
|
|
|
5610
5607
|
if (hasRequiredLayer) return Layer;
|
|
5611
5608
|
hasRequiredLayer = 1;
|
|
5612
5609
|
Object.defineProperty(Layer, "__esModule", { value: true });
|
|
5613
|
-
Layer.Layer =
|
|
5610
|
+
Layer.Layer = void 0;
|
|
5614
5611
|
const Util_1 = requireUtil();
|
|
5615
5612
|
const Container_1 = requireContainer();
|
|
5616
5613
|
const Node_1 = requireNode();
|
|
@@ -5928,7 +5925,7 @@
|
|
|
5928
5925
|
if (hasRequiredFastLayer) return FastLayer;
|
|
5929
5926
|
hasRequiredFastLayer = 1;
|
|
5930
5927
|
Object.defineProperty(FastLayer, "__esModule", { value: true });
|
|
5931
|
-
FastLayer.FastLayer =
|
|
5928
|
+
FastLayer.FastLayer = void 0;
|
|
5932
5929
|
const Util_1 = requireUtil();
|
|
5933
5930
|
const Layer_1 = requireLayer();
|
|
5934
5931
|
const Global_1 = requireGlobal();
|
|
@@ -5953,7 +5950,7 @@
|
|
|
5953
5950
|
if (hasRequiredGroup) return Group;
|
|
5954
5951
|
hasRequiredGroup = 1;
|
|
5955
5952
|
Object.defineProperty(Group, "__esModule", { value: true });
|
|
5956
|
-
Group.Group =
|
|
5953
|
+
Group.Group = void 0;
|
|
5957
5954
|
const Util_1 = requireUtil();
|
|
5958
5955
|
const Container_1 = requireContainer();
|
|
5959
5956
|
const Global_1 = requireGlobal();
|
|
@@ -5979,7 +5976,7 @@
|
|
|
5979
5976
|
if (hasRequiredAnimation) return Animation;
|
|
5980
5977
|
hasRequiredAnimation = 1;
|
|
5981
5978
|
Object.defineProperty(Animation, "__esModule", { value: true });
|
|
5982
|
-
Animation.Animation =
|
|
5979
|
+
Animation.Animation = void 0;
|
|
5983
5980
|
const Global_1 = requireGlobal();
|
|
5984
5981
|
const Util_1 = requireUtil();
|
|
5985
5982
|
const now = (function () {
|
|
@@ -6135,7 +6132,7 @@
|
|
|
6135
6132
|
hasRequiredTween = 1;
|
|
6136
6133
|
(function (exports) {
|
|
6137
6134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6138
|
-
exports.Easings = exports.Tween =
|
|
6135
|
+
exports.Easings = exports.Tween = void 0;
|
|
6139
6136
|
const Util_1 = requireUtil();
|
|
6140
6137
|
const Animation_1 = requireAnimation();
|
|
6141
6138
|
const Node_1 = requireNode();
|
|
@@ -6668,7 +6665,7 @@
|
|
|
6668
6665
|
hasRequired_CoreInternals = 1;
|
|
6669
6666
|
(function (exports) {
|
|
6670
6667
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6671
|
-
exports.Konva =
|
|
6668
|
+
exports.Konva = void 0;
|
|
6672
6669
|
const Global_1 = requireGlobal();
|
|
6673
6670
|
const Util_1 = requireUtil();
|
|
6674
6671
|
const Node_1 = requireNode();
|
|
@@ -6715,7 +6712,7 @@
|
|
|
6715
6712
|
if (hasRequiredArc) return Arc;
|
|
6716
6713
|
hasRequiredArc = 1;
|
|
6717
6714
|
Object.defineProperty(Arc, "__esModule", { value: true });
|
|
6718
|
-
Arc.Arc =
|
|
6715
|
+
Arc.Arc = void 0;
|
|
6719
6716
|
const Factory_1 = requireFactory();
|
|
6720
6717
|
const Shape_1 = requireShape();
|
|
6721
6718
|
const Global_1 = requireGlobal();
|
|
@@ -6766,7 +6763,12 @@
|
|
|
6766
6763
|
Arc.Arc = Arc$1;
|
|
6767
6764
|
Arc$1.prototype._centroid = true;
|
|
6768
6765
|
Arc$1.prototype.className = 'Arc';
|
|
6769
|
-
Arc$1.prototype._attrsAffectingSize = [
|
|
6766
|
+
Arc$1.prototype._attrsAffectingSize = [
|
|
6767
|
+
'innerRadius',
|
|
6768
|
+
'outerRadius',
|
|
6769
|
+
'angle',
|
|
6770
|
+
'clockwise',
|
|
6771
|
+
];
|
|
6770
6772
|
(0, Global_2._registerNode)(Arc$1);
|
|
6771
6773
|
Factory_1.Factory.addGetterSetter(Arc$1, 'innerRadius', 0, (0, Validators_1.getNumberValidator)());
|
|
6772
6774
|
Factory_1.Factory.addGetterSetter(Arc$1, 'outerRadius', 0, (0, Validators_1.getNumberValidator)());
|
|
@@ -6785,7 +6787,7 @@
|
|
|
6785
6787
|
if (hasRequiredLine) return Line;
|
|
6786
6788
|
hasRequiredLine = 1;
|
|
6787
6789
|
Object.defineProperty(Line, "__esModule", { value: true });
|
|
6788
|
-
Line.Line =
|
|
6790
|
+
Line.Line = void 0;
|
|
6789
6791
|
const Factory_1 = requireFactory();
|
|
6790
6792
|
const Global_1 = requireGlobal();
|
|
6791
6793
|
const Shape_1 = requireShape();
|
|
@@ -6956,7 +6958,7 @@
|
|
|
6956
6958
|
hasRequiredBezierFunctions = 1;
|
|
6957
6959
|
(function (exports) {
|
|
6958
6960
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6959
|
-
exports.t2length = exports.getQuadraticArcLength = exports.getCubicArcLength = exports.binomialCoefficients = exports.cValues = exports.tValues =
|
|
6961
|
+
exports.t2length = exports.getQuadraticArcLength = exports.getCubicArcLength = exports.binomialCoefficients = exports.cValues = exports.tValues = void 0;
|
|
6960
6962
|
exports.tValues = [
|
|
6961
6963
|
[],
|
|
6962
6964
|
[],
|
|
@@ -7754,7 +7756,7 @@
|
|
|
7754
7756
|
if (hasRequiredPath) return Path;
|
|
7755
7757
|
hasRequiredPath = 1;
|
|
7756
7758
|
Object.defineProperty(Path, "__esModule", { value: true });
|
|
7757
|
-
Path.Path =
|
|
7759
|
+
Path.Path = void 0;
|
|
7758
7760
|
const Factory_1 = requireFactory();
|
|
7759
7761
|
const Shape_1 = requireShape();
|
|
7760
7762
|
const Global_1 = requireGlobal();
|
|
@@ -7937,8 +7939,8 @@
|
|
|
7937
7939
|
return null;
|
|
7938
7940
|
}
|
|
7939
7941
|
static getPointOnLine(dist, P1x, P1y, P2x, P2y, fromX, fromY) {
|
|
7940
|
-
fromX = fromX !== null && fromX !==
|
|
7941
|
-
fromY = fromY !== null && fromY !==
|
|
7942
|
+
fromX = fromX !== null && fromX !== void 0 ? fromX : P1x;
|
|
7943
|
+
fromY = fromY !== null && fromY !== void 0 ? fromY : P1y;
|
|
7942
7944
|
const len = this.getLineLength(P1x, P1y, P2x, P2y);
|
|
7943
7945
|
if (len < 1e-10) {
|
|
7944
7946
|
return { x: P1x, y: P1y };
|
|
@@ -8367,7 +8369,7 @@
|
|
|
8367
8369
|
if (hasRequiredArrow) return Arrow;
|
|
8368
8370
|
hasRequiredArrow = 1;
|
|
8369
8371
|
Object.defineProperty(Arrow, "__esModule", { value: true });
|
|
8370
|
-
Arrow.Arrow =
|
|
8372
|
+
Arrow.Arrow = void 0;
|
|
8371
8373
|
const Factory_1 = requireFactory();
|
|
8372
8374
|
const Line_1 = requireLine();
|
|
8373
8375
|
const Validators_1 = requireValidators();
|
|
@@ -8479,7 +8481,7 @@
|
|
|
8479
8481
|
if (hasRequiredCircle) return Circle;
|
|
8480
8482
|
hasRequiredCircle = 1;
|
|
8481
8483
|
Object.defineProperty(Circle, "__esModule", { value: true });
|
|
8482
|
-
Circle.Circle =
|
|
8484
|
+
Circle.Circle = void 0;
|
|
8483
8485
|
const Factory_1 = requireFactory();
|
|
8484
8486
|
const Shape_1 = requireShape();
|
|
8485
8487
|
const Validators_1 = requireValidators();
|
|
@@ -8525,7 +8527,7 @@
|
|
|
8525
8527
|
if (hasRequiredEllipse) return Ellipse;
|
|
8526
8528
|
hasRequiredEllipse = 1;
|
|
8527
8529
|
Object.defineProperty(Ellipse, "__esModule", { value: true });
|
|
8528
|
-
Ellipse.Ellipse =
|
|
8530
|
+
Ellipse.Ellipse = void 0;
|
|
8529
8531
|
const Factory_1 = requireFactory();
|
|
8530
8532
|
const Shape_1 = requireShape();
|
|
8531
8533
|
const Validators_1 = requireValidators();
|
|
@@ -8575,7 +8577,7 @@
|
|
|
8575
8577
|
if (hasRequiredImage) return Image$1;
|
|
8576
8578
|
hasRequiredImage = 1;
|
|
8577
8579
|
Object.defineProperty(Image$1, "__esModule", { value: true });
|
|
8578
|
-
Image$1.Image =
|
|
8580
|
+
Image$1.Image = void 0;
|
|
8579
8581
|
const Util_1 = requireUtil();
|
|
8580
8582
|
const Factory_1 = requireFactory();
|
|
8581
8583
|
const Shape_1 = requireShape();
|
|
@@ -8584,7 +8586,11 @@
|
|
|
8584
8586
|
class Image extends Shape_1.Shape {
|
|
8585
8587
|
constructor(attrs) {
|
|
8586
8588
|
super(attrs);
|
|
8587
|
-
this.
|
|
8589
|
+
this._loadListener = () => {
|
|
8590
|
+
this._requestDraw();
|
|
8591
|
+
};
|
|
8592
|
+
this.on('imageChange.konva', (props) => {
|
|
8593
|
+
this._removeImageLoad(props.oldVal);
|
|
8588
8594
|
this._setImageLoad();
|
|
8589
8595
|
});
|
|
8590
8596
|
this._setImageLoad();
|
|
@@ -8598,11 +8604,19 @@
|
|
|
8598
8604
|
return;
|
|
8599
8605
|
}
|
|
8600
8606
|
if (image && image['addEventListener']) {
|
|
8601
|
-
image['addEventListener']('load',
|
|
8602
|
-
|
|
8603
|
-
|
|
8607
|
+
image['addEventListener']('load', this._loadListener);
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8610
|
+
_removeImageLoad(image) {
|
|
8611
|
+
if (image && image['removeEventListener']) {
|
|
8612
|
+
image['removeEventListener']('load', this._loadListener);
|
|
8604
8613
|
}
|
|
8605
8614
|
}
|
|
8615
|
+
destroy() {
|
|
8616
|
+
this._removeImageLoad(this.image());
|
|
8617
|
+
super.destroy();
|
|
8618
|
+
return this;
|
|
8619
|
+
}
|
|
8606
8620
|
_useBufferCanvas() {
|
|
8607
8621
|
const hasCornerRadius = !!this.cornerRadius();
|
|
8608
8622
|
const hasShadow = this.hasShadow();
|
|
@@ -8666,11 +8680,11 @@
|
|
|
8666
8680
|
}
|
|
8667
8681
|
getWidth() {
|
|
8668
8682
|
var _a, _b;
|
|
8669
|
-
return (_a = this.attrs.width) !== null && _a !==
|
|
8683
|
+
return (_a = this.attrs.width) !== null && _a !== void 0 ? _a : (_b = this.image()) === null || _b === void 0 ? void 0 : _b.width;
|
|
8670
8684
|
}
|
|
8671
8685
|
getHeight() {
|
|
8672
8686
|
var _a, _b;
|
|
8673
|
-
return (_a = this.attrs.height) !== null && _a !==
|
|
8687
|
+
return (_a = this.attrs.height) !== null && _a !== void 0 ? _a : (_b = this.image()) === null || _b === void 0 ? void 0 : _b.height;
|
|
8674
8688
|
}
|
|
8675
8689
|
static fromURL(url, callback, onError = null) {
|
|
8676
8690
|
const img = Util_1.Util.createImageElement();
|
|
@@ -8706,7 +8720,7 @@
|
|
|
8706
8720
|
if (hasRequiredLabel) return Label;
|
|
8707
8721
|
hasRequiredLabel = 1;
|
|
8708
8722
|
Object.defineProperty(Label, "__esModule", { value: true });
|
|
8709
|
-
Label.Tag = Label.Label =
|
|
8723
|
+
Label.Tag = Label.Label = void 0;
|
|
8710
8724
|
const Factory_1 = requireFactory();
|
|
8711
8725
|
const Shape_1 = requireShape();
|
|
8712
8726
|
const Group_1 = requireGroup();
|
|
@@ -8893,7 +8907,7 @@
|
|
|
8893
8907
|
if (hasRequiredRect) return Rect;
|
|
8894
8908
|
hasRequiredRect = 1;
|
|
8895
8909
|
Object.defineProperty(Rect, "__esModule", { value: true });
|
|
8896
|
-
Rect.Rect =
|
|
8910
|
+
Rect.Rect = void 0;
|
|
8897
8911
|
const Factory_1 = requireFactory();
|
|
8898
8912
|
const Shape_1 = requireShape();
|
|
8899
8913
|
const Global_1 = requireGlobal();
|
|
@@ -8928,7 +8942,7 @@
|
|
|
8928
8942
|
if (hasRequiredRegularPolygon) return RegularPolygon;
|
|
8929
8943
|
hasRequiredRegularPolygon = 1;
|
|
8930
8944
|
Object.defineProperty(RegularPolygon, "__esModule", { value: true });
|
|
8931
|
-
RegularPolygon.RegularPolygon =
|
|
8945
|
+
RegularPolygon.RegularPolygon = void 0;
|
|
8932
8946
|
const Factory_1 = requireFactory();
|
|
8933
8947
|
const Shape_1 = requireShape();
|
|
8934
8948
|
const Validators_1 = requireValidators();
|
|
@@ -9006,7 +9020,7 @@
|
|
|
9006
9020
|
if (hasRequiredRing) return Ring;
|
|
9007
9021
|
hasRequiredRing = 1;
|
|
9008
9022
|
Object.defineProperty(Ring, "__esModule", { value: true });
|
|
9009
|
-
Ring.Ring =
|
|
9023
|
+
Ring.Ring = void 0;
|
|
9010
9024
|
const Factory_1 = requireFactory();
|
|
9011
9025
|
const Shape_1 = requireShape();
|
|
9012
9026
|
const Validators_1 = requireValidators();
|
|
@@ -9052,7 +9066,7 @@
|
|
|
9052
9066
|
if (hasRequiredSprite) return Sprite;
|
|
9053
9067
|
hasRequiredSprite = 1;
|
|
9054
9068
|
Object.defineProperty(Sprite, "__esModule", { value: true });
|
|
9055
|
-
Sprite.Sprite =
|
|
9069
|
+
Sprite.Sprite = void 0;
|
|
9056
9070
|
const Factory_1 = requireFactory();
|
|
9057
9071
|
const Shape_1 = requireShape();
|
|
9058
9072
|
const Animation_1 = requireAnimation();
|
|
@@ -9173,7 +9187,7 @@
|
|
|
9173
9187
|
if (hasRequiredStar) return Star;
|
|
9174
9188
|
hasRequiredStar = 1;
|
|
9175
9189
|
Object.defineProperty(Star, "__esModule", { value: true });
|
|
9176
|
-
Star.Star =
|
|
9190
|
+
Star.Star = void 0;
|
|
9177
9191
|
const Factory_1 = requireFactory();
|
|
9178
9192
|
const Shape_1 = requireShape();
|
|
9179
9193
|
const Validators_1 = requireValidators();
|
|
@@ -9224,7 +9238,7 @@
|
|
|
9224
9238
|
if (hasRequiredText) return Text;
|
|
9225
9239
|
hasRequiredText = 1;
|
|
9226
9240
|
Object.defineProperty(Text, "__esModule", { value: true });
|
|
9227
|
-
Text.Text =
|
|
9241
|
+
Text.Text = void 0;
|
|
9228
9242
|
Text.stringToArray = stringToArray;
|
|
9229
9243
|
const Util_1 = requireUtil();
|
|
9230
9244
|
const Factory_1 = requireFactory();
|
|
@@ -9470,17 +9484,17 @@
|
|
|
9470
9484
|
_context.restore();
|
|
9471
9485
|
const scaleFactor = fontSize / 100;
|
|
9472
9486
|
return {
|
|
9473
|
-
actualBoundingBoxAscent: (_a = metrics.actualBoundingBoxAscent) !== null && _a !==
|
|
9474
|
-
actualBoundingBoxDescent: (_b = metrics.actualBoundingBoxDescent) !== null && _b !==
|
|
9475
|
-
actualBoundingBoxLeft: (_c = metrics.actualBoundingBoxLeft) !== null && _c !==
|
|
9476
|
-
actualBoundingBoxRight: (_d = metrics.actualBoundingBoxRight) !== null && _d !==
|
|
9477
|
-
alphabeticBaseline: (_e = metrics.alphabeticBaseline) !== null && _e !==
|
|
9478
|
-
emHeightAscent: (_f = metrics.emHeightAscent) !== null && _f !==
|
|
9479
|
-
emHeightDescent: (_g = metrics.emHeightDescent) !== null && _g !==
|
|
9480
|
-
fontBoundingBoxAscent: (_h = metrics.fontBoundingBoxAscent) !== null && _h !==
|
|
9481
|
-
fontBoundingBoxDescent: (_j = metrics.fontBoundingBoxDescent) !== null && _j !==
|
|
9482
|
-
hangingBaseline: (_k = metrics.hangingBaseline) !== null && _k !==
|
|
9483
|
-
ideographicBaseline: (_l = metrics.ideographicBaseline) !== null && _l !==
|
|
9487
|
+
actualBoundingBoxAscent: (_a = metrics.actualBoundingBoxAscent) !== null && _a !== void 0 ? _a : 71.58203125 * scaleFactor,
|
|
9488
|
+
actualBoundingBoxDescent: (_b = metrics.actualBoundingBoxDescent) !== null && _b !== void 0 ? _b : 0,
|
|
9489
|
+
actualBoundingBoxLeft: (_c = metrics.actualBoundingBoxLeft) !== null && _c !== void 0 ? _c : -7.421875 * scaleFactor,
|
|
9490
|
+
actualBoundingBoxRight: (_d = metrics.actualBoundingBoxRight) !== null && _d !== void 0 ? _d : 75.732421875 * scaleFactor,
|
|
9491
|
+
alphabeticBaseline: (_e = metrics.alphabeticBaseline) !== null && _e !== void 0 ? _e : 0,
|
|
9492
|
+
emHeightAscent: (_f = metrics.emHeightAscent) !== null && _f !== void 0 ? _f : 100 * scaleFactor,
|
|
9493
|
+
emHeightDescent: (_g = metrics.emHeightDescent) !== null && _g !== void 0 ? _g : -20 * scaleFactor,
|
|
9494
|
+
fontBoundingBoxAscent: (_h = metrics.fontBoundingBoxAscent) !== null && _h !== void 0 ? _h : 91 * scaleFactor,
|
|
9495
|
+
fontBoundingBoxDescent: (_j = metrics.fontBoundingBoxDescent) !== null && _j !== void 0 ? _j : 21 * scaleFactor,
|
|
9496
|
+
hangingBaseline: (_k = metrics.hangingBaseline) !== null && _k !== void 0 ? _k : 72.80000305175781 * scaleFactor,
|
|
9497
|
+
ideographicBaseline: (_l = metrics.ideographicBaseline) !== null && _l !== void 0 ? _l : -21 * scaleFactor,
|
|
9484
9498
|
width: metrics.width,
|
|
9485
9499
|
height: fontSize,
|
|
9486
9500
|
};
|
|
@@ -9524,8 +9538,14 @@
|
|
|
9524
9538
|
while (line.length > 0) {
|
|
9525
9539
|
let low = 0, high = stringToArray(line).length, match = '', matchWidth = 0;
|
|
9526
9540
|
while (low < high) {
|
|
9527
|
-
const mid = (low + high) >>> 1, lineArray = stringToArray(line), substr = lineArray.slice(0, mid + 1).join(''), substrWidth = this._getTextWidth(substr)
|
|
9528
|
-
|
|
9541
|
+
const mid = (low + high) >>> 1, lineArray = stringToArray(line), substr = lineArray.slice(0, mid + 1).join(''), substrWidth = this._getTextWidth(substr);
|
|
9542
|
+
const shouldConsiderEllipsis = shouldAddEllipsis &&
|
|
9543
|
+
fixedHeight &&
|
|
9544
|
+
currentHeightPx + lineHeightPx > maxHeightPx;
|
|
9545
|
+
const effectiveWidth = shouldConsiderEllipsis
|
|
9546
|
+
? substrWidth + additionalWidth
|
|
9547
|
+
: substrWidth;
|
|
9548
|
+
if (effectiveWidth <= maxWidth) {
|
|
9529
9549
|
low = mid + 1;
|
|
9530
9550
|
match = substr;
|
|
9531
9551
|
matchWidth = substrWidth;
|
|
@@ -9672,7 +9692,7 @@
|
|
|
9672
9692
|
if (hasRequiredTextPath) return TextPath;
|
|
9673
9693
|
hasRequiredTextPath = 1;
|
|
9674
9694
|
Object.defineProperty(TextPath, "__esModule", { value: true });
|
|
9675
|
-
TextPath.TextPath =
|
|
9695
|
+
TextPath.TextPath = void 0;
|
|
9676
9696
|
const Util_1 = requireUtil();
|
|
9677
9697
|
const Factory_1 = requireFactory();
|
|
9678
9698
|
const Shape_1 = requireShape();
|
|
@@ -9922,7 +9942,7 @@
|
|
|
9922
9942
|
if (hasRequiredTransformer) return Transformer;
|
|
9923
9943
|
hasRequiredTransformer = 1;
|
|
9924
9944
|
Object.defineProperty(Transformer, "__esModule", { value: true });
|
|
9925
|
-
Transformer.Transformer =
|
|
9945
|
+
Transformer.Transformer = void 0;
|
|
9926
9946
|
const Util_1 = requireUtil();
|
|
9927
9947
|
const Factory_1 = requireFactory();
|
|
9928
9948
|
const Node_1 = requireNode();
|
|
@@ -10119,10 +10139,12 @@
|
|
|
10119
10139
|
this.update();
|
|
10120
10140
|
}
|
|
10121
10141
|
};
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10142
|
+
if (node._attrsAffectingSize.length) {
|
|
10143
|
+
const additionalEvents = node._attrsAffectingSize
|
|
10144
|
+
.map((prop) => prop + 'Change.' + this._getEventNamespace())
|
|
10145
|
+
.join(' ');
|
|
10146
|
+
node.on(additionalEvents, onChange);
|
|
10147
|
+
}
|
|
10126
10148
|
node.on(TRANSFORM_CHANGE_STR.map((e) => e + `.${this._getEventNamespace()}`).join(' '), onChange);
|
|
10127
10149
|
node.on(`absoluteTransformChange.${this._getEventNamespace()}`, onChange);
|
|
10128
10150
|
this._proxyDrag(node);
|
|
@@ -10597,12 +10619,12 @@
|
|
|
10597
10619
|
const node = this.getNode();
|
|
10598
10620
|
activeTransformersCount--;
|
|
10599
10621
|
this._fire('transformend', { evt: e, target: node });
|
|
10600
|
-
(_a = this.getLayer()) === null || _a ===
|
|
10622
|
+
(_a = this.getLayer()) === null || _a === void 0 ? void 0 : _a.batchDraw();
|
|
10601
10623
|
if (node) {
|
|
10602
10624
|
this._nodes.forEach((target) => {
|
|
10603
10625
|
var _a;
|
|
10604
10626
|
target._fire('transformend', { evt: e, target });
|
|
10605
|
-
(_a = target.getLayer()) === null || _a ===
|
|
10627
|
+
(_a = target.getLayer()) === null || _a === void 0 ? void 0 : _a.batchDraw();
|
|
10606
10628
|
});
|
|
10607
10629
|
}
|
|
10608
10630
|
this._movingAnchorName = null;
|
|
@@ -10715,7 +10737,7 @@
|
|
|
10715
10737
|
.multiply(localTransform);
|
|
10716
10738
|
const attrs = newLocalTransform.decompose();
|
|
10717
10739
|
node.setAttrs(attrs);
|
|
10718
|
-
(_a = node.getLayer()) === null || _a ===
|
|
10740
|
+
(_a = node.getLayer()) === null || _a === void 0 ? void 0 : _a.batchDraw();
|
|
10719
10741
|
});
|
|
10720
10742
|
this.rotation(Util_1.Util._getRotation(newAttrs.rotation));
|
|
10721
10743
|
this._nodes.forEach((node) => {
|
|
@@ -10830,7 +10852,7 @@
|
|
|
10830
10852
|
styleFunc(node);
|
|
10831
10853
|
});
|
|
10832
10854
|
}
|
|
10833
|
-
(_a = this.getLayer()) === null || _a ===
|
|
10855
|
+
(_a = this.getLayer()) === null || _a === void 0 ? void 0 : _a.batchDraw();
|
|
10834
10856
|
}
|
|
10835
10857
|
isTransforming() {
|
|
10836
10858
|
return this._transforming;
|
|
@@ -10937,7 +10959,7 @@
|
|
|
10937
10959
|
if (hasRequiredWedge) return Wedge;
|
|
10938
10960
|
hasRequiredWedge = 1;
|
|
10939
10961
|
Object.defineProperty(Wedge, "__esModule", { value: true });
|
|
10940
|
-
Wedge.Wedge =
|
|
10962
|
+
Wedge.Wedge = void 0;
|
|
10941
10963
|
const Factory_1 = requireFactory();
|
|
10942
10964
|
const Shape_1 = requireShape();
|
|
10943
10965
|
const Global_1 = requireGlobal();
|
|
@@ -10988,7 +11010,7 @@
|
|
|
10988
11010
|
if (hasRequiredBlur) return Blur;
|
|
10989
11011
|
hasRequiredBlur = 1;
|
|
10990
11012
|
Object.defineProperty(Blur, "__esModule", { value: true });
|
|
10991
|
-
Blur.Blur =
|
|
11013
|
+
Blur.Blur = void 0;
|
|
10992
11014
|
const Factory_1 = requireFactory();
|
|
10993
11015
|
const Node_1 = requireNode();
|
|
10994
11016
|
const Validators_1 = requireValidators();
|
|
@@ -11236,7 +11258,7 @@
|
|
|
11236
11258
|
if (hasRequiredBrighten) return Brighten;
|
|
11237
11259
|
hasRequiredBrighten = 1;
|
|
11238
11260
|
Object.defineProperty(Brighten, "__esModule", { value: true });
|
|
11239
|
-
Brighten.Brighten =
|
|
11261
|
+
Brighten.Brighten = void 0;
|
|
11240
11262
|
const Factory_1 = requireFactory();
|
|
11241
11263
|
const Node_1 = requireNode();
|
|
11242
11264
|
const Validators_1 = requireValidators();
|
|
@@ -11261,7 +11283,7 @@
|
|
|
11261
11283
|
if (hasRequiredContrast) return Contrast;
|
|
11262
11284
|
hasRequiredContrast = 1;
|
|
11263
11285
|
Object.defineProperty(Contrast, "__esModule", { value: true });
|
|
11264
|
-
Contrast.Contrast =
|
|
11286
|
+
Contrast.Contrast = void 0;
|
|
11265
11287
|
const Factory_1 = requireFactory();
|
|
11266
11288
|
const Node_1 = requireNode();
|
|
11267
11289
|
const Validators_1 = requireValidators();
|
|
@@ -11309,7 +11331,7 @@
|
|
|
11309
11331
|
if (hasRequiredEmboss) return Emboss;
|
|
11310
11332
|
hasRequiredEmboss = 1;
|
|
11311
11333
|
Object.defineProperty(Emboss, "__esModule", { value: true });
|
|
11312
|
-
Emboss.Emboss =
|
|
11334
|
+
Emboss.Emboss = void 0;
|
|
11313
11335
|
const Factory_1 = requireFactory();
|
|
11314
11336
|
const Node_1 = requireNode();
|
|
11315
11337
|
const Util_1 = requireUtil();
|
|
@@ -11425,7 +11447,7 @@
|
|
|
11425
11447
|
if (hasRequiredEnhance) return Enhance;
|
|
11426
11448
|
hasRequiredEnhance = 1;
|
|
11427
11449
|
Object.defineProperty(Enhance, "__esModule", { value: true });
|
|
11428
|
-
Enhance.Enhance =
|
|
11450
|
+
Enhance.Enhance = void 0;
|
|
11429
11451
|
const Factory_1 = requireFactory();
|
|
11430
11452
|
const Node_1 = requireNode();
|
|
11431
11453
|
const Validators_1 = requireValidators();
|
|
@@ -11522,7 +11544,7 @@
|
|
|
11522
11544
|
if (hasRequiredGrayscale) return Grayscale;
|
|
11523
11545
|
hasRequiredGrayscale = 1;
|
|
11524
11546
|
Object.defineProperty(Grayscale, "__esModule", { value: true });
|
|
11525
|
-
Grayscale.Grayscale =
|
|
11547
|
+
Grayscale.Grayscale = void 0;
|
|
11526
11548
|
const Grayscale$1 = function (imageData) {
|
|
11527
11549
|
const data = imageData.data, len = data.length;
|
|
11528
11550
|
for (let i = 0; i < len; i += 4) {
|
|
@@ -11544,7 +11566,7 @@
|
|
|
11544
11566
|
if (hasRequiredHSL) return HSL;
|
|
11545
11567
|
hasRequiredHSL = 1;
|
|
11546
11568
|
Object.defineProperty(HSL, "__esModule", { value: true });
|
|
11547
|
-
HSL.HSL =
|
|
11569
|
+
HSL.HSL = void 0;
|
|
11548
11570
|
const Factory_1 = requireFactory();
|
|
11549
11571
|
const Node_1 = requireNode();
|
|
11550
11572
|
const Validators_1 = requireValidators();
|
|
@@ -11581,7 +11603,7 @@
|
|
|
11581
11603
|
if (hasRequiredHSV) return HSV;
|
|
11582
11604
|
hasRequiredHSV = 1;
|
|
11583
11605
|
Object.defineProperty(HSV, "__esModule", { value: true });
|
|
11584
|
-
HSV.HSV =
|
|
11606
|
+
HSV.HSV = void 0;
|
|
11585
11607
|
const Factory_1 = requireFactory();
|
|
11586
11608
|
const Node_1 = requireNode();
|
|
11587
11609
|
const Validators_1 = requireValidators();
|
|
@@ -11618,7 +11640,7 @@
|
|
|
11618
11640
|
if (hasRequiredInvert) return Invert;
|
|
11619
11641
|
hasRequiredInvert = 1;
|
|
11620
11642
|
Object.defineProperty(Invert, "__esModule", { value: true });
|
|
11621
|
-
Invert.Invert =
|
|
11643
|
+
Invert.Invert = void 0;
|
|
11622
11644
|
const Invert$1 = function (imageData) {
|
|
11623
11645
|
const data = imageData.data, len = data.length;
|
|
11624
11646
|
for (let i = 0; i < len; i += 4) {
|
|
@@ -11639,7 +11661,7 @@
|
|
|
11639
11661
|
if (hasRequiredKaleidoscope) return Kaleidoscope;
|
|
11640
11662
|
hasRequiredKaleidoscope = 1;
|
|
11641
11663
|
Object.defineProperty(Kaleidoscope, "__esModule", { value: true });
|
|
11642
|
-
Kaleidoscope.Kaleidoscope =
|
|
11664
|
+
Kaleidoscope.Kaleidoscope = void 0;
|
|
11643
11665
|
const Factory_1 = requireFactory();
|
|
11644
11666
|
const Node_1 = requireNode();
|
|
11645
11667
|
const Util_1 = requireUtil();
|
|
@@ -11785,7 +11807,7 @@
|
|
|
11785
11807
|
if (hasRequiredMask) return Mask;
|
|
11786
11808
|
hasRequiredMask = 1;
|
|
11787
11809
|
Object.defineProperty(Mask, "__esModule", { value: true });
|
|
11788
|
-
Mask.Mask =
|
|
11810
|
+
Mask.Mask = void 0;
|
|
11789
11811
|
const Factory_1 = requireFactory();
|
|
11790
11812
|
const Node_1 = requireNode();
|
|
11791
11813
|
const Validators_1 = requireValidators();
|
|
@@ -11939,7 +11961,7 @@
|
|
|
11939
11961
|
if (hasRequiredNoise) return Noise;
|
|
11940
11962
|
hasRequiredNoise = 1;
|
|
11941
11963
|
Object.defineProperty(Noise, "__esModule", { value: true });
|
|
11942
|
-
Noise.Noise =
|
|
11964
|
+
Noise.Noise = void 0;
|
|
11943
11965
|
const Factory_1 = requireFactory();
|
|
11944
11966
|
const Node_1 = requireNode();
|
|
11945
11967
|
const Validators_1 = requireValidators();
|
|
@@ -11964,7 +11986,7 @@
|
|
|
11964
11986
|
if (hasRequiredPixelate) return Pixelate;
|
|
11965
11987
|
hasRequiredPixelate = 1;
|
|
11966
11988
|
Object.defineProperty(Pixelate, "__esModule", { value: true });
|
|
11967
|
-
Pixelate.Pixelate =
|
|
11989
|
+
Pixelate.Pixelate = void 0;
|
|
11968
11990
|
const Factory_1 = requireFactory();
|
|
11969
11991
|
const Util_1 = requireUtil();
|
|
11970
11992
|
const Node_1 = requireNode();
|
|
@@ -12037,7 +12059,7 @@
|
|
|
12037
12059
|
if (hasRequiredPosterize) return Posterize;
|
|
12038
12060
|
hasRequiredPosterize = 1;
|
|
12039
12061
|
Object.defineProperty(Posterize, "__esModule", { value: true });
|
|
12040
|
-
Posterize.Posterize =
|
|
12062
|
+
Posterize.Posterize = void 0;
|
|
12041
12063
|
const Factory_1 = requireFactory();
|
|
12042
12064
|
const Node_1 = requireNode();
|
|
12043
12065
|
const Validators_1 = requireValidators();
|
|
@@ -12060,7 +12082,7 @@
|
|
|
12060
12082
|
if (hasRequiredRGB) return RGB;
|
|
12061
12083
|
hasRequiredRGB = 1;
|
|
12062
12084
|
Object.defineProperty(RGB, "__esModule", { value: true });
|
|
12063
|
-
RGB.RGB =
|
|
12085
|
+
RGB.RGB = void 0;
|
|
12064
12086
|
const Factory_1 = requireFactory();
|
|
12065
12087
|
const Node_1 = requireNode();
|
|
12066
12088
|
const Validators_1 = requireValidators();
|
|
@@ -12111,7 +12133,7 @@
|
|
|
12111
12133
|
if (hasRequiredRGBA) return RGBA;
|
|
12112
12134
|
hasRequiredRGBA = 1;
|
|
12113
12135
|
Object.defineProperty(RGBA, "__esModule", { value: true });
|
|
12114
|
-
RGBA.RGBA =
|
|
12136
|
+
RGBA.RGBA = void 0;
|
|
12115
12137
|
const Factory_1 = requireFactory();
|
|
12116
12138
|
const Node_1 = requireNode();
|
|
12117
12139
|
const Validators_1 = requireValidators();
|
|
@@ -12173,7 +12195,7 @@
|
|
|
12173
12195
|
if (hasRequiredSepia) return Sepia;
|
|
12174
12196
|
hasRequiredSepia = 1;
|
|
12175
12197
|
Object.defineProperty(Sepia, "__esModule", { value: true });
|
|
12176
|
-
Sepia.Sepia =
|
|
12198
|
+
Sepia.Sepia = void 0;
|
|
12177
12199
|
const Sepia$1 = function (imageData) {
|
|
12178
12200
|
const data = imageData.data, nPixels = data.length;
|
|
12179
12201
|
for (let i = 0; i < nPixels; i += 4) {
|
|
@@ -12197,7 +12219,7 @@
|
|
|
12197
12219
|
if (hasRequiredSolarize) return Solarize;
|
|
12198
12220
|
hasRequiredSolarize = 1;
|
|
12199
12221
|
Object.defineProperty(Solarize, "__esModule", { value: true });
|
|
12200
|
-
Solarize.Solarize =
|
|
12222
|
+
Solarize.Solarize = void 0;
|
|
12201
12223
|
const Solarize$1 = function (imageData) {
|
|
12202
12224
|
const data = imageData.data, w = imageData.width, h = imageData.height, w4 = w * 4;
|
|
12203
12225
|
let y = h;
|
|
@@ -12236,7 +12258,7 @@
|
|
|
12236
12258
|
if (hasRequiredThreshold) return Threshold;
|
|
12237
12259
|
hasRequiredThreshold = 1;
|
|
12238
12260
|
Object.defineProperty(Threshold, "__esModule", { value: true });
|
|
12239
|
-
Threshold.Threshold =
|
|
12261
|
+
Threshold.Threshold = void 0;
|
|
12240
12262
|
const Factory_1 = requireFactory();
|
|
12241
12263
|
const Node_1 = requireNode();
|
|
12242
12264
|
const Validators_1 = requireValidators();
|
|
@@ -12257,7 +12279,7 @@
|
|
|
12257
12279
|
if (hasRequired_FullInternals) return _FullInternals;
|
|
12258
12280
|
hasRequired_FullInternals = 1;
|
|
12259
12281
|
Object.defineProperty(_FullInternals, "__esModule", { value: true });
|
|
12260
|
-
_FullInternals.Konva =
|
|
12282
|
+
_FullInternals.Konva = void 0;
|
|
12261
12283
|
const _CoreInternals_1 = require_CoreInternals();
|
|
12262
12284
|
const Arc_1 = requireArc();
|
|
12263
12285
|
const Arrow_1 = requireArrow();
|
|
@@ -12418,8 +12440,8 @@
|
|
|
12418
12440
|
}
|
|
12419
12441
|
if (!params) params = {};
|
|
12420
12442
|
if (!params.points) params.points = [ {
|
|
12421
|
-
x:
|
|
12422
|
-
y:
|
|
12443
|
+
x: 0,
|
|
12444
|
+
y: 0
|
|
12423
12445
|
}, {
|
|
12424
12446
|
x: 100,
|
|
12425
12447
|
y: 100
|
|
@@ -12427,8 +12449,8 @@
|
|
|
12427
12449
|
const konvaPoints = [];
|
|
12428
12450
|
params.points.forEach((point => konvaPoints.push(point.x, point.y)));
|
|
12429
12451
|
this._ref = new Konva.Line({
|
|
12430
|
-
stroke: (_a = params.color) !== null && _a !==
|
|
12431
|
-
strokeWidth: (_b = params.width) !== null && _b !==
|
|
12452
|
+
stroke: (_a = params.color) !== null && _a !== void 0 ? _a : "#ff0000",
|
|
12453
|
+
strokeWidth: (_b = params.width) !== null && _b !== void 0 ? _b : 4,
|
|
12432
12454
|
globalCompositeOperation: "source-over",
|
|
12433
12455
|
lineCap: "round",
|
|
12434
12456
|
lineJoin: "round",
|
|
@@ -12527,20 +12549,20 @@
|
|
|
12527
12549
|
}
|
|
12528
12550
|
if (!params) params = {};
|
|
12529
12551
|
if (!params.position) params.position = {
|
|
12530
|
-
x:
|
|
12531
|
-
y:
|
|
12552
|
+
x: 0,
|
|
12553
|
+
y: 0
|
|
12532
12554
|
};
|
|
12533
12555
|
if (!params.text) params.text = "default";
|
|
12534
12556
|
this._ref = new Konva.Text({
|
|
12535
12557
|
x: params.position.x,
|
|
12536
12558
|
y: params.position.y,
|
|
12537
12559
|
text: params.text,
|
|
12538
|
-
fontSize: (_a = params.fontSize) !== null && _a !==
|
|
12560
|
+
fontSize: (_a = params.fontSize) !== null && _a !== void 0 ? _a : 34,
|
|
12539
12561
|
fontFamily: this.TEXT_FONT_FAMILY,
|
|
12540
|
-
fill: (_b = params.color) !== null && _b !==
|
|
12562
|
+
fill: (_b = params.color) !== null && _b !== void 0 ? _b : "#ff0000",
|
|
12541
12563
|
align: "left",
|
|
12542
12564
|
draggable: true,
|
|
12543
|
-
rotation: (_c = params.rotation) !== null && _c !==
|
|
12565
|
+
rotation: (_c = params.rotation) !== null && _c !== void 0 ? _c : 0
|
|
12544
12566
|
});
|
|
12545
12567
|
this._ref.width(this._ref.getTextWidth());
|
|
12546
12568
|
this._ref.on("transform", (e => {
|
|
@@ -12634,19 +12656,19 @@
|
|
|
12634
12656
|
}
|
|
12635
12657
|
if (!params) params = {};
|
|
12636
12658
|
if (!params.position) params.position = {
|
|
12637
|
-
x:
|
|
12638
|
-
y:
|
|
12659
|
+
x: 0,
|
|
12660
|
+
y: 0
|
|
12639
12661
|
};
|
|
12640
12662
|
this._ref = new Konva.Rect({
|
|
12641
|
-
stroke: (_a = params.color) !== null && _a !==
|
|
12642
|
-
strokeWidth: (_b = params.lineWidth) !== null && _b !==
|
|
12663
|
+
stroke: (_a = params.color) !== null && _a !== void 0 ? _a : "#ff0000",
|
|
12664
|
+
strokeWidth: (_b = params.lineWidth) !== null && _b !== void 0 ? _b : 4,
|
|
12643
12665
|
globalCompositeOperation: "source-over",
|
|
12644
12666
|
lineCap: "round",
|
|
12645
12667
|
lineJoin: "round",
|
|
12646
12668
|
x: params.position.x,
|
|
12647
12669
|
y: params.position.y,
|
|
12648
|
-
width: (_c = params.width) !== null && _c !==
|
|
12649
|
-
height: (_d = params.height) !== null && _d !==
|
|
12670
|
+
width: (_c = params.width) !== null && _c !== void 0 ? _c : 200,
|
|
12671
|
+
height: (_d = params.height) !== null && _d !== void 0 ? _d : 200,
|
|
12650
12672
|
draggable: true,
|
|
12651
12673
|
strokeScaleEnabled: false
|
|
12652
12674
|
});
|
|
@@ -12748,16 +12770,16 @@
|
|
|
12748
12770
|
}
|
|
12749
12771
|
if (!params) params = {};
|
|
12750
12772
|
if (!params.position) params.position = {
|
|
12751
|
-
x:
|
|
12752
|
-
y:
|
|
12773
|
+
x: 0,
|
|
12774
|
+
y: 0
|
|
12753
12775
|
};
|
|
12754
12776
|
if (!params.radius) params.radius = {
|
|
12755
12777
|
x: 25,
|
|
12756
12778
|
y: 25
|
|
12757
12779
|
};
|
|
12758
12780
|
this._ref = new Konva.Ellipse({
|
|
12759
|
-
stroke: (_a = params.color) !== null && _a !==
|
|
12760
|
-
strokeWidth: (_b = params.lineWidth) !== null && _b !==
|
|
12781
|
+
stroke: (_a = params.color) !== null && _a !== void 0 ? _a : "#ff0000",
|
|
12782
|
+
strokeWidth: (_b = params.lineWidth) !== null && _b !== void 0 ? _b : 4,
|
|
12761
12783
|
globalCompositeOperation: "source-over",
|
|
12762
12784
|
lineCap: "round",
|
|
12763
12785
|
lineJoin: "round",
|
|
@@ -12878,16 +12900,16 @@
|
|
|
12878
12900
|
}
|
|
12879
12901
|
if (!params) params = {};
|
|
12880
12902
|
if (!params.start) params.start = {
|
|
12881
|
-
x:
|
|
12882
|
-
y:
|
|
12903
|
+
x: 0,
|
|
12904
|
+
y: 0
|
|
12883
12905
|
};
|
|
12884
12906
|
if (!params.end) params.end = {
|
|
12885
12907
|
x: 100,
|
|
12886
12908
|
y: 100
|
|
12887
12909
|
};
|
|
12888
12910
|
this._ref = new Konva.Arrow({
|
|
12889
|
-
stroke: (_a = params.color) !== null && _a !==
|
|
12890
|
-
fill: (_b = params.color) !== null && _b !==
|
|
12911
|
+
stroke: (_a = params.color) !== null && _a !== void 0 ? _a : "#ff0000",
|
|
12912
|
+
fill: (_b = params.color) !== null && _b !== void 0 ? _b : "#ff0000",
|
|
12891
12913
|
strokeWidth: 4,
|
|
12892
12914
|
globalCompositeOperation: "source-over",
|
|
12893
12915
|
lineCap: "round",
|
|
@@ -12994,8 +13016,8 @@
|
|
|
12994
13016
|
}
|
|
12995
13017
|
if (!params) params = {};
|
|
12996
13018
|
if (!params.position) params.position = {
|
|
12997
|
-
x:
|
|
12998
|
-
y:
|
|
13019
|
+
x: 0,
|
|
13020
|
+
y: 0
|
|
12999
13021
|
};
|
|
13000
13022
|
if (!params.src || !params.src.startsWith(this.BASE64_HEADER_START)) params.src = this.BASE64_NOT_FOUND;
|
|
13001
13023
|
this._canvasImage = new Image;
|
|
@@ -13027,8 +13049,8 @@
|
|
|
13027
13049
|
x: params.position.x,
|
|
13028
13050
|
y: params.position.y,
|
|
13029
13051
|
image: this._canvasImage,
|
|
13030
|
-
width: (_a = params.width) !== null && _a !==
|
|
13031
|
-
height: (_b = params.height) !== null && _b !==
|
|
13052
|
+
width: (_a = params.width) !== null && _a !== void 0 ? _a : 0,
|
|
13053
|
+
height: (_b = params.height) !== null && _b !== void 0 ? _b : 0,
|
|
13032
13054
|
draggable: true
|
|
13033
13055
|
});
|
|
13034
13056
|
this._ref.on("transform", (e => {
|
|
@@ -13131,17 +13153,17 @@
|
|
|
13131
13153
|
}
|
|
13132
13154
|
if (!params) params = {};
|
|
13133
13155
|
if (!params.position) params.position = {
|
|
13134
|
-
x:
|
|
13135
|
-
y:
|
|
13156
|
+
x: 0,
|
|
13157
|
+
y: 0
|
|
13136
13158
|
};
|
|
13137
13159
|
const arcRadius = 16;
|
|
13138
13160
|
this._ref = new Konva.Shape({
|
|
13139
13161
|
x: params.position.x,
|
|
13140
13162
|
y: params.position.y,
|
|
13141
|
-
width: (_a = params.width) !== null && _a !==
|
|
13142
|
-
height: (_b = params.height) !== null && _b !==
|
|
13143
|
-
stroke: (_c = params.color) !== null && _c !==
|
|
13144
|
-
strokeWidth: (_d = params.lineWidth) !== null && _d !==
|
|
13163
|
+
width: (_a = params.width) !== null && _a !== void 0 ? _a : 200,
|
|
13164
|
+
height: (_b = params.height) !== null && _b !== void 0 ? _b : 200,
|
|
13165
|
+
stroke: (_c = params.color) !== null && _c !== void 0 ? _c : "#ff0000",
|
|
13166
|
+
strokeWidth: (_d = params.lineWidth) !== null && _d !== void 0 ? _d : 4,
|
|
13145
13167
|
draggable: true,
|
|
13146
13168
|
strokeScaleEnabled: false,
|
|
13147
13169
|
globalCompositeOperation: "source-over",
|
|
@@ -13390,9 +13412,9 @@
|
|
|
13390
13412
|
initialize(container, containerEvents, viewer, worldTransformer) {
|
|
13391
13413
|
if (!Konva) throw new Error('Markup error: Konva is not initialized. Forgot to add <script src="https://unpkg.com/konva@9/konva.min.js"><\/script> to your page?');
|
|
13392
13414
|
this._viewer = viewer;
|
|
13393
|
-
this._worldTransformer = worldTransformer !== null && worldTransformer !==
|
|
13415
|
+
this._worldTransformer = worldTransformer !== null && worldTransformer !== void 0 ? worldTransformer : new WorldTransform;
|
|
13394
13416
|
this._container = container;
|
|
13395
|
-
this._containerEvents = containerEvents !== null && containerEvents !==
|
|
13417
|
+
this._containerEvents = containerEvents !== null && containerEvents !== void 0 ? containerEvents : [];
|
|
13396
13418
|
this._markupContainer = document.createElement("div");
|
|
13397
13419
|
this._markupContainer.id = "markup-container";
|
|
13398
13420
|
this._markupContainer.style.position = "absolute";
|
|
@@ -13420,9 +13442,9 @@
|
|
|
13420
13442
|
this._viewer.removeEventListener("changeactivedragger", this.changeActiveDragger);
|
|
13421
13443
|
}
|
|
13422
13444
|
this.destroyKonva();
|
|
13423
|
-
(_a = this._resizeObserver) === null || _a ===
|
|
13445
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
13424
13446
|
this._resizeObserver = undefined;
|
|
13425
|
-
(_b = this._markupContainer) === null || _b ===
|
|
13447
|
+
(_b = this._markupContainer) === null || _b === void 0 ? void 0 : _b.remove();
|
|
13426
13448
|
this._markupContainer = undefined;
|
|
13427
13449
|
this._container = undefined;
|
|
13428
13450
|
this._viewer = undefined;
|
|
@@ -13454,14 +13476,14 @@
|
|
|
13454
13476
|
const hexColor = new MarkupColor(r, g, b).asHex();
|
|
13455
13477
|
this.getObjects().filter((obj => {
|
|
13456
13478
|
var _a;
|
|
13457
|
-
return (_a = obj.setColor) === null || _a ===
|
|
13479
|
+
return (_a = obj.setColor) === null || _a === void 0 ? void 0 : _a.call(obj, hexColor);
|
|
13458
13480
|
}));
|
|
13459
13481
|
}
|
|
13460
13482
|
colorizeSelectedMarkups(r, g, b) {
|
|
13461
13483
|
const hexColor = new MarkupColor(r, g, b).asHex();
|
|
13462
13484
|
this.getSelectedObjects().filter((obj => {
|
|
13463
13485
|
var _a;
|
|
13464
|
-
return (_a = obj.setColor) === null || _a ===
|
|
13486
|
+
return (_a = obj.setColor) === null || _a === void 0 ? void 0 : _a.call(obj, hexColor);
|
|
13465
13487
|
}));
|
|
13466
13488
|
}
|
|
13467
13489
|
setViewpoint(viewpoint) {
|
|
@@ -13477,13 +13499,13 @@
|
|
|
13477
13499
|
x: 0,
|
|
13478
13500
|
y: 0
|
|
13479
13501
|
});
|
|
13480
|
-
const markupColor = ((_a = viewpoint.custom_fields) === null || _a ===
|
|
13502
|
+
const markupColor = ((_a = viewpoint.custom_fields) === null || _a === void 0 ? void 0 : _a.markup_color) || {
|
|
13481
13503
|
r: 255,
|
|
13482
13504
|
g: 0,
|
|
13483
13505
|
b: 0
|
|
13484
13506
|
};
|
|
13485
13507
|
this.setMarkupColor(markupColor.r, markupColor.g, markupColor.b);
|
|
13486
|
-
(_b = viewpoint.lines) === null || _b ===
|
|
13508
|
+
(_b = viewpoint.lines) === null || _b === void 0 ? void 0 : _b.forEach((line => {
|
|
13487
13509
|
const linePoints = [];
|
|
13488
13510
|
line.points.forEach((point => {
|
|
13489
13511
|
const screenPoint = this._worldTransformer.worldToScreen(point);
|
|
@@ -13492,28 +13514,28 @@
|
|
|
13492
13514
|
}));
|
|
13493
13515
|
this.addLine(linePoints, line.color, line.type, line.width, line.id);
|
|
13494
13516
|
}));
|
|
13495
|
-
(_c = viewpoint.texts) === null || _c ===
|
|
13517
|
+
(_c = viewpoint.texts) === null || _c === void 0 ? void 0 : _c.forEach((text => {
|
|
13496
13518
|
const screenPoint = this._worldTransformer.worldToScreen(text.position);
|
|
13497
13519
|
this.addText(text.text, screenPoint, text.angle, text.color, text.text_size, text.font_size, text.id);
|
|
13498
13520
|
}));
|
|
13499
|
-
(_d = viewpoint.rectangles) === null || _d ===
|
|
13521
|
+
(_d = viewpoint.rectangles) === null || _d === void 0 ? void 0 : _d.forEach((rect => {
|
|
13500
13522
|
const screenPoint = this._worldTransformer.worldToScreen(rect.position);
|
|
13501
13523
|
this.addRectangle(screenPoint, rect.width, rect.height, rect.line_width, rect.color, rect.id);
|
|
13502
13524
|
}));
|
|
13503
|
-
(_e = viewpoint.ellipses) === null || _e ===
|
|
13525
|
+
(_e = viewpoint.ellipses) === null || _e === void 0 ? void 0 : _e.forEach((ellipse => {
|
|
13504
13526
|
const screenPoint = this._worldTransformer.worldToScreen(ellipse.position);
|
|
13505
13527
|
this.addEllipse(screenPoint, ellipse.radius, ellipse.line_width, ellipse.color, ellipse.id);
|
|
13506
13528
|
}));
|
|
13507
|
-
(_f = viewpoint.arrows) === null || _f ===
|
|
13529
|
+
(_f = viewpoint.arrows) === null || _f === void 0 ? void 0 : _f.forEach((arrow => {
|
|
13508
13530
|
const startPoint = this._worldTransformer.worldToScreen(arrow.start);
|
|
13509
13531
|
const endPoint = this._worldTransformer.worldToScreen(arrow.end);
|
|
13510
13532
|
this.addArrow(startPoint, endPoint, arrow.color, arrow.id);
|
|
13511
13533
|
}));
|
|
13512
|
-
(_g = viewpoint.clouds) === null || _g ===
|
|
13534
|
+
(_g = viewpoint.clouds) === null || _g === void 0 ? void 0 : _g.forEach((cloud => {
|
|
13513
13535
|
const screenPoint = this._worldTransformer.worldToScreen(cloud.position);
|
|
13514
13536
|
this.addCloud(screenPoint, cloud.width, cloud.height, cloud.line_width, cloud.color, cloud.id);
|
|
13515
13537
|
}));
|
|
13516
|
-
(_h = viewpoint.images) === null || _h ===
|
|
13538
|
+
(_h = viewpoint.images) === null || _h === void 0 ? void 0 : _h.forEach((image => {
|
|
13517
13539
|
const screenPoint = this._worldTransformer.worldToScreen(image.position);
|
|
13518
13540
|
this.addImage(screenPoint, image.src, image.width, image.height, image.id);
|
|
13519
13541
|
}));
|
|
@@ -13807,7 +13829,7 @@
|
|
|
13807
13829
|
this.removeTextInput();
|
|
13808
13830
|
this.removeImageInput();
|
|
13809
13831
|
this.clearOverlay();
|
|
13810
|
-
(_a = this._konvaStage) === null || _a ===
|
|
13832
|
+
(_a = this._konvaStage) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
13811
13833
|
this._groupImages = undefined;
|
|
13812
13834
|
this._groupGeometry = undefined;
|
|
13813
13835
|
this._groupTexts = undefined;
|
|
@@ -14057,7 +14079,7 @@
|
|
|
14057
14079
|
}
|
|
14058
14080
|
removeTextInput() {
|
|
14059
14081
|
var _a;
|
|
14060
|
-
(_a = this._textInputRef) === null || _a ===
|
|
14082
|
+
(_a = this._textInputRef) === null || _a === void 0 ? void 0 : _a.remove();
|
|
14061
14083
|
this._textInputRef = null;
|
|
14062
14084
|
this._textInputPos = null;
|
|
14063
14085
|
this._textInputAngle = 0;
|
|
@@ -14100,14 +14122,14 @@
|
|
|
14100
14122
|
}
|
|
14101
14123
|
removeImageInput() {
|
|
14102
14124
|
var _a;
|
|
14103
|
-
(_a = this._imageInputRef) === null || _a ===
|
|
14125
|
+
(_a = this._imageInputRef) === null || _a === void 0 ? void 0 : _a.remove();
|
|
14104
14126
|
this._imageInputRef = null;
|
|
14105
14127
|
this._imageInputPos = null;
|
|
14106
14128
|
}
|
|
14107
14129
|
addText(text, position, angle, color, textSize, fontSize, id) {
|
|
14108
14130
|
var _a;
|
|
14109
14131
|
if (!text) return;
|
|
14110
|
-
(_a = this.getSelectedObjects().at(0)) === null || _a ===
|
|
14132
|
+
(_a = this.getSelectedObjects().at(0)) === null || _a === void 0 ? void 0 : _a.delete();
|
|
14111
14133
|
this.clearSelected();
|
|
14112
14134
|
this.removeTextInput();
|
|
14113
14135
|
const tolerance = 1e-6;
|
|
@@ -14182,7 +14204,7 @@
|
|
|
14182
14204
|
addImage(position, src, width, height, id) {
|
|
14183
14205
|
var _a;
|
|
14184
14206
|
if (!position || !src) return;
|
|
14185
|
-
(_a = this.getSelectedObjects().at(0)) === null || _a ===
|
|
14207
|
+
(_a = this.getSelectedObjects().at(0)) === null || _a === void 0 ? void 0 : _a.delete();
|
|
14186
14208
|
this.clearSelected();
|
|
14187
14209
|
this.removeImageInput();
|
|
14188
14210
|
const konvaImage = new KonvaImage({
|
|
@@ -14205,7 +14227,7 @@
|
|
|
14205
14227
|
var _a;
|
|
14206
14228
|
const extView = this.m_module.getViewer().getActiveTvExtendedView();
|
|
14207
14229
|
extView.setView(params.position, params.target, params.upVector, params.viewFieldWidth, params.viewFieldHeight, params.perspective);
|
|
14208
|
-
(_a = extView.delete) === null || _a ===
|
|
14230
|
+
(_a = extView.delete) === null || _a === void 0 ? void 0 : _a.call(extView);
|
|
14209
14231
|
};
|
|
14210
14232
|
this.getViewParams = () => {
|
|
14211
14233
|
var _a;
|
|
@@ -14218,7 +14240,7 @@
|
|
|
14218
14240
|
viewFieldHeight: view.viewFieldHeight,
|
|
14219
14241
|
perspective: view.perspective,
|
|
14220
14242
|
};
|
|
14221
|
-
(_a = view.delete) === null || _a ===
|
|
14243
|
+
(_a = view.delete) === null || _a === void 0 ? void 0 : _a.call(view);
|
|
14222
14244
|
return obj;
|
|
14223
14245
|
};
|
|
14224
14246
|
this.m_module = module;
|
|
@@ -14289,7 +14311,7 @@
|
|
|
14289
14311
|
}
|
|
14290
14312
|
|
|
14291
14313
|
///////////////////////////////////////////////////////////////////////////////
|
|
14292
|
-
// Copyright (C) 2002-
|
|
14314
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
14293
14315
|
// All rights reserved.
|
|
14294
14316
|
//
|
|
14295
14317
|
// This software and its documentation and related materials are owned by
|
|
@@ -14304,7 +14326,7 @@
|
|
|
14304
14326
|
//
|
|
14305
14327
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
14306
14328
|
// license agreement with Open Design Alliance.
|
|
14307
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
14329
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
14308
14330
|
// All rights reserved.
|
|
14309
14331
|
//
|
|
14310
14332
|
// By use of this software, its documentation or related materials, you
|
|
@@ -14451,7 +14473,7 @@
|
|
|
14451
14473
|
deleteAll(objects) {
|
|
14452
14474
|
var _a;
|
|
14453
14475
|
for (const obj of objects) {
|
|
14454
|
-
(_a = obj === null || obj ===
|
|
14476
|
+
(_a = obj === null || obj === void 0 ? void 0 : obj.delete) === null || _a === void 0 ? void 0 : _a.call(obj);
|
|
14455
14477
|
}
|
|
14456
14478
|
}
|
|
14457
14479
|
updatePreview() { }
|
|
@@ -14590,7 +14612,7 @@
|
|
|
14590
14612
|
}
|
|
14591
14613
|
|
|
14592
14614
|
///////////////////////////////////////////////////////////////////////////////
|
|
14593
|
-
// Copyright (C) 2002-
|
|
14615
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
14594
14616
|
// All rights reserved.
|
|
14595
14617
|
//
|
|
14596
14618
|
// This software and its documentation and related materials are owned by
|
|
@@ -14605,7 +14627,7 @@
|
|
|
14605
14627
|
//
|
|
14606
14628
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
14607
14629
|
// license agreement with Open Design Alliance.
|
|
14608
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
14630
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
14609
14631
|
// All rights reserved.
|
|
14610
14632
|
//
|
|
14611
14633
|
// By use of this software, its documentation or related materials, you
|
|
@@ -14819,7 +14841,7 @@
|
|
|
14819
14841
|
};
|
|
14820
14842
|
this.items = [];
|
|
14821
14843
|
this.canvasEvents.push("resize");
|
|
14822
|
-
this.oldRulerUnit = (_a = subject.options.rulerUnit) !== null && _a !==
|
|
14844
|
+
this.oldRulerUnit = (_a = subject.options.rulerUnit) !== null && _a !== void 0 ? _a : "Default";
|
|
14823
14845
|
this.optionsChange = this.optionsChange.bind(this);
|
|
14824
14846
|
}
|
|
14825
14847
|
initialize() {
|
|
@@ -14933,7 +14955,7 @@
|
|
|
14933
14955
|
optionsChange(event) {
|
|
14934
14956
|
var _a;
|
|
14935
14957
|
const options = event.data;
|
|
14936
|
-
const toUnitName = (_a = options.rulerUnit) !== null && _a !==
|
|
14958
|
+
const toUnitName = (_a = options.rulerUnit) !== null && _a !== void 0 ? _a : "Default";
|
|
14937
14959
|
if (this.oldRulerUnit === toUnitName)
|
|
14938
14960
|
return;
|
|
14939
14961
|
this.oldRulerUnit = toUnitName;
|
|
@@ -15053,7 +15075,7 @@
|
|
|
15053
15075
|
const model = this.viewer.getActiveModel();
|
|
15054
15076
|
model.removeEntity(this.cameraId);
|
|
15055
15077
|
model.delete();
|
|
15056
|
-
(_a = this.cameraWalker) === null || _a ===
|
|
15078
|
+
(_a = this.cameraWalker) === null || _a === void 0 ? void 0 : _a.delete();
|
|
15057
15079
|
}
|
|
15058
15080
|
if (this.viewParams) {
|
|
15059
15081
|
this.setViewParams(this.viewParams);
|
|
@@ -15385,7 +15407,7 @@
|
|
|
15385
15407
|
}
|
|
15386
15408
|
|
|
15387
15409
|
///////////////////////////////////////////////////////////////////////////////
|
|
15388
|
-
// Copyright (C) 2002-
|
|
15410
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
15389
15411
|
// All rights reserved.
|
|
15390
15412
|
//
|
|
15391
15413
|
// This software and its documentation and related materials are owned by
|
|
@@ -15400,7 +15422,7 @@
|
|
|
15400
15422
|
//
|
|
15401
15423
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
15402
15424
|
// license agreement with Open Design Alliance.
|
|
15403
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
15425
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
15404
15426
|
// All rights reserved.
|
|
15405
15427
|
//
|
|
15406
15428
|
// By use of this software, its documentation or related materials, you
|
|
@@ -15451,7 +15473,7 @@
|
|
|
15451
15473
|
const extView = this.getViewer().getActiveTvExtendedView();
|
|
15452
15474
|
extView.setView(viewParams.position, viewParams.target, viewParams.upVector, viewParams.viewFieldWidth, viewParams.viewFieldHeight, viewParams.perspective);
|
|
15453
15475
|
extView.delete();
|
|
15454
|
-
(_b = (_a = this._subject.activeDragger()) === null || _a ===
|
|
15476
|
+
(_b = (_a = this._subject.activeDragger()) === null || _a === void 0 ? void 0 : _a.updatePreview) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
15455
15477
|
}
|
|
15456
15478
|
endAction() {
|
|
15457
15479
|
this._endInteractivity();
|
|
@@ -15560,7 +15582,7 @@
|
|
|
15560
15582
|
deleteAll(objects) {
|
|
15561
15583
|
var _a;
|
|
15562
15584
|
for (const obj of objects) {
|
|
15563
|
-
(_a = obj === null || obj ===
|
|
15585
|
+
(_a = obj === null || obj === void 0 ? void 0 : obj.delete) === null || _a === void 0 ? void 0 : _a.call(obj);
|
|
15564
15586
|
}
|
|
15565
15587
|
}
|
|
15566
15588
|
}
|
|
@@ -15593,7 +15615,7 @@
|
|
|
15593
15615
|
}
|
|
15594
15616
|
|
|
15595
15617
|
///////////////////////////////////////////////////////////////////////////////
|
|
15596
|
-
// Copyright (C) 2002-
|
|
15618
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
15597
15619
|
// All rights reserved.
|
|
15598
15620
|
//
|
|
15599
15621
|
// This software and its documentation and related materials are owned by
|
|
@@ -15608,7 +15630,7 @@
|
|
|
15608
15630
|
//
|
|
15609
15631
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
15610
15632
|
// license agreement with Open Design Alliance.
|
|
15611
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
15633
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
15612
15634
|
// All rights reserved.
|
|
15613
15635
|
//
|
|
15614
15636
|
// By use of this software, its documentation or related materials, you
|
|
@@ -15646,7 +15668,7 @@
|
|
|
15646
15668
|
targetWithDelta.delete();
|
|
15647
15669
|
position.delete();
|
|
15648
15670
|
positionWithDelta.delete();
|
|
15649
|
-
(_b = (_a = this._subject.activeDragger()) === null || _a ===
|
|
15671
|
+
(_b = (_a = this._subject.activeDragger()) === null || _a === void 0 ? void 0 : _a.updatePreview) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
15650
15672
|
this._subject.emitEvent({
|
|
15651
15673
|
type: "pan",
|
|
15652
15674
|
x: absoluteX,
|
|
@@ -15687,7 +15709,7 @@
|
|
|
15687
15709
|
}
|
|
15688
15710
|
|
|
15689
15711
|
///////////////////////////////////////////////////////////////////////////////
|
|
15690
|
-
// Copyright (C) 2002-
|
|
15712
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
15691
15713
|
// All rights reserved.
|
|
15692
15714
|
//
|
|
15693
15715
|
// This software and its documentation and related materials are owned by
|
|
@@ -15702,7 +15724,7 @@
|
|
|
15702
15724
|
//
|
|
15703
15725
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
15704
15726
|
// license agreement with Open Design Alliance.
|
|
15705
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
15727
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
15706
15728
|
// All rights reserved.
|
|
15707
15729
|
//
|
|
15708
15730
|
// By use of this software, its documentation or related materials, you
|
|
@@ -15718,7 +15740,7 @@
|
|
|
15718
15740
|
const viewer = this._m_module.getViewer();
|
|
15719
15741
|
viewer.zoomAt(zoomFactor, x, y);
|
|
15720
15742
|
this._subject.deviceAutoRegeneration();
|
|
15721
|
-
(_b = (_a = this._subject.activeDragger()) === null || _a ===
|
|
15743
|
+
(_b = (_a = this._subject.activeDragger()) === null || _a === void 0 ? void 0 : _a.updatePreview) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
15722
15744
|
this._subject.emitEvent({
|
|
15723
15745
|
type: "zoomat",
|
|
15724
15746
|
data: zoomFactor,
|
|
@@ -15729,7 +15751,7 @@
|
|
|
15729
15751
|
}
|
|
15730
15752
|
|
|
15731
15753
|
///////////////////////////////////////////////////////////////////////////////
|
|
15732
|
-
// Copyright (C) 2002-
|
|
15754
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
15733
15755
|
// All rights reserved.
|
|
15734
15756
|
//
|
|
15735
15757
|
// This software and its documentation and related materials are owned by
|
|
@@ -15744,7 +15766,7 @@
|
|
|
15744
15766
|
//
|
|
15745
15767
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
15746
15768
|
// license agreement with Open Design Alliance.
|
|
15747
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
15769
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
15748
15770
|
// All rights reserved.
|
|
15749
15771
|
//
|
|
15750
15772
|
// By use of this software, its documentation or related materials, you
|
|
@@ -15782,7 +15804,7 @@
|
|
|
15782
15804
|
}
|
|
15783
15805
|
|
|
15784
15806
|
///////////////////////////////////////////////////////////////////////////////
|
|
15785
|
-
// Copyright (C) 2002-
|
|
15807
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
15786
15808
|
// All rights reserved.
|
|
15787
15809
|
//
|
|
15788
15810
|
// This software and its documentation and related materials are owned by
|
|
@@ -15797,7 +15819,7 @@
|
|
|
15797
15819
|
//
|
|
15798
15820
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
15799
15821
|
// license agreement with Open Design Alliance.
|
|
15800
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
15822
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
15801
15823
|
// All rights reserved.
|
|
15802
15824
|
//
|
|
15803
15825
|
// By use of this software, its documentation or related materials, you
|
|
@@ -15933,7 +15955,7 @@
|
|
|
15933
15955
|
}
|
|
15934
15956
|
|
|
15935
15957
|
///////////////////////////////////////////////////////////////////////////////
|
|
15936
|
-
// Copyright (C) 2002-
|
|
15958
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
15937
15959
|
// All rights reserved.
|
|
15938
15960
|
//
|
|
15939
15961
|
// This software and its documentation and related materials are owned by
|
|
@@ -15948,7 +15970,7 @@
|
|
|
15948
15970
|
//
|
|
15949
15971
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
15950
15972
|
// license agreement with Open Design Alliance.
|
|
15951
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
15973
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
15952
15974
|
// All rights reserved.
|
|
15953
15975
|
//
|
|
15954
15976
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16103,7 +16125,7 @@
|
|
|
16103
16125
|
}
|
|
16104
16126
|
|
|
16105
16127
|
///////////////////////////////////////////////////////////////////////////////
|
|
16106
|
-
// Copyright (C) 2002-
|
|
16128
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16107
16129
|
// All rights reserved.
|
|
16108
16130
|
//
|
|
16109
16131
|
// This software and its documentation and related materials are owned by
|
|
@@ -16118,7 +16140,7 @@
|
|
|
16118
16140
|
//
|
|
16119
16141
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16120
16142
|
// license agreement with Open Design Alliance.
|
|
16121
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16143
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16122
16144
|
// All rights reserved.
|
|
16123
16145
|
//
|
|
16124
16146
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16182,7 +16204,7 @@
|
|
|
16182
16204
|
draggers.registerDragger("Walk", (viewer) => new OdaWalkDragger(viewer));
|
|
16183
16205
|
|
|
16184
16206
|
///////////////////////////////////////////////////////////////////////////////
|
|
16185
|
-
// Copyright (C) 2002-
|
|
16207
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16186
16208
|
// All rights reserved.
|
|
16187
16209
|
//
|
|
16188
16210
|
// This software and its documentation and related materials are owned by
|
|
@@ -16197,7 +16219,7 @@
|
|
|
16197
16219
|
//
|
|
16198
16220
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16199
16221
|
// license agreement with Open Design Alliance.
|
|
16200
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16222
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16201
16223
|
// All rights reserved.
|
|
16202
16224
|
//
|
|
16203
16225
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16233,12 +16255,12 @@
|
|
|
16233
16255
|
}
|
|
16234
16256
|
}
|
|
16235
16257
|
modelItr.delete();
|
|
16236
|
-
(_a = visViewer.clearViewExtentsCache) === null || _a ===
|
|
16258
|
+
(_a = visViewer.clearViewExtentsCache) === null || _a === void 0 ? void 0 : _a.call(visViewer);
|
|
16237
16259
|
viewer.update();
|
|
16238
16260
|
}
|
|
16239
16261
|
|
|
16240
16262
|
///////////////////////////////////////////////////////////////////////////////
|
|
16241
|
-
// Copyright (C) 2002-
|
|
16263
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16242
16264
|
// All rights reserved.
|
|
16243
16265
|
//
|
|
16244
16266
|
// This software and its documentation and related materials are owned by
|
|
@@ -16253,7 +16275,7 @@
|
|
|
16253
16275
|
//
|
|
16254
16276
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16255
16277
|
// license agreement with Open Design Alliance.
|
|
16256
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16278
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16257
16279
|
// All rights reserved.
|
|
16258
16280
|
//
|
|
16259
16281
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16264,7 +16286,7 @@
|
|
|
16264
16286
|
}
|
|
16265
16287
|
|
|
16266
16288
|
///////////////////////////////////////////////////////////////////////////////
|
|
16267
|
-
// Copyright (C) 2002-
|
|
16289
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16268
16290
|
// All rights reserved.
|
|
16269
16291
|
//
|
|
16270
16292
|
// This software and its documentation and related materials are owned by
|
|
@@ -16279,7 +16301,7 @@
|
|
|
16279
16301
|
//
|
|
16280
16302
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16281
16303
|
// license agreement with Open Design Alliance.
|
|
16282
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16304
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16283
16305
|
// All rights reserved.
|
|
16284
16306
|
//
|
|
16285
16307
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16295,7 +16317,7 @@
|
|
|
16295
16317
|
}
|
|
16296
16318
|
|
|
16297
16319
|
///////////////////////////////////////////////////////////////////////////////
|
|
16298
|
-
// Copyright (C) 2002-
|
|
16320
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16299
16321
|
// All rights reserved.
|
|
16300
16322
|
//
|
|
16301
16323
|
// This software and its documentation and related materials are owned by
|
|
@@ -16310,7 +16332,7 @@
|
|
|
16310
16332
|
//
|
|
16311
16333
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16312
16334
|
// license agreement with Open Design Alliance.
|
|
16313
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16335
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16314
16336
|
// All rights reserved.
|
|
16315
16337
|
//
|
|
16316
16338
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16321,7 +16343,7 @@
|
|
|
16321
16343
|
}
|
|
16322
16344
|
|
|
16323
16345
|
///////////////////////////////////////////////////////////////////////////////
|
|
16324
|
-
// Copyright (C) 2002-
|
|
16346
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16325
16347
|
// All rights reserved.
|
|
16326
16348
|
//
|
|
16327
16349
|
// This software and its documentation and related materials are owned by
|
|
@@ -16336,7 +16358,7 @@
|
|
|
16336
16358
|
//
|
|
16337
16359
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16338
16360
|
// license agreement with Open Design Alliance.
|
|
16339
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16361
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16340
16362
|
// All rights reserved.
|
|
16341
16363
|
//
|
|
16342
16364
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16346,11 +16368,11 @@
|
|
|
16346
16368
|
var _a;
|
|
16347
16369
|
if (!viewer.visualizeJs)
|
|
16348
16370
|
return "";
|
|
16349
|
-
return ((_a = viewer.canvas) === null || _a ===
|
|
16371
|
+
return ((_a = viewer.canvas) === null || _a === void 0 ? void 0 : _a.toDataURL(type, encoderOptions)) || "";
|
|
16350
16372
|
}
|
|
16351
16373
|
|
|
16352
16374
|
///////////////////////////////////////////////////////////////////////////////
|
|
16353
|
-
// Copyright (C) 2002-
|
|
16375
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16354
16376
|
// All rights reserved.
|
|
16355
16377
|
//
|
|
16356
16378
|
// This software and its documentation and related materials are owned by
|
|
@@ -16365,7 +16387,7 @@
|
|
|
16365
16387
|
//
|
|
16366
16388
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16367
16389
|
// license agreement with Open Design Alliance.
|
|
16368
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16390
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16369
16391
|
// All rights reserved.
|
|
16370
16392
|
//
|
|
16371
16393
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16384,7 +16406,7 @@
|
|
|
16384
16406
|
}
|
|
16385
16407
|
|
|
16386
16408
|
///////////////////////////////////////////////////////////////////////////////
|
|
16387
|
-
// Copyright (C) 2002-
|
|
16409
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16388
16410
|
// All rights reserved.
|
|
16389
16411
|
//
|
|
16390
16412
|
// This software and its documentation and related materials are owned by
|
|
@@ -16399,7 +16421,7 @@
|
|
|
16399
16421
|
//
|
|
16400
16422
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16401
16423
|
// license agreement with Open Design Alliance.
|
|
16402
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16424
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16403
16425
|
// All rights reserved.
|
|
16404
16426
|
//
|
|
16405
16427
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16414,7 +16436,7 @@
|
|
|
16414
16436
|
}
|
|
16415
16437
|
|
|
16416
16438
|
///////////////////////////////////////////////////////////////////////////////
|
|
16417
|
-
// Copyright (C) 2002-
|
|
16439
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16418
16440
|
// All rights reserved.
|
|
16419
16441
|
//
|
|
16420
16442
|
// This software and its documentation and related materials are owned by
|
|
@@ -16429,7 +16451,7 @@
|
|
|
16429
16451
|
//
|
|
16430
16452
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16431
16453
|
// license agreement with Open Design Alliance.
|
|
16432
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16454
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16433
16455
|
// All rights reserved.
|
|
16434
16456
|
//
|
|
16435
16457
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16451,7 +16473,7 @@
|
|
|
16451
16473
|
}
|
|
16452
16474
|
|
|
16453
16475
|
///////////////////////////////////////////////////////////////////////////////
|
|
16454
|
-
// Copyright (C) 2002-
|
|
16476
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16455
16477
|
// All rights reserved.
|
|
16456
16478
|
//
|
|
16457
16479
|
// This software and its documentation and related materials are owned by
|
|
@@ -16466,7 +16488,7 @@
|
|
|
16466
16488
|
//
|
|
16467
16489
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16468
16490
|
// license agreement with Open Design Alliance.
|
|
16469
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16491
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16470
16492
|
// All rights reserved.
|
|
16471
16493
|
//
|
|
16472
16494
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16500,7 +16522,7 @@
|
|
|
16500
16522
|
}
|
|
16501
16523
|
|
|
16502
16524
|
///////////////////////////////////////////////////////////////////////////////
|
|
16503
|
-
// Copyright (C) 2002-
|
|
16525
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16504
16526
|
// All rights reserved.
|
|
16505
16527
|
//
|
|
16506
16528
|
// This software and its documentation and related materials are owned by
|
|
@@ -16515,7 +16537,7 @@
|
|
|
16515
16537
|
//
|
|
16516
16538
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16517
16539
|
// license agreement with Open Design Alliance.
|
|
16518
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16540
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16519
16541
|
// All rights reserved.
|
|
16520
16542
|
//
|
|
16521
16543
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16532,7 +16554,7 @@
|
|
|
16532
16554
|
}
|
|
16533
16555
|
|
|
16534
16556
|
///////////////////////////////////////////////////////////////////////////////
|
|
16535
|
-
// Copyright (C) 2002-
|
|
16557
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16536
16558
|
// All rights reserved.
|
|
16537
16559
|
//
|
|
16538
16560
|
// This software and its documentation and related materials are owned by
|
|
@@ -16547,7 +16569,7 @@
|
|
|
16547
16569
|
//
|
|
16548
16570
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16549
16571
|
// license agreement with Open Design Alliance.
|
|
16550
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16572
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16551
16573
|
// All rights reserved.
|
|
16552
16574
|
//
|
|
16553
16575
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16563,7 +16585,7 @@
|
|
|
16563
16585
|
}
|
|
16564
16586
|
|
|
16565
16587
|
///////////////////////////////////////////////////////////////////////////////
|
|
16566
|
-
// Copyright (C) 2002-
|
|
16588
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16567
16589
|
// All rights reserved.
|
|
16568
16590
|
//
|
|
16569
16591
|
// This software and its documentation and related materials are owned by
|
|
@@ -16578,7 +16600,7 @@
|
|
|
16578
16600
|
//
|
|
16579
16601
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16580
16602
|
// license agreement with Open Design Alliance.
|
|
16581
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16603
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16582
16604
|
// All rights reserved.
|
|
16583
16605
|
//
|
|
16584
16606
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16594,7 +16616,7 @@
|
|
|
16594
16616
|
}
|
|
16595
16617
|
|
|
16596
16618
|
///////////////////////////////////////////////////////////////////////////////
|
|
16597
|
-
// Copyright (C) 2002-
|
|
16619
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16598
16620
|
// All rights reserved.
|
|
16599
16621
|
//
|
|
16600
16622
|
// This software and its documentation and related materials are owned by
|
|
@@ -16609,7 +16631,7 @@
|
|
|
16609
16631
|
//
|
|
16610
16632
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16611
16633
|
// license agreement with Open Design Alliance.
|
|
16612
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16634
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16613
16635
|
// All rights reserved.
|
|
16614
16636
|
//
|
|
16615
16637
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16631,7 +16653,7 @@
|
|
|
16631
16653
|
}
|
|
16632
16654
|
|
|
16633
16655
|
///////////////////////////////////////////////////////////////////////////////
|
|
16634
|
-
// Copyright (C) 2002-
|
|
16656
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16635
16657
|
// All rights reserved.
|
|
16636
16658
|
//
|
|
16637
16659
|
// This software and its documentation and related materials are owned by
|
|
@@ -16646,7 +16668,7 @@
|
|
|
16646
16668
|
//
|
|
16647
16669
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16648
16670
|
// license agreement with Open Design Alliance.
|
|
16649
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16671
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16650
16672
|
// All rights reserved.
|
|
16651
16673
|
//
|
|
16652
16674
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16674,7 +16696,7 @@
|
|
|
16674
16696
|
}
|
|
16675
16697
|
|
|
16676
16698
|
///////////////////////////////////////////////////////////////////////////////
|
|
16677
|
-
// Copyright (C) 2002-
|
|
16699
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16678
16700
|
// All rights reserved.
|
|
16679
16701
|
//
|
|
16680
16702
|
// This software and its documentation and related materials are owned by
|
|
@@ -16689,7 +16711,7 @@
|
|
|
16689
16711
|
//
|
|
16690
16712
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16691
16713
|
// license agreement with Open Design Alliance.
|
|
16692
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16714
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16693
16715
|
// All rights reserved.
|
|
16694
16716
|
//
|
|
16695
16717
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16700,7 +16722,7 @@
|
|
|
16700
16722
|
}
|
|
16701
16723
|
|
|
16702
16724
|
///////////////////////////////////////////////////////////////////////////////
|
|
16703
|
-
// Copyright (C) 2002-
|
|
16725
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16704
16726
|
// All rights reserved.
|
|
16705
16727
|
//
|
|
16706
16728
|
// This software and its documentation and related materials are owned by
|
|
@@ -16715,7 +16737,7 @@
|
|
|
16715
16737
|
//
|
|
16716
16738
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16717
16739
|
// license agreement with Open Design Alliance.
|
|
16718
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16740
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16719
16741
|
// All rights reserved.
|
|
16720
16742
|
//
|
|
16721
16743
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16733,7 +16755,7 @@
|
|
|
16733
16755
|
}
|
|
16734
16756
|
|
|
16735
16757
|
///////////////////////////////////////////////////////////////////////////////
|
|
16736
|
-
// Copyright (C) 2002-
|
|
16758
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16737
16759
|
// All rights reserved.
|
|
16738
16760
|
//
|
|
16739
16761
|
// This software and its documentation and related materials are owned by
|
|
@@ -16748,7 +16770,7 @@
|
|
|
16748
16770
|
//
|
|
16749
16771
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16750
16772
|
// license agreement with Open Design Alliance.
|
|
16751
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16773
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16752
16774
|
// All rights reserved.
|
|
16753
16775
|
//
|
|
16754
16776
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16759,7 +16781,7 @@
|
|
|
16759
16781
|
}
|
|
16760
16782
|
|
|
16761
16783
|
///////////////////////////////////////////////////////////////////////////////
|
|
16762
|
-
// Copyright (C) 2002-
|
|
16784
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16763
16785
|
// All rights reserved.
|
|
16764
16786
|
//
|
|
16765
16787
|
// This software and its documentation and related materials are owned by
|
|
@@ -16774,7 +16796,7 @@
|
|
|
16774
16796
|
//
|
|
16775
16797
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16776
16798
|
// license agreement with Open Design Alliance.
|
|
16777
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16799
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16778
16800
|
// All rights reserved.
|
|
16779
16801
|
//
|
|
16780
16802
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16786,7 +16808,7 @@
|
|
|
16786
16808
|
const visLib = viewer.visLib();
|
|
16787
16809
|
const visViewer = visLib.getViewer();
|
|
16788
16810
|
const selectionSet = new visLib.OdTvSelectionSet();
|
|
16789
|
-
handles === null || handles ===
|
|
16811
|
+
handles === null || handles === void 0 ? void 0 : handles.forEach((handle) => {
|
|
16790
16812
|
const entityId = visViewer.getEntityByOriginalHandle(handle + "");
|
|
16791
16813
|
if (!entityId.isNull())
|
|
16792
16814
|
selectionSet.appendEntity(entityId);
|
|
@@ -16798,7 +16820,7 @@
|
|
|
16798
16820
|
}
|
|
16799
16821
|
|
|
16800
16822
|
///////////////////////////////////////////////////////////////////////////////
|
|
16801
|
-
// Copyright (C) 2002-
|
|
16823
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16802
16824
|
// All rights reserved.
|
|
16803
16825
|
//
|
|
16804
16826
|
// This software and its documentation and related materials are owned by
|
|
@@ -16813,7 +16835,7 @@
|
|
|
16813
16835
|
//
|
|
16814
16836
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16815
16837
|
// license agreement with Open Design Alliance.
|
|
16816
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16838
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16817
16839
|
// All rights reserved.
|
|
16818
16840
|
//
|
|
16819
16841
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16829,7 +16851,7 @@
|
|
|
16829
16851
|
}
|
|
16830
16852
|
|
|
16831
16853
|
///////////////////////////////////////////////////////////////////////////////
|
|
16832
|
-
// Copyright (C) 2002-
|
|
16854
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16833
16855
|
// All rights reserved.
|
|
16834
16856
|
//
|
|
16835
16857
|
// This software and its documentation and related materials are owned by
|
|
@@ -16844,7 +16866,7 @@
|
|
|
16844
16866
|
//
|
|
16845
16867
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16846
16868
|
// license agreement with Open Design Alliance.
|
|
16847
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16869
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16848
16870
|
// All rights reserved.
|
|
16849
16871
|
//
|
|
16850
16872
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16865,7 +16887,7 @@
|
|
|
16865
16887
|
}
|
|
16866
16888
|
|
|
16867
16889
|
///////////////////////////////////////////////////////////////////////////////
|
|
16868
|
-
// Copyright (C) 2002-
|
|
16890
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16869
16891
|
// All rights reserved.
|
|
16870
16892
|
//
|
|
16871
16893
|
// This software and its documentation and related materials are owned by
|
|
@@ -16880,7 +16902,7 @@
|
|
|
16880
16902
|
//
|
|
16881
16903
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16882
16904
|
// license agreement with Open Design Alliance.
|
|
16883
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16905
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16884
16906
|
// All rights reserved.
|
|
16885
16907
|
//
|
|
16886
16908
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16898,7 +16920,7 @@
|
|
|
16898
16920
|
if (!entityId.isNull())
|
|
16899
16921
|
selectionSet.appendEntity(entityId);
|
|
16900
16922
|
});
|
|
16901
|
-
(_a = visViewer.zoomToObjects) === null || _a ===
|
|
16923
|
+
(_a = visViewer.zoomToObjects) === null || _a === void 0 ? void 0 : _a.call(visViewer, selectionSet);
|
|
16902
16924
|
viewer.deviceAutoRegeneration();
|
|
16903
16925
|
viewer.update();
|
|
16904
16926
|
viewer.emitEvent({ type: "zoom" });
|
|
@@ -16906,7 +16928,7 @@
|
|
|
16906
16928
|
}
|
|
16907
16929
|
|
|
16908
16930
|
///////////////////////////////////////////////////////////////////////////////
|
|
16909
|
-
// Copyright (C) 2002-
|
|
16931
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16910
16932
|
// All rights reserved.
|
|
16911
16933
|
//
|
|
16912
16934
|
// This software and its documentation and related materials are owned by
|
|
@@ -16921,7 +16943,7 @@
|
|
|
16921
16943
|
//
|
|
16922
16944
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16923
16945
|
// license agreement with Open Design Alliance.
|
|
16924
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16946
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16925
16947
|
// All rights reserved.
|
|
16926
16948
|
//
|
|
16927
16949
|
// By use of this software, its documentation or related materials, you
|
|
@@ -16933,14 +16955,14 @@
|
|
|
16933
16955
|
return;
|
|
16934
16956
|
const visViewer = viewer.visViewer();
|
|
16935
16957
|
const selectionSet = visViewer.getSelected();
|
|
16936
|
-
(_a = visViewer.zoomToObjects) === null || _a ===
|
|
16958
|
+
(_a = visViewer.zoomToObjects) === null || _a === void 0 ? void 0 : _a.call(visViewer, selectionSet);
|
|
16937
16959
|
viewer.deviceAutoRegeneration();
|
|
16938
16960
|
viewer.update();
|
|
16939
16961
|
viewer.emitEvent({ type: "zoom" });
|
|
16940
16962
|
}
|
|
16941
16963
|
|
|
16942
16964
|
///////////////////////////////////////////////////////////////////////////////
|
|
16943
|
-
// Copyright (C) 2002-
|
|
16965
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
16944
16966
|
// All rights reserved.
|
|
16945
16967
|
//
|
|
16946
16968
|
// This software and its documentation and related materials are owned by
|
|
@@ -16955,7 +16977,7 @@
|
|
|
16955
16977
|
//
|
|
16956
16978
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16957
16979
|
// license agreement with Open Design Alliance.
|
|
16958
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
16980
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
16959
16981
|
// All rights reserved.
|
|
16960
16982
|
//
|
|
16961
16983
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17014,12 +17036,12 @@
|
|
|
17014
17036
|
modelPtr.delete();
|
|
17015
17037
|
}
|
|
17016
17038
|
modelItr.delete();
|
|
17017
|
-
(_a = visViewer.clearViewExtentsCache) === null || _a ===
|
|
17039
|
+
(_a = visViewer.clearViewExtentsCache) === null || _a === void 0 ? void 0 : _a.call(visViewer);
|
|
17018
17040
|
viewer.update();
|
|
17019
17041
|
}
|
|
17020
17042
|
|
|
17021
17043
|
///////////////////////////////////////////////////////////////////////////////
|
|
17022
|
-
// Copyright (C) 2002-
|
|
17044
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17023
17045
|
// All rights reserved.
|
|
17024
17046
|
//
|
|
17025
17047
|
// This software and its documentation and related materials are owned by
|
|
@@ -17034,7 +17056,7 @@
|
|
|
17034
17056
|
//
|
|
17035
17057
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17036
17058
|
// license agreement with Open Design Alliance.
|
|
17037
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17059
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17038
17060
|
// All rights reserved.
|
|
17039
17061
|
//
|
|
17040
17062
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17107,7 +17129,7 @@
|
|
|
17107
17129
|
commands.registerCommandAlias("zoomToExtents", "zoomExtents");
|
|
17108
17130
|
|
|
17109
17131
|
///////////////////////////////////////////////////////////////////////////////
|
|
17110
|
-
// Copyright (C) 2002-
|
|
17132
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17111
17133
|
// All rights reserved.
|
|
17112
17134
|
//
|
|
17113
17135
|
// This software and its documentation and related materials are owned by
|
|
@@ -17122,7 +17144,7 @@
|
|
|
17122
17144
|
//
|
|
17123
17145
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17124
17146
|
// license agreement with Open Design Alliance.
|
|
17125
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17147
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17126
17148
|
// All rights reserved.
|
|
17127
17149
|
//
|
|
17128
17150
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17143,7 +17165,7 @@
|
|
|
17143
17165
|
}
|
|
17144
17166
|
|
|
17145
17167
|
///////////////////////////////////////////////////////////////////////////////
|
|
17146
|
-
// Copyright (C) 2002-
|
|
17168
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17147
17169
|
// All rights reserved.
|
|
17148
17170
|
//
|
|
17149
17171
|
// This software and its documentation and related materials are owned by
|
|
@@ -17158,7 +17180,7 @@
|
|
|
17158
17180
|
//
|
|
17159
17181
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17160
17182
|
// license agreement with Open Design Alliance.
|
|
17161
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17183
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17162
17184
|
// All rights reserved.
|
|
17163
17185
|
//
|
|
17164
17186
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17179,7 +17201,7 @@
|
|
|
17179
17201
|
}
|
|
17180
17202
|
|
|
17181
17203
|
///////////////////////////////////////////////////////////////////////////////
|
|
17182
|
-
// Copyright (C) 2002-
|
|
17204
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17183
17205
|
// All rights reserved.
|
|
17184
17206
|
//
|
|
17185
17207
|
// This software and its documentation and related materials are owned by
|
|
@@ -17194,7 +17216,7 @@
|
|
|
17194
17216
|
//
|
|
17195
17217
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17196
17218
|
// license agreement with Open Design Alliance.
|
|
17197
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17219
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17198
17220
|
// All rights reserved.
|
|
17199
17221
|
//
|
|
17200
17222
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17214,7 +17236,7 @@
|
|
|
17214
17236
|
}
|
|
17215
17237
|
|
|
17216
17238
|
///////////////////////////////////////////////////////////////////////////////
|
|
17217
|
-
// Copyright (C) 2002-
|
|
17239
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17218
17240
|
// All rights reserved.
|
|
17219
17241
|
//
|
|
17220
17242
|
// This software and its documentation and related materials are owned by
|
|
@@ -17229,7 +17251,7 @@
|
|
|
17229
17251
|
//
|
|
17230
17252
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17231
17253
|
// license agreement with Open Design Alliance.
|
|
17232
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17254
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17233
17255
|
// All rights reserved.
|
|
17234
17256
|
//
|
|
17235
17257
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17414,7 +17436,7 @@
|
|
|
17414
17436
|
}
|
|
17415
17437
|
|
|
17416
17438
|
///////////////////////////////////////////////////////////////////////////////
|
|
17417
|
-
// Copyright (C) 2002-
|
|
17439
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17418
17440
|
// All rights reserved.
|
|
17419
17441
|
//
|
|
17420
17442
|
// This software and its documentation and related materials are owned by
|
|
@@ -17429,7 +17451,7 @@
|
|
|
17429
17451
|
//
|
|
17430
17452
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17431
17453
|
// license agreement with Open Design Alliance.
|
|
17432
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17454
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17433
17455
|
// All rights reserved.
|
|
17434
17456
|
//
|
|
17435
17457
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17448,7 +17470,7 @@
|
|
|
17448
17470
|
}
|
|
17449
17471
|
|
|
17450
17472
|
///////////////////////////////////////////////////////////////////////////////
|
|
17451
|
-
// Copyright (C) 2002-
|
|
17473
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17452
17474
|
// All rights reserved.
|
|
17453
17475
|
//
|
|
17454
17476
|
// This software and its documentation and related materials are owned by
|
|
@@ -17463,7 +17485,7 @@
|
|
|
17463
17485
|
//
|
|
17464
17486
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17465
17487
|
// license agreement with Open Design Alliance.
|
|
17466
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17488
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17467
17489
|
// All rights reserved.
|
|
17468
17490
|
//
|
|
17469
17491
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17554,7 +17576,7 @@
|
|
|
17554
17576
|
}
|
|
17555
17577
|
|
|
17556
17578
|
///////////////////////////////////////////////////////////////////////////////
|
|
17557
|
-
// Copyright (C) 2002-
|
|
17579
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17558
17580
|
// All rights reserved.
|
|
17559
17581
|
//
|
|
17560
17582
|
// This software and its documentation and related materials are owned by
|
|
@@ -17569,7 +17591,7 @@
|
|
|
17569
17591
|
//
|
|
17570
17592
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17571
17593
|
// license agreement with Open Design Alliance.
|
|
17572
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17594
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17573
17595
|
// All rights reserved.
|
|
17574
17596
|
//
|
|
17575
17597
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17619,7 +17641,7 @@
|
|
|
17619
17641
|
};
|
|
17620
17642
|
|
|
17621
17643
|
///////////////////////////////////////////////////////////////////////////////
|
|
17622
|
-
// Copyright (C) 2002-
|
|
17644
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17623
17645
|
// All rights reserved.
|
|
17624
17646
|
//
|
|
17625
17647
|
// This software and its documentation and related materials are owned by
|
|
@@ -17634,7 +17656,7 @@
|
|
|
17634
17656
|
//
|
|
17635
17657
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17636
17658
|
// license agreement with Open Design Alliance.
|
|
17637
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17659
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17638
17660
|
// All rights reserved.
|
|
17639
17661
|
//
|
|
17640
17662
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17650,7 +17672,7 @@
|
|
|
17650
17672
|
}
|
|
17651
17673
|
|
|
17652
17674
|
///////////////////////////////////////////////////////////////////////////////
|
|
17653
|
-
// Copyright (C) 2002-
|
|
17675
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17654
17676
|
// All rights reserved.
|
|
17655
17677
|
//
|
|
17656
17678
|
// This software and its documentation and related materials are owned by
|
|
@@ -17665,7 +17687,7 @@
|
|
|
17665
17687
|
//
|
|
17666
17688
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17667
17689
|
// license agreement with Open Design Alliance.
|
|
17668
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17690
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17669
17691
|
// All rights reserved.
|
|
17670
17692
|
//
|
|
17671
17693
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17719,7 +17741,7 @@
|
|
|
17719
17741
|
}
|
|
17720
17742
|
|
|
17721
17743
|
///////////////////////////////////////////////////////////////////////////////
|
|
17722
|
-
// Copyright (C) 2002-
|
|
17744
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17723
17745
|
// All rights reserved.
|
|
17724
17746
|
//
|
|
17725
17747
|
// This software and its documentation and related materials are owned by
|
|
@@ -17734,7 +17756,7 @@
|
|
|
17734
17756
|
//
|
|
17735
17757
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17736
17758
|
// license agreement with Open Design Alliance.
|
|
17737
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17759
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17738
17760
|
// All rights reserved.
|
|
17739
17761
|
//
|
|
17740
17762
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17806,7 +17828,7 @@
|
|
|
17806
17828
|
}
|
|
17807
17829
|
|
|
17808
17830
|
///////////////////////////////////////////////////////////////////////////////
|
|
17809
|
-
// Copyright (C) 2002-
|
|
17831
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17810
17832
|
// All rights reserved.
|
|
17811
17833
|
//
|
|
17812
17834
|
// This software and its documentation and related materials are owned by
|
|
@@ -17821,7 +17843,7 @@
|
|
|
17821
17843
|
//
|
|
17822
17844
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17823
17845
|
// license agreement with Open Design Alliance.
|
|
17824
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17846
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17825
17847
|
// All rights reserved.
|
|
17826
17848
|
//
|
|
17827
17849
|
// By use of this software, its documentation or related materials, you
|
|
@@ -17878,7 +17900,7 @@
|
|
|
17878
17900
|
}
|
|
17879
17901
|
|
|
17880
17902
|
///////////////////////////////////////////////////////////////////////////////
|
|
17881
|
-
// Copyright (C) 2002-
|
|
17903
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
17882
17904
|
// All rights reserved.
|
|
17883
17905
|
//
|
|
17884
17906
|
// This software and its documentation and related materials are owned by
|
|
@@ -17893,7 +17915,7 @@
|
|
|
17893
17915
|
//
|
|
17894
17916
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
17895
17917
|
// license agreement with Open Design Alliance.
|
|
17896
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17918
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17897
17919
|
// All rights reserved.
|
|
17898
17920
|
//
|
|
17899
17921
|
// By use of this software, its documentation or related materials, you
|
|
@@ -18054,7 +18076,7 @@
|
|
|
18054
18076
|
}
|
|
18055
18077
|
|
|
18056
18078
|
///////////////////////////////////////////////////////////////////////////////
|
|
18057
|
-
// Copyright (C) 2002-
|
|
18079
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
18058
18080
|
// All rights reserved.
|
|
18059
18081
|
//
|
|
18060
18082
|
// This software and its documentation and related materials are owned by
|
|
@@ -18069,7 +18091,7 @@
|
|
|
18069
18091
|
//
|
|
18070
18092
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
18071
18093
|
// license agreement with Open Design Alliance.
|
|
18072
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
18094
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
18073
18095
|
// All rights reserved.
|
|
18074
18096
|
//
|
|
18075
18097
|
// By use of this software, its documentation or related materials, you
|
|
@@ -18147,7 +18169,7 @@
|
|
|
18147
18169
|
dispose() {
|
|
18148
18170
|
var _a;
|
|
18149
18171
|
super.dispose();
|
|
18150
|
-
(_a = this.textRef) === null || _a ===
|
|
18172
|
+
(_a = this.textRef) === null || _a === void 0 ? void 0 : _a.remove();
|
|
18151
18173
|
this.textRef = null;
|
|
18152
18174
|
}
|
|
18153
18175
|
_finishInput() {
|
|
@@ -18155,7 +18177,7 @@
|
|
|
18155
18177
|
if (this.textRef && this.textRef.value.trimLeft()) {
|
|
18156
18178
|
this._updateFrame();
|
|
18157
18179
|
}
|
|
18158
|
-
(_a = this.textRef) === null || _a ===
|
|
18180
|
+
(_a = this.textRef) === null || _a === void 0 ? void 0 : _a.remove();
|
|
18159
18181
|
this.textRef = null;
|
|
18160
18182
|
}
|
|
18161
18183
|
start(x, y, absoluteX, absoluteY) {
|
|
@@ -18387,7 +18409,7 @@
|
|
|
18387
18409
|
}
|
|
18388
18410
|
|
|
18389
18411
|
///////////////////////////////////////////////////////////////////////////////
|
|
18390
|
-
// Copyright (C) 2002-
|
|
18412
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
18391
18413
|
// All rights reserved.
|
|
18392
18414
|
//
|
|
18393
18415
|
// This software and its documentation and related materials are owned by
|
|
@@ -18402,7 +18424,7 @@
|
|
|
18402
18424
|
//
|
|
18403
18425
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
18404
18426
|
// license agreement with Open Design Alliance.
|
|
18405
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
18427
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
18406
18428
|
// All rights reserved.
|
|
18407
18429
|
//
|
|
18408
18430
|
// By use of this software, its documentation or related materials, you
|
|
@@ -18426,7 +18448,7 @@
|
|
|
18426
18448
|
}
|
|
18427
18449
|
|
|
18428
18450
|
///////////////////////////////////////////////////////////////////////////////
|
|
18429
|
-
// Copyright (C) 2002-
|
|
18451
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
18430
18452
|
// All rights reserved.
|
|
18431
18453
|
//
|
|
18432
18454
|
// This software and its documentation and related materials are owned by
|
|
@@ -18441,7 +18463,7 @@
|
|
|
18441
18463
|
//
|
|
18442
18464
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
18443
18465
|
// license agreement with Open Design Alliance.
|
|
18444
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
18466
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
18445
18467
|
// All rights reserved.
|
|
18446
18468
|
//
|
|
18447
18469
|
// By use of this software, its documentation or related materials, you
|
|
@@ -18484,7 +18506,7 @@
|
|
|
18484
18506
|
this._renderTime = 0;
|
|
18485
18507
|
this.canvasEvents = CANVAS_EVENTS.slice();
|
|
18486
18508
|
this.canvaseventlistener = (event) => this.emit(event);
|
|
18487
|
-
this._enableAutoUpdate = (_a = params.enableAutoUpdate) !== null && _a !==
|
|
18509
|
+
this._enableAutoUpdate = (_a = params.enableAutoUpdate) !== null && _a !== void 0 ? _a : true;
|
|
18488
18510
|
this._isNeedRender = false;
|
|
18489
18511
|
this._isRunAsyncUpdate = false;
|
|
18490
18512
|
this.render = this.render.bind(this);
|
|
@@ -18526,7 +18548,7 @@
|
|
|
18526
18548
|
* `use-credentials`.
|
|
18527
18549
|
*/
|
|
18528
18550
|
configure(params) {
|
|
18529
|
-
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/
|
|
18551
|
+
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/26.3/Visualize.js";
|
|
18530
18552
|
this._crossOrigin = params.crossOrigin;
|
|
18531
18553
|
return this;
|
|
18532
18554
|
}
|
|
@@ -18617,7 +18639,7 @@
|
|
|
18617
18639
|
const visViewer = this.visualizeJs.getViewer();
|
|
18618
18640
|
if (visViewer.isRunningAnimation() || this._isNeedRender) {
|
|
18619
18641
|
visViewer.update();
|
|
18620
|
-
(_b = (_a = this._activeDragger) === null || _a ===
|
|
18642
|
+
(_b = (_a = this._activeDragger) === null || _a === void 0 ? void 0 : _a.updatePreview) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
18621
18643
|
this._isNeedRender = !visViewer.getActiveDevice().isValid();
|
|
18622
18644
|
const deltaTime = (time - this._renderTime) / 1000;
|
|
18623
18645
|
this._renderTime = time;
|
|
@@ -18655,8 +18677,8 @@
|
|
|
18655
18677
|
var _a, _b, _c;
|
|
18656
18678
|
if (this._enableAutoUpdate) {
|
|
18657
18679
|
if (force) {
|
|
18658
|
-
(_a = this.visViewer()) === null || _a ===
|
|
18659
|
-
(_c = (_b = this._activeDragger) === null || _b ===
|
|
18680
|
+
(_a = this.visViewer()) === null || _a === void 0 ? void 0 : _a.update();
|
|
18681
|
+
(_c = (_b = this._activeDragger) === null || _b === void 0 ? void 0 : _b.updatePreview) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
18660
18682
|
}
|
|
18661
18683
|
else {
|
|
18662
18684
|
this._isNeedRender = true;
|
|
@@ -18733,7 +18755,7 @@
|
|
|
18733
18755
|
*/
|
|
18734
18756
|
visViewer() {
|
|
18735
18757
|
var _a;
|
|
18736
|
-
return (_a = this.visualizeJs) === null || _a ===
|
|
18758
|
+
return (_a = this.visualizeJs) === null || _a === void 0 ? void 0 : _a.getViewer();
|
|
18737
18759
|
}
|
|
18738
18760
|
// update the VisualizeJS options
|
|
18739
18761
|
syncOpenCloudVisualStyle(isInitializing) {
|
|
@@ -18895,7 +18917,7 @@
|
|
|
18895
18917
|
newDragger = draggers.createDragger(name, this);
|
|
18896
18918
|
if (newDragger) {
|
|
18897
18919
|
this._activeDragger = newDragger;
|
|
18898
|
-
(_b = (_a = this._activeDragger).initialize) === null || _b ===
|
|
18920
|
+
(_b = (_a = this._activeDragger).initialize) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
18899
18921
|
}
|
|
18900
18922
|
}
|
|
18901
18923
|
const canvas = this.canvas;
|
|
@@ -19036,7 +19058,7 @@
|
|
|
19036
19058
|
if (!this.client)
|
|
19037
19059
|
return this;
|
|
19038
19060
|
const abortController = new AbortController();
|
|
19039
|
-
(_a = this._abortControllerForReferences) === null || _a ===
|
|
19061
|
+
(_a = this._abortControllerForReferences) === null || _a === void 0 ? void 0 : _a.abort();
|
|
19040
19062
|
this._abortControllerForReferences = abortController;
|
|
19041
19063
|
let references = [];
|
|
19042
19064
|
await model
|
|
@@ -19046,7 +19068,7 @@
|
|
|
19046
19068
|
for (const file of references) {
|
|
19047
19069
|
await this.client
|
|
19048
19070
|
.downloadFile(file.id, undefined, abortController.signal)
|
|
19049
|
-
.then((arrayBuffer) => { var _a; return (_a = this.visualizeJs) === null || _a ===
|
|
19071
|
+
.then((arrayBuffer) => { var _a; return (_a = this.visualizeJs) === null || _a === void 0 ? void 0 : _a.getViewer().addEmbeddedFile(file.name, new Uint8Array(arrayBuffer)); })
|
|
19050
19072
|
.catch((e) => console.error(`Cannot load reference file ${file.name}.`, e));
|
|
19051
19073
|
}
|
|
19052
19074
|
return this;
|
|
@@ -19230,11 +19252,11 @@
|
|
|
19230
19252
|
}
|
|
19231
19253
|
cancel() {
|
|
19232
19254
|
var _a, _b, _c;
|
|
19233
|
-
(_a = this._abortControllerForReferences) === null || _a ===
|
|
19255
|
+
(_a = this._abortControllerForReferences) === null || _a === void 0 ? void 0 : _a.abort();
|
|
19234
19256
|
this._abortControllerForReferences = undefined;
|
|
19235
|
-
(_b = this._abortController) === null || _b ===
|
|
19257
|
+
(_b = this._abortController) === null || _b === void 0 ? void 0 : _b.abort();
|
|
19236
19258
|
this._abortController = undefined;
|
|
19237
|
-
(_c = this._abortControllerForRequestMap) === null || _c ===
|
|
19259
|
+
(_c = this._abortControllerForRequestMap) === null || _c === void 0 ? void 0 : _c.forEach((controller) => controller.abort());
|
|
19238
19260
|
this._abortControllerForRequestMap = undefined;
|
|
19239
19261
|
this.emitEvent({ type: "cancel" });
|
|
19240
19262
|
return this;
|
|
@@ -19307,7 +19329,7 @@
|
|
|
19307
19329
|
var _a;
|
|
19308
19330
|
if (!this.visualizeJs)
|
|
19309
19331
|
return;
|
|
19310
|
-
const draggerName = (_a = this._activeDragger) === null || _a ===
|
|
19332
|
+
const draggerName = (_a = this._activeDragger) === null || _a === void 0 ? void 0 : _a.name;
|
|
19311
19333
|
this.setActiveDragger();
|
|
19312
19334
|
this.clearSlices();
|
|
19313
19335
|
this.clearOverlay();
|
|
@@ -19390,7 +19412,7 @@
|
|
|
19390
19412
|
return this.getSelected().map((handle) => ({ handle }));
|
|
19391
19413
|
}
|
|
19392
19414
|
setSelection(selection) {
|
|
19393
|
-
this.setSelected(selection === null || selection ===
|
|
19415
|
+
this.setSelected(selection === null || selection === void 0 ? void 0 : selection.map((component) => component.handle));
|
|
19394
19416
|
}
|
|
19395
19417
|
/**
|
|
19396
19418
|
* Executes the command denoted by the given command. If the command is not found, tries to set active
|