@realsee/dnalogel 3.51.0 → 3.52.1
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 +15 -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 -5
- package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
- 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 +13 -2
- package/dist/Sculpt/index.d.ts +10 -19
- 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 +35141 -54254
- 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 -5
- package/libs/Sculpt/Meshes/Rectangle.js +12 -22
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Base/index.js +20 -25
- 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 +41 -37
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
- 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 +13 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
- package/libs/Sculpt/index.d.ts +10 -19
- 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
|
@@ -21,20 +21,20 @@ var j = (c, i) => {
|
|
|
21
21
|
};
|
|
22
22
|
var f = (c, i, e) => (M(c, typeof i != "symbol" ? i + "" : i, e), e);
|
|
23
23
|
var y = (c, i, e) => new Promise((t, r) => {
|
|
24
|
-
var
|
|
24
|
+
var n = (s) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
o(e.next(s));
|
|
27
27
|
} catch (d) {
|
|
28
28
|
r(d);
|
|
29
29
|
}
|
|
30
|
-
}, l = (
|
|
30
|
+
}, l = (s) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
o(e.throw(s));
|
|
33
33
|
} catch (d) {
|
|
34
34
|
r(d);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, o = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(n, l);
|
|
37
|
+
o((e = e.apply(c, i)).next());
|
|
38
38
|
});
|
|
39
39
|
import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
|
|
40
40
|
import { calculateTagConfig as w } from "../../utils/tag/calculateTagConfig.js";
|
|
@@ -47,21 +47,16 @@ import "../../../shared-utils/three/PointSelector/index.js";
|
|
|
47
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
48
|
import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
|
|
49
49
|
import "@realsee/five/line";
|
|
50
|
-
import "../../../
|
|
51
|
-
import { anyPositionToVector3 as
|
|
50
|
+
import { isNil as A, notNil as O } from "../../../shared-utils/isNil.js";
|
|
51
|
+
import { anyPositionToVector3 as R } from "../../../shared-utils/positionToVector3.js";
|
|
52
52
|
import { toArray as ie } from "../../../shared-utils/util.js";
|
|
53
53
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
54
|
-
import { blink as te, reblink as
|
|
55
|
-
import { vectorToCoordinates as
|
|
56
|
-
import { transformPosition as
|
|
57
|
-
import {
|
|
58
|
-
import { lookPoint as se } from "../../../shared-utils/five/lookPoint.js";
|
|
54
|
+
import { blink as te, reblink as ne } from "../../../shared-utils/three/blink.js";
|
|
55
|
+
import { vectorToCoordinates as se } from "../../../shared-utils/vectorToCoordinate.js";
|
|
56
|
+
import { transformPosition as E } from "../../../shared-utils/five/transformPosition.js";
|
|
57
|
+
import { lookPoint as oe } from "../../../shared-utils/five/lookPoint.js";
|
|
59
58
|
import { uuid as re } from "../../../shared-utils/uuid.js";
|
|
60
59
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
61
|
-
import "../../../Sculpt/Meshes/Polygon.js";
|
|
62
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
63
|
-
import "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
64
|
-
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
65
60
|
import { objectAssignDeepExports as b } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
66
61
|
import { getTagPosition as L, getTagCenterPosition as $ } from "../../utils/tagPosition.js";
|
|
67
62
|
import { checkRange as k } from "../../utils/checkRange.js";
|
|
@@ -106,64 +101,14 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
106
101
|
import "../../../Sculpt/utils/removeAllTag.js";
|
|
107
102
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
108
103
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
104
|
+
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
109
105
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
110
106
|
import "../../../shared-utils/isTouchDevice.js";
|
|
111
107
|
import "../../../shared-utils/five/getPosition.js";
|
|
112
108
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
113
109
|
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
114
|
-
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
115
|
-
import "../../../vendor/three/build/three.module.js";
|
|
116
|
-
import "../../../shared-utils/three/generatePolygonGeometry.js";
|
|
117
|
-
import "../../../shared-utils/three/earcut3D.js";
|
|
118
|
-
import "earcut";
|
|
119
|
-
import "../../../shared-utils/three/getNormal.js";
|
|
120
|
-
import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
121
|
-
import "../../../Sculpt/utils/three/ColoredMesh.js";
|
|
122
|
-
import "../../../shared-utils/three/geometryUtil.js";
|
|
123
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
124
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
125
|
-
import "../../../base/BasePlugin.js";
|
|
126
|
-
import "../../../shared-utils/url/absoluteUrl.js";
|
|
127
|
-
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
128
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
129
|
-
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
130
|
-
import "../../../shared-utils/three/boundingBox.js";
|
|
131
|
-
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
132
|
-
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
133
|
-
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
134
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
135
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
136
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
137
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
138
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
139
|
-
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
140
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
141
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
142
|
-
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
143
|
-
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
144
|
-
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
145
|
-
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
146
|
-
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
147
|
-
import "../../../shared-utils/threex/domevents/index.js";
|
|
148
|
-
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
149
|
-
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
150
|
-
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
151
|
-
import "../../../shared-utils/Object3DHelper/index.js";
|
|
152
|
-
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
153
|
-
import "../../../shared-utils/math/rad2Deg.js";
|
|
154
|
-
import "../../../shared-utils/math/deg2Rad.js";
|
|
155
|
-
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
156
|
-
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
157
|
-
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
158
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
159
|
-
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
160
|
-
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
161
|
-
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
162
|
-
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
163
|
-
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
164
|
-
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
165
110
|
import "../../../shared-utils/formatRad.js";
|
|
166
|
-
class
|
|
111
|
+
class Vi {
|
|
167
112
|
constructor(i, e) {
|
|
168
113
|
f(this, "plugin");
|
|
169
114
|
f(this, "id");
|
|
@@ -193,26 +138,26 @@ class Ft {
|
|
|
193
138
|
f(this, "computedConfig");
|
|
194
139
|
f(this, "cache");
|
|
195
140
|
f(this, "entryFromModel");
|
|
196
|
-
var
|
|
141
|
+
var s, d, h, u;
|
|
197
142
|
this.plugin = i;
|
|
198
143
|
const t = Y(e);
|
|
199
144
|
e.stickType = t;
|
|
200
|
-
const r = JSON.parse(JSON.stringify(e.data)),
|
|
201
|
-
e.initialConfig =
|
|
202
|
-
const l = w(e, i.config),
|
|
203
|
-
e.config =
|
|
145
|
+
const r = JSON.parse(JSON.stringify(e.data)), n = (s = e.initialConfig) != null ? s : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
|
|
146
|
+
e.initialConfig = n;
|
|
147
|
+
const l = w(e, i.config), o = this.getConfig(e);
|
|
148
|
+
e.config = o, this.id = (d = e.id) != null ? d : re(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.data = (u = o.initialData) != null && u.important ? b(e.data, r, o.initialData) : b(e.data, o.initialData, r), this.state = p({
|
|
204
149
|
visible: void 0,
|
|
205
150
|
unfolded: !this.can("fold")
|
|
206
|
-
},
|
|
151
|
+
}, o.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
207
152
|
const a = e.originPosition;
|
|
208
153
|
if (!a)
|
|
209
154
|
return;
|
|
210
155
|
const g = i.workUtil.transform;
|
|
211
|
-
return Array.isArray(a) && a.length === 4 ? a.map(
|
|
156
|
+
return Array.isArray(a) && a.length === 4 ? a.map(R).map((m) => E(m, g).toArray()) : E(R(a), g).toArray();
|
|
212
157
|
})(), this.matrix = e.matrix ? (() => {
|
|
213
158
|
const a = new B.Matrix4().fromArray(e.matrix);
|
|
214
159
|
return a.premultiply(i.workUtil.transform), a.elements;
|
|
215
|
-
})() : e.matrix, this.initialConfig =
|
|
160
|
+
})() : e.matrix, this.initialConfig = n, this.computedConfig = l, this.stickType = t, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new fe(), this.hooks = new Q(), Object.keys(e).forEach((a) => {
|
|
216
161
|
this[a] === void 0 && e[a] !== void 0 && (this[a] = e[a]);
|
|
217
162
|
});
|
|
218
163
|
}
|
|
@@ -230,9 +175,9 @@ class Ft {
|
|
|
230
175
|
return ee(...Array.isArray(i) ? i : [i]);
|
|
231
176
|
}
|
|
232
177
|
get currentConfig() {
|
|
233
|
-
var r,
|
|
178
|
+
var r, n;
|
|
234
179
|
const i = w(this, this.plugin.config, { useCache: !0 }), e = this.five.getCurrentState().mode, t = (r = i.configWithFiveMode) == null ? void 0 : r[e];
|
|
235
|
-
return (
|
|
180
|
+
return (n = t != null ? t : i) != null ? n : {};
|
|
236
181
|
}
|
|
237
182
|
get currentVisible() {
|
|
238
183
|
return !(!this.plugin.state.enabled || !this.plugin.state.visible || !this.enabled || !this.state.visible);
|
|
@@ -257,17 +202,17 @@ class Ft {
|
|
|
257
202
|
return;
|
|
258
203
|
const t = (r = i == null ? void 0 : i.targetMode) != null ? r : this.five.state.mode;
|
|
259
204
|
if (t === "Panorama") {
|
|
260
|
-
const
|
|
261
|
-
if (
|
|
205
|
+
const n = e == null ? void 0 : e.panoIndex;
|
|
206
|
+
if (A(n))
|
|
262
207
|
return;
|
|
263
|
-
const l = this.workUtil.getObserverPosition(
|
|
208
|
+
const l = this.workUtil.getObserverPosition(n), o = this.centerPosition.clone().sub(l).normalize();
|
|
264
209
|
this.five.setState(p({
|
|
265
210
|
mode: "Panorama",
|
|
266
211
|
workCode: this.workUtil.workCode,
|
|
267
|
-
panoIndex:
|
|
268
|
-
},
|
|
212
|
+
panoIndex: n
|
|
213
|
+
}, se(o))), yield this.five.ready();
|
|
269
214
|
} else
|
|
270
|
-
t === "Mapview" && (yield
|
|
215
|
+
t === "Mapview" && (yield oe(this.five, this.centerPosition, i == null ? void 0 : i.pointConfig));
|
|
271
216
|
});
|
|
272
217
|
}
|
|
273
218
|
/**
|
|
@@ -275,8 +220,8 @@ class Ft {
|
|
|
275
220
|
*/
|
|
276
221
|
blink(i) {
|
|
277
222
|
return y(this, null, function* () {
|
|
278
|
-
var
|
|
279
|
-
const e = (
|
|
223
|
+
var o, s, d, h;
|
|
224
|
+
const e = (o = this.enabled) != null ? o : !0, t = (s = this.state) == null ? void 0 : s.visible, r = e && t;
|
|
280
225
|
r === !1 && (this.state.visible = !0, this.enabled = !0, this.applyVisible(), this.plugin.render(), this.computeRenderType() !== "Mesh" ? yield new Promise((u) => y(this, null, function* () {
|
|
281
226
|
if (this.dom || this.contentDom) {
|
|
282
227
|
u();
|
|
@@ -294,16 +239,16 @@ class Ft {
|
|
|
294
239
|
this.mediaPlane && (u(), clearInterval(a));
|
|
295
240
|
}, 16.7);
|
|
296
241
|
}))), this.dom && (this.dom.style.visibility = "hidden"), this.contentDom && (this.contentDom.style.visibility = "hidden"));
|
|
297
|
-
const
|
|
242
|
+
const n = (() => {
|
|
298
243
|
var a;
|
|
299
244
|
const u = [];
|
|
300
245
|
return u.push(this.dom), this.stickType !== "2DPoint" && u.push(this.contentDom), u.push((a = this.model) == null ? void 0 : a.object), u.push(this.mediaPlane), u.filter(Boolean);
|
|
301
246
|
})();
|
|
302
|
-
if (!
|
|
247
|
+
if (!n.length) {
|
|
303
248
|
console.warn("tagDom is empty");
|
|
304
249
|
return;
|
|
305
250
|
}
|
|
306
|
-
yield (r ? te :
|
|
251
|
+
yield (r ? te : ne)(n, p({
|
|
307
252
|
begin: () => {
|
|
308
253
|
r === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
309
254
|
},
|
|
@@ -391,20 +336,20 @@ class Ft {
|
|
|
391
336
|
this.zIndex = Math.round((1e4 - (i != null ? i : 0)) * 100);
|
|
392
337
|
}
|
|
393
338
|
getConfig(i, e) {
|
|
394
|
-
var l,
|
|
395
|
-
const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode,
|
|
396
|
-
return (
|
|
339
|
+
var l, o, s;
|
|
340
|
+
const t = w(i != null ? i : this, this.plugin.config, { useCache: e == null ? void 0 : e.useCache }), r = (l = e == null ? void 0 : e.fiveMode) != null ? l : this.five.getCurrentState().mode, n = (o = t.configWithFiveMode) == null ? void 0 : o[r];
|
|
341
|
+
return (s = n != null ? n : t) != null ? s : {};
|
|
397
342
|
}
|
|
398
343
|
getDistance(i, e = 3) {
|
|
399
|
-
const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode:
|
|
400
|
-
return !l || !
|
|
344
|
+
const t = p(p({}, this.five.getCurrentState()), i), { panoIndex: r, mode: n } = t, l = n === "Panorama" ? this.workUtil.getObserverPosition(r) : this.five.camera.position, o = this.centerPosition;
|
|
345
|
+
return !l || !o ? -1 : l.distanceTo(o);
|
|
401
346
|
}
|
|
402
347
|
getVisible(i) {
|
|
403
348
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
404
349
|
return !1;
|
|
405
350
|
const e = p(p({}, this.five.getCurrentState()), i);
|
|
406
351
|
let t = this.cache.getVisible(this, e);
|
|
407
|
-
return
|
|
352
|
+
return A(t) && (t = this.computeVisible(e).value, this.cache.setVisible(this, e, t)), t;
|
|
408
353
|
}
|
|
409
354
|
getUnfoldedByPanoIndex(i) {
|
|
410
355
|
if (!this.currentVisible)
|
|
@@ -458,68 +403,68 @@ class Ft {
|
|
|
458
403
|
return i != null ? i : "Dom";
|
|
459
404
|
}
|
|
460
405
|
computeVisible(i) {
|
|
461
|
-
const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e,
|
|
406
|
+
const e = p(p({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = e, n = [];
|
|
462
407
|
return (() => {
|
|
463
408
|
var d, u, a;
|
|
464
|
-
const
|
|
465
|
-
if (typeof
|
|
409
|
+
const s = (d = this.getConfig().visibleConfig) != null ? d : {};
|
|
410
|
+
if (typeof s == "function")
|
|
466
411
|
return {
|
|
467
|
-
value:
|
|
468
|
-
checkedList:
|
|
412
|
+
value: s(this.five, { tag: this, distance: this.getDistance(e, void 0) }),
|
|
413
|
+
checkedList: n,
|
|
469
414
|
reason: "config function result"
|
|
470
415
|
};
|
|
471
416
|
{
|
|
472
|
-
if (
|
|
473
|
-
return { value: !1, checkedList:
|
|
474
|
-
if (
|
|
475
|
-
return { value: !0, checkedList:
|
|
476
|
-
const g = this.computeVisibleByFiveMode(
|
|
417
|
+
if (s.keep === "hidden")
|
|
418
|
+
return { value: !1, checkedList: n, reason: "config.keep is hidden" };
|
|
419
|
+
if (s.keep === "visible")
|
|
420
|
+
return { value: !0, checkedList: n, reason: "config.keep is visible" };
|
|
421
|
+
const g = this.computeVisibleByFiveMode(s, r);
|
|
477
422
|
if ((g == null ? void 0 : g.value) === !1)
|
|
478
423
|
return g;
|
|
479
|
-
if (
|
|
424
|
+
if (s.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (r === "Floorplan" || r === "Mapview")) {
|
|
480
425
|
const h = this.computeVisibleByFloorIndex(), { value: m } = h, v = j(h, ["value"]);
|
|
481
426
|
if (m === !1)
|
|
482
|
-
return p({ value: !1, checkedList:
|
|
427
|
+
return p({ value: !1, checkedList: n, reason: "followModelVisibility check failed" }, v);
|
|
483
428
|
}
|
|
484
|
-
if (U(r) &&
|
|
485
|
-
if (
|
|
429
|
+
if (U(r) && s.visiblePanoIndex !== void 0 && s.visiblePanoIndex !== "all" && t !== void 0) {
|
|
430
|
+
if (n.push("visiblePanoIndex"), Array.isArray(s.visiblePanoIndex) && !s.visiblePanoIndex.includes(t))
|
|
486
431
|
return {
|
|
487
432
|
value: !1,
|
|
488
|
-
checkedList:
|
|
489
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${
|
|
433
|
+
checkedList: n,
|
|
434
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${s.visiblePanoIndex}`
|
|
490
435
|
};
|
|
491
|
-
if (
|
|
436
|
+
if (s.visiblePanoIndex === "current" && t !== ((u = this.fiveState) == null ? void 0 : u.panoIndex))
|
|
492
437
|
return {
|
|
493
438
|
value: !1,
|
|
494
|
-
checkedList:
|
|
439
|
+
checkedList: n,
|
|
495
440
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(a = this.fiveState) == null ? void 0 : a.panoIndex}`
|
|
496
441
|
};
|
|
497
442
|
}
|
|
498
|
-
if (
|
|
443
|
+
if (s.visibleDistance !== void 0 && (n.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
|
|
499
444
|
const m = this.getDistance(e, 1);
|
|
500
|
-
if (k(m,
|
|
445
|
+
if (k(m, s.visibleDistance) === !1)
|
|
501
446
|
return {
|
|
502
447
|
value: !1,
|
|
503
|
-
checkedList:
|
|
448
|
+
checkedList: n,
|
|
504
449
|
panoIndex: t,
|
|
505
|
-
visibleDistance:
|
|
506
|
-
reason: `distance is not in visibleDistance. distance: ${m}, visibleDistance: ${
|
|
450
|
+
visibleDistance: s.visibleDistance,
|
|
451
|
+
reason: `distance is not in visibleDistance. distance: ${m}, visibleDistance: ${s.visibleDistance.min} - ${s.visibleDistance.max}`
|
|
507
452
|
};
|
|
508
453
|
}
|
|
509
|
-
if (
|
|
510
|
-
if (
|
|
454
|
+
if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
|
|
455
|
+
if (n.push("intersectRaycaster"), t === void 0)
|
|
511
456
|
return {
|
|
512
457
|
value: !1,
|
|
513
|
-
checkedList:
|
|
458
|
+
checkedList: n,
|
|
514
459
|
reason: `intersectRaycaster check failed: panoIndex is ${t}`
|
|
515
460
|
};
|
|
516
461
|
const m = this.computeVisibleByIntersect(t);
|
|
517
462
|
if (m.value === !1)
|
|
518
|
-
return Object.assign(m, { checkedList:
|
|
463
|
+
return Object.assign(m, { checkedList: n });
|
|
519
464
|
}
|
|
520
465
|
return {
|
|
521
466
|
value: !0,
|
|
522
|
-
checkedList:
|
|
467
|
+
checkedList: n,
|
|
523
468
|
reason: "all check passed"
|
|
524
469
|
};
|
|
525
470
|
}
|
|
@@ -530,28 +475,28 @@ class Ft {
|
|
|
530
475
|
*/
|
|
531
476
|
computeVisibleByFiveMode(i, e) {
|
|
532
477
|
const t = () => {
|
|
533
|
-
var l,
|
|
534
|
-
let
|
|
535
|
-
if (
|
|
536
|
-
return
|
|
537
|
-
if (
|
|
478
|
+
var l, o;
|
|
479
|
+
let n = typeof i.visibleFiveMode == "function" ? i.visibleFiveMode(this) : i.visibleFiveMode;
|
|
480
|
+
if (n || (n = (o = (l = this.fiveState) == null ? void 0 : l.mode) != null ? o : this.workUtil.observers.length ? "Panorama" : "ModelLike"), Array.isArray(n))
|
|
481
|
+
return n.includes(e);
|
|
482
|
+
if (n === "ModelLike")
|
|
538
483
|
return C(e);
|
|
539
|
-
if (
|
|
484
|
+
if (n === "PanoramaLike")
|
|
540
485
|
return !U(e);
|
|
541
|
-
if (
|
|
486
|
+
if (n === "all")
|
|
542
487
|
return !0;
|
|
543
|
-
if (typeof
|
|
544
|
-
return
|
|
488
|
+
if (typeof n == "string")
|
|
489
|
+
return n === e;
|
|
545
490
|
};
|
|
546
491
|
if ((() => {
|
|
547
492
|
var l;
|
|
548
|
-
const
|
|
549
|
-
if (
|
|
550
|
-
if (C(e) &&
|
|
493
|
+
const n = t();
|
|
494
|
+
if (O((l = this.fiveState) == null ? void 0 : l.panoIndex) && i.entryFromModel) {
|
|
495
|
+
if (C(e) && n ? this.entryFromModel = !1 : this.entryFromModel = !0, C(e))
|
|
551
496
|
return !0;
|
|
552
497
|
} else
|
|
553
498
|
this.entryFromModel = !1;
|
|
554
|
-
return
|
|
499
|
+
return n;
|
|
555
500
|
})() === !1)
|
|
556
501
|
return {
|
|
557
502
|
value: !1,
|
|
@@ -562,19 +507,19 @@ class Ft {
|
|
|
562
507
|
}
|
|
563
508
|
/** 通过射线检测标签可用性 */
|
|
564
509
|
computeVisibleByIntersect(i) {
|
|
565
|
-
var
|
|
566
|
-
const e = z(z((
|
|
510
|
+
var s, d, h, u;
|
|
511
|
+
const e = z(z((s = this.getConfig().visibleConfig) != null ? s : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, r = U(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(t) : this.five.camera.position;
|
|
567
512
|
if (r === void 0)
|
|
568
513
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
569
|
-
const
|
|
514
|
+
const n = ie(
|
|
570
515
|
(() => {
|
|
571
516
|
var g;
|
|
572
517
|
const a = (g = e.checkPoints) != null ? g : "center";
|
|
573
518
|
return a === "center" ? $(this) : a === "corner" ? L(this) : Array.isArray(a) ? a : [];
|
|
574
519
|
})()
|
|
575
520
|
);
|
|
576
|
-
let l = 0,
|
|
577
|
-
for (const a of
|
|
521
|
+
let l = 0, o = 0;
|
|
522
|
+
for (const a of n) {
|
|
578
523
|
const g = new B.Vector3().subVectors(a, r).normalize();
|
|
579
524
|
let m;
|
|
580
525
|
V.set(r, g);
|
|
@@ -586,15 +531,15 @@ class Ft {
|
|
|
586
531
|
const _ = this.plugin.tags.filter(T).map((X) => {
|
|
587
532
|
var F;
|
|
588
533
|
return (F = X.model) == null ? void 0 : F.object;
|
|
589
|
-
}).filter(
|
|
534
|
+
}).filter(O), [q] = V.intersectObjects(_, !0);
|
|
590
535
|
return q;
|
|
591
536
|
})(), J = r.distanceTo(a), W = (d = e.distanceAccuracy) != null ? d : 0.01;
|
|
592
|
-
m = Math.min(m != null ? m : 1 / 0, (h = x == null ? void 0 : x.distance) != null ? h : 1 / 0), m + W >= J ? l++ :
|
|
537
|
+
m = Math.min(m != null ? m : 1 / 0, (h = x == null ? void 0 : x.distance) != null ? h : 1 / 0), m + W >= J ? l++ : o++;
|
|
593
538
|
const H = (u = e.needPassed) != null ? u : 1;
|
|
594
539
|
if (l >= H)
|
|
595
540
|
return { value: !0 };
|
|
596
541
|
}
|
|
597
|
-
return
|
|
542
|
+
return o === 0 ? { value: !0 } : {
|
|
598
543
|
value: !1,
|
|
599
544
|
reason: {
|
|
600
545
|
type: "intersectRaycaster check failed",
|
|
@@ -605,12 +550,12 @@ class Ft {
|
|
|
605
550
|
};
|
|
606
551
|
}
|
|
607
552
|
computeVisibleByFloorIndex() {
|
|
608
|
-
var r,
|
|
553
|
+
var r, n, l, o, s, d, h;
|
|
609
554
|
let i = 0;
|
|
610
555
|
const e = (r = this.fiveState) == null ? void 0 : r.panoIndex;
|
|
611
|
-
e !== void 0 ? i = (
|
|
556
|
+
e !== void 0 ? i = (n = this.workUtil.getObserver(e)) == null ? void 0 : n.floorIndex : i = ae(
|
|
612
557
|
this.workUtil.work,
|
|
613
|
-
(h = (d = (
|
|
558
|
+
(h = (d = (o = (l = this.model) == null ? void 0 : l.object) == null ? void 0 : o.position) != null ? d : (s = this.mediaPlane) == null ? void 0 : s.position) != null ? h : $(this)
|
|
614
559
|
);
|
|
615
560
|
const t = this.fiveUtil.model.shownFloor;
|
|
616
561
|
return {
|
|
@@ -655,20 +600,20 @@ class Ft {
|
|
|
655
600
|
return !1;
|
|
656
601
|
}
|
|
657
602
|
if (i.autoUnfold.strategy === "MinimumDistance") {
|
|
658
|
-
const
|
|
659
|
-
const
|
|
660
|
-
if (!
|
|
603
|
+
const n = this.plugin.filterPointTag.filter((o) => o.currentVisible).filter((o) => {
|
|
604
|
+
const s = this.computeTagProject();
|
|
605
|
+
if (!s)
|
|
661
606
|
return !1;
|
|
662
|
-
const { x: d, y: h, z: u } =
|
|
607
|
+
const { x: d, y: h, z: u } = s;
|
|
663
608
|
return !(Math.abs(u) > 1 || Math.abs(d) > 1 || Math.abs(h) > 1);
|
|
664
|
-
}).map((
|
|
665
|
-
var
|
|
666
|
-
return !(typeof
|
|
667
|
-
}).map((
|
|
668
|
-
const d =
|
|
669
|
-
return !(d && k(
|
|
670
|
-
}).sort((
|
|
671
|
-
if (
|
|
609
|
+
}).map((o) => ({ tag: o, id: o.id, tagConfig: o.getConfig().unfoldedConfig })).filter(({ tagConfig: o }) => {
|
|
610
|
+
var s, d;
|
|
611
|
+
return !(typeof o == "function" || o.keep || o.autoUnfold === !1 || ((s = o.autoUnfold) == null ? void 0 : s.enable) === !1 || ((d = o.autoUnfold) == null ? void 0 : d.strategy) !== "MinimumDistance");
|
|
612
|
+
}).map((o) => I(p({}, o), { distance: o.tag.getDistance() })).filter(({ distance: o, tagConfig: s }) => {
|
|
613
|
+
const d = s.autoUnfold.distance;
|
|
614
|
+
return !(d && k(o, d) === !1);
|
|
615
|
+
}).sort((o, s) => o.distance - s.distance).findIndex((o) => o.id === this.id);
|
|
616
|
+
if (n === -1 || n <= ((e = i.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
672
617
|
return !1;
|
|
673
618
|
}
|
|
674
619
|
return i.autoUnfold.strategy !== "FoldWhenMove";
|
|
@@ -686,14 +631,14 @@ class Ft {
|
|
|
686
631
|
if (!e || !this.plugin.domEvents)
|
|
687
632
|
return () => {
|
|
688
633
|
};
|
|
689
|
-
const r = () => !(!i.currentVisible || i.loading),
|
|
634
|
+
const r = () => !(!i.currentVisible || i.loading), n = (l) => {
|
|
690
635
|
if (!r())
|
|
691
636
|
return !1;
|
|
692
637
|
t(l.origDomEvent);
|
|
693
638
|
};
|
|
694
|
-
return this.plugin.domEvents.addEventListener(e, "click",
|
|
639
|
+
return this.plugin.domEvents.addEventListener(e, "click", n), () => {
|
|
695
640
|
var l;
|
|
696
|
-
(l = this.plugin.domEvents) == null || l.removeEventListener(e, "click",
|
|
641
|
+
(l = this.plugin.domEvents) == null || l.removeEventListener(e, "click", n);
|
|
697
642
|
};
|
|
698
643
|
}
|
|
699
644
|
whyHide() {
|
|
@@ -722,5 +667,5 @@ class Ft {
|
|
|
722
667
|
}
|
|
723
668
|
}
|
|
724
669
|
export {
|
|
725
|
-
|
|
670
|
+
Vi as BaseTag
|
|
726
671
|
};
|