@realsee/dnalogel 3.48.0 → 3.48.2

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 (40) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +16 -0
  3. package/dist/Sculpt/Objects/Line/index.d.ts +12 -1
  4. package/dist/Sculpt/Objects/Polygon/index.d.ts +12 -1
  5. package/dist/Sculpt/Objects/Polyline/index.d.ts +12 -1
  6. package/dist/Sculpt/index.d.ts +10 -3
  7. package/dist/index.cjs.js +57 -57
  8. package/dist/index.js +5011 -4885
  9. package/dist/index.umd.js +50 -50
  10. package/dist/shared-utils/promise/withResolvers.d.ts +10 -0
  11. package/dist/shared-utils/three/Magnifier.d.ts +1 -1
  12. package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +4 -1
  13. package/libs/Sculpt/Meshes/Line.js +15 -15
  14. package/libs/Sculpt/Meshes/Polygon.js +20 -20
  15. package/libs/Sculpt/Objects/Base/index.d.ts +16 -0
  16. package/libs/Sculpt/Objects/Base/index.js +58 -32
  17. package/libs/Sculpt/Objects/Box/index.js +31 -34
  18. package/libs/Sculpt/Objects/Circle/index.js +36 -39
  19. package/libs/Sculpt/Objects/Line/index.d.ts +12 -1
  20. package/libs/Sculpt/Objects/Line/index.js +104 -75
  21. package/libs/Sculpt/Objects/Point/index.js +13 -16
  22. package/libs/Sculpt/Objects/Polygon/index.d.ts +12 -1
  23. package/libs/Sculpt/Objects/Polygon/index.js +112 -84
  24. package/libs/Sculpt/Objects/Polyline/index.d.ts +12 -1
  25. package/libs/Sculpt/Objects/Polyline/index.js +97 -68
  26. package/libs/Sculpt/Objects/Prism/index.js +20 -23
  27. package/libs/Sculpt/Objects/Rectangle/index.js +36 -39
  28. package/libs/Sculpt/index.d.ts +10 -3
  29. package/libs/Sculpt/index.js +80 -65
  30. package/libs/base/BasePlugin.js +1 -1
  31. package/libs/index.js +127 -126
  32. package/libs/shared-utils/logger.js +1 -1
  33. package/libs/shared-utils/promise/withResolvers.d.ts +10 -0
  34. package/libs/shared-utils/promise/withResolvers.js +13 -0
  35. package/libs/shared-utils/tag.js +9 -9
  36. package/libs/shared-utils/three/Magnifier.d.ts +1 -1
  37. package/libs/shared-utils/three/Magnifier.js +12 -12
  38. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +4 -1
  39. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +9 -9
  40. package/package.json +1 -1
