@realsee/dnalogel 3.77.6 → 3.77.8
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/CHANGELOG.md +5 -0
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/index.cjs.js +71 -71
- package/dist/index.js +3390 -3366
- package/dist/index.umd.js +64 -64
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +30 -29
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +3 -2
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
- package/libs/Sculpt/Meshes/Line.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/index.js +159 -158
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/package.json +1 -1
|
@@ -150,6 +150,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
150
150
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
151
151
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
152
152
|
import "../../../shared-utils/util.js";
|
|
153
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
153
154
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
154
155
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
155
156
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -300,7 +301,7 @@ import "../../../Sculpt/Objects/Line/index.js";
|
|
|
300
301
|
import "../../../Sculpt/Editors/RectangleMeshEditor.js";
|
|
301
302
|
import "../../../Sculpt/utils/sortPositionsByCameraPosition.js";
|
|
302
303
|
const Z = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map();
|
|
303
|
-
class
|
|
304
|
+
class Yr extends B {
|
|
304
305
|
constructor(t, e) {
|
|
305
306
|
super(t, e);
|
|
306
307
|
y(this, "_floorIndex");
|
|
@@ -536,5 +537,5 @@ class Xr extends B {
|
|
|
536
537
|
}
|
|
537
538
|
}
|
|
538
539
|
export {
|
|
539
|
-
|
|
540
|
+
Yr as PlaneTag
|
|
540
541
|
};
|
|
@@ -59,6 +59,7 @@ import "../../../Sculpt/typings/style.js";
|
|
|
59
59
|
import "../../../shared-utils/three/IObject3D.js";
|
|
60
60
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
61
61
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
62
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
62
63
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
63
64
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
64
65
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -89,7 +90,7 @@ import "../../../shared-utils/safeObj.js";
|
|
|
89
90
|
import "../../utils/Cache.js";
|
|
90
91
|
import "../../../shared-utils/promise/withResolvers.js";
|
|
91
92
|
const P = new r.Vector2();
|
|
92
|
-
class
|
|
93
|
+
class yi extends R {
|
|
93
94
|
constructor(t, e) {
|
|
94
95
|
var o, i, n, s, a;
|
|
95
96
|
super(t, e);
|
|
@@ -297,5 +298,5 @@ class _i extends R {
|
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
export {
|
|
300
|
-
|
|
301
|
+
yi as PointTag
|
|
301
302
|
};
|
|
@@ -99,6 +99,7 @@ import "../../../Sculpt/typings/style.js";
|
|
|
99
99
|
import "../../../shared-utils/three/IObject3D.js";
|
|
100
100
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
101
101
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
102
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
102
103
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
103
104
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
104
105
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -209,7 +210,7 @@ import "../../../Sculpt/Meshes/Box.js";
|
|
|
209
210
|
import "../../../shared-utils/forReverseEach.js";
|
|
210
211
|
import "../../../Sculpt/Objects/Line/index.js";
|
|
211
212
|
import "../../../Sculpt/Objects/Polygon/Editor.js";
|
|
212
|
-
class
|
|
213
|
+
class Ji extends v {
|
|
213
214
|
constructor(t, o) {
|
|
214
215
|
super(t, o);
|
|
215
216
|
h(this, "tagStyle");
|
|
@@ -474,5 +475,5 @@ class Ii extends v {
|
|
|
474
475
|
}
|
|
475
476
|
}
|
|
476
477
|
export {
|
|
477
|
-
|
|
478
|
+
Ji as PolygonTag
|
|
478
479
|
};
|
|
@@ -71,6 +71,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
71
71
|
import "../../shared-utils/three/IObject3D.js";
|
|
72
72
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
73
73
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
74
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
74
75
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
75
76
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
76
77
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -94,7 +95,7 @@ import "../../shared-utils/url/defaultUrls.js";
|
|
|
94
95
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
95
96
|
import "../../shared-utils/typescript/entries.js";
|
|
96
97
|
import "../utils/tag/adaptConfig.js";
|
|
97
|
-
class
|
|
98
|
+
class _t extends l {
|
|
98
99
|
constructor(t) {
|
|
99
100
|
super(t);
|
|
100
101
|
o(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -145,5 +146,5 @@ class Zt extends l {
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
export {
|
|
148
|
-
|
|
149
|
+
_t as TagRender
|
|
149
150
|
};
|
|
@@ -85,6 +85,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
85
85
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
86
86
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
87
87
|
import "../../shared-utils/util.js";
|
|
88
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
88
89
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
89
90
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
90
91
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -103,7 +104,7 @@ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
103
104
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
104
105
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
105
106
|
import "../../shared-utils/url/defaultUrls.js";
|
|
106
|
-
class
|
|
107
|
+
class Jt extends ce {
|
|
107
108
|
constructor(e) {
|
|
108
109
|
super(e);
|
|
109
110
|
s(this, "tags", []);
|
|
@@ -311,5 +312,5 @@ class Xt extends ce {
|
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
export {
|
|
314
|
-
|
|
315
|
+
Jt as TagUtil
|
|
315
316
|
};
|
|
@@ -10,8 +10,8 @@ var b = (l, p, e) => p in l ? w(l, p, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
B.call(p, e) && b(l, e, p[e]);
|
|
11
11
|
return l;
|
|
12
12
|
}, C = (l, p) => F(l, _(p));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var m = (l, p, e) => (b(l, typeof p != "symbol" ? p + "" : p, e), e);
|
|
14
|
+
var d = (l, p, e) => new Promise((t, i) => {
|
|
15
15
|
var o = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
a(e.next(s));
|
|
@@ -121,6 +121,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
121
121
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
122
122
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
123
123
|
import "../../shared-utils/util.js";
|
|
124
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
124
125
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
125
126
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
126
127
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -334,23 +335,23 @@ import "../Components/Common/TagPopover/TagPopoverToolBar.js";
|
|
|
334
335
|
import "../Components/Common/TagPopover/ArrowRightIcon.js";
|
|
335
336
|
import "../Components/Common/TagPopover/ShareIcon.js";
|
|
336
337
|
import "../utils/popoverContainer.js";
|
|
337
|
-
const I = "Dnalogel-PanoTagPlugin",
|
|
338
|
-
class
|
|
338
|
+
const I = "Dnalogel-PanoTagPlugin", Vs = (l) => `${I}--${l}`;
|
|
339
|
+
class zs extends $ {
|
|
339
340
|
constructor(e, t) {
|
|
340
341
|
super(e);
|
|
341
342
|
/** state */
|
|
342
|
-
|
|
343
|
+
m(this, "state", { enabled: !0, visible: !0 });
|
|
343
344
|
/** debug */
|
|
344
|
-
|
|
345
|
-
|
|
345
|
+
m(this, "debug");
|
|
346
|
+
m(this, "debugUtil", new W(this));
|
|
346
347
|
/** 全局 hover 启用状态,默认 true */
|
|
347
|
-
|
|
348
|
+
m(this, "globalHoverEnabled", !0);
|
|
348
349
|
/** 更改 tag 模型 */
|
|
349
|
-
|
|
350
|
+
m(this, "changeTagModel", (e, t) => d(this, null, function* () {
|
|
350
351
|
var i;
|
|
351
352
|
e.data = v({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
352
353
|
}));
|
|
353
|
-
|
|
354
|
+
m(this, "handleFiveModeChange", (e) => {
|
|
354
355
|
const t = () => {
|
|
355
356
|
this.filter2DPointTag.forEach((i) => {
|
|
356
357
|
i.state.visible = !1, i.applyVisible();
|
|
@@ -364,7 +365,7 @@ class Vs extends $ {
|
|
|
364
365
|
};
|
|
365
366
|
this.tags.length < 500 ? t() : this.five.ready().then(() => t());
|
|
366
367
|
});
|
|
367
|
-
|
|
368
|
+
m(this, "handleFiveWantsMoveToPano", () => {
|
|
368
369
|
if (this.tags.length > 500) {
|
|
369
370
|
this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
|
|
370
371
|
return;
|
|
@@ -373,18 +374,18 @@ class Vs extends $ {
|
|
|
373
374
|
e.temporaryState.visible = !0;
|
|
374
375
|
}), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((e) => e.applyVisible());
|
|
375
376
|
});
|
|
376
|
-
|
|
377
|
+
m(this, "clickhandler", (e) => {
|
|
377
378
|
e.tag.onClick(e);
|
|
378
379
|
});
|
|
379
|
-
|
|
380
|
+
m(this, "handleFiveCameraUpdate", () => {
|
|
380
381
|
this.filterPointTag.forEach((e) => e.updateScreenPosition());
|
|
381
382
|
});
|
|
382
|
-
|
|
383
|
+
m(this, "handleFiveCameraFovUpdate", () => {
|
|
383
384
|
this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
|
|
384
385
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
385
386
|
}, 1e3);
|
|
386
387
|
});
|
|
387
|
-
|
|
388
|
+
m(this, "handleFivePanoArrived", () => d(this, null, function* () {
|
|
388
389
|
this.filter2DPointTag.forEach((e) => {
|
|
389
390
|
e.state.visible = !1, e.applyVisible();
|
|
390
391
|
}), this.tagsDo(this.tags, (e) => {
|
|
@@ -407,16 +408,16 @@ class Vs extends $ {
|
|
|
407
408
|
});
|
|
408
409
|
}));
|
|
409
410
|
/** 楼层切换时,需要更新标签可见性 */
|
|
410
|
-
|
|
411
|
+
m(this, "handleFiveModelShownFloorChange", () => {
|
|
411
412
|
this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
412
413
|
});
|
|
413
|
-
|
|
414
|
+
m(this, "onFiveRefined", D(() => {
|
|
414
415
|
A(this.five.getCurrentState().mode) ? this.setUnfoldedByCamera() : this.tags.forEach((e) => e.cache.clear()), this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
415
416
|
}));
|
|
416
|
-
|
|
417
|
+
m(this, "onFiveEveryReady", () => {
|
|
417
418
|
this.setUnfoldedByCamera(), A(this.five.getCurrentState().mode) && this.tagsDo(this.tags, (e) => e.updateVisible());
|
|
418
419
|
});
|
|
419
|
-
|
|
420
|
+
m(this, "render", () => {
|
|
420
421
|
this.renderQueue.forEach((e, t) => {
|
|
421
422
|
const { keys: i } = e;
|
|
422
423
|
if (t === "TagContainerSvelte") {
|
|
@@ -472,7 +473,7 @@ class Vs extends $ {
|
|
|
472
473
|
* @description 加载数据
|
|
473
474
|
*/
|
|
474
475
|
load(e) {
|
|
475
|
-
return
|
|
476
|
+
return d(this, null, function* () {
|
|
476
477
|
var o, n;
|
|
477
478
|
c.clearSharedMeshRegistry(), this.clearTags();
|
|
478
479
|
try {
|
|
@@ -508,7 +509,7 @@ class Vs extends $ {
|
|
|
508
509
|
* @param options.updateMaskUrl 是否更新 mask。若为 true 且该 panoIndex 已有 Mask 标签,仅更新其 maskUrl(不变 color、style),并添加新标签
|
|
509
510
|
*/
|
|
510
511
|
addTag(e, t) {
|
|
511
|
-
return
|
|
512
|
+
return d(this, null, function* () {
|
|
512
513
|
var a, s;
|
|
513
514
|
const o = (Array.isArray(e) ? e : [e]).filter((r) => r.stickType === "3DBox" || r.stickType === "Mask" || r.position);
|
|
514
515
|
if (t != null && t.updateMaskUrl && o.length === 1 && o[0].stickType === "Mask") {
|
|
@@ -522,7 +523,7 @@ class Vs extends $ {
|
|
|
522
523
|
const h = N(r);
|
|
523
524
|
return h === "2DPoint" || h === "3DPoint" ? new q(this, r) : h === "Model" ? new J(this, r) : h === "Plane" ? new Z(this, r) : h === "3DBox" ? new Y(this, r) : h === "Polygon" ? new K(this, r) : h === "Mask" ? new c(this, r) : null;
|
|
524
525
|
});
|
|
525
|
-
return n.forEach((r) => x(r)), this.tags.push(...n), this.tagsLengthWillUpdate = !0, j(this.five).then(() =>
|
|
526
|
+
return n.forEach((r) => x(r)), this.tags.push(...n), this.tagsLengthWillUpdate = !0, j(this.five).then(() => d(this, null, function* () {
|
|
526
527
|
var r, h;
|
|
527
528
|
this.store.eventListenerDisposer && ((h = (r = this.store).eventListenerDisposer) == null || h.call(r)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.tagsDo(n, (f) => {
|
|
528
529
|
this.tags.includes(f) && (f.updateVisible(), f.updateZIndex());
|
|
@@ -559,7 +560,7 @@ class Vs extends $ {
|
|
|
559
560
|
});
|
|
560
561
|
}
|
|
561
562
|
show(e) {
|
|
562
|
-
return
|
|
563
|
+
return d(this, null, function* () {
|
|
563
564
|
if (this.checkDisposed())
|
|
564
565
|
return;
|
|
565
566
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
@@ -567,7 +568,7 @@ class Vs extends $ {
|
|
|
567
568
|
});
|
|
568
569
|
}
|
|
569
570
|
hide(e) {
|
|
570
|
-
return
|
|
571
|
+
return d(this, null, function* () {
|
|
571
572
|
if (this.checkDisposed())
|
|
572
573
|
return;
|
|
573
574
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
@@ -611,7 +612,7 @@ class Vs extends $ {
|
|
|
611
612
|
* @param {Partial<anime.AnimeParams>} animeConfig
|
|
612
613
|
*/
|
|
613
614
|
blinkTagById(e, t) {
|
|
614
|
-
return
|
|
615
|
+
return d(this, null, function* () {
|
|
615
616
|
var i;
|
|
616
617
|
return (i = this.getTagById(e)) == null ? void 0 : i.blink(t);
|
|
617
618
|
});
|
|
@@ -746,7 +747,7 @@ class Vs extends $ {
|
|
|
746
747
|
* @description 设置 unfolded
|
|
747
748
|
*/
|
|
748
749
|
setUnfolded() {
|
|
749
|
-
return
|
|
750
|
+
return d(this, null, function* () {
|
|
750
751
|
return new Promise((e) => {
|
|
751
752
|
setTimeout(() => {
|
|
752
753
|
this.setUnfoldedByCamera(), e();
|
|
@@ -916,7 +917,7 @@ class Vs extends $ {
|
|
|
916
917
|
}
|
|
917
918
|
}
|
|
918
919
|
export {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
920
|
+
zs as PanoTagPluginController,
|
|
921
|
+
zs as default,
|
|
922
|
+
Vs as pluginFlag
|
|
922
923
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as Si } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Vi } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Xi, DimensionType as Yi, PointType as Zi } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -58,6 +58,7 @@ import "../Sculpt/typings/style.js";
|
|
|
58
58
|
import "../shared-utils/three/IObject3D.js";
|
|
59
59
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
60
60
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
61
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
61
62
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
62
63
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
63
64
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -308,14 +309,14 @@ import "./Components/Common/TagPopover/ArrowRightIcon.js";
|
|
|
308
309
|
import "./Components/Common/TagPopover/ShareIcon.js";
|
|
309
310
|
import "./utils/popoverContainer.js";
|
|
310
311
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
311
|
-
const
|
|
312
|
+
const Oi = (o, t) => new r(o, t);
|
|
312
313
|
export {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
Xi as ContentType,
|
|
315
|
+
Yi as DimensionType,
|
|
316
|
+
Oi as PanoTagPlugin,
|
|
316
317
|
r as PanoTagPluginController,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
318
|
+
Zi as PointType,
|
|
319
|
+
Oi as default,
|
|
320
|
+
Vi as defaultGlobalConfig,
|
|
321
|
+
Si as pluginFlag
|
|
321
322
|
};
|
|
@@ -65,6 +65,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
65
65
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
66
66
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
67
67
|
import "../../../shared-utils/util.js";
|
|
68
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
68
69
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
69
70
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
70
71
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -81,7 +82,7 @@ import "../../../vendor/animejs/lib/anime.es.js";
|
|
|
81
82
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
82
83
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
83
84
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
84
|
-
function
|
|
85
|
+
function yi(o, i, t) {
|
|
85
86
|
var v, b, j, C, A;
|
|
86
87
|
const D = (v = t == null ? void 0 : t.useCache) != null ? v : !0;
|
|
87
88
|
if (!o)
|
|
@@ -127,5 +128,5 @@ function di(o, i, t) {
|
|
|
127
128
|
return P(T), Object.values(f).forEach((e) => P(e)), T._isMerged = !0, T;
|
|
128
129
|
}
|
|
129
130
|
export {
|
|
130
|
-
|
|
131
|
+
yi as calculateTagConfig
|
|
131
132
|
};
|
|
@@ -48,6 +48,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
48
48
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
49
49
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
50
50
|
import "../../../shared-utils/util.js";
|
|
51
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
51
52
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
52
53
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
53
54
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -68,7 +69,7 @@ import "@realsee/five";
|
|
|
68
69
|
function n(i) {
|
|
69
70
|
return i.stickType ? i.stickType : i.pointType === "PointTag" && i.dimensionType === "3D" ? "3DPoint" : i.pointType === "PlaneTag" ? "Plane" : "2DPoint";
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function _i(i) {
|
|
72
73
|
var r, o, p, m;
|
|
73
74
|
if (i.stickType || (i.stickType = n(i)), i.contentType === "VRLink" || i.contentType === "PanoLink" || i.contentType === "Link") {
|
|
74
75
|
const t = i;
|
|
@@ -82,6 +83,6 @@ function Li(i) {
|
|
|
82
83
|
}), i;
|
|
83
84
|
}
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
_i as default,
|
|
86
87
|
n as getTagStickType
|
|
87
88
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var u = Object.defineProperty, g = Object.defineProperties;
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var m = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var l = (e, i, r) => i in e ? u(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, p = (e, i) => {
|
|
6
6
|
for (var r in i || (i = {}))
|
|
7
7
|
M.call(i, r) && l(e, r, i[r]);
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
8
|
+
if (m)
|
|
9
|
+
for (var r of m(i))
|
|
10
10
|
W.call(i, r) && l(e, r, i[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, a = (e, i) => g(e, b(i));
|
|
13
13
|
var s = (e, i, r) => (l(e, typeof i != "symbol" ? i + "" : i, r), r);
|
|
14
|
-
import { VideoMeshController as
|
|
14
|
+
import { VideoMeshController as h } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
17
17
|
import "../shared-utils/tag.js";
|
|
@@ -65,6 +65,7 @@ import "../Sculpt/typings/style.js";
|
|
|
65
65
|
import "../shared-utils/three/IObject3D.js";
|
|
66
66
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
67
67
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
68
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
68
69
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
69
70
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
70
71
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -83,7 +84,7 @@ import "../Sculpt/utils/three/rayOnLine.js";
|
|
|
83
84
|
import "../shared-utils/animationFrame/index.js";
|
|
84
85
|
import "./utils/index.js";
|
|
85
86
|
import "../shared-utils/url/defaultUrls.js";
|
|
86
|
-
class
|
|
87
|
+
class zr extends _ {
|
|
87
88
|
constructor(r) {
|
|
88
89
|
super(r);
|
|
89
90
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
@@ -111,7 +112,7 @@ class qr extends _ {
|
|
|
111
112
|
n.video_list.forEach((d) => {
|
|
112
113
|
this.controllerMap.set(
|
|
113
114
|
d.render_id,
|
|
114
|
-
new
|
|
115
|
+
new h(this.five, a(p({}, d), {
|
|
115
116
|
fiveUtil: this.fiveUtil,
|
|
116
117
|
panoIndex: c,
|
|
117
118
|
renderID: f,
|
|
@@ -190,7 +191,7 @@ class qr extends _ {
|
|
|
190
191
|
const n = o.render_id;
|
|
191
192
|
this.controllerMap.set(
|
|
192
193
|
o.render_id,
|
|
193
|
-
new
|
|
194
|
+
new h(this.five, a(p({}, o), {
|
|
194
195
|
fiveUtil: this.fiveUtil,
|
|
195
196
|
panoIndex: r,
|
|
196
197
|
renderID: n,
|
|
@@ -228,5 +229,5 @@ class qr extends _ {
|
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
zr as PanoVideoPluginController
|
|
232
233
|
};
|
|
@@ -54,6 +54,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
54
54
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
55
55
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
56
56
|
import "../shared-utils/util.js";
|
|
57
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
57
58
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
58
59
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
59
60
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -70,7 +71,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
70
71
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
71
72
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
72
73
|
import "@realsee/five";
|
|
73
|
-
class
|
|
74
|
+
class $i {
|
|
74
75
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
75
76
|
constructor(i, e) {
|
|
76
77
|
t(this, "video");
|
|
@@ -345,5 +346,5 @@ class Qi {
|
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
export {
|
|
348
|
-
|
|
349
|
+
$i as VideoMeshController
|
|
349
350
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PanoVideoPluginController as r } from "./Controller.js";
|
|
2
|
-
import { typings as
|
|
2
|
+
import { typings as ko } from "./typings/index.js";
|
|
3
3
|
import "./VideoMeshController.js";
|
|
4
4
|
import "./utils/shader.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
@@ -53,6 +53,7 @@ import "../Sculpt/typings/style.js";
|
|
|
53
53
|
import "../shared-utils/three/IObject3D.js";
|
|
54
54
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
55
55
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
56
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
56
57
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
57
58
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
58
59
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -72,9 +73,9 @@ import "../shared-utils/animationFrame/index.js";
|
|
|
72
73
|
import "./utils/index.js";
|
|
73
74
|
import "../base/BasePlugin.js";
|
|
74
75
|
import "../shared-utils/url/defaultUrls.js";
|
|
75
|
-
const
|
|
76
|
+
const bo = (o) => new r(o);
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
bo as PanoVideoPlugin,
|
|
79
|
+
ko as PanoVideoPluginType,
|
|
80
|
+
bo as default
|
|
80
81
|
};
|
|
@@ -82,6 +82,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
82
82
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
83
83
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
84
84
|
import "../shared-utils/util.js";
|
|
85
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
85
86
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
86
87
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
87
88
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -107,7 +108,7 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
|
107
108
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
108
109
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
109
110
|
const g = { flowSpeed: 0.6, rotateSpeed: 0 };
|
|
110
|
-
class
|
|
111
|
+
class ae extends S {
|
|
111
112
|
constructor(t) {
|
|
112
113
|
super(t);
|
|
113
114
|
// ==================== public properties ====================
|
|
@@ -387,5 +388,5 @@ class re extends S {
|
|
|
387
388
|
}
|
|
388
389
|
}
|
|
389
390
|
export {
|
|
390
|
-
|
|
391
|
+
ae as Controller
|
|
391
392
|
};
|
|
@@ -52,6 +52,7 @@ import "../Sculpt/typings/style.js";
|
|
|
52
52
|
import "../shared-utils/three/IObject3D.js";
|
|
53
53
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
54
54
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
55
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -79,8 +80,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
79
80
|
import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
80
81
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
81
82
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
82
|
-
const
|
|
83
|
+
const Dr = (r) => new o(r);
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
Dr as PipelinePlugin,
|
|
86
|
+
Dr as default
|
|
86
87
|
};
|
|
@@ -52,6 +52,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
52
52
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
53
53
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
54
54
|
import "../../../shared-utils/util.js";
|
|
55
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -92,7 +93,7 @@ const d = (
|
|
|
92
93
|
}
|
|
93
94
|
`
|
|
94
95
|
);
|
|
95
|
-
class
|
|
96
|
+
class kt extends h {
|
|
96
97
|
constructor(t) {
|
|
97
98
|
super(t, d);
|
|
98
99
|
/** 初始状态下,当前水管内的水流在整体管道上的位移
|
|
@@ -150,5 +151,5 @@ class jt extends h {
|
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
export {
|
|
153
|
-
|
|
154
|
+
kt as ObjectFlowPipe
|
|
154
155
|
};
|
|
@@ -52,6 +52,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
52
52
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
53
53
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
54
54
|
import "../../../shared-utils/util.js";
|
|
55
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -73,7 +74,7 @@ import "../../../shared-utils/animationFrame/index.js";
|
|
|
73
74
|
import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
74
75
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
75
76
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
76
|
-
class
|
|
77
|
+
class ki extends a {
|
|
77
78
|
constructor(i) {
|
|
78
79
|
super(i);
|
|
79
80
|
p(this, "imageCount", 64);
|
|
@@ -96,5 +97,5 @@ class Ri extends a {
|
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
ki as ObjectHighlightPipe
|
|
100
101
|
};
|
|
@@ -77,6 +77,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
77
77
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
78
78
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
79
79
|
import "../../../shared-utils/util.js";
|
|
80
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
80
81
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
81
82
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
82
83
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -36,6 +36,10 @@ export declare class LineMesh extends IObject3D implements RenderDomObjectType {
|
|
|
36
36
|
private paramsStyle;
|
|
37
37
|
private lastRenderDomItem;
|
|
38
38
|
private lastFOV;
|
|
39
|
+
private fiveListenersInited;
|
|
40
|
+
private fiveRef?;
|
|
41
|
+
private initFiveListeners;
|
|
42
|
+
private removeFiveListeners;
|
|
39
43
|
constructor(params?: Partial<LineMeshStyle & LineData>);
|
|
40
44
|
updateMatrixWorld(force?: boolean): void;
|
|
41
45
|
setPoints(points: AnyPositions): void;
|