@realsee/dnalogel 3.43.0 → 3.44.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 (158) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  3. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  5. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  6. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  7. package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  8. package/dist/Sculpt/Meshes/Line.d.ts +19 -1
  9. package/dist/Sculpt/utils/color.d.ts +1 -1
  10. package/dist/index.cjs.js +102 -68
  11. package/dist/index.js +7374 -7116
  12. package/dist/index.umd.js +106 -72
  13. package/dist/shared-utils/five/getPosition.d.ts +12 -4
  14. package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  15. package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
  16. package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
  17. package/dist/shared-utils/positionToVector3.d.ts +6 -6
  18. package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
  19. package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  20. package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  21. package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  22. package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  23. package/dist/shared-utils/three/index.d.ts +2 -3
  24. package/libs/AreaMakerPlugin/Controller.js +5 -18
  25. package/libs/AreaMakerPlugin/index.js +4 -17
  26. package/libs/AreaMakerPlugin/utils/Item.js +13 -26
  27. package/libs/CSS3DRenderPlugin/Controller.js +9 -6
  28. package/libs/CSS3DRenderPlugin/index.js +12 -9
  29. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
  30. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
  31. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
  32. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
  33. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
  34. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
  37. package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
  38. package/libs/CruisePlugin/BaseController.js +20 -33
  39. package/libs/CruisePlugin/Move.js +25 -23
  40. package/libs/CruisePlugin/Work.js +10 -8
  41. package/libs/CruisePlugin/index.js +23 -21
  42. package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
  43. package/libs/CurrentPanoImagePlugin/index.js +5 -18
  44. package/libs/GuideLinePlugin/Controller.js +15 -13
  45. package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
  46. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
  47. package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
  48. package/libs/GuideLinePlugin/index.js +23 -21
  49. package/libs/ModelMakerPlugin/Controller.js +19 -30
  50. package/libs/ModelMakerPlugin/index.js +11 -22
  51. package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
  52. package/libs/ModelTVVideoPlugin/index.js +12 -9
  53. package/libs/Object3DHelperPlugin/Controller.js +7 -5
  54. package/libs/Object3DHelperPlugin/index.js +23 -21
  55. package/libs/PanoCompassPlugin/Controller.js +18 -15
  56. package/libs/PanoCompassPlugin/index.js +21 -18
  57. package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
  58. package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
  59. package/libs/PanoDoorLabelPlugin/index.js +5 -18
  60. package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
  61. package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
  62. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
  63. package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
  64. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
  65. package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
  66. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
  67. package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
  68. package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
  69. package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
  70. package/libs/PanoMeasurePlugin/Model/area.js +30 -44
  71. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
  72. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
  73. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
  74. package/libs/PanoMeasurePlugin/index.js +35 -40
  75. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
  76. package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
  77. package/libs/PanoSpatialTagPlugin/index.js +10 -7
  78. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
  79. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
  80. package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
  81. package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
  82. package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
  83. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +23 -33
  84. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
  85. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
  86. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
  87. package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
  88. package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
  89. package/libs/PanoTagPlugin/controller/index.js +27 -25
  90. package/libs/PanoTagPlugin/index.js +28 -26
  91. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
  92. package/libs/PanoVideoPlugin/Controller.js +52 -65
  93. package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
  94. package/libs/PanoVideoPlugin/index.js +8 -21
  95. package/libs/PipelinePlugin/Controller.js +44 -57
  96. package/libs/PipelinePlugin/index.js +5 -18
  97. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
  98. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
  99. package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
  100. package/libs/Sculpt/Meshes/Box.js +3 -3
  101. package/libs/Sculpt/Meshes/Cylinder.js +14 -14
  102. package/libs/Sculpt/Meshes/Line.d.ts +19 -1
  103. package/libs/Sculpt/Meshes/Line.js +40 -41
  104. package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
  105. package/libs/Sculpt/Meshes/Point.js +3 -3
  106. package/libs/Sculpt/Meshes/Polyline.js +3 -3
  107. package/libs/Sculpt/Meshes/Prism.js +11 -12
  108. package/libs/Sculpt/Meshes/Rectangle.js +3 -3
  109. package/libs/Sculpt/Objects/Point/Editor.js +10 -10
  110. package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
  111. package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
  112. package/libs/Sculpt/index.js +3 -3
  113. package/libs/Sculpt/utils/Modules/Global.js +1 -1
  114. package/libs/Sculpt/utils/color.d.ts +1 -1
  115. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
  116. package/libs/base/BasePlugin.js +4 -4
  117. package/libs/floorplan/Components/Compass.js +29 -31
  118. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
  119. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
  120. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
  121. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
  122. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
  123. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
  124. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
  125. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
  126. package/libs/floorplan/index.js +3 -3
  127. package/libs/index.js +140 -137
  128. package/libs/shared-utils/five/getPosition.d.ts +12 -4
  129. package/libs/shared-utils/five/getPosition.js +23 -23
  130. package/libs/shared-utils/five/index.js +2 -2
  131. package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
  132. package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
  133. package/libs/shared-utils/five/lookObject.js +3 -3
  134. package/libs/shared-utils/index.js +38 -40
  135. package/libs/shared-utils/logger.js +1 -1
  136. package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
  137. package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
  138. package/libs/shared-utils/positionToVector3.d.ts +6 -6
  139. package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
  140. package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
  141. package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
  142. package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
  143. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
  144. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
  145. package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
  146. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
  147. package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
  148. package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
  149. package/libs/shared-utils/three/index.d.ts +2 -3
  150. package/libs/shared-utils/three/index.js +3 -3
  151. package/package.json +3 -3
  152. package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
  153. package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
  154. package/libs/shared-utils/three/PointDomHelper.js +0 -62
  155. package/libs/shared-utils/three/PointHelper.js +0 -73
  156. package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
  157. /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
  158. /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