@@ -1,35 +1,35 @@
1
- var _ = Object.defineProperty, x = Object.defineProperties;
2
- var E = Object.getOwnPropertyDescriptors;
3
- var f = Object.getOwnPropertySymbols;
4
- var L = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
- var d = (m, i, e) => i in m ? _(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e, r = (m, i) => {
1
+ var U = Object.defineProperty, _ = Object.defineProperties;
2
+ var x = Object.getOwnPropertyDescriptors;
3
+ var g = Object.getOwnPropertySymbols;
4
+ var E = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
+ var f = (m, i, e) => i in m ? U(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e, r = (m, i) => {
6
6
  for (var e in i || (i = {}))
7
- L.call(i, e) && d(m, e, i[e]);
8
- if (f)
9
- for (var e of f(i))
10
- O.call(i, e) && d(m, e, i[e]);
7
+ E.call(i, e) && f(m, e, i[e]);
8
+ if (g)
9
+ for (var e of g(i))
10
+ L.call(i, e) && f(m, e, i[e]);
11
11
  return m;
12
- }, w = (m, i) => x(m, E(i));
13
- var a = (m, i, e) => (d(m, typeof i != "symbol" ? i + "" : i, e), e);
14
- var c = (m, i, e) => new Promise((t, o) => {
12
+ }, I = (m, i) => _(m, x(i));
13
+ var h = (m, i, e) => (f(m, typeof i != "symbol" ? i + "" : i, e), e);
14
+ var c = (m, i, e) => new Promise((t, n) => {
15
15
  var l = (u) => {
16
16
  try {
17
- n(e.next(u));
17
+ o(e.next(u));
18
18
  } catch (y) {
19
- o(y);
19
+ n(y);
20
20
  }
21
21
  }, s = (u) => {
22
22
  try {
23
- n(e.throw(u));
23
+ o(e.throw(u));
24
24
  } catch (y) {
25
- o(y);
25
+ n(y);
26
26
  }
27
- }, n = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(l, s);
28
- n((e = e.apply(m, i)).next());
27
+ }, o = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(l, s);
28
+ o((e = e.apply(m, i)).next());
29
29
  });
30
- import { globalModules as R } from "./utils/Modules/Global.js";
30
+ import { globalModules as O } from "./utils/Modules/Global.js";
31
31
  import { Subscribe as S } from "../shared-utils/Subscribe.js";
32
- import { IObject3D as U } from "../shared-utils/three/IObject3D.js";
32
+ import { IObject3D as z } from "../shared-utils/three/IObject3D.js";
33
33
  import "three";
34
34
  import "hammerjs";
35
35
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -37,30 +37,46 @@ import "@realsee/five/line";
37
37
  import "../shared-utils/tag.js";
38
38
  import "../shared-utils/three/THREESphere.js";
39
39
  import "animejs";
40
- import { notNil as H } from "../shared-utils/isNil.js";
40
+ import { notNil as k } from "../shared-utils/isNil.js";
41
41
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
42
- import { recurveFindObject as M } from "../shared-utils/three/recurveFindObject.js";
43
- import { Polyline as g } from "./Objects/Polyline/index.js";
42
+ import { recurveFindObject as H } from "../shared-utils/three/recurveFindObject.js";
43
+ import { Polyline as w } from "./Objects/Polyline/index.js";
44
44
  import { Point as P } from "./Objects/Point/index.js";
45
- import { Polygon as I } from "./Objects/Polygon/index.js";
46
- import { Prism as b } from "./Objects/Prism/index.js";
47
- import { Rectangle as v } from "./Objects/Rectangle/index.js";
48
- import { Circle as C } from "./Objects/Circle/index.js";
45
+ import { Polygon as b } from "./Objects/Polygon/index.js";
46
+ import { Prism as v } from "./Objects/Prism/index.js";
47
+ import { Rectangle as C } from "./Objects/Rectangle/index.js";
48
+ import { Circle as R } from "./Objects/Circle/index.js";
49
49
  import { Cylinder as D } from "./Objects/Cylinder/index.js";
50
50
  import { Box as j } from "./Objects/Box/index.js";
51
- import { forReverseEach as k } from "../shared-utils/forReverseEach.js";
51
+ import { forReverseEach as M } from "../shared-utils/forReverseEach.js";
52
52
  import { Line as B } from "./Objects/Line/index.js";
53
- const p = class extends S {
53
+ import { hotkeys as p } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
54
+ const a = class extends S {
54
55
  constructor(e, t) {
55
56
  super();
56
- a(this, "group");
57
- a(this, "five");
58
- a(this, "theme");
59
- this.five = e, this.theme = t, this.group = new U(), this.group.name = "Sculpt", e.scene.add(this.group), p.modules.init(e), p.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: o }) => {
57
+ h(this, "group");
58
+ h(this, "five");
59
+ h(this, "theme");
60
+ h(this, "creatingItem", null);
61
+ /**
62
+ * @description: 撤销
63
+ */
64
+ h(this, "undo", () => {
65
+ var e;
66
+ console.log("undo"), (e = this.creatingItem) == null || e.undo(), this.five.needsRender = !0;
67
+ });
68
+ /**
69
+ * @description: 重做
70
+ */
71
+ h(this, "redo", () => {
72
+ var e;
73
+ console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
74
+ });
75
+ this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), a.modules.init(e), p.unbind("ctrl+z", this.undo), p.unbind("ctrl+shift+z", this.redo), p("ctrl+z", this.undo), p("ctrl+shift+z", this.redo), a.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: n }) => {
60
76
  var s;
61
- const l = M((s = o == null ? void 0 : o[0]) == null ? void 0 : s.object, (n) => n.isSculptObject);
77
+ const l = H((s = n == null ? void 0 : n[0]) == null ? void 0 : s.object, (o) => o.isSculptObject);
62
78
  return l ? this.emit("click", l) : !1;
63
- }), window.__SCLUPT_DEBUG__ = this, window.__SCLUPT_MODULES_DEBUG__ = p.modules;
79
+ }), window.__SCLUPT_DEBUG__ = this, window.__SCLUPT_MODULES_DEBUG__ = a.modules;
64
80
  }
