@realsee/dnalogel 3.44.5 → 3.46.0

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 (162) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Area.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Box.d.ts +1 -1
  4. package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
  5. package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  6. package/dist/Sculpt/Meshes/Line.d.ts +8 -2
  7. package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  8. package/dist/Sculpt/Meshes/Point.d.ts +1 -1
  9. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  10. package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
  11. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  12. package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
  13. package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
  14. package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
  15. package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  16. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
  17. package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  18. package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
  19. package/dist/Sculpt/index.d.ts +5 -0
  20. package/dist/Sculpt/typings/index.d.ts +11 -6
  21. package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  22. package/dist/Sculpt/typings/utils.type.d.ts +2 -0
  23. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  24. package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  25. package/dist/index.cjs.js +56 -56
  26. package/dist/index.js +29820 -29686
  27. package/dist/index.umd.js +49 -49
  28. package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
  29. package/dist/shared-utils/tag.d.ts +6 -3
  30. package/libs/AreaMakerPlugin/Controller.js +150 -78
  31. package/libs/AreaMakerPlugin/index.js +76 -4
  32. package/libs/AreaMakerPlugin/utils/Item.js +190 -111
  33. package/libs/CSS3DRenderPlugin/Controller.js +89 -29
  34. package/libs/CSS3DRenderPlugin/index.js +75 -15
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
  37. package/libs/CruisePlugin/BaseController.js +121 -49
  38. package/libs/CruisePlugin/Move.js +73 -21
  39. package/libs/CruisePlugin/Work.js +98 -46
  40. package/libs/CruisePlugin/index.js +79 -27
  41. package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
  42. package/libs/CurrentPanoImagePlugin/index.js +76 -4
  43. package/libs/GuideLinePlugin/Controller.js +82 -30
  44. package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
  45. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  46. package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
  47. package/libs/GuideLinePlugin/index.js +79 -27
  48. package/libs/ModelMakerPlugin/Controller.js +140 -83
  49. package/libs/ModelMakerPlugin/index.js +75 -18
  50. package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
  51. package/libs/ModelTVVideoPlugin/index.js +68 -8
  52. package/libs/Object3DHelperPlugin/Controller.js +54 -31
  53. package/libs/Object3DHelperPlugin/index.js +35 -13
  54. package/libs/PanoCompassPlugin/Controller.js +97 -42
  55. package/libs/PanoCompassPlugin/index.js +71 -16
  56. package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
  57. package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
  58. package/libs/PanoDoorLabelPlugin/index.js +76 -4
  59. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
  60. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
  61. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
  62. package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
  63. package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
  64. package/libs/PanoMeasurePlugin/Model/area.js +114 -38
  65. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
  66. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
  67. package/libs/PanoMeasurePlugin/index.js +77 -32
  68. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
  69. package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
  70. package/libs/PanoSpatialTagPlugin/index.js +66 -6
  71. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
  72. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
  73. package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
  74. package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
  75. package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
  76. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
  77. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
  78. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
  79. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
  80. package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
  81. package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
  82. package/libs/PanoTagPlugin/controller/index.js +113 -61
  83. package/libs/PanoTagPlugin/index.js +89 -37
  84. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
  85. package/libs/PanoVideoPlugin/Controller.js +137 -65
  86. package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
  87. package/libs/PanoVideoPlugin/index.js +82 -10
  88. package/libs/PipelinePlugin/Controller.js +199 -128
  89. package/libs/PipelinePlugin/index.js +76 -5
  90. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
  91. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
  92. package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
  93. package/libs/Sculpt/Meshes/Area.d.ts +1 -1
  94. package/libs/Sculpt/Meshes/Box.d.ts +1 -1
  95. package/libs/Sculpt/Meshes/Box.js +16 -15
  96. package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
  97. package/libs/Sculpt/Meshes/Circle.js +1 -1
  98. package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  99. package/libs/Sculpt/Meshes/Cylinder.js +8 -7
  100. package/libs/Sculpt/Meshes/Line.d.ts +8 -2
  101. package/libs/Sculpt/Meshes/Line.js +93 -65
  102. package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  103. package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
  104. package/libs/Sculpt/Meshes/Point.d.ts +1 -1
  105. package/libs/Sculpt/Meshes/Point.js +7 -6
  106. package/libs/Sculpt/Meshes/Polygon.js +1 -1
  107. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  108. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  109. package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
  110. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  111. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  112. package/libs/Sculpt/Objects/Box/index.js +41 -43
  113. package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
  114. package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
  115. package/libs/Sculpt/Objects/Line/Editor.js +62 -0
  116. package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
  117. package/libs/Sculpt/Objects/Line/index.js +107 -0
  118. package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
  119. package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  120. package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
  121. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
  122. package/libs/Sculpt/Objects/Polygon/index.js +80 -80
  123. package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  124. package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
  125. package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
  126. package/libs/Sculpt/Objects/Polyline/index.js +63 -58
  127. package/libs/Sculpt/Objects/Prism/index.js +56 -58
  128. package/libs/Sculpt/index.d.ts +5 -0
  129. package/libs/Sculpt/index.js +58 -48
  130. package/libs/Sculpt/typings/index.d.ts +11 -6
  131. package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  132. package/libs/Sculpt/typings/utils.type.d.ts +2 -0
  133. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  134. package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
  135. package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  136. package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
  137. package/libs/base/BasePlugin.js +14 -13
  138. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
  139. package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
  140. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
  141. package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
  142. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
  143. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
  144. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
  145. package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
  146. package/libs/floorplan/index.js +1 -0
  147. package/libs/index.js +194 -192
  148. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
  149. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
  150. package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
  151. package/libs/shared-utils/Utils/WorkUtil.js +8 -7
  152. package/libs/shared-utils/five/index.js +3 -2
  153. package/libs/shared-utils/five/lookObject.js +3 -2
  154. package/libs/shared-utils/logger.js +1 -1
  155. package/libs/shared-utils/tag.d.ts +6 -3
  156. package/libs/shared-utils/tag.js +38 -24
  157. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
  158. package/libs/shared-utils/three/index.js +1 -0
  159. package/package.json +1 -1
  160. package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  161. package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  162. /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
