@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
|
var f = Object.defineProperty;
|
|
2
|
-
var b = (
|
|
3
|
-
var l = (
|
|
4
|
-
var d = (
|
|
2
|
+
var b = (p, e, i) => e in p ? f(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i;
|
|
3
|
+
var l = (p, e, i) => (b(p, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
var d = (p, e, i) => new Promise((m, o) => {
|
|
5
5
|
var s = (t) => {
|
|
6
6
|
try {
|
|
7
7
|
r(i.next(t));
|
|
@@ -14,8 +14,8 @@ var d = (e, m, i) => new Promise((p, o) => {
|
|
|
14
14
|
} catch (n) {
|
|
15
15
|
o(n);
|
|
16
16
|
}
|
|
17
|
-
}, r = (t) => t.done ?
|
|
18
|
-
r((i = i.apply(
|
|
17
|
+
}, r = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(s, a);
|
|
18
|
+
r((i = i.apply(p, e)).next());
|
|
19
19
|
});
|
|
20
20
|
import { arrayPositionToVector3 as h } from "../../../shared-utils/positionToVector3.js";
|
|
21
21
|
import { loadGLTF as j } from "../../../shared-utils/three/GLTFLoader.js";
|
|
@@ -67,81 +67,27 @@ import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
|
67
67
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
68
68
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
69
69
|
import "@realsee/five/line";
|
|
70
|
-
import "../../../
|
|
71
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
72
|
-
import "../../../vendor/three/build/three.module.js";
|
|
70
|
+
import "../../../shared-utils/isNil.js";
|
|
73
71
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
74
72
|
import "animejs";
|
|
75
|
-
import "../../../shared-utils/isNil.js";
|
|
76
73
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
77
|
-
import "../../../
|
|
78
|
-
import "../../../shared-utils/
|
|
79
|
-
import "../../../shared-utils/three/earcut3D.js";
|
|
80
|
-
import "earcut";
|
|
81
|
-
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
82
|
-
import "../../../Sculpt/typings/style.js";
|
|
83
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
84
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
85
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
86
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
87
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
88
|
-
import "../../../base/BasePlugin.js";
|
|
89
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
90
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
91
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
92
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
93
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
94
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
95
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
96
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
97
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
98
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
99
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
100
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
74
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
75
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
101
76
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
102
77
|
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
103
78
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
104
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
105
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
106
|
-
import "../../../shared-utils/util.js";
|
|
107
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
108
|
-
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
109
|
-
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
110
79
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
111
80
|
import "../../../Sculpt/Meshes/Line.js";
|
|
81
|
+
import "../../../Sculpt/typings/style.js";
|
|
112
82
|
import "../../../shared-utils/five/FiveLine.js";
|
|
83
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
113
84
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
114
85
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
115
86
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
87
|
+
import "../../../shared-utils/util.js";
|
|
88
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
116
89
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
117
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
118
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
119
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
120
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
121
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
122
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
123
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
124
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
125
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
126
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
127
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
128
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
129
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
130
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
131
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
132
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
133
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
134
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
135
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
136
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
137
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
138
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
139
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
140
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
141
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
142
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
143
90
|
import "../../../shared-utils/isTouchDevice.js";
|
|
144
|
-
import "../../../shared-utils/three/geometryUtil.js";
|
|
145
91
|
import "../../../shared-utils/five/getPosition.js";
|
|
146
92
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
147
93
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -157,9 +103,9 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
157
103
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
158
104
|
import "../../../shared-utils/safeObj.js";
|
|
159
105
|
import "../../utils/Cache.js";
|
|
160
|
-
class
|
|
161
|
-
constructor(i,
|
|
162
|
-
super(i,
|
|
106
|
+
class ii extends D {
|
|
107
|
+
constructor(i, m) {
|
|
108
|
+
super(i, m);
|
|
163
109
|
l(this, "loading", !1);
|
|
164
110
|
/** 加载外部模型 */
|
|
165
111
|
l(this, "loadModel", () => d(this, null, function* () {
|
|
@@ -168,7 +114,7 @@ class io extends D {
|
|
|
168
114
|
if (!i)
|
|
169
115
|
return;
|
|
170
116
|
this.loading = !0;
|
|
171
|
-
const
|
|
117
|
+
const m = j(i).then((r) => d(this, null, function* () {
|
|
172
118
|
var c;
|
|
173
119
|
const t = Object.assign(r.scene, {
|
|
174
120
|
customID: this.id,
|
|
@@ -180,9 +126,9 @@ class io extends D {
|
|
|
180
126
|
});
|
|
181
127
|
return t.visible = this.currentVisible, new u.Matrix4().fromArray(this.matrix).decompose(t.position, t.quaternion, t.scale), t.updateWorldMatrix(!0, !0), t.visible = yield this.getVisible(), (c = this.getConfig().modelConfig) != null && c.autoLookAtEnabled && t.lookAt(this.five.camera.position.clone().setY(t.position.y)), t;
|
|
182
128
|
}));
|
|
183
|
-
this.model = { promise:
|
|
184
|
-
const o = yield
|
|
185
|
-
if (this.loading = !1, ((a = this.model) == null ? void 0 : a.promise) !==
|
|
129
|
+
this.model = { promise: m };
|
|
130
|
+
const o = yield m;
|
|
131
|
+
if (this.loading = !1, ((a = this.model) == null ? void 0 : a.promise) !== m || !this.plugin.tags.includes(this))
|
|
186
132
|
return;
|
|
187
133
|
this.model.object = o;
|
|
188
134
|
const s = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
|
|
@@ -202,13 +148,13 @@ class io extends D {
|
|
|
202
148
|
this.state.unfolded = !0;
|
|
203
149
|
}
|
|
204
150
|
applyVisible() {
|
|
205
|
-
var i,
|
|
206
|
-
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (
|
|
151
|
+
var i, m, o;
|
|
152
|
+
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (m = this.tag3DContentSvelte) == null || m.svelteApp.$set({ tag: this, state: this.plugin.state }), (o = this.tag3DContentSvelte) == null || o.css3DInstance.setVisible(this.currentVisible);
|
|
207
153
|
}
|
|
208
154
|
computeNormal() {
|
|
209
155
|
return v(this.data.mediaPosition);
|
|
210
156
|
}
|
|
211
157
|
}
|
|
212
158
|
export {
|
|
213
|
-
|
|
159
|
+
ii as ModelTag
|
|
214
160
|
};
|
|
@@ -45,81 +45,27 @@ import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
|
45
45
|
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
46
46
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
47
47
|
import "@realsee/five/line";
|
|
48
|
-
import "../../../
|
|
49
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
50
|
-
import "../../../vendor/three/build/three.module.js";
|
|
48
|
+
import "../../../shared-utils/isNil.js";
|
|
51
49
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
52
50
|
import "animejs";
|
|
53
|
-
import "../../../shared-utils/isNil.js";
|
|
54
51
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
55
|
-
import "../../../
|
|
56
|
-
import "../../../shared-utils/
|
|
57
|
-
import "../../../shared-utils/three/earcut3D.js";
|
|
58
|
-
import "earcut";
|
|
59
|
-
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
60
|
-
import "../../../Sculpt/typings/style.js";
|
|
61
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
62
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
63
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
64
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
65
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
66
|
-
import "../../../base/BasePlugin.js";
|
|
67
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
68
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
69
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
70
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
71
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
72
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
73
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
74
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
75
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
76
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
77
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
78
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
52
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
53
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
79
54
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
80
55
|
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
81
56
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
82
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
83
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
84
|
-
import "../../../shared-utils/util.js";
|
|
85
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
86
|
-
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
87
|
-
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
88
57
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
89
58
|
import "../../../Sculpt/Meshes/Line.js";
|
|
59
|
+
import "../../../Sculpt/typings/style.js";
|
|
90
60
|
import "../../../shared-utils/five/FiveLine.js";
|
|
61
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
91
62
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
92
63
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
93
64
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
65
|
+
import "../../../shared-utils/util.js";
|
|
66
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
94
67
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
95
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
96
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
97
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
98
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
99
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
100
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
101
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
102
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
103
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
104
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
105
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
106
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
107
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
108
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
109
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
110
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
111
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
112
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
113
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
114
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
115
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
116
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
117
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
118
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
119
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
120
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
121
68
|
import "../../../shared-utils/isTouchDevice.js";
|
|
122
|
-
import "../../../shared-utils/three/geometryUtil.js";
|
|
123
69
|
import "../../../shared-utils/five/getPosition.js";
|
|
124
70
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
125
71
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -137,54 +83,54 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
137
83
|
import "../../../shared-utils/safeObj.js";
|
|
138
84
|
import "../../utils/Cache.js";
|
|
139
85
|
const P = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
140
|
-
class
|
|
141
|
-
constructor(
|
|
142
|
-
super(
|
|
86
|
+
class Qt extends f {
|
|
87
|
+
constructor(e, t) {
|
|
88
|
+
super(e, t), this.state.unfolded = !0;
|
|
143
89
|
}
|
|
144
90
|
applyVisible() {
|
|
145
|
-
var t, r, o,
|
|
146
|
-
this.computeRenderType() === "Mesh" ? ((r = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((
|
|
91
|
+
var t, r, o, n, a, i;
|
|
92
|
+
this.computeRenderType() === "Mesh" ? ((r = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((n = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : n.type) === "Image" && this.renderImagePlane() : (this.tag3DContentSvelte || this.plugin.updateRender3DDomTag(), (a = this.tag3DContentSvelte) == null || a.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
|
|
147
93
|
}
|
|
148
94
|
renderVideoPlane() {
|
|
149
|
-
var
|
|
150
|
-
const
|
|
151
|
-
if (!
|
|
95
|
+
var i;
|
|
96
|
+
const e = this.data.mediaData[0];
|
|
97
|
+
if (!e)
|
|
152
98
|
return;
|
|
153
|
-
const { url: t } =
|
|
99
|
+
const { url: t } = e;
|
|
154
100
|
if (!t)
|
|
155
101
|
return;
|
|
156
|
-
const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(),
|
|
157
|
-
if ((o ||
|
|
158
|
-
const
|
|
159
|
-
videoCoverSrc:
|
|
102
|
+
const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(), n = (() => !!(!this.mediaPlane && r))(), a = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
103
|
+
if ((o || a) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), n || a) {
|
|
104
|
+
const p = this.position.map(d), m = new u(t, p, {
|
|
105
|
+
videoCoverSrc: e.videoCoverUrl,
|
|
160
106
|
playButton: this.data.playIcon,
|
|
161
|
-
paused: !((
|
|
107
|
+
paused: !((i = this.data.autoplayConfig) != null && i.autoplayVideo),
|
|
162
108
|
objectFit: this.data.objectFit,
|
|
163
109
|
videoTextureMap: P,
|
|
164
110
|
ImageTextureMap: g,
|
|
165
111
|
domEvents: this.plugin.domEvents
|
|
166
112
|
});
|
|
167
|
-
|
|
168
|
-
|
|
113
|
+
m.onVideoReady = (s) => {
|
|
114
|
+
s.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: m.videoInstance }));
|
|
169
115
|
};
|
|
170
|
-
const l = (
|
|
171
|
-
|
|
116
|
+
const l = (s) => (this.five.on("renderFrame", s), () => this.five.off("renderFrame", s));
|
|
117
|
+
m.initialRenderHooks(l), this.mediaPlane = m, this.play = () => m.play(), this.pause = () => m.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
172
118
|
}
|
|
173
119
|
this.five.needsRender = !0;
|
|
174
120
|
}
|
|
175
121
|
renderImagePlane() {
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
122
|
+
const e = this.data.mediaData[0];
|
|
123
|
+
if (!e)
|
|
178
124
|
return;
|
|
179
|
-
const { url: t } =
|
|
125
|
+
const { url: t } = e;
|
|
180
126
|
if (!t)
|
|
181
127
|
return;
|
|
182
|
-
const r = this.position.map(d), o = this.currentVisible,
|
|
183
|
-
(
|
|
128
|
+
const r = this.position.map(d), o = this.currentVisible, n = (() => !!(this.mediaPlane && !o))(), a = (() => !!(!this.mediaPlane && o))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
129
|
+
(n || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (a || i) && (this.mediaPlane = new c(t, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
|
|
184
130
|
this.mediaPlane,
|
|
185
131
|
"click",
|
|
186
|
-
(
|
|
187
|
-
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event:
|
|
132
|
+
(p) => {
|
|
133
|
+
this.plugin.hooks.emit("click", { tag: this, target: "TagContent", event: p.origDomEvent });
|
|
188
134
|
},
|
|
189
135
|
{ noEmitWhenHide: !0 }
|
|
190
136
|
), this.plugin.imagePlaneGroup.add(this.mediaPlane)), this.five.needsRender = !0;
|
|
@@ -194,5 +140,5 @@ class Qi extends f {
|
|
|
194
140
|
}
|
|
195
141
|
}
|
|
196
142
|
export {
|
|
197
|
-
|
|
143
|
+
Qt as PlaneTag
|
|
198
144
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var h = (
|
|
3
|
-
var
|
|
2
|
+
var h = (r, s, t) => s in r ? f(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
|
|
3
|
+
var l = (r, s, t) => (h(r, typeof s != "symbol" ? s + "" : s, t), t);
|
|
4
4
|
import { BaseTag as g } from "./BaseTag.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as m from "three";
|
|
6
6
|
import "../../../shared-utils/Subscribe.js";
|
|
7
7
|
import "../../utils/tag/calculateTagConfig.js";
|
|
8
8
|
import "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -37,82 +37,27 @@ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
37
37
|
import "../../../shared-utils/three/centerPoint.js";
|
|
38
38
|
import "../../../shared-utils/three/getObjectVisible.js";
|
|
39
39
|
import "@realsee/five/line";
|
|
40
|
-
import "../../../
|
|
41
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
42
|
-
import "../../../vendor/three/build/three.module.js";
|
|
40
|
+
import "../../../shared-utils/isNil.js";
|
|
43
41
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
44
42
|
import "animejs";
|
|
45
|
-
import "../../../shared-utils/isNil.js";
|
|
46
43
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
47
|
-
import "../../../
|
|
48
|
-
import "../../../shared-utils/
|
|
49
|
-
import "../../../shared-utils/three/earcut3D.js";
|
|
50
|
-
import "earcut";
|
|
51
|
-
import "../../../shared-utils/three/getNormal.js";
|
|
52
|
-
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
53
|
-
import "../../../Sculpt/typings/style.js";
|
|
54
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
55
|
-
import "../../../shared-utils/three/IObject3D.js";
|
|
56
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
57
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
58
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
59
|
-
import "../../../base/BasePlugin.js";
|
|
60
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
61
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
62
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
63
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
64
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
65
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
66
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
67
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
68
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
69
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
70
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
71
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
44
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
45
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
72
46
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
73
47
|
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
74
48
|
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
75
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
76
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
77
|
-
import "../../../shared-utils/util.js";
|
|
78
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
79
|
-
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
80
|
-
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
81
49
|
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
82
50
|
import "../../../Sculpt/Meshes/Line.js";
|
|
51
|
+
import "../../../Sculpt/typings/style.js";
|
|
83
52
|
import "../../../shared-utils/five/FiveLine.js";
|
|
53
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
84
54
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
85
55
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
86
56
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
|
+
import "../../../shared-utils/util.js";
|
|
58
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
87
59
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
88
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
89
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
90
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
91
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
92
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
93
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
94
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
95
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
96
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
97
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
98
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
99
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
100
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
101
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
102
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
103
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
104
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
105
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
106
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
107
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
108
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
109
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
110
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
111
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
112
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
113
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
114
60
|
import "../../../shared-utils/isTouchDevice.js";
|
|
115
|
-
import "../../../shared-utils/three/geometryUtil.js";
|
|
116
61
|
import "../../../shared-utils/five/getPosition.js";
|
|
117
62
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
118
63
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -129,19 +74,19 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
129
74
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
130
75
|
import "../../../shared-utils/safeObj.js";
|
|
131
76
|
import "../../utils/Cache.js";
|
|
132
|
-
const b = new
|
|
133
|
-
class
|
|
134
|
-
constructor(t,
|
|
135
|
-
super(t,
|
|
136
|
-
|
|
137
|
-
|
|
77
|
+
const b = new m.Vector2();
|
|
78
|
+
class Qt extends g {
|
|
79
|
+
constructor(t, e) {
|
|
80
|
+
super(t, e);
|
|
81
|
+
l(this, "__Object__");
|
|
82
|
+
l(this, "requestIdleCallbackId");
|
|
138
83
|
}
|
|
139
84
|
/**
|
|
140
85
|
* @description 展开自己,收起其他标签
|
|
141
86
|
*/
|
|
142
87
|
unfoldAndFoldOthers() {
|
|
143
|
-
const t = this.can("fold"),
|
|
144
|
-
t &&
|
|
88
|
+
const t = this.can("fold"), e = this.can("unfold");
|
|
89
|
+
t && e && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
145
90
|
o.id !== this.id && o.fold();
|
|
146
91
|
}));
|
|
147
92
|
}
|
|
@@ -158,16 +103,16 @@ class wi extends g {
|
|
|
158
103
|
super.updateVisible();
|
|
159
104
|
});
|
|
160
105
|
};
|
|
161
|
-
let
|
|
106
|
+
let e = !1;
|
|
162
107
|
requestIdleCallback(() => {
|
|
163
|
-
|
|
108
|
+
e = !0;
|
|
164
109
|
}), t(), setTimeout(() => {
|
|
165
|
-
|
|
110
|
+
e || (this.requestIdleCallbackId && cancelIdleCallback(this.requestIdleCallbackId), super.updateVisible());
|
|
166
111
|
}, 200);
|
|
167
112
|
}
|
|
168
113
|
applyVisible() {
|
|
169
|
-
var t,
|
|
170
|
-
this.currentVisible && this.updateScreenPosition(), (o = (
|
|
114
|
+
var t, e, o, i;
|
|
115
|
+
this.currentVisible && this.updateScreenPosition(), (o = (e = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : e.css3DObject) == null || o.setVisible(this.currentVisible), (i = this.tag3DContentSvelte) == null || i.svelteApp.$set({
|
|
171
116
|
state: this.plugin.state,
|
|
172
117
|
temporaryState: this.temporaryState
|
|
173
118
|
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -183,38 +128,38 @@ class wi extends g {
|
|
|
183
128
|
* @param {boolean} unfolded
|
|
184
129
|
*/
|
|
185
130
|
setUnfold(t) {
|
|
186
|
-
const
|
|
187
|
-
|
|
131
|
+
const e = this.can("fold"), o = this.can("unfold");
|
|
132
|
+
e && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
188
133
|
}
|
|
189
134
|
setPosition(t) {
|
|
190
135
|
this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
191
136
|
}
|
|
192
137
|
updateScreenPosition(t) {
|
|
193
|
-
var
|
|
138
|
+
var a;
|
|
194
139
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
195
140
|
return;
|
|
196
|
-
const { force:
|
|
141
|
+
const { force: e = !1 } = t != null ? t : {}, o = e ? this.state.visible : this.currentVisible, i = (a = this.__Object__) != null ? a : {
|
|
197
142
|
timeoutId: void 0,
|
|
198
143
|
inAnimation: !1
|
|
199
144
|
};
|
|
200
|
-
if (this.__Object__ =
|
|
145
|
+
if (this.__Object__ = i, !o && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
|
|
201
146
|
requestAnimationFrame(() => {
|
|
202
|
-
this.currentVisible || (
|
|
147
|
+
this.currentVisible || (i.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
203
148
|
});
|
|
204
|
-
}, 1e3)) :
|
|
149
|
+
}, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !o && !i.inAnimation)
|
|
205
150
|
return;
|
|
206
151
|
const n = this.computeTagProject();
|
|
207
152
|
if (n) {
|
|
208
|
-
const
|
|
153
|
+
const d = (() => {
|
|
209
154
|
if (!this.currentConfig.simulate3D)
|
|
210
155
|
return 1;
|
|
211
156
|
const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(void 0, 1);
|
|
212
157
|
return Math.max(Math.min(1 - u * c / 40, 1), 0.5);
|
|
213
|
-
})(),
|
|
158
|
+
})(), p = this.five.renderer.getSize(b);
|
|
214
159
|
this.screenPosition = {
|
|
215
|
-
leftPx: (n.x + 1) / 2 *
|
|
216
|
-
topPx: (-n.y + 1) / 2 *
|
|
217
|
-
scale:
|
|
160
|
+
leftPx: (n.x + 1) / 2 * p.x,
|
|
161
|
+
topPx: (-n.y + 1) / 2 * p.y,
|
|
162
|
+
scale: d
|
|
218
163
|
};
|
|
219
164
|
} else
|
|
220
165
|
this.screenPosition = null;
|
|
@@ -223,14 +168,14 @@ class wi extends g {
|
|
|
223
168
|
updateUnfoldedByPanoIndex() {
|
|
224
169
|
const t = this.getUnfoldedByPanoIndex();
|
|
225
170
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
226
|
-
const
|
|
227
|
-
typeof
|
|
171
|
+
const e = this.getConfig();
|
|
172
|
+
typeof e.unfoldedConfig == "object" && e.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
228
173
|
}
|
|
229
174
|
}
|
|
230
175
|
computeNormal() {
|
|
231
|
-
return new
|
|
176
|
+
return new m.Vector3().fromArray(this.normal);
|
|
232
177
|
}
|
|
233
178
|
}
|
|
234
179
|
export {
|
|
235
|
-
|
|
180
|
+
Qt as PointTag
|
|
236
181
|
};
|