65
81
  get data() {
66
82
  return {
@@ -70,7 +86,7 @@ const p = class extends S {
70
86
  } catch (t) {
71
87
  return console.error(t), null;
72
88
  }
73
- }).filter(H)
89
+ }).filter(k)
74
90
  };
75
91
  }
76
92
  get items() {
@@ -82,14 +98,14 @@ const p = class extends S {
82
98
  load(e, t) {
83
99
  var l;
84
100
  this.clear();
85
- const o = (l = e == null ? void 0 : e.items) == null ? void 0 : l.map((s) => {
101
+ const n = (l = e == null ? void 0 : e.items) == null ? void 0 : l.map((s) => {
86
102
  var u;
87
- const n = w(r({}, s), {
103
+ const o = I(r({}, s), {
88
104
  style: r(r({}, (u = this.theme) == null ? void 0 : u[s.type.toLowerCase()]), s.style)
89
105
  });
90
- return s.type === "Point" ? new P(n, t) : s.type === "line" ? new B(n, t) : s.type === "Polyline" ? new g(n, t) : s.type === "Polygon" ? new I(n, t) : s.type === "Prism" ? new b(n, t) : s.type === "Rectangle" ? new v(n, t) : s.type === "Circle" ? new C(n, t) : s.type === "Cylinder" ? new D(n, t) : s.type === "Box" ? new j(n, t) : null;
106
+ return s.type === "Point" ? new P(o, t) : s.type === "line" ? new B(o, t) : s.type === "Polyline" ? new w(o, t) : s.type === "Polygon" ? new b(o, t) : s.type === "Prism" ? new v(o, t) : s.type === "Rectangle" ? new C(o, t) : s.type === "Circle" ? new R(o, t) : s.type === "Cylinder" ? new D(o, t) : s.type === "Box" ? new j(o, t) : null;
91
107
  });
92
- this.group.add(...o), this.five.needsRender = !0;
108
+ this.group.add(...n), this.five.needsRender = !0;
93
109
  }
94
110
  /**
95
111
  * @description: 获取物体实例
@@ -103,8 +119,8 @@ const p = class extends S {
103
119
  putObject(e) {
104
120
  var l;
105
121
  this.group.add(e);
106
- const t = p.modules.object3DHelper, o = t.addObject3DHelper(e);
107
- return (l = o == null ? void 0 : o.moveController) == null || l.moveByMouse(), t;
122
+ const t = a.modules.object3DHelper, n = t.addObject3DHelper(e);
123
+ return (l = n == null ? void 0 : n.moveController) == null || l.moveByMouse(), t;
108
124
  }
109
125
  /**
110
126
  * @description: 开始绘制点
@@ -130,7 +146,7 @@ const p = class extends S {
130
146
  createPolyline(e) {
131
147
  return c(this, null, function* () {
132
148
  var t;
133
- return this.createItem(g, r(r({}, (t = this.theme) == null ? void 0 : t.polyline), e));
149
+ return this.createItem(w, r(r({}, (t = this.theme) == null ? void 0 : t.polyline), e));
134
150
  });
135
151
  }
136
152
  /**
@@ -139,7 +155,7 @@ const p = class extends S {
139
155
  createPolygon(e) {
140
156
  return c(this, null, function* () {
141
157
  var t;
142
- return this.createItem(I, r(r({}, (t = this.theme) == null ? void 0 : t.polygon), e));
158
+ return this.createItem(b, r(r({}, (t = this.theme) == null ? void 0 : t.polygon), e));
143
159
  });
144
160
  }
145
161
  /**
@@ -148,7 +164,7 @@ const p = class extends S {
148
164
  createPrism(e) {
149
165
  return c(this, null, function* () {
150
166
  var t;
151
- return this.createItem(b, r(r({}, (t = this.theme) == null ? void 0 : t.prism), e));
167
+ return this.createItem(v, r(r({}, (t = this.theme) == null ? void 0 : t.prism), e));
152
168
  });
153
169
  }
154
170
  /**
@@ -157,7 +173,7 @@ const p = class extends S {
157
173
  createRectangle(e) {
158
174
  return c(this, null, function* () {
159
175
  var t;
160
- return this.createItem(v, r(r({}, (t = this.theme) == null ? void 0 : t.rectangle), e));
176
+ return this.createItem(C, r(r({}, (t = this.theme) == null ? void 0 : t.rectangle), e));
161
177
  });
162
178
  }
163
179
  /**
@@ -166,7 +182,7 @@ const p = class extends S {
166
182
  createCircle(e) {
167
183
  return c(this, null, function* () {
168
184
  var t;
169
- return this.createItem(C, r(r({}, (t = this.theme) == null ? void 0 : t.circle), e));
185
+ return this.createItem(R, r(r({}, (t = this.theme) == null ? void 0 : t.circle), e));
170
186
  });
171
187
  }
172
188
  /**
@@ -187,35 +203,34 @@ const p = class extends S {
187
203
  return this.createItem(j, r(r({}, (t = this.theme) == null ? void 0 : t.box), e));
188
204
  });
189
205
  }
190
- /**
191
- * @description: 撤销
192
- */
193
- undo() {
206
+ canUndo() {
207
+ var e;
208
+ return this.creatingItem ? (e = this.creatingItem) == null ? void 0 : e.canUndo() : !1;
194
209
  }
195
- /**
196
- * @description: 重做
197
- */
198
- redo() {
210
+ canRedo() {
211
+ var e;
212
+ return this.creatingItem ? (e = this.creatingItem) == null ? void 0 : e.canRedo() : !1;
199
213
  }
200
214
  /**
201
215
  * @description: 清空数据
202
216
  */
203
217
  clear() {
204
- k(this.items, (e) => e.delete()), this.five.needsRender = !0;
218
+ M(this.items, (e) => e.delete()), this.five.needsRender = !0;
205
219
  }
206
220
  createItem(e, ...t) {
207
221
  return c(this, null, function* () {
208
- const o = new e();
209
- return this.group.add(o), yield o.create(...t).catch((l) => {
210
- console.error(l), this.group.remove(o);
211
- }), o;
222
+ this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
223
+ const n = new e();
224
+ return this.creatingItem = n, this.group.add(n), yield n.create(...t).then((...l) => (this.creatingItem = null, l)).catch((l) => {
225
+ console.error(l), this.group.remove(n);
226
+ }), n;
212
227
  });
213
228
  }
214
229
  };
215
- let h = p;
216
- a(h, "modules", R);
217
- const le = (m) => new h(m);
230
+ let d = a;
231
+ h(d, "modules", O);
232
+ const ue = (m) => new d(m);
218
233
  export {
219
- h as Sculpt,
220
- le as SculptPlugin
234
+ d as Sculpt,
235
+ ue as SculptPlugin
221
236
  };
@@ -17,7 +17,7 @@ let x = class {
17
17
  /**
18
18
  * @realsee/dnalogel 版本号
19
19
  */
20
- i(this, "VERSION", "3.48.0");
20
+ i(this, "VERSION", "3.48.2");
21
21
  i(this, "NAME");
22
22
  i(this, "five");
23
23
  i(this, "workUtil");
package/libs/index.js CHANGED
@@ -1,62 +1,62 @@
1
1
  import { consoleVersion as o } from "./shared-utils/logger.js";
2
2
  import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
- import { PaintBrush as El } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as Rl } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as Ol } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Al } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as Gl } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as vl, modelRoomLabelPluginServerParams as Fl } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as cl } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as Nl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as kl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as Bl } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as Ul } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as $l, ROOM_FETILE_TYPE_MAP as Wl, ROOM_TYPE_MAP as ql } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as Jl } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as Ql } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as Zl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as rn, Rotation as tn } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as pn } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as ln } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as an } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as un } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as xn } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as sn } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as Mn } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as Ln } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as _n } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as In } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as Sn } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as yn, MovePlugin as An } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as Gn } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as vn } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as Yn } from "./PanoVideoPlugin/index.js";
34
- import { PipelinePlugin as Vn } from "./PipelinePlugin/index.js";
35
- import { AreaMakerPlugin as hn } from "./AreaMakerPlugin/index.js";
36
- import { CurrentPanoImagePlugin as wn } from "./CurrentPanoImagePlugin/index.js";
37
- import { Sculpt as Hn, SculptPlugin as Un } from "./Sculpt/index.js";
38
- import { ModelMakerPlugin as $n } from "./ModelMakerPlugin/index.js";
39
- import { index as qn } from "./shared-utils/index.js";
40
- import { CSS3DRender as Jn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
- import { Model as Qn } from "./PanoMeasurePlugin/Model/index.js";
42
- import { default as Zn } from "./PanoMeasurePlugin/Model/point.js";
43
- import { default as ra } from "./PanoMeasurePlugin/Model/line.js";
44
- import { Polyline as ia } from "./PanoMeasurePlugin/Model/polyline.js";
45
- import { Magnifier as pa } from "./shared-utils/three/Magnifier.js";
46
- import { DISPLAY_STRATEGY_TYPE as la } from "./ModelItemLabelPlugin/typings.js";
47
- import { ModelItemLabelPlugin as aa } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as ua } from "./ItemLabelPlugin/typings.js";
49
- import { Plugin as xa } from "./ItemLabelPlugin/Plugin.js";
50
- import { GuideLineItem$1 as sa } from "./GuideLinePlugin/GuideLineItem/index.js";
51
- import { GuideLineModeItem$1 as Ma } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
- import { default as La, default as Ca } from "./CruisePlugin/Work.js";
53
- import { default as Ea } from "./CruisePlugin/Move.js";
54
- import { typing as Ra } from "./CruisePlugin/typing/index.js";
55
- import { default as Oa, pluginFlag as ya } from "./PanoTagPlugin/controller/index.js";
56
- import { defaultGlobalConfig as Da } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
- import { ContentType as ba, DimensionType as va, PointType as Fa } from "./PanoTagPlugin/Archive/deprecated.js";
58
- import { Object3DHelperController as ca, PLUGIN as Va } from "./Object3DHelperPlugin/Controller.js";
59
- import { typings as ha } from "./PanoVideoPlugin/typings/index.js";
3
+ import { PaintBrush as Il } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as Sl } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as yl } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Dl } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as bl } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Fl, modelRoomLabelPluginServerParams as Yl } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as Vl } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as hl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as wl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Hl } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as jl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as Wl, ROOM_FETILE_TYPE_MAP as ql, ROOM_TYPE_MAP as zl } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as Kl } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as Xl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as on } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as tn, Rotation as mn } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as en } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as nn } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as Pn } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as fn } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as gn } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as dn } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as Tn } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as Cn } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as En } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as Rn } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as On } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as An, MovePlugin as Dn } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as bn } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as Fn } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as cn } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as Nn } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as kn } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as Bn } from "./CurrentPanoImagePlugin/index.js";
37
+ import { Sculpt as Un, SculptPlugin as jn } from "./Sculpt/index.js";
38
+ import { ModelMakerPlugin as Wn } from "./ModelMakerPlugin/index.js";
39
+ import { index as zn } from "./shared-utils/index.js";
40
+ import { CSS3DRender as Kn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
+ import { Model as Xn } from "./PanoMeasurePlugin/Model/index.js";
42
+ import { default as oa } from "./PanoMeasurePlugin/Model/point.js";
43
+ import { default as ta } from "./PanoMeasurePlugin/Model/line.js";
44
+ import { Polyline as ma } from "./PanoMeasurePlugin/Model/polyline.js";
45
+ import { Magnifier as ea } from "./shared-utils/three/Magnifier.js";
46
+ import { DISPLAY_STRATEGY_TYPE as na } from "./ModelItemLabelPlugin/typings.js";
47
+ import { ModelItemLabelPlugin as Pa } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as fa } from "./ItemLabelPlugin/typings.js";
49
+ import { Plugin as ga } from "./ItemLabelPlugin/Plugin.js";
50
+ import { GuideLineItem$1 as da } from "./GuideLinePlugin/GuideLineItem/index.js";
51
+ import { GuideLineModeItem$1 as Ta } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
+ import { default as Ca, default as _a } from "./CruisePlugin/Work.js";
53
+ import { default as Ia } from "./CruisePlugin/Move.js";
54
+ import { typing as Sa } from "./CruisePlugin/typing/index.js";
55
+ import { default as ya, pluginFlag as Aa } from "./PanoTagPlugin/controller/index.js";
56
+ import { defaultGlobalConfig as Ga } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
+ import { ContentType as va, DimensionType as Fa, PointType as Ya } from "./PanoTagPlugin/Archive/deprecated.js";
58
+ import { Object3DHelperController as Va, PLUGIN as Na } from "./Object3DHelperPlugin/Controller.js";
59
+ import { typings as ka } from "./PanoVideoPlugin/typings/index.js";
60
60
  import "./components/PaintBrush/Controller.js";
