@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,13 +1,14 @@
|
|
|
1
|
-
import { SvelteComponent as j, init as x, safe_not_equal as B, append_styles as F, binding_callbacks as G, bind as H, element as h, space as C, create_component as P, attr as g, insert as R, append as
|
|
1
|
+
import { SvelteComponent as j, init as x, safe_not_equal as B, append_styles as F, binding_callbacks as G, bind as H, element as h, space as C, create_component as P, attr as g, insert as R, append as s, mount_component as T, transition_in as w, transition_out as I, check_outros as J, add_flush_callback as K, detach as U, destroy_component as W, onMount as N, onDestroy as Q, text as y, set_style as E, toggle_class as z, listen as S, set_data as A, run_all as V, group_outros as X } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import Y from "./Common/Switcher0.js";
|
|
3
3
|
import Z from "./Common/Exit.js";
|
|
4
4
|
import $ from "../Controller/EditController.js";
|
|
5
|
-
import { IconLine as q, IconArea as D, IconUndo as
|
|
5
|
+
import { IconLine as q, IconArea as D, IconUndo as ee, IconOk as te } from "./Common/icons/index.js";
|
|
6
6
|
import "../Model/line.js";
|
|
7
7
|
import "../../shared-utils/uuid.js";
|
|
8
8
|
import "../utils/line.js";
|
|
9
9
|
import "../../shared-utils/five/FiveLine.js";
|
|
10
10
|
import "@realsee/five/line";
|
|
11
|
+
import "../../shared-utils/isNil.js";
|
|
11
12
|
import "../utils/constants.js";
|
|
12
13
|
import "three";
|
|
13
14
|
import "@realsee/five";
|
|
@@ -54,73 +55,23 @@ 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 "../../
|
|
66
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
67
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
68
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
69
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
70
|
-
import "../../base/BasePlugin.js";
|
|
71
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
72
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
73
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
74
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
75
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
76
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
77
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
78
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
79
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
80
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
81
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
82
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
61
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
62
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
83
63
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
84
64
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
85
65
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
86
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
87
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
88
|
-
import "../../shared-utils/util.js";
|
|
89
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
90
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
91
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
92
66
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
93
67
|
import "../../Sculpt/Meshes/Line.js";
|
|
68
|
+
import "../../Sculpt/typings/style.js";
|
|
94
69
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
95
70
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
96
71
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
72
|
+
import "../../shared-utils/util.js";
|
|
73
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
97
74
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
98
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
99
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
100
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
101
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
102
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
103
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
104
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
105
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
106
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
107
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
108
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
109
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
110
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
111
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
112
|
-
import "../../shared-utils/math/rad2Deg.js";
|
|
113
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
114
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
115
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
116
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
117
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
118
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
119
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
120
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
121
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
122
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
123
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
124
75
|
import "../../shared-utils/isTouchDevice.js";
|
|
125
76
|
import "../../shared-utils/five/getPosition.js";
|
|
126
77
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
@@ -130,7 +81,7 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
|
130
81
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
131
82
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
132
83
|
import "../utils/math.js";
|
|
133
|
-
function
|
|
84
|
+
function oe(n) {
|
|
134
85
|
F(n, "svelte-468fdd", '*.forbid.svelte-468fdd.svelte-468fdd{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-468fdd.svelte-468fdd{pointer-events:none;position:relative;width:100%;height:100%;z-index:2}.Measure-Controller.svelte-468fdd .mode-switcher.svelte-468fdd{margin-top:2.25rem}.Measure-Controller.svelte-468fdd .bottom.svelte-468fdd{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-468fdd .bottom .mask.svelte-468fdd{position:absolute;bottom:0;width:100%;height:11.5rem;background-size:100%;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3))}.Measure-Controller.svelte-468fdd .bottom .center.svelte-468fdd{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-468fdd .buttons.svelte-468fdd{pointer-events:all;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd{cursor:pointer;display:flex;align-items:center;position:relative;font-size:0.875rem;padding:0rem 1rem}.Measure-Controller.svelte-468fdd .buttons .button .icon.svelte-468fdd{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin-right:0.25rem}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd::after{content:"";position:absolute;display:block;right:-0.03125rem;height:1.5rem;width:0.0625rem;background-image:linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);background-size:100%;background-repeat:no-repeat;background-position:center}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd:last-child::after{display:none}');
|
|
135
86
|
}
|
|
136
87
|
function L(n) {
|
|
@@ -146,41 +97,41 @@ function L(n) {
|
|
|
146
97
|
c() {
|
|
147
98
|
P(o.$$.fragment);
|
|
148
99
|
},
|
|
149
|
-
m(
|
|
150
|
-
T(o,
|
|
100
|
+
m(t, p) {
|
|
101
|
+
T(o, t, p), i = !0;
|
|
151
102
|
},
|
|
152
|
-
p(
|
|
103
|
+
p(t, p) {
|
|
153
104
|
const f = {};
|
|
154
|
-
|
|
105
|
+
p & /*measureController*/
|
|
155
106
|
1 && (f.onClick = /*measureController*/
|
|
156
|
-
|
|
107
|
+
t[0].disable), o.$set(f);
|
|
157
108
|
},
|
|
158
|
-
i(
|
|
159
|
-
i || (w(o.$$.fragment,
|
|
109
|
+
i(t) {
|
|
110
|
+
i || (w(o.$$.fragment, t), i = !0);
|
|
160
111
|
},
|
|
161
|
-
o(
|
|
162
|
-
I(o.$$.fragment,
|
|
112
|
+
o(t) {
|
|
113
|
+
I(o.$$.fragment, t), i = !1;
|
|
163
114
|
},
|
|
164
|
-
d(
|
|
165
|
-
W(o,
|
|
115
|
+
d(t) {
|
|
116
|
+
W(o, t);
|
|
166
117
|
}
|
|
167
118
|
};
|
|
168
119
|
}
|
|
169
120
|
function O(n) {
|
|
170
|
-
let o, i,
|
|
121
|
+
let o, i, t, p, f = (
|
|
171
122
|
/*i18n*/
|
|
172
123
|
n[2]("撤销") + ""
|
|
173
|
-
),
|
|
124
|
+
), m, v, d, a, b, c = (
|
|
174
125
|
/*i18n*/
|
|
175
126
|
n[2]("结束") + ""
|
|
176
127
|
), r, l, _;
|
|
177
128
|
return {
|
|
178
129
|
c() {
|
|
179
|
-
o = h("div"), i = h("div"),
|
|
180
|
-
n[3]), g(
|
|
130
|
+
o = h("div"), i = h("div"), t = h("div"), p = C(), m = y(f), v = C(), d = h("div"), a = h("div"), b = C(), r = y(c), g(t, "class", "icon svelte-468fdd"), E(t, "background-image", `url(${ee})`), g(i, "class", "button svelte-468fdd"), z(i, "forbid", !/*canRevoke*/
|
|
131
|
+
n[3]), g(a, "class", "icon svelte-468fdd"), E(a, "background-image", `url(${te})`), g(d, "class", "button svelte-468fdd"), g(o, "class", "buttons svelte-468fdd");
|
|
181
132
|
},
|
|
182
|
-
m(u,
|
|
183
|
-
R(u, o,
|
|
133
|
+
m(u, e) {
|
|
134
|
+
R(u, o, e), s(o, i), s(i, t), s(i, p), s(i, m), s(o, v), s(o, d), s(d, a), s(d, b), s(d, r), l || (_ = [
|
|
184
135
|
S(
|
|
185
136
|
i,
|
|
186
137
|
"click",
|
|
@@ -188,19 +139,19 @@ function O(n) {
|
|
|
188
139
|
n[7]
|
|
189
140
|
),
|
|
190
141
|
S(
|
|
191
|
-
|
|
142
|
+
d,
|
|
192
143
|
"click",
|
|
193
144
|
/*complete*/
|
|
194
145
|
n[6]
|
|
195
146
|
)
|
|
196
147
|
], l = !0);
|
|
197
148
|
},
|
|
198
|
-
p(u,
|
|
199
|
-
|
|
149
|
+
p(u, e) {
|
|
150
|
+
e & /*i18n*/
|
|
200
151
|
4 && f !== (f = /*i18n*/
|
|
201
|
-
u[2]("撤销") + "") && A(
|
|
152
|
+
u[2]("撤销") + "") && A(m, f), e & /*canRevoke*/
|
|
202
153
|
8 && z(i, "forbid", !/*canRevoke*/
|
|
203
|
-
u[3]),
|
|
154
|
+
u[3]), e & /*i18n*/
|
|
204
155
|
4 && c !== (c = /*i18n*/
|
|
205
156
|
u[2]("结束") + "") && A(r, c);
|
|
206
157
|
},
|
|
@@ -209,16 +160,16 @@ function O(n) {
|
|
|
209
160
|
}
|
|
210
161
|
};
|
|
211
162
|
}
|
|
212
|
-
function
|
|
213
|
-
let o, i,
|
|
163
|
+
function ie(n) {
|
|
164
|
+
let o, i, t, p, f, m, v, d, a, b, c, r = (
|
|
214
165
|
/*showExit*/
|
|
215
166
|
n[1] && L(n)
|
|
216
167
|
), l = (
|
|
217
168
|
/*showController*/
|
|
218
169
|
n[5] && O(n)
|
|
219
170
|
);
|
|
220
|
-
function _(
|
|
221
|
-
n[9](
|
|
171
|
+
function _(e) {
|
|
172
|
+
n[9](e);
|
|
222
173
|
}
|
|
223
174
|
let u = {
|
|
224
175
|
options: [
|
|
@@ -247,20 +198,20 @@ function it(n) {
|
|
|
247
198
|
return (
|
|
248
199
|
/*setSwitcherActiveIndex*/
|
|
249
200
|
n[4] !== void 0 && (u.setIndex = /*setSwitcherActiveIndex*/
|
|
250
|
-
n[4]),
|
|
201
|
+
n[4]), a = new Y({ props: u }), G.push(() => H(a, "setIndex", _)), {
|
|
251
202
|
c() {
|
|
252
|
-
o = h("div"), r && r.c(), i = C(),
|
|
203
|
+
o = h("div"), r && r.c(), i = C(), t = h("div"), p = h("div"), f = C(), m = h("div"), l && l.c(), v = C(), d = h("div"), P(a.$$.fragment), g(p, "class", "mask svelte-468fdd"), g(d, "class", "mode-switcher svelte-468fdd"), g(m, "class", "center svelte-468fdd"), g(t, "class", "bottom svelte-468fdd"), g(o, "class", "Measure-Controller svelte-468fdd");
|
|
253
204
|
},
|
|
254
|
-
m(
|
|
255
|
-
R(
|
|
205
|
+
m(e, k) {
|
|
206
|
+
R(e, o, k), r && r.m(o, null), s(o, i), s(o, t), s(t, p), s(t, f), s(t, m), l && l.m(m, null), s(m, v), s(m, d), T(a, d, null), c = !0;
|
|
256
207
|
},
|
|
257
|
-
p(
|
|
208
|
+
p(e, [k]) {
|
|
258
209
|
/*showExit*/
|
|
259
|
-
|
|
260
|
-
2 && w(r, 1)) : (r = L(
|
|
210
|
+
e[1] ? r ? (r.p(e, k), k & /*showExit*/
|
|
211
|
+
2 && w(r, 1)) : (r = L(e), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
|
|
261
212
|
r = null;
|
|
262
213
|
}), J()), /*showController*/
|
|
263
|
-
|
|
214
|
+
e[5] ? l ? l.p(e, k) : (l = O(e), l.c(), l.m(m, v)) : l && (l.d(1), l = null);
|
|
264
215
|
const M = {};
|
|
265
216
|
k & /*i18n*/
|
|
266
217
|
4 && (M.options = [
|
|
@@ -268,7 +219,7 @@ function it(n) {
|
|
|
268
219
|
key: "line",
|
|
269
220
|
value: (
|
|
270
221
|
/*i18n*/
|
|
271
|
-
|
|
222
|
+
e[2]("测距离")
|
|
272
223
|
),
|
|
273
224
|
icon: q
|
|
274
225
|
},
|
|
@@ -276,86 +227,86 @@ function it(n) {
|
|
|
276
227
|
key: "area",
|
|
277
228
|
value: (
|
|
278
229
|
/*i18n*/
|
|
279
|
-
|
|
230
|
+
e[2]("测面积")
|
|
280
231
|
),
|
|
281
232
|
icon: D
|
|
282
233
|
}
|
|
283
234
|
]), k & /*measureController*/
|
|
284
235
|
1 && (M.onChange = /*func*/
|
|
285
|
-
|
|
236
|
+
e[8]), !b && k & /*setSwitcherActiveIndex*/
|
|
286
237
|
16 && (b = !0, M.setIndex = /*setSwitcherActiveIndex*/
|
|
287
|
-
|
|
238
|
+
e[4], K(() => b = !1)), a.$set(M);
|
|
288
239
|
},
|
|
289
|
-
i(
|
|
290
|
-
c || (w(r), w(
|
|
240
|
+
i(e) {
|
|
241
|
+
c || (w(r), w(a.$$.fragment, e), c = !0);
|
|
291
242
|
},
|
|
292
|
-
o(
|
|
293
|
-
I(r), I(
|
|
243
|
+
o(e) {
|
|
244
|
+
I(r), I(a.$$.fragment, e), c = !1;
|
|
294
245
|
},
|
|
295
|
-
d(
|
|
296
|
-
|
|
246
|
+
d(e) {
|
|
247
|
+
e && U(o), r && r.d(), l && l.d(), W(a);
|
|
297
248
|
}
|
|
298
249
|
}
|
|
299
250
|
);
|
|
300
251
|
}
|
|
301
|
-
function
|
|
302
|
-
let { measureController:
|
|
303
|
-
function
|
|
304
|
-
|
|
252
|
+
function re(n, o, i) {
|
|
253
|
+
let { measureController: t } = o, { showExit: p = !1 } = o, { i18n: f = (e) => e } = o, m = !1, v;
|
|
254
|
+
function d(e) {
|
|
255
|
+
e === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
|
|
305
256
|
}
|
|
306
|
-
function
|
|
307
|
-
|
|
257
|
+
function a() {
|
|
258
|
+
t.controller instanceof $ && t.controller.complete(), t.save({ mode: "Watch" });
|
|
308
259
|
}
|
|
309
|
-
function b(
|
|
310
|
-
i(3,
|
|
260
|
+
function b(e) {
|
|
261
|
+
i(3, m = e.length > 0);
|
|
311
262
|
}
|
|
312
263
|
function c() {
|
|
313
|
-
i(3,
|
|
264
|
+
i(3, m = !1);
|
|
314
265
|
}
|
|
315
266
|
N(() => {
|
|
316
|
-
|
|
267
|
+
t.hook.on("modeChange", d), t.hook.on("complete", c), t.hook.on("pointsChange", b);
|
|
317
268
|
}), Q(() => {
|
|
318
|
-
|
|
269
|
+
t.hook.off("modeChange", d), t.hook.off("complete", c), t.hook.off("pointsChange", b);
|
|
319
270
|
});
|
|
320
271
|
let r = !1;
|
|
321
|
-
const l = () =>
|
|
322
|
-
|
|
272
|
+
const l = () => t.revoke(), _ = (e) => {
|
|
273
|
+
t.save().changeMode("Edit"), t.changeMeasureType(e);
|
|
323
274
|
};
|
|
324
|
-
function u(
|
|
325
|
-
v =
|
|
275
|
+
function u(e) {
|
|
276
|
+
v = e, i(4, v);
|
|
326
277
|
}
|
|
327
|
-
return n.$$set = (
|
|
328
|
-
"measureController" in
|
|
278
|
+
return n.$$set = (e) => {
|
|
279
|
+
"measureController" in e && i(0, t = e.measureController), "showExit" in e && i(1, p = e.showExit), "i18n" in e && i(2, f = e.i18n);
|
|
329
280
|
}, [
|
|
330
|
-
|
|
331
|
-
|
|
281
|
+
t,
|
|
282
|
+
p,
|
|
332
283
|
f,
|
|
333
|
-
|
|
284
|
+
m,
|
|
334
285
|
v,
|
|
335
286
|
r,
|
|
336
|
-
|
|
287
|
+
a,
|
|
337
288
|
l,
|
|
338
289
|
_,
|
|
339
290
|
u
|
|
340
291
|
];
|
|
341
292
|
}
|
|
342
|
-
class
|
|
293
|
+
class Pt extends j {
|
|
343
294
|
constructor(o) {
|
|
344
295
|
super(), x(
|
|
345
296
|
this,
|
|
346
297
|
o,
|
|
347
|
-
|
|
348
|
-
|
|
298
|
+
re,
|
|
299
|
+
ie,
|
|
349
300
|
B,
|
|
350
301
|
{
|
|
351
302
|
measureController: 0,
|
|
352
303
|
showExit: 1,
|
|
353
304
|
i18n: 2
|
|
354
305
|
},
|
|
355
|
-
|
|
306
|
+
oe
|
|
356
307
|
);
|
|
357
308
|
}
|
|
358
309
|
}
|
|
359
310
|
export {
|
|
360
|
-
|
|
311
|
+
Pt as default
|
|
361
312
|
};
|