@realsee/dnalogel 3.50.17-alpha.0 → 3.51.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.
Files changed (118) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
  3. package/dist/Sculpt/utils/export.d.ts +18 -0
  4. package/dist/index.cjs.js +207 -207
  5. package/dist/index.js +34866 -34775
  6. package/dist/index.umd.js +211 -211
  7. package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/tag.d.ts +40 -1
  10. package/dist/shared-utils/three/temp.d.ts +2 -2
  11. package/libs/AreaMakerPlugin/Controller.js +100 -46
  12. package/libs/AreaMakerPlugin/index.js +64 -10
  13. package/libs/AreaMakerPlugin/utils/Item.js +156 -100
  14. package/libs/CSS3DRenderPlugin/Controller.js +93 -44
  15. package/libs/CSS3DRenderPlugin/index.js +62 -13
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
  18. package/libs/CruisePlugin/BaseController.js +143 -89
  19. package/libs/CruisePlugin/Move.js +83 -39
  20. package/libs/CruisePlugin/Work.js +95 -51
  21. package/libs/CruisePlugin/index.js +66 -22
  22. package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
  23. package/libs/CurrentPanoImagePlugin/index.js +63 -9
  24. package/libs/GuideLinePlugin/Controller.js +57 -13
  25. package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
  26. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
  27. package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
  28. package/libs/GuideLinePlugin/index.js +66 -22
  29. package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
  30. package/libs/ModelMakerPlugin/Controller.js +190 -129
  31. package/libs/ModelMakerPlugin/index.js +63 -21
  32. package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
  33. package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
  35. package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
  36. package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
  37. package/libs/ModelTVVideoPlugin/index.js +55 -6
  38. package/libs/Object3DHelperPlugin/Controller.js +42 -25
  39. package/libs/Object3DHelperPlugin/index.js +28 -12
  40. package/libs/PanoCompassPlugin/Controller.js +92 -44
  41. package/libs/PanoCompassPlugin/index.js +63 -15
  42. package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
  43. package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
  44. package/libs/PanoDoorLabelPlugin/index.js +63 -9
  45. package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
  46. package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
  47. package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
  49. package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
  50. package/libs/PanoMeasurePlugin/Model/area.js +72 -22
  51. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
  52. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
  53. package/libs/PanoMeasurePlugin/index.js +62 -16
  54. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
  55. package/libs/PanoRulerProPlugin/Controller.js +88 -33
  56. package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
  57. package/libs/PanoRulerProPlugin/index.js +64 -9
  58. package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
  59. package/libs/PanoSpatialTagPlugin/index.js +53 -4
  60. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
  61. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
  62. package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
  63. package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
  64. package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
  65. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
  66. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
  67. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
  68. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
  69. package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
  70. package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
  71. package/libs/PanoTagPlugin/controller/index.js +110 -72
  72. package/libs/PanoTagPlugin/index.js +72 -28
  73. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
  74. package/libs/PanoVideoPlugin/Controller.js +95 -41
  75. package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
  76. package/libs/PanoVideoPlugin/index.js +66 -12
  77. package/libs/PipelinePlugin/Controller.js +173 -119
  78. package/libs/PipelinePlugin/index.js +63 -9
  79. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
  80. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
  81. package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
  82. package/libs/Sculpt/Meshes/Box.js +3 -2
  83. package/libs/Sculpt/Meshes/Cylinder.js +10 -6
  84. package/libs/Sculpt/Meshes/Line.js +43 -38
  85. package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
  86. package/libs/Sculpt/Meshes/Point.js +24 -20
  87. package/libs/Sculpt/Meshes/Polygon.js +5 -2
  88. package/libs/Sculpt/Meshes/Prism.js +19 -16
  89. package/libs/Sculpt/Objects/Line/Editor.js +6 -5
  90. package/libs/Sculpt/index.js +15 -14
  91. package/libs/Sculpt/utils/export.d.ts +18 -0
  92. package/libs/Sculpt/utils/export.js +21 -0
  93. package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
  94. package/libs/base/BasePlugin.js +14 -10
  95. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
  96. package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
  97. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
  98. package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
  101. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
  102. package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
  103. package/libs/floorplan/index.js +4 -0
  104. package/libs/index.js +208 -206
  105. package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
  106. package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
  107. package/libs/shared-utils/five/index.js +6 -2
  108. package/libs/shared-utils/five/lookObject.js +31 -27
  109. package/libs/shared-utils/index.d.ts +1 -0
  110. package/libs/shared-utils/index.js +19 -17
  111. package/libs/shared-utils/logger.js +1 -1
  112. package/libs/shared-utils/tag.d.ts +40 -1
  113. package/libs/shared-utils/tag.js +139 -86
  114. package/libs/shared-utils/three/index.js +4 -0
  115. package/libs/shared-utils/three/temp.d.ts +2 -2
  116. package/libs/shared-utils/three/temp.js +4 -4
  117. package/package.json +1 -1
  118. package/README.md +0 -116
