@realsee/dnalogel 3.47.10 → 3.47.11
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 +3 -0
- package/dist/Sculpt/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
- package/dist/index.cjs.js +57 -57
- package/dist/index.js +3227 -3221
- package/dist/index.umd.js +50 -50
- package/libs/AreaMakerPlugin/Controller.js +14 -13
- package/libs/AreaMakerPlugin/index.js +15 -14
- package/libs/AreaMakerPlugin/utils/Item.js +15 -14
- package/libs/CSS3DRenderPlugin/Controller.js +12 -11
- package/libs/CSS3DRenderPlugin/index.js +18 -17
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +12 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +26 -25
- package/libs/CruisePlugin/BaseController.js +17 -16
- package/libs/CruisePlugin/Move.js +20 -19
- package/libs/CruisePlugin/Work.js +15 -14
- package/libs/CruisePlugin/index.js +19 -18
- package/libs/CurrentPanoImagePlugin/Controller.js +14 -13
- package/libs/CurrentPanoImagePlugin/index.js +16 -15
- package/libs/GuideLinePlugin/Controller.js +17 -16
- package/libs/GuideLinePlugin/GuideLineItem.js +15 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +5 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -14
- package/libs/GuideLinePlugin/index.js +19 -18
- package/libs/ModelMakerPlugin/Controller.js +13 -12
- package/libs/ModelMakerPlugin/index.js +15 -14
- package/libs/ModelTVVideoPlugin/Plugin.js +37 -36
- package/libs/ModelTVVideoPlugin/index.js +13 -12
- package/libs/Object3DHelperPlugin/Controller.js +14 -13
- package/libs/Object3DHelperPlugin/index.js +18 -17
- package/libs/PanoCompassPlugin/Controller.js +15 -14
- package/libs/PanoCompassPlugin/index.js +16 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +15 -14
- package/libs/PanoDoorLabelPlugin/Controller.js +15 -14
- package/libs/PanoDoorLabelPlugin/index.js +16 -15
- package/libs/PanoMeasurePlugin/Components/Controller0.js +12 -11
- package/libs/PanoMeasurePlugin/Components/Controller1.js +12 -11
- package/libs/PanoMeasurePlugin/Controller/EditController.js +12 -11
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +13 -12
- package/libs/PanoMeasurePlugin/Controller/index.js +10 -9
- package/libs/PanoMeasurePlugin/Model/area.js +12 -11
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +12 -11
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +12 -11
- package/libs/PanoMeasurePlugin/index.js +21 -20
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +12 -11
- package/libs/PanoSpatialTagPlugin/Plugin.js +14 -13
- package/libs/PanoSpatialTagPlugin/index.js +11 -10
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +14 -13
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +13 -12
- package/libs/PanoTagPlugin/Components/Tag/index.js +13 -12
- package/libs/PanoTagPlugin/Components/TagContainer.js +13 -12
- package/libs/PanoTagPlugin/Components/TagItem.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +34 -33
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +15 -14
- package/libs/PanoTagPlugin/controller/TagRender.js +12 -11
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -12
- package/libs/PanoTagPlugin/controller/index.js +16 -15
- package/libs/PanoTagPlugin/index.js +21 -20
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +14 -13
- package/libs/PanoVideoPlugin/Controller.js +15 -14
- package/libs/PanoVideoPlugin/VideoMeshController.js +30 -29
- package/libs/PanoVideoPlugin/index.js +18 -17
- package/libs/PipelinePlugin/Controller.js +14 -13
- package/libs/PipelinePlugin/index.js +16 -15
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +21 -20
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +15 -14
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +13 -12
- package/libs/Sculpt/Meshes/Box.js +10 -8
- package/libs/Sculpt/Meshes/Cylinder.js +17 -15
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +84 -78
- package/libs/Sculpt/Meshes/Point.js +14 -12
- package/libs/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/libs/Sculpt/Meshes/Polyline.js +69 -74
- package/libs/Sculpt/Meshes/Rectangle.js +6 -4
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
- package/libs/Sculpt/Objects/Base/index.js +5 -5
- package/libs/Sculpt/Objects/Line/Editor.js +17 -15
- package/libs/Sculpt/Objects/Polygon/index.js +22 -22
- package/libs/Sculpt/Objects/Rectangle/Editor.js +2 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +79 -69
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/three/ColoredMesh.js +6 -4
- package/libs/base/BasePlugin.js +16 -14
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/ModelFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +15 -14
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -15
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/index.js +3 -1
- package/libs/index.js +12 -12
- package/libs/shared-utils/five/index.js +5 -3
- package/libs/shared-utils/five/lookObject.js +20 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/applyObjectMatrixWorld.js +4 -6
- package/libs/shared-utils/three/index.js +3 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
|
|
|
5
5
|
import "../CruisePlugin/Move.js";
|
|
6
6
|
import "../CruisePlugin/Work.js";
|
|
7
7
|
import "../shared-utils/Subscribe.js";
|
|
8
|
-
import { GuideLineItem as
|
|
8
|
+
import { GuideLineItem as Er } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -19,18 +19,9 @@ import "../shared-utils/math/intersecting.js";
|
|
|
19
19
|
import "../shared-utils/five/mode.js";
|
|
20
20
|
import "hammerjs";
|
|
21
21
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
22
|
-
import "../Sculpt/Meshes/Line.js";
|
|
23
|
-
import "../Sculpt/typings/style.js";
|
|
24
|
-
import "../shared-utils/five/FiveLine.js";
|
|
25
22
|
import "@realsee/five/line";
|
|
26
|
-
import "../shared-utils/positionToVector3.js";
|
|
27
|
-
import "../shared-utils/three/IObject3D.js";
|
|
28
|
-
import "../shared-utils/three/centerPoint.js";
|
|
29
|
-
import "../shared-utils/three/THREESphere.js";
|
|
30
|
-
import "animejs";
|
|
31
|
-
import "../shared-utils/isNil.js";
|
|
32
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
23
|
import "../shared-utils/tag.js";
|
|
24
|
+
import "../shared-utils/positionToVector3.js";
|
|
34
25
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
35
26
|
import "../shared-utils/five/getFiveModel.js";
|
|
36
27
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -42,10 +33,14 @@ import "../Sculpt/utils/Modules/Global.js";
|
|
|
42
33
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
43
34
|
import "../Object3DHelperPlugin/Controller.js";
|
|
44
35
|
import "../base/BasePlugin.js";
|
|
36
|
+
import "../shared-utils/three/THREESphere.js";
|
|
37
|
+
import "animejs";
|
|
45
38
|
import "../shared-utils/url/absoluteUrl.js";
|
|
39
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
40
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
47
41
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
48
42
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
43
|
+
import "../shared-utils/three/IObject3D.js";
|
|
49
44
|
import "../shared-utils/three/boundingBox.js";
|
|
50
45
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
51
46
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -58,7 +53,9 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
58
53
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
59
54
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
60
55
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
56
|
+
import "../shared-utils/three/centerPoint.js";
|
|
61
57
|
import "../shared-utils/three/getObjectVisible.js";
|
|
58
|
+
import "../shared-utils/isNil.js";
|
|
62
59
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
63
60
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
64
61
|
import "../shared-utils/util.js";
|
|
@@ -99,12 +96,16 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
99
96
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
100
97
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
101
98
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
99
|
+
import "../Sculpt/Meshes/Line.js";
|
|
100
|
+
import "../Sculpt/typings/style.js";
|
|
101
|
+
import "../shared-utils/five/FiveLine.js";
|
|
102
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
103
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
104
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
102
105
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
103
106
|
import "../shared-utils/isTouchDevice.js";
|
|
104
107
|
import "../shared-utils/five/getPosition.js";
|
|
105
108
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
106
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
107
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
108
109
|
import "../shared-utils/three/blink.js";
|
|
109
110
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
110
111
|
import "../shared-utils/animationFrame/index.js";
|
|
@@ -245,5 +246,5 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
245
246
|
import "../CruisePlugin/utils/safeCall.js";
|
|
246
247
|
import "../shared-utils/five/fiveLoaded.js";
|
|
247
248
|
export {
|
|
248
|
-
|
|
249
|
+
Er as GuideLineItem
|
|
249
250
|
};
|
|
@@ -17,7 +17,9 @@ import { createLineGeometry as U } from "../utils/createLineGeometry.js";
|
|
|
17
17
|
import { isPanoramaLike as L, isModelLike as S } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
|
-
import "
|
|
20
|
+
import "@realsee/five/line";
|
|
21
|
+
import "../../shared-utils/tag.js";
|
|
22
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
21
23
|
import "../../shared-utils/three/THREESphere.js";
|
|
22
24
|
import { blink as O } from "../../shared-utils/three/blink.js";
|
|
23
25
|
import { notNil as C } from "../../shared-utils/isNil.js";
|
|
@@ -564,11 +566,11 @@ class R {
|
|
|
564
566
|
function H(m) {
|
|
565
567
|
return m.contentType === "Custom";
|
|
566
568
|
}
|
|
567
|
-
const
|
|
569
|
+
const ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
568
570
|
__proto__: null,
|
|
569
571
|
GuideLineModeItem: R
|
|
570
572
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
571
573
|
export {
|
|
572
574
|
R as GuideLineModeItem,
|
|
573
|
-
|
|
575
|
+
ne as GuideLineModeItem$1
|
|
574
576
|
};
|
|
@@ -4,7 +4,9 @@ import "./utils/createLineGeometry.js";
|
|
|
4
4
|
import "../shared-utils/five/mode.js";
|
|
5
5
|
import "hammerjs";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
|
-
import "
|
|
7
|
+
import "@realsee/five/line";
|
|
8
|
+
import "../shared-utils/tag.js";
|
|
9
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
8
10
|
import "../shared-utils/three/THREESphere.js";
|
|
9
11
|
import "../shared-utils/three/blink.js";
|
|
10
12
|
import "../shared-utils/isNil.js";
|
|
@@ -14,7 +16,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
14
16
|
import "./Components/Tag.js";
|
|
15
17
|
import "./utils/index.js";
|
|
16
18
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
17
|
-
import { GuideLineModeItem as
|
|
19
|
+
import { GuideLineModeItem as ar } from "./GuideLineModeItem/index.js";
|
|
18
20
|
import "../vendor/polyline-normals/index.js";
|
|
19
21
|
import "../vendor/polyline-miter-util/index.js";
|
|
20
22
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -23,15 +25,7 @@ import "../vendor/gl-vec2/normalize.js";
|
|
|
23
25
|
import "../vendor/gl-vec2/subtract.js";
|
|
24
26
|
import "../vendor/gl-vec2/dot.js";
|
|
25
27
|
import "../shared-utils/math/intersecting.js";
|
|
26
|
-
import "../Sculpt/typings/style.js";
|
|
27
|
-
import "../shared-utils/five/FiveLine.js";
|
|
28
|
-
import "@realsee/five/line";
|
|
29
28
|
import "../shared-utils/positionToVector3.js";
|
|
30
|
-
import "../shared-utils/three/IObject3D.js";
|
|
31
|
-
import "../shared-utils/three/centerPoint.js";
|
|
32
|
-
import "animejs";
|
|
33
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
|
-
import "../shared-utils/tag.js";
|
|
35
29
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
36
30
|
import "../shared-utils/five/getFiveModel.js";
|
|
37
31
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -40,14 +34,16 @@ import "../shared-utils/Subscribe.js";
|
|
|
40
34
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
41
35
|
import "../shared-utils/five/transformPosition.js";
|
|
42
36
|
import "../shared-utils/three/temp.js";
|
|
43
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
44
37
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
45
38
|
import "../Object3DHelperPlugin/Controller.js";
|
|
46
39
|
import "../base/BasePlugin.js";
|
|
40
|
+
import "animejs";
|
|
47
41
|
import "../shared-utils/url/absoluteUrl.js";
|
|
42
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
43
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
49
44
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
50
45
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
46
|
+
import "../shared-utils/three/IObject3D.js";
|
|
51
47
|
import "../shared-utils/three/boundingBox.js";
|
|
52
48
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
53
49
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -60,6 +56,7 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
60
56
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
61
57
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
62
58
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
59
|
+
import "../shared-utils/three/centerPoint.js";
|
|
63
60
|
import "../shared-utils/three/getObjectVisible.js";
|
|
64
61
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
65
62
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -101,12 +98,16 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
101
98
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
102
99
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
103
100
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
101
|
+
import "../Sculpt/Meshes/Line.js";
|
|
102
|
+
import "../Sculpt/typings/style.js";
|
|
103
|
+
import "../shared-utils/five/FiveLine.js";
|
|
104
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
105
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
106
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
104
107
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
105
108
|
import "../shared-utils/isTouchDevice.js";
|
|
106
109
|
import "../shared-utils/five/getPosition.js";
|
|
107
110
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
108
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
109
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
110
111
|
import "../shared-utils/animationFrame/index.js";
|
|
111
112
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
112
113
|
import "../PanoTagPlugin/utils/debounce.js";
|
|
@@ -228,5 +229,5 @@ import "../PanoTagPlugin/Components/TagContainer.js";
|
|
|
228
229
|
import "../PanoTagPlugin/Components/TagItem.js";
|
|
229
230
|
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
ar as GuideLineModeItem
|
|
232
233
|
};
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as Fr } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as Jr } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
7
7
|
import "three";
|
|
8
8
|
import "hammerjs";
|
|
9
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
-
import "../Sculpt/Meshes/Line.js";
|
|
11
|
-
import "../Sculpt/typings/style.js";
|
|
12
|
-
import "../shared-utils/five/FiveLine.js";
|
|
13
10
|
import "@realsee/five/line";
|
|
14
|
-
import "../shared-utils/positionToVector3.js";
|
|
15
|
-
import "../shared-utils/three/IObject3D.js";
|
|
16
|
-
import "../shared-utils/three/centerPoint.js";
|
|
17
|
-
import "../shared-utils/three/THREESphere.js";
|
|
18
|
-
import "animejs";
|
|
19
|
-
import "../shared-utils/isNil.js";
|
|
20
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
11
|
import "../shared-utils/tag.js";
|
|
12
|
+
import "../shared-utils/positionToVector3.js";
|
|
22
13
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
23
14
|
import "../shared-utils/five/getFiveModel.js";
|
|
24
15
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -29,9 +20,11 @@ import "../shared-utils/three/temp.js";
|
|
|
29
20
|
import "../Sculpt/utils/Modules/Global.js";
|
|
30
21
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
31
22
|
import "../Object3DHelperPlugin/Controller.js";
|
|
23
|
+
import "../shared-utils/three/THREESphere.js";
|
|
32
24
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
33
25
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
34
26
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
27
|
+
import "../shared-utils/three/IObject3D.js";
|
|
35
28
|
import "../shared-utils/three/boundingBox.js";
|
|
36
29
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
37
30
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -44,7 +37,11 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
44
37
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
45
38
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
46
39
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
40
|
+
import "../shared-utils/three/centerPoint.js";
|
|
47
41
|
import "../shared-utils/three/getObjectVisible.js";
|
|
42
|
+
import "animejs";
|
|
43
|
+
import "../shared-utils/isNil.js";
|
|
44
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
48
45
|
import "../shared-utils/url/absoluteUrl.js";
|
|
49
46
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
50
47
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -86,12 +83,16 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
86
83
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
87
84
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
88
85
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
86
|
+
import "../Sculpt/Meshes/Line.js";
|
|
87
|
+
import "../Sculpt/typings/style.js";
|
|
88
|
+
import "../shared-utils/five/FiveLine.js";
|
|
89
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
90
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
91
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
89
92
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
90
93
|
import "../shared-utils/isTouchDevice.js";
|
|
91
94
|
import "../shared-utils/five/getPosition.js";
|
|
92
95
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
93
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
94
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
95
96
|
import "../shared-utils/equal.js";
|
|
96
97
|
import "../shared-utils/isTruelyObject.js";
|
|
97
98
|
import "../CruisePlugin/Work.js";
|
|
@@ -244,10 +245,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
244
245
|
import "../shared-utils/nearlyEqual.js";
|
|
245
246
|
import "../CruisePlugin/Move.js";
|
|
246
247
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
247
|
-
const r = (i, o) => new t(i, o),
|
|
248
|
+
const r = (i, o) => new t(i, o), Br = r;
|
|
248
249
|
export {
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
Fr as GuideLineItem,
|
|
251
|
+
Jr as GuideLineModeItem,
|
|
251
252
|
r as GuideLinePlugin,
|
|
252
|
-
|
|
253
|
+
Br as default
|
|
253
254
|
};
|
|
@@ -34,7 +34,9 @@ import { anyPositionToVector3 as O } from "../shared-utils/positionToVector3.js"
|
|
|
34
34
|
import { PolygonWithEdgeMesh as Q } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
35
35
|
import "hammerjs";
|
|
36
36
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
37
|
-
import "
|
|
37
|
+
import "@realsee/five/line";
|
|
38
|
+
import "../shared-utils/tag.js";
|
|
39
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
38
40
|
import { boxVertex as g } from "../shared-utils/three/boundingBox.js";
|
|
39
41
|
import "animejs";
|
|
40
42
|
import { notNil as I } from "../shared-utils/isNil.js";
|
|
@@ -54,26 +56,28 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
54
56
|
import "../shared-utils/five/getFiveModel.js";
|
|
55
57
|
import "../shared-utils/url/absoluteUrl.js";
|
|
56
58
|
import "../shared-utils/three/IObject3D.js";
|
|
59
|
+
import "../Sculpt/Meshes/Line.js";
|
|
60
|
+
import "../Sculpt/typings/style.js";
|
|
61
|
+
import "../shared-utils/five/FiveLine.js";
|
|
62
|
+
import "../shared-utils/three/centerPoint.js";
|
|
63
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
64
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
65
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
66
|
+
import "../shared-utils/util.js";
|
|
57
67
|
import "../Sculpt/Meshes/Polygon.js";
|
|
58
68
|
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
59
69
|
import "../shared-utils/three/earcut3D.js";
|
|
60
70
|
import "earcut";
|
|
61
71
|
import "../shared-utils/three/getNormal.js";
|
|
62
|
-
import "../Sculpt/typings/style.js";
|
|
63
72
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
64
73
|
import "../shared-utils/three/geometryUtil.js";
|
|
65
|
-
import "../shared-utils/three/centerPoint.js";
|
|
66
74
|
import "../shared-utils/three/THREERaycaster.js";
|
|
67
75
|
import "../Sculpt/Meshes/Polyline.js";
|
|
68
76
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
69
77
|
import "../Sculpt/Meshes/Point.js";
|
|
70
78
|
import "../shared-utils/three/closeVectors.js";
|
|
71
|
-
import "../shared-utils/five/FiveLine.js";
|
|
72
|
-
import "@realsee/five/line";
|
|
73
|
-
import "../shared-utils/tag.js";
|
|
74
79
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
75
80
|
import "../shared-utils/three/temp.js";
|
|
76
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
77
81
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
78
82
|
import "../Object3DHelperPlugin/Controller.js";
|
|
79
83
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
@@ -93,7 +97,6 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
93
97
|
import "../shared-utils/three/getObjectVisible.js";
|
|
94
98
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
95
99
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
96
|
-
import "../shared-utils/util.js";
|
|
97
100
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
98
101
|
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
99
102
|
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
@@ -133,15 +136,13 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
|
133
136
|
import "../shared-utils/isTouchDevice.js";
|
|
134
137
|
import "../shared-utils/five/getPosition.js";
|
|
135
138
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
136
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
137
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
138
139
|
import "./utils/Text.js";
|
|
139
140
|
import "../vendor/svelte/internal/index.js";
|
|
140
141
|
import "../components/AreaLabel/LabelItem.js";
|
|
141
142
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
142
143
|
import "./item/baseItem.js";
|
|
143
144
|
import "../shared-utils/three/addIfNotExists.js";
|
|
144
|
-
class
|
|
145
|
+
class oi extends z {
|
|
145
146
|
constructor(t, e) {
|
|
146
147
|
var s, l;
|
|
147
148
|
super(t);
|
|
@@ -302,5 +303,5 @@ class ii extends z {
|
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
305
|
export {
|
|
305
|
-
|
|
306
|
+
oi as Controller
|
|
306
307
|
};
|
|
@@ -5,18 +5,9 @@ import "../shared-utils/Subscribe.js";
|
|
|
5
5
|
import "three";
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
|
-
import "../Sculpt/Meshes/Line.js";
|
|
9
|
-
import "../Sculpt/typings/style.js";
|
|
10
|
-
import "../shared-utils/five/FiveLine.js";
|
|
11
8
|
import "@realsee/five/line";
|
|
12
|
-
import "../shared-utils/positionToVector3.js";
|
|
13
|
-
import "../shared-utils/three/IObject3D.js";
|
|
14
|
-
import "../shared-utils/three/centerPoint.js";
|
|
15
|
-
import "../shared-utils/three/THREESphere.js";
|
|
16
|
-
import "animejs";
|
|
17
|
-
import "../shared-utils/isNil.js";
|
|
18
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
9
|
import "../shared-utils/tag.js";
|
|
10
|
+
import "../shared-utils/positionToVector3.js";
|
|
20
11
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
21
12
|
import "../shared-utils/five/getFiveModel.js";
|
|
22
13
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -27,9 +18,11 @@ import "../shared-utils/three/temp.js";
|
|
|
27
18
|
import "../Sculpt/utils/Modules/Global.js";
|
|
28
19
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
29
20
|
import "../Object3DHelperPlugin/Controller.js";
|
|
21
|
+
import "../shared-utils/three/THREESphere.js";
|
|
30
22
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
31
23
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
32
24
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
25
|
+
import "../shared-utils/three/IObject3D.js";
|
|
33
26
|
import "../shared-utils/three/boundingBox.js";
|
|
34
27
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
35
28
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -42,7 +35,11 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
42
35
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
43
36
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
44
37
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
38
|
+
import "../shared-utils/three/centerPoint.js";
|
|
45
39
|
import "../shared-utils/three/getObjectVisible.js";
|
|
40
|
+
import "animejs";
|
|
41
|
+
import "../shared-utils/isNil.js";
|
|
42
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
43
|
import "../shared-utils/url/absoluteUrl.js";
|
|
47
44
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
48
45
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -84,12 +81,16 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
84
81
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
85
82
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
86
83
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
84
|
+
import "../Sculpt/Meshes/Line.js";
|
|
85
|
+
import "../Sculpt/typings/style.js";
|
|
86
|
+
import "../shared-utils/five/FiveLine.js";
|
|
87
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
88
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
89
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
87
90
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
91
|
import "../shared-utils/isTouchDevice.js";
|
|
89
92
|
import "../shared-utils/five/getPosition.js";
|
|
90
93
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
91
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
92
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
93
94
|
import "./item/boxItem.js";
|
|
94
95
|
import "./item/polygonItem.js";
|
|
95
96
|
import "./item/baseItem.js";
|
|
@@ -114,7 +115,7 @@ import "../vendor/svelte/internal/index.js";
|
|
|
114
115
|
import "../components/AreaLabel/LabelItem.js";
|
|
115
116
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
116
117
|
import "./item/prismItem.js";
|
|
117
|
-
const
|
|
118
|
+
const dr = (...o) => new r(...o);
|
|
118
119
|
export {
|
|
119
|
-
|
|
120
|
+
dr as ModelMakerPlugin
|
|
120
121
|
};
|
|
@@ -14,7 +14,7 @@ var R = (s, g, e) => new Promise((f, v) => {
|
|
|
14
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 d 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";
|
|
@@ -33,15 +33,7 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
33
33
|
import "../shared-utils/three/centerPoint.js";
|
|
34
34
|
import "../shared-utils/three/getObjectVisible.js";
|
|
35
35
|
import "hammerjs";
|
|
36
|
-
import "../Sculpt/Meshes/Line.js";
|
|
37
|
-
import "../Sculpt/typings/style.js";
|
|
38
|
-
import "../shared-utils/five/FiveLine.js";
|
|
39
36
|
import "@realsee/five/line";
|
|
40
|
-
import "../shared-utils/three/IObject3D.js";
|
|
41
|
-
import "../shared-utils/three/THREESphere.js";
|
|
42
|
-
import "animejs";
|
|
43
|
-
import "../shared-utils/isNil.js";
|
|
44
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
45
37
|
import "../shared-utils/tag.js";
|
|
46
38
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
47
39
|
import "../shared-utils/five/getFiveModel.js";
|
|
@@ -54,10 +46,14 @@ import "../Sculpt/utils/Modules/Global.js";
|
|
|
54
46
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
55
47
|
import "../Object3DHelperPlugin/Controller.js";
|
|
56
48
|
import "../base/BasePlugin.js";
|
|
49
|
+
import "../shared-utils/three/THREESphere.js";
|
|
50
|
+
import "animejs";
|
|
57
51
|
import "../shared-utils/url/absoluteUrl.js";
|
|
52
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
58
53
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
59
54
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
60
55
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
56
|
+
import "../shared-utils/three/IObject3D.js";
|
|
61
57
|
import "../shared-utils/three/boundingBox.js";
|
|
62
58
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
63
59
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -72,6 +68,7 @@ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
|
72
68
|
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
73
69
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
74
70
|
import "../shared-utils/threex/domevents/index.js";
|
|
71
|
+
import "../shared-utils/isNil.js";
|
|
75
72
|
import "../shared-utils/util.js";
|
|
76
73
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
77
74
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
@@ -100,16 +97,20 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
100
97
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
101
98
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
102
99
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
100
|
+
import "../Sculpt/Meshes/Line.js";
|
|
101
|
+
import "../Sculpt/typings/style.js";
|
|
102
|
+
import "../shared-utils/five/FiveLine.js";
|
|
103
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
104
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
105
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
103
106
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
104
107
|
import "../shared-utils/isTouchDevice.js";
|
|
105
108
|
import "../shared-utils/five/getPosition.js";
|
|
106
109
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
107
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
108
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
109
110
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
110
111
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
111
112
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
112
|
-
const
|
|
113
|
+
const Et = (s, { videoElement: g }) => {
|
|
113
114
|
const e = {
|
|
114
115
|
videoMeshes: [],
|
|
115
116
|
videoTextureEnabled: !1,
|
|
@@ -149,22 +150,22 @@ const wt = (s, { videoElement: g }) => {
|
|
|
149
150
|
t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
150
151
|
}), e.videoMeshes = [], s.needsRender = !0);
|
|
151
152
|
}, x = () => e.rectPoints.map((t, i) => {
|
|
152
|
-
const n = new
|
|
153
|
-
|
|
153
|
+
const n = new d.BufferGeometry(), o = 128, m = [];
|
|
154
|
+
m.push(...t[0].toArray());
|
|
154
155
|
for (let r = 1; r < o; r++)
|
|
155
|
-
|
|
156
|
+
m.push(
|
|
156
157
|
t[0].x + (t[1].x - t[0].x) * r / o,
|
|
157
158
|
t[0].y + (t[1].y - t[0].y) * r / o,
|
|
158
159
|
t[0].z + (t[1].z - t[0].z) * r / o
|
|
159
160
|
);
|
|
160
|
-
|
|
161
|
+
m.push(...t[1].toArray()), m.push(...t[2].toArray());
|
|
161
162
|
for (let r = 1; r < o; r++)
|
|
162
|
-
|
|
163
|
+
m.push(
|
|
163
164
|
t[2].x + (t[3].x - t[2].x) * r / o,
|
|
164
165
|
t[2].y + (t[3].y - t[2].y) * r / o,
|
|
165
166
|
t[2].z + (t[3].z - t[2].z) * r / o
|
|
166
167
|
);
|
|
167
|
-
|
|
168
|
+
m.push(...t[3].toArray());
|
|
168
169
|
const a = [];
|
|
169
170
|
a.push(0, 1);
|
|
170
171
|
for (let r = 1; r < o; r++)
|
|
@@ -176,11 +177,11 @@ const wt = (s, { videoElement: g }) => {
|
|
|
176
177
|
const c = [];
|
|
177
178
|
for (let r = 0; r < o; r++)
|
|
178
179
|
c.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
|
|
179
|
-
n.setAttribute("position", new
|
|
180
|
-
const p = new
|
|
180
|
+
n.setAttribute("position", new d.BufferAttribute(new Float32Array(m), 3)), n.setAttribute("uv", new d.BufferAttribute(new Float32Array(a), 2)), n.setIndex(new d.BufferAttribute(new Uint32Array(c), 1));
|
|
181
|
+
const p = new d.MeshBasicMaterial({
|
|
181
182
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
182
|
-
side:
|
|
183
|
-
}), l = new
|
|
183
|
+
side: d.DoubleSide
|
|
184
|
+
}), l = new d.Mesh(n, p);
|
|
184
185
|
l.renderOrder = 1, l.name = `ModelTVVideoPlugin-${i}-${performance.now()}`;
|
|
185
186
|
const I = [t[1], t[2], t[3], t[0]], y = f.create3DDomContainer(I);
|
|
186
187
|
if (y != null && y.container) {
|
|
@@ -193,26 +194,26 @@ const wt = (s, { videoElement: g }) => {
|
|
|
193
194
|
}
|
|
194
195
|
return l;
|
|
195
196
|
}), F = (t) => {
|
|
196
|
-
const i = new
|
|
197
|
-
return i.minFilter =
|
|
197
|
+
const i = new d.TextureLoader().load(t);
|
|
198
|
+
return i.minFilter = d.LinearFilter, i.magFilter = d.LinearFilter, i.format = d.RGBFormat, i;
|
|
198
199
|
}, P = (t, i) => {
|
|
199
200
|
let n = i;
|
|
200
|
-
return new Promise((o,
|
|
201
|
+
return new Promise((o, m) => {
|
|
201
202
|
const a = new XMLHttpRequest();
|
|
202
203
|
a.onreadystatechange = () => {
|
|
203
204
|
if (a.readyState === 4)
|
|
204
205
|
if (a.status === 200) {
|
|
205
206
|
const c = window.URL || window.webkitURL;
|
|
206
207
|
n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = c.createObjectURL(a.response);
|
|
207
|
-
const p = new
|
|
208
|
-
p.minFilter =
|
|
208
|
+
const p = new d.VideoTexture(n);
|
|
209
|
+
p.minFilter = d.LinearFilter, p.magFilter = d.LinearFilter, p.format = d.RGBFormat, o(Object.assign(p, { videoSource: t }));
|
|
209
210
|
} else
|
|
210
|
-
|
|
211
|
-
}, a.onerror = (c) =>
|
|
211
|
+
m(new Error("Video download Error: " + a.status));
|
|
212
|
+
}, a.onerror = (c) => m(c), a.open("GET", t), a.responseType = "blob", a.send();
|
|
212
213
|
});
|
|
213
214
|
}, L = (t, i) => R(void 0, null, function* () {
|
|
214
|
-
const { video_src: n, video_poster_src: o, points:
|
|
215
|
-
e.videoSource = n, e.rectPoints = S(
|
|
215
|
+
const { video_src: n, video_poster_src: o, points: m } = t;
|
|
216
|
+
e.videoSource = n, e.rectPoints = S(m).map((a) => a.map(({ x: c, y: p, z: l }) => new d.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();
|
|
216
217
|
}), E = (t) => {
|
|
217
218
|
if (!e.enabled)
|
|
218
219
|
return;
|
|
@@ -226,13 +227,13 @@ const wt = (s, { videoElement: g }) => {
|
|
|
226
227
|
return;
|
|
227
228
|
const t = s.camera.position;
|
|
228
229
|
if (v.forEach((i, n) => {
|
|
229
|
-
const o = i.css3DObject.position.clone(),
|
|
230
|
+
const o = i.css3DObject.position.clone(), m = o.clone().sub(t).normalize(), a = new d.Raycaster(t, m), c = s.model.intersectRaycaster(a)[0], p = o.distanceTo(t), l = 0.01;
|
|
230
231
|
c && c.distance + l < p ? i.hide() : i.show();
|
|
231
232
|
}), !w()) {
|
|
232
233
|
const i = e.rectPoints.find((n) => {
|
|
233
234
|
const o = n[0].clone().add(n[1]).add(n[2]).add(n[3]).divideScalar(4);
|
|
234
|
-
return n.map((
|
|
235
|
-
const a =
|
|
235
|
+
return n.map((m) => m.clone().add(o).divideScalar(2)).filter((m) => {
|
|
236
|
+
const a = m.distanceTo(t), c = new d.Raycaster(t, m.clone().sub(t).normalize()), p = s.model.intersectRaycaster(c)[0], l = 0.01;
|
|
236
237
|
return !(p && p.distance + l < a);
|
|
237
238
|
}).length >= 2;
|
|
238
239
|
});
|
|
@@ -252,6 +253,6 @@ const wt = (s, { videoElement: g }) => {
|
|
|
252
253
|
}), { enable: h, disable: u, load: L, dispose: V, state: e, css3DRenderPlugin: f };
|
|
253
254
|
};
|
|
254
255
|
export {
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
Et as ModelTVVideoPlugin,
|
|
257
|
+
Et as default
|
|
257
258
|
};
|