@realsee/dnalogel 3.48.4 → 3.48.6

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 (59) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/PanoMeasurePlugin/utils/isIntersecting.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  5. package/dist/Sculpt/Meshes/Polyline.d.ts +2 -0
  6. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -1
  7. package/dist/index.cjs.js +51 -51
  8. package/dist/index.js +2607 -2515
  9. package/dist/index.umd.js +44 -44
  10. package/dist/shared-utils/three/PointSelector/index.d.ts +12 -4
  11. package/dist/shared-utils/three/PointSelector/utils/contents.d.ts +1 -0
  12. package/dist/shared-utils/three/generatePolygonGeometry.d.ts +4 -1
  13. package/libs/CruisePlugin/Move.js +1 -1
  14. package/libs/CruisePlugin/index.js +1 -1
  15. package/libs/GuideLinePlugin/Controller.js +1 -1
  16. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  17. package/libs/GuideLinePlugin/GuideLineModeItem.js +2 -3
  18. package/libs/ModelMakerPlugin/Controller.js +3 -2
  19. package/libs/ModelMakerPlugin/index.js +3 -2
  20. package/libs/PanoMeasurePlugin/Components/Controller0.js +21 -20
  21. package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -3
  22. package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
  23. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  24. package/libs/PanoMeasurePlugin/Controller/index.js +4 -3
  25. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  26. package/libs/PanoMeasurePlugin/Model/polygon.js +8 -7
  27. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -3
  28. package/libs/PanoMeasurePlugin/index.js +15 -14
  29. package/libs/PanoMeasurePlugin/utils/isIntersecting.d.ts +1 -1
  30. package/libs/PanoMeasurePlugin/utils/isIntersecting.js +39 -16
  31. package/libs/PanoTagPlugin/Components/Tag/index.js +2 -3
  32. package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
  33. package/libs/PanoTagPlugin/Components/TagItem.js +2 -3
  34. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +111 -94
  35. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +2 -3
  36. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +8 -9
  37. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +2 -3
  38. package/libs/PanoTagPlugin/controller/TagRender.js +2 -3
  39. package/libs/PanoTagPlugin/controller/index.js +5 -6
  40. package/libs/PanoTagPlugin/index.js +11 -12
  41. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  42. package/libs/Sculpt/Meshes/Line.js +64 -56
  43. package/libs/Sculpt/Meshes/Polygon.js +3 -3
  44. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  45. package/libs/Sculpt/Meshes/Polyline.d.ts +2 -0
  46. package/libs/Sculpt/Meshes/Polyline.js +67 -66
  47. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -1
  48. package/libs/Sculpt/Objects/Polygon/index.js +63 -64
  49. package/libs/Sculpt/Objects/Polyline/index.js +8 -9
  50. package/libs/base/BasePlugin.js +1 -1
  51. package/libs/index.js +128 -127
  52. package/libs/shared-utils/logger.js +1 -1
  53. package/libs/shared-utils/three/PointSelector/index.d.ts +12 -4
  54. package/libs/shared-utils/three/PointSelector/index.js +83 -56
  55. package/libs/shared-utils/three/PointSelector/utils/contents.d.ts +1 -0
  56. package/libs/shared-utils/three/PointSelector/utils/contents.js +4 -0
  57. package/libs/shared-utils/three/generatePolygonGeometry.d.ts +4 -1
  58. package/libs/shared-utils/three/generatePolygonGeometry.js +19 -8
  59. package/package.json +2 -2
@@ -1,50 +1,50 @@
1
- var k = Object.defineProperty, z = Object.defineProperties;
2
- var B = Object.getOwnPropertyDescriptors;
1
+ var L = Object.defineProperty, N = Object.defineProperties;
2
+ var z = Object.getOwnPropertyDescriptors;
3
3
  var A = Object.getOwnPropertySymbols;
4
4
  var _ = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
