@realsee/dnalogel 3.47.13 → 3.47.15

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 (101) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +18650 -18640
  7. package/dist/index.umd.js +47 -47
  8. package/libs/AreaMakerPlugin/Controller.js +78 -150
  9. package/libs/AreaMakerPlugin/index.js +3 -75
  10. package/libs/AreaMakerPlugin/utils/Item.js +111 -185
  11. package/libs/CSS3DRenderPlugin/Controller.js +29 -86
  12. package/libs/CSS3DRenderPlugin/index.js +12 -69
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
  15. package/libs/CruisePlugin/BaseController.js +50 -122
  16. package/libs/CruisePlugin/Move.js +21 -74
  17. package/libs/CruisePlugin/Work.js +46 -99
  18. package/libs/CruisePlugin/index.js +26 -79
  19. package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
  20. package/libs/CurrentPanoImagePlugin/index.js +4 -76
  21. package/libs/GuideLinePlugin/Controller.js +26 -79
  22. package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
  25. package/libs/GuideLinePlugin/index.js +26 -79
  26. package/libs/ModelMakerPlugin/Controller.js +83 -139
  27. package/libs/ModelMakerPlugin/index.js +16 -72
  28. package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
  29. package/libs/ModelTVVideoPlugin/index.js +7 -64
  30. package/libs/Object3DHelperPlugin/Controller.js +32 -56
  31. package/libs/Object3DHelperPlugin/index.js +12 -35
  32. package/libs/PanoCompassPlugin/Controller.js +37 -93
  33. package/libs/PanoCompassPlugin/index.js +11 -67
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
  35. package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
  36. package/libs/PanoDoorLabelPlugin/index.js +4 -76
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
  41. package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
  42. package/libs/PanoMeasurePlugin/Model/area.js +21 -91
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
  45. package/libs/PanoMeasurePlugin/index.js +25 -67
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
  48. package/libs/PanoSpatialTagPlugin/index.js +5 -62
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
  53. package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
  58. package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
  60. package/libs/PanoTagPlugin/controller/index.js +55 -108
  61. package/libs/PanoTagPlugin/index.js +31 -84
  62. package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  63. package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
  64. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
  65. package/libs/PanoVideoPlugin/Controller.js +64 -136
  66. package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
  67. package/libs/PanoVideoPlugin/index.js +8 -80
  68. package/libs/PipelinePlugin/Controller.js +128 -199
  69. package/libs/PipelinePlugin/index.js +5 -76
  70. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
  71. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
  72. package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
  73. package/libs/Sculpt/Meshes/Box.js +5 -6
  74. package/libs/Sculpt/Meshes/Cylinder.js +2 -3
  75. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  76. package/libs/Sculpt/Meshes/Line.js +50 -41
  77. package/libs/Sculpt/Meshes/Point.js +9 -10
  78. package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
  79. package/libs/Sculpt/Meshes/Polygon.js +47 -37
  80. package/libs/Sculpt/Meshes/Polyline.js +18 -16
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  82. package/libs/Sculpt/Objects/Line/Editor.js +2 -3
  83. package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
  84. package/libs/Sculpt/utils/removeAllTag.js +4 -4
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  86. package/libs/base/BasePlugin.js +3 -4
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
  95. package/libs/floorplan/index.js +0 -1
  96. package/libs/index.js +62 -62
  97. package/libs/shared-utils/five/index.js +2 -3
  98. package/libs/shared-utils/five/lookObject.js +17 -18
  99. package/libs/shared-utils/logger.js +1 -1
  100. package/libs/shared-utils/three/index.js +0 -1
  101. package/package.json +1 -1
@@ -2,12 +2,12 @@ var z = Object.defineProperty, B = Object.defineProperties;
2
2
  var H = Object.getOwnPropertyDescriptors;
3
3
  var E = Object.getOwnPropertySymbols;
4
4
  var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
