@realsee/dnalogel 3.45.0 → 3.46.1

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