@realsee/dnalogel 3.47.8 → 3.47.9

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 (110) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/Sculpt/Meshes/Rectangle.d.ts +0 -1
  3. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +9 -0
  4. package/dist/Sculpt/Objects/Line/index.d.ts +3 -3
  5. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -3
  6. package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -3
  7. package/dist/Sculpt/Objects/Rectangle/index.d.ts +6 -2
  8. package/dist/Sculpt/typings/style.d.ts +8 -1
  9. package/dist/index.cjs.js +32 -32
  10. package/dist/index.js +1453 -1436
  11. package/dist/index.umd.js +33 -33
  12. package/dist/shared-utils/tag.d.ts +5 -0
  13. package/libs/AreaMakerPlugin/Controller.js +1 -1
  14. package/libs/AreaMakerPlugin/index.js +1 -1
  15. package/libs/AreaMakerPlugin/utils/Item.js +1 -1
  16. package/libs/CSS3DRenderPlugin/Controller.js +1 -1
  17. package/libs/CSS3DRenderPlugin/index.js +1 -1
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -1
  19. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -1
  20. package/libs/CruisePlugin/BaseController.js +1 -1
  21. package/libs/CruisePlugin/Move.js +1 -1
  22. package/libs/CruisePlugin/Work.js +1 -1
  23. package/libs/CruisePlugin/index.js +1 -1
  24. package/libs/CurrentPanoImagePlugin/Controller.js +1 -1
  25. package/libs/CurrentPanoImagePlugin/index.js +1 -1
  26. package/libs/GuideLinePlugin/Controller.js +1 -1
  27. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  29. package/libs/GuideLinePlugin/index.js +1 -1
  30. package/libs/ModelMakerPlugin/Controller.js +1 -1
  31. package/libs/ModelMakerPlugin/index.js +1 -1
  32. package/libs/ModelMakerPlugin/item/baseItem.js +1 -1
  33. package/libs/ModelMakerPlugin/item/boxItem.js +1 -1
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +1 -1
  35. package/libs/ModelMakerPlugin/item/prismItem.js +1 -1
  36. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  37. package/libs/ModelTVVideoPlugin/index.js +1 -1
  38. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  39. package/libs/Object3DHelperPlugin/index.js +1 -1
  40. package/libs/PanoCompassPlugin/Controller.js +1 -1
  41. package/libs/PanoCompassPlugin/index.js +1 -1
  42. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  43. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  44. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  45. package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
  46. package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
  47. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  48. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  49. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  50. package/libs/PanoMeasurePlugin/Model/area.js +1 -1
  51. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -1
  52. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
  53. package/libs/PanoMeasurePlugin/index.js +1 -1
  54. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
  55. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  56. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  57. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +1 -1
  58. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  59. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  60. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
  61. package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
  62. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +1 -1
  63. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +1 -1
  64. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
  65. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +1 -1
  66. package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
  67. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  68. package/libs/PanoTagPlugin/controller/index.js +1 -1
  69. package/libs/PanoTagPlugin/index.js +1 -1
  70. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +1 -1
  71. package/libs/PanoVideoPlugin/Controller.js +1 -1
  72. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  73. package/libs/PanoVideoPlugin/index.js +1 -1
  74. package/libs/PipelinePlugin/Controller.js +1 -1
  75. package/libs/PipelinePlugin/index.js +1 -1
  76. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +1 -1
  77. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +1 -1
  78. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -1
  79. package/libs/Sculpt/Meshes/Box.js +10 -10
  80. package/libs/Sculpt/Meshes/Line.js +18 -15
  81. package/libs/Sculpt/Meshes/Rectangle.d.ts +0 -1
  82. package/libs/Sculpt/Meshes/Rectangle.js +14 -17
  83. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +9 -0
  84. package/libs/Sculpt/Meshes/RectangleWithEdge.js +29 -19
  85. package/libs/Sculpt/Objects/Line/index.d.ts +3 -3
  86. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -3
  87. package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -3
  88. package/libs/Sculpt/Objects/Rectangle/index.d.ts +6 -2
  89. package/libs/Sculpt/Objects/Rectangle/index.js +77 -67
  90. package/libs/Sculpt/typings/style.d.ts +8 -1
  91. package/libs/Sculpt/utils/Meshes/getLengthHTML.js +2 -2
  92. package/libs/Sculpt/utils/three/RectangleGeometry.js +1 -1
  93. package/libs/base/BasePlugin.js +1 -1
  94. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  95. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  96. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  97. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  98. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  100. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  101. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  102. package/libs/index.js +1 -1
  103. package/libs/shared-utils/five/vector3ToScreen.js +5 -7
  104. package/libs/shared-utils/logger.js +1 -1
  105. package/libs/shared-utils/tag.d.ts +5 -0
  106. package/libs/shared-utils/tag.js +31 -26
  107. package/package.json +1 -1
  108. /package/dist/shared-utils/three/{raycaster.d.ts → temp.d.ts} +0 -0
  109. /package/libs/shared-utils/three/{raycaster.d.ts → temp.d.ts} +0 -0
  110. /package/libs/shared-utils/three/{raycaster.js → temp.js} +0 -0
