@realsee/dnalogel 3.47.10 → 3.47.11

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 (103) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  3. package/dist/Sculpt/Meshes/Polyline.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
  5. package/dist/index.cjs.js +57 -57
  6. package/dist/index.js +3227 -3221
  7. package/dist/index.umd.js +50 -50
  8. package/libs/AreaMakerPlugin/Controller.js +14 -13
  9. package/libs/AreaMakerPlugin/index.js +15 -14
  10. package/libs/AreaMakerPlugin/utils/Item.js +15 -14
  11. package/libs/CSS3DRenderPlugin/Controller.js +12 -11
  12. package/libs/CSS3DRenderPlugin/index.js +18 -17
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +12 -11
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +26 -25
  15. package/libs/CruisePlugin/BaseController.js +17 -16
  16. package/libs/CruisePlugin/Move.js +20 -19
  17. package/libs/CruisePlugin/Work.js +15 -14
  18. package/libs/CruisePlugin/index.js +19 -18
  19. package/libs/CurrentPanoImagePlugin/Controller.js +14 -13
  20. package/libs/CurrentPanoImagePlugin/index.js +16 -15
  21. package/libs/GuideLinePlugin/Controller.js +17 -16
  22. package/libs/GuideLinePlugin/GuideLineItem.js +15 -14
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +5 -3
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -14
  25. package/libs/GuideLinePlugin/index.js +19 -18
  26. package/libs/ModelMakerPlugin/Controller.js +13 -12
  27. package/libs/ModelMakerPlugin/index.js +15 -14
  28. package/libs/ModelTVVideoPlugin/Plugin.js +37 -36
  29. package/libs/ModelTVVideoPlugin/index.js +13 -12
  30. package/libs/Object3DHelperPlugin/Controller.js +14 -13
  31. package/libs/Object3DHelperPlugin/index.js +18 -17
  32. package/libs/PanoCompassPlugin/Controller.js +15 -14
  33. package/libs/PanoCompassPlugin/index.js +16 -15
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +15 -14
  35. package/libs/PanoDoorLabelPlugin/Controller.js +15 -14
  36. package/libs/PanoDoorLabelPlugin/index.js +16 -15
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +12 -11
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +12 -11
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +12 -11
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +13 -12
  41. package/libs/PanoMeasurePlugin/Controller/index.js +10 -9
  42. package/libs/PanoMeasurePlugin/Model/area.js +12 -11
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +12 -11
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +12 -11
  45. package/libs/PanoMeasurePlugin/index.js +21 -20
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +12 -11
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +14 -13
  48. package/libs/PanoSpatialTagPlugin/index.js +11 -10
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +14 -13
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +13 -12
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +13 -12
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +13 -12
  53. package/libs/PanoTagPlugin/Components/TagItem.js +13 -12
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +34 -33
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +13 -12
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +13 -12
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +15 -14
  58. package/libs/PanoTagPlugin/controller/TagRender.js +12 -11
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +13 -12
  60. package/libs/PanoTagPlugin/controller/index.js +16 -15
  61. package/libs/PanoTagPlugin/index.js +21 -20
  62. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +14 -13
  63. package/libs/PanoVideoPlugin/Controller.js +15 -14
  64. package/libs/PanoVideoPlugin/VideoMeshController.js +30 -29
  65. package/libs/PanoVideoPlugin/index.js +18 -17
  66. package/libs/PipelinePlugin/Controller.js +14 -13
  67. package/libs/PipelinePlugin/index.js +16 -15
  68. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +21 -20
  69. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +15 -14
  70. package/libs/PipelinePlugin/utils/Objects/Pipe.js +13 -12
  71. package/libs/Sculpt/Meshes/Box.js +10 -8
  72. package/libs/Sculpt/Meshes/Cylinder.js +17 -15
  73. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  74. package/libs/Sculpt/Meshes/Line.js +84 -78
  75. package/libs/Sculpt/Meshes/Point.js +14 -12
  76. package/libs/Sculpt/Meshes/Polyline.d.ts +1 -0
  77. package/libs/Sculpt/Meshes/Polyline.js +69 -74
  78. package/libs/Sculpt/Meshes/Rectangle.js +6 -4
  79. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
  80. package/libs/Sculpt/Objects/Base/index.js +5 -5
  81. package/libs/Sculpt/Objects/Line/Editor.js +17 -15
  82. package/libs/Sculpt/Objects/Polygon/index.js +22 -22
  83. package/libs/Sculpt/Objects/Rectangle/Editor.js +2 -2
  84. package/libs/Sculpt/Objects/Rectangle/index.js +79 -69
  85. package/libs/Sculpt/index.js +15 -14
  86. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -4
  87. package/libs/base/BasePlugin.js +16 -14
  88. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +13 -12
  89. package/libs/floorplan/MapviewFloorplanPlugin/index.js +16 -15
  90. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +13 -12
  91. package/libs/floorplan/ModelFloorplanPlugin/index.js +16 -15
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +15 -14
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -15
  94. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +13 -12
  95. package/libs/floorplan/TopviewFloorplanPlugin/index.js +16 -15
  96. package/libs/floorplan/index.js +3 -1
  97. package/libs/index.js +12 -12
  98. package/libs/shared-utils/five/index.js +5 -3
  99. package/libs/shared-utils/five/lookObject.js +20 -18
  100. package/libs/shared-utils/logger.js +1 -1
  101. package/libs/shared-utils/three/applyObjectMatrixWorld.js +4 -6
  102. package/libs/shared-utils/three/index.js +3 -1
  103. package/package.json +1 -1
