@realsee/dnalogel 3.51.0 → 3.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Meshes/Box.d.ts +6 -24
- package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
- package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/dist/Sculpt/Meshes/Line.d.ts +9 -22
- package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
- package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -1
- package/dist/Sculpt/Objects/Base/index.d.ts +2 -1
- package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
- package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +12 -0
- package/dist/Sculpt/index.d.ts +11 -10
- package/dist/Sculpt/typings/style.d.ts +6 -0
- package/dist/Sculpt/utils/export.d.ts +24 -18
- package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/dist/index.cjs.js +88 -3009
- package/dist/index.d.ts +79 -1
- package/dist/index.js +35153 -54255
- package/dist/index.umd.js +81 -3002
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/dist/shared-utils/five/FiveLine.d.ts +18 -14
- package/dist/shared-utils/index.d.ts +0 -1
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/tag.d.ts +5 -7
- package/dist/shared-utils/three/boundingBox.d.ts +14 -20
- package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
- package/dist/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/AreaMakerPlugin/Controller.js +47 -100
- package/libs/AreaMakerPlugin/index.js +12 -65
- package/libs/AreaMakerPlugin/utils/Item.js +102 -157
- package/libs/CSS3DRenderPlugin/Controller.js +45 -93
- package/libs/CSS3DRenderPlugin/index.js +15 -63
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
- package/libs/CruisePlugin/BaseController.js +90 -143
- package/libs/CruisePlugin/Move.js +39 -83
- package/libs/CruisePlugin/Work.js +52 -96
- package/libs/CruisePlugin/index.js +23 -67
- package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
- package/libs/CurrentPanoImagePlugin/index.js +11 -64
- package/libs/GuideLinePlugin/Controller.js +13 -57
- package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
- package/libs/GuideLinePlugin/index.js +23 -67
- package/libs/ModelMakerPlugin/Controller.js +125 -165
- package/libs/ModelMakerPlugin/index.js +23 -63
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
- package/libs/ModelTVVideoPlugin/index.js +8 -56
- package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/libs/Object3DHelperPlugin/Controller.js +105 -92
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
- package/libs/Object3DHelperPlugin/index.js +15 -30
- package/libs/PanoCompassPlugin/Controller.js +46 -93
- package/libs/PanoCompassPlugin/index.js +17 -64
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
- package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
- package/libs/PanoDoorLabelPlugin/index.js +11 -64
- package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
- package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/area.js +25 -74
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
- package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
- package/libs/PanoMeasurePlugin/index.js +18 -64
- package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
- package/libs/PanoMeasurePlugin/utils/line.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +34 -89
- package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
- package/libs/PanoRulerProPlugin/index.js +10 -65
- package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
- package/libs/PanoSpatialTagPlugin/index.js +6 -54
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
- package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
- package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
- package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
- package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
- package/libs/PanoTagPlugin/controller/index.js +37 -81
- package/libs/PanoTagPlugin/index.js +28 -72
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
- package/libs/PanoVideoPlugin/Controller.js +43 -96
- package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
- package/libs/PanoVideoPlugin/index.js +14 -67
- package/libs/PipelinePlugin/Controller.js +123 -176
- package/libs/PipelinePlugin/index.js +11 -64
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
- package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
- package/libs/Sculpt/Meshes/Box.d.ts +6 -24
- package/libs/Sculpt/Meshes/Box.js +22 -93
- package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
- package/libs/Sculpt/Meshes/Circle.js +18 -27
- package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/libs/Sculpt/Meshes/Cylinder.js +17 -24
- package/libs/Sculpt/Meshes/Line.d.ts +9 -22
- package/libs/Sculpt/Meshes/Line.js +85 -104
- package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
- package/libs/Sculpt/Meshes/Point.js +29 -34
- package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/libs/Sculpt/Meshes/Polygon.js +40 -53
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
- package/libs/Sculpt/Meshes/Prism.js +108 -84
- package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +7 -10
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +2 -1
- package/libs/Sculpt/Objects/Base/index.js +16 -17
- package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
- package/libs/Sculpt/Objects/Box/index.js +72 -60
- package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Circle/index.js +34 -30
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +46 -42
- package/libs/Sculpt/Objects/Line/Editor.js +8 -10
- package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Line/index.js +45 -41
- package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Point/index.js +33 -29
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polygon/index.js +67 -63
- package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polyline/index.js +46 -42
- package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Prism/index.js +58 -53
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +12 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +142 -81
- package/libs/Sculpt/index.d.ts +11 -10
- package/libs/Sculpt/index.js +105 -107
- package/libs/Sculpt/typings/style.d.ts +6 -0
- package/libs/Sculpt/utils/export.d.ts +24 -18
- package/libs/Sculpt/utils/export.js +52 -19
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
- package/libs/base/BasePlugin.js +10 -15
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
- package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/index.js +0 -5
- package/libs/index.d.ts +79 -1
- package/libs/index.js +229 -215
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
- package/libs/shared-utils/five/FiveDomEvents.js +88 -88
- package/libs/shared-utils/five/FiveLine.d.ts +18 -14
- package/libs/shared-utils/five/FiveLine.js +31 -13
- package/libs/shared-utils/five/index.js +2 -7
- package/libs/shared-utils/five/lookObject.js +27 -32
- package/libs/shared-utils/index.d.ts +0 -1
- package/libs/shared-utils/index.js +31 -33
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/tag.d.ts +5 -7
- package/libs/shared-utils/tag.js +1 -1
- package/libs/shared-utils/three/boundingBox.d.ts +14 -20
- package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/libs/shared-utils/three/core/LineGeometry.js +26 -0
- package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
- package/libs/shared-utils/three/earcut3D.js +5 -5
- package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
- package/libs/shared-utils/three/geometryUtil.js +3 -1
- package/libs/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/shared-utils/three/getNormal.js +6 -5
- package/libs/shared-utils/three/index.js +0 -5
- package/package.json +1 -1
- package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Box/Editor.js +0 -44
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
- package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/utils/getBetterNormal.js +0 -8
- package/libs/vendor/three/build/three.module.js +0 -19336
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as qr } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as zr } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Br, DimensionType as Er, PointType as Hr } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -95,80 +95,25 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
95
95
|
import "../shared-utils/three/centerPoint.js";
|
|
96
96
|
import "../shared-utils/three/getObjectVisible.js";
|
|
97
97
|
import "@realsee/five/line";
|
|
98
|
-
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
99
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
100
|
-
import "../vendor/three/build/three.module.js";
|
|
101
98
|
import "../shared-utils/three/core/Sphere.js";
|
|
102
99
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
103
|
-
import "../
|
|
104
|
-
import "../shared-utils/
|
|
105
|
-
import "../shared-utils/three/earcut3D.js";
|
|
106
|
-
import "earcut";
|
|
107
|
-
import "../shared-utils/three/getNormal.js";
|
|
108
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
109
|
-
import "../Sculpt/typings/style.js";
|
|
110
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
111
|
-
import "../shared-utils/three/IObject3D.js";
|
|
112
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
113
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
114
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
115
|
-
import "../base/BasePlugin.js";
|
|
116
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
117
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
118
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
120
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
121
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
122
|
-
import "../shared-utils/three/boundingBox.js";
|
|
123
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
124
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
125
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
126
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
127
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
100
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
101
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
128
102
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
129
103
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
130
104
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
131
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
132
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
133
|
-
import "../shared-utils/util.js";
|
|
134
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
135
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
136
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
137
105
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
138
106
|
import "../Sculpt/Meshes/Line.js";
|
|
107
|
+
import "../Sculpt/typings/style.js";
|
|
139
108
|
import "../shared-utils/five/FiveLine.js";
|
|
109
|
+
import "../shared-utils/three/IObject3D.js";
|
|
140
110
|
import "../Sculpt/utils/removeAllTag.js";
|
|
141
111
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
142
112
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
113
|
+
import "../shared-utils/util.js";
|
|
114
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
143
115
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
144
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
145
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
146
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
147
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
148
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
149
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
150
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
151
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
152
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
153
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
154
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
155
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
156
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
157
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
158
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
159
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
160
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
161
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
162
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
163
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
164
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
165
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
166
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
167
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
168
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
169
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
170
116
|
import "../shared-utils/isTouchDevice.js";
|
|
171
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
172
117
|
import "../shared-utils/five/getPosition.js";
|
|
173
118
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
174
119
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -198,6 +143,7 @@ import "../shared-utils/three/loadVideoTexture.js";
|
|
|
198
143
|
import "../shared-utils/device.js";
|
|
199
144
|
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
200
145
|
import "../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
146
|
+
import "../shared-utils/three/getNormal.js";
|
|
201
147
|
import "./controller/Tag/BaseTag.js";
|
|
202
148
|
import "./utils/tag/calculateTagConfig.js";
|
|
203
149
|
import "../shared-utils/typescript/entries.js";
|
|
@@ -220,6 +166,16 @@ import "./utils/normalPositionToPositions.js";
|
|
|
220
166
|
import "../vendor/svelte/store/index.js";
|
|
221
167
|
import "../CSS3DRenderPlugin/index.js";
|
|
222
168
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
169
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
170
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
171
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
172
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
173
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
174
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
175
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
176
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
177
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
178
|
+
import "../base/BasePlugin.js";
|
|
223
179
|
import "../shared-utils/animationFrame/index.js";
|
|
224
180
|
import "./utils/DebugUtil.js";
|
|
225
181
|
import "./utils/addDebugPoints.js";
|
|
@@ -229,14 +185,14 @@ import "./Components/TagContainer.js";
|
|
|
229
185
|
import "./Components/TagItem.js";
|
|
230
186
|
import "./Components/Common/TagPoint.js";
|
|
231
187
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
232
|
-
const
|
|
188
|
+
const hr = (o, t) => new r(o, t);
|
|
233
189
|
export {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
190
|
+
Br as ContentType,
|
|
191
|
+
Er as DimensionType,
|
|
192
|
+
hr as PanoTagPlugin,
|
|
237
193
|
r as PanoTagPluginController,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
194
|
+
Hr as PointType,
|
|
195
|
+
hr as default,
|
|
196
|
+
zr as defaultGlobalConfig,
|
|
197
|
+
qr as pluginFlag
|
|
242
198
|
};
|
|
@@ -22,10 +22,10 @@ import { Vector3 as w } from "three";
|
|
|
22
22
|
import { centerPoint as b } from "../../../shared-utils/three/centerPoint.js";
|
|
23
23
|
import { loadPicture as x } from "../../../shared-utils/three/loadTexture.js";
|
|
24
24
|
import { QuadrangleGeometry as H, QuadrangleMesh as P } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
|
-
import { getVideoTexture as
|
|
26
|
-
import { Image_Play_Icon_With_Text as
|
|
25
|
+
import { getVideoTexture as S } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
+
import { Image_Play_Icon_With_Text as V, Image_Play_Icon as T } from "../../Assets/Icon.js";
|
|
27
27
|
import { getPositionsByObjectFit as g } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
|
-
import { FragmentTransparencyMaterial as
|
|
28
|
+
import { FragmentTransparencyMaterial as L } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
29
|
import { getNormal as E } from "../../../shared-utils/three/getNormal.js";
|
|
30
30
|
import "../../../shared-utils/math/pointsIsRectangle.js";
|
|
31
31
|
import "../../../shared-utils/device.js";
|
|
@@ -59,7 +59,7 @@ class $ extends C {
|
|
|
59
59
|
const n = (o = t == null ? void 0 : t.resolveZFighting) != null ? o : !0;
|
|
60
60
|
let a = i;
|
|
61
61
|
if (n) {
|
|
62
|
-
const s = E(i
|
|
62
|
+
const s = E(i).multiplyScalar(5e-4);
|
|
63
63
|
a = i.map((u) => u.clone().add(s));
|
|
64
64
|
}
|
|
65
65
|
x(e).then(({ texture: s, transparent: u }) => {
|
|
@@ -68,8 +68,8 @@ class $ extends C {
|
|
|
68
68
|
(p = t == null ? void 0 : t.objectFit) != null ? p : "contain",
|
|
69
69
|
a,
|
|
70
70
|
s.image.width / s.image.height
|
|
71
|
-
),
|
|
72
|
-
this.position.copy(
|
|
71
|
+
), m = b(...d), l = d.map((y) => y.clone().sub(m)), f = new H(l);
|
|
72
|
+
this.position.copy(m), this.geometry = f, this.material = M;
|
|
73
73
|
}).catch((s) => {
|
|
74
74
|
console.error(`Imageplane error ${s == null ? void 0 : s.message}`);
|
|
75
75
|
});
|
|
@@ -103,13 +103,13 @@ class q extends C {
|
|
|
103
103
|
r(this, "buttonMesh");
|
|
104
104
|
r(this, "videoTextureMap");
|
|
105
105
|
r(this, "ImageTextureMap");
|
|
106
|
-
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => o === "withText" ?
|
|
106
|
+
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => o === "withText" ? V : o === "withoutText" ? T : typeof o == "string" ? o : T)(), this.videoCoverSrc = n, this.objectFit = a, this.videoTextureMap = u, this.ImageTextureMap = M, this.domEvents = d, this.position.copy(b(...i)), this.videoCoverSrc && s ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
107
107
|
s ? this.addButtonMesh() : this.play(!0);
|
|
108
108
|
}), this.addEventListener("removed", () => {
|
|
109
109
|
this.remove(...this.children);
|
|
110
110
|
}), this.addEventListener("dispose", () => {
|
|
111
|
-
var
|
|
112
|
-
(
|
|
111
|
+
var m;
|
|
112
|
+
(m = this.disposers) == null || m.forEach((l) => l == null ? void 0 : l());
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
play(e = !1) {
|
|
@@ -196,10 +196,10 @@ class q extends C {
|
|
|
196
196
|
if (this.children.includes(this.buttonMesh))
|
|
197
197
|
return;
|
|
198
198
|
const e = yield (() => v(this, null, function* () {
|
|
199
|
-
var
|
|
199
|
+
var l, f, p, y;
|
|
200
200
|
if (this.buttonMesh)
|
|
201
201
|
return this.buttonMesh;
|
|
202
|
-
const i = (f = (
|
|
202
|
+
const i = (f = (l = this.videoMesh) == null ? void 0 : l.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, t = (y = (p = this.coverMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? y : 1 / 0, n = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), o = Math.min(i, t, n) / n * 0.3, { texture: s, transparent: u } = yield this.getImageTexture(this.buttonSrc), M = g("contain", this.cornerPoints, s.image.width / s.image.height), d = new P(M, new L(s));
|
|
203
203
|
d.position.copy(new w(0, 0, 0)), d.name = "buttonMesh", d.scale.set(o, o, o), this.domEvents.addAutoBindEventListener(
|
|
204
204
|
d,
|
|
205
205
|
"click",
|
|
@@ -208,8 +208,8 @@ class q extends C {
|
|
|
208
208
|
},
|
|
209
209
|
{ noEmitWhenHide: !0 }
|
|
210
210
|
);
|
|
211
|
-
const
|
|
212
|
-
return d.position.add(
|
|
211
|
+
const m = E(M).multiplyScalar(5e-4);
|
|
212
|
+
return d.position.add(m), d;
|
|
213
213
|
}))();
|
|
214
214
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
215
215
|
});
|
|
@@ -227,7 +227,7 @@ class q extends C {
|
|
|
227
227
|
var t, n;
|
|
228
228
|
if ((t = this.videoTextureMap) != null && t.has(e))
|
|
229
229
|
return this.videoTextureMap.get(e);
|
|
230
|
-
const i =
|
|
230
|
+
const i = S(e);
|
|
231
231
|
return (n = this.videoTextureMap) == null || n.set(e, i), i;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
@@ -22,14 +22,9 @@ import "hammerjs";
|
|
|
22
22
|
import "../../../shared-utils/three/PointSelector/index.js";
|
|
23
23
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
24
24
|
import "@realsee/five/line";
|
|
25
|
-
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
26
25
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
27
26
|
import "animejs";
|
|
28
27
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
|
-
import "../../../Sculpt/Meshes/Polygon.js";
|
|
30
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
31
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
32
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
33
28
|
import "../../../shared-utils/positionToVector3.js";
|
|
34
29
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
35
30
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -67,63 +62,13 @@ import "../../../Sculpt/utils/removeAllTag.js";
|
|
|
67
62
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
68
63
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
69
64
|
import "../../../shared-utils/util.js";
|
|
65
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
70
66
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
71
67
|
import "../../../shared-utils/isTouchDevice.js";
|
|
72
68
|
import "../../../shared-utils/five/getPosition.js";
|
|
73
69
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
74
70
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
75
|
-
|
|
76
|
-
import "../../../vendor/three/build/three.module.js";
|
|
77
|
-
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
78
|
-
import "../../../shared-utils/three/earcut3D.js";
|
|
79
|
-
import "earcut";
|
|
80
|
-
import "../../../shared-utils/three/getNormal.js";
|
|
81
|
-
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
82
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
83
|
-
import "../../../shared-utils/three/geometryUtil.js";
|
|
84
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
85
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
86
|
-
import "../../../base/BasePlugin.js";
|
|
87
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
88
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
89
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
90
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
91
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
92
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
93
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
94
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
95
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
96
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
97
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
98
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
99
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
100
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
101
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
102
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
103
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
104
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
105
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
106
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
107
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
108
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
109
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
110
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
111
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
112
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
113
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
114
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
115
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
116
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
117
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
118
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
119
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
120
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
121
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
122
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
123
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
124
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
125
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
126
|
-
function it(o, i, t) {
|
|
71
|
+
function oi(o, i, t) {
|
|
127
72
|
var v, b, j, C, A;
|
|
128
73
|
const D = (v = t == null ? void 0 : t.useCache) != null ? v : !0;
|
|
129
74
|
if (!o)
|
|
@@ -135,39 +80,39 @@ function it(o, i, t) {
|
|
|
135
80
|
return o.config;
|
|
136
81
|
}
|
|
137
82
|
const k = {}, d = {}, y = {};
|
|
138
|
-
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([
|
|
83
|
+
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([r, n]) => {
|
|
139
84
|
var O, W;
|
|
140
|
-
const
|
|
141
|
-
if (!s[
|
|
142
|
-
if (
|
|
143
|
-
const [
|
|
144
|
-
(o.contentType ===
|
|
85
|
+
const e = r, a = e.split("-"), g = r.startsWith("["), c = g ? a[0].slice(1, -1) : void 0, m = g ? a.slice(1) : a, s = c ? ["PanoramaLike", "ModelLike"].includes(c) ? (O = d[c]) != null ? O : d[c] = {} : (W = y[c]) != null ? W : y[c] = {} : k;
|
|
86
|
+
if (!s[e]) {
|
|
87
|
+
if (m.length === 0 && (s[e] = n), m.length === 1) {
|
|
88
|
+
const [p] = m;
|
|
89
|
+
(o.contentType === p || p === "Any") && (s[e] = n);
|
|
145
90
|
}
|
|
146
|
-
if (
|
|
147
|
-
const [
|
|
148
|
-
|
|
91
|
+
if (m.length === 2) {
|
|
92
|
+
const [p = "Any", u = "Any"] = m;
|
|
93
|
+
p === "Mixin" && o.contentType === u && (s[e] = n), (o.stickType === p || p === "Any") && (o.contentType === u || u === "Any") && (s[e] = n);
|
|
149
94
|
}
|
|
150
|
-
if (
|
|
151
|
-
const [
|
|
95
|
+
if (m.length === 3) {
|
|
96
|
+
const [p = "Any", u, w] = m;
|
|
152
97
|
if (u === "Audio" && o.contentType === "Audio") {
|
|
153
98
|
const L = o;
|
|
154
|
-
(L.stickType ===
|
|
99
|
+
(L.stickType === p || p === "Any") && L.data.appearance === w && (s[e] = n);
|
|
155
100
|
}
|
|
156
101
|
}
|
|
157
102
|
}
|
|
158
103
|
});
|
|
159
104
|
const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), f = {}, q = Object.values(Q.Mode);
|
|
160
|
-
I(d).forEach(([
|
|
161
|
-
q.forEach((
|
|
162
|
-
(
|
|
105
|
+
I(d).forEach(([r, n]) => {
|
|
106
|
+
q.forEach((e) => {
|
|
107
|
+
(r === "PanoramaLike" && R(e) || r === "ModelLike" && S(e)) && (f[e] = l({}, M, ...Object.values(n), h, { _isMerged: !0 }));
|
|
163
108
|
});
|
|
164
|
-
}), I(y).forEach(([
|
|
165
|
-
const
|
|
166
|
-
f[
|
|
109
|
+
}), I(y).forEach(([r, n]) => {
|
|
110
|
+
const e = f[r];
|
|
111
|
+
f[r] = l({}, M, e, ...Object.values(n), h, { _isMerged: !0 });
|
|
167
112
|
});
|
|
168
113
|
const T = _(F({}, G), { configWithFiveMode: f });
|
|
169
|
-
return P(T), Object.values(f).forEach((
|
|
114
|
+
return P(T), Object.values(f).forEach((r) => P(r)), T._isMerged = !0, T;
|
|
170
115
|
}
|
|
171
116
|
export {
|
|
172
|
-
|
|
117
|
+
oi as calculateTagConfig
|
|
173
118
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var g = Object.defineProperty, f = Object.defineProperties;
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var h = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var l = (o, i, r) => i in o ? g(o, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[i] = r, a = (o, i) => {
|
|
6
6
|
for (var r in i || (i = {}))
|
|
7
|
-
M.call(i, r) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
W.call(i, r) &&
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
import { VideoMeshController as
|
|
7
|
+
M.call(i, r) && l(o, r, i[r]);
|
|
8
|
+
if (h)
|
|
9
|
+
for (var r of h(i))
|
|
10
|
+
W.call(i, r) && l(o, r, i[r]);
|
|
11
|
+
return o;
|
|
12
|
+
}, p = (o, i) => f(o, b(i));
|
|
13
|
+
var s = (o, i, r) => (l(o, typeof i != "symbol" ? i + "" : i, r), r);
|
|
14
|
+
import { VideoMeshController as m } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
17
17
|
import "../shared-utils/tag.js";
|
|
@@ -42,93 +42,40 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
42
42
|
import "../shared-utils/three/centerPoint.js";
|
|
43
43
|
import "../shared-utils/three/getObjectVisible.js";
|
|
44
44
|
import "@realsee/five/line";
|
|
45
|
-
import "../
|
|
46
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
47
|
-
import "../vendor/three/build/three.module.js";
|
|
45
|
+
import "../shared-utils/isNil.js";
|
|
48
46
|
import "../shared-utils/three/core/Sphere.js";
|
|
49
47
|
import "animejs";
|
|
50
|
-
import "../shared-utils/isNil.js";
|
|
51
48
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
|
-
import "../
|
|
53
|
-
import "../shared-utils/
|
|
54
|
-
import "../shared-utils/three/earcut3D.js";
|
|
55
|
-
import "earcut";
|
|
56
|
-
import "../shared-utils/three/getNormal.js";
|
|
57
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
58
|
-
import "../Sculpt/typings/style.js";
|
|
59
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
60
|
-
import "../shared-utils/three/IObject3D.js";
|
|
61
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
62
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
63
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
64
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
65
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
66
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
67
|
-
import "../shared-utils/three/boundingBox.js";
|
|
68
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
69
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
70
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
71
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
72
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
49
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
50
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
73
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
74
52
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
75
53
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
76
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
77
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
78
|
-
import "../shared-utils/util.js";
|
|
79
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
80
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
81
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
82
54
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
83
55
|
import "../Sculpt/Meshes/Line.js";
|
|
56
|
+
import "../Sculpt/typings/style.js";
|
|
84
57
|
import "../shared-utils/five/FiveLine.js";
|
|
58
|
+
import "../shared-utils/three/IObject3D.js";
|
|
85
59
|
import "../Sculpt/utils/removeAllTag.js";
|
|
86
60
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
87
61
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
88
|
-
import "../
|
|
89
|
-
import "../
|
|
62
|
+
import "../shared-utils/util.js";
|
|
63
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
90
64
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
91
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
92
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
93
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
94
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
95
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
96
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
97
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
98
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
99
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
100
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
102
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
103
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
105
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
106
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
107
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
108
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
109
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
110
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
111
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
112
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
113
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
114
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
115
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
116
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
117
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
118
65
|
import "../shared-utils/isTouchDevice.js";
|
|
119
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
120
66
|
import "../shared-utils/five/getPosition.js";
|
|
121
67
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
122
68
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
123
69
|
import "../shared-utils/animationFrame/index.js";
|
|
124
70
|
import "./utils/index.js";
|
|
125
|
-
|
|
71
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
72
|
+
class Cr extends _ {
|
|
126
73
|
constructor(r) {
|
|
127
74
|
super(r);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
75
|
+
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
76
|
+
s(this, "data");
|
|
77
|
+
s(this, "enabled", !0);
|
|
78
|
+
s(this, "_disposed", !1);
|
|
132
79
|
}
|
|
133
80
|
/** 插件 State */
|
|
134
81
|
get state() {
|
|
@@ -142,15 +89,15 @@ class Et extends _ {
|
|
|
142
89
|
}
|
|
143
90
|
/** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
|
|
144
91
|
load(r, t) {
|
|
145
|
-
var
|
|
92
|
+
var e;
|
|
146
93
|
if (this.disposed)
|
|
147
94
|
return this.logWarning("插件已被销毁");
|
|
148
|
-
typeof ((
|
|
149
|
-
const c =
|
|
150
|
-
|
|
95
|
+
typeof ((e = t == null ? void 0 : t.initialState) == null ? void 0 : e.enabled) != "undefined" && t.initialState.enabled !== this.enabled && (t.initialState.enabled ? this.enable() : this.disable()), r.list.forEach((n) => {
|
|
96
|
+
const c = n.pano_index, u = n.render_id;
|
|
97
|
+
n.video_list.forEach((d) => {
|
|
151
98
|
this.controllerMap.set(
|
|
152
|
-
|
|
153
|
-
new
|
|
99
|
+
d.render_id,
|
|
100
|
+
new m(this.five, p(a({}, d), {
|
|
154
101
|
panoIndex: c,
|
|
155
102
|
renderID: u,
|
|
156
103
|
hooks: this.hooks,
|
|
@@ -162,24 +109,24 @@ class Et extends _ {
|
|
|
162
109
|
}
|
|
163
110
|
/** 开启插件功能。 */
|
|
164
111
|
enable(r) {
|
|
165
|
-
var
|
|
112
|
+
var e;
|
|
166
113
|
if (this.disposed)
|
|
167
114
|
return this.logWarning("插件已被销毁");
|
|
168
115
|
if (this.enabled)
|
|
169
116
|
return;
|
|
170
|
-
this.enabled = !0, Array.from(this.controllerMap.values()).forEach((
|
|
171
|
-
const t = (
|
|
117
|
+
this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
|
|
118
|
+
const t = (e = r == null ? void 0 : r.userAction) != null ? e : !0;
|
|
172
119
|
this.hooks.emit("enable", { userAction: t });
|
|
173
120
|
}
|
|
174
121
|
/** 禁用插件功能。 */
|
|
175
122
|
disable(r) {
|
|
176
|
-
var
|
|
123
|
+
var e;
|
|
177
124
|
if (this.disposed)
|
|
178
125
|
return this.logWarning("插件已被销毁");
|
|
179
126
|
if (!this.enabled)
|
|
180
127
|
return;
|
|
181
|
-
this.enabled = !1, Array.from(this.controllerMap.values()).forEach((
|
|
182
|
-
const t = (
|
|
128
|
+
this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
|
|
129
|
+
const t = (e = r == null ? void 0 : r.userAction) != null ? e : !0;
|
|
183
130
|
this.hooks.emit("disable", { userAction: t });
|
|
184
131
|
}
|
|
185
132
|
/** 看向某个视频。
|
|
@@ -222,15 +169,15 @@ class Et extends _ {
|
|
|
222
169
|
add(r, t) {
|
|
223
170
|
if (this.disposed)
|
|
224
171
|
return this.logWarning("插件已被销毁");
|
|
225
|
-
t.forEach((
|
|
226
|
-
if (this.controllerMap.get(
|
|
227
|
-
return this.logWarning(`ID 为 ${
|
|
228
|
-
const
|
|
172
|
+
t.forEach((e) => {
|
|
173
|
+
if (this.controllerMap.get(e.render_id))
|
|
174
|
+
return this.logWarning(`ID 为 ${e.render_id} 的点位视频已存在`);
|
|
175
|
+
const n = e.render_id;
|
|
229
176
|
this.controllerMap.set(
|
|
230
|
-
|
|
231
|
-
new
|
|
177
|
+
e.render_id,
|
|
178
|
+
new m(this.five, p(a({}, e), {
|
|
232
179
|
panoIndex: r,
|
|
233
|
-
renderID:
|
|
180
|
+
renderID: n,
|
|
234
181
|
hooks: this.hooks,
|
|
235
182
|
initialState: { enabled: this.enabled }
|
|
236
183
|
}))
|
|
@@ -265,5 +212,5 @@ class Et extends _ {
|
|
|
265
212
|
}
|
|
266
213
|
}
|
|
267
214
|
export {
|
|
268
|
-
|
|
215
|
+
Cr as PanoVideoPluginController
|
|
269
216
|
};
|