@realsee/dnalogel 3.50.16 → 3.50.18-alpha.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 +3 -0
- package/README.md +116 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
- package/dist/Sculpt/utils/export.d.ts +18 -0
- package/dist/index.cjs.js +207 -207
- package/dist/index.js +34867 -34776
- package/dist/index.umd.js +211 -211
- package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/tag.d.ts +41 -2
- package/dist/shared-utils/three/temp.d.ts +2 -2
- package/libs/AreaMakerPlugin/Controller.js +100 -46
- package/libs/AreaMakerPlugin/index.js +64 -10
- package/libs/AreaMakerPlugin/utils/Item.js +156 -100
- package/libs/CSS3DRenderPlugin/Controller.js +93 -44
- package/libs/CSS3DRenderPlugin/index.js +62 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
- package/libs/CruisePlugin/BaseController.js +143 -89
- package/libs/CruisePlugin/Move.js +83 -39
- package/libs/CruisePlugin/Work.js +95 -51
- package/libs/CruisePlugin/index.js +66 -22
- package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
- package/libs/CurrentPanoImagePlugin/index.js +63 -9
- package/libs/GuideLinePlugin/Controller.js +57 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
- package/libs/GuideLinePlugin/index.js +66 -22
- package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
- package/libs/ModelMakerPlugin/Controller.js +190 -129
- package/libs/ModelMakerPlugin/index.js +63 -21
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
- package/libs/ModelTVVideoPlugin/index.js +55 -6
- package/libs/Object3DHelperPlugin/Controller.js +42 -25
- package/libs/Object3DHelperPlugin/index.js +28 -12
- package/libs/PanoCompassPlugin/Controller.js +92 -44
- package/libs/PanoCompassPlugin/index.js +63 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
- package/libs/PanoDoorLabelPlugin/index.js +63 -9
- package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
- package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
- package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
- package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
- package/libs/PanoMeasurePlugin/Model/area.js +72 -22
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
- package/libs/PanoMeasurePlugin/index.js +62 -16
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
- package/libs/PanoRulerProPlugin/Controller.js +88 -33
- package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
- package/libs/PanoRulerProPlugin/index.js +64 -9
- package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
- package/libs/PanoSpatialTagPlugin/index.js +53 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
- package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
- package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
- package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
- package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
- package/libs/PanoTagPlugin/controller/index.js +110 -72
- package/libs/PanoTagPlugin/index.js +72 -28
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
- package/libs/PanoVideoPlugin/Controller.js +95 -41
- package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
- package/libs/PanoVideoPlugin/index.js +66 -12
- package/libs/PipelinePlugin/Controller.js +173 -119
- package/libs/PipelinePlugin/index.js +63 -9
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +10 -6
- package/libs/Sculpt/Meshes/Line.js +43 -38
- package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
- package/libs/Sculpt/Meshes/Point.js +24 -20
- package/libs/Sculpt/Meshes/Polygon.js +5 -2
- package/libs/Sculpt/Meshes/Prism.js +19 -16
- package/libs/Sculpt/Objects/Line/Editor.js +6 -5
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/export.d.ts +18 -0
- package/libs/Sculpt/utils/export.js +21 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
- package/libs/base/BasePlugin.js +14 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
- package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/index.js +4 -0
- package/libs/index.js +208 -206
- package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
- package/libs/shared-utils/five/index.js +6 -2
- package/libs/shared-utils/five/lookObject.js +31 -27
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +41 -2
- package/libs/shared-utils/tag.js +139 -86
- package/libs/shared-utils/three/index.js +4 -0
- package/libs/shared-utils/three/temp.d.ts +2 -2
- package/libs/shared-utils/three/temp.js +4 -4
- package/package.json +1 -1
|
@@ -83,7 +83,10 @@ import "../../shared-utils/Subscribe.js";
|
|
|
83
83
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
84
84
|
import "../../shared-utils/five/transformPosition.js";
|
|
85
85
|
import "../../shared-utils/three/temp.js";
|
|
86
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
86
87
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
88
|
+
import "../../shared-utils/five/fiveEveryReadyListener.js";
|
|
89
|
+
import "../../shared-utils/throttle.js";
|
|
87
90
|
import "hammerjs";
|
|
88
91
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
89
92
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -101,21 +104,74 @@ import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
|
101
104
|
import "../../vendor/three/build/three.module.js";
|
|
102
105
|
import "../../shared-utils/three/core/Sphere.js";
|
|
103
106
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
104
|
-
import "../../
|
|
105
|
-
import "../../shared-utils/
|
|
107
|
+
import "../../Sculpt/Meshes/Polygon.js";
|
|
108
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
109
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
110
|
+
import "earcut";
|
|
111
|
+
import "../../shared-utils/three/getNormal.js";
|
|
112
|
+
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
113
|
+
import "../../Sculpt/typings/style.js";
|
|
114
|
+
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
115
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
116
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
117
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
118
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
119
|
+
import "../../base/BasePlugin.js";
|
|
120
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
121
|
+
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
122
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
123
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
124
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
125
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
126
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
127
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
128
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
129
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
130
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
131
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
106
132
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
107
133
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
108
134
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
135
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
136
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
137
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
138
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
139
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
109
140
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
110
141
|
import "../../Sculpt/Meshes/Line.js";
|
|
111
|
-
import "../../Sculpt/typings/style.js";
|
|
112
142
|
import "../../shared-utils/five/FiveLine.js";
|
|
113
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
114
143
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
115
144
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
116
145
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
117
146
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
147
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
148
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
149
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
150
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
151
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
152
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
153
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
154
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
155
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
156
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
157
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.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/fiveModelLoad.js";
|
|
171
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
172
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
118
173
|
import "../../shared-utils/isTouchDevice.js";
|
|
174
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
119
175
|
import "../../shared-utils/five/getPosition.js";
|
|
120
176
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
121
177
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -146,7 +202,6 @@ import "../../shared-utils/three/loadVideoTexture.js";
|
|
|
146
202
|
import "../../shared-utils/device.js";
|
|
147
203
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
148
204
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
149
|
-
import "../../shared-utils/three/getNormal.js";
|
|
150
205
|
import "./Tag/BaseTag.js";
|
|
151
206
|
import "../utils/tag/calculateTagConfig.js";
|
|
152
207
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -171,18 +226,7 @@ import "../utils/normalPositionToPositions.js";
|
|
|
171
226
|
import "../../vendor/svelte/store/index.js";
|
|
172
227
|
import "../../CSS3DRenderPlugin/index.js";
|
|
173
228
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
174
|
-
|
|
175
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
176
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
177
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
178
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
179
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
180
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
181
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
182
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
183
|
-
import "../../shared-utils/three/core/Raycaster.js";
|
|
184
|
-
import "../../base/BasePlugin.js";
|
|
185
|
-
class Kr extends N {
|
|
229
|
+
class $i extends N {
|
|
186
230
|
constructor(t) {
|
|
187
231
|
super(t);
|
|
188
232
|
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -319,5 +363,5 @@ class Kr extends N {
|
|
|
319
363
|
}
|
|
320
364
|
}
|
|
321
365
|
export {
|
|
322
|
-
|
|
366
|
+
$i as TagRender
|
|
323
367
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
|
-
var c = (
|
|
3
|
-
var
|
|
2
|
+
var c = (p, m, t) => m in p ? d(p, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[m] = t;
|
|
3
|
+
var e = (p, m, t) => (c(p, typeof m != "symbol" ? m + "" : m, t), t);
|
|
4
4
|
import { DefaultConfig as l } from "../tag.config.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.js";
|
|
@@ -34,7 +34,10 @@ import "../../shared-utils/Utils/BaseUtil.js";
|
|
|
34
34
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
35
35
|
import "../../shared-utils/five/transformPosition.js";
|
|
36
36
|
import "../../shared-utils/three/temp.js";
|
|
37
|
+
import "../../shared-utils/three/core/Raycaster.js";
|
|
37
38
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
39
|
+
import "../../shared-utils/five/fiveEveryReadyListener.js";
|
|
40
|
+
import "../../shared-utils/throttle.js";
|
|
38
41
|
import "hammerjs";
|
|
39
42
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
40
43
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -60,17 +63,61 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
60
63
|
import "animejs";
|
|
61
64
|
import "../../shared-utils/isNil.js";
|
|
62
65
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
63
|
-
import "../../
|
|
66
|
+
import "../../Sculpt/Meshes/Polygon.js";
|
|
67
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
68
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
69
|
+
import "earcut";
|
|
70
|
+
import "../../shared-utils/three/getNormal.js";
|
|
71
|
+
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
72
|
+
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
73
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
74
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
75
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
76
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
77
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
78
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
79
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
80
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
81
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
82
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
83
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.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/calculateThreeMouse.js";
|
|
64
110
|
import "../../shared-utils/isTouchDevice.js";
|
|
111
|
+
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
112
|
+
import "../../shared-utils/three/geometryUtil.js";
|
|
113
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
65
114
|
import "../../shared-utils/five/getPosition.js";
|
|
66
115
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
67
116
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
117
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
68
118
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
69
119
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
70
120
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
71
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
72
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
73
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
74
121
|
import "../../shared-utils/three/loadTexture.js";
|
|
75
122
|
import "../../shared-utils/three/Quadrangle.js";
|
|
76
123
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -78,128 +125,125 @@ import "../../shared-utils/three/loadVideoTexture.js";
|
|
|
78
125
|
import "../Assets/Icon.js";
|
|
79
126
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
80
127
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
r(this, "cache", new v());
|
|
89
|
-
r(this, "config", l);
|
|
90
|
-
r(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
128
|
+
class Oi extends E {
|
|
129
|
+
constructor(t) {
|
|
130
|
+
super(t);
|
|
131
|
+
e(this, "tags", []);
|
|
132
|
+
e(this, "cache", new v());
|
|
133
|
+
e(this, "config", l);
|
|
134
|
+
e(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
91
135
|
/** 插件参数 */
|
|
92
|
-
|
|
93
|
-
|
|
136
|
+
e(this, "params");
|
|
137
|
+
e(this, "mediaStore", P({
|
|
94
138
|
currentMediaElement: null
|
|
95
139
|
}));
|
|
96
|
-
|
|
140
|
+
e(this, "store", {
|
|
97
141
|
disposers: [],
|
|
98
142
|
disposed: !1,
|
|
99
143
|
resizeObserverDisposerAdding: !1,
|
|
100
144
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
101
145
|
});
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
return
|
|
146
|
+
e(this, "domEvents", new y(this.five));
|
|
147
|
+
e(this, "_cache_pointTag");
|
|
148
|
+
e(this, "_cache_2DPointTag");
|
|
149
|
+
e(this, "_cache_css3DTag");
|
|
150
|
+
e(this, "_container", null);
|
|
151
|
+
e(this, "_css3DRenderPlugin");
|
|
152
|
+
e(this, "whyHide", (t) => {
|
|
153
|
+
const i = this.getTagById(t);
|
|
154
|
+
return i ? i.whyHide() : { reason: `tag ${t} not found` };
|
|
111
155
|
});
|
|
112
|
-
|
|
156
|
+
e(this, "loadVideoFirstFrame", () => {
|
|
113
157
|
T && this.hooks.emit("loadVideoFirstFrame");
|
|
114
158
|
});
|
|
115
|
-
this.mediaStore.subscribe(({ currentMediaElement:
|
|
116
|
-
this.tags.forEach((
|
|
159
|
+
this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
160
|
+
this.tags.forEach((r) => {
|
|
117
161
|
var o;
|
|
118
|
-
if (
|
|
119
|
-
if (!((o =
|
|
162
|
+
if (r.mediaPlane instanceof _ && i !== r.mediaPlane.videoInstance) {
|
|
163
|
+
if (!((o = r.mediaPlane.videoInstance) != null && o.src) || i === r.mediaPlane.videoInstance)
|
|
120
164
|
return;
|
|
121
|
-
|
|
165
|
+
r.mediaPlane.pause();
|
|
122
166
|
}
|
|
123
167
|
});
|
|
124
168
|
});
|
|
125
169
|
}
|
|
126
170
|
get container() {
|
|
127
|
-
var
|
|
128
|
-
return this._container || ((
|
|
171
|
+
var t;
|
|
172
|
+
return this._container || ((t = this.five.getElement()) == null ? void 0 : t.parentElement);
|
|
129
173
|
}
|
|
130
|
-
set container(
|
|
131
|
-
this._container =
|
|
174
|
+
set container(t) {
|
|
175
|
+
this._container = t;
|
|
132
176
|
}
|
|
133
177
|
// eslint-disable-next-line accessor-pairs
|
|
134
|
-
set tagsLengthWillUpdate(
|
|
135
|
-
|
|
136
|
-
(
|
|
137
|
-
).filter((
|
|
138
|
-
const
|
|
139
|
-
return
|
|
178
|
+
set tagsLengthWillUpdate(t) {
|
|
179
|
+
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(
|
|
180
|
+
(i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
|
|
181
|
+
).filter((i) => {
|
|
182
|
+
const r = i.computeRenderType();
|
|
183
|
+
return r === "BehindDom" || r === "Dom";
|
|
140
184
|
}));
|
|
141
185
|
}
|
|
142
186
|
/** css3DRenderPlugin */
|
|
143
187
|
get css3DRenderPlugin() {
|
|
144
|
-
var
|
|
188
|
+
var t, i, r;
|
|
145
189
|
if (!this._css3DRenderPlugin) {
|
|
146
190
|
const o = D(this.five);
|
|
147
|
-
this._css3DRenderPlugin = o, (
|
|
191
|
+
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 : "");
|
|
148
192
|
}
|
|
149
193
|
return this._css3DRenderPlugin;
|
|
150
194
|
}
|
|
151
195
|
get filterPointTag() {
|
|
152
|
-
var
|
|
153
|
-
return (
|
|
196
|
+
var t;
|
|
197
|
+
return (t = this._cache_pointTag) != null ? t : [];
|
|
154
198
|
}
|
|
155
199
|
get filter2DPointTag() {
|
|
156
|
-
var
|
|
157
|
-
return (
|
|
200
|
+
var t;
|
|
201
|
+
return (t = this._cache_2DPointTag) != null ? t : [];
|
|
158
202
|
}
|
|
159
203
|
get filterCSS3DTag() {
|
|
160
|
-
var
|
|
161
|
-
return (
|
|
204
|
+
var t;
|
|
205
|
+
return (t = this._cache_css3DTag) != null ? t : [];
|
|
162
206
|
}
|
|
163
|
-
addRenderQueue(
|
|
164
|
-
var
|
|
165
|
-
const { type:
|
|
166
|
-
this.renderQueue.has(
|
|
167
|
-
keys: Array.from(/* @__PURE__ */ new Set([...(
|
|
168
|
-
tags: Array.from(/* @__PURE__ */ new Set([...(
|
|
169
|
-
}) : this.renderQueue.set(
|
|
207
|
+
addRenderQueue(t) {
|
|
208
|
+
var s, n;
|
|
209
|
+
const { type: i, keys: r = [], tags: o = [] } = t;
|
|
210
|
+
this.renderQueue.has(i) ? this.renderQueue.set(i, {
|
|
211
|
+
keys: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(i).keys) != null ? s : [], ...r])),
|
|
212
|
+
tags: Array.from(/* @__PURE__ */ new Set([...(n = this.renderQueue.get(i).tags) != null ? n : [], ...o]))
|
|
213
|
+
}) : this.renderQueue.set(i, { keys: r, tags: o });
|
|
170
214
|
}
|
|
171
|
-
getTagById(
|
|
172
|
-
const
|
|
173
|
-
if (!
|
|
174
|
-
console.warn(`getTagById Error: can't find tag id: ${
|
|
215
|
+
getTagById(t) {
|
|
216
|
+
const i = this.tags.find((r) => r.id === t);
|
|
217
|
+
if (!i) {
|
|
218
|
+
console.warn(`getTagById Error: can't find tag id: ${t}`);
|
|
175
219
|
return;
|
|
176
220
|
}
|
|
177
|
-
return
|
|
221
|
+
return i;
|
|
178
222
|
}
|
|
179
223
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
180
224
|
pauseCurrentMedia() {
|
|
181
225
|
this.mediaStore.set({ currentMediaElement: null });
|
|
182
226
|
}
|
|
183
|
-
getPositions(
|
|
184
|
-
if (u(
|
|
185
|
-
return
|
|
186
|
-
if (f(
|
|
187
|
-
return
|
|
188
|
-
if (h(
|
|
189
|
-
return g(this.five.camera.position, a(
|
|
227
|
+
getPositions(t) {
|
|
228
|
+
if (u(t))
|
|
229
|
+
return t.position;
|
|
230
|
+
if (f(t))
|
|
231
|
+
return t.data.mediaPosition;
|
|
232
|
+
if (h(t))
|
|
233
|
+
return g(this.five.camera.position, a(t.position), a(t.normal));
|
|
190
234
|
}
|
|
191
|
-
addObjectClickHandler(
|
|
192
|
-
if (!
|
|
235
|
+
addObjectClickHandler(t, i, r) {
|
|
236
|
+
if (!i || !this.domEvents)
|
|
193
237
|
return () => {
|
|
194
238
|
};
|
|
195
|
-
const o = () => !(!
|
|
239
|
+
const o = () => !(!t.currentVisible || t.loading), s = (n) => {
|
|
196
240
|
if (!o())
|
|
197
241
|
return !1;
|
|
198
|
-
|
|
242
|
+
r(n.origDomEvent);
|
|
199
243
|
};
|
|
200
|
-
return this.domEvents.addEventListener(
|
|
201
|
-
var
|
|
202
|
-
(
|
|
244
|
+
return this.domEvents.addEventListener(i, "click", s), () => {
|
|
245
|
+
var n;
|
|
246
|
+
(n = this.domEvents) == null || n.removeEventListener(i, "click", s);
|
|
203
247
|
};
|
|
204
248
|
}
|
|
205
249
|
/**
|
|
@@ -211,5 +255,5 @@ class Ne extends E {
|
|
|
211
255
|
}
|
|
212
256
|
}
|
|
213
257
|
export {
|
|
214
|
-
|
|
258
|
+
Oi as TagUtil
|
|
215
259
|
};
|