@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.
- package/dist/index.cjs.js +58 -58
- package/dist/index.es.js +5814 -8139
- package/dist/index.js +20871 -0
- package/dist/index.umd.js +50 -50
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +15 -15
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +22 -0
- package/docs/classes/PaintBrush.html +8 -0
- package/docs/classes/PanoTagPluginController.html +160 -0
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +15 -0
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -0
- package/docs/enums/PaintBrushTypeEnum.html +1 -0
- package/docs/enums/PointType.html +1 -0
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -0
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +13 -0
- package/docs/interfaces/PaintBrushConfigs.html +1 -0
- package/docs/interfaces/PaintBrushState.html +1 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +14 -0
- package/docs/interfaces/TagConfig.html +11 -0
- package/docs/interfaces/Tags.html +5 -0
- package/docs/modules.html +25 -20
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +5 -3
- package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +23 -21
- package/libs/CSS3DRenderPlugin/index.js +3 -4
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +29 -30
- package/libs/CSS3DRenderPlugin/utils/centerPoint.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +7 -4
- package/libs/CruisePlugin/Controller.d.ts +3 -1
- package/libs/CruisePlugin/Controller.js +158 -150
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/CruisePlugin/typing.d.ts +5 -0
- package/libs/GuideLinePlugin/Controller.d.ts +6 -1
- package/libs/GuideLinePlugin/Controller.js +53 -37
- package/libs/GuideLinePlugin/index.d.ts +2 -2
- package/libs/GuideLinePlugin/index.js +5 -5
- package/libs/GuideLinePlugin/typing.d.ts +3 -0
- package/libs/GuideLinePlugin/utils/getArrowMaterial.d.ts +2 -2
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +6 -7
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +8 -6
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +72 -72
- package/libs/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/libs/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/libs/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
- package/libs/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +129 -139
- package/libs/ModelTVVideoPlugin/index.js +14 -5
- package/libs/ModelTVVideoPlugin/typings.js +0 -1
- package/libs/ModelTVVideoPlugin/utils/parseData.d.ts +1 -1
- package/libs/ModelTVVideoPlugin/utils/parseData.js +12 -8
- package/libs/Object3DHelperPlugin/Controller.js +10 -11
- package/libs/Object3DHelperPlugin/index.js +8 -9
- package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +2 -0
- package/libs/Object3DHelperPlugin/mocks/objects.d.ts +7 -0
- package/libs/PanoCompassPlugin/Controller.js +13 -14
- package/libs/PanoCompassPlugin/index.js +4 -5
- package/libs/PanoDoorLabelPlugin/BaseController.js +24 -23
- package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +3 -4
- package/libs/PanoSpatialTagPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -0
- package/libs/PanoTagPlugin/Components/Common/Media.js +1024 -3363
- package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
- package/libs/PanoTagPlugin/controller/index.js +7 -8
- package/libs/PanoTagPlugin/index.js +13 -14
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +168 -0
- package/libs/PanoTagPlugin/mocks/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +2 -0
- package/libs/{TagComputer.8a257a9e.js → TagComputer.5bd7014b.js} +0 -0
- package/libs/base/BasePlugin.d.ts +8 -2
- package/libs/base/BasePlugin.js +11 -10
- package/libs/base/BasePluginWithData.js +1 -1
- package/libs/floorplan/Assets/compass.d.ts +1 -0
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/index.js +1 -1
- package/libs/index.d.ts +0 -1
- package/libs/index.js +89 -92
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/utils/negateScale.d.ts +2 -0
- package/libs/shared-utils/Preloader.d.ts +6 -0
- package/libs/shared-utils/Subscribe.d.ts +0 -1
- package/libs/shared-utils/Subscribe.js +5 -6
- package/libs/shared-utils/debounce.d.ts +6 -0
- package/libs/shared-utils/formatRad.d.ts +7 -0
- package/libs/shared-utils/getRandomColor.d.ts +1 -0
- package/libs/shared-utils/logger.d.ts +16 -0
- package/libs/shared-utils/math/evenNumber.d.ts +3 -0
- package/libs/shared-utils/math/rad2Deg.d.ts +1 -0
- package/libs/shared-utils/px2rem.d.ts +1 -0
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/libs/shared-utils/three/getNormal.d.ts +2 -0
- package/libs/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/libs/shared-utils/three/loadFbxObj.d.ts +2 -0
- package/libs/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/libs/typings/utils.type.d.ts +2 -0
- package/package.json +6 -4
- package/docs/interfaces/CSS3DRenderPluginExportType.html +0 -4
- package/libs/shared-utils/three/centerPoint.js +0 -7
|
@@ -1,167 +1,157 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { parseModelTVVideoPoints as
|
|
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
|
-
|
|
5
|
-
|
|
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:
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
if (
|
|
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
|
-
|
|
26
|
+
t.enabled = !0, t.videoMeshes = R(), t.videoMeshes.forEach((n) => s.scene.add(n));
|
|
18
27
|
const e = () => {
|
|
19
|
-
if (!
|
|
28
|
+
if (!t.videoTexture)
|
|
20
29
|
return;
|
|
21
|
-
const
|
|
30
|
+
const n = () => {
|
|
22
31
|
var i;
|
|
23
|
-
!
|
|
24
|
-
|
|
25
|
-
}),
|
|
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
|
-
|
|
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 (
|
|
44
|
+
if (s.model.loaded)
|
|
30
45
|
e();
|
|
31
46
|
else
|
|
32
|
-
return
|
|
33
|
-
},
|
|
34
|
-
!
|
|
35
|
-
e.geometry.dispose(), e.material.dispose(),
|
|
36
|
-
}),
|
|
37
|
-
},
|
|
38
|
-
const i = new
|
|
39
|
-
|
|
40
|
-
for (let
|
|
41
|
-
|
|
42
|
-
e[0].x + (e[1].x - e[0].x) *
|
|
43
|
-
e[0].y + (e[1].y - e[0].y) *
|
|
44
|
-
e[0].z + (e[1].z - e[0].z) *
|
|
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
|
-
|
|
47
|
-
for (let
|
|
48
|
-
|
|
49
|
-
e[2].x + (e[3].x - e[2].x) *
|
|
50
|
-
e[2].y + (e[3].y - e[2].y) *
|
|
51
|
-
e[2].z + (e[3].z - e[2].z) *
|
|
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
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
85
|
-
},
|
|
86
|
-
}),
|
|
87
|
-
const { video_src: i, video_poster_src:
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
})
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
128
|
-
|
|
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
|
-
}),
|
|
152
|
+
}), { enable: T, disable: g, load: P, dispose: V, state: t, css3DRenderPlugin: f };
|
|
163
153
|
};
|
|
164
154
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
155
|
+
q as ModelTVVideoPlugin,
|
|
156
|
+
q as default
|
|
167
157
|
};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import "./Plugin.js";
|
|
2
|
-
import { ModelTVVideoPlugin as
|
|
3
|
-
import { DIRECTION as
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
x as DIRECTION,
|
|
17
|
+
M as ModelTVVideoPlugin,
|
|
18
|
+
P as default
|
|
10
19
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DIRECTION, Point } from
|
|
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
|
-
|
|
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
|
|
9
|
-
return r.
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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
|
|
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 "
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
101
|
-
const l = new E(e, s), u = new
|
|
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 &&
|
|
105
|
-
const s = new M(e,
|
|
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
|
-
|
|
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
|
|
2
|
+
import { Object3DHelperController as y, PLUGIN as z, VERSION as A } from "./Controller.js";
|
|
3
3
|
import "../base/BasePlugin.js";
|
|
4
|
-
import "
|
|
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
|
|
35
|
+
const k = (r) => new o(r);
|
|
37
36
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
y as Object3DHelperController,
|
|
38
|
+
k as Object3DHelperPlugin,
|
|
39
|
+
z as PLUGIN,
|
|
40
|
+
A as VERSION,
|
|
41
|
+
k as default
|
|
43
42
|
};
|
|
@@ -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
|
|
25
|
-
class
|
|
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
|
|
79
|
-
(
|
|
77
|
+
var c;
|
|
78
|
+
(c = this.compassMesh) == null || c.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
80
79
|
}).play())), this.entryDoorMesh) {
|
|
81
|
-
const
|
|
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(
|
|
86
|
-
this.entryDoorMesh.rotation.z = new n.Vector3(0, 0, -1).angleTo(
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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
|
|
21
|
+
const k = (o, r) => new t(o, r);
|
|
23
22
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
k as PanoCompassPlugin,
|
|
24
|
+
k as default
|
|
26
25
|
};
|