@@ -1,44 +1,49 @@
1
1
  var u = Object.defineProperty;
2
2
  var g = (h, t, e) => t in h ? u(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
3
- var o = (h, t, e) => (g(h, typeof t != "symbol" ? t + "" : t, e), e);
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
7
  import { getFiveModel as x } from "./five/getFiveModel.js";
8
- import { _raycaster as m } from "./three/raycaster.js";
9
8
  import { FiveUtil as U } from "./Utils/FiveUtil.js";
9
+ import { _raycaster as m } from "./three/temp.js";
10
10
  const v = "LightTagContainer_shgjakdhwakjdhsja", w = new b.Vector2();
11
11
  class E {
12
- constructor(t, e, s) {
13
- o(this, "container");
14
- o(this, "visible", !1);
15
- o(this, "enabled", !1);
16
- o(this, "wrapper");
17
- o(this, "positionsForRotate");
18
- o(this, "tagWrapper");
19
- o(this, "five");
20
- o(this, "originPosition");
21
- o(this, "transformedPosition");
22
- o(this, "disposer");
23
- o(this, "config");
24
- o(this, "fiveUtil");
25
- o(this, "onCameraUpdate", () => {
12
+ constructor(t, e, o) {
13
+ s(this, "container");
14
+ s(this, "visible", !1);
15
+ s(this, "enabled", !1);
16
+ s(this, "wrapper");
17
+ s(this, "positionsForRotate");
18
+ /**
19
+ * @description 碰撞检测
20
+ * @default true
21
+ */
22
+ s(this, "intersectCheck", !0);
23
+ s(this, "tagWrapper");
24
+ s(this, "five");
25
+ s(this, "originPosition");
26
+ s(this, "transformedPosition");
27
+ s(this, "disposer");
28
+ s(this, "config");
29
+ s(this, "fiveUtil");
30
+ s(this, "onCameraUpdate", () => {
26
31
  this.visible !== !1 && this.updateScreenPosition();
27
32
  });
28
- o(this, "onFiveEveryReady", () => {
33
+ s(this, "onFiveEveryReady", () => {
29
34
  var t;
30
- if (this.visible && this.five.state.mode !== "Panorama") {
35
+ if (this.intersectCheck && this.visible && this.five.state.mode !== "Panorama") {
31
36
  let e = 0.01;
32
37
  this.fiveUtil.workUtil.fromType === "poincare" && (e = 0.05), m.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
33
- const s = (t = x(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
34
- (s == null ? void 0 : s.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");
38
+ const o = (t = x(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
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");
35
40
  }
36
41
  });
37
42
  var n, r, a;
38
- 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 = s == null ? void 0 : s.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 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 = (() => {
39
44
  const i = document.createElement("div");
40
45
  return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.transition = "opacity 0.2s linear", i;
41
- })(), this.config = s != null ? s : {}, this.enable(), this.show();
46
+ })(), this.config = o != null ? o : {}, this.enable(), this.show();
42
47
  }
43
48
  show() {
44
49
  this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.onCameraUpdate();
@@ -47,10 +52,10 @@ class E {
47
52
  this.visible = !1, this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
48
53
  }
49
54
  enable() {
50
- var s, n, r, a;
55
+ var o, n, r, a;
51
56
  if (this.enabled)
52
57
  return;
53
- this.enabled = !0, this.wrapper = (r = (n = this.config.wrapper) != null ? n : (s = this.five.getElement()) == null ? void 0 : s.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (a = document.getElementById(v)) != null ? a : (() => {
58
+ this.enabled = !0, this.wrapper = (r = (n = this.config.wrapper) != null ? n : (o = this.five.getElement()) == null ? void 0 : o.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (a = document.getElementById(v)) != null ? a : (() => {
54
59
  const i = document.createElement("div");
55
60
  return i.id = v, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", i;
56
61
  })(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
@@ -88,7 +93,7 @@ class E {
88
93
  this.container.style.left = "-100%", this.container.style.top = "-100%";
89
94
  return;
90
95
  }
91
- const s = (() => {
96
+ const o = (() => {
92
97
  const r = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), a = this.transformedPosition.distanceTo(this.five.camera.position);
93
98
  return Math.max(Math.min(1 - r * a / 40, 1), 0.5);
94
99
  })(), n = (() => {
@@ -97,7 +102,7 @@ class E {
97
102
  const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t), p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, P = f.topPx - p.topPx;
98
103
  return Math.atan2(P, y) * (180 / Math.PI);
99
104
  })();
100
- this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${s})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
105
+ 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)`);
101
106
  }
102
107
  }
103
108
  function S(h, t, e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.47.8",
3
+ "version": "3.47.9",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",