- var M = (s, t, e) => t in s ? k(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, g = (s, t) => {
5
+ var O = (s, t, e) => t in s ? L(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, p = (s, t) => {
6
6
  for (var e in t || (t = {}))
7
- _.call(t, e) && M(s, e, t[e]);
7
+ _.call(t, e) && O(s, e, t[e]);
8
8
  if (A)
9
9
  for (var e of A(t))
10
- q.call(t, e) && M(s, e, t[e]);
10
+ q.call(t, e) && O(s, e, t[e]);
11
11
  return s;
12
- }, O = (s, t) => z(s, B(t));
13
- var j = (s, t, e) => (M(s, typeof t != "symbol" ? t + "" : t, e), e);
12
+ }, j = (s, t) => N(s, z(t));
13
+ var v = (s, t, e) => (O(s, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  var V = (s, t, e) => new Promise((c, d) => {
15
- var m = (o) => {
15
+ var u = (n) => {
16
16
  try {
17
- f(e.next(o));
18
- } catch (a) {
19
- d(a);
17
+ f(e.next(n));
18
+ } catch (l) {
19
+ d(l);
20
20
  }
21
- }, r = (o) => {
21
+ }, r = (n) => {
22
22
  try {
23
- f(e.throw(o));
24
- } catch (a) {
25
- d(a);
23
+ f(e.throw(n));
24
+ } catch (l) {
25
+ d(l);
26
26
  }
27
- }, f = (o) => o.done ? c(o.value) : Promise.resolve(o.value).then(m, r);
27
+ }, f = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(u, r);
28
28
  f((e = e.apply(s, t)).next());
29
29
  });
30
30
  import { BaseObject as G } from "../Base/index.js";
31
- import * as P from "three";
32
- import { PolylineMesh as D } from "../../Meshes/Polyline.js";
33
- import { AreaMesh as F } from "../../Meshes/Area.js";
31
+ import * as g from "three";
32
+ import { PolylineMesh as k } from "../../Meshes/Polyline.js";
33
+ import { AreaMesh as B } from "../../Meshes/Area.js";
34
34
  import { PolygonEditor as J } from "./Editor.js";
35
35
  import { vector3ToArray as K } from "../../../shared-utils/three/vector3ToArray.js";
36
36
  import { withResolvers as Q } from "../../../shared-utils/promise/withResolvers.js";
37
- const I = new P.Vector3();
38
- class ne extends G {
37
+ const D = new g.Vector3();
38
+ class oe extends G {
39
39
  constructor(e, c) {
40
40
  super(e, c);
41
- j(this, "type", "Polygon");
42
- j(this, "areaMesh");
43
- j(this, "creatingObject");
44
- this.editor = new J(this), e && (this.areaMesh = new F(g(g({}, e.style), e)), this.add(this.areaMesh));
41
+ v(this, "type", "Polygon");
42
+ v(this, "areaMesh");
43
+ v(this, "creatingObject");
44
+ this.editor = new J(this), e && (this.areaMesh = new B(p(p({}, e.style), e)), this.add(this.areaMesh));
45
45
  }
46
46
  get data() {
47
- return this.updateMatrixWorld(), O(g({}, this.baseData), {
47
+ return this.updateMatrixWorld(), j(p({}, this.baseData), {
48
48
  points: K(this.applyObjectMatrixWorld(this.areaMesh.points)),
49
49
  style: {
50
50
  color: this.areaMesh.color.getHex(),
@@ -82,60 +82,59 @@ class ne extends G {
82
82
  this.children.forEach((d) => {
83
83
  d.parent === this && this.remove(d);
84
84
  }), this.children.length = 0;
85
- const c = new F(e);
85
+ const c = new B(e);
86
86
  this.areaMesh = c, this.add(this.areaMesh), this.creatingObject = X(this.areaMesh, this.pointSelector, e), yield this.creatingObject.finished, this.editor.enable();
87
87
  });
88
88
  }
89
89
  }
90
90
  function X(s, t, e) {
91
- var H;
92
- const { promise: c, resolve: d, reject: m } = Q(), r = s.parent;
91
+ var M;
92
+ const { promise: c, resolve: d, reject: u } = Q(), r = s.parent;
93
93
  if (!r) {
94
- m(new Error("No container"));
94
+ u(new Error("No container"));
95
95
  return;
96
96
  }
97
- const f = (H = e == null ? void 0 : e.limit) != null ? H : "none", o = new D(s.style);
98
- r == null || r.add(o);
99
- const a = new D(O(g({}, s.style), { dashed: !0, lengthEnable: !1 }));
100
- r == null || r.add(a), t.enable();
101
- const n = [];
102
- let i, h, v = !1, E;
103
- const u = [], x = () => n.length > 0, C = () => u.length > 0, L = () => {
104
- x() && (u.push(n.pop()), w(E), t.pointSelectorHelper.magnifier.render());
105
- }, N = () => {
106
- C() && (n.push(u.pop()), w(E), t.pointSelectorHelper.magnifier.render());
107
- }, R = (l) => {
108
- u.length = 0;
109
- const b = n.length === 0 ? l.point : i.clone();
110
- n.push(b), s.setPoints(n, { closed: !1 }), v && (U(), d());
111
- }, w = (l) => {
112
- const b = () => {
113
- o.setPoints([]), a.setPoints([]), s.setPoints([]), t.pointSelectorHelper.magnifier.render();
97
+ const f = (M = e == null ? void 0 : e.limit) != null ? M : "none", n = new k(j(p({}, s.style), { opacity: 1 }));
98
+ r == null || r.add(n);
99
+ const l = new k(j(p({}, s.style), { dashed: !0, lengthEnable: !1 }));
100
+ r == null || r.add(l), t.enable();
101
+ const o = [];
102
+ let i, h, C = !1, E;
103
+ const m = [], x = () => o.length > 0, R = () => m.length > 0, F = () => {
104
+ x() && (m.push(o.pop()), y(E), t.pointSelectorHelper.magnifier.render());
105
+ }, I = () => {
106
+ R() && (o.push(m.pop()), y(E), t.pointSelectorHelper.magnifier.render());
107
+ }, U = (a) => {
108
+ m.length = 0;
109
+ const w = o.length === 0 ? a.point : i.clone();
110
+ o.push(w), s.setPoints(o, { closed: !1 }), C && (W(), d());
111
+ }, y = (a) => {
112
+ const w = () => {
113
+ n.setPoints([]), l.setPoints([]), s.setPoints(o), t.pointSelectorHelper.magnifier.render();
114
114
  };
115
- if (!(n != null && n.length) || !l)
116
- return b();
117
- E = l;
118
- const p = n.at(-1).clone();
119
- if (n.length < 3 && (f === "none" ? (i = l.point, o.setPoints([p, i]), a.setPoints([])) : f === "xoz" ? (h = h != null ? h : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), n[0]), t.plane = h, i = h.projectPoint(l.point, I), o.setPoints([p, i]), a.setPoints([i, l.point])) : f === "y" && (n.length === 1 ? (i = l.point, o.setPoints([p, i]), a.setPoints([])) : (h = h != null ? h : new P.Plane().setFromCoplanarPoints(n[0], n[1], new P.Vector3(0, 1, 0).add(n[0])), t.plane = h, i = h.projectPoint(l.point, I), o.setPoints([p, i]), a.setPoints([i, l.point])))), n.length >= 3) {
120
- i = s.projectPoint(l.point);
121
- const y = n[0], T = 0.2;
122
- y.distanceTo(i) < T || y.distanceTo(l.point) < T ? (i = y, l.point.copy(y), t.pointSelectorHelper.updateWithIntersect(l, { emitEvent: !1 }), v = !0) : v = !1, o.setPoints([p, i]), a.setPoints([i, l.point]);
115
+ if (!a || (E = a, !(o != null && o.length)))
116
+ return w();
117
+ const P = o.at(-1).clone();
118
+ if (o.length < 3 && (f === "none" ? (i = a.point, n.setPoints([P, i]), l.setPoints([])) : f === "xoz" ? (h = h != null ? h : new g.Plane().setFromNormalAndCoplanarPoint(new g.Vector3(0, 1, 0), o[0]), t.plane = h, i = h.projectPoint(a.point, D), n.setPoints([P, i]), l.setPoints([i, a.point])) : f === "y" && (o.length === 1 ? (i = a.point, n.setPoints([P, i]), l.setPoints([])) : (h = h != null ? h : new g.Plane().setFromCoplanarPoints(o[0], o[1], new g.Vector3(0, 1, 0).add(o[0])), t.plane = h, i = h.projectPoint(a.point, D), n.setPoints([P, i]), l.setPoints([i, a.point])))), o.length >= 3) {
119
+ i = s.projectPoint(a.point);
120
+ const b = o[0], T = 0.2;
121
+ b.distanceTo(i) < T || b.distanceTo(a.point) < T ? (i = b, a.point.copy(b), t.pointSelectorHelper.updateWithIntersect(a, { emitEvent: !1 }), C = !0) : C = !1, n.setPoints([P, i]), l.setPoints([i, a.point]);
123
122
  }
124
- n.length >= 2 ? s.setPoints([...n, i], { closed: !1 }) : s.setPoints([]);
125
- }, U = () => {
126
- t.off("select", R), t.off("intersectionUpdate", w), t.off("disable", W), t.plane = null, t.disable(), r == null || r.remove(o, a);
123
+ o.length >= 2 ? (s.setPoints([...o, i], { closed: !1 }), s.line.setPoints(s.points.slice(0, -1)), s.isBlank ? (t.cursorError = !0, n.setStyle({ lineColor: 16734553 }), l.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, n.setStyle({ lineColor: s.lineColor }), l.setStyle({ lineColor: s.lineColor }))) : s.setPoints([]);
127
124
  }, W = () => {
128
- U(), r == null || r.remove(s, a, o), m(new Error("Cancelled"));
125
+ t.off("select", U), t.off("intersectionUpdate", y), t.off("disable", H), t.plane = null, t.disable(), r == null || r.remove(n, l);
126
+ }, H = () => {
127
+ W(), r == null || r.remove(s, l, n), u(new Error("Cancelled"));
129
128
  };
130
- return t.on("select", R), t.on("intersectionUpdate", w), t.on("disable", W), {
129
+ return t.on("select", U), t.on("intersectionUpdate", y), t.on("disable", H), {
131
130
  finished: c,
132
131
  canUndo: x,
133
- canRedo: C,
134
- undo: L,
135
- redo: N
132
+ canRedo: R,
133
+ undo: F,
134
+ redo: I
136
135
  };
137
136
  }
138
137
  export {
139
- ne as Polygon,
138
+ oe as Polygon,
140
139
  X as createPolygon
141
140
  };
@@ -2,15 +2,15 @@ var F = Object.defineProperty, T = Object.defineProperties;
2
2
  var k = Object.getOwnPropertyDescriptors;
3
3
  var E = Object.getOwnPropertySymbols;
4
4
  var z = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
- var v = (n, t, e) => t in n ? F(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, p = (n, t) => {
5
+ var j = (n, t, e) => t in n ? F(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, p = (n, t) => {
6
6
  for (var e in t || (t = {}))
7
- z.call(t, e) && v(n, e, t[e]);
7
+ z.call(t, e) && j(n, e, t[e]);
8
8
  if (E)
9
9
  for (var e of E(t))
10
- B.call(t, e) && v(n, e, t[e]);
10
+ B.call(t, e) && j(n, e, t[e]);
11
11
  return n;
12
12
  }, M = (n, t) => T(n, k(t));
13
- var y = (n, t, e) => (v(n, typeof t != "symbol" ? t + "" : t, e), e);
13
+ var y = (n, t, e) => (j(n, typeof t != "symbol" ? t + "" : t, e), e);
14
14
  var R = (n, t, e) => new Promise((s, P) => {
15
15
  var w = (o) => {
16
16
  try {
@@ -94,11 +94,11 @@ function q(n, t, e) {
94
94
  const a = new W(M(p({}, n.style), { dashed: !0, lengthEnable: !1 }));
95
95
  s.add(a), t.enable();
96
96
  const i = [];
97
- let r, l, j;
97
+ let r, l, v;
98
98
  const f = [], O = () => i.length > 0, L = () => f.length > 0, A = () => {
99
- O() && (f.push(i.pop()), n.setPoints(i), g(j), t.pointSelectorHelper.magnifier.render());
99
+ O() && (f.push(i.pop()), n.setPoints(i), g(v), t.pointSelectorHelper.magnifier.render());
100
100
  }, D = () => {
101
- L() && (i.push(f.pop()), n.setPoints(i), g(j), t.pointSelectorHelper.magnifier.render());
101
+ L() && (i.push(f.pop()), n.setPoints(i), g(v), t.pointSelectorHelper.magnifier.render());
102
102
  }, C = (h) => {
103
103
  f.length = 0;
104
104
  const m = i.length === 0 ? h.point : r.clone();
@@ -107,9 +107,8 @@ function q(n, t, e) {
107
107
  const m = () => {
108
108
  o.setPoints([]), a.setPoints([]), r = null;
109
109
  };
110
- if (!(i != null && i.length) || !h)
110
+ if (!h || (v = h, !(i != null && i.length)))
111
111
  return m();
112
- j = h;
113
112
  const u = i.at(-1).clone();
114
113
  c === "none" ? (r = h.point, o.setPoints([u, r])) : c === "xoz" ? (l = l != null ? l : new d.Plane().setFromNormalAndCoplanarPoint(new d.Vector3(0, 1, 0), i[0]), t.plane = l, r = l.projectPoint(h.point, V), o.setPoints([u, r]), a.setPoints([r, h.point])) : c === "y" && (i.length === 1 ? (r = h.point, o.setPoints([u, r])) : (l = l != null ? l : new d.Plane().setFromCoplanarPoints(i[0], i[1], new d.Vector3(0, 1, 0).add(i[0])), t.plane = l, r = l.projectPoint(h.point, V), o.setPoints([u, r]), a.setPoints([r, h.point])));
115
114
  };
@@ -17,7 +17,7 @@ let x = class {
17
17
  /**
18
18
  * @realsee/dnalogel 版本号
19
19
  */
20
- i(this, "VERSION", "3.48.4");
20
+ i(this, "VERSION", "3.48.6");
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 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";
3
+ import { PaintBrush as Rl } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as Ol } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as Al } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Gl } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as vl } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Yl, modelRoomLabelPluginServerParams as cl } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as Nl } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as kl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as Bl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Ul } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as $l } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as ql, ROOM_FETILE_TYPE_MAP as zl, ROOM_TYPE_MAP as Jl } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as Ql } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as Zl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as rn } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as mn, Rotation as pn } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as ln } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as an } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as un } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as xn } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as sn } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as Mn } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as Ln } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as _n } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as In } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as Sn } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as yn } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as Dn, MovePlugin as Gn } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as vn } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as Yn } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as Vn } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as hn } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as wn } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as Hn } from "./CurrentPanoImagePlugin/index.js";
37
+ import { Sculpt as jn, SculptPlugin as $n } from "./Sculpt/index.js";
38
+ import { ModelMakerPlugin as qn } from "./ModelMakerPlugin/index.js";
39
+ import { index as Jn } from "./shared-utils/index.js";
40
+ import { CSS3DRender as Qn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
+ import { Model as Zn } from "./PanoMeasurePlugin/Model/index.js";
42
+ import { default as ra } from "./PanoMeasurePlugin/Model/point.js";
43
+ import { default as ia } from "./PanoMeasurePlugin/Model/line.js";
44
+ import { Polyline as pa } from "./PanoMeasurePlugin/Model/polyline.js";
45
+ import { Magnifier as la } from "./shared-utils/three/Magnifier.js";
46
+ import { DISPLAY_STRATEGY_TYPE as aa } from "./ModelItemLabelPlugin/typings.js";
47
+ import { ModelItemLabelPlugin as ua } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as xa } from "./ItemLabelPlugin/typings.js";
49
+ import { Plugin as sa } from "./ItemLabelPlugin/Plugin.js";
50
+ import { GuideLineItem$1 as Ma } from "./GuideLinePlugin/GuideLineItem/index.js";
51
+ import { GuideLineModeItem$1 as La } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
+ import { default as _a, default as Ea } from "./CruisePlugin/Work.js";
53
+ import { default as Ra } from "./CruisePlugin/Move.js";
54
+ import { typing as Oa } from "./CruisePlugin/typing/index.js";
55
+ import { default as Aa, pluginFlag as Da } from "./PanoTagPlugin/controller/index.js";
56
+ import { defaultGlobalConfig as ba } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
+ import { ContentType as Fa, DimensionType as Ya, PointType as ca } from "./PanoTagPlugin/Archive/deprecated.js";
58
+ import { Object3DHelperController as Na, PLUGIN as ha } from "./Object3DHelperPlugin/Controller.js";
59
+ import { typings as wa } 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";
@@ -193,9 +193,9 @@ import "./shared-utils/three/generatePolygonGeometry.js";
193
193
  import "./shared-utils/three/earcut3D.js";
