@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,10 +1,10 @@
|
|
|
1
1
|
import { SvelteComponent as ee, init as te, safe_not_equal as oe, append_styles as re, element as j, space as T, create_component as q, attr as w, toggle_class as D, insert as I, append as g, mount_component as O, transition_in as k, transition_out as _, check_outros as R, detach as K, destroy_component as U, onMount as ie, onDestroy as le, add_render_callback as F, create_bidirectional_transition as E, text as V, set_style as W, listen as X, set_data as Y, group_outros as B } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import ne from "./Common/Switcher1.js";
|
|
3
|
-
import
|
|
3
|
+
import se from "./Common/CircleButton.js";
|
|
4
4
|
import H from "../Controller/EditController.js";
|
|
5
|
-
import
|
|
5
|
+
import ae from "./Common/Exit.js";
|
|
6
6
|
import { fade as S } from "../../vendor/svelte/transition/index.js";
|
|
7
|
-
import { IconUndo as
|
|
7
|
+
import { IconUndo as me, IconOk as pe } from "./Common/icons/index.js";
|
|
8
8
|
import "../Modules/UIController/mobileHTML.js";
|
|
9
9
|
import "../../vendor/svelte/easing/index.js";
|
|
10
10
|
import "../Model/line.js";
|
|
@@ -12,6 +12,7 @@ import "../../shared-utils/uuid.js";
|
|
|
12
12
|
import "../utils/line.js";
|
|
13
13
|
import "../../shared-utils/five/FiveLine.js";
|
|
14
14
|
import "@realsee/five/line";
|
|
15
|
+
import "../../shared-utils/isNil.js";
|
|
15
16
|
import "../utils/constants.js";
|
|
16
17
|
import "three";
|
|
17
18
|
import "@realsee/five";
|
|
@@ -58,73 +59,23 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
|
58
59
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
59
60
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
60
61
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
61
|
-
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
62
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
63
|
-
import "../../vendor/three/build/three.module.js";
|
|
64
62
|
import "../../shared-utils/three/core/Sphere.js";
|
|
65
63
|
import "animejs";
|
|
66
|
-
import "../../shared-utils/isNil.js";
|
|
67
64
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
68
|
-
import "../../
|
|
69
|
-
import "../../
|
|
70
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
71
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
72
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
73
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
74
|
-
import "../../base/BasePlugin.js";
|
|
75
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
76
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
77
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
78
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
79
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
80
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
81
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
82
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
83
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
84
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
85
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
86
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
65
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
66
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
87
67
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
88
68
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
89
69
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
90
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
91
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
92
|
-
import "../../shared-utils/util.js";
|
|
93
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
94
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
95
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
96
70
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
97
71
|
import "../../Sculpt/Meshes/Line.js";
|
|
72
|
+
import "../../Sculpt/typings/style.js";
|
|
98
73
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
99
74
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
100
75
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
76
|
+
import "../../shared-utils/util.js";
|
|
77
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
101
78
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
102
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
103
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
104
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
105
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
106
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
107
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
108
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
109
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
110
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
111
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
112
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
113
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
114
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
115
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
116
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
117
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
118
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
119
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
120
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
121
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
122
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
123
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
124
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
125
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
126
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
127
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
128
79
|
import "../../shared-utils/isTouchDevice.js";
|
|
129
80
|
import "../../shared-utils/five/getPosition.js";
|
|
130
81
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
@@ -139,7 +90,7 @@ function fe(o) {
|
|
|
139
90
|
}
|
|
140
91
|
function J(o) {
|
|
141
92
|
let t, i;
|
|
142
|
-
return t = new
|
|
93
|
+
return t = new ae({
|
|
143
94
|
props: {
|
|
144
95
|
onClick: (
|
|
145
96
|
/*measureController*/
|
|
@@ -150,12 +101,12 @@ function J(o) {
|
|
|
150
101
|
c() {
|
|
151
102
|
q(t.$$.fragment);
|
|
152
103
|
},
|
|
153
|
-
m(e,
|
|
154
|
-
O(t, e,
|
|
104
|
+
m(e, a) {
|
|
105
|
+
O(t, e, a), i = !0;
|
|
155
106
|
},
|
|
156
|
-
p(e,
|
|
107
|
+
p(e, a) {
|
|
157
108
|
const l = {};
|
|
158
|
-
|
|
109
|
+
a & /*measureController*/
|
|
159
110
|
1 && (l.onClick = /*measureController*/
|
|
160
111
|
e[0].disable), t.$set(l);
|
|
161
112
|
},
|
|
@@ -171,7 +122,7 @@ function J(o) {
|
|
|
171
122
|
};
|
|
172
123
|
}
|
|
173
124
|
function L(o) {
|
|
174
|
-
let t, i, e,
|
|
125
|
+
let t, i, e, a;
|
|
175
126
|
return i = new ne({
|
|
176
127
|
props: {
|
|
177
128
|
options: [
|
|
@@ -204,13 +155,13 @@ function L(o) {
|
|
|
204
155
|
t = j("div"), q(i.$$.fragment), w(t, "class", "mode-switcher svelte-ldjbp8");
|
|
205
156
|
},
|
|
206
157
|
m(l, n) {
|
|
207
|
-
I(l, t, n), O(i, t, null),
|
|
158
|
+
I(l, t, n), O(i, t, null), a = !0;
|
|
208
159
|
},
|
|
209
160
|
p(l, n) {
|
|
210
161
|
o = l;
|
|
211
|
-
const
|
|
162
|
+
const m = {};
|
|
212
163
|
n & /*i18n*/
|
|
213
|
-
4 && (
|
|
164
|
+
4 && (m.options = [
|
|
214
165
|
{
|
|
215
166
|
key: "line",
|
|
216
167
|
value: (
|
|
@@ -226,18 +177,18 @@ function L(o) {
|
|
|
226
177
|
)
|
|
227
178
|
}
|
|
228
179
|
]), n & /*measureController*/
|
|
229
|
-
1 && (
|
|
180
|
+
1 && (m.defaultKey = /*measureController*/
|
|
230
181
|
o[0].currentMeasureType), n & /*measureController*/
|
|
231
|
-
1 && (
|
|
232
|
-
o[0].changeMeasureType), i.$set(
|
|
182
|
+
1 && (m.onChange = /*measureController*/
|
|
183
|
+
o[0].changeMeasureType), i.$set(m);
|
|
233
184
|
},
|
|
234
185
|
i(l) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}),
|
|
186
|
+
a || (k(i.$$.fragment, l), l && F(() => {
|
|
187
|
+
a && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
|
|
188
|
+
}), a = !0);
|
|
238
189
|
},
|
|
239
190
|
o(l) {
|
|
240
|
-
_(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)),
|
|
191
|
+
_(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), a = !1;
|
|
241
192
|
},
|
|
242
193
|
d(l) {
|
|
243
194
|
l && K(t), U(i), l && e && e.end();
|
|
@@ -245,13 +196,13 @@ function L(o) {
|
|
|
245
196
|
};
|
|
246
197
|
}
|
|
247
198
|
function N(o) {
|
|
248
|
-
let t, i, e,
|
|
199
|
+
let t, i, e, a = (
|
|
249
200
|
/*i18n*/
|
|
250
201
|
o[2]("撤销") + ""
|
|
251
|
-
), l, n,
|
|
202
|
+
), l, n, m, f, C;
|
|
252
203
|
return {
|
|
253
204
|
c() {
|
|
254
|
-
t = j("div"), i = j("div"), e = T(), l = V(
|
|
205
|
+
t = j("div"), i = j("div"), e = T(), l = V(a), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${me})`), w(t, "class", "button svelte-ldjbp8"), D(
|
|
255
206
|
t,
|
|
256
207
|
"forbid",
|
|
257
208
|
/*buttonState*/
|
|
@@ -259,7 +210,7 @@ function N(o) {
|
|
|
259
210
|
);
|
|
260
211
|
},
|
|
261
212
|
m(r, c) {
|
|
262
|
-
I(r, t, c), g(t, i), g(t, e), g(t, l),
|
|
213
|
+
I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
|
|
263
214
|
t,
|
|
264
215
|
"click",
|
|
265
216
|
/*click_handler*/
|
|
@@ -267,9 +218,9 @@ function N(o) {
|
|
|
267
218
|
), f = !0);
|
|
268
219
|
},
|
|
269
220
|
p(r, c) {
|
|
270
|
-
o = r, (!
|
|
271
|
-
4) &&
|
|
272
|
-
o[2]("撤销") + "") && Y(l,
|
|
221
|
+
o = r, (!m || c & /*i18n*/
|
|
222
|
+
4) && a !== (a = /*i18n*/
|
|
223
|
+
o[2]("撤销") + "") && Y(l, a), (!m || c & /*buttonState*/
|
|
273
224
|
8) && D(
|
|
274
225
|
t,
|
|
275
226
|
"forbid",
|
|
@@ -278,12 +229,12 @@ function N(o) {
|
|
|
278
229
|
);
|
|
279
230
|
},
|
|
280
231
|
i(r) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}),
|
|
232
|
+
m || (r && F(() => {
|
|
233
|
+
m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
|
|
234
|
+
}), m = !0);
|
|
284
235
|
},
|
|
285
236
|
o(r) {
|
|
286
|
-
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)),
|
|
237
|
+
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
|
|
287
238
|
},
|
|
288
239
|
d(r) {
|
|
289
240
|
r && K(t), r && n && n.end(), f = !1, C();
|
|
@@ -291,16 +242,16 @@ function N(o) {
|
|
|
291
242
|
};
|
|
292
243
|
}
|
|
293
244
|
function Q(o) {
|
|
294
|
-
let t, i, e,
|
|
245
|
+
let t, i, e, a = (
|
|
295
246
|
/*i18n*/
|
|
296
247
|
o[2]("结束") + ""
|
|
297
|
-
), l, n,
|
|
248
|
+
), l, n, m, f, C;
|
|
298
249
|
return {
|
|
299
250
|
c() {
|
|
300
|
-
t = j("div"), i = j("div"), e = T(), l = V(
|
|
251
|
+
t = j("div"), i = j("div"), e = T(), l = V(a), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${pe})`), w(t, "class", "button svelte-ldjbp8");
|
|
301
252
|
},
|
|
302
253
|
m(r, c) {
|
|
303
|
-
I(r, t, c), g(t, i), g(t, e), g(t, l),
|
|
254
|
+
I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
|
|
304
255
|
t,
|
|
305
256
|
"click",
|
|
306
257
|
/*complete*/
|
|
@@ -308,17 +259,17 @@ function Q(o) {
|
|
|
308
259
|
), f = !0);
|
|
309
260
|
},
|
|
310
261
|
p(r, c) {
|
|
311
|
-
o = r, (!
|
|
312
|
-
4) &&
|
|
313
|
-
o[2]("结束") + "") && Y(l,
|
|
262
|
+
o = r, (!m || c & /*i18n*/
|
|
263
|
+
4) && a !== (a = /*i18n*/
|
|
264
|
+
o[2]("结束") + "") && Y(l, a);
|
|
314
265
|
},
|
|
315
266
|
i(r) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}),
|
|
267
|
+
m || (r && F(() => {
|
|
268
|
+
m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
|
|
269
|
+
}), m = !0);
|
|
319
270
|
},
|
|
320
271
|
o(r) {
|
|
321
|
-
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)),
|
|
272
|
+
r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
|
|
322
273
|
},
|
|
323
274
|
d(r) {
|
|
324
275
|
r && K(t), r && n && n.end(), f = !1, C();
|
|
@@ -326,10 +277,10 @@ function Q(o) {
|
|
|
326
277
|
};
|
|
327
278
|
}
|
|
328
279
|
function ue(o) {
|
|
329
|
-
let t, i, e,
|
|
280
|
+
let t, i, e, a, l, n, m, f, C, r, c, z, M, b = (
|
|
330
281
|
/*showExit*/
|
|
331
282
|
o[1] && J(o)
|
|
332
|
-
),
|
|
283
|
+
), p = (
|
|
333
284
|
/*measureController*/
|
|
334
285
|
o[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
335
286
|
o[3] === "start" && L(o)
|
|
@@ -337,7 +288,7 @@ function ue(o) {
|
|
|
337
288
|
/*showButton*/
|
|
338
289
|
o[4] && N(o)
|
|
339
290
|
);
|
|
340
|
-
c = new
|
|
291
|
+
c = new se({
|
|
341
292
|
props: {
|
|
342
293
|
onClick: (
|
|
343
294
|
/*func*/
|
|
@@ -365,68 +316,68 @@ function ue(o) {
|
|
|
365
316
|
);
|
|
366
317
|
return {
|
|
367
318
|
c() {
|
|
368
|
-
t = j("div"), b && b.c(), i = T(), e = j("div"),
|
|
319
|
+
t = j("div"), b && b.c(), i = T(), e = j("div"), a = j("div"), l = T(), n = j("div"), p && p.c(), m = T(), f = j("div"), u && u.c(), C = T(), r = j("div"), q(c.$$.fragment), z = T(), d && d.c(), w(a, "class", "mask svelte-ldjbp8"), w(r, "class", "main-button svelte-ldjbp8"), D(r, "forbid", !/*allowAddPoint*/
|
|
369
320
|
o[5]), w(f, "class", "controller svelte-ldjbp8"), w(n, "class", "center svelte-ldjbp8"), w(e, "class", "bottom svelte-ldjbp8"), w(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
370
321
|
},
|
|
371
|
-
m(
|
|
372
|
-
I(
|
|
322
|
+
m(s, v) {
|
|
323
|
+
I(s, t, v), b && b.m(t, null), g(t, i), g(t, e), g(e, a), g(e, l), g(e, n), p && p.m(n, null), g(n, m), g(n, f), u && u.m(f, null), g(f, C), g(f, r), O(c, r, null), g(f, z), d && d.m(f, null), M = !0;
|
|
373
324
|
},
|
|
374
|
-
p(
|
|
325
|
+
p(s, [v]) {
|
|
375
326
|
/*showExit*/
|
|
376
|
-
|
|
377
|
-
2 && k(b, 1)) : (b = J(
|
|
327
|
+
s[1] ? b ? (b.p(s, v), v & /*showExit*/
|
|
328
|
+
2 && k(b, 1)) : (b = J(s), b.c(), k(b, 1), b.m(t, i)) : b && (B(), _(b, 1, 1, () => {
|
|
378
329
|
b = null;
|
|
379
330
|
}), R()), /*measureController*/
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
9 && k(
|
|
383
|
-
|
|
331
|
+
s[0].allowMeasureType.length >= 2 && /*buttonState*/
|
|
332
|
+
s[3] === "start" ? p ? (p.p(s, v), v & /*measureController, buttonState*/
|
|
333
|
+
9 && k(p, 1)) : (p = L(s), p.c(), k(p, 1), p.m(n, m)) : p && (B(), _(p, 1, 1, () => {
|
|
334
|
+
p = null;
|
|
384
335
|
}), R()), /*showButton*/
|
|
385
|
-
|
|
386
|
-
16 && k(u, 1)) : (u = N(
|
|
336
|
+
s[4] ? u ? (u.p(s, v), v & /*showButton*/
|
|
337
|
+
16 && k(u, 1)) : (u = N(s), u.c(), k(u, 1), u.m(f, C)) : u && (B(), _(u, 1, 1, () => {
|
|
387
338
|
u = null;
|
|
388
339
|
}), R());
|
|
389
340
|
const y = {};
|
|
390
341
|
v & /*buttonState*/
|
|
391
342
|
8 && (y.onClick = /*func*/
|
|
392
|
-
|
|
343
|
+
s[14]), v & /*buttonState*/
|
|
393
344
|
8 && (y.text = /*buttonTextMap*/
|
|
394
|
-
|
|
345
|
+
s[6][
|
|
395
346
|
/*buttonState*/
|
|
396
|
-
|
|
347
|
+
s[3]
|
|
397
348
|
]), v & /*buttonState*/
|
|
398
349
|
8 && (y.color = /*buttonColorMap*/
|
|
399
|
-
|
|
350
|
+
s[7][
|
|
400
351
|
/*buttonState*/
|
|
401
|
-
|
|
352
|
+
s[3]
|
|
402
353
|
]), c.$set(y), (!M || v & /*allowAddPoint*/
|
|
403
354
|
32) && D(r, "forbid", !/*allowAddPoint*/
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
16 && k(d, 1)) : (d = Q(
|
|
355
|
+
s[5]), /*showButton*/
|
|
356
|
+
s[4] ? d ? (d.p(s, v), v & /*showButton*/
|
|
357
|
+
16 && k(d, 1)) : (d = Q(s), d.c(), k(d, 1), d.m(f, null)) : d && (B(), _(d, 1, 1, () => {
|
|
407
358
|
d = null;
|
|
408
359
|
}), R());
|
|
409
360
|
},
|
|
410
|
-
i(
|
|
411
|
-
M || (k(b), k(
|
|
361
|
+
i(s) {
|
|
362
|
+
M || (k(b), k(p), k(u), k(c.$$.fragment, s), k(d), M = !0);
|
|
412
363
|
},
|
|
413
|
-
o(
|
|
414
|
-
_(b), _(
|
|
364
|
+
o(s) {
|
|
365
|
+
_(b), _(p), _(u), _(c.$$.fragment, s), _(d), M = !1;
|
|
415
366
|
},
|
|
416
|
-
d(
|
|
417
|
-
|
|
367
|
+
d(s) {
|
|
368
|
+
s && K(t), b && b.d(), p && p.d(), u && u.d(), U(c), d && d.d();
|
|
418
369
|
}
|
|
419
370
|
};
|
|
420
371
|
}
|
|
421
372
|
const P = 100;
|
|
422
373
|
function de(o, t, i) {
|
|
423
|
-
let { measureController: e } = t, { showExit:
|
|
374
|
+
let { measureController: e } = t, { showExit: a = !1 } = t, { i18n: l = (h) => h } = t;
|
|
424
375
|
const n = {
|
|
425
376
|
start: l("开始"),
|
|
426
377
|
add: l("添加"),
|
|
427
378
|
end: l("结束"),
|
|
428
379
|
complete: l("完成")
|
|
429
|
-
},
|
|
380
|
+
}, m = {
|
|
430
381
|
start: "white",
|
|
431
382
|
add: "white",
|
|
432
383
|
end: "blue",
|
|
@@ -434,52 +385,52 @@ function de(o, t, i) {
|
|
|
434
385
|
};
|
|
435
386
|
let f = !1, C = !0, r = "start", c = e.currentMeasureType;
|
|
436
387
|
const z = () => {
|
|
437
|
-
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (
|
|
388
|
+
e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (p("add"), M());
|
|
438
389
|
}, M = () => {
|
|
439
390
|
e.controller instanceof H && e.controller.selectPoint();
|
|
440
391
|
}, b = () => {
|
|
441
392
|
e.controller instanceof H && e.controller.complete();
|
|
442
|
-
},
|
|
393
|
+
}, p = (h) => {
|
|
443
394
|
i(3, r = h);
|
|
444
395
|
}, u = () => {
|
|
445
396
|
M(), A("allow");
|
|
446
397
|
}, d = () => {
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
e.currentMeasureType === "area" && r === "complete" &&
|
|
398
|
+
p("complete");
|
|
399
|
+
}, s = () => {
|
|
400
|
+
e.currentMeasureType === "area" && r === "complete" && p("add");
|
|
450
401
|
}, v = (h) => {
|
|
451
402
|
h.length;
|
|
452
403
|
}, y = () => {
|
|
453
|
-
|
|
404
|
+
p("start"), A("allow");
|
|
454
405
|
}, A = (h) => {
|
|
455
406
|
i(5, C = h === "allow");
|
|
456
407
|
}, G = (h) => {
|
|
457
408
|
i(12, c = h);
|
|
458
409
|
}, Z = (h) => {
|
|
459
|
-
h.isEmpty &&
|
|
410
|
+
h.isEmpty && p("start");
|
|
460
411
|
};
|
|
461
412
|
ie(() => {
|
|
462
|
-
e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete",
|
|
413
|
+
e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete", s), e.hook.on("complete", y);
|
|
463
414
|
}), le(() => {
|
|
464
|
-
e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete",
|
|
415
|
+
e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete", s), e.hook.off("complete", y);
|
|
465
416
|
});
|
|
466
417
|
const $ = () => e.revoke(), x = () => {
|
|
467
418
|
r === "start" ? z() : r === "add" ? M() : (r === "end" || r === "complete") && u();
|
|
468
419
|
};
|
|
469
420
|
return o.$$set = (h) => {
|
|
470
|
-
"measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1,
|
|
421
|
+
"measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1, a = h.showExit), "i18n" in h && i(2, l = h.i18n);
|
|
471
422
|
}, o.$$.update = () => {
|
|
472
423
|
o.$$.dirty & /*currentMeasureType, buttonState*/
|
|
473
424
|
4104 && i(4, f = c === "area" && r !== "start");
|
|
474
425
|
}, [
|
|
475
426
|
e,
|
|
476
|
-
|
|
427
|
+
a,
|
|
477
428
|
l,
|
|
478
429
|
r,
|
|
479
430
|
f,
|
|
480
431
|
C,
|
|
481
432
|
n,
|
|
482
|
-
|
|
433
|
+
m,
|
|
483
434
|
z,
|
|
484
435
|
M,
|
|
485
436
|
b,
|
|
@@ -489,7 +440,7 @@ function de(o, t, i) {
|
|
|
489
440
|
x
|
|
490
441
|
];
|
|
491
442
|
}
|
|
492
|
-
class
|
|
443
|
+
class Vt extends ee {
|
|
493
444
|
constructor(t) {
|
|
494
445
|
super(), te(
|
|
495
446
|
this,
|
|
@@ -507,5 +458,5 @@ class Jo extends ee {
|
|
|
507
458
|
}
|
|
508
459
|
}
|
|
509
460
|
export {
|
|
510
|
-
|
|
461
|
+
Vt as default
|
|
511
462
|
};
|
|
@@ -19,13 +19,14 @@ import "../../shared-utils/uuid.js";
|
|
|
19
19
|
import "../utils/line.js";
|
|
20
20
|
import "../../shared-utils/five/FiveLine.js";
|
|
21
21
|
import "@realsee/five/line";
|
|
22
|
+
import "../../shared-utils/isNil.js";
|
|
22
23
|
import "../utils/constants.js";
|
|
23
24
|
import "@realsee/five";
|
|
24
25
|
import "../utils/dom/distanceItem.js";
|
|
25
26
|
import "../utils/dom/base.js";
|
|
26
27
|
import "../utils/isNDCPointInScreen.js";
|
|
27
28
|
import "../../shared-utils/three/centerPoint.js";
|
|
28
|
-
class
|
|
29
|
+
class B {
|
|
29
30
|
constructor(e) {
|
|
30
31
|
i(this, "model");
|
|
31
32
|
i(this, "five");
|
|
@@ -87,5 +88,5 @@ class V {
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
+
B as default
|
|
91
92
|
};
|