@@ -1,40 +1,40 @@
1
- var _ = Object.defineProperty;
1
+ var M = Object.defineProperty;
2
2
  var b = Object.getOwnPropertySymbols;
3
3
  var k = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var f = (s, o, e) => o in s ? _(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, y = (s, o) => {
4
+ var g = (s, o, e) => o in s ? M(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, u = (s, o) => {
5
5
  for (var e in o || (o = {}))
6
- k.call(o, e) && f(s, e, o[e]);
6
+ k.call(o, e) && g(s, e, o[e]);
7
7
  if (b)
8
8
  for (var e of b(o))
9
- S.call(o, e) && f(s, e, o[e]);
9
+ S.call(o, e) && g(s, e, o[e]);
10
10
  return s;
11
11
  };
12
- var h = (s, o, e) => (f(s, typeof o != "symbol" ? o + "" : o, e), e);
13
- import * as d from "three";
14
- import { DEFAULT_LINE_COLOR as m, DEFAULT_LINE_WIDTH as M, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
15
- import { LineGeometry as L, LineMaterial as w, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
12
+ var l = (s, o, e) => (g(s, typeof o != "symbol" ? o + "" : o, e), e);
13
+ import * as a from "three";
14
+ import { DEFAULT_LINE_COLOR as m, DEFAULT_LINE_WIDTH as p, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
15
+ import { LineGeometry as f, LineMaterial as w, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
16
  import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
17
17
  import { IObject3D as I } from "../../shared-utils/three/IObject3D.js";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
- import { centerPoint as R } from "../../shared-utils/three/centerPoint.js";
20
+ import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
21
+ import { LightTag as R } from "../../shared-utils/tag.js";
22
+ import { globalModules as W } from "../utils/Modules/Global.js";
23
+ import { removeAllTag as O } from "../utils/removeAllTag.js";
24
+ import { getLengthHTML as P } from "../utils/Meshes/getLengthHTML.js";
25
+ import { applyObjectMatrixWorld as E } from "../../shared-utils/three/applyObjectMatrixWorld.js";
21
26
  import "../../shared-utils/three/THREESphere.js";
22
27
  import "animejs";
23
28
  import { notNil as c } from "../../shared-utils/isNil.js";
24
29
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
- import { LightTag as p } from "../../shared-utils/tag.js";
26
- import { globalModules as x } from "../utils/Modules/Global.js";
27
- import { removeAllTag as P } from "../utils/removeAllTag.js";
28
- import { getLengthHTML as V } from "../utils/Meshes/getLengthHTML.js";
29
- new d.Vector2();
30
- class E extends w {
30
+ class T extends w {
31
31
  constructor(e) {
32
- var n, t;
32
+ var t, i;
33
33
  super(e);
34
- h(this, "_three_color");
35
- c(e == null ? void 0 : e.color) && (this.three_color = (n = e == null ? void 0 : e.color) != null ? n : 16777215), Object.keys(e).forEach((i) => {
36
- ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(i) || i in this && (this[i] = e[i]);
37
- }), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
34
+ l(this, "_three_color");
35
+ c(e == null ? void 0 : e.color) && (this.three_color = (t = e == null ? void 0 : e.color) != null ? t : 16777215), Object.keys(e).forEach((n) => {
36
+ ["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(n) || n in this && (this[n] = e[n]);
37
+ }), this.setDashed((i = e == null ? void 0 : e.dashed) != null ? i : !1);
38
38
  }
39
39
  get three_color() {
40
40
  return this._three_color;
@@ -46,44 +46,44 @@ class E extends w {
46
46
  this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
47
47
  }
48
48
  }
49
- class T extends H {
50
- constructor(e, n) {
51
- super(e, n);
52
- h(this, "name", "Line3");
49
+ class _ extends H {
50
+ constructor(e, t) {
51
+ super(e, t);
52
+ l(this, "name", "Line3");
53
53
  }
54
54
  }
55
- class X extends I {
55
+ class $ extends I {
56
56
  constructor(e) {
57
- var l, r, u, a, g;
57
+ var r, h, d, y, L;
58
58
  super();
59
- h(this, "name", "LineMesh");
60
- h(this, "points");
61
- h(this, "lengthDoms", []);
62
- h(this, "highlighted", !1);
63
- h(this, "line");
64
- h(this, "backLine");
65
- h(this, "opacityBeforeHighlight");
66
- h(this, "paramsStyle", {});
59
+ l(this, "name", "LineMesh");
60
+ l(this, "points");
61
+ l(this, "lengthDoms", []);
62
+ l(this, "highlighted", !1);
63
+ l(this, "line");
64
+ l(this, "backLine");
65
+ l(this, "opacityBeforeHighlight");
66
+ l(this, "paramsStyle", {});
67
67
  this.paramsStyle = e != null ? e : {};
68
- const n = new L(), t = new E({
69
- color: new d.Color((l = e == null ? void 0 : e.lineColor) != null ? l : m),
70
- linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : M,
68
+ const t = new f(), i = new T({
69
+ color: new a.Color((r = e == null ? void 0 : e.lineColor) != null ? r : m),
70
+ linewidth: (h = e == null ? void 0 : e.lineWidth) != null ? h : p,
71
71
  dashScale: 40,
72
- opacity: (u = e == null ? void 0 : e.opacity) != null ? u : 1,
72
+ opacity: (d = e == null ? void 0 : e.opacity) != null ? d : 1,
73
73
  transparent: !0,
74
- dashed: (a = e == null ? void 0 : e.dashed) != null ? a : !1
75
- }), i = new E({
76
- color: new d.Color((g = e == null ? void 0 : e.lineColor) != null ? g : m),
77
- linewidth: t.linewidth * 0.9,
78
- dashScale: t.dashScale,
79
- opacity: t.opacity * 0.8,
74
+ dashed: (y = e == null ? void 0 : e.dashed) != null ? y : !1
75
+ }), n = new T({
76
+ color: new a.Color((L = e == null ? void 0 : e.lineColor) != null ? L : m),
77
+ linewidth: i.linewidth * 0.9,
78
+ dashScale: i.dashScale,
79
+ opacity: i.opacity * 0.8,
80
80
  depthTest: !1,
81
81
  depthWrite: !1,
82
82
  transparent: !0,
83
- resolution: t.resolution
83
+ resolution: i.resolution
84
84
  });
85
- this.line = new T(n, t), this.backLine = new T(n, i), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
86
- P(this);
85
+ this.line = new _(t, i), this.backLine = new _(t, n), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
86
+ O(this);
87
87
  });
88
88
  }
89
89
  get style() {
@@ -100,7 +100,7 @@ class X extends I {
100
100
  return this.line.material.linewidth;
101
101
  }
102
102
  get color() {
103
- return new d.Color(this.line.material.three_color);
103
+ return new a.Color(this.line.material.three_color);
104
104
  }
105
105
  get dashed() {
106
106
  return this.line.material.dashed;
@@ -111,27 +111,30 @@ class X extends I {
111
111
  get occlusionMode() {
112
112
  return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
113
113
  }
114
+ updateMatrixWorld(e) {
115
+ super.updateMatrixWorld(e), this.updateLengthItems();
116
+ }
114
117
  setPoints(e) {
115
- const n = e.map(C).filter(c);
116
- if (this.points = n, n.length < 2) {
117
- this.line.geometry = new L(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
118
+ const t = e.map(C).filter(c);
119
+ if (this.points = t, t.length < 2) {
120
+ this.line.geometry = new f(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
118
121
  return;
119
122
  }
120
123
  this.addIfNotExists(this.line, this.backLine);
121
- const t = n.flatMap((i) => [i.x, i.y, i.z]);
122
- t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new L(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
124
+ const i = t.flatMap((n) => [n.x, n.y, n.z]);
125
+ i.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new f(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(i), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
123
126
  }
124
- setResolution(e, n) {
125
- const t = this.line.material.resolution;
126
- (t.x !== e || t.y !== n) && (t.set(e, n), this.needsRender = !0);
127
- const i = this.backLine.material.resolution;
128
- (i.x !== e || i.y !== n) && (i.set(e, n), this.needsRender = !0);
127
+ setResolution(e, t) {
128
+ const i = this.line.material.resolution;
129
+ (i.x !== e || i.y !== t) && (i.set(e, t), this.needsRender = !0);
130
+ const n = this.backLine.material.resolution;
131
+ (n.x !== e || n.y !== t) && (n.set(e, t), this.needsRender = !0);
129
132
  }
130
133
  setStyle(e) {
131
- var i, l, r;
132
- this.paramsStyle = y(y({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new d.Color(e.lineColor), this.backLine.material.three_color = new d.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2), this.updateLengthItems();
133
- const n = (i = e.occlusionVisibility) != null ? i : this.paramsStyle.occlusionVisibility, t = (r = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? r : "translucence";
134
- n ? t === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : t === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
134
+ var n, r, h;
135
+ this.paramsStyle = u(u({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new a.Color(e.lineColor), this.backLine.material.three_color = new a.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2), this.updateLengthItems();
136
+ const t = (n = e.occlusionVisibility) != null ? n : this.paramsStyle.occlusionVisibility, i = (h = (r = e.occlusionMode) != null ? r : this.paramsStyle.occlusionMode) != null ? h : "translucence";
137
+ t ? i === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : i === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
135
138
  }
136
139
  highlight() {
137
140
  this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * D, this.backLine.material.opacity = this.backLine.material.opacity * D, this.needsRender = !0);
@@ -140,24 +143,27 @@ class X extends I {
140
143
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
141
144
  }
142
145
  updateLengthItems() {
143
- var e, n;
144
- if ((!this.points || this.points.length < 2) && (this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = []), this.paramsStyle.lengthEnable) {
145
- const t = (n = (e = this.points) == null ? void 0 : e.map((i, l) => {
146
- if (l !== 0)
147
- return [this.points[l - 1], i];
148
- }).filter(c)) != null ? n : [];
149
- t.forEach(([i, l], r) => {
150
- var a;
151
- const u = R(i, l);
152
- this.lengthDoms[r] = (a = this.lengthDoms[r]) != null ? a : (() => {
153
- const g = new p(x.five);
154
- return g.intersectCheck = !1, g;
155
- })(), this.lengthDoms[r].setPosition(u, [i, l]), this.lengthDoms[r].container.innerHTML = V(i.distanceTo(l).toFixed(2) + "m");
156
- }), this.lengthDoms.length > t.length && (this.lengthDoms.slice(t.length).forEach((i) => i.destroy()), this.lengthDoms.length = t.length);
146
+ if (!this.points || this.points.length < 2) {
147
+ this.lengthDoms.forEach((e) => e.destroy()), this.lengthDoms = [];
148
+ return;
149
+ }
150
+ if (this.paramsStyle.lengthEnable) {
151
+ const e = E(this, this.points).map((t, i) => {
152
+ if (i !== 0)
153
+ return [E(this, this.points[i - 1]), t];
154
+ }).filter(c);
155
+ e.forEach(([t, i], n) => {
156
+ var h;
157
+ const r = x(t, i);
158
+ this.lengthDoms[n] = (h = this.lengthDoms[n]) != null ? h : (() => {
159
+ const d = new R(W.five);
160
+ return d.intersectCheck = !1, d;
161
+ })(), this.lengthDoms[n].setPosition(r, [t, i]), this.lengthDoms[n].container.innerHTML = P(t.distanceTo(i).toFixed(2) + "m");
162
+ }), this.lengthDoms.length > e.length && (this.lengthDoms.slice(e.length).forEach((t) => t.destroy()), this.lengthDoms.length = e.length);
157
163
  } else
158
- this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
164
+ this.lengthDoms.forEach((e) => e.destroy()), this.lengthDoms = [];
159
165
  }
160
166
  }
161
167
  export {
162
- X as LineMesh
168
+ $ as LineMesh
163
169
  };
@@ -1,30 +1,32 @@
1
1
  var C = Object.defineProperty, N = Object.defineProperties;
2
2
  var P = Object.getOwnPropertyDescriptors;
3
3
  var M = Object.getOwnPropertySymbols;
4
- var k = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
4
+ var k = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
5
5
  var n = (i, e, t) => e in i ? C(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  k.call(e, t) && n(i, t, e[t]);
8
8
  if (M)
9
9
  for (var t of M(e))
10
- B.call(e, t) && n(i, t, e[t]);
10
+ m.call(e, t) && n(i, t, e[t]);
11
11
  return i;
12
12
  }, g = (i, e) => N(i, P(e));
13
13
  var A = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import * as o from "three";
15
- import { DEFAULT_HIGHLIGHT_OPACITY as b } from "../typings/style.js";
16
- import { IObject3D as E } from "../../shared-utils/three/IObject3D.js";
17
- import { anyPositionToVector3 as m } from "../../shared-utils/positionToVector3.js";
15
+ import { DEFAULT_HIGHLIGHT_OPACITY as B } from "../typings/style.js";
16
+ import { IObject3D as b } from "../../shared-utils/three/IObject3D.js";
17
+ import { anyPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
18
18
  import "hammerjs";
19
19
  import "three/examples/jsm/renderers/CSS3DRenderer";
20
- import "./Line.js";
20
+ import "@realsee/five/line";
21
+ import "../../shared-utils/tag.js";
22
+ import "../utils/Modules/Global.js";
21
23
  import "../../shared-utils/three/THREESphere.js";
22
24
  import "animejs";
23
25
  import { notNil as u } from "../../shared-utils/isNil.js";
24
26
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
25
- const F = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuh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15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
26
28
  let w = null;
27
- class O extends E {
29
+ class Q extends b {
28
30
  constructor(t) {
29
31
  var f, a;
30
32
  super();
@@ -39,7 +41,7 @@ class O extends E {
39
41
  transparent: !0,
40
42
  side: o.DoubleSide,
41
43
  size: (f = t == null ? void 0 : t.size) != null ? f : 8,
42
- map: w || (w = new o.TextureLoader().load(F)),
44
+ map: w || (w = new o.TextureLoader().load(p)),
43
45
  sizeAttenuation: !1
44
46
  }, r = new o.PointsMaterial(g(c({}, d), {
45
47
  color: (a = t == null ? void 0 : t.color) != null ? a : 16777215,
@@ -52,7 +54,7 @@ class O extends E {
52
54
  depthTest: !1,
53
55
  opacity: 0.5
54
56
  })), s = new o.Points(l, r), h = new o.Points(l, V);
55
- this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(m(t.point)), t && this.setStyle(t);
57
+ this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(E(t.point)), t && this.setStyle(t);
56
58
  }
57
59
  get color() {
58
60
  return this.fontMesh.material.color;
@@ -64,12 +66,12 @@ class O extends E {
64
66
  u(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), u(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), u(t.occlusionVisibility) && (t.occlusionVisibility ? t.occlusionMode === "depthTest" ? (this.fontMesh.material.depthTest = !1, this.backgroundMesh.visible = !1) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !0) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !1));
65
67
  }
66
68
  highlight() {
67
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * b }));
69
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * B }));
68
70
  }
69
71
  unhighlight() {
70
72
  this.highlighted && (this.highlighted = !1, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight }));
71
73
  }
72
74
  }
73
75
  export {
74
- O as PointMesh
76
+ Q as PointMesh
75
77
  };
@@ -14,6 +14,7 @@ export declare abstract class PolylineBaseMesh extends IObject3D {
14
14
  dashed: boolean;
15
15
  occlusionVisibility: boolean;
16
16
  occlusionMode: "translucence" | "depthTest";
17
+ lengthEnable: boolean;
17
18
  };
18
19
  get lineColor(): THREE.Color;
19
20
  get lineWidth(): number;
@@ -1,124 +1,119 @@
1
- var x = Object.defineProperty, B = Object.defineProperties;
2
- var T = Object.getOwnPropertyDescriptors;
3
- var r = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var p = (s, e, i) => e in s ? x(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i, a = (s, e) => {
6
- for (var i in e || (e = {}))
7
- D.call(e, i) && p(s, i, e[i]);
8
- if (r)
9
- for (var i of r(e))
10
- w.call(e, i) && p(s, i, e[i]);
1
+ var P = Object.defineProperty, S = Object.defineProperties;
2
+ var M = Object.getOwnPropertyDescriptors;
3
+ var a = Object.getOwnPropertySymbols;
4
+ var y = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
5
+ var m = (s, e, t) => e in s ? P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
6
+ for (var t in e || (e = {}))
7
+ y.call(e, t) && m(s, t, e[t]);
8
+ if (a)
9
+ for (var t of a(e))
10
+ d.call(e, t) && m(s, t, e[t]);
11
11
  return s;
12
- }, c = (s, e) => B(s, T(e));
13
- var E = (s, e) => {
14
- var i = {};
15
- for (var t in s)
16
- D.call(s, t) && e.indexOf(t) < 0 && (i[t] = s[t]);
17
- if (s != null && r)
18
- for (var t of r(s))
19
- e.indexOf(t) < 0 && w.call(s, t) && (i[t] = s[t]);
20
- return i;
12
+ }, c = (s, e) => S(s, M(e));
13
+ var f = (s, e) => {
14
+ var t = {};
15
+ for (var i in s)
16
+ y.call(s, i) && e.indexOf(i) < 0 && (t[i] = s[i]);
17
+ if (s != null && a)
18
+ for (var i of a(s))
19
+ e.indexOf(i) < 0 && d.call(s, i) && (t[i] = s[i]);
20
+ return t;
21
21
  };
22
- var l = (s, e, i) => (p(s, typeof e != "symbol" ? e + "" : e, i), i);
23
- import { anyPositionToVector3 as j } from "../../shared-utils/positionToVector3.js";
24
- import { IObject3D as F } from "../../shared-utils/three/IObject3D.js";
25
- import * as H from "three";
22
+ var l = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
23
+ import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
24
+ import { IObject3D as D } from "../../shared-utils/three/IObject3D.js";
25
+ import * as E from "three";
26
26
  import "hammerjs";
27
27
  import "three/examples/jsm/renderers/CSS3DRenderer";
28
- import "./Line.js";
28
+ import "@realsee/five/line";
29
+ import "../../shared-utils/tag.js";
30
+ import "../utils/Modules/Global.js";
29
31
  import "../../shared-utils/three/THREESphere.js";
30
32
  import "animejs";
31
- import { notNil as I } from "../../shared-utils/isNil.js";
33
+ import { notNil as V } from "../../shared-utils/isNil.js";
32
34
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
33
- import { LineWithDotsMesh as L } from "./LineWithDots.js";
34
- import { closeVectors as N } from "../../shared-utils/three/closeVectors.js";
35
- class v extends F {
36
- constructor(i) {
35
+ import { LineWithDotsMesh as W } from "./LineWithDots.js";
36
+ import { closeVectors as w } from "../../shared-utils/three/closeVectors.js";
37
+ class g extends D {
38
+ constructor(t) {
37
39
  super();
38
40
  l(this, "name", "PolylineBaseMesh");
39
41
  l(this, "lines", []);
40
42
  l(this, "withDots");
41
43
  l(this, "paramsStyle");
42
- const n = i, { withDots: t, points: o } = n, h = E(n, ["withDots", "points"]);
43
- this.withDots = t != null ? t : !0, o && this.setPoints(o), h && this.setStyle(h);
44
+ const r = t, { withDots: i, points: o } = r, n = f(r, ["withDots", "points"]);
45
+ this.withDots = i != null ? i : !0, o && this.setPoints(o), n && this.setStyle(n);
44
46
  }
45
47
  get style() {
48
+ var t;
46
49
  return {
47
50
  lineColor: this.lineColor,
48
51
  lineWidth: this.lineWidth,
49
52
  dashed: this.dashed,
50
53
  occlusionVisibility: this.occlusionVisibility,
51
- occlusionMode: this.occlusionMode
54
+ occlusionMode: this.occlusionMode,
55
+ lengthEnable: (t = this.paramsStyle) == null ? void 0 : t.lengthEnable
52
56
  };
53
57
  }
54
58
  get lineColor() {
55
- var i, t, o;
56
- return (o = (i = this.lines[0]) == null ? void 0 : i.color) != null ? o : (t = this.paramsStyle) != null && t.lineColor ? new H.Color(this.paramsStyle.lineColor) : void 0;
59
+ var t, i, o;
60
+ return (o = (t = this.lines[0]) == null ? void 0 : t.color) != null ? o : (i = this.paramsStyle) != null && i.lineColor ? new E.Color(this.paramsStyle.lineColor) : void 0;
57
61
  }
58
62
  get lineWidth() {
59
- var i, t, o;
60
- return (o = (i = this.lines[0]) == null ? void 0 : i.lineWidth) != null ? o : (t = this.paramsStyle) == null ? void 0 : t.lineWidth;
63
+ var t, i, o;
64
+ return (o = (t = this.lines[0]) == null ? void 0 : t.lineWidth) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.lineWidth;
61
65
  }
62
66
  get dashed() {
63
- var i, t, o;
64
- return (o = (i = this.lines[0]) == null ? void 0 : i.dashed) != null ? o : (t = this.paramsStyle) == null ? void 0 : t.dashed;
67
+ var t, i, o;
68
+ return (o = (t = this.lines[0]) == null ? void 0 : t.dashed) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.dashed;
65
69
  }
66
70
  get occlusionVisibility() {
67
- var i, t, o;
68
- return (o = (i = this.lines[0]) == null ? void 0 : i.occlusionVisibility) != null ? o : (t = this.paramsStyle) == null ? void 0 : t.occlusionVisibility;
71
+ var t, i, o;
72
+ return (o = (t = this.lines[0]) == null ? void 0 : t.occlusionVisibility) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.occlusionVisibility;
69
73
  }
70
74
  get occlusionMode() {
71
- var i, t, o;
72
- return (o = (i = this.lines[0]) == null ? void 0 : i.occlusionMode) != null ? o : (t = this.paramsStyle) == null ? void 0 : t.occlusionMode;
75
+ var t, i, o;
76
+ return (o = (t = this.lines[0]) == null ? void 0 : t.occlusionMode) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.occlusionMode;
73
77
  }
74
78
  get points() {
75
- var i;
76
- return this.lines.map((t) => t.points[0]).concat((i = this.lines.at(-1)) == null ? void 0 : i.points[1]).filter(Boolean);
79
+ var t;
80
+ return this.lines.map((i) => i.points[0]).concat((t = this.lines.at(-1)) == null ? void 0 : t.points[1]).filter(Boolean);
77
81
  }
78
- setPoints(i, t = { closed: !1 }) {
79
- var n, u, y, f, g, S, M, P, V, W;
80
- let o = i.map(j);
81
- t.closed && (o = N(o));
82
- const h = {
83
- lineWidth: (u = (n = this.paramsStyle) == null ? void 0 : n.lineWidth) != null ? u : this.lineWidth,
84
- lineColor: (f = (y = this.paramsStyle) == null ? void 0 : y.lineColor) != null ? f : this.lineColor,
85
- dashed: (S = (g = this.paramsStyle) == null ? void 0 : g.dashed) != null ? S : this.dashed,
86
- occlusionVisibility: (P = (M = this.paramsStyle) == null ? void 0 : M.occlusionVisibility) != null ? P : this.occlusionVisibility,
87
- occlusionMode: (W = (V = this.paramsStyle) == null ? void 0 : V.occlusionMode) != null ? W : this.occlusionMode
88
- };
89
- this.lines.length && this.lines.forEach((d) => d.removeFromParent()), this.lines = o.map((d, m) => {
90
- const b = o[m + 1];
91
- if (m !== 0 && b === void 0)
82
+ setPoints(t, i = { closed: !1 }) {
83
+ let o = t.map(b);
84
+ i.closed && (o = w(o)), this.lines.length && this.lines.forEach((n) => n.removeFromParent()), this.lines = o.map((n, r) => {
85
+ const p = o[r + 1];
86
+ if (r !== 0 && p === void 0)
92
87
  return null;
93
- const C = new L(c(a({}, h), {
94
- pointVisibility: this.withDots ? { startPoint: m === 0, endPoint: !0 } : !1
88
+ const u = new W(c(h({}, this.style), {
89
+ pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
95
90
  }));
96
- return C.setPoints([d, b]), C;
97
- }).filter(I), this.add(...this.lines);
91
+ return u.setPoints([n, p]), u;
92
+ }).filter(V), this.add(...this.lines);
98
93
  }
99
- setStyle(i) {
100
- this.paramsStyle = i, this.lines.forEach((t) => t.setStyle(i));
94
+ setStyle(t) {
95
+ this.paramsStyle = h(h({}, this.paramsStyle), t), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
101
96
  }
102
97
  highlight() {
103
- this.lines.forEach((i) => i.highlight());
98
+ this.lines.forEach((t) => t.highlight());
104
99
  }
105
100
  unhighlight() {
106
- this.lines.forEach((i) => i.unhighlight());
101
+ this.lines.forEach((t) => t.unhighlight());
107
102
  }
108
103
  }
109
- class Y extends v {
110
- constructor(...i) {
111
- super(c(a({}, i[0]), { withDots: !1 }));
104
+ class q extends g {
105
+ constructor(...t) {
106
+ super(c(h({}, t[0]), { withDots: !1 }));
112
107
  l(this, "name", "PolylineMesh");
113
108
  }
114
109
  }
115
- class Z extends v {
116
- constructor(...i) {
117
- super(c(a({}, i[0]), { withDots: !0 }));
110
+ class z extends g {
111
+ constructor(...t) {
112
+ super(c(h({}, t[0]), { withDots: !0 }));
118
113
  l(this, "name", "PolylineWithDotsMesh");
119
114
  }
120
115
  }
121
116
  export {
122
- Y as PolylineMesh,
123
- Z as PolylineWithDotsMesh
117
+ q as PolylineMesh,
118
+ z as PolylineWithDotsMesh
124
119
  };
@@ -5,7 +5,9 @@ import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.
5
5
  import "three";
6
6
  import "hammerjs";
7
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
- import "./Line.js";
8
+ import "@realsee/five/line";
9
+ import "../../shared-utils/tag.js";
10
+ import "../utils/Modules/Global.js";
9
11
  import "../../shared-utils/three/THREESphere.js";
10
12
  import "animejs";
11
13
  import { notNil as h } from "../../shared-utils/isNil.js";
@@ -14,7 +16,7 @@ import { PolygonMesh as u } from "./Polygon.js";
14
16
  import { RectangleGeometry as g } from "../utils/three/RectangleGeometry.js";
15
17
  import { getBetterNormal as f } from "../utils/getBetterNormal.js";
16
18
  import { Sculpt as d } from "../index.js";
17
- class S extends u {
19
+ class U extends u {
18
20
  constructor(t) {
19
21
  super(t);
20
22
  i(this, "name", "RectangleMesh");
@@ -36,12 +38,12 @@ class S extends u {
36
38
  return;
37
39
  }
38
40
  if (t.length === 3) {
39
- const [s, m, n] = o, p = s.clone().add(n).sub(m);
41
+ const [m, s, n] = o, p = m.clone().add(n).sub(s);
40
42
  o.push(p);
41
43
  }
42
44
  this.up.copy(f(o, d.modules.five.camera.position)), this.points = o, this.geometry = new g(o), this.planeHelperNeedUpdate = !0;
43
45
  }
44
46
  }
45
47
  export {
46
- S as RectangleMesh
48
+ U as RectangleMesh
47
49
  };
@@ -14,6 +14,7 @@ export declare class RectangleWithEdgeMesh extends RectangleMesh {
14
14
  dashed: boolean;
15
15
  occlusionVisibility: boolean;
16
16
  occlusionMode: "translucence" | "depthTest";
17
+ lengthEnable: boolean;
17
18
  color: import("three").Color;
18
19
  opacity: number;
19
20
  };
@@ -1,9 +1,9 @@
1
- var m = Object.defineProperty;
1
+ var a = Object.defineProperty;
2
2
  var u = Object.getOwnPropertySymbols;
3
- var a = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
- var n = (s, t, e) => t in s ? m(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, d = (s, t) => {
3
+ var m = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
+ var n = (s, t, e) => t in s ? a(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, d = (s, t) => {
5
5
  for (var e in t || (t = {}))
6
- a.call(t, e) && n(s, e, t[e]);
6
+ m.call(t, e) && n(s, e, t[e]);
7
7
  if (u)
8
8
  for (var e of u(t))
9
9
  g.call(t, e) && n(s, e, t[e]);
@@ -81,7 +81,7 @@ class D extends b {
81
81
  unhighlight() {
82
82
  }
83
83
  applyObjectMatrixWorld(e) {
84
- return y(this, e);
84
+ return this.updateMatrixWorld(), y(this, e);
85
85
  }
86
86
  applyObjectQuaternion(e) {
87
87
  const r = this.quaternion.clone();