61
61
  import "./components/PaintBrush/utils.js";
62
62
  import "./components/PaintBrush/tween.js";
@@ -448,16 +448,17 @@ import "./Sculpt/utils/Modules/Global.js";
448
448
  import "./Sculpt/utils/Modules/Cursor.js";
449
449
  import "./shared-utils/three/recurveFindObject.js";
450
450
  import "./Sculpt/Objects/Polyline/index.js";
451
- import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
452
451
  import "./Sculpt/Meshes/Polyline.js";
453
452
  import "./Sculpt/Meshes/LineWithDots.js";
454
453
  import "./Sculpt/Meshes/Point.js";
455
454
  import "./shared-utils/three/closeVectors.js";
456
455
  import "./Sculpt/Objects/Base/index.js";
456
+ import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
457
457
  import "./Sculpt/Objects/Polyline/Editor.js";
458
458
  import "./Sculpt/Objects/Line/Editor.js";
459
459
  import "./Sculpt/Objects/Base/Editor.js";
460
460
  import "./shared-utils/three/vector3ToArray.js";
461
+ import "./shared-utils/promise/withResolvers.js";
461
462
  import "./Sculpt/Objects/Point/index.js";
462
463
  import "./Sculpt/Objects/Point/Editor.js";
463
464
  import "./Sculpt/Objects/Polygon/index.js";
