@realsee/dnalogel 3.47.13 → 3.47.15

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