194
194
  import "earcut";
195
195
  import "./shared-utils/three/getNormal.js";
196
+ import "./PanoMeasurePlugin/utils/isIntersecting.js";
196
197
  import "./PanoMeasurePlugin/utils/dom/areaDom.js";
197
198
  import "./shared-utils/three/geometryUtil.js";
198
- import "./PanoMeasurePlugin/utils/isIntersecting.js";
199
199
  import "./shared-utils/three/PointSelector/index.js";
200
200
  import "./shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
201
201
  import "./shared-utils/three/PointSelector/utils/PointHelper.js";
@@ -212,6 +212,7 @@ import "./CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
212
212
  import "./shared-utils/isTouchDevice.js";
213
213
  import "./shared-utils/five/getPosition.js";
214
214
  import "./shared-utils/five/getRaycasterByNdcPosition.js";
215
+ import "./shared-utils/three/PointSelector/utils/contents.js";
215
216
  import "./PanoMeasurePlugin/Modules/DeleteDom/index.js";
216
217
  import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js";
217
218
  import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js";
@@ -374,7 +375,6 @@ import "./PanoTagPlugin/utils/checkRange.js";
374
375
  import "./shared-utils/url/getUrl.js";
375
376
  import "./shared-utils/five/getFloorIndex.js";
