@realsee/dnalogel 3.45.0 → 3.46.1
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 +6 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29600 -29557
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +151 -78
- package/libs/AreaMakerPlugin/index.js +77 -4
- package/libs/AreaMakerPlugin/utils/Item.js +191 -111
- package/libs/CSS3DRenderPlugin/Controller.js +90 -29
- package/libs/CSS3DRenderPlugin/index.js +76 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
- package/libs/CruisePlugin/BaseController.js +122 -49
- package/libs/CruisePlugin/Move.js +74 -21
- package/libs/CruisePlugin/Work.js +99 -46
- package/libs/CruisePlugin/index.js +80 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
- package/libs/CurrentPanoImagePlugin/index.js +77 -4
- package/libs/GuideLinePlugin/Controller.js +79 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
- package/libs/GuideLinePlugin/index.js +80 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -82
- package/libs/ModelMakerPlugin/index.js +76 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
- package/libs/ModelTVVideoPlugin/index.js +69 -8
- package/libs/Object3DHelperPlugin/Controller.js +67 -43
- package/libs/Object3DHelperPlugin/index.js +36 -13
- package/libs/PanoCompassPlugin/Controller.js +98 -42
- package/libs/PanoCompassPlugin/index.js +72 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
- package/libs/PanoDoorLabelPlugin/index.js +77 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
- package/libs/PanoMeasurePlugin/Model/area.js +115 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
- package/libs/PanoMeasurePlugin/index.js +77 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
- package/libs/PanoSpatialTagPlugin/index.js +67 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
- package/libs/PanoTagPlugin/controller/index.js +114 -61
- package/libs/PanoTagPlugin/index.js +90 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
- package/libs/PanoVideoPlugin/Controller.js +138 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
- package/libs/PanoVideoPlugin/index.js +83 -10
- package/libs/PipelinePlugin/Controller.js +200 -128
- package/libs/PipelinePlugin/index.js +77 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +80 -57
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +193 -192
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -21,20 +21,20 @@ var B = (u, i) => {
|
|
|
21
21
|
};
|
|
22
22
|
var f = (u, i, e) => (M(u, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
23
|
var U = (u, i, e) => new Promise((t, r) => {
|
|
24
|
-
var n = (
|
|
24
|
+
var n = (o) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
s(e.next(o));
|
|
27
27
|
} catch (a) {
|
|
28
28
|
r(a);
|
|
29
29
|
}
|
|
30
|
-
}, l = (
|
|
30
|
+
}, l = (o) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
s(e.throw(o));
|
|
33
33
|
} catch (a) {
|
|
34
34
|
r(a);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, s = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(n, l);
|
|
37
|
+
s((e = e.apply(u, i)).next());
|
|
38
38
|
});
|
|
39
39
|
import { Subscribe as K } from "../../../shared-utils/Subscribe.js";
|
|
40
40
|
import { calculateTagConfig as w } from "../../utils/tag/calculateTagConfig.js";
|
|
@@ -46,13 +46,14 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
|
46
46
|
import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
|
|
47
47
|
import "@realsee/five/line";
|
|
48
48
|
import { anyPositionToVector3 as A } from "../../../shared-utils/positionToVector3.js";
|
|
49
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
49
50
|
import "../../../shared-utils/three/THREESphere.js";
|
|
50
51
|
import { blink as ie, reblink as te } from "../../../shared-utils/three/blink.js";
|
|
51
52
|
import { vectorToCoordinates as ne } from "../../../shared-utils/vectorToCoordinate.js";
|
|
52
53
|
import { transformPosition as O } from "../../../shared-utils/five/transformPosition.js";
|
|
53
54
|
import { isNil as R, notNil as E } from "../../../shared-utils/isNil.js";
|
|
54
|
-
import { lookPoint as
|
|
55
|
-
import { uuid as
|
|
55
|
+
import { lookPoint as oe } from "../../../shared-utils/five/lookPoint.js";
|
|
56
|
+
import { uuid as se } from "../../../shared-utils/uuid.js";
|
|
56
57
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
57
58
|
import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
58
59
|
import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
|
|
@@ -69,14 +70,84 @@ import "../../utils/tag/adaptConfig.js";
|
|
|
69
70
|
import "../../typings/tag/TagConfig.js";
|
|
70
71
|
import "@realsee/five";
|
|
71
72
|
import "animejs";
|
|
72
|
-
import "../../../
|
|
73
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
74
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
75
|
+
import "../../../base/BasePlugin.js";
|
|
73
76
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
74
77
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
75
78
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
76
79
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
80
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
81
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
82
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
83
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
84
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
85
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
86
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
87
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
88
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
89
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
90
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
91
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
92
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
93
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
94
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
95
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
96
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
97
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
98
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
99
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
100
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
101
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
102
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
103
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
104
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
105
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
106
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
107
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
108
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
109
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
110
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
111
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
112
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
113
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
114
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
115
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
116
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
117
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
118
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
119
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
120
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
121
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
122
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
123
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
124
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
125
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
126
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
127
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
128
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
129
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
130
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
131
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
132
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
133
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
134
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
135
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
136
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
137
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
138
|
+
import "../../../Sculpt/typings/style.js";
|
|
139
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
140
|
+
import "../../../shared-utils/tag.js";
|
|
141
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
142
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
143
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
144
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
145
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
146
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
147
|
+
import "../../../shared-utils/formatRad.js";
|
|
77
148
|
const k = new S.Raycaster();
|
|
78
149
|
k.params.Points.threshold = 0.1;
|
|
79
|
-
class
|
|
150
|
+
class ht {
|
|
80
151
|
constructor(i, e) {
|
|
81
152
|
f(this, "plugin");
|
|
82
153
|
f(this, "id");
|
|
@@ -106,17 +177,17 @@ class _e {
|
|
|
106
177
|
f(this, "computedConfig");
|
|
107
178
|
f(this, "cache");
|
|
108
179
|
f(this, "entryFromModel");
|
|
109
|
-
var
|
|
180
|
+
var o, a, c, g;
|
|
110
181
|
this.plugin = i;
|
|
111
182
|
const t = Y(e);
|
|
112
183
|
e.stickType = t;
|
|
113
|
-
const r = JSON.parse(JSON.stringify(e.data)), n = (
|
|
184
|
+
const r = JSON.parse(JSON.stringify(e.data)), n = (o = e.initialConfig) != null ? o : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
114
185
|
e.initialConfig = n;
|
|
115
|
-
const l = w(e, i.config),
|
|
116
|
-
e.config =
|
|
186
|
+
const l = w(e, i.config), s = this.getConfig(e);
|
|
187
|
+
e.config = s, this.id = (a = e.id) != null ? a : se(), this.enabled = (c = e.enabled) != null ? c : !0, this.contentType = e.contentType, this.data = (g = s.initialData) != null && g.important ? b(e.data, r, s.initialData) : b(e.data, s.initialData, r), this.state = p({
|
|
117
188
|
visible: void 0,
|
|
118
189
|
unfolded: !this.can("fold")
|
|
119
|
-
},
|
|
190
|
+
}, s.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
120
191
|
const d = e.originPosition;
|
|
121
192
|
if (!d)
|
|
122
193
|
return;
|
|
@@ -173,14 +244,14 @@ class _e {
|
|
|
173
244
|
const n = e == null ? void 0 : e.panoIndex;
|
|
174
245
|
if (R(n))
|
|
175
246
|
return;
|
|
176
|
-
const l = this.workUtil.getObserverPosition(n),
|
|
247
|
+
const l = this.workUtil.getObserverPosition(n), s = this.centerPosition.clone().sub(l).normalize();
|
|
177
248
|
this.five.setState(p({
|
|
178
249
|
mode: "Panorama",
|
|
179
250
|
workCode: this.workUtil.workCode,
|
|
180
251
|
panoIndex: n
|
|
181
|
-
}, ne(
|
|
252
|
+
}, ne(s))), yield this.five.ready();
|
|
182
253
|
} else
|
|
183
|
-
t === "Mapview" && (yield
|
|
254
|
+
t === "Mapview" && (yield oe(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
|
|
184
255
|
});
|
|
185
256
|
}
|
|
186
257
|
/**
|
|
@@ -188,8 +259,8 @@ class _e {
|
|
|
188
259
|
*/
|
|
189
260
|
blink(i) {
|
|
190
261
|
return U(this, null, function* () {
|
|
191
|
-
var
|
|
192
|
-
const e = (
|
|
262
|
+
var s, o;
|
|
263
|
+
const e = (s = this.enabled) != null ? s : !0, t = (o = this.state) == null ? void 0 : o.visible, r = e && t;
|
|
193
264
|
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.plugin.render(), yield de(0), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
194
265
|
const n = (() => {
|
|
195
266
|
var c;
|
|
@@ -286,13 +357,13 @@ class _e {
|
|
|
286
357
|
this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
|
|
287
358
|
}
|
|
288
359
|
getConfig(i, e) {
|
|
289
|
-
var l,
|
|
290
|
-
const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (
|
|
291
|
-
return (
|
|
360
|
+
var l, s, o;
|
|
361
|
+
const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (s = t.configWithFiveMode) == null ? void 0 : s[r];
|
|
362
|
+
return (o = n != null ? n : t) != null ? o : {};
|
|
292
363
|
}
|
|
293
364
|
getDistance(i, e = 3) {
|
|
294
|
-
const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position,
|
|
295
|
-
return !l || !
|
|
365
|
+
const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, s = this.centerPosition;
|
|
366
|
+
return !l || !s ? -1 : l.distanceTo(s);
|
|
296
367
|
}
|
|
297
368
|
getVisible(i) {
|
|
298
369
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
@@ -356,52 +427,52 @@ class _e {
|
|
|
356
427
|
const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
|
|
357
428
|
return (() => {
|
|
358
429
|
var a, g, d;
|
|
359
|
-
const
|
|
360
|
-
if (typeof
|
|
430
|
+
const o = (a = this.getConfig().visibleConfig) != null ? a : {};
|
|
431
|
+
if (typeof o == "function")
|
|
361
432
|
return {
|
|
362
|
-
value:
|
|
433
|
+
value: o(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
|
|
363
434
|
checkedList: n,
|
|
364
435
|
reason: "config function result"
|
|
365
436
|
};
|
|
366
437
|
{
|
|
367
|
-
if (
|
|
438
|
+
if (o.keep === "hidden")
|
|
368
439
|
return { value: !1, checkedList: n, reason: "config.keep is hidden" };
|
|
369
|
-
if (
|
|
440
|
+
if (o.keep === "visible")
|
|
370
441
|
return { value: !0, checkedList: n, reason: "config.keep is visible" };
|
|
371
|
-
const m = this.computeVisibleByFiveMode(
|
|
442
|
+
const m = this.computeVisibleByFiveMode(o, r);
|
|
372
443
|
if ((m == null ? void 0 : m.value) === !1)
|
|
373
444
|
return m;
|
|
374
|
-
if (
|
|
445
|
+
if (o.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
|
|
375
446
|
const c = this.computeVisibleByFloorIndex(), { value: h } = c, v = B(c, ["value"]);
|
|
376
447
|
if (h === !1)
|
|
377
448
|
return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
|
|
378
449
|
}
|
|
379
|
-
if (T(r) &&
|
|
380
|
-
if (n.push("visiblePanoIndex"), Array.isArray(
|
|
450
|
+
if (T(r) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
|
|
451
|
+
if (n.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
|
|
381
452
|
return {
|
|
382
453
|
value: !1,
|
|
383
454
|
checkedList: n,
|
|
384
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${
|
|
455
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
385
456
|
};
|
|
386
|
-
if (
|
|
457
|
+
if (o.visiblePanoIndex === "current" && t !== ((g = this.fiveState) == null ? void 0 : g.panoIndex))
|
|
387
458
|
return {
|
|
388
459
|
value: !1,
|
|
389
460
|
checkedList: n,
|
|
390
461
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(d = this.fiveState) == null ? void 0 : d.panoIndex}`
|
|
391
462
|
};
|
|
392
463
|
}
|
|
393
|
-
if (
|
|
464
|
+
if (o.visibleDistance !== void 0 && (n.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
|
|
394
465
|
const h = this.getDistance(e, 1);
|
|
395
|
-
if (C(h,
|
|
466
|
+
if (C(h, o.visibleDistance) === !1)
|
|
396
467
|
return {
|
|
397
468
|
value: !1,
|
|
398
469
|
checkedList: n,
|
|
399
470
|
panoIndex: t,
|
|
400
|
-
visibleDistance:
|
|
401
|
-
reason: `distance is not in visibleDistance. distance: ${h}, visibleDistance: ${
|
|
471
|
+
visibleDistance: o.visibleDistance,
|
|
472
|
+
reason: `distance is not in visibleDistance. distance: ${h}, visibleDistance: ${o.visibleDistance.min} - ${o.visibleDistance.max}`
|
|
402
473
|
};
|
|
403
474
|
}
|
|
404
|
-
if (
|
|
475
|
+
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
405
476
|
if (n.push("intersectRaycaster"), t === void 0)
|
|
406
477
|
return {
|
|
407
478
|
value: !1,
|
|
@@ -425,9 +496,9 @@ class _e {
|
|
|
425
496
|
*/
|
|
426
497
|
computeVisibleByFiveMode(i, e) {
|
|
427
498
|
const t = () => {
|
|
428
|
-
var l,
|
|
499
|
+
var l, s;
|
|
429
500
|
let n = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
|
|
430
|
-
if (n || (n = (
|
|
501
|
+
if (n || (n = (s = (l = this.fiveState) == null ? void 0 : l.mode) != null ? s : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
|
|
431
502
|
return n.includes(e);
|
|
432
503
|
if (n === "ModelLike")
|
|
433
504
|
return P(e);
|
|
@@ -457,8 +528,8 @@ class _e {
|
|
|
457
528
|
}
|
|
458
529
|
/** 通过射线检测标签可用性 */
|
|
459
530
|
computeVisibleByIntersect(i) {
|
|
460
|
-
var
|
|
461
|
-
const e = z(z((
|
|
531
|
+
var o, a, c, g;
|
|
532
|
+
const e = z(z((o = this.getConfig().visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = T(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
462
533
|
if (r === void 0)
|
|
463
534
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
464
535
|
const n = ae(
|
|
@@ -468,7 +539,7 @@ class _e {
|
|
|
468
539
|
return d === "center" ? $(this) : d === "corner" ? L(this) : Array.isArray(d) ? d : [];
|
|
469
540
|
})()
|
|
470
541
|
);
|
|
471
|
-
let l = 0,
|
|
542
|
+
let l = 0, s = 0;
|
|
472
543
|
for (const d of n) {
|
|
473
544
|
const m = new S.Vector3().subVectors(d, r).normalize();
|
|
474
545
|
let h;
|
|
@@ -484,12 +555,12 @@ class _e {
|
|
|
484
555
|
}).filter(E), [Q] = k.intersectObjects(q, !0);
|
|
485
556
|
return Q;
|
|
486
557
|
})(), J = r.distanceTo(d), W = (a = e.distanceAccuracy) != null ? a : 0.01;
|
|
487
|
-
h = Math.min(h != null ? h : 1 / 0, (c = x == null ? void 0 : x.distance) != null ? c : 1 / 0), h + W >= J ? l++ :
|
|
558
|
+
h = Math.min(h != null ? h : 1 / 0, (c = x == null ? void 0 : x.distance) != null ? c : 1 / 0), h + W >= J ? l++ : s++;
|
|
488
559
|
const H = (g = e.needPassed) != null ? g : 1;
|
|
489
560
|
if (l >= H)
|
|
490
561
|
return { value: !0 };
|
|
491
562
|
}
|
|
492
|
-
return
|
|
563
|
+
return s === 0 ? { value: !0 } : {
|
|
493
564
|
value: !1,
|
|
494
565
|
reason: {
|
|
495
566
|
type: "intersectRaycaster check failed",
|
|
@@ -500,12 +571,12 @@ class _e {
|
|
|
500
571
|
};
|
|
501
572
|
}
|
|
502
573
|
computeVisibleByFloorIndex() {
|
|
503
|
-
var r, n, l,
|
|
574
|
+
var r, n, l, s, o, a, c;
|
|
504
575
|
let i = 0;
|
|
505
576
|
const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
|
|
506
577
|
e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = le(
|
|
507
578
|
this.workUtil.work,
|
|
508
|
-
(c = (a = (
|
|
579
|
+
(c = (a = (s = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : s.position) != null ? a : (o = this.mediaPlane) == null ? void 0 : o.position) != null ? c : $(this)
|
|
509
580
|
);
|
|
510
581
|
const t = this.fiveUtil.model.shownFloor;
|
|
511
582
|
return {
|
|
@@ -550,19 +621,19 @@ class _e {
|
|
|
550
621
|
return !1;
|
|
551
622
|
}
|
|
552
623
|
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
553
|
-
const n = this.plugin.filterPointTag.filter((
|
|
554
|
-
const
|
|
555
|
-
if (!
|
|
624
|
+
const n = this.plugin.filterPointTag.filter((s) => s.currentVisible).filter((s) => {
|
|
625
|
+
const o = this.computeTagProject();
|
|
626
|
+
if (!o)
|
|
556
627
|
return !1;
|
|
557
|
-
const { x: a, y: c, z: g } =
|
|
628
|
+
const { x: a, y: c, z: g } = o;
|
|
558
629
|
return !(Math.abs(g) > 1 || Math.abs(a) > 1 || Math.abs(c) > 1);
|
|
559
|
-
}).map((
|
|
560
|
-
var
|
|
561
|
-
return !(typeof
|
|
562
|
-
}).map((
|
|
563
|
-
const a =
|
|
564
|
-
return !(a && C(
|
|
565
|
-
}).sort((
|
|
630
|
+
}).map((s) => ({ tag: s, id: s.id, tagConfig: s.getConfig().unfoldedConfig })).filter(({ tagConfig: s }) => {
|
|
631
|
+
var o, a;
|
|
632
|
+
return !(typeof s == "function" || s.keep || s.autoUnfold === !1 || ((o = s.autoUnfold) == null ? void 0 : o.enable) === !1 || ((a = s.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
|
|
633
|
+
}).map((s) => I(p({}, s), { distance: s.tag.getDistance() })).filter(({ distance: s, tagConfig: o }) => {
|
|
634
|
+
const a = o.autoUnfold.distance;
|
|
635
|
+
return !(a && C(s, a) === !1);
|
|
636
|
+
}).sort((s, o) => s.distance - o.distance).findIndex((s) => s.id === this.id);
|
|
566
637
|
if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
567
638
|
return !1;
|
|
568
639
|
}
|
|
@@ -614,5 +685,5 @@ class _e {
|
|
|
614
685
|
}
|
|
615
686
|
}
|
|
616
687
|
export {
|
|
617
|
-
|
|
688
|
+
ht as BaseTag
|
|
618
689
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var b = (
|
|
3
|
-
var l = (
|
|
4
|
-
var d = (
|
|
5
|
-
var
|
|
2
|
+
var b = (e, m, i) => m in e ? f(e, m, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[m] = i;
|
|
3
|
+
var l = (e, m, i) => (b(e, typeof m != "symbol" ? m + "" : m, i), i);
|
|
4
|
+
var d = (e, m, i) => new Promise((p, o) => {
|
|
5
|
+
var s = (t) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
r(i.next(t));
|
|
8
8
|
} catch (n) {
|
|
9
|
-
|
|
9
|
+
o(n);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, a = (t) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
r(i.throw(t));
|
|
14
14
|
} catch (n) {
|
|
15
|
-
|
|
15
|
+
o(n);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, r = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(s, a);
|
|
18
|
+
r((i = i.apply(e, m)).next());
|
|
19
19
|
});
|
|
20
20
|
import { arrayPositionToVector3 as h } from "../../../shared-utils/positionToVector3.js";
|
|
21
21
|
import { loadGLTF as j } from "../../../shared-utils/three/GLTFLoader.js";
|
|
@@ -46,21 +46,92 @@ import "../../../shared-utils/five/mode.js";
|
|
|
46
46
|
import "hammerjs";
|
|
47
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
48
|
import "@realsee/five/line";
|
|
49
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
50
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
51
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
52
|
+
import "../../../base/BasePlugin.js";
|
|
49
53
|
import "../../../shared-utils/three/THREESphere.js";
|
|
50
54
|
import "animejs";
|
|
55
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
56
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
57
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
58
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
59
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
60
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
51
61
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
63
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
65
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
66
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
67
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
70
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
71
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
72
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
73
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
74
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
75
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
76
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
77
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
78
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
79
|
+
import "../../../shared-utils/isNil.js";
|
|
80
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
81
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
82
|
+
import "../../../shared-utils/util.js";
|
|
83
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
84
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
85
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
86
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
87
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
88
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
89
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
90
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
91
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
92
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
93
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
94
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
95
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
96
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
97
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
98
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
99
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
100
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
101
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
102
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
103
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
104
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
105
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
106
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
107
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
108
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
109
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
110
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
111
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
112
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
113
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
114
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
115
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
116
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
117
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
118
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
119
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
120
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
121
|
+
import "../../../Sculpt/typings/style.js";
|
|
122
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
123
|
+
import "../../../shared-utils/tag.js";
|
|
124
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
125
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
126
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
127
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
128
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
129
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
52
130
|
import "../../utils/tag/format.js";
|
|
53
131
|
import "../../../shared-utils/three/blink.js";
|
|
54
|
-
import "../../../shared-utils/util.js";
|
|
55
132
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
56
133
|
import "../../../shared-utils/formatRad.js";
|
|
57
|
-
import "../../../shared-utils/five/transformPosition.js";
|
|
58
|
-
import "../../../shared-utils/isNil.js";
|
|
59
134
|
import "../../../shared-utils/five/lookPoint.js";
|
|
60
|
-
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
61
|
-
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
62
|
-
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
63
|
-
import "../../../shared-utils/five/getFiveModel.js";
|
|
64
135
|
import "../../../shared-utils/uuid.js";
|
|
65
136
|
import "../../utils/tagPosition.js";
|
|
66
137
|
import "../../utils/checkRange.js";
|
|
@@ -69,58 +140,58 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
69
140
|
import "../../../shared-utils/safeObj.js";
|
|
70
141
|
import "../../utils/Cache.js";
|
|
71
142
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
72
|
-
class
|
|
73
|
-
constructor(i,
|
|
74
|
-
super(i,
|
|
143
|
+
class Si extends D {
|
|
144
|
+
constructor(i, p) {
|
|
145
|
+
super(i, p);
|
|
75
146
|
l(this, "loading", !1);
|
|
76
147
|
/** 加载外部模型 */
|
|
77
148
|
l(this, "loadModel", () => d(this, null, function* () {
|
|
78
|
-
var
|
|
149
|
+
var a;
|
|
79
150
|
const i = this.data.modelUrl;
|
|
80
151
|
if (!i)
|
|
81
152
|
return;
|
|
82
153
|
this.loading = !0;
|
|
83
|
-
const
|
|
154
|
+
const p = j(i).then((r) => d(this, null, function* () {
|
|
84
155
|
var c;
|
|
85
|
-
const t = Object.assign(
|
|
156
|
+
const t = Object.assign(r.scene, {
|
|
86
157
|
customID: this.id,
|
|
87
158
|
isTagModel: !0,
|
|
88
159
|
removeEventListener: this.getConfig().clickable === !1 ? () => {
|
|
89
|
-
} : this.addObjectClickHandler(this,
|
|
160
|
+
} : this.addObjectClickHandler(this, r.scene, (g) => {
|
|
90
161
|
this.plugin.hooks.emit("click", { target: "TagModel", tag: this, event: g });
|
|
91
162
|
})
|
|
92
163
|
});
|
|
93
164
|
return t.visible = this.currentVisible, new u.Matrix4().fromArray(this.matrix).decompose(t.position, t.quaternion, t.scale), t.updateWorldMatrix(!0, !0), t.visible = yield this.getVisible(), (c = this.getConfig().modelConfig) != null && c.autoLookAtEnabled && t.lookAt(this.five.camera.position.clone().setY(t.position.y)), t;
|
|
94
165
|
}));
|
|
95
|
-
this.model = { promise:
|
|
96
|
-
const
|
|
97
|
-
if (this.loading = !1, ((
|
|
166
|
+
this.model = { promise: p };
|
|
167
|
+
const o = yield p;
|
|
168
|
+
if (this.loading = !1, ((a = this.model) == null ? void 0 : a.promise) !== p || !this.plugin.tags.includes(this))
|
|
98
169
|
return;
|
|
99
|
-
this.model.object =
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
170
|
+
this.model.object = o;
|
|
171
|
+
const s = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
|
|
172
|
+
if (s && (this.plugin.gltfObjectGroup.remove(s), s.removeEventListener()), this.plugin.updateRender3DDomTag(), T(this)) {
|
|
102
173
|
if (this.computeRenderType() === "Mesh" && !this.mediaPlane) {
|
|
103
|
-
const
|
|
174
|
+
const r = this.data.mediaPosition.map(h);
|
|
104
175
|
this.mediaPlane = new M(this.data.mediaData[0].url, this.data.mediaPosition.map(h), {
|
|
105
176
|
objectFit: this.data.objectFit
|
|
106
177
|
});
|
|
107
|
-
const t = new u.Vector3().addVectors(
|
|
108
|
-
this.mediaPlane.position.copy(t),
|
|
178
|
+
const t = new u.Vector3().addVectors(r[0], r[2]).divideScalar(2);
|
|
179
|
+
this.mediaPlane.position.copy(t), o.add(this.mediaPlane);
|
|
109
180
|
}
|
|
110
|
-
this.computeRenderType() !== "Mesh" && (
|
|
181
|
+
this.computeRenderType() !== "Mesh" && (o.updateTagCss3DObjectMatrix = () => this.plugin.updateTagCss3DObjectMatrix(this, o), o.updateTagCss3DObjectMatrix());
|
|
111
182
|
}
|
|
112
|
-
return this.plugin.gltfObjectGroup.add(
|
|
183
|
+
return this.plugin.gltfObjectGroup.add(o), o;
|
|
113
184
|
}));
|
|
114
185
|
this.state.unfolded = !0;
|
|
115
186
|
}
|
|
116
187
|
applyVisible() {
|
|
117
|
-
var i,
|
|
118
|
-
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (
|
|
188
|
+
var i, p, o;
|
|
189
|
+
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (p = this.tag3DContentSvelte) == null || p.svelteApp.$set({ tag: this, state: this.plugin.state }), (o = this.tag3DContentSvelte) == null || o.css3DInstance.setVisible(this.currentVisible);
|
|
119
190
|
}
|
|
120
191
|
computeNormal() {
|
|
121
192
|
return v(this.data.mediaPosition);
|
|
122
193
|
}
|
|
123
194
|
}
|
|
124
195
|
export {
|
|
125
|
-
|
|
196
|
+
Si as ModelTag
|
|
126
197
|
};
|