@@ -1,52 +1,58 @@
1
- var H = Object.defineProperty;
1
+ var S = Object.defineProperty;
2
2
  var P = Object.getOwnPropertySymbols;
3
- var L = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var w = (p, o, e) => o in p ? H(p, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[o] = e, E = (p, o) => {
5
- for (var e in o || (o = {}))
6
- L.call(o, e) && w(p, e, o[e]);
3
+ var H = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
4
+ var M = (l, n, t) => n in l ? S(l, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[n] = t, w = (l, n) => {
5
+ for (var t in n || (n = {}))
6
+ H.call(n, t) && M(l, t, n[t]);
7
7
  if (P)
8
- for (var e of P(o))
9
- S.call(o, e) && w(p, e, o[e]);
10
- return p;
8
+ for (var t of P(n))
9
+ B.call(n, t) && M(l, t, n[t]);
10
+ return l;
11
11
  };
12
- var n = (p, o, e) => (w(p, typeof o != "symbol" ? o + "" : o, e), e);
13
- var F = (p, o, e) => new Promise((t, r) => {
14
- var l = (h) => {
12
+ var p = (l, n, t) => (M(l, typeof n != "symbol" ? n + "" : n, t), t);
13
+ var _ = (l, n, t) => new Promise((i, r) => {
14
+ var m = (e) => {
15
15
  try {
16
- i(e.next(h));
17
- } catch (c) {
18
- r(c);
16
+ o(t.next(e));
17
+ } catch (h) {
18
+ r(h);
19
19
  }
20
- }, a = (h) => {
20
+ }, a = (e) => {
21
21
  try {
22
- i(e.throw(h));
23
- } catch (c) {
24
- r(c);
22
+ o(t.throw(e));
23
+ } catch (h) {
24
+ r(h);
25
25
  }
26
- }, i = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(l, a);
27
- i((e = e.apply(p, o)).next());
26
+ }, o = (e) => e.done ? i(e.value) : Promise.resolve(e.value).then(m, a);
27
+ o((t = t.apply(l, n)).next());
28
28
  });
29
29
  import { Controller as z } from "../base/BasePluginWithData.js";
30
- import * as m from "three";
31
- import { ModelMakerBoxItem as B } from "./item/boxItem.js";
32
- import { PrismMesh as A } from "../Sculpt/Meshes/Prism.js";
33
- import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
34
- import { PolygonWithEdgeMesh as Q } from "../Sculpt/Meshes/PolygonWithEdge.js";
30
+ import * as c from "three";
31
+ import { ModelMakerBoxItem as O } from "./item/boxItem.js";
32
+ import { PrismMesh as T } from "../Sculpt/Meshes/Prism.js";
33
+ import { anyPositionToVector3 as Q } from "../shared-utils/positionToVector3.js";
34
+ import { PolygonWithEdgeMesh as q } from "../Sculpt/Meshes/PolygonWithEdge.js";
35
35
  import "../shared-utils/tag.js";
36
36
  import "hammerjs";
37
37
  import "../shared-utils/three/PointSelector/index.js";
38
38
  import "three/examples/jsm/renderers/CSS3DRenderer";
39
39
  import "@realsee/five/line";
40
40
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
41
- import { boxVertex as g } from "../shared-utils/three/boundingBox.js";
41
+ import { boxVertex as v } from "../shared-utils/three/boundingBox.js";
42
42
  import "animejs";
43
43
  import { notNil as I } from "../shared-utils/isNil.js";
44
- import { waitFiveModelLoaded as q } from "../shared-utils/five/fiveModelLoad.js";
44
+ import { waitFiveModelLoaded as G } from "../shared-utils/five/fiveModelLoad.js";
45
45
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
- import { tagRendererMap as G } from "./utils/tagRenderer.js";
47
- import { ModelMakerPrismItem as U } from "./item/prismItem.js";
48
- import { ModelMakerPolygonItem as Y } from "./item/polygonItem.js";
49
- import { getFiveDomEvent as $ } from "./utils/getFiveDomEvent.js";
46
+ import "../Sculpt/Meshes/Polygon.js";
47
+ import "../Sculpt/utils/Modules/Global.js";
48
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
49
+ import "../Sculpt/utils/three/rayOnLine.js";
50
+ import { tagRendererMap as N } from "./utils/tagRenderer.js";
51
+ import { ModelMakerPrismItem as D } from "./item/prismItem.js";
52
+ import { ModelMakerPolygonItem as U } from "./item/polygonItem.js";
53
+ import { getFiveDomEvent as Y } from "./utils/getFiveDomEvent.js";
54
+ import { fiveEveryReadyListener as $ } from "../shared-utils/five/fiveEveryReadyListener.js";
55
+ import { sleep as K } from "../CruisePlugin/utils/sleep.js";
50
56
  import "../base/BasePlugin.js";
51
57
  import "../shared-utils/Subscribe.js";
52
58
  import "../shared-utils/three/core/Sphere.js";
@@ -66,14 +72,6 @@ import "../Sculpt/utils/Meshes/getLengthHTML.js";
66
72
  import "../shared-utils/three/applyObjectMatrixWorld.js";
67
73
  import "../shared-utils/util.js";
68
74
  import "../shared-utils/three/core/Raycaster.js";
69
- import "../Sculpt/Meshes/Polygon.js";
70
- import "../shared-utils/three/generatePolygonGeometry.js";
71
- import "../shared-utils/three/earcut3D.js";
72
- import "earcut";
73
- import "../shared-utils/three/getNormal.js";
74
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
75
- import "../Sculpt/utils/three/ColoredMesh.js";
76
- import "../shared-utils/three/geometryUtil.js";
77
75
  import "../Sculpt/Meshes/Polyline.js";
78
76
  import "../Sculpt/Meshes/LineWithDots.js";
79
77
  import "../Sculpt/Meshes/Point.js";
@@ -89,6 +87,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
89
87
  import "../CSS3DRenderPlugin/utils/even.js";
90
88
  import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
91
89
  import "../shared-utils/three/getObjectVisible.js";
90
+ import "../shared-utils/throttle.js";
92
91
  import "../shared-utils/three/PointSelector/utils/html.js";
93
92
  import "../shared-utils/five/initialCSS3DRender.js";
94
93
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
@@ -102,145 +101,207 @@ import "../shared-utils/five/getRaycasterByNdcPosition.js";
102
101
  import "../shared-utils/three/PointSelector/utils/contents.js";
103
102
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
104
103
  import "../vendor/three/build/three.module.js";
104
+ import "../shared-utils/three/generatePolygonGeometry.js";
105
+ import "../shared-utils/three/earcut3D.js";
106
+ import "earcut";
107
+ import "../shared-utils/three/getNormal.js";
108
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
109
+ import "../Sculpt/utils/three/ColoredMesh.js";
110
+ import "../shared-utils/three/geometryUtil.js";
111
+ import "../Sculpt/utils/Modules/Cursor.js";
112
+ import "../Object3DHelperPlugin/Controller.js";
113
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
114
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
115
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
116
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
117
+ import "../shared-utils/Object3DHelper/utils/direction.js";
118
+ import "../shared-utils/Object3DHelper/Constants/color.js";
119
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
120
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
121
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
122
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
123
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
124
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
125
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
126
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
127
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
128
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
129
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
130
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
131
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
132
+ import "../shared-utils/threex/domevents/index.js";
133
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
134
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
135
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
136
+ import "../shared-utils/Object3DHelper/index.js";
137
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
138
+ import "../shared-utils/math/rad2Deg.js";
139
+ import "../shared-utils/math/deg2Rad.js";
140
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
141
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
142
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
143
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
144
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
145
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
146
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
147
+ import "../shared-utils/five/FiveDomEvents.js";
148
+ import "../shared-utils/five/calculateThreeMouse.js";
105
149
  import "./utils/Text.js";
106
150
  import "../vendor/svelte/internal/index.js";
107
151
  import "../components/AreaLabel/LabelItem.js";
108
152
  import "../components/AreaLabel/Assets/roomLabelBg.js";
109
153
  import "./item/baseItem.js";
110
154
  import "../shared-utils/three/addIfNotExists.js";
111
- import "../shared-utils/five/FiveDomEvents.js";
112
- import "../shared-utils/five/calculateThreeMouse.js";
113
- class xt extends z {
114
- constructor(e, t) {
115
- var r, l;
116
- super(e);
117
- n(this, "state");
118
- n(this, "items", []);
119
- n(this, "group", new m.Group());
120
- n(this, "data");
121
- n(this, "tagRendererMap", {});
122
- n(this, "fiveDomEvents");
123
- n(this, "zFightingOffset", 0);
124
- n(this, "tagWrapper");
125
- n(this, "occlusionVisibility");
126
- n(this, "occlusionMode");
127
- n(this, "onFiveModeChange", (e) => {
128
- const t = this.occlusionVisibility;
129
- Array.isArray(t) && this.items.forEach((r) => {
130
- r.model.setStyle instanceof Function && r.model.setStyle({ occlusionVisibility: t.includes(e) });
155
+ class fi extends z {
156
+ constructor(t, i) {
157
+ var r, m;
158
+ super(t);
159
+ p(this, "state");
160
+ p(this, "items", []);
161
+ p(this, "group", new c.Group());
162
+ p(this, "data");
163
+ p(this, "tagRendererMap", {});
164
+ p(this, "fiveDomEvents");
165
+ p(this, "zFightingOffset", 0);
166
+ p(this, "tagWrapper");
167
+ p(this, "occlusionVisibility");
168
+ p(this, "occlusionMode");
169
+ p(this, "fiveEveryReadyListenerDisposer");
170
+ p(this, "onFiveModeChange", (t) => {
171
+ const i = this.occlusionVisibility;
172
+ Array.isArray(i) && this.items.forEach((r) => {
173
+ r.model.setStyle instanceof Function && r.model.setStyle({ occlusionVisibility: i.includes(t) });
131
174
  });
132
175
  });
133
- n(this, "handleEnable", () => {
134
- var e, t;
135
- 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);
176
+ p(this, "handleEnable", () => {
177
+ var t, i;
178
+ this.five.scene.add(this.group), (i = (t = this.five.getElement()) == null ? void 0 : t.parentElement) == null || i.appendChild(this.tagWrapper), this.five.needsRender = !0, this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveEveryReady(), this.five.on("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer = $(this.five, this.onFiveEveryReady);
136
179
  });
137
- n(this, "handleDisable", () => {
138
- this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange);
180
+ p(this, "handleDisable", () => {
181
+ this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
139
182
  });
140
- n(this, "updateTagRenderer", () => {
141
- this.items.forEach((e) => {
183
+ p(this, "onFiveEveryReady", () => _(this, null, function* () {
184
+ if (this.five.state.mode === "Panorama")
185
+ return;
186
+ const t = this.items.filter((e) => e instanceof D).map((e) => e.tag), i = t.filter((e) => e.position && e.visible && e.enabled);
187
+ yield K(0);
188
+ const r = this.five.camera.position.clone(), m = i.sort((e, h) => r.distanceTo(e.position) - r.distanceTo(h.position)), a = [], o = (e, h) => !(e.right < h.left || e.left > h.right || e.bottom < h.top || e.top > h.bottom);
189
+ t.forEach((e) => {
190
+ e.visibles[2] = void 0;
191
+ }), m.forEach((e) => {
192
+ if (e.visibles[1] === !1)
193
+ return;
194
+ const h = e.container.getElementsByClassName("room-label-item__text")[0];
195
+ if (!h)
196
+ return;
197
+ const u = h.getBoundingClientRect();
198
+ a.every((d) => !o(d.boundingClientRect, u)) ? (a.push({ tag: e, boundingClientRect: u }), e.visibles[2] = !0) : e.visibles[2] = !1, e.needsRender = !0;
199
+ });
200
+ }));
201
+ p(this, "updateTagRenderer", () => {
202
+ this.items.forEach((t) => {
142
203
  var r;
143
- const t = (r = this.tagRendererMap[e.type]) != null ? r : G[e.type];
144
- t && e.__renderer !== t && (e.__renderer = t, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = t(e.tag.container, e));
204
+ const i = (r = this.tagRendererMap[t.type]) != null ? r : N[t.type];
205
+ i && t.__renderer !== i && (t.__renderer = i, typeof t.__disposeRenderer == "function" && t.__disposeRenderer(), t.tag.container.innerHTML = "", t.__disposeRenderer = i(t.tag.container, t));
145
206
  });
146
207
  });
147
- this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = t == null ? void 0 : t.occlusionVisibility) != null ? r : !1, this.occlusionMode = (l = t == null ? void 0 : t.occlusionMode) != null ? l : "translucence", this.fiveDomEvents = $(e), this.tagWrapper = (() => {
148
- var i;
208
+ this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = i == null ? void 0 : i.occlusionVisibility) != null ? r : !1, this.occlusionMode = (m = i == null ? void 0 : i.occlusionMode) != null ? m : "translucence", this.fiveDomEvents = Y(t), this.tagWrapper = (() => {
209
+ var o;
149
210
  const a = document.createElement("div");
150
- 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;
151
- })(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
211
+ 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 = `${(o = i == null ? void 0 : i.tagContainerZIndex) != null ? o : ""}`, a;
212
+ })(), t.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
152
213
  }
153
- load(e) {
154
- return F(this, null, function* () {
214
+ load(t) {
215
+ return _(this, null, function* () {
155
216
  var a;
156
- if (this.clear(), this.data = e, yield q(this.five), this.data !== e)
217
+ if (this.clear(), this.data = t, yield G(this.five), this.data !== t)
157
218
  return;
158
219
  this.clear();
159
- const t = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, r = this.occlusionMode, l = 1.6;
160
- (a = e == null ? void 0 : e.list) == null || a.forEach((i) => {
161
- var h, c, _;
162
- if (i.type === "triangles") {
163
- const s = new Q();
164
- s.setPoints(i.object_data.points), s.setStyle({
165
- color: i.object_data.color,
166
- opacity: ((h = i.object_data.opacity) != null ? h : 0.4) / 2,
167
- lineColor: i.object_data.color,
168
- lineWidth: l,
169
- occlusionVisibility: t,
220
+ const i = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, r = this.occlusionMode, m = 1.6;
221
+ (a = t == null ? void 0 : t.list) == null || a.forEach((o) => {
222
+ var e, h, u;
223
+ if (o.type === "triangles") {
224
+ const s = new q();
225
+ s.setPoints(o.object_data.points), s.setStyle({
226
+ color: o.object_data.color,
227
+ opacity: ((e = o.object_data.opacity) != null ? e : 0.4) / 2,
228
+ lineColor: o.object_data.color,
229
+ lineWidth: m,
230
+ occlusionVisibility: i,
170
231
  occlusionMode: r
171
232
  }), this.fiveDomEvents.addEventListener(s, "hover", () => s.highlight()), this.fiveDomEvents.addEventListener(s, "unHover", () => s.unhighlight());
172
- const d = new Y({
233
+ const d = new U({
173
234
  five: this.five,
174
235
  tagWrapper: this.tagWrapper,
175
236
  model: s,
176
237
  group: this.group,
177
- type: i.type,
178
- rawData: i
238
+ type: o.type,
239
+ rawData: o
179
240
  });
180
241
  this.items.push(d);
181
- } else if (i.type === "prism") {
182
- const s = new A();
242
+ } else if (o.type === "prism") {
243
+ const s = new T();
183
244
  this.zFightingOffset += 1e-4;
184
- const d = i.object_data.points.map((u) => {
185
- var y;
186
- return [u[0], u[1] + ((y = i.object_data.fixedY) != null ? y : 0), u[2]];
245
+ const d = o.object_data.points.map((f) => {
246
+ var g;
247
+ return [f[0], f[1] + ((g = o.object_data.fixedY) != null ? g : 0), f[2]];
187
248
  });
188
249
  d.push(d[0]);
189
- 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));
190
- s.setPoints({ points: d, heightPoint: M }), s.setStyle({
191
- color: i.object_data.color,
192
- opacity: ((_ = i.object_data.opacity) != null ? _ : 0.4) / 2,
193
- lineColor: i.object_data.color,
194
- lineWidth: l,
195
- occlusionVisibility: t,
250
+ const E = o.object_data.height + ((h = o.object_data.fixedHeight) != null ? h : 0) + this.zFightingOffset, R = Q(d[0]).add(new c.Vector3().setY(E));
251
+ s.setPoints({ points: d, heightPoint: R }), s.setStyle({
252
+ color: o.object_data.color,
253
+ opacity: ((u = o.object_data.opacity) != null ? u : 0.4) / 2,
254
+ lineColor: o.object_data.color,
255
+ lineWidth: m,
256
+ occlusionVisibility: i,
196
257
  occlusionMode: r
197
258
  });
198
- const f = new U({
259
+ const y = new D({
199
260
  five: this.five,
200
261
  tagWrapper: this.tagWrapper,
201
262
  model: s,
202
263
  group: this.group,
203
- type: i.type,
204
- rawData: i
264
+ type: o.type,
265
+ rawData: o
205
266
  });
206
- this.items.push(f);
207
- } else if (i.type === "box") {
208
- const s = 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));
267
+ this.items.push(y);
268
+ } else if (o.type === "box") {
269
+ const s = new T(), { start: d, end: E, rotation: R = [0, 0, 0, 0], opacity: y, color: f } = o.object_data, g = new c.Vector3().fromArray(d), C = new c.Vector3().fromArray(E), L = new c.Euler().fromArray(R), x = new c.Quaternion().setFromEuler(L), V = x.clone().inverse(), W = new c.Vector3().lerpVectors(g, C, 0.5), j = W.clone().negate(), k = g.clone().add(j).applyQuaternion(V), F = C.clone().add(j).applyQuaternion(V), b = new c.Box3(k.clone().max(F), k.clone().min(F));
209
270
  s.setPoints({
210
- points: [g(b, 2), g(b, 3), g(b, 7), g(b, 6), g(b, 2)],
211
- heightPoint: g(b, 0)
212
- }), s.position.copy(V), s.quaternion.copy(x), s.setStyle({
213
- color: u,
214
- opacity: (f != null ? f : 0.4) / 2,
215
- lineColor: u,
216
- lineWidth: l,
217
- occlusionVisibility: t,
271
+ points: [v(b, 2), v(b, 3), v(b, 7), v(b, 6), v(b, 2)],
272
+ heightPoint: v(b, 0)
273
+ }), s.position.copy(W), s.quaternion.copy(x), s.setStyle({
274
+ color: f,
275
+ opacity: (y != null ? y : 0.4) / 2,
276
+ lineColor: f,
277
+ lineWidth: m,
278
+ occlusionVisibility: i,
218
279
  occlusionMode: r
219
280
  });
220
- const D = new B({
281
+ const A = new O({
221
282
  five: this.five,
222
283
  tagWrapper: this.tagWrapper,
223
284
  model: s,
224
285
  group: this.group,
225
- type: i.type,
226
- rawData: i
286
+ type: o.type,
287
+ rawData: o
227
288
  });
228
- this.items.push(D);
289
+ this.items.push(A);
229
290
  }
230
- }), 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);
291
+ }), 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);
231
292
  });
232
293
  }
233
- setState(e) {
234
- 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: "我不知道捏" }));
294
+ setState(t) {
295
+ 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: "我不知道捏" }));
235
296
  }
236
- getItemById(e) {
237
- return this.items.find((t) => t.rawData.id === e);
297
+ getItemById(t) {
298
+ return this.items.find((i) => i.rawData.id === t);
238
299
  }
239
- registerTagRenderer(e) {
240
- this.tagRendererMap = E(E({}, this.tagRendererMap), e), this.updateTagRenderer();
300
+ registerTagRenderer(t) {
301
+ this.tagRendererMap = w(w({}, this.tagRendererMap), t), this.updateTagRenderer();
241
302
  }
242
- hasCustomTagRenderer(e) {
243
- return !!this.tagRendererMap[e];
303
+ hasCustomTagRenderer(t) {
304
+ return !!this.tagRendererMap[t];
244
305
  }
245
306
  enable() {
246
307
  this.setState({ enabled: !0 });
@@ -271,5 +332,5 @@ class xt extends z {
271
332
  }
272
333
  }
273
334
  export {
274
- xt as Controller
335
+ fi as Controller
275
336
  };
@@ -12,7 +12,10 @@ import "../shared-utils/Utils/BaseUtil.js";
12
12
  import "../shared-utils/Utils/WorkUtil.js";
13
13
  import "../shared-utils/five/transformPosition.js";
14
14
  import "../shared-utils/three/temp.js";
15
+ import "../shared-utils/three/core/Raycaster.js";
15
16
  import "../shared-utils/dom/resizeObserver.js";
17
+ import "../shared-utils/five/fiveEveryReadyListener.js";
18
+ import "../shared-utils/throttle.js";
16
19
  import "hammerjs";
17
20
  import "../shared-utils/three/PointSelector/index.js";
18
21
  import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -33,57 +36,96 @@ import "../shared-utils/three/core/Sphere.js";
33
36
  import "animejs";
34
37
  import "../shared-utils/isNil.js";
35
38
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
- import "../shared-utils/three/PointSelector/utils/html.js";
37
- import "../shared-utils/five/initialCSS3DRender.js";
39
+ import "../Sculpt/Meshes/Polygon.js";
40
+ import "../shared-utils/three/generatePolygonGeometry.js";
41
+ import "../shared-utils/three/earcut3D.js";
42
+ import "earcut";
43
+ import "../shared-utils/three/getNormal.js";
44
+ import "../PanoMeasurePlugin/utils/isIntersecting.js";
45
+ import "../Sculpt/typings/style.js";
46
+ import "../Sculpt/utils/three/ColoredMesh.js";
47
+ import "../shared-utils/three/IObject3D.js";
48
+ import "../Sculpt/utils/Modules/Global.js";
49
+ import "../Sculpt/utils/Modules/Cursor.js";
50
+ import "../Object3DHelperPlugin/Controller.js";
51
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
52
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
53
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
54
+ import "../shared-utils/three/boundingBox.js";
55
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
56
+ import "../shared-utils/Object3DHelper/utils/direction.js";
57
+ import "../shared-utils/Object3DHelper/Constants/color.js";
58
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
59
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
60
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
61
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
62
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
63
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
64
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
65
+ import "../shared-utils/util.js";
66
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
67
+ import "../shared-utils/three/PointSelector/utils/html.js";
68
+ import "../shared-utils/five/initialCSS3DRender.js";
41
69
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
42
70
  import "../Sculpt/Meshes/Line.js";
43
- import "../Sculpt/typings/style.js";
44
71
  import "../shared-utils/five/FiveLine.js";
45
- import "../shared-utils/three/IObject3D.js";
46
72
  import "../Sculpt/utils/removeAllTag.js";
47
73
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
48
74
  import "../shared-utils/three/applyObjectMatrixWorld.js";
49
- import "../shared-utils/util.js";
75
+ import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
76
+ import "../Sculpt/utils/three/rayOnLine.js";
50
77
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
78
+ import "../shared-utils/url/absoluteUrl.js";
79
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
80
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
81
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
82
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
83
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
84
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
85
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
86
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
87
+ import "../shared-utils/threex/domevents/index.js";
88
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
89
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
90
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
91
+ import "../shared-utils/Object3DHelper/index.js";
92
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
93
+ import "../shared-utils/math/rad2Deg.js";
94
+ import "../shared-utils/math/deg2Rad.js";
95
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
96
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
97
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
98
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
99
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
100
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
101
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
102
+ import "../shared-utils/five/fiveModelLoad.js";
103
+ import "../shared-utils/five/FiveDomEvents.js";
104
+ import "../shared-utils/five/calculateThreeMouse.js";
51
105
  import "../shared-utils/isTouchDevice.js";
106
+ import "../shared-utils/three/geometryUtil.js";
52
107
  import "../shared-utils/five/getPosition.js";
53
108
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
54
109
  import "../shared-utils/three/PointSelector/utils/contents.js";
55
- import "../shared-utils/url/absoluteUrl.js";
56
110
  import "./item/boxItem.js";
57
111
  import "./item/polygonItem.js";
58
112
  import "./item/baseItem.js";
59
113
  import "../shared-utils/three/addIfNotExists.js";
60
- import "../shared-utils/three/boundingBox.js";
61
114
  import "./utils/getFiveDomEvent.js";
62
- import "../shared-utils/five/FiveDomEvents.js";
63
- import "../shared-utils/five/calculateThreeMouse.js";
64
- import "../shared-utils/three/core/Raycaster.js";
65
115
  import "../Sculpt/Meshes/Prism.js";
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 "../shared-utils/three/geometryUtil.js";
74
116
  import "../Sculpt/Meshes/PolygonWithEdge.js";
75
117
  import "../Sculpt/Meshes/Polyline.js";
76
118
  import "../Sculpt/Meshes/LineWithDots.js";
77
119
  import "../Sculpt/Meshes/Point.js";
78
120
  import "../shared-utils/three/closeVectors.js";
79
- import "../shared-utils/five/fiveModelLoad.js";
80
121
  import "./utils/tagRenderer.js";
81
122
  import "./utils/Text.js";
82
123
  import "../vendor/svelte/internal/index.js";
83
124
  import "../components/AreaLabel/LabelItem.js";
84
125
  import "../components/AreaLabel/Assets/roomLabelBg.js";
85
126
  import "./item/prismItem.js";
86
- const Go = (...o) => new r(...o);
127
+ import "../CruisePlugin/utils/sleep.js";
128
+ const br = (...o) => new r(...o);
87
129
  export {
88
- Go as ModelMakerPlugin
130
+ br as ModelMakerPlugin
89
131
  };
@@ -15,12 +15,14 @@ import "../../shared-utils/Utils/BaseUtil.js";
15
15
  import "../../shared-utils/Utils/WorkUtil.js";
16
16
  import "../../shared-utils/five/transformPosition.js";
17
17
  import "../../shared-utils/three/temp.js";
18
+ import "../../shared-utils/three/core/Raycaster.js";
18
19
  import "../../shared-utils/dom/resizeObserver.js";
20
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
21
+ import "../../shared-utils/throttle.js";
19
22
  import "../../shared-utils/three/core/Sphere.js";
20
23
  import "../../shared-utils/five/FiveDomEvents.js";
21
24
  import "../../shared-utils/three/getObjectVisible.js";
22
25
  import "../../shared-utils/five/calculateThreeMouse.js";
23
- import "../../shared-utils/three/core/Raycaster.js";
24
26
  import "../../shared-utils/isTouchDevice.js";
25
27
  class S extends p {
26
28
  constructor(t) {
@@ -35,7 +37,7 @@ class S extends p {
35
37
  i(this, "fiveDomEvents");
36
38
  this.five = t.five, this.model = t.model, this.group = t.group, this.type = t.type, this.rawData = t.rawData, this.fiveDomEvents = c(this.five);
37
39
  const h = (r = (s = t.position) != null ? s : this.model.center) != null ? r : v(this.model).getCenter(new d.Vector3());
38
- this.tag = a(this.five, h, { wrapper: t.tagWrapper });
40
+ this.tag = a(this.five, h, { wrapper: t.tagWrapper }), this.tag.extraObjectsForIntersectCheck.push(this.group);
39
41
  }
40
42
  get container() {
41
43
  return this.tag.container;
@@ -12,20 +12,22 @@ import "../../shared-utils/Utils/BaseUtil.js";
12
12
  import "../../shared-utils/Utils/WorkUtil.js";
13
13
  import "../../shared-utils/five/transformPosition.js";
14
14
  import "../../shared-utils/three/temp.js";
15
+ import "../../shared-utils/three/core/Raycaster.js";
15
16
  import "../../shared-utils/dom/resizeObserver.js";
17
+ import "../../shared-utils/five/fiveEveryReadyListener.js";
18
+ import "../../shared-utils/throttle.js";
16
19
  import "../../shared-utils/three/boundingBox.js";
17
20
  import "../../shared-utils/three/core/Sphere.js";
18
21
  import "../utils/getFiveDomEvent.js";
19
22
  import "../../shared-utils/five/FiveDomEvents.js";
20
23
  import "../../shared-utils/three/getObjectVisible.js";
21
24
  import "../../shared-utils/five/calculateThreeMouse.js";
22
- import "../../shared-utils/three/core/Raycaster.js";
23
25
  import "../../shared-utils/isTouchDevice.js";
24
- class q extends r {
26
+ class w extends r {
25
27
  constructor(...o) {
26
28
  super(...o);
27
29
  }
28
30
  }
29
31
  export {
30
- q as ModelMakerBoxItem
32
+ w as ModelMakerBoxItem
31
33
  };