376
377
  import "./PanoTagPlugin/utils/Cache.js";
377
- import "./CruisePlugin/utils/sleep.js";
378
378
  import "./PanoTagPlugin/controller/TagUtil.js";
379
379
  import "./PanoTagPlugin/tag.config.js";
380
380
  import "./PanoTagPlugin/utils/normalPositionToPositions.js";
@@ -395,6 +395,7 @@ import "./CruisePlugin/utils/getFiveStateOnCurve.js";
395
395
  import "./CruisePlugin/utils/coordinatesAngle.js";
396
396
  import "./CruisePlugin/utils/coordinatesToVector.js";
397
397
  import "./CruisePlugin/utils/safeCall.js";
398
+ import "./CruisePlugin/utils/sleep.js";
398
399
  import "./shared-utils/five/fiveLoaded.js";
399
400
  import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
400
401
  import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
@@ -508,72 +509,72 @@ import "./shared-utils/five/lookObject.js";
508
509
  r();
509
510
  o();
510
511
  export {
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
512
+ wn as AreaMakerPlugin,
513
+ Qn as CSS3DRender,
514
+ Gl as CSS3DRenderPlugin,
515
+ mn as CameraMovementEffect,
516
+ rn as CameraMovementPlugin,
517
+ Fa as ContentType,
518
+ Dn as CruisePlugin,
519
+ _a as CruisePluginController,
520
+ Oa as CruisePluginTypes,
521
+ Hn as CurrentPanoImagePlugin,
522
+ _n as DIRECTION,
523
+ aa as DISPLAY_STRATEGY_TYPE,
524
+ Ya as DimensionType,
525
+ Nl as FLOOR_PLAN_ATTACHED_TO,
526
+ ql as FLOOR_TYPE_MAP,
527
+ Ma as GuideLineItem,
528
+ La as GuideLineModeItem,
529
+ yn as GuideLinePlugin,
530
+ xa as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
531
+ sa as ItemLabelPlugin,
532
+ la as Magnifier,
533
+ Bl as MapviewFloorplanPlugin,
534
+ Ql as ModelChassisCompassPlugin,
535
+ Zl as ModelEntryDoorGuidePlugin,
536
+ kl as ModelFloorplanPlugin,
537
+ ua as ModelItemLabelPlugin,
538
+ qn as ModelMakerPlugin,
539
+ Yl as ModelRoomLabelPlugin,
540
+ Ln as ModelTVVideoPlugin,
541
+ Al as ModelViewPlugin,
542
+ Ra as MoveController,
543
+ Gn as MovePlugin,
544
+ Na as Object3DHelperController,
545
+ Yn as Object3DHelperPlugin,
546
+ ha as PLUGIN,
547
+ Rl as PaintBrush,
548
+ Ol as PaintBrushTypeEnum,
549
+ un as PanoCompassPlugin,
550
+ vl as PanoCursorRaycasterPlugin,
551
+ Sn as PanoDoorLabelPlugin,
552
+ $l as PanoFloorplanRadarPlugin,
553
+ xn as PanoMeasurePlugin,
554
+ ia as PanoMeasurePluginLine,
555
+ Zn as PanoMeasurePluginModel,
556
+ ra as PanoMeasurePluginPoint,
557
+ pa as PanoMeasurePluginPolyline,
558
+ ln as PanoRulerPlugin,
559
+ an as PanoRulerProPlugin,
560
+ sn as PanoSpatialTagPlugin,
561
+ vn as PanoTagPlugin,
562
+ Aa as PanoTagPluginController,
563
+ Vn as PanoVideoPlugin,
564
+ wa as PanoVideoPluginType,
565
+ hn as PipelinePlugin,
566
+ ca as PointType,
567
+ zl as ROOM_FETILE_TYPE_MAP,
568
+ Jl as ROOM_TYPE_MAP,
569
+ pn as Rotation,
570
+ jn as Sculpt,
571
+ $n as SculptPlugin,
572
+ Ul as TopviewFloorplanPlugin,
573
+ Jn as Util,
574
+ Ea as WalkController,
575
+ ba as defaultGlobalConfig,
576
+ In as itemLabelPluginServerParams,
577
+ Mn as modelItemLabelPluginServerParams,
578
+ cl as modelRoomLabelPluginServerParams,
579
+ Da as pluginFlag
579
580
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.48.4",
3
+ "%c %c@realsee/dnalogel %cv3.48.6",
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",
@@ -56,14 +56,21 @@ export declare class PointSelector extends Subscribe<EventMap> {
56
56
  /**
57
57
  * @description: 不在 five canvas 上时为 true
58
58
  */
59
- outOfFive: boolean;
60
- enabled: boolean;
59
+ get outOfFive(): boolean;
60
+ get enabled(): boolean;
61
+ get cursorError(): boolean;
62
+ set cursorError(cursorError: boolean);
63
+ _cursorError: boolean;
61
64
  actionIfNoModelUnderMouse: ActionIfNoModelUnderMouse;
62
65
  plane?: THREE.Plane | null;
63
- pointSelectorHelper: PointSelectorHelper;
66
+ readonly pointSelectorHelper: PointSelectorHelper;
64
67
  /** @deprecated directly use `pointSelector.on/off` instead */
65
- hook: this;
68
+ readonly hook: this;
66
69
  private five;
70
+ private set outOfFive(value);
71
+ private _outOfFive;
72
+ private set enabled(value);
73
+ private _enabled;
67
74
  private hammer?;
68
75
  private mode;
69
76
  /** 长按屏幕的动作触发后为true,手指抬起后为false */
@@ -90,6 +97,7 @@ export declare class PointSelector extends Subscribe<EventMap> {
90
97
  * @return: select 是否成功
91
98
  */
92
99
  select: (intersection?: PointIntersection) => boolean;
100
+ private onMouseWheel;
93
101
  /**
94
102
  * @description: 鼠标进入five canvas时
95
103
  */