@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
|
@@ -99,79 +99,24 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
99
99
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
100
100
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
101
101
|
import "@realsee/five/line";
|
|
102
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
103
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
104
|
-
import "../../vendor/three/build/three.module.js";
|
|
105
102
|
import "../../shared-utils/three/core/Sphere.js";
|
|
106
103
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
107
|
-
import "../../
|
|
108
|
-
import "../../shared-utils/
|
|
109
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
110
|
-
import "earcut";
|
|
111
|
-
import "../../shared-utils/three/getNormal.js";
|
|
112
|
-
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
113
|
-
import "../../Sculpt/typings/style.js";
|
|
114
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
115
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
116
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
117
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
118
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
119
|
-
import "../../base/BasePlugin.js";
|
|
120
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
121
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
122
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
123
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
124
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
125
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
126
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
127
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
128
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
129
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
130
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
131
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
104
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
105
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
132
106
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
133
107
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
134
108
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
135
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
136
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
137
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
138
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
139
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
140
109
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
141
110
|
import "../../Sculpt/Meshes/Line.js";
|
|
111
|
+
import "../../Sculpt/typings/style.js";
|
|
142
112
|
import "../../shared-utils/five/FiveLine.js";
|
|
113
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
143
114
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
144
115
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
145
116
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
117
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
146
118
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
147
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
148
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
149
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
150
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
151
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
152
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
153
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
154
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
155
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
156
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
157
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
158
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
159
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
160
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
161
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
162
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
163
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
164
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
165
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
166
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
167
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
168
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
169
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
170
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
171
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
172
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
173
119
|
import "../../shared-utils/isTouchDevice.js";
|
|
174
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
175
120
|
import "../../shared-utils/five/getPosition.js";
|
|
176
121
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
177
122
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -202,6 +147,7 @@ import "../../shared-utils/three/loadVideoTexture.js";
|
|
|
202
147
|
import "../../shared-utils/device.js";
|
|
203
148
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
204
149
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
150
|
+
import "../../shared-utils/three/getNormal.js";
|
|
205
151
|
import "./Tag/BaseTag.js";
|
|
206
152
|
import "../utils/tag/calculateTagConfig.js";
|
|
207
153
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -226,7 +172,17 @@ import "../utils/normalPositionToPositions.js";
|
|
|
226
172
|
import "../../vendor/svelte/store/index.js";
|
|
227
173
|
import "../../CSS3DRenderPlugin/index.js";
|
|
228
174
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
229
|
-
|
|
175
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
176
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
177
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
178
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
179
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
180
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
181
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
182
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
183
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
184
|
+
import "../../base/BasePlugin.js";
|
|
185
|
+
class Kr extends N {
|
|
230
186
|
constructor(t) {
|
|
231
187
|
super(t);
|
|
232
188
|
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -363,5 +319,5 @@ class $i extends N {
|
|
|
363
319
|
}
|
|
364
320
|
}
|
|
365
321
|
export {
|
|
366
|
-
|
|
322
|
+
Kr as TagRender
|
|
367
323
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
|
-
var c = (
|
|
3
|
-
var
|
|
2
|
+
var c = (m, n, e) => n in m ? d(m, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[n] = e;
|
|
3
|
+
var r = (m, n, e) => (c(m, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
4
|
import { DefaultConfig as l } from "../tag.config.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.js";
|
|
@@ -51,73 +51,27 @@ import "../../Sculpt/Meshes/Line.js";
|
|
|
51
51
|
import "../../Sculpt/typings/style.js";
|
|
52
52
|
import "../../shared-utils/five/FiveLine.js";
|
|
53
53
|
import "@realsee/five/line";
|
|
54
|
-
import "../../
|
|
55
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
56
|
-
import "../../vendor/three/build/three.module.js";
|
|
54
|
+
import "../../shared-utils/isNil.js";
|
|
57
55
|
import "../../shared-utils/three/IObject3D.js";
|
|
58
56
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
59
57
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
60
58
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
61
59
|
import "../../shared-utils/util.js";
|
|
60
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
62
61
|
import "../../shared-utils/three/core/Sphere.js";
|
|
63
62
|
import "animejs";
|
|
64
|
-
import "../../shared-utils/isNil.js";
|
|
65
63
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
66
|
-
import "../../Sculpt/Meshes/Polygon.js";
|
|
67
|
-
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
68
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
69
|
-
import "earcut";
|
|
70
|
-
import "../../shared-utils/three/getNormal.js";
|
|
71
|
-
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
72
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
73
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
74
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
75
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
76
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
77
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
78
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
79
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
80
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
81
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
82
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
83
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
84
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
85
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
86
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
87
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
88
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
89
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
90
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
91
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
92
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
93
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
94
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
95
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
96
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
97
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
98
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
99
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
100
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
101
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
102
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
103
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
104
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
105
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
106
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
107
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
108
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
109
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
110
|
-
import "../../shared-utils/isTouchDevice.js";
|
|
111
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
112
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
113
64
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
65
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
114
66
|
import "../../shared-utils/five/getPosition.js";
|
|
115
67
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
116
68
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
117
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
118
69
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
119
70
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
120
71
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
72
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
73
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
74
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
121
75
|
import "../../shared-utils/three/loadTexture.js";
|
|
122
76
|
import "../../shared-utils/three/Quadrangle.js";
|
|
123
77
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -125,125 +79,127 @@ import "../../shared-utils/three/loadVideoTexture.js";
|
|
|
125
79
|
import "../Assets/Icon.js";
|
|
126
80
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
127
81
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
e
|
|
133
|
-
|
|
134
|
-
|
|
82
|
+
import "../../shared-utils/three/getNormal.js";
|
|
83
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
84
|
+
class Ne extends E {
|
|
85
|
+
constructor(e) {
|
|
86
|
+
super(e);
|
|
87
|
+
r(this, "tags", []);
|
|
88
|
+
r(this, "cache", new v());
|
|
89
|
+
r(this, "config", l);
|
|
90
|
+
r(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
135
91
|
/** 插件参数 */
|
|
136
|
-
|
|
137
|
-
|
|
92
|
+
r(this, "params");
|
|
93
|
+
r(this, "mediaStore", P({
|
|
138
94
|
currentMediaElement: null
|
|
139
95
|
}));
|
|
140
|
-
|
|
96
|
+
r(this, "store", {
|
|
141
97
|
disposers: [],
|
|
142
98
|
disposed: !1,
|
|
143
99
|
resizeObserverDisposerAdding: !1,
|
|
144
100
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
145
101
|
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
return
|
|
102
|
+
r(this, "domEvents", new y(this.five));
|
|
103
|
+
r(this, "_cache_pointTag");
|
|
104
|
+
r(this, "_cache_2DPointTag");
|
|
105
|
+
r(this, "_cache_css3DTag");
|
|
106
|
+
r(this, "_container", null);
|
|
107
|
+
r(this, "_css3DRenderPlugin");
|
|
108
|
+
r(this, "whyHide", (e) => {
|
|
109
|
+
const t = this.getTagById(e);
|
|
110
|
+
return t ? t.whyHide() : { reason: `tag ${e} not found` };
|
|
155
111
|
});
|
|
156
|
-
|
|
112
|
+
r(this, "loadVideoFirstFrame", () => {
|
|
157
113
|
T && this.hooks.emit("loadVideoFirstFrame");
|
|
158
114
|
});
|
|
159
|
-
this.mediaStore.subscribe(({ currentMediaElement:
|
|
160
|
-
this.tags.forEach((
|
|
115
|
+
this.mediaStore.subscribe(({ currentMediaElement: t }) => {
|
|
116
|
+
this.tags.forEach((i) => {
|
|
161
117
|
var o;
|
|
162
|
-
if (
|
|
163
|
-
if (!((o =
|
|
118
|
+
if (i.mediaPlane instanceof _ && t !== i.mediaPlane.videoInstance) {
|
|
119
|
+
if (!((o = i.mediaPlane.videoInstance) != null && o.src) || t === i.mediaPlane.videoInstance)
|
|
164
120
|
return;
|
|
165
|
-
|
|
121
|
+
i.mediaPlane.pause();
|
|
166
122
|
}
|
|
167
123
|
});
|
|
168
124
|
});
|
|
169
125
|
}
|
|
170
126
|
get container() {
|
|
171
|
-
var
|
|
172
|
-
return this._container || ((
|
|
127
|
+
var e;
|
|
128
|
+
return this._container || ((e = this.five.getElement()) == null ? void 0 : e.parentElement);
|
|
173
129
|
}
|
|
174
|
-
set container(
|
|
175
|
-
this._container =
|
|
130
|
+
set container(e) {
|
|
131
|
+
this._container = e;
|
|
176
132
|
}
|
|
177
133
|
// eslint-disable-next-line accessor-pairs
|
|
178
|
-
set tagsLengthWillUpdate(
|
|
179
|
-
|
|
180
|
-
(
|
|
181
|
-
).filter((
|
|
182
|
-
const
|
|
183
|
-
return
|
|
134
|
+
set tagsLengthWillUpdate(e) {
|
|
135
|
+
e && (this._cache_pointTag = this.tags.filter((t) => t.stickType === "2DPoint" || t.stickType === "3DPoint").filter((t) => t.position), this._cache_2DPointTag = this.tags.filter((t) => t.stickType === "2DPoint").filter((t) => t.position), this._cache_css3DTag = this.tags.filter(
|
|
136
|
+
(t) => t.stickType === "3DPoint" || t.stickType === "Plane" || t.stickType === "Model" && t.contentType === "MediaModel"
|
|
137
|
+
).filter((t) => {
|
|
138
|
+
const i = t.computeRenderType();
|
|
139
|
+
return i === "BehindDom" || i === "Dom";
|
|
184
140
|
}));
|
|
185
141
|
}
|
|
186
142
|
/** css3DRenderPlugin */
|
|
187
143
|
get css3DRenderPlugin() {
|
|
188
|
-
var t, i
|
|
144
|
+
var e, t, i;
|
|
189
145
|
if (!this._css3DRenderPlugin) {
|
|
190
146
|
const o = D(this.five);
|
|
191
|
-
this._css3DRenderPlugin = o, (
|
|
147
|
+
this._css3DRenderPlugin = o, (e = o.frontModeCSS3DRenderer) != null && e.domElementWrapper && (o.frontModeCSS3DRenderer.domElementWrapper.style.zIndex = (i = (t = this.params.containerZIndex) == null ? void 0 : t.toString()) != null ? i : "");
|
|
192
148
|
}
|
|
193
149
|
return this._css3DRenderPlugin;
|
|
194
150
|
}
|
|
195
151
|
get filterPointTag() {
|
|
196
|
-
var
|
|
197
|
-
return (
|
|
152
|
+
var e;
|
|
153
|
+
return (e = this._cache_pointTag) != null ? e : [];
|
|
198
154
|
}
|
|
199
155
|
get filter2DPointTag() {
|
|
200
|
-
var
|
|
201
|
-
return (
|
|
156
|
+
var e;
|
|
157
|
+
return (e = this._cache_2DPointTag) != null ? e : [];
|
|
202
158
|
}
|
|
203
159
|
get filterCSS3DTag() {
|
|
204
|
-
var
|
|
205
|
-
return (
|
|
160
|
+
var e;
|
|
161
|
+
return (e = this._cache_css3DTag) != null ? e : [];
|
|
206
162
|
}
|
|
207
|
-
addRenderQueue(
|
|
208
|
-
var
|
|
209
|
-
const { type:
|
|
210
|
-
this.renderQueue.has(
|
|
211
|
-
keys: Array.from(/* @__PURE__ */ new Set([...(
|
|
212
|
-
tags: Array.from(/* @__PURE__ */ new Set([...(
|
|
213
|
-
}) : this.renderQueue.set(
|
|
163
|
+
addRenderQueue(e) {
|
|
164
|
+
var p, s;
|
|
165
|
+
const { type: t, keys: i = [], tags: o = [] } = e;
|
|
166
|
+
this.renderQueue.has(t) ? this.renderQueue.set(t, {
|
|
167
|
+
keys: Array.from(/* @__PURE__ */ new Set([...(p = this.renderQueue.get(t).keys) != null ? p : [], ...i])),
|
|
168
|
+
tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(t).tags) != null ? s : [], ...o]))
|
|
169
|
+
}) : this.renderQueue.set(t, { keys: i, tags: o });
|
|
214
170
|
}
|
|
215
|
-
getTagById(
|
|
216
|
-
const
|
|
217
|
-
if (!
|
|
218
|
-
console.warn(`getTagById Error: can't find tag id: ${
|
|
171
|
+
getTagById(e) {
|
|
172
|
+
const t = this.tags.find((i) => i.id === e);
|
|
173
|
+
if (!t) {
|
|
174
|
+
console.warn(`getTagById Error: can't find tag id: ${e}`);
|
|
219
175
|
return;
|
|
220
176
|
}
|
|
221
|
-
return
|
|
177
|
+
return t;
|
|
222
178
|
}
|
|
223
179
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
224
180
|
pauseCurrentMedia() {
|
|
225
181
|
this.mediaStore.set({ currentMediaElement: null });
|
|
226
182
|
}
|
|
227
|
-
getPositions(
|
|
228
|
-
if (u(
|
|
229
|
-
return
|
|
230
|
-
if (f(
|
|
231
|
-
return
|
|
232
|
-
if (h(
|
|
233
|
-
return g(this.five.camera.position, a(
|
|
183
|
+
getPositions(e) {
|
|
184
|
+
if (u(e))
|
|
185
|
+
return e.position;
|
|
186
|
+
if (f(e))
|
|
187
|
+
return e.data.mediaPosition;
|
|
188
|
+
if (h(e))
|
|
189
|
+
return g(this.five.camera.position, a(e.position), a(e.normal));
|
|
234
190
|
}
|
|
235
|
-
addObjectClickHandler(t, i
|
|
236
|
-
if (!
|
|
191
|
+
addObjectClickHandler(e, t, i) {
|
|
192
|
+
if (!t || !this.domEvents)
|
|
237
193
|
return () => {
|
|
238
194
|
};
|
|
239
|
-
const o = () => !(!
|
|
195
|
+
const o = () => !(!e.currentVisible || e.loading), p = (s) => {
|
|
240
196
|
if (!o())
|
|
241
197
|
return !1;
|
|
242
|
-
|
|
198
|
+
i(s.origDomEvent);
|
|
243
199
|
};
|
|
244
|
-
return this.domEvents.addEventListener(
|
|
245
|
-
var
|
|
246
|
-
(
|
|
200
|
+
return this.domEvents.addEventListener(t, "click", p), () => {
|
|
201
|
+
var s;
|
|
202
|
+
(s = this.domEvents) == null || s.removeEventListener(t, "click", p);
|
|
247
203
|
};
|
|
248
204
|
}
|
|
249
205
|
/**
|
|
@@ -255,5 +211,5 @@ class Oi extends E {
|
|
|
255
211
|
}
|
|
256
212
|
}
|
|
257
213
|
export {
|
|
258
|
-
|
|
214
|
+
Ne as TagUtil
|
|
259
215
|
};
|
|
@@ -2,16 +2,16 @@ var S = Object.defineProperty, D = Object.defineProperties;
|
|
|
2
2
|
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var y = Object.getOwnPropertySymbols;
|
|
4
4
|
var U = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (
|
|
5
|
+
var u = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, m = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
U.call(a, e) && u(
|
|
7
|
+
U.call(a, e) && u(d, e, a[e]);
|
|
8
8
|
if (y)
|
|
9
9
|
for (var e of y(a))
|
|
10
|
-
E.call(a, e) && u(
|
|
11
|
-
return
|
|
12
|
-
}, c = (
|
|
13
|
-
var
|
|
14
|
-
var l = (
|
|
10
|
+
E.call(a, e) && u(d, e, a[e]);
|
|
11
|
+
return d;
|
|
12
|
+
}, c = (d, a) => D(d, P(a));
|
|
13
|
+
var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var l = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var o = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -25,7 +25,7 @@ var l = (p, a, e) => new Promise((t, i) => {
|
|
|
25
25
|
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(o, s);
|
|
28
|
-
n((e = e.apply(
|
|
28
|
+
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
31
|
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -43,15 +43,10 @@ import "hammerjs";
|
|
|
43
43
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
44
44
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
45
45
|
import "@realsee/five/line";
|
|
46
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
47
46
|
import "../../shared-utils/three/core/Sphere.js";
|
|
48
47
|
import "animejs";
|
|
49
48
|
import { waitFiveModelLoaded as G } from "../../shared-utils/five/fiveModelLoad.js";
|
|
50
49
|
import { nextFrame as N } from "../../shared-utils/animationFrame/index.js";
|
|
51
|
-
import "../../Sculpt/Meshes/Polygon.js";
|
|
52
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
53
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
54
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
55
50
|
import { DebugUtil as V } from "../utils/DebugUtil.js";
|
|
56
51
|
import { safeObj as T } from "../../shared-utils/safeObj.js";
|
|
57
52
|
import { PointTag as z } from "./Tag/PointTag.js";
|
|
@@ -151,61 +146,12 @@ import "../../Sculpt/utils/removeAllTag.js";
|
|
|
151
146
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
152
147
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
153
148
|
import "../../shared-utils/util.js";
|
|
149
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
154
150
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
155
151
|
import "../../shared-utils/isTouchDevice.js";
|
|
156
152
|
import "../../shared-utils/five/getPosition.js";
|
|
157
153
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
158
154
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
159
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
160
|
-
import "../../vendor/three/build/three.module.js";
|
|
161
|
-
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
162
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
163
|
-
import "earcut";
|
|
164
|
-
import "../../shared-utils/three/getNormal.js";
|
|
165
|
-
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
166
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
167
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
168
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
169
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
170
|
-
import "../../base/BasePlugin.js";
|
|
171
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
172
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
173
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
174
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
175
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
176
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
177
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
178
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
179
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
180
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
181
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
182
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
183
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
184
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
185
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
186
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
187
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
188
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
189
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
190
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
191
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
192
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
193
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
194
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
195
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
196
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
197
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
198
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
199
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
200
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
201
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
202
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
203
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
204
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
205
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
206
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
207
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
208
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
209
155
|
import "../utils/noTypecheck.js";
|
|
210
156
|
import "../Components/Tag/AudioTag/index.js";
|
|
211
157
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -231,6 +177,7 @@ import "../../shared-utils/three/loadVideoTexture.js";
|
|
|
231
177
|
import "../../shared-utils/device.js";
|
|
232
178
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
233
179
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
180
|
+
import "../../shared-utils/three/getNormal.js";
|
|
234
181
|
import "./Tag/BaseTag.js";
|
|
235
182
|
import "../utils/tag/calculateTagConfig.js";
|
|
236
183
|
import "../../shared-utils/typescript/entries.js";
|
|
@@ -252,24 +199,33 @@ import "../utils/normalPositionToPositions.js";
|
|
|
252
199
|
import "../../vendor/svelte/store/index.js";
|
|
253
200
|
import "../../CSS3DRenderPlugin/index.js";
|
|
254
201
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
202
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
203
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
204
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
205
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
206
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
207
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
208
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
209
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
210
|
+
import "../../base/BasePlugin.js";
|
|
255
211
|
import "../utils/addDebugPoints.js";
|
|
256
212
|
import "../Components/TagItem.js";
|
|
257
213
|
import "../Components/Common/TagPoint.js";
|
|
258
|
-
const C = "Dnalogel-PanoTagPlugin",
|
|
259
|
-
class
|
|
214
|
+
const C = "Dnalogel-PanoTagPlugin", uo = (d) => `${C}--${d}`;
|
|
215
|
+
class vo extends B {
|
|
260
216
|
constructor(e, t) {
|
|
261
217
|
super(e);
|
|
262
218
|
/** state */
|
|
263
|
-
|
|
219
|
+
p(this, "state", { enabled: !0, visible: !0 });
|
|
264
220
|
/** debug */
|
|
265
|
-
|
|
266
|
-
|
|
221
|
+
p(this, "debug");
|
|
222
|
+
p(this, "debugUtil", new V(this));
|
|
267
223
|
/** 更改 tag 模型 */
|
|
268
|
-
|
|
224
|
+
p(this, "changeTagModel", (e, t) => l(this, null, function* () {
|
|
269
225
|
var i;
|
|
270
226
|
e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
271
227
|
}));
|
|
272
|
-
|
|
228
|
+
p(this, "handleFiveModeChange", (e) => {
|
|
273
229
|
const t = () => {
|
|
274
230
|
this.tags.forEach((i) => {
|
|
275
231
|
i.state.visible = !1, i.applyVisible(), this.five.ready().then(() => {
|
|
@@ -279,7 +235,7 @@ class ar extends B {
|
|
|
279
235
|
};
|
|
280
236
|
this.tags.length < 500 ? t() : this.five.ready().then(() => t());
|
|
281
237
|
});
|
|
282
|
-
|
|
238
|
+
p(this, "handleFiveWantsMoveToPano", (e) => {
|
|
283
239
|
if (this.tags.length > 500) {
|
|
284
240
|
this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] });
|
|
285
241
|
return;
|
|
@@ -290,18 +246,18 @@ class ar extends B {
|
|
|
290
246
|
typeof o.visibleConfig == "object" && t.temporaryState && (o.visibleConfig.keep ? t.temporaryState.visible = o.visibleConfig.keep === "visible" : t.temporaryState.visible = !!o.visibleConfig.alwaysShowWhenMovePano);
|
|
291
247
|
}), this.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.tags.forEach((t) => t.applyVisible());
|
|
292
248
|
});
|
|
293
|
-
|
|
249
|
+
p(this, "clickhandler", (e) => {
|
|
294
250
|
e.tag.onClick(e);
|
|
295
251
|
});
|
|
296
|
-
|
|
252
|
+
p(this, "handleFiveCameraUpdate", () => {
|
|
297
253
|
this.filterPointTag.forEach((e) => e.updateScreenPosition());
|
|
298
254
|
});
|
|
299
|
-
|
|
255
|
+
p(this, "handleFiveCameraFovUpdate", () => {
|
|
300
256
|
this.handleFiveCameraUpdate(), this.five.off("render.prepare", this.handleFiveCameraUpdate), this.five.on("render.prepare", this.handleFiveCameraUpdate), setTimeout(() => {
|
|
301
257
|
this.five.off("render.prepare", this.handleFiveCameraUpdate);
|
|
302
258
|
}, 1e3);
|
|
303
259
|
});
|
|
304
|
-
|
|
260
|
+
p(this, "handleFivePanoArrived", () => l(this, null, function* () {
|
|
305
261
|
this.tags.forEach((e) => {
|
|
306
262
|
e.state.visible = !1, e.temporaryState = c(m({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
|
|
307
263
|
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
|
|
@@ -322,13 +278,13 @@ class ar extends B {
|
|
|
322
278
|
});
|
|
323
279
|
}));
|
|
324
280
|
/** 楼层切换时,需要更新标签可见性 */
|
|
325
|
-
|
|
281
|
+
p(this, "handleFiveModelShownFloorChange", () => {
|
|
326
282
|
this.tags.forEach((e) => e.updateVisible());
|
|
327
283
|
});
|
|
328
|
-
|
|
284
|
+
p(this, "onFiveEveryReady", () => {
|
|
329
285
|
this.setUnfoldedByCamera(), O(this.five.getCurrentState().mode) && this.tags.forEach((e) => e.updateVisible());
|
|
330
286
|
});
|
|
331
|
-
|
|
287
|
+
p(this, "render", () => {
|
|
332
288
|
this.renderQueue.forEach((e, t) => {
|
|
333
289
|
const { keys: i } = e;
|
|
334
290
|
if (t === "TagContainerSvelte") {
|
|
@@ -672,7 +628,7 @@ class ar extends B {
|
|
|
672
628
|
}
|
|
673
629
|
}
|
|
674
630
|
export {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
631
|
+
vo as PanoTagPluginController,
|
|
632
|
+
vo as default,
|
|
633
|
+
uo as pluginFlag
|
|
678
634
|
};
|