@realsee/dnalogel 2.1.0-alpha.18 → 2.1.0-alpha.19

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 (203) hide show
  1. package/dist/index.cjs.js +58 -58
  2. package/dist/index.es.js +5814 -8139
  3. package/dist/index.js +20871 -0
  4. package/dist/index.umd.js +50 -50
  5. package/docs/assets/search.js +1 -1
  6. package/docs/classes/CruisePluginController.html +15 -15
  7. package/docs/classes/Magnifier.html +4 -4
  8. package/docs/classes/ModelRoomLabelController.html +4 -4
  9. package/docs/classes/Object3DHelperController.html +22 -0
  10. package/docs/classes/PaintBrush.html +8 -0
  11. package/docs/classes/PanoTagPluginController.html +160 -0
  12. package/docs/enums/CameraMovementEffect.html +2 -2
  13. package/docs/enums/ContentType.html +15 -0
  14. package/docs/enums/DIRECTION.html +1 -1
  15. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  16. package/docs/enums/DimensionType.html +1 -0
  17. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  18. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  19. package/docs/enums/LinkType.html +1 -0
  20. package/docs/enums/PaintBrushTypeEnum.html +1 -0
  21. package/docs/enums/PointType.html +1 -0
  22. package/docs/enums/Rotation.html +2 -2
  23. package/docs/index.html +2 -2
  24. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -0
  25. package/docs/interfaces/CSS3DRenderPluginState.html +3 -0
  26. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  27. package/docs/interfaces/FloorplanBounding.html +4 -4
  28. package/docs/interfaces/FloorplanData.html +2 -2
  29. package/docs/interfaces/FloorplanEntrance.html +7 -7
  30. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  31. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  32. package/docs/interfaces/FloorplanFloorData.html +2 -2
  33. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  34. package/docs/interfaces/FloorplanObserver.html +2 -2
  35. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  36. package/docs/interfaces/FloorplanPosition.html +2 -2
  37. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  38. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  39. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  40. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  41. package/docs/interfaces/FloorplanServerData.html +2 -2
  42. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  43. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  44. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  45. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  46. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  47. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  48. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  49. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  50. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  51. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  52. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  53. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  54. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  55. package/docs/interfaces/LineJson.html +1 -1
  56. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  57. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  58. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  59. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  60. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  62. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  63. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  64. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  66. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  67. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  68. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  69. package/docs/interfaces/Object3DHelperState.html +1 -0
  70. package/docs/interfaces/OpenParameter.html +2 -2
  71. package/docs/interfaces/PaintBrushAction.html +13 -0
  72. package/docs/interfaces/PaintBrushConfigs.html +1 -0
  73. package/docs/interfaces/PaintBrushState.html +1 -0
  74. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  75. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  76. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  77. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  78. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  79. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  80. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  81. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  82. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  83. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  85. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  86. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  90. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  91. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  92. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  93. package/docs/interfaces/Point.html +1 -1
  94. package/docs/interfaces/PointJson.html +1 -1
  95. package/docs/interfaces/Room.html +1 -1
  96. package/docs/interfaces/RoomInfo.html +1 -1
  97. package/docs/interfaces/RoomLabel.html +7 -7
  98. package/docs/interfaces/RoomRules.html +1 -1
  99. package/docs/interfaces/Rooms.html +1 -1
  100. package/docs/interfaces/Scissor.html +14 -0
  101. package/docs/interfaces/TagConfig.html +11 -0
  102. package/docs/interfaces/Tags.html +5 -0
  103. package/docs/modules.html +25 -20
  104. package/libs/CSS3DRenderPlugin/CSS3DRender.js +5 -3
  105. package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -2
  106. package/libs/CSS3DRenderPlugin/Controller.js +23 -21
  107. package/libs/CSS3DRenderPlugin/index.js +3 -4
  108. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +29 -30
  109. package/libs/CSS3DRenderPlugin/utils/centerPoint.d.ts +1 -1
  110. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +7 -4
  111. package/libs/CruisePlugin/Controller.d.ts +3 -1
  112. package/libs/CruisePlugin/Controller.js +158 -150
  113. package/libs/CruisePlugin/index.js +1 -1
  114. package/libs/CruisePlugin/typing.d.ts +5 -0
  115. package/libs/GuideLinePlugin/Controller.d.ts +6 -1
  116. package/libs/GuideLinePlugin/Controller.js +53 -37
  117. package/libs/GuideLinePlugin/index.d.ts +2 -2
  118. package/libs/GuideLinePlugin/index.js +5 -5
  119. package/libs/GuideLinePlugin/typing.d.ts +3 -0
  120. package/libs/GuideLinePlugin/utils/getArrowMaterial.d.ts +2 -2
  121. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +6 -7
  122. package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +8 -6
  123. package/libs/GuideLinePlugin/utils/getLineGeometries.js +72 -72
  124. package/libs/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
  125. package/libs/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
  126. package/libs/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
  127. package/libs/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
  128. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
  129. package/libs/ModelTVVideoPlugin/Plugin.d.ts +1 -1
  130. package/libs/ModelTVVideoPlugin/Plugin.js +129 -139
  131. package/libs/ModelTVVideoPlugin/index.js +14 -5
  132. package/libs/ModelTVVideoPlugin/typings.js +0 -1
  133. package/libs/ModelTVVideoPlugin/utils/parseData.d.ts +1 -1
  134. package/libs/ModelTVVideoPlugin/utils/parseData.js +12 -8
  135. package/libs/Object3DHelperPlugin/Controller.js +10 -11
  136. package/libs/Object3DHelperPlugin/index.js +8 -9
  137. package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +2 -0
  138. package/libs/Object3DHelperPlugin/mocks/objects.d.ts +7 -0
  139. package/libs/PanoCompassPlugin/Controller.js +13 -14
  140. package/libs/PanoCompassPlugin/index.js +4 -5
  141. package/libs/PanoDoorLabelPlugin/BaseController.js +24 -23
  142. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  143. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  144. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
  145. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
  146. package/libs/PanoSpatialTagPlugin/Plugin.js +3 -4
  147. package/libs/PanoSpatialTagPlugin/index.js +3 -4
  148. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  149. package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -0
  150. package/libs/PanoTagPlugin/Components/Common/Media.js +1024 -3363
  151. package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -1
  152. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
  153. package/libs/PanoTagPlugin/controller/index.js +7 -8
  154. package/libs/PanoTagPlugin/index.js +13 -14
  155. package/libs/PanoTagPlugin/mocks/mock1.d.ts +168 -0
  156. package/libs/PanoTagPlugin/mocks/mock2.d.ts +233 -0
  157. package/libs/PanoTagPlugin/mocks/mock3.d.ts +22 -0
  158. package/libs/PanoTagPlugin/mocks/mock4.d.ts +56 -0
  159. package/libs/PanoTagPlugin/mocks/mock5.d.ts +13 -0
  160. package/libs/PanoTagPlugin/mocks/mock6.d.ts +16 -0
  161. package/libs/PanoTagPlugin/mocks/mock7.d.ts +22 -0
  162. package/libs/PanoTagPlugin/utils/constants.d.ts +3 -0
  163. package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
  164. package/libs/{TagComputer.8a257a9e.js → TagComputer.5bd7014b.js} +0 -0
  165. package/libs/base/BasePlugin.d.ts +8 -2
  166. package/libs/base/BasePlugin.js +11 -10
  167. package/libs/base/BasePluginWithData.js +1 -1
  168. package/libs/floorplan/Assets/compass.d.ts +1 -0
  169. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  170. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  171. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  172. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  173. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  174. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  175. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  176. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  177. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  178. package/libs/floorplan/index.js +1 -1
  179. package/libs/index.d.ts +0 -1
  180. package/libs/index.js +89 -92
  181. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  182. package/libs/shared-utils/Object3DHelper/index.js +1 -1
  183. package/libs/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +1 -0
  184. package/libs/shared-utils/Object3DHelper/utils/negateScale.d.ts +2 -0
  185. package/libs/shared-utils/Preloader.d.ts +6 -0
  186. package/libs/shared-utils/Subscribe.d.ts +0 -1
  187. package/libs/shared-utils/Subscribe.js +5 -6
  188. package/libs/shared-utils/debounce.d.ts +6 -0
  189. package/libs/shared-utils/formatRad.d.ts +7 -0
  190. package/libs/shared-utils/getRandomColor.d.ts +1 -0
  191. package/libs/shared-utils/logger.d.ts +16 -0
  192. package/libs/shared-utils/math/evenNumber.d.ts +3 -0
  193. package/libs/shared-utils/math/rad2Deg.d.ts +1 -0
  194. package/libs/shared-utils/px2rem.d.ts +1 -0
  195. package/libs/shared-utils/three/getExtraModelLoader.d.ts +6 -0
  196. package/libs/shared-utils/three/getNormal.d.ts +2 -0
  197. package/libs/shared-utils/three/getTextureLoader.d.ts +6 -0
  198. package/libs/shared-utils/three/loadFbxObj.d.ts +2 -0
  199. package/libs/shared-utils/vectorTocoordinates.d.ts +7 -0
  200. package/libs/typings/utils.type.d.ts +2 -0
  201. package/package.json +6 -4
  202. package/docs/interfaces/CSS3DRenderPluginExportType.html +0 -4
  203. package/libs/shared-utils/three/centerPoint.js +0 -7
