@realsee/dnalogel 3.44.5 → 3.46.0
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/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -83
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- 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/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
|
-
var c = (
|
|
3
|
-
var
|
|
2
|
+
var c = (m, n, t) => n in m ? d(m, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[n] = t;
|
|
3
|
+
var e = (m, n, t) => (c(m, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
4
|
import { DefaultConfig as l } from "../tag.config.js";
|
|
5
5
|
import "three";
|
|
6
|
-
import { anyPositionToVector3 as
|
|
6
|
+
import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.js";
|
|
7
7
|
import { isPlaneTag as u, isMediaModelTag as f, isPoint3DTag as h } from "../utils/tag/tagCheck.js";
|
|
8
8
|
import { normalPositionToPositions as g } from "../utils/normalPositionToPositions.js";
|
|
9
9
|
import { writable as P } from "../../vendor/svelte/store/index.js";
|
|
@@ -28,18 +28,76 @@ import "../../shared-utils/three/centerPoint.js";
|
|
|
28
28
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
29
29
|
import "hammerjs";
|
|
30
30
|
import "@realsee/five/line";
|
|
31
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
32
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
33
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
31
34
|
import "../../shared-utils/three/THREESphere.js";
|
|
32
|
-
import "
|
|
35
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
36
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
37
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
38
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
39
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
40
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
41
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
42
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
43
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
44
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
45
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
46
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
47
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
48
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
49
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
50
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
51
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
52
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
33
53
|
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
54
|
import "../../shared-utils/util.js";
|
|
38
|
-
import "../../
|
|
55
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
56
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
57
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
58
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
59
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
60
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
61
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
62
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
63
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
64
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
65
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
39
66
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
40
|
-
import "../../shared-utils/
|
|
67
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
68
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
69
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
41
70
|
import "../../shared-utils/five/fiveModelLoad.js";
|
|
42
71
|
import "../../shared-utils/five/getFiveModel.js";
|
|
72
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
73
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
74
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
75
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
76
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
77
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
78
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
79
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
80
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
81
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
82
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
83
|
+
import "../../Sculpt/typings/style.js";
|
|
84
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
85
|
+
import "../../shared-utils/tag.js";
|
|
86
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
87
|
+
import "animejs";
|
|
88
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
89
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
90
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
91
|
+
import "../../shared-utils/five/getPosition.js";
|
|
92
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
93
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
94
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
95
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
96
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
97
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
98
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
99
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
100
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
43
101
|
import "../../shared-utils/three/loadTexture.js";
|
|
44
102
|
import "../../shared-utils/three/Quadrangle.js";
|
|
45
103
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -48,131 +106,125 @@ import "../Assets/Icon.js";
|
|
|
48
106
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
49
107
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
50
108
|
import "../../shared-utils/three/getNormal.js";
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
constructor(e) {
|
|
59
|
-
super(e);
|
|
60
|
-
r(this, "tags", []);
|
|
61
|
-
r(this, "cache", new v());
|
|
62
|
-
r(this, "config", l);
|
|
63
|
-
r(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
109
|
+
class vi extends E {
|
|
110
|
+
constructor(t) {
|
|
111
|
+
super(t);
|
|
112
|
+
e(this, "tags", []);
|
|
113
|
+
e(this, "cache", new v());
|
|
114
|
+
e(this, "config", l);
|
|
115
|
+
e(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
64
116
|
/** 插件参数 */
|
|
65
|
-
|
|
66
|
-
|
|
117
|
+
e(this, "params");
|
|
118
|
+
e(this, "mediaStore", P({
|
|
67
119
|
currentMediaElement: null
|
|
68
120
|
}));
|
|
69
|
-
|
|
121
|
+
e(this, "store", {
|
|
70
122
|
disposers: [],
|
|
71
123
|
disposed: !1,
|
|
72
124
|
resizeObserverDisposerAdding: !1,
|
|
73
125
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
74
126
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
return
|
|
127
|
+
e(this, "domEvents", new y(this.five));
|
|
128
|
+
e(this, "_cache_pointTag");
|
|
129
|
+
e(this, "_cache_2DPointTag");
|
|
130
|
+
e(this, "_cache_css3DTag");
|
|
131
|
+
e(this, "_container", null);
|
|
132
|
+
e(this, "_css3DRenderPlugin");
|
|
133
|
+
e(this, "whyHide", (t) => {
|
|
134
|
+
const i = this.getTagById(t);
|
|
135
|
+
return i ? i.whyHide() : { reason: `tag ${t} not found` };
|
|
84
136
|
});
|
|
85
|
-
|
|
137
|
+
e(this, "loadVideoFirstFrame", () => {
|
|
86
138
|
T && this.hooks.emit("loadVideoFirstFrame");
|
|
87
139
|
});
|
|
88
|
-
this.mediaStore.subscribe(({ currentMediaElement:
|
|
89
|
-
this.tags.forEach((
|
|
140
|
+
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
141
|
+
this.tags.forEach((r) => {
|
|
90
142
|
var o;
|
|
91
|
-
if (
|
|
92
|
-
if (!((o =
|
|
143
|
+
if (r.mediaPlane instanceof _ && i !== r.mediaPlane.videoInstance) {
|
|
144
|
+
if (!((o = r.mediaPlane.videoInstance) != null && o.src) || i === r.mediaPlane.videoInstance)
|
|
93
145
|
return;
|
|
94
|
-
|
|
146
|
+
r.mediaPlane.pause();
|
|
95
147
|
}
|
|
96
148
|
});
|
|
97
149
|
});
|
|
98
150
|
}
|
|
99
151
|
get container() {
|
|
100
|
-
var
|
|
101
|
-
return this._container || ((
|
|
152
|
+
var t;
|
|
153
|
+
return this._container || ((t = this.five.getElement()) == null ? void 0 : t.parentElement);
|
|
102
154
|
}
|
|
103
|
-
set container(
|
|
104
|
-
this._container =
|
|
155
|
+
set container(t) {
|
|
156
|
+
this._container = t;
|
|
105
157
|
}
|
|
106
158
|
// eslint-disable-next-line accessor-pairs
|
|
107
|
-
set tagsLengthWillUpdate(
|
|
108
|
-
|
|
109
|
-
(
|
|
110
|
-
).filter((
|
|
111
|
-
const
|
|
112
|
-
return
|
|
159
|
+
set tagsLengthWillUpdate(t) {
|
|
160
|
+
t && (this._cache_pointTag = this.tags.filter((i) => i.stickType === "2DPoint" || i.stickType === "3DPoint").filter((i) => i.position), this._cache_2DPointTag = this.tags.filter((i) => i.stickType === "2DPoint").filter((i) => i.position), this._cache_css3DTag = this.tags.filter(
|
|
161
|
+
(i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
|
|
162
|
+
).filter((i) => {
|
|
163
|
+
const r = i.computeRenderType();
|
|
164
|
+
return r === "BehindDom" || r === "Dom";
|
|
113
165
|
}));
|
|
114
166
|
}
|
|
115
167
|
/** css3DRenderPlugin */
|
|
116
168
|
get css3DRenderPlugin() {
|
|
117
|
-
var
|
|
169
|
+
var t, i, r;
|
|
118
170
|
if (!this._css3DRenderPlugin) {
|
|
119
171
|
const o = D(this.five);
|
|
120
|
-
this._css3DRenderPlugin = o, (
|
|
172
|
+
this._css3DRenderPlugin = o, (t = o.frontModeCSS3DRenderer) != null && t.domElementWrapper && (o.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (r = (i = this.params.containerZIndex) == null ? void 0 : i.toString()) != null ? r : "");
|
|
121
173
|
}
|
|
122
174
|
return this._css3DRenderPlugin;
|
|
123
175
|
}
|
|
124
176
|
get filterPointTag() {
|
|
125
|
-
var
|
|
126
|
-
return (
|
|
177
|
+
var t;
|
|
178
|
+
return (t = this._cache_pointTag) != null ? t : [];
|
|
127
179
|
}
|
|
128
180
|
get filter2DPointTag() {
|
|
129
|
-
var
|
|
130
|
-
return (
|
|
181
|
+
var t;
|
|
182
|
+
return (t = this._cache_2DPointTag) != null ? t : [];
|
|
131
183
|
}
|
|
132
184
|
get filterCSS3DTag() {
|
|
133
|
-
var
|
|
134
|
-
return (
|
|
185
|
+
var t;
|
|
186
|
+
return (t = this._cache_css3DTag) != null ? t : [];
|
|
135
187
|
}
|
|
136
|
-
addRenderQueue(
|
|
137
|
-
var
|
|
138
|
-
const { type:
|
|
139
|
-
this.renderQueue.has(
|
|
140
|
-
keys: Array.from(/* @__PURE__ */ new Set([...(
|
|
141
|
-
tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(
|
|
142
|
-
}) : this.renderQueue.set(
|
|
188
|
+
addRenderQueue(t) {
|
|
189
|
+
var p, s;
|
|
190
|
+
const { type: i, keys: r = [], tags: o = [] } = t;
|
|
191
|
+
this.renderQueue.has(i) ? this.renderQueue.set(i, {
|
|
192
|
+
keys: Array.from(/* @__PURE__ */ new Set([...(p = this.renderQueue.get(i).keys) != null ? p : [], ...r])),
|
|
193
|
+
tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(i).tags) != null ? s : [], ...o]))
|
|
194
|
+
}) : this.renderQueue.set(i, { keys: r, tags: o });
|
|
143
195
|
}
|
|
144
|
-
getTagById(
|
|
145
|
-
const
|
|
146
|
-
if (!
|
|
147
|
-
console.warn(`getTagById Error: can't find tag id: ${
|
|
196
|
+
getTagById(t) {
|
|
197
|
+
const i = this.tags.find((r) => r.id === t);
|
|
198
|
+
if (!i) {
|
|
199
|
+
console.warn(`getTagById Error: can't find tag id: ${t}`);
|
|
148
200
|
return;
|
|
149
201
|
}
|
|
150
|
-
return
|
|
202
|
+
return i;
|
|
151
203
|
}
|
|
152
204
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
153
205
|
pauseCurrentMedia() {
|
|
154
206
|
this.mediaStore.set({ currentMediaElement: null });
|
|
155
207
|
}
|
|
156
|
-
getPositions(
|
|
157
|
-
if (u(
|
|
158
|
-
return
|
|
159
|
-
if (f(
|
|
160
|
-
return
|
|
161
|
-
if (h(
|
|
162
|
-
return g(this.five.camera.position,
|
|
208
|
+
getPositions(t) {
|
|
209
|
+
if (u(t))
|
|
210
|
+
return t.position;
|
|
211
|
+
if (f(t))
|
|
212
|
+
return t.data.mediaPosition;
|
|
213
|
+
if (h(t))
|
|
214
|
+
return g(this.five.camera.position, a(t.position), a(t.normal));
|
|
163
215
|
}
|
|
164
|
-
addObjectClickHandler(
|
|
165
|
-
if (!
|
|
216
|
+
addObjectClickHandler(t, i, r) {
|
|
217
|
+
if (!i || !this.domEvents)
|
|
166
218
|
return () => {
|
|
167
219
|
};
|
|
168
|
-
const o = () => !(!
|
|
220
|
+
const o = () => !(!t.currentVisible || t.loading), p = (s) => {
|
|
169
221
|
if (!o())
|
|
170
222
|
return !1;
|
|
171
|
-
|
|
223
|
+
r(s.origDomEvent);
|
|
172
224
|
};
|
|
173
|
-
return this.domEvents.addEventListener(
|
|
225
|
+
return this.domEvents.addEventListener(i, "click", p), () => {
|
|
174
226
|
var s;
|
|
175
|
-
(s = this.domEvents) == null || s.removeEventListener(
|
|
227
|
+
(s = this.domEvents) == null || s.removeEventListener(i, "click", p);
|
|
176
228
|
};
|
|
177
229
|
}
|
|
178
230
|
/**
|
|
@@ -184,5 +236,5 @@ class Se extends E {
|
|
|
184
236
|
}
|
|
185
237
|
}
|
|
186
238
|
export {
|
|
187
|
-
|
|
239
|
+
vi as TagUtil
|
|
188
240
|
};
|
|
@@ -2,16 +2,16 @@ var D = Object.defineProperty, P = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (
|
|
5
|
+
var u = (p, a, e) => a in p ? D(p, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[a] = e, m = (p, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
F.call(a, e) && u(
|
|
7
|
+
F.call(a, e) && u(p, e, a[e]);
|
|
8
8
|
if (b)
|
|
9
9
|
for (var e of b(a))
|
|
10
|
-
E.call(a, e) && u(
|
|
11
|
-
return
|
|
12
|
-
}, c = (
|
|
13
|
-
var
|
|
14
|
-
var l = (
|
|
10
|
+
E.call(a, e) && u(p, e, a[e]);
|
|
11
|
+
return p;
|
|
12
|
+
}, c = (p, a) => P(p, U(a));
|
|
13
|
+
var d = (p, a, e) => (u(p, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var l = (p, a, e) => new Promise((t, i) => {
|
|
15
15
|
var o = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -25,10 +25,10 @@ var l = (d, a, e) => new Promise((t, i) => {
|
|
|
25
25
|
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(o, s);
|
|
28
|
-
n((e = e.apply(
|
|
28
|
+
n((e = e.apply(p, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
|
-
import { objectAssignDeepExports as
|
|
31
|
+
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
32
|
import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
|
|
33
33
|
import { isModelTag as k, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
|
|
34
34
|
import { debounce as M } from "../utils/debounce.js";
|
|
@@ -41,6 +41,7 @@ import { isModelLike as R } from "../../shared-utils/five/mode.js";
|
|
|
41
41
|
import "hammerjs";
|
|
42
42
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
43
43
|
import "@realsee/five/line";
|
|
44
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
44
45
|
import "../../shared-utils/three/THREESphere.js";
|
|
45
46
|
import "animejs";
|
|
46
47
|
import { nextFrame as G } from "../../shared-utils/animationFrame/index.js";
|
|
@@ -110,6 +111,82 @@ import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
|
110
111
|
import "../Components/Common/MediaItem.js";
|
|
111
112
|
import "../Components/Tag/MarketingTag.js";
|
|
112
113
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
114
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
115
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
116
|
+
import "../../base/BasePlugin.js";
|
|
117
|
+
import "../../shared-utils/Subscribe.js";
|
|
118
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
119
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
120
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
121
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
122
|
+
import "../../shared-utils/five/getFiveModel.js";
|
|
123
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
124
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
125
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
126
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
127
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
128
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
129
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
130
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
131
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
132
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
133
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
134
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
135
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
136
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
137
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
138
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
139
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
140
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
141
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
142
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
143
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
144
|
+
import "../../shared-utils/util.js";
|
|
145
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
146
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
147
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
148
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
149
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
150
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
151
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
152
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
153
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
154
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
155
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
156
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
157
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
158
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
159
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
160
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
161
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
162
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
163
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
164
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
165
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
166
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
167
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
168
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
169
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
170
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
171
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
172
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
173
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
174
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
175
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
176
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
177
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
178
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
179
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
180
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
181
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
182
|
+
import "../../Sculpt/typings/style.js";
|
|
183
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
184
|
+
import "../../shared-utils/tag.js";
|
|
185
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
186
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
187
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
188
|
+
import "../../shared-utils/five/getPosition.js";
|
|
189
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
113
190
|
import "../utils/noTypecheck.js";
|
|
114
191
|
import "../Components/Tag/AudioTag/index.js";
|
|
115
192
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -128,7 +205,6 @@ import "../../shared-utils/three/GLTFLoader.js";
|
|
|
128
205
|
import "@realsee/five/gltf-loader";
|
|
129
206
|
import "../utils/planeNormal.js";
|
|
130
207
|
import "../utils/model/mediaPlane.js";
|
|
131
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
132
208
|
import "../../shared-utils/three/loadTexture.js";
|
|
133
209
|
import "../../shared-utils/three/Quadrangle.js";
|
|
134
210
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -138,22 +214,15 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
138
214
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
139
215
|
import "../../shared-utils/three/getNormal.js";
|
|
140
216
|
import "./Tag/BaseTag.js";
|
|
141
|
-
import "../../shared-utils/Subscribe.js";
|
|
142
217
|
import "../utils/tag/calculateTagConfig.js";
|
|
143
218
|
import "../../shared-utils/typescript/entries.js";
|
|
144
219
|
import "../utils/tag/adaptConfig.js";
|
|
145
220
|
import "../typings/tag/TagConfig.js";
|
|
146
221
|
import "@realsee/five";
|
|
147
222
|
import "../../shared-utils/three/blink.js";
|
|
148
|
-
import "../../shared-utils/util.js";
|
|
149
223
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
150
224
|
import "../../shared-utils/formatRad.js";
|
|
151
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
152
225
|
import "../../shared-utils/five/lookPoint.js";
|
|
153
|
-
import "../../shared-utils/Utils/FiveUtil.js";
|
|
154
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
155
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
156
|
-
import "../../shared-utils/five/getFiveModel.js";
|
|
157
226
|
import "../utils/tagPosition.js";
|
|
158
227
|
import "../utils/checkRange.js";
|
|
159
228
|
import "../../shared-utils/url/getUrl.js";
|
|
@@ -166,42 +235,25 @@ import "../utils/normalPositionToPositions.js";
|
|
|
166
235
|
import "../../vendor/svelte/store/index.js";
|
|
167
236
|
import "../../CSS3DRenderPlugin/index.js";
|
|
168
237
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
169
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
170
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
171
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
172
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
173
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
174
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
175
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
176
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
177
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
178
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
179
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
180
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
181
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
182
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
183
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
184
|
-
import "../../shared-utils/three/THREERaycaster.js";
|
|
185
|
-
import "../../base/BasePlugin.js";
|
|
186
238
|
import "../utils/addDebugPoints.js";
|
|
187
239
|
import "../utils/requestIdleCallback.js";
|
|
188
240
|
import "../Components/TagItem.js";
|
|
189
241
|
import "../Components/Common/TagPoint.js";
|
|
190
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
191
|
-
class
|
|
242
|
+
const S = "Dnalogel-PanoTagPlugin", Qo = (p) => `${S}--${p}`;
|
|
243
|
+
class $o extends O {
|
|
192
244
|
constructor(e, t) {
|
|
193
245
|
super(e);
|
|
194
246
|
/** state */
|
|
195
|
-
|
|
247
|
+
d(this, "state", { enabled: !0, visible: !0 });
|
|
196
248
|
/** debug */
|
|
197
|
-
|
|
198
|
-
|
|
249
|
+
d(this, "debug");
|
|
250
|
+
d(this, "debugUtil", new V(this));
|
|
199
251
|
/** 更改 tag 模型 */
|
|
200
|
-
|
|
252
|
+
d(this, "changeTagModel", (e, t) => l(this, null, function* () {
|
|
201
253
|
var i;
|
|
202
|
-
e.data =
|
|
254
|
+
e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
203
255
|
}));
|
|
204
|
-
|
|
256
|
+
d(this, "handleFiveModeChange", (e) => {
|
|
205
257
|
const t = () => {
|
|
206
258
|
this.tags.forEach((i) => {
|
|
207
259
|
i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
|
|
@@ -211,7 +263,7 @@ class Wi extends O {
|
|
|
211
263
|
};
|
|
212
264
|
this.tags.length < 500 ? t() : this.five.ready().then(() => t());
|
|
213
265
|
});
|
|
214
|
-
|
|
266
|
+
d(this, "handleFiveWantsMoveToPano", (e) => {
|
|
215
267
|
if (this.tags.length > 500) {
|
|
216
268
|
this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
|
|
217
269
|
return;
|
|
@@ -222,20 +274,20 @@ class Wi extends O {
|
|
|
222
274
|
typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
|
|
223
275
|
}), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
|
|
224
276
|
});
|
|
225
|
-
|
|
277
|
+
d(this, "clickhandler", (e) => {
|
|
226
278
|
e.tag.onClick(e);
|
|
227
279
|
});
|
|
228
|
-
|
|
280
|
+
d(this, "handleFiveCameraUpdate", () => {
|
|
229
281
|
this.filterPointTag.forEach((e) => e.updateScreenPosition());
|
|
230
282
|
});
|
|
231
|
-
|
|
283
|
+
d(this, "handleFiveCameraFovUpdate", () => {
|
|
232
284
|
this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
|
|
233
285
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
234
286
|
}, 1e3);
|
|
235
287
|
});
|
|
236
|
-
|
|
288
|
+
d(this, "handleFivePanoArrived", () => l(this, null, function* () {
|
|
237
289
|
this.tags.forEach((e) => {
|
|
238
|
-
e.state.visible = !1, e.temporaryState = c(
|
|
290
|
+
e.state.visible = !1, e.temporaryState = c(m({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
|
|
239
291
|
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
|
|
240
292
|
var t;
|
|
241
293
|
return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
@@ -254,13 +306,13 @@ class Wi extends O {
|
|
|
254
306
|
});
|
|
255
307
|
}));
|
|
256
308
|
/** 楼层切换时,需要更新标签可见性 */
|
|
257
|
-
|
|
309
|
+
d(this, "handleFiveModelShownFloorChange", () => {
|
|
258
310
|
this.tags.forEach((e) => e.updateVisible());
|
|
259
311
|
});
|
|
260
|
-
|
|
312
|
+
d(this, "onFiveEveryReady", () => {
|
|
261
313
|
this.setUnfoldedByCamera(), R(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
|
|
262
314
|
});
|
|
263
|
-
|
|
315
|
+
d(this, "render", () => {
|
|
264
316
|
this.renderQueue.forEach((e, t) => {
|
|
265
317
|
const { keys: i } = e;
|
|
266
318
|
if (t === "TagContainerSvelte") {
|
|
@@ -287,7 +339,7 @@ class Wi extends O {
|
|
|
287
339
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
288
340
|
this.TagContainerSvelte = new $({
|
|
289
341
|
target: this.container,
|
|
290
|
-
props: c(
|
|
342
|
+
props: c(m({}, n), { state: c(m({}, this.state), { enabled: !1 }) })
|
|
291
343
|
}), G(() => {
|
|
292
344
|
var r;
|
|
293
345
|
(r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
|
|
@@ -296,7 +348,7 @@ class Wi extends O {
|
|
|
296
348
|
}
|
|
297
349
|
}), this.renderQueue.clear();
|
|
298
350
|
});
|
|
299
|
-
this.params =
|
|
351
|
+
this.params = f({}, { debug: !1, config: this.config }, m({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), L(1, { namespace: B.PlayAudio });
|
|
300
352
|
try {
|
|
301
353
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
302
354
|
get: function() {
|
|
@@ -318,7 +370,7 @@ class Wi extends O {
|
|
|
318
370
|
load(e) {
|
|
319
371
|
return l(this, null, function* () {
|
|
320
372
|
var i, o;
|
|
321
|
-
this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
373
|
+
this.clearTags(), console.debug(S, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = f({}, this.config, {
|
|
322
374
|
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
323
375
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
324
376
|
});
|
|
@@ -352,7 +404,7 @@ class Wi extends O {
|
|
|
352
404
|
* @description 改变配置
|
|
353
405
|
*/
|
|
354
406
|
changeConfig(e, t = !0) {
|
|
355
|
-
t ? this.config =
|
|
407
|
+
t ? this.config = f({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
|
|
356
408
|
i.updateConfig(), i.updateVisible();
|
|
357
409
|
});
|
|
358
410
|
}
|
|
@@ -360,7 +412,7 @@ class Wi extends O {
|
|
|
360
412
|
* @description 改变全局配置
|
|
361
413
|
*/
|
|
362
414
|
changeGlobalConfig(e, t = !0) {
|
|
363
|
-
t ? this.config.globalConfig =
|
|
415
|
+
t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
|
|
364
416
|
i.updateConfig(), i.updateVisible();
|
|
365
417
|
});
|
|
366
418
|
}
|
|
@@ -368,7 +420,7 @@ class Wi extends O {
|
|
|
368
420
|
* @description 改变类型配置
|
|
369
421
|
*/
|
|
370
422
|
changeContentTypeConfig(e, t, i = !0) {
|
|
371
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
423
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = f({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.tags.forEach((o) => {
|
|
372
424
|
o.updateConfig(), o.updateVisible();
|
|
373
425
|
});
|
|
374
426
|
}
|
|
@@ -403,7 +455,7 @@ class Wi extends O {
|
|
|
403
455
|
setState(e, t) {
|
|
404
456
|
if (this.checkDisposed())
|
|
405
457
|
return;
|
|
406
|
-
const { userAction: i = !0 } = t != null ? t : {}, o =
|
|
458
|
+
const { userAction: i = !0 } = t != null ? t : {}, o = m({}, this.state);
|
|
407
459
|
this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
408
460
|
}
|
|
409
461
|
/**
|
|
@@ -593,7 +645,7 @@ class Wi extends O {
|
|
|
593
645
|
}
|
|
594
646
|
}
|
|
595
647
|
export {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
648
|
+
$o as PanoTagPluginController,
|
|
649
|
+
$o as default,
|
|
650
|
+
Qo as pluginFlag
|
|
599
651
|
};
|