@realsee/dnalogel 3.78.0-alpha.3 → 3.78.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 (148) hide show
  1. package/CHANGELOG.md +40 -10
  2. package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
  3. package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +55 -0
  4. package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
  5. package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
  6. package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
  7. package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
  8. package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
  9. package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
  10. package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
  11. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
  12. package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
  13. package/dist/Sculpt/Meshes/Line.d.ts +4 -0
  14. package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
  15. package/dist/index.cjs.js +101 -88
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.js +14196 -12441
  18. package/dist/index.umd.js +83 -70
  19. package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
  20. package/libs/AreaMakerPlugin/Controller.js +3 -2
  21. package/libs/AreaMakerPlugin/index.js +3 -2
  22. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  23. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  24. package/libs/CSS3DRenderPlugin/index.js +6 -5
  25. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
  26. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
  27. package/libs/CruisePlugin/BaseController.js +5 -4
  28. package/libs/CruisePlugin/Move.js +3 -2
  29. package/libs/CruisePlugin/Work.js +3 -2
  30. package/libs/CruisePlugin/index.js +7 -6
  31. package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
  32. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  33. package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
  34. package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
  35. package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +16 -6
  36. package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +128 -102
  37. package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
  38. package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
  39. package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
  40. package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
  41. package/libs/DigitalPerformancePlugin/mock.js +272 -274
  42. package/libs/GuideLinePlugin/Controller.js +7 -6
  43. package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
  44. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
  45. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
  46. package/libs/GuideLinePlugin/index.js +7 -6
  47. package/libs/MeasurePlugin/Controller.js +11 -10
  48. package/libs/MeasurePlugin/index.js +5 -4
  49. package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
  50. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  51. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  52. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  53. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  54. package/libs/ModelMakerPlugin/Controller.js +3 -2
  55. package/libs/ModelMakerPlugin/index.js +3 -2
  56. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  57. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  58. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  59. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  60. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  61. package/libs/ModelTVVideoPlugin/index.js +3 -2
  62. package/libs/ModelViewPlugin/Plugin.js +20 -19
  63. package/libs/ModelViewPlugin/index.js +1 -0
  64. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  65. package/libs/Object3DHelperPlugin/index.js +6 -5
  66. package/libs/PanoCompassPlugin/Controller.js +3 -2
  67. package/libs/PanoCompassPlugin/index.js +4 -3
  68. package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
  69. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  70. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  71. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  72. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  73. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  74. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  75. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  76. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  77. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
  78. package/libs/PanoMeasurePlugin/index.js +14 -13
  79. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  80. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  81. package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
  82. package/libs/PanoRulerProPlugin/index.js +4 -3
  83. package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
  84. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  85. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +141 -138
  86. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  87. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  88. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  89. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  90. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  91. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  92. package/libs/PanoTagPlugin/Components/TagItem.js +131 -122
  93. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +50 -49
  94. package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +69 -65
  95. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
  96. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
  97. package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +2 -90
  98. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  99. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  100. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  101. package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +31 -29
  102. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  103. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  104. package/libs/PanoTagPlugin/controller/index.js +30 -29
  105. package/libs/PanoTagPlugin/index.js +12 -11
  106. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
  107. package/libs/PanoTagPlugin/utils/index.js +31 -30
  108. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  109. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  110. package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
  111. package/libs/PanoTagPlugin/utils/tagPosition.js +34 -32
  112. package/libs/PanoVideoPlugin/Controller.js +9 -8
  113. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  114. package/libs/PanoVideoPlugin/index.js +6 -5
  115. package/libs/PipelinePlugin/Controller.js +3 -2
  116. package/libs/PipelinePlugin/index.js +4 -3
  117. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  118. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  119. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  120. package/libs/Sculpt/Meshes/Line.d.ts +4 -0
  121. package/libs/Sculpt/Meshes/Line.js +85 -76
  122. package/libs/Sculpt/Meshes/Point.js +28 -28
  123. package/libs/Sculpt/Meshes/Polygon.js +43 -43
  124. package/libs/Sculpt/Objects/Base/Editor.d.ts +9 -2
  125. package/libs/Sculpt/Objects/Base/Editor.js +72 -63
  126. package/libs/Sculpt/index.js +1 -1
  127. package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
  128. package/libs/base/BasePlugin.js +5 -5
  129. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  130. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  131. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  132. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  133. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  134. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  135. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  136. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  137. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  138. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  139. package/libs/index.d.ts +1 -0
  140. package/libs/index.js +162 -150
  141. package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
  142. package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
  143. package/libs/shared-utils/logger.js +1 -1
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
  145. package/libs/shared-utils/url/replace-static-prefix.js +12 -7
  146. package/package.json +3 -3
  147. package/libs/PanoTagPlugin/controller/Tag/MaskTag1.d.ts +0 -202
  148. package/libs/PanoTagPlugin/controller/Tag/MaskTag1.js +0 -617