@@ -1,167 +1,157 @@
1
- import * as u from "three";
2
- import { parseModelTVVideoPoints as V } from "./utils/parseData.js";
1
+ import * as d from "three";
2
+ import { parseModelTVVideoPoints as z } from "./utils/parseData.js";
3
+ import { CSS3DRenderPlugin as I } from "../CSS3DRenderPlugin/index.js";
3
4
  import "./typings.js";
4
- const F = (d, { videoElement: y }) => {
5
- const r = {
5
+ import "../CSS3DRenderPlugin/Controller.js";
6
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
7
+ import "three/examples/jsm/renderers/CSS3DRenderer";
8
+ import "../shared-utils/Subscribe.js";
9
+ import "../CSS3DRenderPlugin/utils/evenNumber.js";
10
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
11
+ import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
12
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
13
+ const q = (s, { videoElement: E }) => {
14
+ const t = {
6
15
  videoMeshes: [],
7
16
  videoTextureEnabled: !1,
8
17
  videoSource: "",
9
18
  rectPoints: [],
10
19
  enabled: !1,
11
- videoElement: y
12
- }, l = (e) => {
13
- r.videoTexture && (r.videoTexture.image.muted = e, r.videoTexture.image.play());
14
- }, f = () => r.videoTexture ? r.videoTexture.image.muted : !0, h = () => {
15
- if (r.enabled || !r.videoTexture)
20
+ videoElement: E
21
+ }, f = I(s), y = /* @__PURE__ */ new Map(), M = (e) => {
22
+ t.videoTexture && (t.videoTexture.image.muted = e);
23
+ }, A = () => t.videoTexture ? t.videoTexture.image.muted : !0, T = () => {
24
+ if (t.enabled || !t.videoTexture)
16
25
  return;
17
- r.enabled = !0, r.videoMeshes = T(), r.videoMeshes.forEach((o) => d.scene.add(o));
26
+ t.enabled = !0, t.videoMeshes = R(), t.videoMeshes.forEach((n) => s.scene.add(n));
18
27
  const e = () => {
19
- if (!r.videoTexture)
28
+ if (!t.videoTexture)
20
29
  return;
21
- const o = () => {
30
+ const n = () => {
22
31
  var i;
23
- !r.videoTexture || ((i = r.videoTexture) == null || i.image.removeEventListener("timeupdate", o), r.videoTextureEnabled = !0, r.videoMeshes.forEach((n) => {
24
- n.material.map !== r.videoTexture && (n.material.map = r.videoTexture);
25
- }), d.needsRender = !0);
32
+ !t.videoTexture || ((i = t.videoTexture) == null || i.image.removeEventListener("timeupdate", n), t.videoTextureEnabled = !0, t.videoMeshes.forEach((o) => {
33
+ o.material.map !== t.videoTexture && (o.material.map = t.videoTexture);
34
+ }), s.needsRender = !0);
26
35
  };
27
- r.videoTexture.image.addEventListener("timeupdate", o), r.videoTexture && r.videoMeshes.length && r.videoTexture.image.play();
36
+ t.videoTexture.image.addEventListener("timeupdate", n), t.videoTexture && t.videoMeshes.length && (t.videoTexture.image.play(), t.videoTexture.image.onplay = () => {
37
+ f.hide();
38
+ }, t.videoTexture.image.onpause = () => {
39
+ f.show();
40
+ }, t.videoTexture.image.onclick = () => {
41
+ t.videoTexture.image.muted = !1, t.videoTexture.image.play();
42
+ });
28
43
  };
29
- if (d.model.loaded)
44
+ if (s.model.loaded)
30
45
  e();
31
46
  else
32
- return d.once("modelLoaded", () => e());
33
- }, b = () => {
34
- !r.enabled || (r.enabled = !1, r.videoMeshes.forEach((e) => {
35
- e.geometry.dispose(), e.material.dispose(), d.scene.remove(e), r.videoTexture && r.videoTexture.image.pause();
36
- }), r.videoMeshes = [], d.needsRender = !0);
37
- }, T = () => r.rectPoints.map((e, o) => {
38
- const i = new u.BufferGeometry(), n = 128, t = [];
39
- t.push(e[0].x, e[0].y, e[0].z);
40
- for (let a = 1; a < n; a++)
41
- t.push(
42
- e[0].x + (e[1].x - e[0].x) * a / n,
43
- e[0].y + (e[1].y - e[0].y) * a / n,
44
- e[0].z + (e[1].z - e[0].z) * a / n
47
+ return s.once("modelLoaded", () => e());
48
+ }, g = () => {
49
+ !t.enabled || (t.enabled = !1, t.videoMeshes.forEach((e) => {
50
+ e.geometry.dispose(), e.material.dispose(), s.scene.remove(e), t.videoTexture && t.videoTexture.image.pause();
51
+ }), t.videoMeshes = [], s.needsRender = !0);
52
+ }, R = () => t.rectPoints.map((e, n) => {
53
+ const i = new d.BufferGeometry(), o = 128, a = [];
54
+ a.push(...e[0].toArray());
55
+ for (let r = 1; r < o; r++)
56
+ a.push(
57
+ e[0].x + (e[1].x - e[0].x) * r / o,
58
+ e[0].y + (e[1].y - e[0].y) * r / o,
59
+ e[0].z + (e[1].z - e[0].z) * r / o
45
60
  );
46
- t.push(e[1].x, e[1].y, e[1].z), t.push(e[2].x, e[2].y, e[2].z);
47
- for (let a = 1; a < n; a++)
48
- t.push(
49
- e[2].x + (e[3].x - e[2].x) * a / n,
50
- e[2].y + (e[3].y - e[2].y) * a / n,
51
- e[2].z + (e[3].z - e[2].z) * a / n
61
+ a.push(...e[1].toArray()), a.push(...e[2].toArray());
62
+ for (let r = 1; r < o; r++)
63
+ a.push(
64
+ e[2].x + (e[3].x - e[2].x) * r / o,
65
+ e[2].y + (e[3].y - e[2].y) * r / o,
66
+ e[2].z + (e[3].z - e[2].z) * r / o
52
67
  );
53
- t.push(e[3].x, e[3].y, e[3].z);
54
- const s = [];
55
- s.push(0, 1);
56
- for (let a = 1; a < n; a++)
57
- s.push(0, 1 - a / n);
58
- s.push(0, 0), s.push(1, 0);
59
- for (let a = 1; a < n; a++)
60
- s.push(1, a / n);
61
- s.push(1, 1);
68
+ a.push(...e[3].toArray());
62
69
  const c = [];
63
- for (let a = 0; a < n; a++)
64
- c.push(a, a + 1, n * 2 - a, a, n * 2 - a, n * 2 + 1 - a);
65
- i.setAttribute("position", new u.BufferAttribute(new Float32Array(t), 3)), i.setAttribute("uv", new u.BufferAttribute(new Float32Array(s), 2)), i.setIndex(new u.BufferAttribute(new Uint32Array(c), 1));
66
- const x = new u.MeshBasicMaterial({
67
- map: r.videoTextureEnabled ? r.videoTexture : r.imageTexture,
68
- side: u.DoubleSide
69
- }), m = new u.Mesh(i, x);
70
- return m.renderOrder = 1, m.name = `ModelTVVideoPlugin-${o}-${performance.now()}`, m;
71
- }), g = (e) => {
72
- const o = new u.TextureLoader().load(e);
73
- return o.minFilter = u.LinearFilter, o.magFilter = u.LinearFilter, o.format = u.RGBFormat, o;
74
- }, w = (e, o) => new Promise((i, n) => {
75
- const t = new XMLHttpRequest();
76
- t.onreadystatechange = () => {
77
- if (t.readyState == 4)
78
- if (t.status == 200) {
79
- const s = window.URL || window.webkitURL;
80
- o = o || document.createElement("video"), o.crossOrigin = "anonymous", o.autoplay = !0, o.muted = !0, o.loop = !0, o.playsInline = !0, o.src = s.createObjectURL(t.response);
81
- const c = new u.VideoTexture(o);
82
- c.minFilter = u.LinearFilter, c.magFilter = u.LinearFilter, c.format = u.RGBFormat, i(Object.assign(c, { videoSource: e }));
70
+ c.push(0, 1);
71
+ for (let r = 1; r < o; r++)
72
+ c.push(0, 1 - r / o);
73
+ c.push(0, 0), c.push(1, 0);
74
+ for (let r = 1; r < o; r++)
75
+ c.push(1, r / o);
76
+ c.push(1, 1);
77
+ const u = [];
78
+ for (let r = 0; r < o; r++)
79
+ u.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
80
+ i.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), i.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), i.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
81
+ const l = new d.AxesHelper(10);
82
+ s.scene.add(l);
83
+ const m = new d.MeshBasicMaterial({
84
+ map: t.videoTextureEnabled ? t.videoTexture : t.imageTexture,
85
+ side: d.DoubleSide
86
+ }), x = new d.Mesh(i, m);
87
+ x.renderOrder = 1, x.name = `ModelTVVideoPlugin-${n}-${performance.now()}`;
88
+ const S = [e[1], e[2], e[3], e[0]], p = f.create3DDomContainer(S);
89
+ if (p != null && p.container) {
90
+ const r = document.createElement("div");
91
+ r.classList.add("play-icon"), r.style.width = "100%", r.style.height = "100%", r.style.display = "flex", r.style.justifyContent = "center", r.style.alignItems = "center", r.style.pointerEvents = "none", p.container.appendChild(r);
92
+ const h = document.createElement("img");
93
+ h.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", h.style.width = "200px", h.style.pointerEvents = "auto", h.onclick = () => {
94
+ t.videoTexture.image.muted = !1, t.videoTexture.image.play();
95
+ }, r.appendChild(h), y.set(x, p);
96
+ }
97
+ return x;
98
+ }), F = (e) => {
99
+ const n = new d.TextureLoader().load(e);
100
+ return n.minFilter = d.LinearFilter, n.magFilter = d.LinearFilter, n.format = d.RGBFormat, n;
101
+ }, L = (e, n) => new Promise((i, o) => {
102
+ const a = new XMLHttpRequest();
103
+ a.onreadystatechange = () => {
104
+ if (a.readyState == 4)
105
+ if (a.status == 200) {
106
+ const c = window.URL || window.webkitURL;
107
+ n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = c.createObjectURL(a.response);
108
+ const u = new d.VideoTexture(n);
109
+ u.minFilter = d.LinearFilter, u.magFilter = d.LinearFilter, u.format = d.RGBFormat, i(Object.assign(u, { videoSource: e }));
83
110
  } else
84
- n(new Error("Video download Error: " + t.status));
85
- }, t.onerror = (s) => n(s), t.open("GET", e), t.responseType = "blob", t.send();
86
- }), v = async (e, o) => {
87
- const { video_src: i, video_poster_src: n, points: t } = e;
88
- r.videoSource = i, r.rectPoints = V(t).map((s) => s.map(({ x: c, y: x, z: m }) => new u.Vector3(c, x, m))), r.imageTexture = g(n), o && (r.videoElement = o), r.videoTexture = await w(r.videoSource, r.videoElement), r.enabled = !!e.enable, r.enabled && h();
89
- }, M = () => {
90
- b(), r.videoTexture = void 0, d.off("modeChange", () => l(!0)), d.off("wantsTapGesture", (e) => {
91
- if (!r.enabled)
92
- return;
93
- const [o] = e.intersectObjects(d.scene.children, !0);
94
- if (!!o && /^video/.test(o.object.name))
95
- return r.videoTexture && l(!r.videoTexture.image.muted), !1;
96
- }), d.off("panoArrived", () => {
97
- if (!r.enabled || f())
98
- return;
99
- const e = d.camera.position;
100
- r.rectPoints.find((i) => {
101
- const n = i.reduce(
102
- (t, s) => new u.Vector3(
103
- t.x + s.x / i.length,
104
- t.y + s.y / i.length,
105
- t.z + s.z / i.length
106
- ),
107
- new u.Vector3()
108
- );
109
- return i.map(
110
- (t) => new u.Vector3(
111
- (t.x + n.x) / 2,
112
- (t.y + n.y) / 2,
113
- (t.z + n.z) / 2
114
- )
115
- ).filter((t) => {
116
- t = t.clone().sub(e).normalize();
117
- const s = new u.Raycaster(e, t), [c] = s.intersectObjects(d.scene.children, !0);
118
- return !!c && /^video/.test(c.object.name);
111
+ o(new Error("Video download Error: " + a.status));
112
+ }, a.onerror = (c) => o(c), a.open("GET", e), a.responseType = "blob", a.send();
113
+ }), P = async (e, n) => {
114
+ const { video_src: i, video_poster_src: o, points: a } = e;
115
+ t.videoSource = i, t.rectPoints = z(a).map((c) => c.map(({ x: u, y: l, z: m }) => new d.Vector3(u, l, m))), t.imageTexture = F(o), n && (t.videoElement = n), t.videoTexture = await L(t.videoSource, t.videoElement), t.enabled = !!e.enable, t.enabled && T();
116
+ }, v = (e) => {
117
+ if (!t.enabled)
118
+ return;
119
+ const n = t.videoMeshes;
120
+ if (!(!n || e.intersectObjects(n).length === 0))
121
+ return t.videoTexture && (t.videoTexture.image.paused || t.videoTexture.image.pause()), !1;
122
+ }, b = (e) => {
123
+ e === "Floorplan" ? f.hide() : f.show();
124
+ }, w = () => {
125
+ if (!t.enabled)
126
+ return;
127
+ const e = s.camera.position;
128
+ if (y.forEach((n, i) => {
129
+ const o = n.css3DObject.position.clone(), a = o.clone().sub(e).normalize(), c = new d.Raycaster(e, a), u = s.model.intersectRaycaster(c)[0], l = o.distanceTo(e), m = 0.01;
130
+ u && u.distance + m < l ? n.hide() : n.show();
131
+ }), !A()) {
132
+ const n = t.rectPoints.find((i) => {
133
+ const o = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
134
+ return i.map((a) => a.clone().add(o).divideScalar(2)).filter((a) => {
135
+ const c = a.distanceTo(e), u = new d.Raycaster(e, a.clone().sub(e).normalize()), l = s.model.intersectRaycaster(u)[0], m = 0.01;
136
+ return !(l && l.distance + m < c);
119
137
  }).length >= 2;
120
- }) || l(!0);
121
- }), d.off("renderFrame", () => {
122
- r.videoMeshes.forEach((e) => {
138
+ });
139
+ (!n || n.length === 0) && M(!0);
140
+ }
141
+ }, V = () => {
142
+ g(), t.videoTexture = void 0, s.off("modeChange", b), s.off("wantsTapGesture", v), s.off("panoArrived", w), s.off("renderFrame", () => {
143
+ t.videoMeshes.forEach((e) => {
123
144
  e && (e.needsRender = !0);
124
145
  });
125
146
  });
126
147
  };
127
- return d.on("modeChange", () => l(!0)), d.on("wantsTapGesture", (e) => {
128
- if (!r.enabled)
129
- return;
130
- const o = d.scene.children.filter((n) => /^ModelTVVideoPlugin/.test(n.name));
131
- if (!(!o || e.intersectObjects(o).length === 0))
132
- return r.videoTexture && l(!r.videoTexture.image.muted), !1;
133
- }), d.on("panoArrived", () => {
134
- if (!r.enabled || f())
135
- return;
136
- const e = d.camera.position;
137
- r.rectPoints.find((i) => {
138
- const n = i.reduce(
139
- (t, s) => new u.Vector3(
140
- t.x + s.x / i.length,
141
- t.y + s.y / i.length,
142
- t.z + s.z / i.length
143
- ),
144
- new u.Vector3()
145
- );
146
- return i.map(
147
- (t) => new u.Vector3(
148
- (t.x + n.x) / 2,
149
- (t.y + n.y) / 2,
150
- (t.z + n.z) / 2
151
- )
152
- ).filter((t) => {
153
- t = t.clone().sub(e).normalize();
154
- const s = new u.Raycaster(e, t), [c] = s.intersectObjects(d.scene.children, !0);
155
- return !!c && /^video/.test(c.object.name);
156
- }).length >= 2;
157
- }) || l(!0);
158
- }), d.on("renderFrame", () => {
159
- r.videoMeshes.forEach((e) => {
148
+ return s.on("modeChange", b), s.on("wantsTapGesture", v), s.on("panoArrived", w), s.on("renderFrame", () => {
149
+ t.videoMeshes.forEach((e) => {
160
150
  e && (e.needsRender = !0);
161
151
  });
162
- }), Object.assign(window, { $state: r }), { enable: h, disable: b, load: v, dispose: M };
152
+ }), { enable: T, disable: g, load: P, dispose: V, state: t, css3DRenderPlugin: f };
163
153
  };
164
154
  export {
165
- F as ModelTVVideoPlugin,
166
- F as default
155
+ q as ModelTVVideoPlugin,
156
+ q as default
167
157
  };
@@ -1,10 +1,19 @@
1
1
  import "./Plugin.js";
2
- import { ModelTVVideoPlugin as m, ModelTVVideoPlugin as t } from "./Plugin.js";
3
- import { DIRECTION as p } from "./typings.js";
2
+ import { ModelTVVideoPlugin as M, ModelTVVideoPlugin as P } from "./Plugin.js";
3
+ import { DIRECTION as x } from "./typings.js";
4
4
  import "three";
5
5
  import "./utils/parseData.js";
6
+ import "../CSS3DRenderPlugin/index.js";
7
+ import "../CSS3DRenderPlugin/Controller.js";
8
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
9
+ import "three/examples/jsm/renderers/CSS3DRenderer";
10
+ import "../shared-utils/Subscribe.js";
11
+ import "../CSS3DRenderPlugin/utils/evenNumber.js";
12
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
13
+ import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
14
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
6
15
  export {
7
- p as DIRECTION,
8
- m as ModelTVVideoPlugin,
9
- t as default
16
+ x as DIRECTION,
17
+ M as ModelTVVideoPlugin,
18
+ P as default
10
19
  };
@@ -1,4 +1,3 @@
1
- import "three";
2
1
  var o = /* @__PURE__ */ ((t) => (t.TOP_LEFT = "topLeft", t.TOP_RIGHT = "topRight", t.BOTTOM_LEFT = "bottomLeft", t.BOTTOM_RIGHT = "bottomRight", t))(o || {});
3
2
  export {
4
3
  o as DIRECTION
@@ -1,2 +1,2 @@
1
- import { DIRECTION, Point } from "../typings";
1
+ import { DIRECTION, Point } from '../typings';
2
2
  export declare function parseModelTVVideoPoints(points: Point[][] | Record<DIRECTION, Point>[]): Point[][];
@@ -1,16 +1,20 @@
1
1
  import { DIRECTION as e } from "../typings.js";
2
- import "three";
3
- function u(r) {
2
+ function f(r) {
4
3
  if (r.length === 0)
5
4
  return [];
6
5
  if (Array.isArray(r[0]))
7
6
  return r;
8
- let t = [];
9
- return r.map((T) => {
10
- const O = [T[e.TOP_LEFT], T[e.BOTTOM_LEFT], T[e.BOTTOM_RIGHT], T[e.TOP_RIGHT]];
11
- t.push(O);
12
- }), t;
7
+ let O = [];
8
+ return r.forEach((T) => {
9
+ const n = [
10
+ T[e.TOP_LEFT],
11
+ T[e.BOTTOM_LEFT],
12
+ T[e.BOTTOM_RIGHT],
13
+ T[e.TOP_RIGHT]
14
+ ];
15
+ O.push(n);
16
+ }), O;
13
17
  }
14
18
  export {
15
- u as parseModelTVVideoPoints
19
+ f as parseModelTVVideoPoints
16
20
  };
@@ -8,11 +8,11 @@ import { RotateHelper as E } from "../shared-utils/Object3DHelper/Helper/RotateH
8
8
  import { RectangleScaleHelper as M } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
9
9
  import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
10
10
  import { MoveController as O } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
11
- import { ControllerWrapper as a } from "./FiveControllerWrapper.js";
11
+ import { ControllerWrapper as p } from "./FiveControllerWrapper.js";
12
12
  import { Object3DHelper as y } from "../shared-utils/Object3DHelper/index.js";
13
13
  import { RotateController as D } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
14
14
  import { CSS3DScaleController as I } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
15
- import "@realsee/five";
15
+ import "../shared-utils/Subscribe.js";
16
16
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
17
17
  import "../shared-utils/Object3DHelper/Constants/color.js";
18
18
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -21,7 +21,6 @@ import "../shared-utils/Object3DHelper/utils/direction.js";
21
21
  import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
22
22
  import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
23
23
  import "../CSS3DRenderPlugin/CSS3DRender.js";
24
- import "../shared-utils/Subscribe.js";
25
24
  import "../CSS3DRenderPlugin/utils/evenNumber.js";
26
25
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
27
26
  import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
@@ -41,7 +40,7 @@ const f = "v1.0.0", d = "Object3DHelperPlugin", h = `${d}@${f}`, j = () => {
41
40
  }, L = () => {
42
41
  console.error(`${h} is disabled`);
43
42
  };
44
- class me extends S {
43
+ class he extends S {
45
44
  constructor(e) {
46
45
  super(e);
47
46
  n(this, "version", f);
@@ -90,19 +89,19 @@ class me extends S {
90
89
  }
91
90
  const r = new y();
92
91
  this.objectHelperMap.set(e, r);
93
- const p = (c = this.five.getElement()) == null ? void 0 : c.parentElement, m = this.five.camera, { moveHelper: b = !0, rotateHelper: v = !0, scaleHelper: H = !0 } = t;
92
+ const a = (c = this.five.getElement()) == null ? void 0 : c.parentElement, m = this.five.camera, { moveHelper: b = !0, rotateHelper: v = !0, scaleHelper: H = !0 } = t;
94
93
  if (b) {
95
- const s = new g(e), l = new a(this.five, O, e, s);
94
+ const s = new g(e), l = new p(this.five, O, e, s);
96
95
  r.addControllers({ moveController: l.helperController });
97
96
  }
98
97
  if (v) {
99
98
  let s;
100
- p && m && (s = { container: p });
101
- const l = new E(e, s), u = new a(this.five, D, e, l);
99
+ a && m && (s = { container: a });
100
+ const l = new E(e, s), u = new p(this.five, D, e, l);
102
101
  r.addControllers({ rotateController: u.helperController });
103
102
  }
104
- if (H && p) {
105
- const s = new M(e, p, m, this.five.scene), l = new a(this.five, I, e, s);
103
+ if (H && a) {
104
+ const s = new M(e, a, m, this.five.scene), l = new p(this.five, I, e, s);
106
105
  r.addControllers({ scaleController: l.helperController });
107
106
  }
108
107
  }
@@ -131,7 +130,7 @@ class me extends S {
131
130
  }
132
131
  }
133
132
  export {
134
- me as Object3DHelperController,
133
+ he as Object3DHelperController,
135
134
  h as PLUGIN,
136
135
  f as VERSION
137
136
  };
@@ -1,7 +1,7 @@
1
1
  import { Object3DHelperController as o } from "./Controller.js";
2
- import { Object3DHelperController as z, PLUGIN as A, VERSION as B } from "./Controller.js";
2
+ import { Object3DHelperController as y, PLUGIN as z, VERSION as A } from "./Controller.js";
3
3
  import "../base/BasePlugin.js";
4
- import "@realsee/five";
4
+ import "../shared-utils/Subscribe.js";
5
5
  import "three";
6
6
  import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
7
7
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
@@ -15,7 +15,6 @@ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
15
15
  import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
16
16
  import "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
17
17
  import "../CSS3DRenderPlugin/CSS3DRender.js";
18
- import "../shared-utils/Subscribe.js";
19
18
  import "../CSS3DRenderPlugin/utils/evenNumber.js";
20
19
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
21
20
  import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
@@ -33,11 +32,11 @@ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
33
32
  import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
34
33
  import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
35
34
  import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
36
- const q = (r) => new o(r);
35
+ const k = (r) => new o(r);
37
36
  export {
38
- z as Object3DHelperController,
39
- q as Object3DHelperPlugin,
40
- A as PLUGIN,
41
- B as VERSION,
42
- q as default
37
+ y as Object3DHelperController,
38
+ k as Object3DHelperPlugin,
39
+ z as PLUGIN,
40
+ A as VERSION,
41
+ k as default
43
42
  };
@@ -0,0 +1,2 @@
1
+ import type { Object3D, Scene } from 'three';
2
+ export default function addObject3D(item: any, scene: Scene): Promise<Object3D>;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ id: string;
3
+ name: string;
4
+ imageUrl: string;
5
+ modelUrl: string;
6
+ }[];
7
+ export default _default;
@@ -9,20 +9,19 @@ import { loadTexture as u } from "../shared-utils/three/loadTexture.js";
9
9
  import { CSS3DRenderPlugin as w } from "../CSS3DRenderPlugin/index.js";
10
10
  import { tweenProgress as P } from "../shared-utils/animationFrame/BetterTween.js";
11
11
  import "../base/BasePlugin.js";
12
+ import "../shared-utils/Subscribe.js";
12
13
  import "./Assets/roomInfoIcon.js";
13
14
  import "../CSS3DRenderPlugin/Controller.js";
14
15
  import "../CSS3DRenderPlugin/CSS3DRender.js";
15
16
  import "three/examples/jsm/renderers/CSS3DRenderer";
16
- import "../shared-utils/Subscribe.js";
17
17
  import "../CSS3DRenderPlugin/utils/evenNumber.js";
18
18
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
19
19
  import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
20
20
  import "../CSS3DRenderPlugin/utils/centerPoint.js";
21
- import "../CSS3DRenderPlugin/utils/random.js";
22
21
  import "@tweenjs/tween.js";
23
22
  import "../shared-utils/animationFrame/index.js";
24
- const c = { userAction: !0 };
25
- class Y extends b {
23
+ const p = { userAction: !0 };
24
+ class J extends b {
26
25
  constructor(e, t) {
27
26
  super(e);
28
27
  i(this, "state", {
@@ -75,15 +74,15 @@ class Y extends b {
75
74
  var s, o, r, m, l, f, d;
76
75
  const t = (r = (o = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : o[e]) == null ? void 0 : r.standingPosition;
77
76
  if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((m = this.compassMeshTween) == null || m.dispose(), this.compassMeshTween = P(1e3).onUpdate(({ progress: v }) => {
78
- var p;
79
- (p = this.compassMesh) == null || p.material.setValues({ opacity: v }), this.five.needsRender = !0;
77
+ var c;
78
+ (c = this.compassMesh) == null || c.material.setValues({ opacity: v }), this.five.needsRender = !0;
80
79
  }).play())), this.entryDoorMesh) {
81
- const p = new n.Vector3(
80
+ const c = new n.Vector3(
82
81
  this.data.entrance.position.x,
83
82
  this.data.entrance.position.y,
84
83
  this.data.entrance.position.z
85
- ).clone().setY(t.y).sub(t).normalize(), I = t.clone().add(p.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
86
- this.entryDoorMesh.rotation.z = new n.Vector3(0, 0, -1).angleTo(p), this.entryDoorMesh.position.copy(I), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (f = this.entryDoorMesh) == null || f.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
84
+ ).clone().setY(t.y).sub(t).normalize(), I = t.clone().add(c.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
85
+ this.entryDoorMesh.rotation.z = new n.Vector3(0, 0, -1).angleTo(c), this.entryDoorMesh.position.copy(I), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (f = this.entryDoorMesh) == null || f.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
87
86
  }
88
87
  this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
89
88
  t.clone().setY(t.y + 0.01)
@@ -113,7 +112,7 @@ class Y extends b {
113
112
  }
114
113
  });
115
114
  }
116
- enable(e = c) {
115
+ enable(e = p) {
117
116
  this.setState(
118
117
  {
119
118
  enabled: !0
@@ -121,7 +120,7 @@ class Y extends b {
121
120
  e
122
121
  );
123
122
  }
124
- disable(e = c) {
123
+ disable(e = p) {
125
124
  this.setState(
126
125
  {
127
126
  enabled: !1
@@ -129,7 +128,7 @@ class Y extends b {
129
128
  e
130
129
  );
131
130
  }
132
- show(e = c) {
131
+ show(e = p) {
133
132
  if (!!this.state.enabled)
134
133
  return this.setState(
135
134
  {
@@ -138,7 +137,7 @@ class Y extends b {
138
137
  e
139
138
  ), Promise.resolve();
140
139
  }
141
- hide(e = c) {
140
+ hide(e = p) {
142
141
  if (!!this.state.enabled)
143
142
  return this.setState(
144
143
  {
@@ -203,5 +202,5 @@ class Y extends b {
203
202
  }
204
203
  }
205
204
  export {
206
- Y as PanoCompassController
205
+ J as PanoCompassController
207
206
  };
@@ -3,6 +3,7 @@ import "three";
3
3
  import "@realsee/five";
4
4
  import "../base/BasePluginWithData.js";
5
5
  import "../base/BasePlugin.js";
6
+ import "../shared-utils/Subscribe.js";
6
7
  import "./getRoomInfoInstance.js";
7
8
  import "./Assets/roomInfoIcon.js";
8
9
  import "../shared-utils/three/loadTexture.js";
@@ -10,17 +11,15 @@ import "../CSS3DRenderPlugin/index.js";
10
11
  import "../CSS3DRenderPlugin/Controller.js";
11
12
  import "../CSS3DRenderPlugin/CSS3DRender.js";
12
13
  import "three/examples/jsm/renderers/CSS3DRenderer";
13
- import "../shared-utils/Subscribe.js";
14
14
  import "../CSS3DRenderPlugin/utils/evenNumber.js";
15
15
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
16
16
  import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
17
17
  import "../CSS3DRenderPlugin/utils/centerPoint.js";
18
- import "../CSS3DRenderPlugin/utils/random.js";
19
18
  import "../shared-utils/animationFrame/BetterTween.js";
20
19
  import "@tweenjs/tween.js";
21
20
  import "../shared-utils/animationFrame/index.js";
22
- const q = (o, r) => new t(o, r);
21
+ const k = (o, r) => new t(o, r);
23
22
  export {
24
- q as PanoCompassPlugin,
25
- q as default
23
+ k as PanoCompassPlugin,
24
+ k as default
26
25
  };