- var x = (o, i, t) => i in o ? z(o, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[i] = t, F = (o, i) => {
6
- for (var t in i || (i = {}))
7
- J.call(i, t) && x(o, t, i[t]);
5
+ var x = (o, i, e) => i in o ? z(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, F = (o, i) => {
6
+ for (var e in i || (i = {}))
7
+ J.call(i, e) && x(o, e, i[e]);
8
8
  if (E)
9
- for (var t of E(i))
10
- K.call(i, t) && x(o, t, i[t]);
9
+ for (var e of E(i))
10
+ K.call(i, e) && x(o, e, i[e]);
11
11
  return o;
12
12
  }, _ = (o, i) => B(o, H(i));
13
13
  import { objectAssignDeepExports as l } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
@@ -21,7 +21,6 @@ import "hammerjs";
21
21
  import "three/examples/jsm/renderers/CSS3DRenderer";
22
22
  import "@realsee/five/line";
23
23
  import "../../../shared-utils/tag.js";
24
- import "../../../Sculpt/utils/Modules/Global.js";
25
24
  import "../../../shared-utils/three/THREESphere.js";
26
25
  import "animejs";
27
26
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -34,82 +33,9 @@ import "../../../shared-utils/Subscribe.js";
34
33
  import "../../../shared-utils/Utils/WorkUtil.js";
35
34
  import "../../../shared-utils/five/transformPosition.js";
36
35
  import "../../../shared-utils/three/temp.js";
37
- import "../../../Sculpt/utils/Modules/Cursor.js";
38
- import "../../../Object3DHelperPlugin/Controller.js";
39
- import "../../../base/BasePlugin.js";
40
- import "../../../shared-utils/url/absoluteUrl.js";
41
- import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
42
- import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
43
- import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
44
- import "../../../shared-utils/three/IObject3D.js";
45
- import "../../../shared-utils/three/boundingBox.js";
46
- import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
47
- import "../../../shared-utils/Object3DHelper/utils/direction.js";
48
- import "../../../shared-utils/Object3DHelper/Constants/color.js";
49
- import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
50
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
51
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
52
- import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
53
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
54
- import "../../../CSS3DRenderPlugin/utils/even.js";
55
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
56
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
57
- import "../../../shared-utils/three/centerPoint.js";
58
- import "../../../shared-utils/three/getObjectVisible.js";
59
- import "../../../shared-utils/isNil.js";
60
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
61
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
62
- import "../../../shared-utils/util.js";
63
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
64
- import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
65
- import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
66
- import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
67
- import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
68
- import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
69
- import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
70
- import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
71
- import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
72
- import "../../../shared-utils/threex/domevents/index.js";
73
- import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
74
- import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
75
- import "../../../Sculpt/utils/three/rayOnLine.js";
76
- import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
77
- import "../../../shared-utils/Object3DHelper/index.js";
78
- import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
79
- import "../../../shared-utils/math/rad2Deg.js";
80
- import "../../../shared-utils/math/deg2Rad.js";
81
- import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
82
- import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
83
- import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
84
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
85
- import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
86
- import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
87
- import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
88
- import "../../../shared-utils/five/fiveModelLoad.js";
89
- import "../../../shared-utils/five/FiveDomEvents.js";
90
- import "../../../shared-utils/five/calculateThreeMouse.js";
91
- import "../../../shared-utils/three/THREERaycaster.js";
92
- import "../../../shared-utils/three/PointSelector/index.js";
93
- import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
94
- import "../../../shared-utils/three/Magnifier.js";
95
- import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
96
- import "../../../shared-utils/three/Assets/index.js";
97
- import "../../../shared-utils/three/PointSelector/utils/html.js";
98
- import "../../../shared-utils/five/initialCSS3DRender.js";
99
- import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
100
- import "../../../Sculpt/Meshes/Line.js";
101
- import "../../../Sculpt/typings/style.js";
102
- import "../../../shared-utils/five/FiveLine.js";
103
- import "../../../Sculpt/utils/removeAllTag.js";
104
- import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
105
- import "../../../shared-utils/three/applyObjectMatrixWorld.js";
106
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
107
- import "../../../shared-utils/isTouchDevice.js";
108
- import "../../../shared-utils/five/getPosition.js";
109
- import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
110
- function zi(o, i, t) {
36
+ function ko(o, i, e) {
111
37
  var v, b, j, C, A;
112
- const D = (v = t == null ? void 0 : t.useCache) != null ? v : !0;
38
+ const D = (v = e == null ? void 0 : e.useCache) != null ? v : !0;
113
39
  if (!o)
114
40
  return (b = i.globalConfig) != null ? b : {};
115
41
  if (D) {
@@ -119,39 +45,39 @@ function zi(o, i, t) {
119
45
  return o.config;
120
46
  }
121
47
  const k = {}, d = {}, y = {};
122
- i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([p, e]) => {
48
+ i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([n, c]) => {
123
49
  var O, W;
124
- const r = p, a = r.split("-"), g = p.startsWith("["), c = g ? a[0].slice(1, -1) : void 0, n = g ? a.slice(1) : a, s = c ? ["PanoramaLike", "ModelLike"].includes(c) ? (O = d[c]) != null ? O : d[c] = {} : (W = y[c]) != null ? W : y[c] = {} : k;
125
- if (!s[r]) {
126
- if (n.length === 0 && (s[r] = e), n.length === 1) {
127
- const [m] = n;
128
- (o.contentType === m || m === "Any") && (s[r] = e);
50
+ const t = n, a = t.split("-"), g = n.startsWith("["), f = g ? a[0].slice(1, -1) : void 0, s = g ? a.slice(1) : a, p = f ? ["PanoramaLike", "ModelLike"].includes(f) ? (O = d[f]) != null ? O : d[f] = {} : (W = y[f]) != null ? W : y[f] = {} : k;
51
+ if (!p[t]) {
52
+ if (s.length === 0 && (p[t] = c), s.length === 1) {
53
+ const [r] = s;
54
+ (o.contentType === r || r === "Any") && (p[t] = c);
129
55
  }
130
- if (n.length === 2) {
131
- const [m = "Any", u = "Any"] = n;
132
- m === "Mixin" && o.contentType === u && (s[r] = e), (o.stickType === m || m === "Any") && (o.contentType === u || u === "Any") && (s[r] = e);
56
+ if (s.length === 2) {
57
+ const [r = "Any", m = "Any"] = s;
58
+ r === "Mixin" && o.contentType === m && (p[t] = c), (o.stickType === r || r === "Any") && (o.contentType === m || m === "Any") && (p[t] = c);
133
59
  }
134
- if (n.length === 3) {
135
- const [m = "Any", u, w] = n;
136
- if (u === "Audio" && o.contentType === "Audio") {
60
+ if (s.length === 3) {
61
+ const [r = "Any", m, w] = s;
62
+ if (m === "Audio" && o.contentType === "Audio") {
137
63
  const L = o;
138
- (L.stickType === m || m === "Any") && L.data.appearance === w && (s[r] = e);
64
+ (L.stickType === r || r === "Any") && L.data.appearance === w && (p[t] = c);
139
65
  }
140
66
  }
141
67
  }
142
68
  });
143
- const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), f = {}, q = Object.values(Q.Mode);
144
- I(d).forEach(([p, e]) => {
145
- q.forEach((r) => {
146
- (p === "PanoramaLike" && R(r) || p === "ModelLike" && S(r)) && (f[r] = l({}, M, ...Object.values(e), h, { _isMerged: !0 }));
69
+ const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), u = {}, q = Object.values(Q.Mode);
70
+ I(d).forEach(([n, c]) => {
71
+ q.forEach((t) => {
72
+ (n === "PanoramaLike" && R(t) || n === "ModelLike" && S(t)) && (u[t] = l({}, M, ...Object.values(c), h, { _isMerged: !0 }));
147
73
  });
148
- }), I(y).forEach(([p, e]) => {
149
- const r = f[p];
150
- f[p] = l({}, M, r, ...Object.values(e), h, { _isMerged: !0 });
74
+ }), I(y).forEach(([n, c]) => {
75
+ const t = u[n];
76
+ u[n] = l({}, M, t, ...Object.values(c), h, { _isMerged: !0 });
151
77
  });
152
- const T = _(F({}, G), { configWithFiveMode: f });
153
- return P(T), Object.values(f).forEach((p) => P(p)), T._isMerged = !0, T;
78
+ const T = _(F({}, G), { configWithFiveMode: u });
79
+ return P(T), Object.values(u).forEach((n) => P(n)), T._isMerged = !0, T;
154
80
  }
155
81
  export {
156
- zi as calculateTagConfig
82
+ ko as calculateTagConfig
157
83
  };
@@ -1,17 +1,17 @@
1
- var g = Object.defineProperty, f = Object.defineProperties;
2
- var b = Object.getOwnPropertyDescriptors;
3
- var d = Object.getOwnPropertySymbols;
1
+ var f = Object.defineProperty, b = Object.defineProperties;
2
+ var m = Object.getOwnPropertyDescriptors;
3
+ var p = Object.getOwnPropertySymbols;
4
4
  var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
- var p = (e, i, r) => i in e ? g(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, l = (e, i) => {
6
- for (var r in i || (i = {}))
7
- M.call(i, r) && p(e, r, i[r]);
8
- if (d)
9
- for (var r of d(i))
10
- W.call(i, r) && p(e, r, i[r]);
11
- return e;
12
- }, m = (e, i) => f(e, b(i));
13
- var s = (e, i, r) => (p(e, typeof i != "symbol" ? i + "" : i, r), r);
14
- import { VideoMeshController as h } from "./VideoMeshController.js";
5
+ var l = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, a = (o, t) => {
6
+ for (var e in t || (t = {}))
7
+ M.call(t, e) && l(o, e, t[e]);
8
+ if (p)
9
+ for (var e of p(t))
10
+ W.call(t, e) && l(o, e, t[e]);
11
+ return o;
12
+ }, d = (o, t) => b(o, m(t));
13
+ var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
14
+ import { VideoMeshController as c } from "./VideoMeshController.js";
15
15
  import { Controller as _ } from "../base/BasePlugin.js";
16
16
  import "./utils/shader.js";
17
17
  import "three";
@@ -28,87 +28,15 @@ import "../shared-utils/Subscribe.js";
28
28
  import "../shared-utils/Utils/WorkUtil.js";
29
29
  import "../shared-utils/five/transformPosition.js";
30
30
  import "../shared-utils/three/temp.js";
31
- import "../Sculpt/utils/Modules/Global.js";
32
- import "../Sculpt/utils/Modules/Cursor.js";
33
- import "../Object3DHelperPlugin/Controller.js";
34
31
  import "../shared-utils/three/THREESphere.js";
35
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
36
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
37
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
38
- import "../shared-utils/three/IObject3D.js";
39
- import "../shared-utils/three/boundingBox.js";
40
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
41
- import "../shared-utils/Object3DHelper/utils/direction.js";
42
- import "../shared-utils/Object3DHelper/Constants/color.js";
43
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
44
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
45
- import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
46
- import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
47
- import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
48
- import "../CSS3DRenderPlugin/utils/even.js";
49
- import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
50
- import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
51
- import "../shared-utils/three/centerPoint.js";
52
- import "../shared-utils/three/getObjectVisible.js";
53
32
  import "animejs";
54
- import "../shared-utils/isNil.js";
55
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
56
- import "../shared-utils/url/absoluteUrl.js";
57
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
58
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
59
- import "../shared-utils/util.js";
60
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
61
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
62
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
63
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
64
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
65
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
66
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
67
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
68
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
69
- import "../shared-utils/threex/domevents/index.js";
70
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
71
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
72
- import "../Sculpt/utils/three/rayOnLine.js";
73
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
74
- import "../shared-utils/Object3DHelper/index.js";
75
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
76
- import "../shared-utils/math/rad2Deg.js";
77
- import "../shared-utils/math/deg2Rad.js";
78
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
79
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
80
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
81
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
82
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
83
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
84
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
85
- import "../shared-utils/five/fiveModelLoad.js";
86
- import "../shared-utils/five/FiveDomEvents.js";
87
- import "../shared-utils/five/calculateThreeMouse.js";
88
- import "../shared-utils/three/THREERaycaster.js";
89
- import "../shared-utils/three/PointSelector/index.js";
90
- import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
91
- import "../shared-utils/three/Magnifier.js";
92
- import "../shared-utils/three/PointSelector/utils/PointHelper.js";
93
- import "../shared-utils/three/Assets/index.js";
94
- import "../shared-utils/three/PointSelector/utils/html.js";
95
- import "../shared-utils/five/initialCSS3DRender.js";
96
- import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
97
- import "../Sculpt/Meshes/Line.js";
98
- import "../Sculpt/typings/style.js";
99
- import "../shared-utils/five/FiveLine.js";
100
- import "../Sculpt/utils/removeAllTag.js";
101
- import "../Sculpt/utils/Meshes/getLengthHTML.js";
102
- import "../shared-utils/three/applyObjectMatrixWorld.js";
103
- import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
104
- import "../shared-utils/isTouchDevice.js";
105
- import "../shared-utils/five/getPosition.js";
106
- import "../shared-utils/five/getRaycasterByNdcPosition.js";
107
33
  import "../shared-utils/animationFrame/index.js";
34
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
108
35
  import "./utils/index.js";
109
- class mt extends _ {
110
- constructor(r) {
111
- super(r);
36
+ import "../shared-utils/url/absoluteUrl.js";
37
+ class K extends _ {
38
+ constructor(e) {
39
+ super(e);
112
40
  s(this, "controllerMap", /* @__PURE__ */ new Map());
113
41
  s(this, "data");
114
42
  s(this, "enabled", !0);
@@ -125,58 +53,58 @@ class mt extends _ {
125
53
  return this._disposed;
126
54
  }
127
55
  /** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
128
- load(r, t) {
129
- var o;
56
+ load(e, r) {
57
+ var i;
130
58
  if (this.disposed)
131
59
  return this.logWarning("插件已被销毁");
132
- typeof ((o = t == null ? void 0 : t.initialState) == null ? void 0 : o.enabled) != "undefined" && t.initialState.enabled !== this.enabled && (t.initialState.enabled ? this.enable() : this.disable()), r.list.forEach((n) => {
133
- const c = n.pano_index, u = n.render_id;
134
- n.video_list.forEach((a) => {
60
+ typeof ((i = r == null ? void 0 : r.initialState) == null ? void 0 : i.enabled) != "undefined" && r.initialState.enabled !== this.enabled && (r.initialState.enabled ? this.enable() : this.disable()), e.list.forEach((n) => {
61
+ const u = n.pano_index, g = n.render_id;
62
+ n.video_list.forEach((h) => {
135
63
  this.controllerMap.set(
136
- a.render_id,
137
- new h(this.five, m(l({}, a), {
138
- panoIndex: c,
139
- renderID: u,
64
+ h.render_id,
65
+ new c(this.five, d(a({}, h), {
66
+ panoIndex: u,
67
+ renderID: g,
140
68
  hooks: this.hooks,
141
69
  initialState: { enabled: this.enabled }
142
70
  }))
143
71
  );
144
72
  });
145
- }), this.data = r, this.hooks.emit("dataLoaded", r);
73
+ }), this.data = e, this.hooks.emit("dataLoaded", e);
146
74
  }
147
75
  /** 开启插件功能。 */
148
- enable(r) {
149
- var o;
76
+ enable(e) {
77
+ var i;
150
78
  if (this.disposed)
151
79
  return this.logWarning("插件已被销毁");
152
80
  if (this.enabled)
153
81
  return;
154
82
  this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
155
- const t = (o = r == null ? void 0 : r.userAction) != null ? o : !0;
156
- this.hooks.emit("enable", { userAction: t });
83
+ const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
84
+ this.hooks.emit("enable", { userAction: r });
157
85
  }
158
86
  /** 禁用插件功能。 */
159
- disable(r) {
160
- var o;
87
+ disable(e) {
88
+ var i;
161
89
  if (this.disposed)
162
90
  return this.logWarning("插件已被销毁");
163
91
  if (!this.enabled)
164
92
  return;
165
93
  this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
166
- const t = (o = r == null ? void 0 : r.userAction) != null ? o : !0;
167
- this.hooks.emit("disable", { userAction: t });
94
+ const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
95
+ this.hooks.emit("disable", { userAction: r });
168
96
  }
169
97
  /** 看向某个视频。
170
98
  * - 会自动切换到全景模式。
171
99
  * - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
172
100
  */
173
- lookAtVideoItemByRenderID(r) {
101
+ lookAtVideoItemByRenderID(e) {
174
102
  if (this.disposed)
175
103
  return this.logWarning("插件已被销毁");
176
- const t = this.controllerMap.get(r);
177
- if (!t)
178
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
179
- t.lookAtVideo();
104
+ const r = this.controllerMap.get(e);
105
+ if (!r)
106
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
107
+ r.lookAtVideo();
180
108
  }
181
109
  /**
182
110
  * 取消静音。
@@ -194,26 +122,26 @@ class mt extends _ {
194
122
  * }}
195
123
  * ```
196
124
  */
197
- unmuteByRenderID(r) {
125
+ unmuteByRenderID(e) {
198
126
  if (this.disposed)
199
127
  return this.logWarning("插件已被销毁");
200
- const t = this.controllerMap.get(r);
201
- if (!t)
202
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
203
- t.unmute();
128
+ const r = this.controllerMap.get(e);
129
+ if (!r)
130
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
131
+ r.unmute();
204
132
  }
205
133
  /** 为一个点位添加视频(可以是多条)。 */
206
- add(r, t) {
134
+ add(e, r) {
207
135
  if (this.disposed)
208
136
  return this.logWarning("插件已被销毁");
209
- t.forEach((o) => {
210
- if (this.controllerMap.get(o.render_id))
211
- return this.logWarning(`ID 为 ${o.render_id} 的点位视频已存在`);
212
- const n = o.render_id;
137
+ r.forEach((i) => {
138
+ if (this.controllerMap.get(i.render_id))
139
+ return this.logWarning(`ID 为 ${i.render_id} 的点位视频已存在`);
140
+ const n = i.render_id;
213
141
  this.controllerMap.set(
214
- o.render_id,
215
- new h(this.five, m(l({}, o), {
216
- panoIndex: r,
142
+ i.render_id,
143
+ new c(this.five, d(a({}, i), {
144
+ panoIndex: e,
217
145
  renderID: n,
218
146
  hooks: this.hooks,
219
147
  initialState: { enabled: this.enabled }
@@ -222,32 +150,32 @@ class mt extends _ {
222
150
  });
223
151
  }
224
152
  /** 根据 VideoItem render_id 删除某个视频。 */
225
- removeByRenderID(r) {
153
+ removeByRenderID(e) {
226
154
  if (this.disposed)
227
155
  return this.logWarning("插件已被销毁");
228
- const t = this.controllerMap.get(r);
229
- if (!t)
230
- return this.logWarning(`ID 为 ${r} 的点位视频不存在`);
231
- t.dispose(), this.controllerMap.delete(r);
156
+ const r = this.controllerMap.get(e);
157
+ if (!r)
158
+ return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
159
+ r.dispose(), this.controllerMap.delete(e);
232
160
  }
233
161
  /** 清空现有数据 */
234
162
  clear() {
235
163
  if (this.disposed)
236
164
  return this.logWarning("插件已被销毁");
237
- Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
165
+ Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
238
166
  }
239
167
  /** 销毁插件 */
240
168
  dispose() {
241
169
  if (this.disposed)
242
170
  return this.logWarning("插件已被销毁");
243
- this._disposed = !0, Array.from(this.controllerMap.values()).forEach((r) => r.dispose()), this.controllerMap.clear();
171
+ this._disposed = !0, Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
244
172
  }
245
173
  /** 控制台打印警告 */
246
174
  // TODO: 全局函数 curry 化
247
- logWarning(r) {
248
- console.warn("⛔ ==> [PanoVideoPluginController]:", r);
175
+ logWarning(e) {
176
+ console.warn("⛔ ==> [PanoVideoPluginController]:", e);
249
177
  }
250
178
  }
251
179
  export {
252
- mt as PanoVideoPluginController
180
+ K as PanoVideoPluginController
253
181
  };