@realsee/dnalogel 3.45.0 → 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 +3 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29609 -29576
- package/dist/index.umd.js +49 -49
- 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 +139 -82
- 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 +140 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +178 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +109 -64
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +97 -45
- package/libs/PanoMeasurePlugin/index.js +76 -31
- 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/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +76 -56
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +128 -59
- 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 +67 -67
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as Ar } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as Dr } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -8,15 +8,87 @@ import "three";
|
|
|
8
8
|
import "hammerjs";
|
|
9
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
10
|
import "@realsee/five/line";
|
|
11
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
12
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
13
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
11
14
|
import "../shared-utils/three/THREESphere.js";
|
|
15
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
16
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
17
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
18
|
+
import "../shared-utils/three/IObject3D.js";
|
|
19
|
+
import "../shared-utils/three/boundingBox.js";
|
|
20
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
21
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
22
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
23
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
25
|
+
import "../shared-utils/positionToVector3.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
29
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
30
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
31
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
|
+
import "../shared-utils/three/centerPoint.js";
|
|
33
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
12
34
|
import "animejs";
|
|
35
|
+
import "../shared-utils/isNil.js";
|
|
36
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
13
37
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
14
38
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
15
39
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
16
40
|
import "../shared-utils/five/transformPosition.js";
|
|
17
41
|
import "../shared-utils/five/getFiveModel.js";
|
|
18
42
|
import "../shared-utils/url/absoluteUrl.js";
|
|
19
|
-
import "../
|
|
43
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
44
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
45
|
+
import "../shared-utils/util.js";
|
|
46
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
48
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
49
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
50
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
51
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
53
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
54
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
55
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
56
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
57
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
58
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
59
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
60
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
61
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
62
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
63
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
64
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
65
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
66
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
68
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
69
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
70
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
71
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
72
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
73
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
74
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
75
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
76
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
77
|
+
import "../shared-utils/three/Magnifier.js";
|
|
78
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
79
|
+
import "../shared-utils/three/Assets/index.js";
|
|
80
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
81
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
82
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
83
|
+
import "../Sculpt/Meshes/Line.js";
|
|
84
|
+
import "../Sculpt/typings/style.js";
|
|
85
|
+
import "../shared-utils/five/FiveLine.js";
|
|
86
|
+
import "../shared-utils/tag.js";
|
|
87
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
88
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
89
|
+
import "../shared-utils/isTouchDevice.js";
|
|
90
|
+
import "../shared-utils/five/getPosition.js";
|
|
91
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
20
92
|
import "../shared-utils/equal.js";
|
|
21
93
|
import "../shared-utils/isTruelyObject.js";
|
|
22
94
|
import "../CruisePlugin/Work.js";
|
|
@@ -31,7 +103,6 @@ import "../shared-utils/vectorToCoordinate.js";
|
|
|
31
103
|
import "../shared-utils/formatRad.js";
|
|
32
104
|
import "../CruisePlugin/BaseController.js";
|
|
33
105
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
-
import "../shared-utils/isNil.js";
|
|
35
106
|
import "../shared-utils/log.js";
|
|
36
107
|
import "./utils/createLineGeometry.js";
|
|
37
108
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -44,12 +115,10 @@ import "../vendor/gl-vec2/dot.js";
|
|
|
44
115
|
import "../shared-utils/math/intersecting.js";
|
|
45
116
|
import "../shared-utils/five/mode.js";
|
|
46
117
|
import "../shared-utils/three/blink.js";
|
|
47
|
-
import "../shared-utils/util.js";
|
|
48
118
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
49
119
|
import "../shared-utils/animationFrame/index.js";
|
|
50
120
|
import "../shared-utils/three/loadTexture.js";
|
|
51
121
|
import "../PanoTagPlugin/controller/index.js";
|
|
52
|
-
import "../shared-utils/positionToVector3.js";
|
|
53
122
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
54
123
|
import "../PanoTagPlugin/utils/debounce.js";
|
|
55
124
|
import "../PanoTagPlugin/utils/throttle.js";
|
|
@@ -131,7 +200,6 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
131
200
|
import "@realsee/five/gltf-loader";
|
|
132
201
|
import "../PanoTagPlugin/utils/planeNormal.js";
|
|
133
202
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
134
|
-
import "../shared-utils/three/centerPoint.js";
|
|
135
203
|
import "../shared-utils/three/Quadrangle.js";
|
|
136
204
|
import "../shared-utils/math/pointsIsRectangle.js";
|
|
137
205
|
import "../shared-utils/three/loadVideoTexture.js";
|
|
@@ -158,22 +226,6 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
158
226
|
import "../vendor/svelte/store/index.js";
|
|
159
227
|
import "../CSS3DRenderPlugin/index.js";
|
|
160
228
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
161
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
162
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
163
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
164
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
165
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
166
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
167
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
168
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
169
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
170
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
171
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
172
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
173
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
174
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
175
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
176
|
-
import "../shared-utils/three/THREERaycaster.js";
|
|
177
229
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
178
230
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
179
231
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -189,10 +241,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
189
241
|
import "../shared-utils/nearlyEqual.js";
|
|
190
242
|
import "../CruisePlugin/Move.js";
|
|
191
243
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
192
|
-
const r = (i, o) => new t(i, o),
|
|
244
|
+
const r = (i, o) => new t(i, o), vr = r;
|
|
193
245
|
export {
|
|
194
|
-
|
|
195
|
-
|
|
246
|
+
Ar as GuideLineItem,
|
|
247
|
+
Dr as GuideLineModeItem,
|
|
196
248
|
r as GuideLinePlugin,
|
|
197
|
-
|
|
249
|
+
vr as default
|
|
198
250
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
var H = Object.defineProperty;
|
|
2
2
|
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var L = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var w = (
|
|
5
|
-
for (var
|
|
6
|
-
L.call(o,
|
|
4
|
+
var w = (a, o, t) => o in a ? H(a, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[o] = t, E = (a, o) => {
|
|
5
|
+
for (var t in o || (o = {}))
|
|
6
|
+
L.call(o, t) && w(a, t, o[t]);
|
|
7
7
|
if (P)
|
|
8
|
-
for (var
|
|
9
|
-
S.call(o,
|
|
10
|
-
return
|
|
8
|
+
for (var t of P(o))
|
|
9
|
+
S.call(o, t) && w(a, t, o[t]);
|
|
10
|
+
return a;
|
|
11
11
|
};
|
|
12
|
-
var n = (
|
|
13
|
-
var F = (
|
|
14
|
-
var
|
|
12
|
+
var n = (a, o, t) => (w(a, typeof o != "symbol" ? o + "" : o, t), t);
|
|
13
|
+
var F = (a, o, t) => new Promise((e, s) => {
|
|
14
|
+
var l = (h) => {
|
|
15
15
|
try {
|
|
16
|
-
i(
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
i(t.next(h));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
s(c);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, p = (h) => {
|
|
21
21
|
try {
|
|
22
|
-
i(
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
i(t.throw(h));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
s(c);
|
|
25
25
|
}
|
|
26
|
-
}, i = (
|
|
27
|
-
i((
|
|
26
|
+
}, i = (h) => h.done ? e(h.value) : Promise.resolve(h.value).then(l, p);
|
|
27
|
+
i((t = t.apply(a, o)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as z } from "../base/BasePluginWithData.js";
|
|
30
|
-
import * as
|
|
30
|
+
import * as m from "three";
|
|
31
31
|
import { ModelMakerBoxItem as B } from "./item/boxItem.js";
|
|
32
32
|
import { PrismMesh as A } from "../Sculpt/Meshes/Prism.js";
|
|
33
33
|
import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
|
|
@@ -35,6 +35,7 @@ import { PolygonWithEdgeMesh as Q } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
|
35
35
|
import "hammerjs";
|
|
36
36
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
37
37
|
import "@realsee/five/line";
|
|
38
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
38
39
|
import { boxVertex as g } from "../shared-utils/three/boundingBox.js";
|
|
39
40
|
import "animejs";
|
|
40
41
|
import { notNil as I } from "../shared-utils/isNil.js";
|
|
@@ -57,6 +58,9 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
57
58
|
import "../Sculpt/Meshes/Line.js";
|
|
58
59
|
import "../Sculpt/typings/style.js";
|
|
59
60
|
import "../shared-utils/five/FiveLine.js";
|
|
61
|
+
import "../shared-utils/three/centerPoint.js";
|
|
62
|
+
import "../shared-utils/tag.js";
|
|
63
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
60
64
|
import "../Sculpt/Meshes/Polygon.js";
|
|
61
65
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
62
66
|
import "../shared-utils/three/earcut3D.js";
|
|
@@ -64,30 +68,83 @@ import "earcut";
|
|
|
64
68
|
import "../shared-utils/three/getNormal.js";
|
|
65
69
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
66
70
|
import "../shared-utils/three/geometryUtil.js";
|
|
67
|
-
import "../shared-utils/three/centerPoint.js";
|
|
68
71
|
import "../shared-utils/three/THREERaycaster.js";
|
|
69
72
|
import "../Sculpt/Meshes/Polyline.js";
|
|
70
73
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
71
74
|
import "../Sculpt/Meshes/Point.js";
|
|
72
75
|
import "../shared-utils/three/closeVectors.js";
|
|
76
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
77
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
78
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
79
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
80
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
81
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
82
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
84
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
85
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
86
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
87
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
88
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
89
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
90
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
91
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
92
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
93
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
94
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
95
|
+
import "../shared-utils/util.js";
|
|
96
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
97
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
98
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
99
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
100
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
101
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
102
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
103
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
104
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
105
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
106
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
107
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
108
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
109
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
110
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
111
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
112
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
113
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
114
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
115
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
116
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
117
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
118
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
119
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
120
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
121
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
122
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
123
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
124
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
125
|
+
import "../shared-utils/three/Magnifier.js";
|
|
126
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
127
|
+
import "../shared-utils/three/Assets/index.js";
|
|
128
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
129
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
130
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
131
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
132
|
+
import "../shared-utils/isTouchDevice.js";
|
|
133
|
+
import "../shared-utils/five/getPosition.js";
|
|
134
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
73
135
|
import "./utils/Text.js";
|
|
74
136
|
import "../vendor/svelte/internal/index.js";
|
|
75
137
|
import "../components/AreaLabel/LabelItem.js";
|
|
76
138
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
77
139
|
import "./item/baseItem.js";
|
|
78
140
|
import "../shared-utils/three/addIfNotExists.js";
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
84
|
-
class Ne extends z {
|
|
85
|
-
constructor(e, t) {
|
|
86
|
-
var r, p;
|
|
87
|
-
super(e);
|
|
141
|
+
class Xe extends z {
|
|
142
|
+
constructor(t, e) {
|
|
143
|
+
var s, l;
|
|
144
|
+
super(t);
|
|
88
145
|
n(this, "state");
|
|
89
146
|
n(this, "items", []);
|
|
90
|
-
n(this, "group", new
|
|
147
|
+
n(this, "group", new m.Group());
|
|
91
148
|
n(this, "data");
|
|
92
149
|
n(this, "tagRendererMap", {});
|
|
93
150
|
n(this, "fiveDomEvents");
|
|
@@ -95,123 +152,123 @@ class Ne extends z {
|
|
|
95
152
|
n(this, "tagWrapper");
|
|
96
153
|
n(this, "occlusionVisibility");
|
|
97
154
|
n(this, "occlusionMode");
|
|
98
|
-
n(this, "onFiveModeChange", (
|
|
99
|
-
const
|
|
100
|
-
Array.isArray(
|
|
101
|
-
|
|
155
|
+
n(this, "onFiveModeChange", (t) => {
|
|
156
|
+
const e = this.occlusionVisibility;
|
|
157
|
+
Array.isArray(e) && this.items.forEach((s) => {
|
|
158
|
+
s.model.setStyle instanceof Function && s.model.setStyle({ occlusionVisibility: e.includes(t) });
|
|
102
159
|
});
|
|
103
160
|
});
|
|
104
161
|
n(this, "handleEnable", () => {
|
|
105
|
-
var
|
|
106
|
-
this.five.scene.add(this.group), (
|
|
162
|
+
var t, e;
|
|
163
|
+
this.five.scene.add(this.group), (e = (t = this.five.getElement()) == null ? void 0 : t.parentElement) == null || e.appendChild(this.tagWrapper), this.five.needsRender = !0, this.onFiveModeChange(this.five.getCurrentState().mode), this.five.on("modeChange", this.onFiveModeChange);
|
|
107
164
|
});
|
|
108
165
|
n(this, "handleDisable", () => {
|
|
109
166
|
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange);
|
|
110
167
|
});
|
|
111
168
|
n(this, "updateTagRenderer", () => {
|
|
112
|
-
this.items.forEach((
|
|
113
|
-
var
|
|
114
|
-
const
|
|
115
|
-
|
|
169
|
+
this.items.forEach((t) => {
|
|
170
|
+
var s;
|
|
171
|
+
const e = (s = this.tagRendererMap[t.type]) != null ? s : q[t.type];
|
|
172
|
+
e && t.__renderer !== e && (t.__renderer = e, typeof t.__disposeRenderer == "function" && t.__disposeRenderer(), t.tag.container.innerHTML = "", t.__disposeRenderer = e(t.tag.container, t));
|
|
116
173
|
});
|
|
117
174
|
});
|
|
118
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (
|
|
175
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (s = e == null ? void 0 : e.occlusionVisibility) != null ? s : !1, this.occlusionMode = (l = e == null ? void 0 : e.occlusionMode) != null ? l : "translucence", this.fiveDomEvents = Y(t), this.tagWrapper = (() => {
|
|
119
176
|
var i;
|
|
120
|
-
const
|
|
121
|
-
return
|
|
122
|
-
})(),
|
|
177
|
+
const p = document.createElement("div");
|
|
178
|
+
return p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.width = "100%", p.style.height = "100%", p.style.pointerEvents = "none", p.style.zIndex = `${(i = e == null ? void 0 : e.tagContainerZIndex) != null ? i : ""}`, p;
|
|
179
|
+
})(), t.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
123
180
|
}
|
|
124
|
-
load(
|
|
181
|
+
load(t) {
|
|
125
182
|
return F(this, null, function* () {
|
|
126
|
-
var
|
|
127
|
-
if (this.clear(), this.data =
|
|
183
|
+
var p;
|
|
184
|
+
if (this.clear(), this.data = t, yield $(this.five), this.data !== t)
|
|
128
185
|
return;
|
|
129
186
|
this.clear();
|
|
130
|
-
const
|
|
131
|
-
(
|
|
132
|
-
var
|
|
187
|
+
const e = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, s = this.occlusionMode, l = 1.6;
|
|
188
|
+
(p = t == null ? void 0 : t.list) == null || p.forEach((i) => {
|
|
189
|
+
var h, c, _;
|
|
133
190
|
if (i.type === "triangles") {
|
|
134
|
-
const
|
|
135
|
-
|
|
191
|
+
const r = new Q();
|
|
192
|
+
r.setPoints(i.object_data.points), r.setStyle({
|
|
136
193
|
color: i.object_data.color,
|
|
137
|
-
opacity: ((
|
|
194
|
+
opacity: ((h = i.object_data.opacity) != null ? h : 0.4) / 2,
|
|
138
195
|
lineColor: i.object_data.color,
|
|
139
|
-
lineWidth:
|
|
140
|
-
occlusionVisibility:
|
|
141
|
-
occlusionMode:
|
|
142
|
-
}), this.fiveDomEvents.addEventListener(
|
|
196
|
+
lineWidth: l,
|
|
197
|
+
occlusionVisibility: e,
|
|
198
|
+
occlusionMode: s
|
|
199
|
+
}), this.fiveDomEvents.addEventListener(r, "hover", () => r.highlight()), this.fiveDomEvents.addEventListener(r, "unHover", () => r.unhighlight());
|
|
143
200
|
const d = new U({
|
|
144
201
|
five: this.five,
|
|
145
202
|
tagWrapper: this.tagWrapper,
|
|
146
|
-
model:
|
|
203
|
+
model: r,
|
|
147
204
|
group: this.group,
|
|
148
205
|
type: i.type,
|
|
149
206
|
rawData: i
|
|
150
207
|
});
|
|
151
208
|
this.items.push(d);
|
|
152
209
|
} else if (i.type === "prism") {
|
|
153
|
-
const
|
|
210
|
+
const r = new A();
|
|
154
211
|
this.zFightingOffset += 1e-4;
|
|
155
212
|
const d = i.object_data.points.map((u) => {
|
|
156
213
|
var y;
|
|
157
214
|
return [u[0], u[1] + ((y = i.object_data.fixedY) != null ? y : 0), u[2]];
|
|
158
215
|
});
|
|
159
216
|
d.push(d[0]);
|
|
160
|
-
const v = i.object_data.height + ((
|
|
161
|
-
|
|
217
|
+
const v = i.object_data.height + ((c = i.object_data.fixedHeight) != null ? c : 0) + this.zFightingOffset, M = O(d[0]).add(new m.Vector3().setY(v));
|
|
218
|
+
r.setPoints({ points: d, heightPoint: M }), r.setStyle({
|
|
162
219
|
color: i.object_data.color,
|
|
163
220
|
opacity: ((_ = i.object_data.opacity) != null ? _ : 0.4) / 2,
|
|
164
221
|
lineColor: i.object_data.color,
|
|
165
|
-
lineWidth:
|
|
166
|
-
occlusionVisibility:
|
|
167
|
-
occlusionMode:
|
|
222
|
+
lineWidth: l,
|
|
223
|
+
occlusionVisibility: e,
|
|
224
|
+
occlusionMode: s
|
|
168
225
|
});
|
|
169
226
|
const f = new G({
|
|
170
227
|
five: this.five,
|
|
171
228
|
tagWrapper: this.tagWrapper,
|
|
172
|
-
model:
|
|
229
|
+
model: r,
|
|
173
230
|
group: this.group,
|
|
174
231
|
type: i.type,
|
|
175
232
|
rawData: i
|
|
176
233
|
});
|
|
177
234
|
this.items.push(f);
|
|
178
235
|
} else if (i.type === "box") {
|
|
179
|
-
const
|
|
180
|
-
|
|
236
|
+
const r = new A(), { start: d, end: v, rotation: M = [0, 0, 0, 0], opacity: f, color: u } = i.object_data, y = new m.Vector3().fromArray(d), R = new m.Vector3().fromArray(v), T = new m.Euler().fromArray(M), x = new m.Quaternion().setFromEuler(T), C = x.clone().inverse(), V = new m.Vector3().lerpVectors(y, R, 0.5), W = V.clone().negate(), j = y.clone().add(W).applyQuaternion(C), k = R.clone().add(W).applyQuaternion(C), b = new m.Box3(j.clone().max(k), j.clone().min(k));
|
|
237
|
+
r.setPoints({
|
|
181
238
|
points: [g(b, 2), g(b, 3), g(b, 7), g(b, 6), g(b, 2)],
|
|
182
239
|
heightPoint: g(b, 0)
|
|
183
|
-
}),
|
|
240
|
+
}), r.position.copy(V), r.quaternion.copy(x), r.setStyle({
|
|
184
241
|
color: u,
|
|
185
242
|
opacity: (f != null ? f : 0.4) / 2,
|
|
186
243
|
lineColor: u,
|
|
187
|
-
lineWidth:
|
|
188
|
-
occlusionVisibility:
|
|
189
|
-
occlusionMode:
|
|
244
|
+
lineWidth: l,
|
|
245
|
+
occlusionVisibility: e,
|
|
246
|
+
occlusionMode: s
|
|
190
247
|
});
|
|
191
248
|
const D = new B({
|
|
192
249
|
five: this.five,
|
|
193
250
|
tagWrapper: this.tagWrapper,
|
|
194
|
-
model:
|
|
251
|
+
model: r,
|
|
195
252
|
group: this.group,
|
|
196
253
|
type: i.type,
|
|
197
254
|
rawData: i
|
|
198
255
|
});
|
|
199
256
|
this.items.push(D);
|
|
200
257
|
}
|
|
201
|
-
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded",
|
|
258
|
+
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", t);
|
|
202
259
|
});
|
|
203
260
|
}
|
|
204
|
-
setState(
|
|
205
|
-
I(
|
|
261
|
+
setState(t) {
|
|
262
|
+
I(t.enabled) && this.state.enabled !== t.enabled && (this.state.enabled = t.enabled, t.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(t.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), I(t.visible) && this.state.visible !== t.visible && (this.state.visible = t.visible, t.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(t.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
|
|
206
263
|
}
|
|
207
|
-
getItemById(
|
|
208
|
-
return this.items.find((
|
|
264
|
+
getItemById(t) {
|
|
265
|
+
return this.items.find((e) => e.rawData.id === t);
|
|
209
266
|
}
|
|
210
|
-
registerTagRenderer(
|
|
211
|
-
this.tagRendererMap = E(E({}, this.tagRendererMap),
|
|
267
|
+
registerTagRenderer(t) {
|
|
268
|
+
this.tagRendererMap = E(E({}, this.tagRendererMap), t), this.updateTagRenderer();
|
|
212
269
|
}
|
|
213
|
-
hasCustomTagRenderer(
|
|
214
|
-
return !!this.tagRendererMap[
|
|
270
|
+
hasCustomTagRenderer(t) {
|
|
271
|
+
return !!this.tagRendererMap[t];
|
|
215
272
|
}
|
|
216
273
|
enable() {
|
|
217
274
|
this.setState({ enabled: !0 });
|
|
@@ -242,5 +299,5 @@ class Ne extends z {
|
|
|
242
299
|
}
|
|
243
300
|
}
|
|
244
301
|
export {
|
|
245
|
-
|
|
302
|
+
Xe as Controller
|
|
246
303
|
};
|