@realsee/dnalogel 3.78.0-alpha.3 → 3.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -10
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +55 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/dist/index.cjs.js +101 -88
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14196 -12441
- package/dist/index.umd.js +83 -70
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +16 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +128 -102
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +272 -274
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +141 -138
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +131 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +50 -49
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +69 -65
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +2 -90
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +31 -29
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +30 -29
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/libs/PanoTagPlugin/utils/index.js +31 -30
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +34 -32
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +3 -2
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
- package/libs/Sculpt/Meshes/Line.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/libs/Sculpt/Objects/Base/Editor.js +72 -63
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +5 -5
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/index.d.ts +1 -0
- package/libs/index.js +162 -150
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/libs/shared-utils/url/replace-static-prefix.js +12 -7
- package/package.json +3 -3
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.d.ts +0 -202
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.js +0 -617
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { addDebugPoints as
|
|
2
|
-
import { noTypecheck as
|
|
3
|
-
import { planeNormal as
|
|
4
|
-
import { applyMatrixToPoints as
|
|
5
|
-
import { checkRange as
|
|
6
|
-
import { normalPositionToPositions as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { throttle as
|
|
9
|
-
import { binarySearchFirstBig as
|
|
10
|
-
import { formatVideo as
|
|
1
|
+
import { addDebugPoints as p } from "./addDebugPoints.js";
|
|
2
|
+
import { noTypecheck as s } from "./noTypecheck.js";
|
|
3
|
+
import { planeNormal as f } from "./planeNormal.js";
|
|
4
|
+
import { applyMatrixToPoints as l, getBoxCorners as u, getTagCenterPosition as T, getTagPosition as c } from "./tagPosition.js";
|
|
5
|
+
import { checkRange as b } from "./checkRange.js";
|
|
6
|
+
import { normalPositionToPositions as P } from "./normalPositionToPositions.js";
|
|
7
|
+
import { debounce as y, debounceByKey as B } from "./debounce.js";
|
|
8
|
+
import { throttle as C } from "./throttle.js";
|
|
9
|
+
import { binarySearchFirstBig as I, searchFirstValueSmallThanLastValue as S } from "./search.js";
|
|
10
|
+
import { formatVideo as D, getVideoThumbnail as K, getVimeoId as L, getYouTubeId as M, isVimeo as N, isYouTube as R } from "./videoHelper.js";
|
|
11
11
|
import "three";
|
|
12
12
|
import "../../shared-utils/positionToVector3.js";
|
|
13
13
|
import "../../shared-utils/three/centerPoint.js";
|
|
14
14
|
import "./tag/tagCheck.js";
|
|
15
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
p as addDebugPoints,
|
|
18
|
+
l as applyMatrixToPoints,
|
|
19
|
+
I as binarySearchFirstBig,
|
|
20
|
+
b as checkRange,
|
|
21
|
+
y as debounce,
|
|
22
|
+
B as debounceByKey,
|
|
23
|
+
D as formatVideo,
|
|
24
|
+
u as getBoxCorners,
|
|
25
|
+
T as getTagCenterPosition,
|
|
26
|
+
c as getTagPosition,
|
|
27
|
+
K as getVideoThumbnail,
|
|
28
|
+
L as getVimeoId,
|
|
29
|
+
M as getYouTubeId,
|
|
30
|
+
N as isVimeo,
|
|
31
|
+
R as isYouTube,
|
|
32
|
+
s as noTypecheck,
|
|
33
|
+
P as normalPositionToPositions,
|
|
34
|
+
f as planeNormal,
|
|
35
|
+
S as searchFirstValueSmallThanLastValue,
|
|
36
|
+
C as throttle
|
|
36
37
|
};
|
|
@@ -65,6 +65,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
65
65
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
66
66
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
67
67
|
import "../../../shared-utils/util.js";
|
|
68
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
68
69
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
69
70
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
70
71
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -81,7 +82,7 @@ import "../../../vendor/animejs/lib/anime.es.js";
|
|
|
81
82
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
82
83
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
83
84
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
84
|
-
function
|
|
85
|
+
function yi(o, i, t) {
|
|
85
86
|
var v, b, j, C, A;
|
|
86
87
|
const D = (v = t == null ? void 0 : t.useCache) != null ? v : !0;
|
|
87
88
|
if (!o)
|
|
@@ -127,5 +128,5 @@ function di(o, i, t) {
|
|
|
127
128
|
return P(T), Object.values(f).forEach((e) => P(e)), T._isMerged = !0, T;
|
|
128
129
|
}
|
|
129
130
|
export {
|
|
130
|
-
|
|
131
|
+
yi as calculateTagConfig
|
|
131
132
|
};
|
|
@@ -48,6 +48,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
48
48
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
49
49
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
50
50
|
import "../../../shared-utils/util.js";
|
|
51
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
51
52
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
52
53
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
53
54
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -68,7 +69,7 @@ import "@realsee/five";
|
|
|
68
69
|
function n(i) {
|
|
69
70
|
return i.stickType ? i.stickType : i.pointType === "PointTag" && i.dimensionType === "3D" ? "3DPoint" : i.pointType === "PlaneTag" ? "Plane" : "2DPoint";
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function _i(i) {
|
|
72
73
|
var r, o, p, m;
|
|
73
74
|
if (i.stickType || (i.stickType = n(i)), i.contentType === "VRLink" || i.contentType === "PanoLink" || i.contentType === "Link") {
|
|
74
75
|
const t = i;
|
|
@@ -82,6 +83,6 @@ function Li(i) {
|
|
|
82
83
|
}), i;
|
|
83
84
|
}
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
_i as default,
|
|
86
87
|
n as getTagStickType
|
|
87
88
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Vector3 } from 'three';
|
|
2
|
+
import { Matrix4 } from 'three';
|
|
2
3
|
import type { TagInstance, BoxPosition } from '../typings';
|
|
3
4
|
/**
|
|
4
5
|
* 计算 BoxPosition 的8个角点
|
|
5
6
|
*/
|
|
6
|
-
export declare function getBoxCorners(boxPosition: BoxPosition): Vector3[];
|
|
7
|
+
export declare function getBoxCorners(boxPosition: BoxPosition, transform: Matrix4): Vector3[];
|
|
7
8
|
/**
|
|
8
9
|
* 应用 matrix 变换到点数组
|
|
9
10
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Euler as y, Vector3 as t, Matrix4 as
|
|
2
|
-
import { centerPoint as
|
|
3
|
-
import { is3DBoxTag as
|
|
4
|
-
import { anyPositionToVector3 as
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Euler as y, Vector3 as t, Matrix4 as p } from "three";
|
|
2
|
+
import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
|
|
3
|
+
import { is3DBoxTag as M, isPolygonTag as d, isMediaModelTag as P, isMaskTag as T } from "./tag/tagCheck.js";
|
|
4
|
+
import { anyPositionToVector3 as a, vector3Position as z } from "../../shared-utils/positionToVector3.js";
|
|
5
|
+
import { transformPosition as A } from "../../shared-utils/five/transformPosition.js";
|
|
6
|
+
function h(o, i) {
|
|
7
|
+
const n = a(o.start), r = a(o.end), e = new y().fromArray(o.rotation), s = A(new t((n.x + r.x) / 2, (n.y + r.y) / 2, (n.z + r.z) / 2), i), m = new t(Math.abs(r.x - n.x) / 2, Math.abs(r.y - n.y) / 2, Math.abs(r.z - n.z) / 2), u = new p().makeRotationFromEuler(e), f = [
|
|
7
8
|
// 底面4个点 (y = -0.5)
|
|
8
9
|
new t(-0.5, -0.5, -0.5),
|
|
9
10
|
new t(0.5, -0.5, -0.5),
|
|
@@ -14,40 +15,41 @@ function z(o) {
|
|
|
14
15
|
new t(0.5, 0.5, -0.5),
|
|
15
16
|
new t(0.5, 0.5, 0.5),
|
|
16
17
|
new t(-0.5, 0.5, 0.5)
|
|
17
|
-
],
|
|
18
|
-
return
|
|
18
|
+
], l = m.clone().multiplyScalar(2);
|
|
19
|
+
return f.map((w) => w.clone().multiply(l).applyMatrix4(u).add(s));
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
if (!
|
|
21
|
+
function c(o, i) {
|
|
22
|
+
if (!i)
|
|
22
23
|
return o;
|
|
23
|
-
const
|
|
24
|
-
return o.map((
|
|
24
|
+
const n = new p().fromArray(i);
|
|
25
|
+
return o.map((r) => r.clone().applyMatrix4(n));
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const r = z(o.position);
|
|
30
|
-
return s(r, o.matrix);
|
|
31
|
-
}
|
|
27
|
+
function k(o) {
|
|
28
|
+
const i = (() => {
|
|
29
|
+
var n, r;
|
|
32
30
|
if (M(o) && o.position) {
|
|
33
|
-
const
|
|
34
|
-
return
|
|
31
|
+
const e = h(o.position, (r = (n = o.plugin) == null ? void 0 : n.workUtil) == null ? void 0 : r.transform);
|
|
32
|
+
return c(e, o.matrix);
|
|
33
|
+
}
|
|
34
|
+
if (d(o) && o.position) {
|
|
35
|
+
const e = o.position.map((s) => a(s));
|
|
36
|
+
return c(e, o.matrix);
|
|
35
37
|
}
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
return
|
|
38
|
+
if (P(o) && o.matrix) {
|
|
39
|
+
const e = o.data.mediaPosition.map((s) => a(s));
|
|
40
|
+
return c(e, o.matrix);
|
|
39
41
|
}
|
|
40
|
-
return T(o) ? o.position && Array.isArray(o.position) ?
|
|
42
|
+
return T(o) ? o.position && Array.isArray(o.position) ? a(o.position) : (console.warn("[getTagPosition] Mask tag without position, tag id:", o.id), new t(0, 0, 0)) : o.position;
|
|
41
43
|
})();
|
|
42
|
-
return
|
|
44
|
+
return z(i);
|
|
43
45
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
return
|
|
46
|
+
function v(o) {
|
|
47
|
+
const i = k(o);
|
|
48
|
+
return x(...Array.isArray(i) ? i : [i]);
|
|
47
49
|
}
|
|
48
50
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
c as applyMatrixToPoints,
|
|
52
|
+
h as getBoxCorners,
|
|
53
|
+
v as getTagCenterPosition,
|
|
54
|
+
k as getTagPosition
|
|
53
55
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var u = Object.defineProperty, g = Object.defineProperties;
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var m = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var l = (e, i, r) => i in e ? u(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, p = (e, i) => {
|
|
6
6
|
for (var r in i || (i = {}))
|
|
7
7
|
M.call(i, r) && l(e, r, i[r]);
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
8
|
+
if (m)
|
|
9
|
+
for (var r of m(i))
|
|
10
10
|
W.call(i, r) && l(e, r, i[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, a = (e, i) => g(e, b(i));
|
|
13
13
|
var s = (e, i, r) => (l(e, typeof i != "symbol" ? i + "" : i, r), r);
|
|
14
|
-
import { VideoMeshController as
|
|
14
|
+
import { VideoMeshController as h } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
17
17
|
import "../shared-utils/tag.js";
|
|
@@ -65,6 +65,7 @@ import "../Sculpt/typings/style.js";
|
|
|
65
65
|
import "../shared-utils/three/IObject3D.js";
|
|
66
66
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
67
67
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
68
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
68
69
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
69
70
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
70
71
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -83,7 +84,7 @@ import "../Sculpt/utils/three/rayOnLine.js";
|
|
|
83
84
|
import "../shared-utils/animationFrame/index.js";
|
|
84
85
|
import "./utils/index.js";
|
|
85
86
|
import "../shared-utils/url/defaultUrls.js";
|
|
86
|
-
class
|
|
87
|
+
class zr extends _ {
|
|
87
88
|
constructor(r) {
|
|
88
89
|
super(r);
|
|
89
90
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
@@ -111,7 +112,7 @@ class qr extends _ {
|
|
|
111
112
|
n.video_list.forEach((d) => {
|
|
112
113
|
this.controllerMap.set(
|
|
113
114
|
d.render_id,
|
|
114
|
-
new
|
|
115
|
+
new h(this.five, a(p({}, d), {
|
|
115
116
|
fiveUtil: this.fiveUtil,
|
|
116
117
|
panoIndex: c,
|
|
117
118
|
renderID: f,
|
|
@@ -190,7 +191,7 @@ class qr extends _ {
|
|
|
190
191
|
const n = o.render_id;
|
|
191
192
|
this.controllerMap.set(
|
|
192
193
|
o.render_id,
|
|
193
|
-
new
|
|
194
|
+
new h(this.five, a(p({}, o), {
|
|
194
195
|
fiveUtil: this.fiveUtil,
|
|
195
196
|
panoIndex: r,
|
|
196
197
|
renderID: n,
|
|
@@ -228,5 +229,5 @@ class qr extends _ {
|
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
zr as PanoVideoPluginController
|
|
232
233
|
};
|
|
@@ -54,6 +54,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
54
54
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
55
55
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
56
56
|
import "../shared-utils/util.js";
|
|
57
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
57
58
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
58
59
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
59
60
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -70,7 +71,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
70
71
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
71
72
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
72
73
|
import "@realsee/five";
|
|
73
|
-
class
|
|
74
|
+
class $i {
|
|
74
75
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
75
76
|
constructor(i, e) {
|
|
76
77
|
t(this, "video");
|
|
@@ -345,5 +346,5 @@ class Qi {
|
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
export {
|
|
348
|
-
|
|
349
|
+
$i as VideoMeshController
|
|
349
350
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PanoVideoPluginController as r } from "./Controller.js";
|
|
2
|
-
import { typings as
|
|
2
|
+
import { typings as ko } from "./typings/index.js";
|
|
3
3
|
import "./VideoMeshController.js";
|
|
4
4
|
import "./utils/shader.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
@@ -53,6 +53,7 @@ import "../Sculpt/typings/style.js";
|
|
|
53
53
|
import "../shared-utils/three/IObject3D.js";
|
|
54
54
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
55
55
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
56
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
56
57
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
57
58
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
58
59
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -72,9 +73,9 @@ import "../shared-utils/animationFrame/index.js";
|
|
|
72
73
|
import "./utils/index.js";
|
|
73
74
|
import "../base/BasePlugin.js";
|
|
74
75
|
import "../shared-utils/url/defaultUrls.js";
|
|
75
|
-
const
|
|
76
|
+
const bo = (o) => new r(o);
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
bo as PanoVideoPlugin,
|
|
79
|
+
ko as PanoVideoPluginType,
|
|
80
|
+
bo as default
|
|
80
81
|
};
|
|
@@ -82,6 +82,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
82
82
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
83
83
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
84
84
|
import "../shared-utils/util.js";
|
|
85
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
85
86
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
86
87
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
87
88
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -107,7 +108,7 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
|
107
108
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
108
109
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
109
110
|
const g = { flowSpeed: 0.6, rotateSpeed: 0 };
|
|
110
|
-
class
|
|
111
|
+
class ae extends S {
|
|
111
112
|
constructor(t) {
|
|
112
113
|
super(t);
|
|
113
114
|
// ==================== public properties ====================
|
|
@@ -387,5 +388,5 @@ class re extends S {
|
|
|
387
388
|
}
|
|
388
389
|
}
|
|
389
390
|
export {
|
|
390
|
-
|
|
391
|
+
ae as Controller
|
|
391
392
|
};
|
|
@@ -52,6 +52,7 @@ import "../Sculpt/typings/style.js";
|
|
|
52
52
|
import "../shared-utils/three/IObject3D.js";
|
|
53
53
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
54
54
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
55
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -79,8 +80,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
79
80
|
import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
80
81
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
81
82
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
82
|
-
const
|
|
83
|
+
const Dr = (r) => new o(r);
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
Dr as PipelinePlugin,
|
|
86
|
+
Dr as default
|
|
86
87
|
};
|
|
@@ -52,6 +52,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
52
52
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
53
53
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
54
54
|
import "../../../shared-utils/util.js";
|
|
55
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -92,7 +93,7 @@ const d = (
|
|
|
92
93
|
}
|
|
93
94
|
`
|
|
94
95
|
);
|
|
95
|
-
class
|
|
96
|
+
class kt extends h {
|
|
96
97
|
constructor(t) {
|
|
97
98
|
super(t, d);
|
|
98
99
|
/** 初始状态下,当前水管内的水流在整体管道上的位移
|
|
@@ -150,5 +151,5 @@ class jt extends h {
|
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
export {
|
|
153
|
-
|
|
154
|
+
kt as ObjectFlowPipe
|
|
154
155
|
};
|
|
@@ -52,6 +52,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
52
52
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
53
53
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
54
54
|
import "../../../shared-utils/util.js";
|
|
55
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
55
56
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
56
57
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
57
58
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -73,7 +74,7 @@ import "../../../shared-utils/animationFrame/index.js";
|
|
|
73
74
|
import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
74
75
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
75
76
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
76
|
-
class
|
|
77
|
+
class ki extends a {
|
|
77
78
|
constructor(i) {
|
|
78
79
|
super(i);
|
|
79
80
|
p(this, "imageCount", 64);
|
|
@@ -96,5 +97,5 @@ class Ri extends a {
|
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
ki as ObjectHighlightPipe
|
|
100
101
|
};
|
|
@@ -77,6 +77,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
77
77
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
78
78
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
79
79
|
import "../../../shared-utils/util.js";
|
|
80
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
80
81
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
81
82
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
82
83
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -36,6 +36,10 @@ export declare class LineMesh extends IObject3D implements RenderDomObjectType {
|
|
|
36
36
|
private paramsStyle;
|
|
37
37
|
private lastRenderDomItem;
|
|
38
38
|
private lastFOV;
|
|
39
|
+
private fiveListenersInited;
|
|
40
|
+
private fiveRef?;
|
|
41
|
+
private initFiveListeners;
|
|
42
|
+
private removeFiveListeners;
|
|
39
43
|
constructor(params?: Partial<LineMeshStyle & LineData>);
|
|
40
44
|
updateMatrixWorld(force?: boolean): void;
|
|
41
45
|
setPoints(points: AnyPositions): void;
|