@realsee/dnalogel 3.43.0 → 3.44.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 +7 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/dist/Sculpt/Meshes/Line.d.ts +19 -1
- package/dist/Sculpt/utils/color.d.ts +1 -1
- package/dist/index.cjs.js +102 -68
- package/dist/index.js +7127 -6867
- package/dist/index.umd.js +106 -72
- package/dist/shared-utils/five/getPosition.d.ts +12 -4
- package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
- package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
- package/dist/shared-utils/positionToVector3.d.ts +6 -6
- package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
- package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
- package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
- package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
- package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
- package/dist/shared-utils/three/index.d.ts +2 -3
- package/libs/AreaMakerPlugin/Controller.js +5 -18
- package/libs/AreaMakerPlugin/index.js +4 -17
- package/libs/AreaMakerPlugin/utils/Item.js +13 -26
- package/libs/CSS3DRenderPlugin/Controller.js +9 -6
- package/libs/CSS3DRenderPlugin/index.js +12 -9
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
- package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
- package/libs/CruisePlugin/BaseController.js +20 -33
- package/libs/CruisePlugin/Move.js +25 -23
- package/libs/CruisePlugin/Work.js +10 -8
- package/libs/CruisePlugin/index.js +23 -21
- package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
- package/libs/CurrentPanoImagePlugin/index.js +5 -18
- package/libs/GuideLinePlugin/Controller.js +15 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
- package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
- package/libs/GuideLinePlugin/index.js +23 -21
- package/libs/ModelMakerPlugin/Controller.js +19 -30
- package/libs/ModelMakerPlugin/index.js +11 -22
- package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
- package/libs/ModelTVVideoPlugin/index.js +12 -9
- package/libs/Object3DHelperPlugin/Controller.js +7 -5
- package/libs/Object3DHelperPlugin/index.js +23 -21
- package/libs/PanoCompassPlugin/Controller.js +18 -15
- package/libs/PanoCompassPlugin/index.js +21 -18
- package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
- package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
- package/libs/PanoDoorLabelPlugin/index.js +5 -18
- package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
- package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
- package/libs/PanoMeasurePlugin/Model/area.js +30 -44
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +35 -40
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
- package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
- package/libs/PanoSpatialTagPlugin/index.js +10 -7
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
- package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
- package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
- package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +56 -64
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
- package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
- package/libs/PanoTagPlugin/controller/index.js +27 -25
- package/libs/PanoTagPlugin/index.js +28 -26
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
- package/libs/PanoVideoPlugin/Controller.js +52 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
- package/libs/PanoVideoPlugin/index.js +8 -21
- package/libs/PipelinePlugin/Controller.js +44 -57
- package/libs/PipelinePlugin/index.js +5 -18
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
- package/libs/Sculpt/Meshes/Box.js +3 -3
- package/libs/Sculpt/Meshes/Cylinder.js +14 -14
- package/libs/Sculpt/Meshes/Line.d.ts +19 -1
- package/libs/Sculpt/Meshes/Line.js +40 -41
- package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
- package/libs/Sculpt/Meshes/Point.js +3 -3
- package/libs/Sculpt/Meshes/Polyline.js +3 -3
- package/libs/Sculpt/Meshes/Prism.js +11 -12
- package/libs/Sculpt/Meshes/Rectangle.js +3 -3
- package/libs/Sculpt/Objects/Point/Editor.js +10 -10
- package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
- package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
- package/libs/Sculpt/index.js +3 -3
- package/libs/Sculpt/utils/Modules/Global.js +1 -1
- package/libs/Sculpt/utils/color.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
- package/libs/base/BasePlugin.js +4 -4
- package/libs/floorplan/Components/Compass.js +29 -31
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
- package/libs/floorplan/index.js +3 -3
- package/libs/index.js +140 -137
- package/libs/shared-utils/five/getPosition.d.ts +12 -4
- package/libs/shared-utils/five/getPosition.js +23 -23
- package/libs/shared-utils/five/index.js +2 -2
- package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
- package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
- package/libs/shared-utils/five/lookObject.js +3 -3
- package/libs/shared-utils/index.js +38 -40
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
- package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +6 -6
- package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
- package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
- package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
- package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
- package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
- package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
- package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
- package/libs/shared-utils/three/index.d.ts +2 -3
- package/libs/shared-utils/three/index.js +3 -3
- package/package.json +3 -3
- package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
- package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
- package/libs/shared-utils/three/PointDomHelper.js +0 -62
- package/libs/shared-utils/three/PointHelper.js +0 -73
- package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
- /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var b = (
|
|
3
|
-
var l = (
|
|
4
|
-
var d = (
|
|
5
|
-
var
|
|
2
|
+
var b = (a, r, i) => r in a ? f(a, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[r] = i;
|
|
3
|
+
var l = (a, r, i) => (b(a, typeof r != "symbol" ? r + "" : r, i), i);
|
|
4
|
+
var d = (a, r, i) => new Promise((s, e) => {
|
|
5
|
+
var m = (t) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
o(i.next(t));
|
|
8
8
|
} catch (n) {
|
|
9
|
-
|
|
9
|
+
e(n);
|
|
10
10
|
}
|
|
11
11
|
}, p = (t) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
o(i.throw(t));
|
|
14
14
|
} catch (n) {
|
|
15
|
-
|
|
15
|
+
e(n);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, o = (t) => t.done ? s(t.value) : Promise.resolve(t.value).then(m, p);
|
|
18
|
+
o((i = i.apply(a, r)).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";
|
|
@@ -44,24 +44,14 @@ import "../../typings/tag/TagConfig.js";
|
|
|
44
44
|
import "@realsee/five";
|
|
45
45
|
import "../../../shared-utils/five/mode.js";
|
|
46
46
|
import "hammerjs";
|
|
47
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
49
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
50
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
51
|
-
import "
|
|
52
|
-
import "../../../shared-utils/util.js";
|
|
53
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
54
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
55
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
57
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
58
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
59
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
60
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
|
+
import "@realsee/five/line";
|
|
61
49
|
import "../../../shared-utils/three/THREESphere.js";
|
|
62
50
|
import "animejs";
|
|
51
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
63
52
|
import "../../utils/tag/format.js";
|
|
64
53
|
import "../../../shared-utils/three/blink.js";
|
|
54
|
+
import "../../../shared-utils/util.js";
|
|
65
55
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
66
56
|
import "../../../shared-utils/formatRad.js";
|
|
67
57
|
import "../../../shared-utils/five/transformPosition.js";
|
|
@@ -79,7 +69,7 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
79
69
|
import "../../../shared-utils/safeObj.js";
|
|
80
70
|
import "../../utils/Cache.js";
|
|
81
71
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
82
|
-
class
|
|
72
|
+
class Mt extends D {
|
|
83
73
|
constructor(i, s) {
|
|
84
74
|
super(i, s);
|
|
85
75
|
l(this, "loading", !1);
|
|
@@ -90,47 +80,47 @@ class Et extends D {
|
|
|
90
80
|
if (!i)
|
|
91
81
|
return;
|
|
92
82
|
this.loading = !0;
|
|
93
|
-
const s = j(i).then((
|
|
83
|
+
const s = j(i).then((o) => d(this, null, function* () {
|
|
94
84
|
var c;
|
|
95
|
-
const t = Object.assign(
|
|
85
|
+
const t = Object.assign(o.scene, {
|
|
96
86
|
customID: this.id,
|
|
97
87
|
isTagModel: !0,
|
|
98
88
|
removeEventListener: this.getConfig().clickable === !1 ? () => {
|
|
99
|
-
} : this.addObjectClickHandler(this,
|
|
89
|
+
} : this.addObjectClickHandler(this, o.scene, (g) => {
|
|
100
90
|
this.plugin.hooks.emit("click", { target: "TagModel", tag: this, event: g });
|
|
101
91
|
})
|
|
102
92
|
});
|
|
103
93
|
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;
|
|
104
94
|
}));
|
|
105
95
|
this.model = { promise: s };
|
|
106
|
-
const
|
|
96
|
+
const e = yield s;
|
|
107
97
|
if (this.loading = !1, ((p = this.model) == null ? void 0 : p.promise) !== s || !this.plugin.tags.includes(this))
|
|
108
98
|
return;
|
|
109
|
-
this.model.object =
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
99
|
+
this.model.object = e;
|
|
100
|
+
const m = this.plugin.gltfObjectGroup.children.find((o) => o.customID === this.id);
|
|
101
|
+
if (m && (this.plugin.gltfObjectGroup.remove(m), m.removeEventListener()), this.plugin.updateRender3DDomTag(), T(this)) {
|
|
112
102
|
if (this.computeRenderType() === "Mesh" && !this.mediaPlane) {
|
|
113
|
-
const
|
|
103
|
+
const o = this.data.mediaPosition.map(h);
|
|
114
104
|
this.mediaPlane = new M(this.data.mediaData[0].url, this.data.mediaPosition.map(h), {
|
|
115
105
|
objectFit: this.data.objectFit
|
|
116
106
|
});
|
|
117
|
-
const t = new u.Vector3().addVectors(
|
|
118
|
-
this.mediaPlane.position.copy(t),
|
|
107
|
+
const t = new u.Vector3().addVectors(o[0], o[2]).divideScalar(2);
|
|
108
|
+
this.mediaPlane.position.copy(t), e.add(this.mediaPlane);
|
|
119
109
|
}
|
|
120
|
-
this.computeRenderType() !== "Mesh" && (
|
|
110
|
+
this.computeRenderType() !== "Mesh" && (e.updateTagCss3DObjectMatrix = () => this.plugin.updateTagCss3DObjectMatrix(this, e), e.updateTagCss3DObjectMatrix());
|
|
121
111
|
}
|
|
122
|
-
return this.plugin.gltfObjectGroup.add(
|
|
112
|
+
return this.plugin.gltfObjectGroup.add(e), e;
|
|
123
113
|
}));
|
|
124
114
|
this.state.unfolded = !0;
|
|
125
115
|
}
|
|
126
116
|
applyVisible() {
|
|
127
|
-
var i, s,
|
|
128
|
-
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (s = this.tag3DContentSvelte) == null || s.svelteApp.$set({ tag: this, state: this.plugin.state }), (
|
|
117
|
+
var i, s, e;
|
|
118
|
+
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (s = this.tag3DContentSvelte) == null || s.svelteApp.$set({ tag: this, state: this.plugin.state }), (e = this.tag3DContentSvelte) == null || e.css3DInstance.setVisible(this.currentVisible);
|
|
129
119
|
}
|
|
130
120
|
computeNormal() {
|
|
131
121
|
return v(this.data.mediaPosition);
|
|
132
122
|
}
|
|
133
123
|
}
|
|
134
124
|
export {
|
|
135
|
-
|
|
125
|
+
Mt as ModelTag
|
|
136
126
|
};
|
|
@@ -22,24 +22,14 @@ import "../../typings/tag/TagConfig.js";
|
|
|
22
22
|
import "@realsee/five";
|
|
23
23
|
import "../../../shared-utils/five/mode.js";
|
|
24
24
|
import "hammerjs";
|
|
25
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
26
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
27
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
28
25
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
29
|
-
import "
|
|
30
|
-
import "../../../shared-utils/util.js";
|
|
31
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
32
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
33
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
34
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
35
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
36
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
37
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
38
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
26
|
+
import "@realsee/five/line";
|
|
39
27
|
import "../../../shared-utils/three/THREESphere.js";
|
|
40
28
|
import "animejs";
|
|
29
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
41
30
|
import "../../utils/tag/format.js";
|
|
42
31
|
import "../../../shared-utils/three/blink.js";
|
|
32
|
+
import "../../../shared-utils/util.js";
|
|
43
33
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
44
34
|
import "../../../shared-utils/formatRad.js";
|
|
45
35
|
import "../../../shared-utils/five/transformPosition.js";
|
|
@@ -59,13 +49,13 @@ import "../../../shared-utils/safeObj.js";
|
|
|
59
49
|
import "../../utils/Cache.js";
|
|
60
50
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
61
51
|
const P = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
62
|
-
class
|
|
52
|
+
class fe extends f {
|
|
63
53
|
constructor(t, e) {
|
|
64
54
|
super(t, e), this.state.unfolded = !0;
|
|
65
55
|
}
|
|
66
56
|
applyVisible() {
|
|
67
|
-
var e, r, o, n,
|
|
68
|
-
this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((
|
|
57
|
+
var e, r, a, o, n, i;
|
|
58
|
+
this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((o = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : o.type) === "Image" && this.renderImagePlane() : ((n = this.tag3DContentSvelte) == null || n.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
|
|
69
59
|
}
|
|
70
60
|
renderVideoPlane() {
|
|
71
61
|
var i;
|
|
@@ -75,8 +65,8 @@ class Re extends f {
|
|
|
75
65
|
const { url: e } = t;
|
|
76
66
|
if (!e)
|
|
77
67
|
return;
|
|
78
|
-
const r = this.currentVisible,
|
|
79
|
-
if ((
|
|
68
|
+
const r = this.currentVisible, a = (() => !!(this.mediaPlane && !r))(), o = (() => !!(!this.mediaPlane && r))(), n = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
|
|
69
|
+
if ((a || n) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), o || n) {
|
|
80
70
|
const p = this.position.map(d), s = new u(e, p, {
|
|
81
71
|
videoCoverSrc: t.videoCoverUrl,
|
|
82
72
|
playButton: this.data.playIcon,
|
|
@@ -101,8 +91,8 @@ class Re extends f {
|
|
|
101
91
|
const { url: e } = t;
|
|
102
92
|
if (!e)
|
|
103
93
|
return;
|
|
104
|
-
const r = this.position.map(d),
|
|
105
|
-
(
|
|
94
|
+
const r = this.position.map(d), a = this.currentVisible, o = (() => !!(this.mediaPlane && !a))(), n = (() => !!(!this.mediaPlane && a))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
|
|
95
|
+
(o || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (n || i) && (this.mediaPlane = new c(e, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
|
|
106
96
|
this.mediaPlane,
|
|
107
97
|
"click",
|
|
108
98
|
(p) => {
|
|
@@ -116,5 +106,5 @@ class Re extends f {
|
|
|
116
106
|
}
|
|
117
107
|
}
|
|
118
108
|
export {
|
|
119
|
-
|
|
109
|
+
fe as PlaneTag
|
|
120
110
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (n, s, t) => (
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var m = (n, s, t) => s in n ? f(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t;
|
|
3
|
+
var a = (n, s, t) => (m(n, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
4
|
import { BaseTag as g } from "./BaseTag.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as c from "three";
|
|
6
6
|
import { cancelIdleCallback as b, requestIdleCallback as y } from "../../utils/requestIdleCallback.js";
|
|
7
7
|
import "../../../shared-utils/Subscribe.js";
|
|
8
8
|
import "../../utils/tag/calculateTagConfig.js";
|
|
@@ -13,26 +13,16 @@ import "../../typings/tag/TagConfig.js";
|
|
|
13
13
|
import "@realsee/five";
|
|
14
14
|
import "../../../shared-utils/five/mode.js";
|
|
15
15
|
import "hammerjs";
|
|
16
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
17
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
18
|
-
import "../../../shared-utils/positionToVector3.js";
|
|
19
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
20
16
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
21
|
-
import "
|
|
22
|
-
import "../../../shared-utils/util.js";
|
|
23
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
24
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
25
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
26
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
27
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
28
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
29
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
30
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
31
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
17
|
+
import "@realsee/five/line";
|
|
32
18
|
import "../../../shared-utils/three/THREESphere.js";
|
|
33
19
|
import "animejs";
|
|
20
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
21
|
import "../../utils/tag/format.js";
|
|
22
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
23
|
+
import "../../../shared-utils/positionToVector3.js";
|
|
35
24
|
import "../../../shared-utils/three/blink.js";
|
|
25
|
+
import "../../../shared-utils/util.js";
|
|
36
26
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
37
27
|
import "../../../shared-utils/formatRad.js";
|
|
38
28
|
import "../../../shared-utils/five/transformPosition.js";
|
|
@@ -51,8 +41,8 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
51
41
|
import "../../../shared-utils/safeObj.js";
|
|
52
42
|
import "../../utils/Cache.js";
|
|
53
43
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
54
|
-
const v = new
|
|
55
|
-
class
|
|
44
|
+
const v = new c.Vector2();
|
|
45
|
+
class rt extends g {
|
|
56
46
|
constructor(t, e) {
|
|
57
47
|
super(t, e);
|
|
58
48
|
a(this, "__Object__");
|
|
@@ -118,12 +108,12 @@ class gt extends g {
|
|
|
118
108
|
const d = (() => {
|
|
119
109
|
if (!this.currentConfig.simulate3D)
|
|
120
110
|
return 1;
|
|
121
|
-
const
|
|
122
|
-
return Math.max(Math.min(1 -
|
|
123
|
-
})(),
|
|
111
|
+
const p = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), h = this.getDistance(void 0, 1);
|
|
112
|
+
return Math.max(Math.min(1 - p * h / 40, 1), 0.5);
|
|
113
|
+
})(), u = this.five.renderer.getSize(v);
|
|
124
114
|
this.screenPosition = {
|
|
125
|
-
leftPx: (r.x + 1) / 2 *
|
|
126
|
-
topPx: (-r.y + 1) / 2 *
|
|
115
|
+
leftPx: (r.x + 1) / 2 * u.x,
|
|
116
|
+
topPx: (-r.y + 1) / 2 * u.y,
|
|
127
117
|
scale: d
|
|
128
118
|
};
|
|
129
119
|
} else
|
|
@@ -138,12 +128,12 @@ class gt extends g {
|
|
|
138
128
|
}
|
|
139
129
|
}
|
|
140
130
|
computeNormal() {
|
|
141
|
-
return new
|
|
131
|
+
return new c.Vector3().fromArray(this.normal);
|
|
142
132
|
}
|
|
143
133
|
destroy() {
|
|
144
134
|
this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
145
135
|
}
|
|
146
136
|
}
|
|
147
137
|
export {
|
|
148
|
-
|
|
138
|
+
rt as PointTag
|
|
149
139
|
};
|
|
@@ -90,22 +90,10 @@ import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
|
90
90
|
import "../Components/Common/MediaItem.js";
|
|
91
91
|
import "../Components/Tag/MarketingTag.js";
|
|
92
92
|
import "hammerjs";
|
|
93
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
94
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
95
|
-
import "../../shared-utils/positionToVector3.js";
|
|
96
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
97
93
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
98
|
-
import "
|
|
99
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
100
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
101
|
-
import "../../shared-utils/Subscribe.js";
|
|
102
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
103
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
104
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
105
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
106
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
107
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
94
|
+
import "@realsee/five/line";
|
|
108
95
|
import "../../shared-utils/three/THREESphere.js";
|
|
96
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
109
97
|
import "../utils/noTypecheck.js";
|
|
110
98
|
import "../Components/Tag/AudioTag/index.js";
|
|
111
99
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -122,6 +110,7 @@ import "../Components/Tag/PanoramaTag.js";
|
|
|
122
110
|
import "../Components/Tag/CustomTag.js";
|
|
123
111
|
import "../../vendor/classnames/index.js";
|
|
124
112
|
import "./Tag/ModelTag.js";
|
|
113
|
+
import "../../shared-utils/positionToVector3.js";
|
|
125
114
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
126
115
|
import "@realsee/five/gltf-loader";
|
|
127
116
|
import "../utils/planeNormal.js";
|
|
@@ -135,6 +124,7 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
135
124
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
136
125
|
import "../../shared-utils/three/getNormal.js";
|
|
137
126
|
import "./Tag/BaseTag.js";
|
|
127
|
+
import "../../shared-utils/Subscribe.js";
|
|
138
128
|
import "../utils/tag/calculateTagConfig.js";
|
|
139
129
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
140
130
|
import "../../shared-utils/typescript/entries.js";
|
|
@@ -164,13 +154,25 @@ import "../utils/normalPositionToPositions.js";
|
|
|
164
154
|
import "../../vendor/svelte/store/index.js";
|
|
165
155
|
import "../../CSS3DRenderPlugin/index.js";
|
|
166
156
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
157
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
158
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
159
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
160
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
161
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
162
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
163
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
164
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
165
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
166
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
167
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
168
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
167
169
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
168
170
|
import "../../shared-utils/five/fiveModelLoad.js";
|
|
169
171
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
170
172
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
171
173
|
import "../../shared-utils/three/THREERaycaster.js";
|
|
172
174
|
import "../../base/BasePlugin.js";
|
|
173
|
-
class
|
|
175
|
+
class Se extends U {
|
|
174
176
|
constructor(t) {
|
|
175
177
|
super(t);
|
|
176
178
|
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -321,5 +323,5 @@ class Me extends U {
|
|
|
321
323
|
}
|
|
322
324
|
}
|
|
323
325
|
export {
|
|
324
|
-
|
|
326
|
+
Se as TagRender
|
|
325
327
|
};
|
|
@@ -17,23 +17,26 @@ import "../../vendor/svelte/internal/index.js";
|
|
|
17
17
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
18
18
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
19
19
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
20
|
-
import "
|
|
21
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
22
|
-
import "../../shared-utils/util.js";
|
|
20
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
23
21
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
24
22
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
25
23
|
import "../../shared-utils/Subscribe.js";
|
|
26
24
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
25
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
27
26
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
28
27
|
import "../../shared-utils/three/centerPoint.js";
|
|
29
28
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
30
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
31
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
32
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
33
29
|
import "hammerjs";
|
|
34
|
-
import "
|
|
30
|
+
import "@realsee/five/line";
|
|
35
31
|
import "../../shared-utils/three/THREESphere.js";
|
|
36
32
|
import "animejs";
|
|
33
|
+
import "../../shared-utils/isNil.js";
|
|
34
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
36
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
37
|
+
import "../../shared-utils/util.js";
|
|
38
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
39
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
37
40
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
38
41
|
import "../../shared-utils/five/fiveModelLoad.js";
|
|
39
42
|
import "../../shared-utils/five/getFiveModel.js";
|
|
@@ -51,7 +54,7 @@ import "../../shared-utils/Utils/FiveUtil.js";
|
|
|
51
54
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
52
55
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
53
56
|
import "../../shared-utils/five/transformPosition.js";
|
|
54
|
-
class
|
|
57
|
+
class Se extends E {
|
|
55
58
|
constructor(e) {
|
|
56
59
|
super(e);
|
|
57
60
|
r(this, "tags", []);
|
|
@@ -177,5 +180,5 @@ class ye extends E {
|
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
export {
|
|
180
|
-
|
|
183
|
+
Se as TagUtil
|
|
181
184
|
};
|
|
@@ -40,13 +40,12 @@ import { resizeObserver as C } from "../../shared-utils/dom/resizeObserver.js";
|
|
|
40
40
|
import { TagRender as R } from "./TagRender.js";
|
|
41
41
|
import { isModelLike as G } from "../../shared-utils/five/mode.js";
|
|
42
42
|
import "hammerjs";
|
|
43
|
-
import "
|
|
44
|
-
import "
|
|
45
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
46
|
-
import { waitFiveModelLoaded as N } from "../../shared-utils/five/fiveModelLoad.js";
|
|
43
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
44
|
+
import "@realsee/five/line";
|
|
47
45
|
import "../../shared-utils/three/THREESphere.js";
|
|
48
46
|
import "animejs";
|
|
49
|
-
import { nextFrame as
|
|
47
|
+
import { nextFrame as N } from "../../shared-utils/animationFrame/index.js";
|
|
48
|
+
import { waitFiveModelLoaded as V } from "../../shared-utils/five/fiveModelLoad.js";
|
|
50
49
|
import { DebugUtil as z } from "../utils/DebugUtil.js";
|
|
51
50
|
import { safeObj as T } from "../../shared-utils/safeObj.js";
|
|
52
51
|
import { PointTag as x } from "./Tag/PointTag.js";
|
|
@@ -111,19 +110,7 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
111
110
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
112
111
|
import "../Components/Common/MediaItem.js";
|
|
113
112
|
import "../Components/Tag/MarketingTag.js";
|
|
114
|
-
import "../../
|
|
115
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
116
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
117
|
-
import "../../shared-utils/util.js";
|
|
118
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
119
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
120
|
-
import "../../shared-utils/Subscribe.js";
|
|
121
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
122
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
123
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
124
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
125
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
126
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
113
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
127
114
|
import "../utils/noTypecheck.js";
|
|
128
115
|
import "../Components/Tag/AudioTag/index.js";
|
|
129
116
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -142,6 +129,7 @@ import "../../shared-utils/three/GLTFLoader.js";
|
|
|
142
129
|
import "@realsee/five/gltf-loader";
|
|
143
130
|
import "../utils/planeNormal.js";
|
|
144
131
|
import "../utils/model/mediaPlane.js";
|
|
132
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
145
133
|
import "../../shared-utils/three/loadTexture.js";
|
|
146
134
|
import "../../shared-utils/three/Quadrangle.js";
|
|
147
135
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -151,12 +139,14 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
151
139
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
152
140
|
import "../../shared-utils/three/getNormal.js";
|
|
153
141
|
import "./Tag/BaseTag.js";
|
|
142
|
+
import "../../shared-utils/Subscribe.js";
|
|
154
143
|
import "../utils/tag/calculateTagConfig.js";
|
|
155
144
|
import "../../shared-utils/typescript/entries.js";
|
|
156
145
|
import "../utils/tag/adaptConfig.js";
|
|
157
146
|
import "../typings/tag/TagConfig.js";
|
|
158
147
|
import "@realsee/five";
|
|
159
148
|
import "../../shared-utils/three/blink.js";
|
|
149
|
+
import "../../shared-utils/util.js";
|
|
160
150
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
161
151
|
import "../../shared-utils/formatRad.js";
|
|
162
152
|
import "../../shared-utils/five/transformPosition.js";
|
|
@@ -177,6 +167,18 @@ import "../utils/normalPositionToPositions.js";
|
|
|
177
167
|
import "../../vendor/svelte/store/index.js";
|
|
178
168
|
import "../../CSS3DRenderPlugin/index.js";
|
|
179
169
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
170
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
171
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
172
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
173
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
174
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
175
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
176
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
177
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
178
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
179
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
180
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
181
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
180
182
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
181
183
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
182
184
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
@@ -185,8 +187,8 @@ import "../../base/BasePlugin.js";
|
|
|
185
187
|
import "../utils/requestIdleCallback.js";
|
|
186
188
|
import "../Components/TagItem.js";
|
|
187
189
|
import "../Components/Common/TagPoint.js";
|
|
188
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
189
|
-
class
|
|
190
|
+
const S = "Dnalogel-PanoTagPlugin", Wi = (d) => `${S}--${d}`;
|
|
191
|
+
class ji extends R {
|
|
190
192
|
constructor(e, t) {
|
|
191
193
|
super(e);
|
|
192
194
|
/** state */
|
|
@@ -288,7 +290,7 @@ class $i extends R {
|
|
|
288
290
|
this.TagContainerSvelte = new W({
|
|
289
291
|
target: this.container,
|
|
290
292
|
props: c(f({}, n), { state: c(f({}, this.state), { enabled: !1 }) })
|
|
291
|
-
}),
|
|
293
|
+
}), N(() => {
|
|
292
294
|
var r;
|
|
293
295
|
(r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
|
|
294
296
|
});
|
|
@@ -346,7 +348,7 @@ class $i extends R {
|
|
|
346
348
|
if (s === "Plane")
|
|
347
349
|
return new $(this, o);
|
|
348
350
|
});
|
|
349
|
-
return i.forEach(I), this.tags.push(...i), this.tagsLengthWillUpdate = !0,
|
|
351
|
+
return i.forEach(I), this.tags.push(...i), this.tagsLengthWillUpdate = !0, V(this.five).then(() => l(this, null, function* () {
|
|
350
352
|
var o, s;
|
|
351
353
|
this.store.eventListenerDisposer && ((s = (o = this.store).eventListenerDisposer) == null || s.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(i), i.forEach((n) => {
|
|
352
354
|
n.updateVisible(), n.updateZIndex();
|
|
@@ -599,7 +601,7 @@ class $i extends R {
|
|
|
599
601
|
}
|
|
600
602
|
}
|
|
601
603
|
export {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
604
|
+
ji as PanoTagPluginController,
|
|
605
|
+
ji as default,
|
|
606
|
+
Wi as pluginFlag
|
|
605
607
|
};
|