@@ -507,72 +508,72 @@ import "./shared-utils/five/lookObject.js";
507
508
  r();
508
509
  o();
509
510
  export {
510
- hn as AreaMakerPlugin,
511
- Jn as CSS3DRender,
512
- Al as CSS3DRenderPlugin,
513
- rn as CameraMovementEffect,
514
- Zl as CameraMovementPlugin,
515
- ba as ContentType,
516
- yn as CruisePlugin,
517
- La as CruisePluginController,
518
- Ra as CruisePluginTypes,
519
- wn as CurrentPanoImagePlugin,
520
- Ln as DIRECTION,
521
- la as DISPLAY_STRATEGY_TYPE,
522
- va as DimensionType,
523
- cl as FLOOR_PLAN_ATTACHED_TO,
524
- $l as FLOOR_TYPE_MAP,
525
- sa as GuideLineItem,
526
- Ma as GuideLineModeItem,
527
- Sn as GuideLinePlugin,
528
- ua as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
529
- xa as ItemLabelPlugin,
530
- pa as Magnifier,
531
- kl as MapviewFloorplanPlugin,
532
- Jl as ModelChassisCompassPlugin,
533
- Ql as ModelEntryDoorGuidePlugin,
534
- Nl as ModelFloorplanPlugin,
535
- aa as ModelItemLabelPlugin,
536
- $n as ModelMakerPlugin,
537
- vl as ModelRoomLabelPlugin,
538
- Mn as ModelTVVideoPlugin,
539
- Ol as ModelViewPlugin,
540
- Ea as MoveController,
541
- An as MovePlugin,
542
- ca as Object3DHelperController,
543
- vn as Object3DHelperPlugin,
544
- Va as PLUGIN,
545
- El as PaintBrush,
546
- Rl as PaintBrushTypeEnum,
547
- an as PanoCompassPlugin,
548
- Gl as PanoCursorRaycasterPlugin,
549
- In as PanoDoorLabelPlugin,
550
- Ul as PanoFloorplanRadarPlugin,
551
- un as PanoMeasurePlugin,
552
- ra as PanoMeasurePluginLine,
553
- Qn as PanoMeasurePluginModel,
554
- Zn as PanoMeasurePluginPoint,
555
- ia as PanoMeasurePluginPolyline,
556
- pn as PanoRulerPlugin,
557
- ln as PanoRulerProPlugin,
558
- xn as PanoSpatialTagPlugin,
559
- Gn as PanoTagPlugin,
560
- Oa as PanoTagPluginController,
561
- Yn as PanoVideoPlugin,
562
- ha as PanoVideoPluginType,
563
- Vn as PipelinePlugin,
564
- Fa as PointType,
565
- Wl as ROOM_FETILE_TYPE_MAP,
566
- ql as ROOM_TYPE_MAP,
567
- tn as Rotation,
568
- Hn as Sculpt,
569
- Un as SculptPlugin,
570
- Bl as TopviewFloorplanPlugin,
571
- qn as Util,
572
- Ca as WalkController,
573
- Da as defaultGlobalConfig,
574
- _n as itemLabelPluginServerParams,
575
- sn as modelItemLabelPluginServerParams,
576
- Fl as modelRoomLabelPluginServerParams,
577
- ya as pluginFlag
511
+ kn as AreaMakerPlugin,
512
+ Kn as CSS3DRender,
513
+ Dl as CSS3DRenderPlugin,
514
+ tn as CameraMovementEffect,
515
+ on as CameraMovementPlugin,
516
+ va as ContentType,
517
+ An as CruisePlugin,
518
+ Ca as CruisePluginController,
519
+ Sa as CruisePluginTypes,
520
+ Bn as CurrentPanoImagePlugin,
521
+ Cn as DIRECTION,
522
+ na as DISPLAY_STRATEGY_TYPE,
523
+ Fa as DimensionType,
524
+ Vl as FLOOR_PLAN_ATTACHED_TO,
525
+ Wl as FLOOR_TYPE_MAP,
526
+ da as GuideLineItem,
527
+ Ta as GuideLineModeItem,
528
+ On as GuideLinePlugin,
529
+ fa as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
530
+ ga as ItemLabelPlugin,
531
+ ea as Magnifier,
532
+ wl as MapviewFloorplanPlugin,
533
+ Kl as ModelChassisCompassPlugin,
534
+ Xl as ModelEntryDoorGuidePlugin,
535
+ hl as ModelFloorplanPlugin,
536
+ Pa as ModelItemLabelPlugin,
537
+ Wn as ModelMakerPlugin,
538
+ Fl as ModelRoomLabelPlugin,
539
+ Tn as ModelTVVideoPlugin,
540
+ yl as ModelViewPlugin,
541
+ Ia as MoveController,
542
+ Dn as MovePlugin,
543
+ Va as Object3DHelperController,
544
+ Fn as Object3DHelperPlugin,
545
+ Na as PLUGIN,
546
+ Il as PaintBrush,
547
+ Sl as PaintBrushTypeEnum,
548
+ Pn as PanoCompassPlugin,
549
+ bl as PanoCursorRaycasterPlugin,
550
+ Rn as PanoDoorLabelPlugin,
551
+ jl as PanoFloorplanRadarPlugin,
552
+ fn as PanoMeasurePlugin,
553
+ ta as PanoMeasurePluginLine,
554
+ Xn as PanoMeasurePluginModel,
555
+ oa as PanoMeasurePluginPoint,
556
+ ma as PanoMeasurePluginPolyline,
557
+ en as PanoRulerPlugin,
558
+ nn as PanoRulerProPlugin,
559
+ gn as PanoSpatialTagPlugin,
560
+ bn as PanoTagPlugin,
561
+ ya as PanoTagPluginController,
562
+ cn as PanoVideoPlugin,
563
+ ka as PanoVideoPluginType,
564
+ Nn as PipelinePlugin,
565
+ Ya as PointType,
566
+ ql as ROOM_FETILE_TYPE_MAP,
567
+ zl as ROOM_TYPE_MAP,
568
+ mn as Rotation,
569
+ Un as Sculpt,
570
+ jn as SculptPlugin,
571
+ Hl as TopviewFloorplanPlugin,
572
+ zn as Util,
573
+ _a as WalkController,
574
+ Ga as defaultGlobalConfig,
575
+ En as itemLabelPluginServerParams,
576
+ dn as modelItemLabelPluginServerParams,
577
+ Yl as modelRoomLabelPluginServerParams,
578
+ Aa as pluginFlag
578
579
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.48.0",
3
+ "%c %c@realsee/dnalogel %cv3.48.2",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -0,0 +1,10 @@
1
+ interface PromiseWithResolvers<T> {
2
+ promise: Promise<T>;
3
+ resolve: (value: T | PromiseLike<T>) => void;
4
+ reject: (reason?: any) => void;
5
+ }
6
+ /**
7
+ * @description Promise.withResolvers polyfill
8
+ */
9
+ export declare function withResolvers<T>(): PromiseWithResolvers<T>;
10
+ export {};
@@ -0,0 +1,13 @@
1
+ function i() {
2
+ let e, r;
3
+ return {
4
+ promise: new Promise((o, s) => {
5
+ e = o, r = s;
6
+ }),
7
+ resolve: e,
8
+ reject: r
9
+ };
10
+ }
11
+ export {
12
+ i as withResolvers
13
+ };
@@ -1,11 +1,11 @@
1
- var u = Object.defineProperty;
2
- var g = (h, t, e) => t in h ? u(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
1
+ var P = Object.defineProperty;
2
+ var g = (h, t, e) => t in h ? P(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
3
3
  var s = (h, t, e) => (g(h, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { anyPositionToVector3 as d } from "./positionToVector3.js";
5
5
  import * as b from "three";
6
6
  import { vector3ToScreen as l } from "./five/vector3ToScreen.js";
7
- import { getFiveModel as x } from "./five/getFiveModel.js";
8
- import { FiveUtil as U } from "./Utils/FiveUtil.js";
7
+ import { getFiveModel as U } from "./five/getFiveModel.js";
8
+ import { FiveUtil as x } from "./Utils/FiveUtil.js";
9
9
  import { _raycaster as m } from "./three/temp.js";
10
10
  const v = "LightTagContainer_shgjakdhwakjdhsja", w = new b.Vector2();
11
11
  class E {
@@ -35,12 +35,12 @@ class E {
35
35
  if (this.intersectCheck && this.visible && this.five.state.mode !== "Panorama") {
36
36
  let e = 0.01;
37
37
  this.fiveUtil.workUtil.fromType === "poincare" && (e = 0.05), m.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
38
- const o = (t = x(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
38
+ const o = (t = U(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
39
39
  (o == null ? void 0 : o.distance) + e > this.transformedPosition.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
40
40
  }
41
41
  });
42
42
  var n, r, a;
43
- this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new U(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
43
+ this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new x(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
44
44
  const i = document.createElement("div");
45
45
  return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.transition = "opacity 0.2s linear", i;
46
46
  })(), this.config = o != null ? o : {}, this.enable(), this.show();
@@ -81,7 +81,7 @@ class E {
81
81
  this.transformedPosition = (e = this.originPosition) == null ? void 0 : e.clone().applyMatrix4(t), this.onCameraUpdate();
82
82
  }
83
83
  setPosition(t, e) {
84
- this.transformedPosition = t, this.positionsForRotate = e, this.onCameraUpdate();
84
+ this.transformedPosition = t, this.positionsForRotate = e, this.onCameraUpdate(), setTimeout(() => this.onCameraUpdate(), 0);
85
85
  }
86
86
  updateScreenPosition() {
87
87
  if (!this.transformedPosition) {
@@ -102,8 +102,8 @@ class E {
102
102
  const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t);
103
103
  if (!i || !c)
104
104
  return 0;
105
- const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, P = f.topPx - p.topPx;
106
- return Math.atan2(P, y) * (180 / Math.PI);
105
+ const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, u = f.topPx - p.topPx;
106
+ return Math.atan2(u, y) * (180 / Math.PI);
107
107
  })();
108
108
  this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${o})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
109
109
  }