@realsee/dnalogel 3.45.0 → 3.46.1
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 +6 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29600 -29557
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +151 -78
- package/libs/AreaMakerPlugin/index.js +77 -4
- package/libs/AreaMakerPlugin/utils/Item.js +191 -111
- package/libs/CSS3DRenderPlugin/Controller.js +90 -29
- package/libs/CSS3DRenderPlugin/index.js +76 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
- package/libs/CruisePlugin/BaseController.js +122 -49
- package/libs/CruisePlugin/Move.js +74 -21
- package/libs/CruisePlugin/Work.js +99 -46
- package/libs/CruisePlugin/index.js +80 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
- package/libs/CurrentPanoImagePlugin/index.js +77 -4
- package/libs/GuideLinePlugin/Controller.js +79 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
- package/libs/GuideLinePlugin/index.js +80 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -82
- package/libs/ModelMakerPlugin/index.js +76 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
- package/libs/ModelTVVideoPlugin/index.js +69 -8
- package/libs/Object3DHelperPlugin/Controller.js +67 -43
- package/libs/Object3DHelperPlugin/index.js +36 -13
- package/libs/PanoCompassPlugin/Controller.js +98 -42
- package/libs/PanoCompassPlugin/index.js +72 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
- package/libs/PanoDoorLabelPlugin/index.js +77 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
- package/libs/PanoMeasurePlugin/Model/area.js +115 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
- package/libs/PanoMeasurePlugin/index.js +77 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
- package/libs/PanoSpatialTagPlugin/index.js +67 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
- package/libs/PanoTagPlugin/controller/index.js +114 -61
- package/libs/PanoTagPlugin/index.js +90 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
- package/libs/PanoVideoPlugin/Controller.js +138 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
- package/libs/PanoVideoPlugin/index.js +83 -10
- package/libs/PipelinePlugin/Controller.js +200 -128
- package/libs/PipelinePlugin/index.js +77 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +80 -57
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +193 -192
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -6,34 +6,94 @@ import "three";
|
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
8
|
import "@realsee/five/line";
|
|
9
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
10
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
11
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
9
12
|
import "../shared-utils/three/THREESphere.js";
|
|
13
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
14
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
15
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
16
|
+
import "../shared-utils/three/IObject3D.js";
|
|
17
|
+
import "../shared-utils/three/boundingBox.js";
|
|
18
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
19
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
20
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
21
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
23
|
+
import "../shared-utils/positionToVector3.js";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
29
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
30
|
+
import "../shared-utils/three/centerPoint.js";
|
|
31
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
10
32
|
import "animejs";
|
|
33
|
+
import "../shared-utils/isNil.js";
|
|
34
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
11
35
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
12
36
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
13
37
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
14
38
|
import "../shared-utils/five/transformPosition.js";
|
|
15
39
|
import "../shared-utils/five/getFiveModel.js";
|
|
16
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
17
|
-
import "../
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
21
|
-
import "../shared-utils/
|
|
22
|
-
import "../shared-utils/
|
|
23
|
-
import "../shared-utils/
|
|
24
|
-
import "../shared-utils/
|
|
25
|
-
import "../shared-utils/
|
|
26
|
-
import "
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
42
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
43
|
+
import "../shared-utils/util.js";
|
|
44
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
45
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
46
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
48
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
49
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
50
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
51
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
53
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
54
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
55
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
56
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
57
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
60
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
61
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
62
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
63
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
64
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
66
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
67
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
68
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
69
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
27
70
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
28
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
29
71
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
30
72
|
import "../shared-utils/three/THREERaycaster.js";
|
|
31
|
-
import "../
|
|
32
|
-
import "../shared-utils/three/
|
|
73
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
74
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
75
|
+
import "../shared-utils/three/Magnifier.js";
|
|
76
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
77
|
+
import "../shared-utils/three/Assets/index.js";
|
|
78
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
79
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
80
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
33
81
|
import "../Sculpt/Meshes/Line.js";
|
|
34
82
|
import "../Sculpt/typings/style.js";
|
|
35
83
|
import "../shared-utils/five/FiveLine.js";
|
|
36
|
-
import "../shared-utils/
|
|
84
|
+
import "../shared-utils/tag.js";
|
|
85
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
86
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
87
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
|
+
import "../shared-utils/isTouchDevice.js";
|
|
89
|
+
import "../shared-utils/five/getPosition.js";
|
|
90
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
91
|
+
import "./item/boxItem.js";
|
|
92
|
+
import "./item/polygonItem.js";
|
|
93
|
+
import "./item/baseItem.js";
|
|
94
|
+
import "../shared-utils/three/addIfNotExists.js";
|
|
95
|
+
import "./utils/getFiveDomEvent.js";
|
|
96
|
+
import "../Sculpt/Meshes/Prism.js";
|
|
37
97
|
import "../Sculpt/Meshes/Polygon.js";
|
|
38
98
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
39
99
|
import "../shared-utils/three/earcut3D.js";
|
|
@@ -41,7 +101,6 @@ import "earcut";
|
|
|
41
101
|
import "../shared-utils/three/getNormal.js";
|
|
42
102
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
43
103
|
import "../shared-utils/three/geometryUtil.js";
|
|
44
|
-
import "../shared-utils/three/centerPoint.js";
|
|
45
104
|
import "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
46
105
|
import "../Sculpt/Meshes/Polyline.js";
|
|
47
106
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
@@ -53,8 +112,7 @@ import "../vendor/svelte/internal/index.js";
|
|
|
53
112
|
import "../components/AreaLabel/LabelItem.js";
|
|
54
113
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
55
114
|
import "./item/prismItem.js";
|
|
56
|
-
|
|
57
|
-
const mo = (...o) => new r(...o);
|
|
115
|
+
const Mr = (...o) => new r(...o);
|
|
58
116
|
export {
|
|
59
|
-
|
|
117
|
+
Mr as ModelMakerPlugin
|
|
60
118
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var R = (s, g, e) => new Promise((f, v) => {
|
|
2
|
-
var b = (
|
|
2
|
+
var b = (u) => {
|
|
3
3
|
try {
|
|
4
|
-
h(e.next(
|
|
4
|
+
h(e.next(u));
|
|
5
5
|
} catch (x) {
|
|
6
6
|
v(x);
|
|
7
7
|
}
|
|
8
|
-
}, w = (
|
|
8
|
+
}, w = (u) => {
|
|
9
9
|
try {
|
|
10
|
-
h(e.throw(
|
|
10
|
+
h(e.throw(u));
|
|
11
11
|
} catch (x) {
|
|
12
12
|
v(x);
|
|
13
13
|
}
|
|
14
|
-
}, h = (
|
|
14
|
+
}, h = (u) => u.done ? f(u.value) : Promise.resolve(u.value).then(b, w);
|
|
15
15
|
h((e = e.apply(s, g)).next());
|
|
16
16
|
});
|
|
17
|
-
import * as
|
|
17
|
+
import * as m from "three";
|
|
18
18
|
import { parseModelTVVideoPoints as S } from "./utils/parseData.js";
|
|
19
19
|
import { CSS3DRenderPlugin as z } from "../CSS3DRenderPlugin/index.js";
|
|
20
20
|
import { Image_Play_Icon_With_Text as O } from "../PanoTagPlugin/Assets/Icon.js";
|
|
@@ -34,19 +34,80 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
34
34
|
import "../shared-utils/three/getObjectVisible.js";
|
|
35
35
|
import "hammerjs";
|
|
36
36
|
import "@realsee/five/line";
|
|
37
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
38
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
39
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
40
|
+
import "../base/BasePlugin.js";
|
|
37
41
|
import "../shared-utils/three/THREESphere.js";
|
|
38
42
|
import "animejs";
|
|
39
|
-
import "../shared-utils/
|
|
43
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
44
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
45
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
46
|
+
import "../shared-utils/five/transformPosition.js";
|
|
47
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
48
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
40
49
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
41
|
-
import "../
|
|
42
|
-
import "../
|
|
50
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
51
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
53
|
+
import "../shared-utils/three/IObject3D.js";
|
|
54
|
+
import "../shared-utils/three/boundingBox.js";
|
|
55
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
56
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
57
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
60
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
61
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
62
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
63
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
64
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
65
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
66
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
67
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
68
|
+
import "../shared-utils/isNil.js";
|
|
43
69
|
import "../shared-utils/util.js";
|
|
44
|
-
import "../
|
|
70
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
71
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
72
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
73
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
74
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
75
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
76
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
77
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
78
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
79
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
80
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
45
81
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
46
|
-
import "../shared-utils/
|
|
82
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
84
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
47
85
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
48
|
-
import "../shared-utils/five/
|
|
49
|
-
|
|
86
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
87
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
88
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
89
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
90
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
91
|
+
import "../shared-utils/three/Magnifier.js";
|
|
92
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
93
|
+
import "../shared-utils/three/Assets/index.js";
|
|
94
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
95
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
96
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
97
|
+
import "../Sculpt/Meshes/Line.js";
|
|
98
|
+
import "../Sculpt/typings/style.js";
|
|
99
|
+
import "../shared-utils/five/FiveLine.js";
|
|
100
|
+
import "../shared-utils/tag.js";
|
|
101
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
102
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
103
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
104
|
+
import "../shared-utils/isTouchDevice.js";
|
|
105
|
+
import "../shared-utils/five/getPosition.js";
|
|
106
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
107
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
108
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
109
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
110
|
+
const gt = (s, { videoElement: g }) => {
|
|
50
111
|
const e = {
|
|
51
112
|
videoMeshes: [],
|
|
52
113
|
videoTextureEnabled: !1,
|
|
@@ -59,17 +120,17 @@ const pe = (s, { videoElement: g }) => {
|
|
|
59
120
|
}, w = () => e.videoTexture ? e.videoTexture.image.muted : !0, h = () => {
|
|
60
121
|
if (e.enabled || !e.videoTexture)
|
|
61
122
|
return;
|
|
62
|
-
e.enabled = !0, e.videoMeshes = x(), e.videoMeshes.forEach((
|
|
123
|
+
e.enabled = !0, e.videoMeshes = x(), e.videoMeshes.forEach((i) => s.scene.add(i));
|
|
63
124
|
const t = () => {
|
|
64
125
|
if (!e.videoTexture)
|
|
65
126
|
return;
|
|
66
|
-
const
|
|
67
|
-
var
|
|
68
|
-
e.videoTexture && ((
|
|
127
|
+
const i = () => {
|
|
128
|
+
var n;
|
|
129
|
+
e.videoTexture && ((n = e.videoTexture) == null || n.image.removeEventListener("timeupdate", i), e.videoTextureEnabled = !0, e.videoMeshes.forEach((o) => {
|
|
69
130
|
o.material.map !== e.videoTexture && (o.material.map = e.videoTexture);
|
|
70
131
|
}), s.needsRender = !0);
|
|
71
132
|
};
|
|
72
|
-
e.videoTexture.image.addEventListener("timeupdate",
|
|
133
|
+
e.videoTexture.image.addEventListener("timeupdate", i), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
73
134
|
f.hide();
|
|
74
135
|
}, e.videoTexture.image.onpause = () => {
|
|
75
136
|
f.show();
|
|
@@ -81,12 +142,12 @@ const pe = (s, { videoElement: g }) => {
|
|
|
81
142
|
t();
|
|
82
143
|
else
|
|
83
144
|
return s.once("modelLoaded", () => t());
|
|
84
|
-
},
|
|
145
|
+
}, u = () => {
|
|
85
146
|
e.enabled && (e.enabled = !1, e.videoMeshes.forEach((t) => {
|
|
86
147
|
t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
87
148
|
}), e.videoMeshes = [], s.needsRender = !0);
|
|
88
|
-
}, x = () => e.rectPoints.map((t,
|
|
89
|
-
const
|
|
149
|
+
}, x = () => e.rectPoints.map((t, i) => {
|
|
150
|
+
const n = new m.BufferGeometry(), o = 128, d = [];
|
|
90
151
|
d.push(...t[0].toArray());
|
|
91
152
|
for (let r = 1; r < o; r++)
|
|
92
153
|
d.push(
|
|
@@ -110,15 +171,15 @@ const pe = (s, { videoElement: g }) => {
|
|
|
110
171
|
for (let r = 1; r < o; r++)
|
|
111
172
|
a.push(1, r / o);
|
|
112
173
|
a.push(1, 1);
|
|
113
|
-
const
|
|
174
|
+
const c = [];
|
|
114
175
|
for (let r = 0; r < o; r++)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const
|
|
176
|
+
c.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
|
|
177
|
+
n.setAttribute("position", new m.BufferAttribute(new Float32Array(d), 3)), n.setAttribute("uv", new m.BufferAttribute(new Float32Array(a), 2)), n.setIndex(new m.BufferAttribute(new Uint32Array(c), 1));
|
|
178
|
+
const p = new m.MeshBasicMaterial({
|
|
118
179
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
119
|
-
side:
|
|
120
|
-
}),
|
|
121
|
-
|
|
180
|
+
side: m.DoubleSide
|
|
181
|
+
}), l = new m.Mesh(n, p);
|
|
182
|
+
l.renderOrder = 1, l.name = `ModelTVVideoPlugin-${i}-${performance.now()}`;
|
|
122
183
|
const I = [t[1], t[2], t[3], t[0]], y = f.create3DDomContainer(I);
|
|
123
184
|
if (y != null && y.container) {
|
|
124
185
|
const r = document.createElement("div");
|
|
@@ -126,35 +187,35 @@ const pe = (s, { videoElement: g }) => {
|
|
|
126
187
|
const T = document.createElement("img");
|
|
127
188
|
T.src = O, T.style.width = "200px", T.style.pointerEvents = "auto", T.onclick = () => {
|
|
128
189
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
129
|
-
}, r.appendChild(T), v.set(
|
|
190
|
+
}, r.appendChild(T), v.set(l, y);
|
|
130
191
|
}
|
|
131
|
-
return
|
|
192
|
+
return l;
|
|
132
193
|
}), F = (t) => {
|
|
133
|
-
const
|
|
134
|
-
return
|
|
135
|
-
}, P = (t,
|
|
136
|
-
let
|
|
194
|
+
const i = new m.TextureLoader().load(t);
|
|
195
|
+
return i.minFilter = m.LinearFilter, i.magFilter = m.LinearFilter, i.format = m.RGBFormat, i;
|
|
196
|
+
}, P = (t, i) => {
|
|
197
|
+
let n = i;
|
|
137
198
|
return new Promise((o, d) => {
|
|
138
199
|
const a = new XMLHttpRequest();
|
|
139
200
|
a.onreadystatechange = () => {
|
|
140
201
|
if (a.readyState === 4)
|
|
141
202
|
if (a.status === 200) {
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
|
|
203
|
+
const c = window.URL || window.webkitURL;
|
|
204
|
+
n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = c.createObjectURL(a.response);
|
|
205
|
+
const p = new m.VideoTexture(n);
|
|
206
|
+
p.minFilter = m.LinearFilter, p.magFilter = m.LinearFilter, p.format = m.RGBFormat, o(Object.assign(p, { videoSource: t }));
|
|
146
207
|
} else
|
|
147
208
|
d(new Error("Video download Error: " + a.status));
|
|
148
|
-
}, a.onerror = (
|
|
209
|
+
}, a.onerror = (c) => d(c), a.open("GET", t), a.responseType = "blob", a.send();
|
|
149
210
|
});
|
|
150
|
-
}, L = (t,
|
|
151
|
-
const { video_src:
|
|
152
|
-
e.videoSource =
|
|
211
|
+
}, L = (t, i) => R(void 0, null, function* () {
|
|
212
|
+
const { video_src: n, video_poster_src: o, points: d } = t;
|
|
213
|
+
e.videoSource = n, e.rectPoints = S(d).map((a) => a.map(({ x: c, y: p, z: l }) => new m.Vector3(c, p, l))), e.imageTexture = F(o), i && (e.videoElement = i), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
|
|
153
214
|
}), E = (t) => {
|
|
154
215
|
if (!e.enabled)
|
|
155
216
|
return;
|
|
156
|
-
const
|
|
157
|
-
if (!(!
|
|
217
|
+
const i = e.videoMeshes;
|
|
218
|
+
if (!(!i || t.intersectObjects(i).length === 0))
|
|
158
219
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
159
220
|
}, M = (t) => {
|
|
160
221
|
t === "Floorplan" ? f.hide() : f.show();
|
|
@@ -162,21 +223,21 @@ const pe = (s, { videoElement: g }) => {
|
|
|
162
223
|
if (!e.enabled)
|
|
163
224
|
return;
|
|
164
225
|
const t = s.camera.position;
|
|
165
|
-
if (v.forEach((
|
|
166
|
-
const o =
|
|
167
|
-
|
|
226
|
+
if (v.forEach((i, n) => {
|
|
227
|
+
const o = i.css3DObject.position.clone(), d = o.clone().sub(t).normalize(), a = new m.Raycaster(t, d), c = s.model.intersectRaycaster(a)[0], p = o.distanceTo(t), l = 0.01;
|
|
228
|
+
c && c.distance + l < p ? i.hide() : i.show();
|
|
168
229
|
}), !w()) {
|
|
169
|
-
const
|
|
170
|
-
const o =
|
|
171
|
-
return
|
|
172
|
-
const a = d.distanceTo(t),
|
|
173
|
-
return !(
|
|
230
|
+
const i = e.rectPoints.find((n) => {
|
|
231
|
+
const o = n[0].clone().add(n[1]).add(n[2]).add(n[3]).divideScalar(4);
|
|
232
|
+
return n.map((d) => d.clone().add(o).divideScalar(2)).filter((d) => {
|
|
233
|
+
const a = d.distanceTo(t), c = new m.Raycaster(t, d.clone().sub(t).normalize()), p = s.model.intersectRaycaster(c)[0], l = 0.01;
|
|
234
|
+
return !(p && p.distance + l < a);
|
|
174
235
|
}).length >= 2;
|
|
175
236
|
});
|
|
176
|
-
(!
|
|
237
|
+
(!i || i.length === 0) && b(!0);
|
|
177
238
|
}
|
|
178
239
|
}, V = () => {
|
|
179
|
-
|
|
240
|
+
u(), e.videoTexture = void 0, s.off("modeChange", M), s.off("wantsTapGesture", E), s.off("panoArrived", A), s.off("renderFrame", () => {
|
|
180
241
|
e.videoMeshes.forEach((t) => {
|
|
181
242
|
t && (t.needsRender = !0);
|
|
182
243
|
});
|
|
@@ -186,9 +247,9 @@ const pe = (s, { videoElement: g }) => {
|
|
|
186
247
|
e.videoMeshes.forEach((t) => {
|
|
187
248
|
t && (t.needsRender = !0);
|
|
188
249
|
});
|
|
189
|
-
}), { enable: h, disable:
|
|
250
|
+
}), { enable: h, disable: u, load: L, dispose: V, state: e, css3DRenderPlugin: f };
|
|
190
251
|
};
|
|
191
252
|
export {
|
|
192
|
-
|
|
193
|
-
|
|
253
|
+
gt as ModelTVVideoPlugin,
|
|
254
|
+
gt as default
|
|
194
255
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelTVVideoPlugin as r } from "./Plugin.js";
|
|
2
|
-
import { DIRECTION as
|
|
2
|
+
import { DIRECTION as Ko } from "./typings.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "./utils/parseData.js";
|
|
5
5
|
import "../CSS3DRenderPlugin/index.js";
|
|
@@ -18,21 +18,82 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
18
18
|
import "../shared-utils/three/getObjectVisible.js";
|
|
19
19
|
import "hammerjs";
|
|
20
20
|
import "@realsee/five/line";
|
|
21
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
22
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
23
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
24
|
+
import "../base/BasePlugin.js";
|
|
21
25
|
import "../shared-utils/three/THREESphere.js";
|
|
22
26
|
import "animejs";
|
|
23
|
-
import "../shared-utils/
|
|
27
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
28
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
29
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
30
|
+
import "../shared-utils/five/transformPosition.js";
|
|
31
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
32
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
24
33
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
|
-
import "../
|
|
26
|
-
import "../
|
|
34
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
35
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
36
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
37
|
+
import "../shared-utils/three/IObject3D.js";
|
|
38
|
+
import "../shared-utils/three/boundingBox.js";
|
|
39
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
40
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
41
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
42
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
43
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
44
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
45
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
46
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
48
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
49
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
50
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
51
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
52
|
+
import "../shared-utils/isNil.js";
|
|
27
53
|
import "../shared-utils/util.js";
|
|
28
|
-
import "../
|
|
54
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
55
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
56
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
57
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
60
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
61
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
62
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
63
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
64
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
29
65
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
30
|
-
import "../shared-utils/
|
|
66
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
67
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
68
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
31
69
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
32
|
-
import "../shared-utils/five/
|
|
70
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
71
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
72
|
+
import "../shared-utils/three/THREERaycaster.js";
|
|
73
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
74
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
75
|
+
import "../shared-utils/three/Magnifier.js";
|
|
76
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
77
|
+
import "../shared-utils/three/Assets/index.js";
|
|
78
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
79
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
80
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
81
|
+
import "../Sculpt/Meshes/Line.js";
|
|
82
|
+
import "../Sculpt/typings/style.js";
|
|
83
|
+
import "../shared-utils/five/FiveLine.js";
|
|
84
|
+
import "../shared-utils/tag.js";
|
|
85
|
+
import "../shared-utils/five/vector3ToScreen.js";
|
|
86
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
87
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
|
+
import "../shared-utils/isTouchDevice.js";
|
|
89
|
+
import "../shared-utils/five/getPosition.js";
|
|
90
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
91
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
92
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
93
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
33
94
|
import "../PanoTagPlugin/Assets/Icon.js";
|
|
34
95
|
export {
|
|
35
|
-
|
|
96
|
+
Ko as DIRECTION,
|
|
36
97
|
r as ModelTVVideoPlugin,
|
|
37
98
|
r as default
|
|
38
99
|
};
|