@@ -1,6 +1,6 @@
1
1
  var h = Object.defineProperty;
2
- var c = (r, i, t) => i in r ? h(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t;
3
- var o = (r, i, t) => (c(r, typeof i != "symbol" ? i + "" : i, t), t);
2
+ var c = (e, i, t) => i in e ? h(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
+ var o = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, t), t);
4
4
  import d from "./HTML.js";
5
5
  import u from "./mobileHTML.js";
6
6
  import { controllerBackgroundStyle as y, operatingSpaceStyle as f, uiWrapperStyle as v, textStyle as w, exitItemStyle as C, exitIconStyle as E } from "./style.js";
@@ -86,6 +86,7 @@ import "../../../Sculpt/Meshes/Line.js";
86
86
  import "../../../Sculpt/typings/style.js";
87
87
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
88
88
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
89
+ import "../../../shared-utils/five/getFiveFromParentChain.js";
89
90
  import "../../../shared-utils/three/core/LineGeometry.js";
90
91
  import "../../../shared-utils/three/core/LineMaterial.js";
91
92
  import "../../../shared-utils/three/core/Line2.js";
@@ -109,7 +110,7 @@ import "../../Components/Common/Switcher1.js";
109
110
  import "../../Components/Common/CircleButton.js";
110
111
  import "../../../vendor/svelte/transition/index.js";
111
112
  import "../../../vendor/svelte/easing/index.js";