@@ -1,72 +1,89 @@
1
- var H = Object.defineProperty;
2
- var C = (c, r, t) => r in c ? H(c, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[r] = t;
3
- var i = (c, r, t) => (C(c, typeof r != "symbol" ? r + "" : r, t), t);
4
- import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
5
- import { Vector3 as l } from "three";
6
- import { even as w } from "../even.js";
7
- import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
8
- import Q from "./OpacityMesh.js";
9
- import { centerPoint as R } from "../../../shared-utils/three/centerPoint.js";
10
- import { getObjectVisible as D } from "../../../shared-utils/three/getObjectVisible.js";
11
- const O = 1, S = `CSS3DObjectPlus@${O}`, L = 216e-5, N = 3e-3;
12
- class G extends j {
1
+ var A = Object.defineProperty;
2
+ var D = (a, h, t) => h in a ? A(a, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[h] = t;
3
+ var o = (a, h, t) => (D(a, typeof h != "symbol" ? h + "" : h, t), t);
4
+ import { CSS3DObject as N } from "three/examples/jsm/renderers/CSS3DRenderer";
5
+ import { Vector3 as r } from "three";
6
+ import { even as E } from "../even.js";
7
+ import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
8
+ import R from "./OpacityMesh.js";
9
+ import { centerPoint as L } from "../../../shared-utils/three/centerPoint.js";
10
+ import { getObjectVisible as T } from "../../../shared-utils/three/getObjectVisible.js";
11
+ import "hammerjs";
12
+ import "@realsee/five/line";
13
+ import "../../../shared-utils/three/THREESphere.js";
14
+ import "animejs";
15
+ import { isNil as O } from "../../../shared-utils/isNil.js";
16
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
17
+ const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
18
+ class ot extends N {
13
19
  constructor(t) {
14
- var f, b, g;
15
- const e = t.container, o = t.cornerPoints, n = (f = t.ratio) != null ? f : N, M = (b = t.dpr) != null ? b : 1, E = (g = t.pointerEvents) != null ? g : "auto", h = Math.max(L, n), d = o[0].distanceTo(o[1]), m = o[1].distanceTo(o[2]), a = w(d / n * M), p = w(m / n * M), y = R(...o);
20
+ var x, b, w, g, V;
21
+ if (O(t.cornerPoints) && O(t.width))
22
+ throw new Error("cornerPoints and width cannot be both empty");
23
+ const e = (x = t.container) != null ? x : document.createElement("div"), s = (b = t.cornerPoints) != null ? b : (() => {
24
+ const i = t.width / 2;
25
+ return [
26
+ new r(-i, i, 0),
27
+ new r(-i, -i, 0),
28
+ new r(i, -i, 0),
29
+ new r(i, i, 0)
30
+ ];
31
+ })(), n = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", c = Math.max(k, n), d = s[0].distanceTo(s[1]), m = s[1].distanceTo(s[2]), p = E(d / n * P), l = E(m / n * P), y = L(...s);
16
32
  let u;
17
- if (h === n)
18
- e.style.width = `${a}px`, e.style.height = `${p}px`, u = e;
33
+ if (c === n)
34
+ e.style.width = `${p}px`, e.style.height = `${l}px`, u = e;
19
35
  else {
20
- const s = document.createElement("div");
21
- s.style.width = `${a}px`, s.style.height = `${p}px`, s.style.pointerEvents = "none";
22
- const V = n / h;
23
- e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${V * a}px`, e.style.height = `${V * p}px`, s.appendChild(e), u = s;
36
+ const i = document.createElement("div");
37
+ i.style.width = `${p}px`, i.style.height = `${l}px`, i.style.pointerEvents = "none";
38
+ const S = n / c;
39
+ e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${S * p}px`, e.style.height = `${S * l}px`, i.appendChild(e), u = i;
24
40
  }
25
41
  super(u);
26
- i(this, "version", O);
27
- i(this, "isCSS3DObjectPlus", !0);
28
- i(this, "name", S);
29
- i(this, "container");
30
- i(this, "width");
31
- i(this, "height");
32
- i(this, "domWidthPx");
33
- i(this, "domHeightPx");
34
- i(this, "cornerPoints");
35
- i(this, "centerPosition");
36
- i(this, "ratio");
37
- i(this, "mode", "front");
38
- i(this, "hooks", new A());
39
- i(this, "opacityMesh");
40
- i(this, "selfVisible", !0);
41
- i(this, "setVisible", (t) => {
42
- this.selfVisible = t, this.visible = D(this.parent) && this.selfVisible, this.opacityMesh && (this.opacityMesh.visible = this.visible);
42
+ o(this, "version", $);
43
+ o(this, "isCSS3DObjectPlus", !0);
44
+ o(this, "isCSS3DObject", !0);
45
+ o(this, "name", W);
46
+ o(this, "container");
47
+ o(this, "width");
48
+ o(this, "height");
49
+ o(this, "domWidthPx");
50
+ o(this, "domHeightPx");
51
+ o(this, "cornerPoints");
52
+ o(this, "centerPosition");
53
+ o(this, "ratio");
54
+ o(this, "mode", "front");
55
+ o(this, "hooks", new Q());
56
+ o(this, "opacityMesh");
57
+ o(this, "selfVisible", !0);
58
+ o(this, "setVisible", (t) => {
59
+ this.selfVisible = t, this.visible = T(this.parent) && this.selfVisible, this.opacityMesh && (this.opacityMesh.visible = this.visible);
43
60
  });
44
- i(this, "updateVisible", () => {
61
+ o(this, "updateVisible", () => {
45
62
  this.setVisible(this.selfVisible);
46
63
  });
47
64
  /**
48
65
  * @description: 生成透明Mesh
49
66
  */
50
- i(this, "createOpacityMesh", (t) => {
51
- const { domWidthPx: e, domHeightPx: o } = t, n = new Q(e, o);
67
+ o(this, "createOpacityMesh", (t) => {
68
+ const { domWidthPx: e, domHeightPx: s } = t, n = new R(e, s);
52
69
  return n.position.copy(t.position), n.rotation.copy(t.rotation), n.scale.copy(t.scale), n;
53
70
  });
54
- if (e.style.pointerEvents = E, Object.assign(e.style, t.style), this.scale.set(h, h, h), this.cornerPoints = o, this.ratio = n, this.container = e, t.mode && (this.mode = t.mode), h === n)
55
- this.width = d, this.height = m, this.domWidthPx = a, this.domHeightPx = p, this.centerPosition = y;
71
+ if (e.style.pointerEvents = F, Object.assign(e.style, t.style), this.scale.set(c, c, c), this.cornerPoints = s, this.ratio = n, this.container = e, t.mode && (this.mode = t.mode), c === n)
72
+ this.width = d, this.height = m, this.domWidthPx = p, this.domHeightPx = l, this.centerPosition = y;
56
73
  else {
57
- const s = n / h;
58
- this.width = s * d, this.height = s * m, this.domWidthPx = s * a, this.domHeightPx = s * p, this.centerPosition = new l().subVectors(y, o[0]).multiplyScalar(s).add(o[0]);
74
+ const i = n / c;
75
+ this.width = i * d, this.height = i * m, this.domWidthPx = i * p, this.domHeightPx = i * l, this.centerPosition = new r().subVectors(y, s[0]).multiplyScalar(i).add(s[0]);
59
76
  }
60
- e.classList.add(`${S}__container`);
61
- const $ = new l().subVectors(o[1], o[0]), P = new l().subVectors(o[3], o[0]), F = new l().crossVectors($, P).normalize();
62
- this.lookAt(F);
63
- const x = this.up.clone().applyQuaternion(this.quaternion), v = P.clone(), W = new l().crossVectors(x, v).normalize();
64
- this.rotateOnWorldAxis(W, x.angleTo(v)), this.position.copy(y), this.addEventListener("added", () => {
65
- var s;
66
- this.mode === "front" && ((s = this.opacityMesh) == null || s.removeFromParent());
77
+ e.classList.add(`${W}__container`);
78
+ const C = new r().subVectors(s[1], s[0]), M = new r().subVectors(s[3], s[0]), H = new r().crossVectors(C, M).normalize();
79
+ this.lookAt(H);
80
+ const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new r().crossVectors(f, v).normalize();
81
+ this.rotateOnWorldAxis(j, f.angleTo(v)), this.position.copy(y), this.addEventListener("added", () => {
82
+ var i;
83
+ this.mode === "front" && ((i = this.opacityMesh) == null || i.removeFromParent());
67
84
  }), this.addEventListener("removed", () => {
68
- var s;
69
- (s = this.opacityMesh) == null || s.removeFromParent();
85
+ var i;
86
+ (i = this.opacityMesh) == null || i.removeFromParent();
70
87
  });
71
88
  }
72
89
  removeFromParent() {
@@ -104,7 +121,7 @@ class G extends j {
104
121
  }
105
122
  }
106
123
  export {
107
- G as CSS3DObjectPlus,
108
- N as DefaultRatio,
109
- L as MinRatio
124
+ ot as CSS3DObjectPlus,
125
+ z as DefaultRatio,
126
+ k as MinRatio
110
127
  };
@@ -31,18 +31,25 @@ import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVecto
31
31
  import B from "./CSS3DRenderer.js";
32
32
  import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
33
33
  import { CSS3DObjectPlus as W } from "./CSS3DObject.js";
34
- import { MinRatio as pe } from "./CSS3DObject.js";
34
+ import { MinRatio as Ge } from "./CSS3DObject.js";
35
35
  import { CSS3DFrontScene as H, CSS3DBehindScene as T } from "./CSS3DScene.js";
36
36
  import { CSS3DFrontGroup as U, CSS3DBehindGroup as z } from "./CSS3DGroup.js";
37
37
  import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
38
38
  import "three";
39
- import "../getAllCSS3DObject.js";
40
- import "../../../shared-utils/util.js";
39
+ import "./THREEJS_CSS3DRenderer.js";
41
40
  import "../createResizeObserver.js";
42
41
  import "../even.js";
43
42
  import "./OpacityMesh.js";
44
43
  import "../../../shared-utils/three/centerPoint.js";
45
44
  import "../../../shared-utils/three/getObjectVisible.js";
45
+ import "hammerjs";
46
+ import "@realsee/five/line";
47
+ import "../../../shared-utils/three/THREESphere.js";
48
+ import "animejs";
49
+ import "../../../shared-utils/isNil.js";
50
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
51
+ import "../getAllCSS3DObject.js";
52
+ import "../../../shared-utils/util.js";
46
53
  const J = 3, G = "CSS3DRenderer", b = `${G}@${J}`, u = () => {
47
54
  console.error(`${b} is disposed`);
48
55
  }, o = {
@@ -311,7 +318,7 @@ class y {
311
318
  i(y, "setFrontModeContainer", K), i(y, "setBehindModeContainer", Q);
312
319
  export {
313
320
  y as CSS3DRender,
314
- pe as MinRatio,
321
+ Ge as MinRatio,
315
322
  b as PLUGIN,
316
323
  o as globalStore
317
324
  };
@@ -1,5 +1,6 @@
1
- import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
1
+ import { CSS3DRenderer as CSS3DRendererType } from 'three/examples/jsm/renderers/CSS3DRenderer';
2
2
  import type * as THREE from 'three';
3
+ declare const CSS3DRenderer: typeof CSS3DRendererType;
3
4
  export default class ICSS3DRenderer extends CSS3DRenderer {
4
5
  wrapper?: Element;
5
6
  domElementWrapper: HTMLDivElement;
@@ -1,12 +1,12 @@
1
1
  var l = Object.defineProperty;
2
- var a = (i, t, e) => t in i ? l(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var n = (i, t, e) => (a(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { CSS3DRenderer as d } from "three/examples/jsm/renderers/CSS3DRenderer";
5
- import h from "../getAllCSS3DObject.js";
6
- import E from "../createResizeObserver.js";
7
- import "../../../shared-utils/util.js";
2
+ var a = (s, t, e) => t in s ? l(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
+ var n = (s, t, e) => (a(s, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { CSS3DRenderer as d } from "./THREEJS_CSS3DRenderer.js";
5
+ import h from "../createResizeObserver.js";
6
+ import "three";
8
7
  import "../even.js";
9
- class v extends d {
8
+ const E = d;
9
+ class y extends E {
10
10
  constructor() {
11
11
  super();
12
12
  n(this, "wrapper");
@@ -19,8 +19,8 @@ class v extends d {
19
19
  if (!e)
20
20
  throw new Error("CSS3DRenderer: wrapper is required");
21
21
  if ((() => {
22
- for (let s = 0; s < e.children.length; s++)
23
- if (e.children.item(s) === this.domElementWrapper)
22
+ for (let i = 0; i < e.children.length; i++)
23
+ if (e.children.item(i) === this.domElementWrapper)
24
24
  return !0;
25
25
  return !1;
26
26
  })())
@@ -30,14 +30,14 @@ class v extends d {
30
30
  }
31
31
  appendToElement(e) {
32
32
  e.appendChild(this.domElementWrapper);
33
- const o = (m, p) => this.setSize(m, p), { observe: r, unobserve: s } = E(this.domElementWrapper, o, !0);
34
- r(), this.resizeDisoper = s, this.wrapper = e;
33
+ const o = (m, p) => this.setSize(m, p), { observe: r, unobserve: i } = h(this.domElementWrapper, o, !0);
34
+ r(), this.resizeDisoper = i, this.wrapper = e;
35
35
  }
36
36
  renderEveryFrame(e, o) {
37
37
  if (this.wrapper || console.warn("wrapper is not find, creating a html element and call setWrapper(wrapper)", this, e), this.requestAnimationFrameId)
38
38
  return;
39
39
  const r = () => {
40
- this.requestAnimationFrameId = requestAnimationFrame(r), e.visible && h(e).length !== 0 && this.render(e, o);
40
+ this.requestAnimationFrameId = requestAnimationFrame(r), e.visible && this.render(e, o);
41
41
  };
42
42
  r();
43
43
  }
@@ -50,6 +50,6 @@ class v extends d {
50
50
  }
51
51
  }
52
52
  export {
53
- v as ICSS3DRenderer,
54
- v as default
53
+ y as ICSS3DRenderer,
54
+ y as default
55
55
  };
@@ -0,0 +1,4 @@
1
+ import { CSS3DSprite } from 'three/examples/jsm/renderers/CSS3DRenderer';
2
+ export declare class ICSS3DSprite extends CSS3DSprite {
3
+ isCSS3DSprite: boolean;
4
+ }
@@ -0,0 +1,13 @@
1
+ var i = Object.defineProperty;
2
+ var p = (e, S, r) => S in e ? i(e, S, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[S] = r;
3
+ var t = (e, S, r) => (p(e, typeof S != "symbol" ? S + "" : S, r), r);
4
+ import { CSS3DSprite as s } from "three/examples/jsm/renderers/CSS3DRenderer";
5
+ class D extends s {
6
+ constructor() {
7
+ super(...arguments);
8
+ t(this, "isCSS3DSprite", !0);
9
+ }
10
+ }
11
+ export {
12
+ D as ICSS3DSprite
13
+ };
@@ -0,0 +1,85 @@
1
+ import { Matrix4 as D, Vector3 as M } from "three";
2
+ let k = function() {
3
+ let c = this, h, x, y, m, o = new D(), p = {
4
+ camera: { fov: 0, style: "" },
5
+ objects: /* @__PURE__ */ new WeakMap()
6
+ }, d = document.createElement("div");
7
+ d.style.overflow = "hidden", this.domElement = d;
8
+ let a = document.createElement("div");
9
+ a.style.WebkitTransformStyle = "preserve-3d", a.style.transformStyle = "preserve-3d", a.style.pointerEvents = "none", d.appendChild(a);
10
+ let u = /Trident/i.test(navigator.userAgent);
11
+ this.getSize = function() {
12
+ return {
13
+ width: h,
14
+ height: x
15
+ };
16
+ }, this.setSize = function(t, e) {
17
+ h = t, x = e, y = h / 2, m = x / 2, d.style.width = t + "px", d.style.height = e + "px", a.style.width = t + "px", a.style.height = e + "px";
18
+ };
19
+ function i(t) {
20
+ return Math.abs(t) < 1e-10 ? 0 : t;
21
+ }
22
+ function v(t) {
23
+ let e = t.elements;
24
+ return "matrix3d(" + i(e[0]) + "," + i(-e[1]) + "," + i(e[2]) + "," + i(e[3]) + "," + i(e[4]) + "," + i(-e[5]) + "," + i(e[6]) + "," + i(e[7]) + "," + i(e[8]) + "," + i(-e[9]) + "," + i(e[10]) + "," + i(e[11]) + "," + i(e[12]) + "," + i(-e[13]) + "," + i(e[14]) + "," + i(e[15]) + ")";
25
+ }
26
+ function S(t, e) {
27
+ let r = t.elements, l = "matrix3d(" + i(r[0]) + "," + i(r[1]) + "," + i(r[2]) + "," + i(r[3]) + "," + i(-r[4]) + "," + i(-r[5]) + "," + i(-r[6]) + "," + i(-r[7]) + "," + i(r[8]) + "," + i(r[9]) + "," + i(r[10]) + "," + i(r[11]) + "," + i(r[12]) + "," + i(r[13]) + "," + i(r[14]) + "," + i(r[15]) + ")";
28
+ return u ? "translate(-50%,-50%)translate(" + y + "px," + m + "px)" + e + l : "translate(-50%,-50%)" + l;
29
+ }
30
+ function g(t) {
31
+ t.isCSS3DObject && (t.element.style.display = "none");
32
+ for (let e = 0, r = t.children.length; e < r; e++)
33
+ g(t.children[e]);
34
+ }
35
+ function C(t, e, r, l) {
36
+ if (t.visible === !1) {
37
+ g(t);
38
+ return;
39
+ }
40
+ if (t.isCSS3DObject) {
41
+ t.onBeforeRender(c, e, r);
42
+ let n;
43
+ t.isCSS3DSprite ? (o.copy(r.matrixWorldInverse), o.transpose(), o.copyPosition(t.matrixWorld), o.scale(t.scale), o.elements[3] = 0, o.elements[7] = 0, o.elements[11] = 0, o.elements[15] = 1, n = S(o, l)) : n = S(t.matrixWorld, l);
44
+ let s = t.element, f = p.objects.get(t);
45
+ if (f === void 0 || f.style !== n) {
46
+ s.style.WebkitTransform = n, s.style.transform = n;
47
+ let W = { style: n };
48
+ u && (W.distanceToCameraSquared = O(r, t)), p.objects.set(t, W);
49
+ }
50
+ s.style.display = t.visible ? "" : "none", s.parentNode !== a && a.appendChild(s), t.onAfterRender(c, e, r);
51
+ }
52
+ for (let n = 0, s = t.children.length; n < s; n++)
53
+ C(t.children[n], e, r, l);
54
+ }
55
+ var O = function() {
56
+ let t = new M(), e = new M();
57
+ return function(r, l) {
58
+ return t.setFromMatrixPosition(r.matrixWorld), e.setFromMatrixPosition(l.matrixWorld), t.distanceToSquared(e);
59
+ };
60
+ }();
61
+ function T(t) {
62
+ let e = [];
63
+ return t.traverse(function(r) {
64
+ r.isCSS3DObject && e.push(r);
65
+ }), e;
66
+ }
67
+ function w(t) {
68
+ let e = T(t).sort(function(l, n) {
69
+ let s = p.objects.get(l).distanceToCameraSquared, f = p.objects.get(n).distanceToCameraSquared;
70
+ return s - f;
71
+ }), r = e.length;
72
+ for (let l = 0, n = e.length; l < n; l++)
73
+ e[l].element.style.zIndex = r - l;
74
+ }
75
+ this.render = function(t, e) {
76
+ let r = e.projectionMatrix.elements[5] * m;
77
+ if (p.camera.fov !== r && (e.isPerspectiveCamera ? (d.style.WebkitPerspective = r + "px", d.style.perspective = r + "px") : (d.style.WebkitPerspective = "", d.style.perspective = ""), p.camera.fov = r), t.autoUpdate === !0 && t.updateMatrixWorld(), e.parent === null && e.updateMatrixWorld(), e.isOrthographicCamera)
78
+ var l = -(e.right + e.left) / 2, n = (e.top + e.bottom) / 2;
79
+ let s = e.isOrthographicCamera ? "scale(" + r + ")translate(" + i(l) + "px," + i(n) + "px)" + v(e.matrixWorldInverse) : "translateZ(" + r + "px)" + v(e.matrixWorldInverse), f = s + "translate(" + y + "px," + m + "px)";
80
+ p.camera.style !== f && !u && (a.style.WebkitTransform = f, a.style.transform = f, p.camera.style = f), C(t, t, e, s), u && w(t);
81
+ };
82
+ };
83
+ export {
84
+ k as CSS3DRenderer
85
+ };
@@ -1,29 +1,29 @@
1
- var c = Object.defineProperty;
2
- var f = Object.getOwnPropertySymbols;
1
+ var m = Object.defineProperty;
2
+ var p = Object.getOwnPropertySymbols;
3
3
  var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
4
- var p = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, g = (a, s) => {
4
+ var u = (a, s, e) => s in a ? m(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, g = (a, s) => {
5
5
  for (var e in s || (s = {}))
6
- v.call(s, e) && p(a, e, s[e]);
7
- if (f)
8
- for (var e of f(s))
9
- S.call(s, e) && p(a, e, s[e]);
6
+ v.call(s, e) && u(a, e, s[e]);
7
+ if (p)
8
+ for (var e of p(s))
9
+ S.call(s, e) && u(a, e, s[e]);
10
10
  return a;
11
11
  };
12
- var d = (a, s, e) => (p(a, typeof s != "symbol" ? s + "" : s, e), e);
13
- var u = (a, s, e) => new Promise((t, i) => {
12
+ var d = (a, s, e) => (u(a, typeof s != "symbol" ? s + "" : s, e), e);
13
+ var f = (a, s, e) => new Promise((t, i) => {
14
14
  var r = (h) => {
15
15
  try {
16
16
  n(e.next(h));
17
17
  } catch (o) {
18
18
  i(o);
19
19
  }
20
- }, b = (h) => {
20
+ }, c = (h) => {
21
21
  try {
22
22
  n(e.throw(h));
23
23
  } catch (o) {
24
24
  i(o);
25
25
  }
26
- }, n = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(r, b);
26
+ }, n = (h) => h.done ? t(h.value) : Promise.resolve(h.value).then(r, c);
27
27
  n((e = e.apply(a, s)).next());
28
28
  });
29
29
  import { Controller as y } from "../base/BasePlugin.js";
@@ -32,22 +32,8 @@ import { objectAssignDeepExports as C } from "../vendor/object-assign-deep/objec
32
32
  import "../shared-utils/Subscribe.js";
33
33
  import "three";
34
34
  import "hammerjs";
35
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
37
- import "../shared-utils/positionToVector3.js";
38
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
35
  import "three/examples/jsm/renderers/CSS3DRenderer";
40
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
41
- import "../shared-utils/util.js";
42
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
43
- import "../CSS3DRenderPlugin/utils/even.js";
44
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
45
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
46
- import "../shared-utils/three/centerPoint.js";
47
- import "../shared-utils/three/getObjectVisible.js";
48
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
49
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
50
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
36
+ import "@realsee/five/line";
51
37
  import "../shared-utils/three/THREESphere.js";
52
38
  import "animejs";
53
39
  import "../shared-utils/Utils/FiveUtil.js";
@@ -56,9 +42,10 @@ import "../shared-utils/Utils/WorkUtil.js";
56
42
  import "../shared-utils/five/transformPosition.js";
57
43
  import "../shared-utils/five/getFiveModel.js";
58
44
  import "../shared-utils/url/absoluteUrl.js";
45
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
59
46
  import "../shared-utils/isTruelyObject.js";
60
- const m = "CruisePlugin", l = `${m}`, te = (a) => `${l}--${a}`;
61
- class ie extends y {
47
+ const b = "CruisePlugin", l = `${b}`, F = (a) => `${l}--${a}`;
48
+ class H extends y {
62
49
  constructor(e, t) {
63
50
  super(e, t);
64
51
  d(this, "state", {
@@ -86,7 +73,7 @@ class ie extends y {
86
73
  d(this, "disableErrorLog", () => {
87
74
  console.error(`${l} is disabled`);
88
75
  });
89
- this.config = t, Object.assign(window, { [`__${m}_DEBUG__`]: this });
76
+ this.config = t, Object.assign(window, { [`__${b}_DEBUG__`]: this });
90
77
  }
91
78
  /**
92
79
  * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
@@ -104,7 +91,7 @@ class ie extends y {
104
91
  * @description Show guide line
105
92
  */
106
93
  show(e) {
107
- return u(this, null, function* () {
94
+ return f(this, null, function* () {
108
95
  this.setState({ visible: !0 }, e);
109
96
  });
110
97
  }
@@ -112,7 +99,7 @@ class ie extends y {
112
99
  * @description Hide guide line
113
100
  */
114
101
  hide(e) {
115
- return u(this, null, function* () {
102
+ return f(this, null, function* () {
116
103
  this.setState({ visible: !1 }, e);
117
104
  });
118
105
  }
@@ -233,6 +220,6 @@ class ie extends y {
233
220
  }
234
221
  }
235
222
  export {
236
- ie as default,
237
- te as pluginFlag
223
+ H as default,
224
+ F as pluginFlag
238
225
  };
@@ -31,14 +31,14 @@ import z from "./BaseController.js";
31
31
  import { objectAssignDeepExports as g } from "../vendor/object-assign-deep/objectAssignDeep.js";
32
32
  import * as L from "three";
33
33
  import "hammerjs";
34
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
35
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
36
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
34
+ import "three/examples/jsm/renderers/CSS3DRenderer";
35
+ import "@realsee/five/line";
36
+ import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js";
37
37
  import "../shared-utils/three/THREESphere.js";
38
38
  import "animejs";
39
- import { uuid as O } from "../shared-utils/uuid.js";
39
+ import { uuid as A } from "../shared-utils/uuid.js";
40
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
40
41
  import { getFiveStateOnCurve as v } from "./utils/getFiveStateOnCurve.js";
41
- import { anyPositionToVector3 as A } from "../shared-utils/positionToVector3.js";
42
42
  import M from "../GuideLinePlugin/index.js";
43
43
  import "../base/BasePlugin.js";
44
44
  import "../shared-utils/Subscribe.js";
@@ -50,18 +50,6 @@ import "../shared-utils/five/getFiveModel.js";
50
50
  import "../shared-utils/url/absoluteUrl.js";
51
51
  import "../shared-utils/equal.js";
52
52
  import "../shared-utils/isTruelyObject.js";
53
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
54
- import "three/examples/jsm/renderers/CSS3DRenderer";
55
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
56
- import "../shared-utils/util.js";
57
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
58
- import "../CSS3DRenderPlugin/utils/even.js";
59
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
60
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
61
- import "../shared-utils/three/centerPoint.js";
62
- import "../shared-utils/three/getObjectVisible.js";
63
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
64
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
65
53
  import "../shared-utils/vectorToCoordinate.js";
66
54
  import "../shared-utils/formatRad.js";
67
55
  import "../GuideLinePlugin/Controller.js";
@@ -80,6 +68,7 @@ import "../vendor/gl-vec2/dot.js";
80
68
  import "../shared-utils/math/intersecting.js";
81
69
  import "../shared-utils/five/mode.js";
82
70
  import "../shared-utils/three/blink.js";
71
+ import "../shared-utils/util.js";
83
72
  import "../shared-utils/isNil.js";
84
73
  import "../shared-utils/animationFrame/BetterTween.js";
85
74
  import "../shared-utils/animationFrame/index.js";
@@ -167,6 +156,7 @@ import "../shared-utils/three/GLTFLoader.js";
167
156
  import "@realsee/five/gltf-loader";
168
157
  import "../PanoTagPlugin/utils/planeNormal.js";
169
158
  import "../PanoTagPlugin/utils/model/mediaPlane.js";
159
+ import "../shared-utils/three/centerPoint.js";
170
160
  import "../shared-utils/three/Quadrangle.js";
171
161
  import "../shared-utils/math/pointsIsRectangle.js";
172
162
  import "../shared-utils/three/loadVideoTexture.js";
@@ -194,6 +184,18 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
194
184
  import "../vendor/svelte/store/index.js";
195
185
  import "../CSS3DRenderPlugin/index.js";
196
186
  import "../CSS3DRenderPlugin/Controller.js";
187
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
188
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
189
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
190
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
191
+ import "../CSS3DRenderPlugin/utils/even.js";
192
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
193
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
194
+ import "../shared-utils/three/getObjectVisible.js";
195
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
196
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
197
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
198
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
197
199
  import "../shared-utils/five/fiveModelLoad.js";
198
200
  import "../shared-utils/five/FiveDomEvents.js";
199
201
  import "../shared-utils/five/calculateThreeMouse.js";
@@ -216,7 +218,7 @@ import "./utils/coordinatesAngle.js";
216
218
  import "./utils/coordinatesToVector.js";
217
219
  import "./utils/safeCall.js";
218
220
  import "../shared-utils/five/fiveLoaded.js";
219
- class no extends z {
221
+ class fo extends z {
220
222
  constructor(t, r) {
221
223
  var h;
222
224
  super(t, r);
@@ -257,14 +259,14 @@ class no extends z {
257
259
  }
258
260
  load(t, r) {
259
261
  var a, o, s, f, y, S, C, P, b;
260
- this.handlePause(), this.clear(), this.data = u({ id: O() }, t);
262
+ this.handlePause(), this.clear(), this.data = u({ id: A() }, t);
261
263
  const m = (() => {
262
264
  if (this.data.path instanceof L.Curve)
263
265
  return this.data.path.curves[0];
264
266
  {
265
267
  if (this.data.path.length < 2)
266
268
  return null;
267
- const l = this.data.path.map(A);
269
+ const l = this.data.path.map(O);
268
270
  return new L.CatmullRomCurve3(l, void 0, "catmullrom", 0.5);
269
271
  }
270
272
  })();
@@ -278,11 +280,11 @@ class no extends z {
278
280
  throw new Error("curve is not defined");
279
281
  const p = this.curve.getLength(), h = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
280
282
  if (this.duration = p / (this.state.config.speedConfig.moveSpeed / h), Array.isArray(this.data.path)) {
281
- const l = this.data.path.map(A).map((G) => G.toArray());
283
+ const l = this.data.path.map(O).map((G) => G.toArray());
282
284
  !this.GuideLine && (((C = this.config) == null ? void 0 : C.useGuideLine) !== !1 && t.useGuildLine || (P = this.config) != null && P.useGuideLine && t.useGuildLine !== !1) && (this.GuideLine = M(this.five, this.config)), (b = this.GuideLine) == null || b.load({
283
285
  lines: [
284
286
  {
285
- id: O(),
287
+ id: A(),
286
288
  path: [{ type: "CatmullRomCurve3", points: l }],
287
289
  model_style: { visible: !0 }
288
290
  }
@@ -324,5 +326,5 @@ class no extends z {
324
326
  }
325
327
  }
326
328
  export {
327
- no as default
329
+ fo as default
328
330
  };