@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,6 +1,6 @@
|
|
|
1
1
|
var I = Object.defineProperty;
|
|
2
|
-
var R = (
|
|
3
|
-
var o = (
|
|
2
|
+
var R = (c, r, t) => r in c ? I(c, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[r] = t;
|
|
3
|
+
var o = (c, r, t) => (R(c, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
4
|
import G from "hammerjs";
|
|
5
5
|
import T from "../Modules/DeleteDom/index.js";
|
|
6
6
|
import w from "../utils/isNDCPointInScreen.js";
|
|
@@ -10,7 +10,7 @@ import { closestPointOnLine as b } from "../utils/math.js";
|
|
|
10
10
|
import { findClosestPoint as j } from "../utils/findClosestPoint.js";
|
|
11
11
|
import { getPointFromHammerEvent as C } from "../../shared-utils/getPointFromHammerEvent.js";
|
|
12
12
|
import x from "../Model/area.js";
|
|
13
|
-
import F from "../Model/polygon.js";
|
|
13
|
+
import { PolygonMesh as F } from "../Model/polygon.js";
|
|
14
14
|
import { getFiveModel as D } from "../../shared-utils/five/getFiveModel.js";
|
|
15
15
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
16
16
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -20,6 +20,7 @@ import "../../shared-utils/uuid.js";
|
|
|
20
20
|
import "../utils/line.js";
|
|
21
21
|
import "../../shared-utils/five/FiveLine.js";
|
|
22
22
|
import "@realsee/five/line";
|
|
23
|
+
import "../../shared-utils/isNil.js";
|
|
23
24
|
import "../utils/constants.js";
|
|
24
25
|
import "@realsee/five";
|
|
25
26
|
import "../utils/dom/distanceItem.js";
|
|
@@ -54,85 +55,35 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
|
54
55
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
55
56
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
56
57
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
57
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
58
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
59
|
-
import "../../vendor/three/build/three.module.js";
|
|
60
58
|
import "../../shared-utils/three/core/Sphere.js";
|
|
61
59
|
import "animejs";
|
|
62
|
-
import "../../shared-utils/isNil.js";
|
|
63
60
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
64
|
-
import "../../
|
|
65
|
-
import "../../shared-utils/
|
|
66
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
67
|
-
import "earcut";
|
|
68
|
-
import "../../shared-utils/three/getNormal.js";
|
|
69
|
-
import "../utils/isIntersecting.js";
|
|
70
|
-
import "../../Sculpt/typings/style.js";
|
|
71
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
72
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
73
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
74
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
75
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
76
|
-
import "../../base/BasePlugin.js";
|
|
77
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
78
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
79
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
80
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
81
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
82
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
83
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
84
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
85
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
86
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
87
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
88
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
61
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
62
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
89
63
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
90
64
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
91
65
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
92
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
93
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
94
|
-
import "../../shared-utils/util.js";
|
|
95
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
96
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
97
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
98
66
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
99
67
|
import "../../Sculpt/Meshes/Line.js";
|
|
68
|
+
import "../../Sculpt/typings/style.js";
|
|
69
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
100
70
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
101
71
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
102
72
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
73
|
+
import "../../shared-utils/util.js";
|
|
74
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
103
75
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
104
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
105
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
106
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
107
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
108
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
109
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
110
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
111
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
112
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
113
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
114
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
115
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
116
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
117
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
118
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
119
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
120
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
121
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
122
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
123
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
124
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
125
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
126
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
127
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
128
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
129
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
130
76
|
import "../../shared-utils/isTouchDevice.js";
|
|
131
77
|
import "../../shared-utils/five/getPosition.js";
|
|
132
78
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
133
79
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
80
|
+
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
81
|
+
import "../../shared-utils/three/earcut3D.js";
|
|
82
|
+
import "earcut";
|
|
83
|
+
import "../../shared-utils/three/getNormal.js";
|
|
84
|
+
import "../utils/isIntersecting.js";
|
|
134
85
|
const E = () => !1;
|
|
135
|
-
class
|
|
86
|
+
class ge extends U {
|
|
136
87
|
constructor(t) {
|
|
137
88
|
super(t);
|
|
138
89
|
o(this, "type", "watch");
|
|
@@ -148,19 +99,19 @@ class me extends U {
|
|
|
148
99
|
var l;
|
|
149
100
|
if (this.model.getAllLines().length === 0 || !this.fiveElement)
|
|
150
101
|
return;
|
|
151
|
-
const
|
|
152
|
-
if (!
|
|
102
|
+
const i = C(t).point, e = (l = j(this.five, this.model.getAllPoints(), i, 20)) == null ? void 0 : l.point;
|
|
103
|
+
if (!e) {
|
|
153
104
|
this.editPointState = void 0;
|
|
154
105
|
return;
|
|
155
106
|
}
|
|
156
|
-
const n = this.model.polylines.find((
|
|
157
|
-
point:
|
|
107
|
+
const n = this.model.polylines.find((a) => a.includes(e)), p = {
|
|
108
|
+
point: e,
|
|
158
109
|
associatedLines: n.lines
|
|
159
110
|
};
|
|
160
111
|
this.hook.emit("wantsDragLine", {
|
|
161
|
-
point:
|
|
162
|
-
lines:
|
|
163
|
-
}) || (this.editPointState =
|
|
112
|
+
point: e.id,
|
|
113
|
+
lines: p.associatedLines.map(({ id: a }) => a)
|
|
114
|
+
}) || (this.editPointState = p, this.magnifier.appendTo(this.container), this.magnifier.enable(), this.group.add(this.mouseGroup));
|
|
164
115
|
});
|
|
165
116
|
o(this, "onPanEnd", () => {
|
|
166
117
|
this.editPointState && (this.editPointState.associatedLines.forEach((t) => t.mesh.setMaterial({ dashed: !1 })), this.highlightLines(this.editPointState.associatedLines), this.editPointState = void 0, this.magnifier.disable(), this.group.remove(this.mouseGroup));
|
|
@@ -168,24 +119,24 @@ class me extends U {
|
|
|
168
119
|
o(this, "onPan", (t) => {
|
|
169
120
|
if (!this.editPointState || !this.fiveElement)
|
|
170
121
|
return;
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
const [n] = D(this.five).intersectRaycaster(
|
|
122
|
+
const i = C(t).ndcPoint, e = new M();
|
|
123
|
+
e.setFromCamera(i, this.five.camera);
|
|
124
|
+
const [n] = D(this.five).intersectRaycaster(e);
|
|
174
125
|
n && this.onIntersectionUpdate(n);
|
|
175
126
|
});
|
|
176
|
-
o(this, "onIntersectionUpdate", (t,
|
|
127
|
+
o(this, "onIntersectionUpdate", (t, i) => {
|
|
177
128
|
if (this.editPointState) {
|
|
178
|
-
if (this.clearHighlightLines(), this.editPointState.point.position.copy(t.point), this.editPointState.associatedLines.forEach((
|
|
179
|
-
|
|
180
|
-
}), this.updateDistanceUI(), this.magnifier.renderWithPoint(t.point), this.mouseGroup.position.copy(t.point),
|
|
181
|
-
this.mouseGroup.quaternion.copy(
|
|
129
|
+
if (this.clearHighlightLines(), this.editPointState.point.position.copy(t.point), this.editPointState.associatedLines.forEach((e) => {
|
|
130
|
+
e.mesh.setPoints(e.points[0].position.clone(), e.points[1].position.clone()), e.lightMesh.setPoints(e.points[0].position.clone(), e.points[1].position.clone()), e.mesh.setMaterial({ dashed: !0 });
|
|
131
|
+
}), this.updateDistanceUI(), this.magnifier.renderWithPoint(t.point), this.mouseGroup.position.copy(t.point), i)
|
|
132
|
+
this.mouseGroup.quaternion.copy(i.quaternion);
|
|
182
133
|
else if (t.face) {
|
|
183
|
-
const n = t.face.normal.clone().multiplyScalar(0.05),
|
|
184
|
-
this.mouseGroup.lookAt(
|
|
134
|
+
const n = t.face.normal.clone().multiplyScalar(0.05), m = t.point.clone().add(n).clone().add(n);
|
|
135
|
+
this.mouseGroup.lookAt(m);
|
|
185
136
|
}
|
|
186
137
|
this.five.needsRender = !0, this.hook.emit(
|
|
187
138
|
"selectedChange",
|
|
188
|
-
this.editPointState.associatedLines.map((
|
|
139
|
+
this.editPointState.associatedLines.map((e) => e)
|
|
189
140
|
);
|
|
190
141
|
}
|
|
191
142
|
});
|
|
@@ -195,30 +146,30 @@ class me extends U {
|
|
|
195
146
|
});
|
|
196
147
|
o(this, "wantsTapGesture", (t) => {
|
|
197
148
|
var S;
|
|
198
|
-
const
|
|
199
|
-
if (
|
|
200
|
-
const s = this.model.areas.find((
|
|
149
|
+
const i = this.model.areas.map((s) => t.intersectObject(s.polygon, !0)[0]).sort((s, h) => s.distance - h.distance), e = (S = i[0]) == null ? void 0 : S.object.parent;
|
|
150
|
+
if (e instanceof F) {
|
|
151
|
+
const s = this.model.areas.find((h) => h.polygon === e);
|
|
201
152
|
if (s) {
|
|
202
|
-
const { x:
|
|
153
|
+
const { x: h, y: u } = i[0].point.clone().project(this.five.camera), d = `${(h + 1) / 2 * 100}%`, g = `${(-u + 1) / 2 * 100}%`;
|
|
203
154
|
return this.chooseArea(s, { left: d, top: g }), !1;
|
|
204
155
|
}
|
|
205
156
|
}
|
|
206
|
-
const n = D(this.five), [
|
|
207
|
-
if (!
|
|
157
|
+
const n = D(this.five), [p] = n.intersectRaycaster(t);
|
|
158
|
+
if (!p)
|
|
208
159
|
return;
|
|
209
|
-
const
|
|
210
|
-
const [
|
|
160
|
+
const m = this.five.camera, l = p.point.clone().project(m), a = this.container.clientWidth, f = this.container.clientHeight, P = new L(l.x * a, l.y * f), v = this.model.getAllLines().map((s) => {
|
|
161
|
+
const [h, u] = s.points, d = h.position.clone().project(m), g = u.position.clone().project(m);
|
|
211
162
|
if (!w(d) && !w(g))
|
|
212
163
|
return null;
|
|
213
|
-
const H = new L(d.x *
|
|
164
|
+
const H = new L(d.x * a, d.y * f), k = new L(g.x * a, g.y * f);
|
|
214
165
|
return { id: s.id, points: [H, k] };
|
|
215
166
|
}).filter((s) => !!s);
|
|
216
167
|
if (v.length === 0)
|
|
217
168
|
return;
|
|
218
169
|
const y = v.map((s) => {
|
|
219
|
-
const
|
|
220
|
-
return { id: s.id, distance:
|
|
221
|
-
}).sort((s,
|
|
170
|
+
const h = b(P, s.points);
|
|
171
|
+
return { id: s.id, distance: h.distanceTo(P) };
|
|
172
|
+
}).sort((s, h) => s.distance - h.distance)[0];
|
|
222
173
|
if (y.distance > 20)
|
|
223
174
|
return;
|
|
224
175
|
const A = this.model.getAllLines().find(({ id: s }) => s === y.id);
|
|
@@ -227,19 +178,19 @@ class me extends U {
|
|
|
227
178
|
});
|
|
228
179
|
o(this, "chooseLine", (t) => {
|
|
229
180
|
this.choose = "line";
|
|
230
|
-
const
|
|
231
|
-
this.deleteDom.setLines(
|
|
181
|
+
const i = t.getPolyline().lines;
|
|
182
|
+
this.deleteDom.setLines(i).updatePosition().show(), this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
232
183
|
"selectedChange",
|
|
233
|
-
|
|
184
|
+
i.map((e) => e)
|
|
234
185
|
);
|
|
235
186
|
});
|
|
236
|
-
o(this, "chooseArea", (t,
|
|
237
|
-
this.choose = t, this.deleteDom.updatePosition(
|
|
187
|
+
o(this, "chooseArea", (t, i) => {
|
|
188
|
+
this.choose = t, this.deleteDom.updatePosition(i.left, `calc(${i.top} - 20px)`).show(), this.highlightArea(t);
|
|
238
189
|
});
|
|
239
190
|
o(this, "polylineRemoved", (t) => {
|
|
240
|
-
t.lines.forEach((
|
|
191
|
+
t.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
|
|
241
192
|
"selectedChange",
|
|
242
|
-
this.model.getAllLines().filter((
|
|
193
|
+
this.model.getAllLines().filter((i) => i.selected).map((i) => i)
|
|
243
194
|
);
|
|
244
195
|
});
|
|
245
196
|
o(this, "onCameraUpdate", () => {
|
|
@@ -249,8 +200,8 @@ class me extends U {
|
|
|
249
200
|
this.unHighlightArea(t), t.dispose(), this.deleteDom.hide();
|
|
250
201
|
});
|
|
251
202
|
o(this, "deleteLine", () => {
|
|
252
|
-
const t = this.highlightedLines[0],
|
|
253
|
-
|
|
203
|
+
const t = this.highlightedLines[0], i = this.model.getPolylineByLine(t);
|
|
204
|
+
i && (this.model.removePolyline(i), this.highlightedLines = [], this.deleteDom.setLines([]).hide());
|
|
254
205
|
});
|
|
255
206
|
o(this, "cancelDeleteClickCallback", () => {
|
|
256
207
|
this.deleteDom.hide(), this.clearHighlightLines(), this.unHighlightArea();
|
|
@@ -261,24 +212,24 @@ class me extends U {
|
|
|
261
212
|
this.choose === "line" ? this.deleteLine() : this.choose instanceof x && this.deleteArea(this.choose);
|
|
262
213
|
},
|
|
263
214
|
cancel: this.cancelDeleteClickCallback
|
|
264
|
-
}).appendTo(this.container), this.model.getAllLines().forEach((
|
|
265
|
-
|
|
266
|
-
}), this.model.getAllAreas().forEach((
|
|
267
|
-
|
|
215
|
+
}).appendTo(this.container), this.model.getAllLines().forEach((e) => {
|
|
216
|
+
e.distanceItem.appendTo(this.container), e.distanceItem.update(this.five), e.hook.on("selected", this.chooseLine), e.distanceItem.setCanSelect(!0), this.group.add(e.mesh);
|
|
217
|
+
}), this.model.getAllAreas().forEach((e) => {
|
|
218
|
+
e.areaItem.appendTo(this.container), e.areaItem.updateArea(this.five), e.hook.on("selected", this.chooseArea), e.areaItem.setCanSelect(!0), this.group.add(e.polygon), e.polyline.lines.forEach((n) => {
|
|
268
219
|
n.distanceItem.appendTo(this.container), n.distanceItem.update(this.five), this.group.add(n.mesh);
|
|
269
220
|
});
|
|
270
221
|
});
|
|
271
|
-
const
|
|
272
|
-
if (
|
|
273
|
-
this.fiveElement =
|
|
274
|
-
const
|
|
275
|
-
this.hammer =
|
|
222
|
+
const i = this.five.getElement();
|
|
223
|
+
if (i) {
|
|
224
|
+
this.fiveElement = i;
|
|
225
|
+
const e = new G(i);
|
|
226
|
+
this.hammer = e, e.on("pan", this.onPan), e.on("panstart", this.onPanStart), e.on("panend", this.onPanEnd);
|
|
276
227
|
}
|
|
277
228
|
this.updateDistanceUI(), this.five.needsRender = !0, this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsPanGesture", this.wantsPanGesture), this.five.on("wantsChangeMode", E), this.model.hook.on("polylineRemoved", this.polylineRemoved);
|
|
278
229
|
}
|
|
279
230
|
dispose() {
|
|
280
231
|
var t;
|
|
281
|
-
super.dispose(), this.deleteDom.dispose(), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.model.getAllLines().forEach((
|
|
232
|
+
super.dispose(), this.deleteDom.dispose(), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.model.getAllLines().forEach((i) => i.hook.off("selected", this.chooseLine)), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsPanGesture", this.wantsPanGesture), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsChangeMode", E), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (t = this.hammer) == null || t.destroy();
|
|
282
233
|
}
|
|
283
234
|
highlightLine(t) {
|
|
284
235
|
t.selected || (t.selected = !0, this.group.add(t.lightMesh), t.distanceItem.highlight(), this.five.needsRender = !0);
|
|
@@ -290,20 +241,20 @@ class me extends U {
|
|
|
290
241
|
this.unHighlightLines(), this.unHighlightArea(), this.highlightLines(t.polyline.lines), this.five.needsRender = !0;
|
|
291
242
|
}
|
|
292
243
|
unHighlightArea(t) {
|
|
293
|
-
const
|
|
294
|
-
|
|
244
|
+
const i = t != null ? t : this.highlightedArea;
|
|
245
|
+
i && (this.unHighlightLines(i.polyline.lines), this.five.needsRender = !0);
|
|
295
246
|
}
|
|
296
247
|
highlightLines(t) {
|
|
297
|
-
this.unHighlightLines(), this.highlightedLines = t, t.forEach((
|
|
248
|
+
this.unHighlightLines(), this.highlightedLines = t, t.forEach((i) => this.highlightLine(i));
|
|
298
249
|
}
|
|
299
250
|
unHighlightLines(t) {
|
|
300
251
|
this.unHighlightArea();
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
|
|
252
|
+
const i = t != null ? t : this.highlightedLines;
|
|
253
|
+
i && i.forEach((e) => {
|
|
254
|
+
e.selected = !1, e.distanceItem.unHighlight(), this.group.remove(e.lightMesh), this.five.needsRender = !0;
|
|
304
255
|
});
|
|
305
256
|
}
|
|
306
257
|
}
|
|
307
258
|
export {
|
|
308
|
-
|
|
259
|
+
ge as default
|
|
309
260
|
};
|