112
- class Li {
113
+ class Ii {
113
114
  constructor(i, t) {
114
115
  o(this, "revoke");
115
116
  o(this, "container");
@@ -126,30 +127,30 @@ class Li {
126
127
  if (!t || !i)
127
128
  throw new Error("cannot find dom");
128
129
  this.mode === "pc" && (Object.assign(t.style, C), Object.assign(i == null ? void 0 : i.style, E));
129
- const e = () => {
130
+ const r = () => {
130
131
  t.style.opacity = "1";
131
132
  }, s = () => {
132
133
  t.style.opacity = "0.85";
133
- }, n = () => {
134
+ }, m = () => {
134
135
  this.measureController.disable();
135
136
  };
136
- return t.addEventListener("click", n), t.addEventListener("mouseenter", e), t.addEventListener("mouseleave", s), () => {
137
- t.removeEventListener("click", n), t.removeEventListener("mouseenter", e), t.removeEventListener("mouseleave", s);
137
+ return t.addEventListener("click", m), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", s), () => {
138
+ t.removeEventListener("click", m), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", s);
138
139
  };
139
140
  });
140
- var s, n;
141
+ var s, m;
141
142
  this._params = t, this.measureController = i, this.mode = (s = t.mode) != null ? s : "pc", this.wrapper = t.container, this.container = document.createElement("div"), this.wrapper.appendChild(this.container);
142
- const e = (n = t.useNewUI) != null ? n : !1;
143
- if (this.useNewUI = e, e && (this.container.style.position = "absolute", this.container.style.top = "0", this.container.style.left = "0", this.container.style.width = "100%", this.container.style.height = "100%", t.pointSelectorMode === "cursor" ? this.svelteDom = new b({
143
+ const r = (m = t.useNewUI) != null ? m : !1;
144
+ if (this.useNewUI = r, r && (this.container.style.position = "absolute", this.container.style.top = "0", this.container.style.left = "0", this.container.style.width = "100%", this.container.style.height = "100%", t.pointSelectorMode === "cursor" ? this.svelteDom = new b({
144
145
  target: this.container,
145
146
  props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
146
147
  }) : t.pointSelectorMode === "fixed" && (this.svelteDom = new _({
147
148
  target: this.container,
148
149
  props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
149
- }))), !e) {
150
+ }))), !r) {
150
151
  this.container.innerHTML = this.mode === "mobile" ? u : d, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
151
- const l = this.container.querySelectorAll(".fpm__text"), m = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
152
- Object.assign(m == null ? void 0 : m.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((a) => Object.assign(a.style, w));
152
+ const l = this.container.querySelectorAll(".fpm__text"), n = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
153
+ Object.assign(n == null ? void 0 : n.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((a) => Object.assign(a.style, w));
153
154
  }
154
155
  }
155
156
  dispose() {
@@ -161,9 +162,9 @@ class Li {
161
162
  }
162
163
  hide() {
163
164
  var i, t;
164
- return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((e) => e()), this.disposers = [], this;
165
+ return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((r) => r()), this.disposers = [], this;
165
166
  }
166
167
  }
167
168
  export {
168
- Li as UIController
169
+ Ii as UIController
169
170
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./Controller/index.js";
2
2
  import "../shared-utils/tag.js";
3
3
  import "three";
4
- import { Magnifier as kr } from "../shared-utils/three/Magnifier.js";
4
+ import { Magnifier as qr } from "../shared-utils/three/Magnifier.js";
5
5
  import "../shared-utils/three/PointSelector/index.js";
6
6
  import "../shared-utils/three/CSS3DRenderer/index.js";
7
7
  import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
@@ -13,10 +13,10 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
13
13
  import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
14
14
  import "../vendor/earcut/src/earcut.js";
15
15
  import "../shared-utils/five/FivePuppet.js";
16
- import { Model as vr } from "./Model/index.js";
17
- import { default as Ar } from "./Model/point.js";
18
- import { default as Dr } from "./Model/line.js";
19
- import { Polyline as Fr } from "./Model/polyline.js";
16
+ import { Model as zr } from "./Model/index.js";
17
+ import { default as Br } from "./Model/point.js";
18
+ import { default as Er } from "./Model/line.js";
19
+ import { Polyline as Gr } from "./Model/polyline.js";
20
20
  import "./Controller/EditController.js";
21
21
  import "../shared-utils/throttle.js";
22
22
  import "./Controller/BaseController.js";
@@ -71,6 +71,7 @@ import "../Sculpt/typings/style.js";
71
71
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
72
72
  import "../shared-utils/three/applyObjectMatrixWorld.js";
73
73
  import "../shared-utils/util.js";
74
+ import "../shared-utils/five/getFiveFromParentChain.js";
74
75
  import "../shared-utils/three/core/LineGeometry.js";
75
76
  import "../shared-utils/three/core/LineMaterial.js";
76
77
  import "../shared-utils/three/core/Line2.js";
@@ -129,15 +130,15 @@ import "./Controller/ShortcutKeyController.js";
129
130
  import "../shared-utils/safeObj.js";
130
131
  import "../base/BasePlugin.js";
131
132
  import "../shared-utils/url/defaultUrls.js";
132
- const br = function(o, r) {
133
+ const hr = function(o, r) {
133
134
  return new t(o, r);
134
135
  };
135
136
  export {
136
- kr as Magnifier,
137
- br as PanoMeasurePlugin,
138
- Dr as PanoMeasurePluginLine,
139
- vr as PanoMeasurePluginModel,
140
- Ar as PanoMeasurePluginPoint,
141
- Fr as PanoMeasurePluginPolyline,
142
- br as default
137
+ qr as Magnifier,
138
+ hr as PanoMeasurePlugin,
139
+ Er as PanoMeasurePluginLine,
140
+ zr as PanoMeasurePluginModel,
141
+ Br as PanoMeasurePluginPoint,
142
+ Gr as PanoMeasurePluginPolyline,
143
+ hr as default
143
144
  };
@@ -63,6 +63,7 @@ import "../../../shared-utils/three/IObject3D.js";
63
63
  import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
64
64
  import "../../../shared-utils/three/applyObjectMatrixWorld.js";
65
65
  import "../../../shared-utils/util.js";
66
+ import "../../../shared-utils/five/getFiveFromParentChain.js";
66
67
  import "../../../shared-utils/three/core/LineGeometry.js";
67
68
  import "../../../shared-utils/three/core/LineMaterial.js";
68
69
  import "../../../shared-utils/three/core/Line2.js";
@@ -80,7 +81,7 @@ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
80
81
  import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
81
82
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
82
83
  import "@realsee/five";
83
- class Ht extends y {
84
+ class Jt extends y {
84
85
  constructor(t) {
85
86
  t.containerStyle = s(n({}, t.containerStyle), {
86
87
  zIndex: "1"
@@ -111,5 +112,5 @@ class Ht extends y {
111
112
  }
112
113
  }
113
114
  export {
114
- Ht as AreaItem
115
+ Jt as AreaItem
115
116
  };
@@ -81,6 +81,7 @@ import "../Sculpt/typings/style.js";
81
81
  import "../shared-utils/three/IObject3D.js";
82
82
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
83
83
  import "../shared-utils/three/applyObjectMatrixWorld.js";
84
+ import "../shared-utils/five/getFiveFromParentChain.js";
84
85
  import "../shared-utils/three/core/LineGeometry.js";
85
86
  import "../shared-utils/three/core/LineMaterial.js";
86
87
  import "../shared-utils/three/core/Line2.js";
@@ -99,7 +100,7 @@ import "../shared-utils/equal.js";
99
100
  import "../shared-utils/isTruelyObject.js";
100
101
  import "../shared-utils/math/planimetry.js";
101
102
  import "./RulerItem.js";
102
- class Gt {
103
+ class Ht {
103
104
  constructor(t, i) {
104
105
  e(this, "five");
105
106
  e(this, "container", document.createElement("div"));
@@ -162,5 +163,5 @@ class Gt {
162
163
  }
163
164
  }
164
165
  export {
165
- Gt as default
166
+ Ht as default
166
167
  };
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as nt, onMount as rt, onDestroy as it, create_component as st, mount_component as at, destroy_component as ct, group_outros as mt } from "../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as rt, onMount as nt, onDestroy as it, create_component as st, mount_component as at, destroy_component as ct, group_outros as mt } from "../vendor/svelte/internal/index.js";
2
2
  import { Five as lt } from "@realsee/five";
3
3
  import { nextFrame as pt } from "../shared-utils/animationFrame/index.js";
4
4
  import "../shared-utils/tag.js";
@@ -53,6 +53,7 @@ import "../shared-utils/three/IObject3D.js";
53
53
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
54
54
  import "../shared-utils/three/applyObjectMatrixWorld.js";
55
55
  import "../shared-utils/util.js";
56
+ import "../shared-utils/five/getFiveFromParentChain.js";
56
57
  import "../shared-utils/three/core/LineGeometry.js";
57
58
  import "../shared-utils/three/core/LineMaterial.js";
58
59
  import "../shared-utils/three/core/Line2.js";
@@ -70,99 +71,99 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
70
71
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
71
72
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
72
73
  import "../shared-utils/isTruelyObject.js";
73
- function J(d, r, c) {
74
+ function J(d, n, c) {
74
75
  const t = d.slice();
75
- return t[12] = r[c], t;
76
+ return t[12] = n[c], t;
76
77
  }
77
78
  function K(d) {
78
- let r, c;
79
- return r = new ht({
79
+ let n, c;
80
+ return n = new ht({
80
81
  props: { rulerItemProp: (
81
82
  /*itemData*/
82
83
  d[12]
83
84
  ) }
84
85
  }), {
85
86
  c() {
86
- st(r.$$.fragment);
87
+ st(n.$$.fragment);
87
88
  },
88
89
  m(t, e) {
89
- at(r, t, e), c = !0;
90
+ at(n, t, e), c = !0;
90
91
  },
91
92
  p(t, e) {
92
93
  const w = {};
93
94
  e & /*rulerItemProp*/
94
95
  1 && (w.rulerItemProp = /*itemData*/
95
- t[12]), r.$set(w);
96
+ t[12]), n.$set(w);
96
97
  },
97
98
  i(t) {
98
- c || (C(r.$$.fragment, t), c = !0);
99
+ c || (C(n.$$.fragment, t), c = !0);
99
100
  },
100
101
  o(t) {
101
- k(r.$$.fragment, t), c = !1;
102
+ k(n.$$.fragment, t), c = !1;
102
103
  },
103
104
  d(t) {
104
- ct(r, t);
105
+ ct(n, t);
105
106
  }
106
107
  };
107
108
  }
108
109
  function dt(d) {
109
- let r, c, t = (
110
+ let n, c, t = (
110
111
  /*rulerItemProp*/
111
112
  d[0]
112
113
  ), e = [];
113
- for (let n = 0; n < t.length; n += 1)
114
- e[n] = K(J(d, t, n));
115
- const w = (n) => k(e[n], 1, 1, () => {
116
- e[n] = null;
114
+ for (let r = 0; r < t.length; r += 1)
115
+ e[r] = K(J(d, t, r));
116
+ const w = (r) => k(e[r], 1, 1, () => {
117
+ e[r] = null;
117
118
  });
118
119
  return {
119
120
  c() {
120
- r = $("div");
121
- for (let n = 0; n < e.length; n += 1)
122
- e[n].c();
121
+ n = $("div");
122
+ for (let r = 0; r < e.length; r += 1)
123
+ e[r].c();
123
124
  },
124
- m(n, s) {
125
- tt(n, r, s);
125
+ m(r, s) {
126
+ tt(r, n, s);
126
127
  for (let o = 0; o < e.length; o += 1)
127
- e[o] && e[o].m(r, null);
128
+ e[o] && e[o].m(n, null);
128
129
  c = !0;
129
130
  },
130
- p(n, [s]) {
131
+ p(r, [s]) {
131
132
  if (s & /*rulerItemProp*/
132
133
  1) {
133
134
  t = /*rulerItemProp*/
134
- n[0];
135
+ r[0];
135
136
  let o;
136
137
  for (o = 0; o < t.length; o += 1) {
137
- const A = J(n, t, o);
138
- e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(r, null));
138
+ const A = J(r, t, o);
139
+ e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(n, null));
139
140
  }
140
141
  for (mt(), o = t.length; o < e.length; o += 1)
141
142
  w(o);
142
143
  et();
143
144
  }
144
145
  },
145
- i(n) {
146
+ i(r) {
146
147
  if (!c) {
147
148
  for (let s = 0; s < t.length; s += 1)
148
149
  C(e[s]);
149
150
  c = !0;
150
151
  }
151
152
  },
152
- o(n) {
153
+ o(r) {
153
154
  e = e.filter(Boolean);
154
155
  for (let s = 0; s < e.length; s += 1)
155
156
  k(e[s]);
156
157
  c = !1;
157
158
  },
158
- d(n) {
159
- n && ot(r), nt(e, n);
159
+ d(r) {
160
+ r && ot(n), rt(e, r);
160
161
  }
161
162
  };
162
163
  }
163
- function gt(d, r, c) {
164
+ function gt(d, n, c) {
164
165
  var B, G, H, U;
165
- let { five: t } = r, { rulerDatas: e } = r, { options: w } = r, n = [];
166
+ let { five: t } = n, { rulerDatas: e } = n, { options: w } = n, r = [];
166
167
  const s = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, o = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (a, m) => {
167
168
  const l = [
168
169
  [{ x: 0, y: 0 }, { x: s, y: 0 }],
@@ -209,9 +210,9 @@ function gt(d, r, c) {
209
210
  }, _ = () => {
210
211
  const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
211
212
  if (!m)
212
- return c(0, n = []);
213
+ return c(0, r = []);
213
214
  if (t.currentMode !== lt.Mode.Panorama)
214
- return c(0, n = []);
215
+ return c(0, r = []);
215
216
  const l = t.camera.position, f = t.camera.getWorldDirection(new M()), u = m.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = m.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
216
217
  const h = i.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0));
217
218
  return h - x;
@@ -233,21 +234,21 @@ function gt(d, r, c) {
233
234
  labelElement: w.distanceText(P)
234
235
  };
235
236
  });
236
- c(0, n = y);
237
+ c(0, r = y);
237
238
  }, E = () => pt(_), R = ut(_, 80);
238
- return rt(() => {
239
+ return nt(() => {
239
240
  _(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
240
241
  }), it(() => {
241
242
  t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
242
243
  }), d.$$set = (a) => {
243
244
  "five" in a && c(1, t = a.five), "rulerDatas" in a && c(2, e = a.rulerDatas), "options" in a && c(3, w = a.options);
244
- }, [n, t, e, w];
245
+ }, [r, t, e, w];
245
246
  }
246
- class ze extends Q {
247
- constructor(r) {
248
- super(), X(this, r, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
247
+ class Ce extends Q {
248
+ constructor(n) {
249
+ super(), X(this, n, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
249
250
  }
250
251
  }
251
252
  export {
252
- ze as default
253
+ Ce as default
253
254
  };
@@ -54,6 +54,7 @@ import "../Sculpt/typings/style.js";
54
54
  import "../shared-utils/three/IObject3D.js";
55
55
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
56
56
  import "../shared-utils/three/applyObjectMatrixWorld.js";
57
+ import "../shared-utils/five/getFiveFromParentChain.js";
57
58
  import "../shared-utils/three/core/LineGeometry.js";
58
59
  import "../shared-utils/three/core/LineMaterial.js";
59
60
  import "../shared-utils/three/core/Line2.js";
@@ -72,8 +73,8 @@ import "../shared-utils/equal.js";
72
73
  import "../shared-utils/isTruelyObject.js";
73
74
  import "../shared-utils/math/planimetry.js";
74
75
  import "./RulerItem.js";
75
- const jr = (r, o) => new t(r, o);
76
+ const kr = (r, o) => new t(r, o);
76
77
  export {
77
- jr as PanoRulerProPlugin,
78
- jr as default
78
+ kr as PanoRulerProPlugin,
79
+ kr as default
79
80
  };
@@ -55,6 +55,7 @@ import "../shared-utils/three/IObject3D.js";
55
55
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
56
56
  import "../shared-utils/three/applyObjectMatrixWorld.js";
57
57
  import "../shared-utils/util.js";
58
+ import "../shared-utils/five/getFiveFromParentChain.js";
58
59
  import "../shared-utils/three/core/LineGeometry.js";
59
60
  import "../shared-utils/three/core/LineMaterial.js";
60
61
  import "../shared-utils/three/core/Line2.js";
@@ -74,7 +75,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
74
75
  import "../vendor/svelte/internal/index.js";
75
76
  import "./store.js";
76
77
  import "../vendor/svelte/store/index.js";
77
- const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
78
+ const W = 1e-3, v = 0.01, oo = jo, Kt = (n, r) => {
78
79
  var k, z, q, G, B, J, K, Q;
79
80
  let I = r == null ? void 0 : r.container, y = 1.4;
80
81
  const to = (k = r == null ? void 0 : r.wait) != null ? k : 200, eo = (z = r == null ? void 0 : r.maxNumberOnScreen) != null ? z : 3, A = (q = r == null ? void 0 : r.minRad) != null ? q : Math.PI / 4, D = (G = r == null ? void 0 : r.nearTolerance) != null ? G : 100, no = (B = r == null ? void 0 : r.upsideHeight) != null ? B : 1.6, j = (J = r == null ? void 0 : r.minDistance) != null ? J : 1.2, f = (K = r == null ? void 0 : r.maxDistance) != null ? K : 3.5, _ = Po(n), O = document.createElement("div");
@@ -102,8 +103,8 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
102
103
  }, H = (t, s) => {
103
104
  if (o.tags.length === 0)
104
105
  return;
105
- const a = s.longitude - n.state.longitude, e = n.camera.clone();
106
- e.position.copy(s.offset), e.rotateOnWorldAxis(new p.Vector3(0, 1, 0), a), e.updateProjectionMatrix(), e.updateMatrixWorld(!0);
106
+ const m = s.longitude - n.state.longitude, e = n.camera.clone();
107
+ e.position.copy(s.offset), e.rotateOnWorldAxis(new p.Vector3(0, 1, 0), m), e.updateProjectionMatrix(), e.updateMatrixWorld(!0);
107
108
  const g = new p.Frustum(), P = new p.Matrix4();
108
109
  P.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), g.setFromProjectionMatrix(P), o.tags.forEach((i) => {
109
110
  const S = e.position.clone().setY(y).distanceTo(i.position);
@@ -135,14 +136,14 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
135
136
  if (o.forbidden || !o.enabled)
136
137
  return;
137
138
  const t = n.camera, s = t.getWorldDirection(new p.Vector3());
138
- o.origins = o.tags.map((a) => {
139
- const e = a.position.clone().project(t), g = a.position.clone().sub(t.position).setY(0).angleTo(s.setY(0)) < Math.PI / 2;
139
+ o.origins = o.tags.map((m) => {
140
+ const e = m.position.clone().project(t), g = m.position.clone().sub(t.position).setY(0).angleTo(s.setY(0)) < Math.PI / 2;
140
141
  return {
141
- id: a.id,
142
+ id: m.id,
142
143
  front: g,
143
144
  left: (e.x + 1) / 2 * 100,
144
145
  top: (-e.y + 1) / 2 * 100,
145
- destroying: a.destroying
146
+ destroying: m.destroying
146
147
  };
147
148
  }), R.$set({ origins: o.origins });
148
149
  }, M = () => {
@@ -152,18 +153,18 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
152
153
  t.length && (o.tags = o.tags.concat(t), T());
153
154
  }, to));
154
155
  }, io = () => {
155
- const { clientWidth: t, clientHeight: s } = n.getElement(), a = [], e = n.camera, g = new p.Frustum(), P = new p.Matrix4(), i = e.getWorldDirection(new p.Vector3());
156
+ const { clientWidth: t, clientHeight: s } = n.getElement(), m = [], e = n.camera, g = new p.Frustum(), P = new p.Matrix4(), i = e.getWorldDirection(new p.Vector3());
156
157
  P.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), g.setFromProjectionMatrix(P);
157
- const S = o.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = o.points.reduce((d, m) => {
158
- if (o.tags.find((l) => m.id === l.id && !l.destroying))
158
+ const S = o.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = o.points.reduce((d, a) => {
159
+ if (o.tags.find((l) => a.id === l.id && !l.destroying))
159
160
  return d;
160
- const u = e.position.clone().setY(y).distanceTo(m.position);
161
- if (u < j || u > f || !g.containsPoint(m.position))
161
+ const u = e.position.clone().setY(y).distanceTo(a.position);
162
+ if (u < j || u > f || !g.containsPoint(a.position))
162
163
  return d;
163
- const E = m.position.clone().sub(e.position).setY(0);
164
- if (E.angleTo(m.normal) > Math.PI / 2 - A && E.angleTo(m.normal) < Math.PI / 2 + A)
164
+ const E = a.position.clone().sub(e.position).setY(0);
165
+ if (E.angleTo(a.normal) > Math.PI / 2 - A && E.angleTo(a.normal) < Math.PI / 2 + A)
165
166
  return d;
166
- const w = m.position.clone().project(e);
167
+ const w = a.position.clone().project(e);
167
168
  if (!o.tags.every((l) => {
168
169
  if (l.position.clone().sub(e.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
169
170
  return !0;
@@ -172,11 +173,11 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
172
173
  }))
173
174
  return d;
174
175
  const h = {
175
- id: m.id,
176
- position: m.position,
177
- normal: m.normal,
178
- replacement: m.replacement,
179
- weight: m.weight,
176
+ id: a.id,
177
+ position: a.position,
178
+ normal: a.normal,
179
+ replacement: a.replacement,
180
+ weight: a.weight,
180
181
  distance: u
181
182
  };
182
183
  let c;
@@ -193,12 +194,12 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
193
194
  }
194
195
  return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
195
196
  }, []);
196
- for (let d = 0, m = x.length; d < m && !(S + a.length >= eo); d++) {
197
+ for (let d = 0, a = x.length; d < a && !(S + m.length >= eo); d++) {
197
198
  const u = x[d];
198
- if (a.find((c) => u.id === c.id))
199
+ if (m.find((c) => u.id === c.id))
199
200
  continue;
200
201
  const E = u.position.clone().project(e);
201
- if (!o.tags.concat(a).every((c) => {
202
+ if (!o.tags.concat(m).every((c) => {
202
203
  if (c.position.clone().sub(e.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
203
204
  return !0;
204
205
  const l = c.position.clone().project(e);
@@ -233,7 +234,7 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
233
234
  blurImageUrl: oo
234
235
  }
235
236
  });
236
- a.push({
237
+ m.push({
237
238
  position: c,
238
239
  normal: l,
239
240
  id: b,
@@ -241,15 +242,15 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
241
242
  });
242
243
  }
243
244
  }
244
- return a;
245
+ return m;
245
246
  }, ro = (t) => {
246
247
  o.points = t.points.map((s) => {
247
- var a, e;
248
+ var m, e;
248
249
  return {
249
250
  id: s.id,
250
251
  position: new p.Vector3().fromArray(s.position),
251
252
  normal: new p.Vector3().fromArray(s.normal),
252
- replacement: (a = s.replacement) != null ? a : {},
253
+ replacement: (m = s.replacement) != null ? m : {},
253
254
  weight: (e = s.weight) != null ? e : -1
254
255
  };
255
256
  }), t.render && (o.render = t.render), t.template && (o.template = t.template), t.events && (o.events = t.events), t.enabled === !1 && (o.enabled = t.enabled), t.folded === !0 && (o.folded = t.folded);
@@ -265,11 +266,11 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
265
266
  o.folded = !1, o.tags.forEach((t) => {
266
267
  t.app.$set({ folded: o.folded });
267
268
  });
268
- }, ao = () => {
269
+ }, mo = () => {
269
270
  o.folded = !0, o.tags.forEach((t) => {
270
271
  t.app.$set({ folded: o.folded });
271
272
  });
272
- }, mo = (t) => {
273
+ }, ao = (t) => {
273
274
  o.tags.forEach((s) => {
274
275
  s.id === t && s.app.$set({ folded: !1 });
275
276
  });
@@ -290,8 +291,8 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
290
291
  load: ro,
291
292
  setIntersectObjects: so,
292
293
  unfoldAll: po,
293
- foldAll: ao,
294
- unfold: mo,
294
+ foldAll: mo,
295
+ unfold: ao,
295
296
  fold: fo,
296
297
  enable: co,
297
298
  disable: lo,
@@ -300,6 +301,6 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
300
301
  };
301
302
  };
302
303
  export {
303
- Jt as PanoSpatialTagPlugin,
304
- Jt as default
304
+ Kt as PanoSpatialTagPlugin,
305
+ Kt as default
305
306
  };
@@ -43,6 +43,7 @@ import "../shared-utils/three/IObject3D.js";
43
43
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
44
44
  import "../shared-utils/three/applyObjectMatrixWorld.js";
45
45
  import "../shared-utils/util.js";
46
+ import "../shared-utils/five/getFiveFromParentChain.js";
46
47
  import "../shared-utils/three/core/LineGeometry.js";
47
48
  import "@realsee/five/line";
48
49
  import "../shared-utils/three/core/LineMaterial.js";