@realsee/dnalogel 3.47.9 → 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 +6 -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 +3236 -3222
- 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 +22 -16
- 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 +11 -9
- 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/tag.js +4 -1
- package/libs/shared-utils/three/applyObjectMatrixWorld.js +4 -6
- package/libs/shared-utils/three/index.js +3 -1
- package/package.json +1 -1
|
@@ -31,7 +31,9 @@ import * as g from "three";
|
|
|
31
31
|
import { Controller as k } from "../base/BasePluginWithData.js";
|
|
32
32
|
import "hammerjs";
|
|
33
33
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
34
|
-
import "
|
|
34
|
+
import "@realsee/five/line";
|
|
35
|
+
import "../shared-utils/tag.js";
|
|
36
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
35
37
|
import "../shared-utils/three/THREESphere.js";
|
|
36
38
|
import "animejs";
|
|
37
39
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -45,22 +47,15 @@ import "../shared-utils/Utils/WorkUtil.js";
|
|
|
45
47
|
import "../shared-utils/five/transformPosition.js";
|
|
46
48
|
import "../shared-utils/five/getFiveModel.js";
|
|
47
49
|
import "../shared-utils/url/absoluteUrl.js";
|
|
48
|
-
import "../Sculpt/typings/style.js";
|
|
49
|
-
import "../shared-utils/five/FiveLine.js";
|
|
50
|
-
import "@realsee/five/line";
|
|
51
50
|
import "../shared-utils/positionToVector3.js";
|
|
52
|
-
import "../shared-utils/three/IObject3D.js";
|
|
53
|
-
import "../shared-utils/three/centerPoint.js";
|
|
54
|
-
import "../shared-utils/isNil.js";
|
|
55
|
-
import "../shared-utils/tag.js";
|
|
56
51
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
57
52
|
import "../shared-utils/three/temp.js";
|
|
58
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
59
53
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
60
54
|
import "../Object3DHelperPlugin/Controller.js";
|
|
61
55
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
62
56
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
63
57
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
58
|
+
import "../shared-utils/three/IObject3D.js";
|
|
64
59
|
import "../shared-utils/three/boundingBox.js";
|
|
65
60
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
66
61
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -73,7 +68,9 @@ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
73
68
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
74
69
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
75
70
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
71
|
+
import "../shared-utils/three/centerPoint.js";
|
|
76
72
|
import "../shared-utils/three/getObjectVisible.js";
|
|
73
|
+
import "../shared-utils/isNil.js";
|
|
77
74
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
78
75
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
79
76
|
import "../shared-utils/util.js";
|
|
@@ -114,12 +111,16 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
114
111
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
115
112
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
116
113
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
114
|
+
import "../Sculpt/Meshes/Line.js";
|
|
115
|
+
import "../Sculpt/typings/style.js";
|
|
116
|
+
import "../shared-utils/five/FiveLine.js";
|
|
117
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
118
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
119
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
117
120
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
118
121
|
import "../shared-utils/isTouchDevice.js";
|
|
119
122
|
import "../shared-utils/five/getPosition.js";
|
|
120
123
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
121
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
122
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
123
124
|
import "../shared-utils/isTruelyObject.js";
|
|
124
125
|
import "../shared-utils/three/core/Object3D.js";
|
|
125
126
|
import "../shared-utils/three/objects/LineSegments.js";
|
|
@@ -130,7 +131,7 @@ import "../vendor/svelte/internal/index.js";
|
|
|
130
131
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
131
132
|
import "../shared-utils/math/planimetry.js";
|
|
132
133
|
import "../shared-utils/dom/resizeObserver.js";
|
|
133
|
-
class
|
|
134
|
+
class _e extends k {
|
|
134
135
|
/** AreaMakerPlugin
|
|
135
136
|
* @param `five` `<Five>` Five 实例
|
|
136
137
|
* @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
|
|
@@ -405,5 +406,5 @@ class Ae extends k {
|
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
408
|
export {
|
|
408
|
-
|
|
409
|
+
_e as Controller
|
|
409
410
|
};
|
|
@@ -5,18 +5,9 @@ import "../base/BasePlugin.js";
|
|
|
5
5
|
import "../shared-utils/Subscribe.js";
|
|
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 "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
47
44
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
48
45
|
import "../shared-utils/util.js";
|
|
@@ -83,12 +80,16 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
83
80
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
84
81
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
85
82
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
83
|
+
import "../Sculpt/Meshes/Line.js";
|
|
84
|
+
import "../Sculpt/typings/style.js";
|
|
85
|
+
import "../shared-utils/five/FiveLine.js";
|
|
86
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
87
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
88
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
86
89
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
87
90
|
import "../shared-utils/isTouchDevice.js";
|
|
88
91
|
import "../shared-utils/five/getPosition.js";
|
|
89
92
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
90
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
91
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
92
93
|
import "../shared-utils/url/absoluteUrl.js";
|
|
93
94
|
import "../shared-utils/equal.js";
|
|
94
95
|
import "../shared-utils/isTruelyObject.js";
|
|
@@ -102,7 +103,7 @@ import "../vendor/svelte/internal/index.js";
|
|
|
102
103
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
103
104
|
import "../shared-utils/math/planimetry.js";
|
|
104
105
|
import "../shared-utils/dom/resizeObserver.js";
|
|
105
|
-
const
|
|
106
|
+
const ro = (r, o) => new t(r, o);
|
|
106
107
|
export {
|
|
107
|
-
|
|
108
|
+
ro as AreaMakerPlugin
|
|
108
109
|
};
|
|
@@ -5,7 +5,9 @@ import * as r from "three";
|
|
|
5
5
|
import "hammerjs";
|
|
6
6
|
import { Subscribe as y } from "../../shared-utils/Subscribe.js";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
|
-
import "
|
|
8
|
+
import "@realsee/five/line";
|
|
9
|
+
import "../../shared-utils/tag.js";
|
|
10
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
9
11
|
import { Object3D as T } from "../../shared-utils/three/core/Object3D.js";
|
|
10
12
|
import { LineSegments as C } from "../../shared-utils/three/objects/LineSegments.js";
|
|
11
13
|
import "../../shared-utils/three/THREESphere.js";
|
|
@@ -15,29 +17,22 @@ import { LabelItem as v } from "../../components/AreaLabel/LabelItem.js";
|
|
|
15
17
|
import { getCenterPointOfPoints as M } from "../../shared-utils/math/planimetry.js";
|
|
16
18
|
import { resizeObserver as V } from "../../shared-utils/dom/resizeObserver.js";
|
|
17
19
|
import { _raycaster as d } from "../../shared-utils/three/temp.js";
|
|
18
|
-
import "../../Sculpt/typings/style.js";
|
|
19
|
-
import "../../shared-utils/five/FiveLine.js";
|
|
20
|
-
import "@realsee/five/line";
|
|
21
20
|
import "../../shared-utils/positionToVector3.js";
|
|
22
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
23
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
24
|
-
import "../../shared-utils/isNil.js";
|
|
25
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
26
|
-
import "../../shared-utils/tag.js";
|
|
27
21
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
28
22
|
import "../../shared-utils/five/getFiveModel.js";
|
|
29
23
|
import "../../shared-utils/Utils/FiveUtil.js";
|
|
30
24
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
31
25
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
32
26
|
import "../../shared-utils/five/transformPosition.js";
|
|
33
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
34
27
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
35
28
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
36
29
|
import "../../base/BasePlugin.js";
|
|
37
30
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
31
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
32
|
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
39
33
|
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
40
34
|
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
35
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
41
36
|
import "../../shared-utils/three/boundingBox.js";
|
|
42
37
|
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
43
38
|
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -50,7 +45,9 @@ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
|
50
45
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
51
46
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
52
47
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
48
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
53
49
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
50
|
+
import "../../shared-utils/isNil.js";
|
|
54
51
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
55
52
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
56
53
|
import "../../shared-utils/util.js";
|
|
@@ -91,12 +88,16 @@ import "../../shared-utils/three/Assets/index.js";
|
|
|
91
88
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
92
89
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
93
90
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
91
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
92
|
+
import "../../Sculpt/typings/style.js";
|
|
93
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
94
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
95
|
+
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
96
|
+
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
94
97
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
95
98
|
import "../../shared-utils/isTouchDevice.js";
|
|
96
99
|
import "../../shared-utils/five/getPosition.js";
|
|
97
100
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
98
|
-
import "../../Sculpt/utils/removeAllTag.js";
|
|
99
|
-
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
100
101
|
import "../../shared-utils/animationFrame/index.js";
|
|
101
102
|
import "../../vendor/svelte/internal/index.js";
|
|
102
103
|
import "../../components/AreaLabel/Assets/roomLabelBg.js";
|
|
@@ -110,7 +111,7 @@ class P extends T {
|
|
|
110
111
|
this.areaMakerItem.makerObject.raycast(t, o);
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
class
|
|
114
|
+
class Ti {
|
|
114
115
|
constructor(i, t) {
|
|
115
116
|
e(this, "id");
|
|
116
117
|
/** 标注名称 */
|
|
@@ -366,5 +367,5 @@ function u(a, i) {
|
|
|
366
367
|
t.multiply(o), t.multiply(s), t.multiply(m), a.applyMatrix4(t);
|
|
367
368
|
}
|
|
368
369
|
export {
|
|
369
|
-
|
|
370
|
+
Ti as AreaMakerItem
|
|
370
371
|
};
|
|
@@ -16,7 +16,9 @@ import x from "./utils/generateBehindFiveElement.js";
|
|
|
16
16
|
import "three";
|
|
17
17
|
import "hammerjs";
|
|
18
18
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
19
|
-
import "
|
|
19
|
+
import "@realsee/five/line";
|
|
20
|
+
import "../shared-utils/tag.js";
|
|
21
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
20
22
|
import "../shared-utils/three/THREESphere.js";
|
|
21
23
|
import "animejs";
|
|
22
24
|
import { absoluteUrl as P } from "../shared-utils/url/absoluteUrl.js";
|
|
@@ -37,11 +39,6 @@ import "./utils/three/CSS3DScene.js";
|
|
|
37
39
|
import "./utils/getAllCSS3DObject.js";
|
|
38
40
|
import "../shared-utils/util.js";
|
|
39
41
|
import "./utils/three/CSS3DGroup.js";
|
|
40
|
-
import "../Sculpt/typings/style.js";
|
|
41
|
-
import "../shared-utils/five/FiveLine.js";
|
|
42
|
-
import "@realsee/five/line";
|
|
43
|
-
import "../shared-utils/three/IObject3D.js";
|
|
44
|
-
import "../shared-utils/tag.js";
|
|
45
42
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
46
43
|
import "../shared-utils/five/getFiveModel.js";
|
|
47
44
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -49,13 +46,13 @@ import "../shared-utils/Utils/BaseUtil.js";
|
|
|
49
46
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
50
47
|
import "../shared-utils/five/transformPosition.js";
|
|
51
48
|
import "../shared-utils/three/temp.js";
|
|
52
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
53
49
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
54
50
|
import "../Object3DHelperPlugin/Controller.js";
|
|
55
51
|
import "../base/BasePlugin.js";
|
|
56
52
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
57
53
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
58
54
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
55
|
+
import "../shared-utils/three/IObject3D.js";
|
|
59
56
|
import "../shared-utils/three/boundingBox.js";
|
|
60
57
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
61
58
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -95,14 +92,18 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
95
92
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
96
93
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
97
94
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
95
|
+
import "../Sculpt/Meshes/Line.js";
|
|
96
|
+
import "../Sculpt/typings/style.js";
|
|
97
|
+
import "../shared-utils/five/FiveLine.js";
|
|
98
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
99
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
100
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
98
101
|
import "./utils/three/CSS3DSprite.js";
|
|
99
102
|
import "../shared-utils/isTouchDevice.js";
|
|
100
103
|
import "../shared-utils/five/getPosition.js";
|
|
101
104
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
102
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
103
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
104
105
|
const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
|
|
105
|
-
class
|
|
106
|
+
class ct extends j {
|
|
106
107
|
constructor(e) {
|
|
107
108
|
super();
|
|
108
109
|
m(this, "five");
|
|
@@ -215,5 +216,5 @@ class ht extends j {
|
|
|
215
216
|
}
|
|
216
217
|
export {
|
|
217
218
|
E as PLUGIN_NAME,
|
|
218
|
-
|
|
219
|
+
ct as default
|
|
219
220
|
};
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import o from "./Controller.js";
|
|
2
|
-
import { CSS3DRender as
|
|
2
|
+
import { CSS3DRender as Nr } from "./utils/three/CSS3DRender.js";
|
|
3
3
|
import "./utils/generateBehindFiveElement.js";
|
|
4
4
|
import "three";
|
|
5
5
|
import "hammerjs";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
|
-
import "../Sculpt/Meshes/Line.js";
|
|
8
|
-
import "../Sculpt/typings/style.js";
|
|
9
|
-
import "../shared-utils/five/FiveLine.js";
|
|
10
7
|
import "@realsee/five/line";
|
|
11
|
-
import "../shared-utils/positionToVector3.js";
|
|
12
|
-
import "../shared-utils/three/IObject3D.js";
|
|
13
|
-
import "../shared-utils/three/centerPoint.js";
|
|
14
|
-
import "../shared-utils/three/THREESphere.js";
|
|
15
|
-
import "animejs";
|
|
16
|
-
import "../shared-utils/isNil.js";
|
|
17
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
18
8
|
import "../shared-utils/tag.js";
|
|
9
|
+
import "../shared-utils/positionToVector3.js";
|
|
19
10
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
20
11
|
import "../shared-utils/five/getFiveModel.js";
|
|
21
12
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -28,10 +19,14 @@ import "../Sculpt/utils/Modules/Global.js";
|
|
|
28
19
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
29
20
|
import "../Object3DHelperPlugin/Controller.js";
|
|
30
21
|
import "../base/BasePlugin.js";
|
|
22
|
+
import "../shared-utils/three/THREESphere.js";
|
|
23
|
+
import "animejs";
|
|
31
24
|
import "../shared-utils/url/absoluteUrl.js";
|
|
25
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
32
26
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
33
27
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
34
28
|
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
29
|
+
import "../shared-utils/three/IObject3D.js";
|
|
35
30
|
import "../shared-utils/three/boundingBox.js";
|
|
36
31
|
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
37
32
|
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -46,6 +41,7 @@ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
|
46
41
|
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
47
42
|
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
48
43
|
import "../shared-utils/threex/domevents/index.js";
|
|
44
|
+
import "../shared-utils/isNil.js";
|
|
49
45
|
import "../shared-utils/util.js";
|
|
50
46
|
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
51
47
|
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
@@ -74,24 +70,29 @@ import "../shared-utils/three/Assets/index.js";
|
|
|
74
70
|
import "./utils/three/CSS3DObject.js";
|
|
75
71
|
import "./utils/even.js";
|
|
76
72
|
import "./utils/three/OpacityMesh.js";
|
|
73
|
+
import "../shared-utils/three/centerPoint.js";
|
|
77
74
|
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
78
75
|
import "../shared-utils/five/initialCSS3DRender.js";
|
|
79
76
|
import "./utils/three/CSS3DRenderer.js";
|
|
80
77
|
import "./utils/three/THREEJS_CSS3DRenderer.js";
|
|
81
78
|
import "./utils/createResizeObserver.js";
|
|
82
79
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
80
|
+
import "../Sculpt/Meshes/Line.js";
|
|
81
|
+
import "../Sculpt/typings/style.js";
|
|
82
|
+
import "../shared-utils/five/FiveLine.js";
|
|
83
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
84
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
85
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
83
86
|
import "./utils/three/CSS3DSprite.js";
|
|
84
87
|
import "../shared-utils/isTouchDevice.js";
|
|
85
88
|
import "../shared-utils/five/getPosition.js";
|
|
86
89
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
87
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
88
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
89
90
|
import "./utils/three/CSS3DScene.js";
|
|
90
91
|
import "./utils/getAllCSS3DObject.js";
|
|
91
92
|
import "./utils/three/CSS3DGroup.js";
|
|
92
|
-
const
|
|
93
|
+
const Kr = (r) => new o(r);
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
Nr as CSS3DRender,
|
|
96
|
+
Kr as CSS3DRenderPlugin,
|
|
97
|
+
Kr as default
|
|
97
98
|
};
|
|
@@ -9,17 +9,14 @@ import R from "./OpacityMesh.js";
|
|
|
9
9
|
import { centerPoint as L } from "../../../shared-utils/three/centerPoint.js";
|
|
10
10
|
import { getObjectVisible as T } from "../../../shared-utils/three/getObjectVisible.js";
|
|
11
11
|
import "hammerjs";
|
|
12
|
-
import "
|
|
12
|
+
import "@realsee/five/line";
|
|
13
|
+
import "../../../shared-utils/tag.js";
|
|
14
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
13
15
|
import "../../../shared-utils/three/THREESphere.js";
|
|
14
16
|
import "animejs";
|
|
15
17
|
import { isNil as O } from "../../../shared-utils/isNil.js";
|
|
16
18
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
17
|
-
import "../../../Sculpt/typings/style.js";
|
|
18
|
-
import "../../../shared-utils/five/FiveLine.js";
|
|
19
|
-
import "@realsee/five/line";
|
|
20
19
|
import "../../../shared-utils/positionToVector3.js";
|
|
21
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
22
|
-
import "../../../shared-utils/tag.js";
|
|
23
20
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
24
21
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
25
22
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
@@ -27,7 +24,6 @@ import "../../../shared-utils/Utils/BaseUtil.js";
|
|
|
27
24
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
28
25
|
import "../../../shared-utils/five/transformPosition.js";
|
|
29
26
|
import "../../../shared-utils/three/temp.js";
|
|
30
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
31
27
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
32
28
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
33
29
|
import "../../../base/BasePlugin.js";
|
|
@@ -35,6 +31,7 @@ import "../../../shared-utils/url/absoluteUrl.js";
|
|
|
35
31
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
36
32
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
37
33
|
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
34
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
38
35
|
import "../../../shared-utils/three/boundingBox.js";
|
|
39
36
|
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
40
37
|
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -85,14 +82,18 @@ import "../../../shared-utils/three/Assets/index.js";
|
|
|
85
82
|
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
86
83
|
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
87
84
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
85
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
86
|
+
import "../../../Sculpt/typings/style.js";
|
|
87
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
88
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
89
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
90
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
88
91
|
import "./CSS3DSprite.js";
|
|
89
92
|
import "../../../shared-utils/isTouchDevice.js";
|
|
90
93
|
import "../../../shared-utils/five/getPosition.js";
|
|
91
94
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
92
|
-
import "../../../Sculpt/utils/removeAllTag.js";
|
|
93
|
-
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
94
95
|
const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
|
|
95
|
-
class
|
|
96
|
+
class Oi extends N {
|
|
96
97
|
constructor(t) {
|
|
97
98
|
var x, b, w, g, V;
|
|
98
99
|
if (O(t.cornerPoints) && O(t.width))
|
|
@@ -198,7 +199,7 @@ class Ei extends N {
|
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
201
|
export {
|
|
201
|
-
|
|
202
|
+
Oi as CSS3DObjectPlus,
|
|
202
203
|
z as DefaultRatio,
|
|
203
204
|
k as MinRatio
|
|
204
205
|
};
|
|
@@ -18,20 +18,20 @@ var f = (s, e, t) => new Promise((r, o) => {
|
|
|
18
18
|
} catch (a) {
|
|
19
19
|
o(a);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, S = (c) => {
|
|
22
22
|
try {
|
|
23
23
|
u(t.throw(c));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
o(a);
|
|
26
26
|
}
|
|
27
|
-
}, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d,
|
|
27
|
+
}, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, S);
|
|
28
28
|
u((t = t.apply(s, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVector3.js";
|
|
31
31
|
import B from "./CSS3DRenderer.js";
|
|
32
32
|
import { Subscribe as A } from "../../../shared-utils/Subscribe.js";
|
|
33
33
|
import { CSS3DObjectPlus as W } from "./CSS3DObject.js";
|
|
34
|
-
import { MinRatio as
|
|
34
|
+
import { MinRatio as _t } from "./CSS3DObject.js";
|
|
35
35
|
import { CSS3DFrontScene as H, CSS3DBehindScene as T } from "./CSS3DScene.js";
|
|
36
36
|
import { CSS3DFrontGroup as U, CSS3DBehindGroup as z } from "./CSS3DGroup.js";
|
|
37
37
|
import { CSS3DObject as j } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -43,15 +43,7 @@ import "./OpacityMesh.js";
|
|
|
43
43
|
import "../../../shared-utils/three/centerPoint.js";
|
|
44
44
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
45
45
|
import "hammerjs";
|
|
46
|
-
import "../../../Sculpt/Meshes/Line.js";
|
|
47
|
-
import "../../../Sculpt/typings/style.js";
|
|
48
|
-
import "../../../shared-utils/five/FiveLine.js";
|
|
49
46
|
import "@realsee/five/line";
|
|
50
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
51
|
-
import "../../../shared-utils/three/THREESphere.js";
|
|
52
|
-
import "animejs";
|
|
53
|
-
import "../../../shared-utils/isNil.js";
|
|
54
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
55
47
|
import "../../../shared-utils/tag.js";
|
|
56
48
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
57
49
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -64,10 +56,14 @@ import "../../../Sculpt/utils/Modules/Global.js";
|
|
|
64
56
|
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
65
57
|
import "../../../Object3DHelperPlugin/Controller.js";
|
|
66
58
|
import "../../../base/BasePlugin.js";
|
|
59
|
+
import "../../../shared-utils/three/THREESphere.js";
|
|
60
|
+
import "animejs";
|
|
67
61
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
62
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
68
63
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
69
64
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
70
65
|
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
66
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
71
67
|
import "../../../shared-utils/three/boundingBox.js";
|
|
72
68
|
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
73
69
|
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
@@ -83,6 +79,7 @@ import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
|
83
79
|
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
84
80
|
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
85
81
|
import "../../../shared-utils/threex/domevents/index.js";
|
|
82
|
+
import "../../../shared-utils/isNil.js";
|
|
86
83
|
import "../../../shared-utils/util.js";
|
|
87
84
|
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
88
85
|
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
@@ -111,14 +108,18 @@ import "../../../shared-utils/three/Assets/index.js";
|
|
|
111
108
|
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
112
109
|
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
113
110
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
111
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
112
|
+
import "../../../Sculpt/typings/style.js";
|
|
113
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
114
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
115
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
116
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
114
117
|
import "./CSS3DSprite.js";
|
|
115
118
|
import "../../../shared-utils/isTouchDevice.js";
|
|
116
119
|
import "../../../shared-utils/five/getPosition.js";
|
|
117
120
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
118
|
-
import "../../../Sculpt/utils/removeAllTag.js";
|
|
119
|
-
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
120
121
|
import "../getAllCSS3DObject.js";
|
|
121
|
-
const J = 3, G = "CSS3DRenderer", l = `${G}@${J}`,
|
|
122
|
+
const J = 3, G = "CSS3DRenderer", l = `${G}@${J}`, m = () => {
|
|
122
123
|
console.error(`${l} is disposed`);
|
|
123
124
|
}, i = {
|
|
124
125
|
css3DObjects: [],
|
|
@@ -187,7 +188,7 @@ class y {
|
|
|
187
188
|
*/
|
|
188
189
|
n(this, "create3DElement", (e, t, r) => {
|
|
189
190
|
if (this.state.disposed)
|
|
190
|
-
return
|
|
191
|
+
return m();
|
|
191
192
|
const o = (() => {
|
|
192
193
|
const p = {
|
|
193
194
|
ratio: 216e-5,
|
|
@@ -202,9 +203,9 @@ class y {
|
|
|
202
203
|
})(), d = t.map(q);
|
|
203
204
|
if ((d == null ? void 0 : d.length) < 4)
|
|
204
205
|
return console.error(`${l}: requires 4 point but params may have fewer`);
|
|
205
|
-
const { ratio:
|
|
206
|
+
const { ratio: S, devicePixelRatio: u, mode: c, autoRender: a, container: O, pointerEvents: F, wrapperStyle: I } = o;
|
|
206
207
|
let b = !1;
|
|
207
|
-
const h = this.createObject(d, { ratio:
|
|
208
|
+
const h = this.createObject(d, { ratio: S, dpr: u, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
|
|
208
209
|
i.css3DObjects.push(h), o.scene && this.setScene(o.scene);
|
|
209
210
|
const N = () => {
|
|
210
211
|
if (b)
|
|
@@ -269,7 +270,7 @@ class y {
|
|
|
269
270
|
}
|
|
270
271
|
setState(e, t = { userAction: !0 }) {
|
|
271
272
|
if (this.state.disposed)
|
|
272
|
-
return
|
|
273
|
+
return m();
|
|
273
274
|
const r = g({}, this.state);
|
|
274
275
|
this.state = Object.assign(this.state, e), r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), r.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: t.userAction });
|
|
275
276
|
}
|
|
@@ -279,25 +280,25 @@ class y {
|
|
|
279
280
|
show() {
|
|
280
281
|
return f(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
281
282
|
if (this.state.disposed)
|
|
282
|
-
return
|
|
283
|
+
return m();
|
|
283
284
|
this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
|
|
284
285
|
});
|
|
285
286
|
}
|
|
286
287
|
hide() {
|
|
287
288
|
return f(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
288
289
|
if (this.state.disposed)
|
|
289
|
-
return
|
|
290
|
+
return m();
|
|
290
291
|
this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
|
|
291
292
|
});
|
|
292
293
|
}
|
|
293
294
|
enable({ userAction: e } = { userAction: !0 }) {
|
|
294
295
|
if (this.state.disposed)
|
|
295
|
-
return
|
|
296
|
+
return m();
|
|
296
297
|
this.setState({ enabled: !0 }, { userAction: e }), this.hooks.emit("enable", { userAction: e });
|
|
297
298
|
}
|
|
298
299
|
disable({ userAction: e } = { userAction: !0 }) {
|
|
299
300
|
if (this.state.disposed)
|
|
300
|
-
return
|
|
301
|
+
return m();
|
|
301
302
|
this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
|
|
302
303
|
}
|
|
303
304
|
getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
|
|
@@ -322,8 +323,8 @@ class y {
|
|
|
322
323
|
console.error(`${l}: scene is required when mode is behind`);
|
|
323
324
|
return;
|
|
324
325
|
}
|
|
325
|
-
const
|
|
326
|
-
i.behindModeStore.css3DScene =
|
|
326
|
+
const S = new T(d);
|
|
327
|
+
i.behindModeStore.css3DScene = S, i.behindModeStore.scene = d;
|
|
327
328
|
}
|
|
328
329
|
return i.behindModeStore.css3DScene;
|
|
329
330
|
}
|
|
@@ -386,7 +387,7 @@ class y {
|
|
|
386
387
|
n(y, "setFrontModeContainer", K), n(y, "setBehindModeContainer", Q);
|
|
387
388
|
export {
|
|
388
389
|
y as CSS3DRender,
|
|
389
|
-
|
|
390
|
+
_t as MinRatio,
|
|
390
391
|
l as PLUGIN,
|
|
391
392
|
i as globalStore
|
|
392
393
|
};
|