@@ -19,27 +19,28 @@ class v extends m {
19
19
  return n.set(r, o), o;
20
20
  }
21
21
  /**
22
- * @description: 设置插件当前的 workCode
22
+ * @description 设置插件当前的 workCode
23
23
  */
24
24
  set workCode(r) {
25
25
  this._workCode = r;
26
26
  }
27
27
  /**
28
- * @description: 获取插件当前的 workCode
28
+ * @description 获取插件当前的 workCode
29
29
  */
30
30
  get workCode() {
31
31
  var r;
32
32
  return (r = this._workCode) != null ? r : this.five.state.workCode;
33
33
  }
34
34
  /**
35
- * @description: 获取当前的 work
35
+ * @description 获取当前的 work
36
36
  */
37
37
  get work() {
38
38
  var r, o;
39
39
  return (o = (r = this.five.works) == null ? void 0 : r.find((t) => t.workCode === this.workCode)) != null ? o : this.five.work;
40
40
  }
41
41
  get observers() {
42
- return this.work.observers;
42
+ var r;
43
+ return (r = this.work) == null ? void 0 : r.observers;
43
44
  }
44
45
  get transform() {
45
46
  var o, t, i, w;
@@ -47,7 +48,7 @@ class v extends m {
47
48
  return r ? r.clone() : new d.Matrix4();
48
49
  }
49
50
  /**
50
- * @description: 获取全景点坐标
51
+ * @description 获取全景点坐标
51
52
  */
52
53
  getObserverPosition(r) {
53
54
  var t;
@@ -56,7 +57,7 @@ class v extends m {
56
57
  return a(o, this.transform);
57
58
  }
58
59
  /**
59
- * @description: 获取全景点位和模型的地面坐标
60
+ * @description 获取全景点位和模型的地面坐标
60
61
  */
61
62
  getObserverStandingPosition(r) {
62
63
  var t;
@@ -65,7 +66,7 @@ class v extends m {
65
66
  return a(o, this.transform);
66
67
  }
67
68
  /**
68
- * @description: 获取observer
69
+ * @description 获取observer
69
70
  */
70
71
  getObserver(r) {
71
72
  var o;
@@ -3,11 +3,12 @@ import "hammerjs";
3
3
  import "three/examples/jsm/renderers/CSS3DRenderer";
4
4
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
5
5
  import "@realsee/five/line";
6
+ import "../../Sculpt/utils/Modules/Global.js";
6
7
  import "../three/THREESphere.js";
7
8
  import "animejs";
8
- function d(e) {
9
+ function f(e) {
9
10
  return e.model ? e.work ? e.model.loaded ? e.model.name !== e.work.model.file ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
10
11
  }
11
12
  export {
12
- d as checkFiveModelLoaded
13
+ f as checkFiveModelLoaded
13
14
  };
@@ -33,9 +33,10 @@ import { FiveUtil as O } from "../Utils/FiveUtil.js";
33
33
  import { notNil as Y } from "../isNil.js";
34
34
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
35
35
  import "@realsee/five/line";
36
+ import "../../Sculpt/utils/Modules/Global.js";
36
37
  import { worldBoundingSphere as j } from "../three/boundingBox.js";
37
38
  import "animejs";
38
- function $(e, o, t) {
39
+ function tt(e, o, t) {
39
40
  return g(this, null, function* () {
40
41
  var P, x, z;
41
42
  if (!o)
@@ -78,5 +79,5 @@ function $(e, o, t) {
78
79
  });
79
80
  }
80
81
  export {
81
- $ as lookObject
82
+ tt as lookObject
82
83
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.44.5",
3
+ "%c %c@realsee/dnalogel %cv3.46.0",
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",
@@ -6,12 +6,13 @@ export declare class LightTag {
6
6
  visible: boolean;
7
7
  enabled: boolean;
8
8
  wrapper: HTMLElement;
9
+ private tagWrapper;
9
10
  private five;
10
- private originPosition;
11
- private transformedPosition;
11
+ private originPosition?;
12
+ private transformedPosition?;
12
13
  private disposer;
13
14
  private config;
14
- constructor(five: Five, position: AnyPosition, config?: {
15
+ constructor(five: Five, position?: AnyPosition, config?: {
15
16
  wrapper?: HTMLElement;
16
17
  });
17
18
  show(): void;
@@ -20,7 +21,9 @@ export declare class LightTag {
20
21
  }): void;
21
22
  enable(): void;
22
23
  disable(): void;
24
+ destroy(): void;
23
25
  setTransformMatrix(matrix: THREE.Matrix4): void;
26
+ setPosition(position: THREE.Vector3): void;
24
27
  updateScreenPosition(): void;
25
28
  private onCameraUpdate;
26
29
  private onFiveEveryReady;
@@ -1,17 +1,18 @@
1
- var l = Object.defineProperty;
2
- var p = (s, t, e) => t in s ? l(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
- var i = (s, t, e) => (p(s, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { anyPositionToVector3 as f } from "./positionToVector3.js";
5
- import * as d from "three";
1
+ var c = Object.defineProperty;
2
+ var p = (n, t, e) => t in n ? c(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var i = (n, t, e) => (p(n, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { anyPositionToVector3 as d } from "./positionToVector3.js";
5
+ import * as f from "three";
6
6
  import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
7
7
  import { getFiveModel as m } from "./five/getFiveModel.js";
8
- const c = "LightTagContainer_shgjakdhwakjdhsja";
8
+ const l = "LightTagContainer_shgjakdhwakjdhsja";
9
9
  class v {
10
- constructor(t, e, n) {
10
+ constructor(t, e, s) {
11
11
  i(this, "container");
12
12
  i(this, "visible", !1);
13
13
  i(this, "enabled", !1);
14
14
  i(this, "wrapper");
15
+ i(this, "tagWrapper");
15
16
  i(this, "five");
16
17
  i(this, "originPosition");
17
18
  i(this, "transformedPosition");
@@ -23,16 +24,17 @@ class v {
23
24
  i(this, "onFiveEveryReady", () => {
24
25
  var t;
25
26
  if (this.visible && this.five.state.mode !== "Panorama") {
26
- const e = new d.Raycaster();
27
+ const e = new f.Raycaster();
27
28
  e.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
28
- const n = (t = m(this.five).intersectRaycaster(e)) == null ? void 0 : t[0];
29
- (n == null ? void 0 : n.distance) > 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");
29
+ const s = (t = m(this.five).intersectRaycaster(e)) == null ? void 0 : t[0];
30
+ (s == null ? void 0 : s.distance) > 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");
30
31
  }
31
32
  });
32
- this.five = t, this.originPosition = f(e).clone(), this.transformedPosition = this.originPosition.clone(), this.container = (() => {
33
- const o = document.createElement("div");
34
- return o.style.width = "0", o.style.height = "0", o.style.position = "absolute", o;
35
- })(), this.config = n, this.enable(), this.show();
33
+ var a;
34
+ this.five = t, this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (a = this.originPosition) == null ? void 0 : a.clone(), this.container = (() => {
35
+ const r = document.createElement("div");
36
+ return r.style.width = "0", r.style.height = "0", r.style.position = "absolute", r;
37
+ })(), this.config = s != null ? s : {}, this.enable(), this.show();
36
38
  }
37
39
  show() {
38
40
  this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
@@ -41,13 +43,13 @@ class v {
41
43
  this.visible = !1, t != null && t.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
42
44
  }
43
45
  enable() {
44
- var n, o, a, h;
46
+ var s, a, r, h;
45
47
  if (this.enabled)
46
48
  return;
47
- this.enabled = !0, this.wrapper || (this.wrapper = (o = (n = this.config.wrapper) != null ? n : document.getElementById(c)) != null ? o : (() => {
48
- const r = document.createElement("div");
49
- return r.id = c, r.style.position = "absolute", r.style.top = "0", r.style.left = "0", r.style.width = "100%", r.style.height = "100%", r.style.pointerEvents = "none", r;
50
- })(), (a = this.five.getElement()) != null && a.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
49
+ this.enabled = !0, this.wrapper = (r = (a = this.config.wrapper) != null ? a : (s = this.five.getElement()) == null ? void 0 : s.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (h = document.getElementById(l)) != null ? h : (() => {
50
+ const o = document.createElement("div");
51
+ return o.id = l, o.style.position = "absolute", o.style.top = "0", o.style.left = "0", o.style.width = "100%", o.style.height = "100%", o.style.pointerEvents = "none", o;
52
+ })(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
51
53
  let t = !1;
52
54
  const e = () => {
53
55
  t || (t = !0, this.five.ready().then(() => {
@@ -60,19 +62,31 @@ class v {
60
62
  }
61
63
  disable() {
62
64
  var t;
63
- this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (t = this.disposer) == null || t.call(this));
65
+ this.enabled && (this.enabled = !1, this.tagWrapper.removeChild(this.container), (t = this.disposer) == null || t.call(this));
66
+ }
67
+ destroy() {
68
+ this.disable(), this.container.remove();
64
69
  }
65
70
  setTransformMatrix(t) {
66
- this.transformedPosition = this.originPosition.clone().applyMatrix4(t), this.onCameraUpdate();
71
+ var e;
72
+ this.transformedPosition = (e = this.originPosition) == null ? void 0 : e.clone().applyMatrix4(t), this.onCameraUpdate();
73
+ }
74
+ setPosition(t) {
75
+ this.transformedPosition = t, this.onCameraUpdate();
67
76
  }
68
77
  updateScreenPosition() {
78
+ if (!this.transformedPosition) {
79
+ this.container.style.left = "-100%", this.container.style.top = "-100%";
80
+ return;
81
+ }
69
82
  const t = y(this.five.camera, this.transformedPosition);
70
83
  t ? (this.container.style.left = t.leftPercent + "%", this.container.style.top = t.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
71
84
  }
72
85
  }
73
- function b(s, t, e) {
74
- return new v(s, t, e);
86
+ function w(n, t, e) {
87
+ return new v(n, t, e);
75
88
  }
76
89
  export {
77
- b as tag
90
+ v as LightTag,
91
+ w as tag
78
92
  };
@@ -1,22 +1,22 @@
1
- var d = Object.defineProperty;
2
- var f = (a, i, e) => i in a ? d(a, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[i] = e;
3
- var t = (a, i, e) => (f(a, typeof i != "symbol" ? i + "" : i, e), e);
4
- import * as m from "three";
5
- import { Magnifier as p } from "../../Magnifier.js";
6
- import { PointHelper as u } from "./PointHelper.js";
7
- import { Subscribe as b } from "../../../Subscribe.js";
8
- import { PointHelper2 as g } from "./PointHelper2.js";
1
+ var f = Object.defineProperty;
2
+ var m = (a, i, e) => i in a ? f(a, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[i] = e;
3
+ var t = (a, i, e) => (m(a, typeof i != "symbol" ? i + "" : i, e), e);
4
+ import * as p from "three";
5
+ import { Magnifier as u } from "../../Magnifier.js";
6
+ import { PointHelper as b } from "./PointHelper.js";
7
+ import { Subscribe as g } from "../../../Subscribe.js";
8
+ import { PointHelper2 as o } from "./PointHelper2.js";
9
9
  import "../../THREESphere.js";
10
10
  import "animejs";
11
- class M {
11
+ class P {
12
12
  constructor(i, e) {
13
13
  t(this, "five");
14
- t(this, "hooks", new b());
14
+ t(this, "hooks", new g());
15
15
  t(this, "position");
16
16
  t(this, "magnifier", null);
17
17
  t(this, "pointHelper", null);
18
18
  t(this, "state", { enabled: !1, visible: !0 });
19
- t(this, "group", new m.Group());
19
+ t(this, "group", new p.Group());
20
20
  t(this, "show", () => {
21
21
  var i, e;
22
22
  this.state.visible || (this.state.visible = !0, (i = this.pointHelper) == null || i.show(), (e = this.magnifier) == null || e.enable(), this.five.needsRender = !0);
@@ -38,10 +38,10 @@ class M {
38
38
  });
39
39
  t(this, "abortUpdateMagnifier", () => {
40
40
  });
41
- var s, n, h, l;
42
- this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new p(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 });
41
+ var s, n, h, l, d;
42
+ this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new u(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 });
43
43
  let r;
44
- (e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? r = new u(i) : (e == null ? void 0 : e.pointHelper) === "highlight" ? r = new g(i) : r = e.pointHelper, this.pointHelper = r, this.group.name = "five-point-selector", this.five.scene.add(this.group), (l = this.magnifier) == null || l.appendTo((h = (n = e.container) != null ? n : i.getElement().parentElement) != null ? h : document.body);
44
+ (e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? r = new b(i) : (e == null ? void 0 : e.pointHelper) === "highlight" ? r = new o(i) : r = e.pointHelper, this.pointHelper = r, this.group.name = "five-point-selector", this.five.scene.add(this.group), (d = this.magnifier) == null || d.appendTo((l = (h = e.container) != null ? h : (n = i.getElement()) == null ? void 0 : n.parentElement) != null ? l : document.body);
45
45
  }
46
46
  enable() {
47
47
  var i;
@@ -56,5 +56,5 @@ class M {
56
56
  }
57
57
  }
58
58
  export {
59
- M as PointSelectorHelper
59
+ P as PointSelectorHelper
60
60
  };
@@ -2,6 +2,7 @@ import "hammerjs";
2
2
  import "three";
3
3
  import "three/examples/jsm/renderers/CSS3DRenderer";
4
4
  import "@realsee/five/line";
5
+ import "../../Sculpt/utils/Modules/Global.js";
5
6
  import "./THREESphere.js";
6
7
  import "animejs";
7
8
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.44.5",
3
+ "version": "3.46.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -1,3 +0,0 @@
1
- import type { ConditionalSimplifyDeep } from 'type-fest/source/conditional-simplify';
2
- import type * as THREE from 'three';
3
- export type SimplifyDeep<T> = ConditionalSimplifyDeep<T, THREE.Color | THREE.Vector3 | Function | Iterable<unknown>, object>;
@@ -1,3 +0,0 @@
1
- import type { ConditionalSimplifyDeep } from 'type-fest/source/conditional-simplify';
2
- import type * as THREE from 'three';
3
- export type SimplifyDeep<T> = ConditionalSimplifyDeep<T, THREE.Color | THREE.Vector3 | Function | Iterable<unknown>, object>;