@agrotools1/at-components 0.6.16 → 0.6.17
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/dist/Map/Map.d.ts +27 -4
- package/dist/Map/Map.vue.js +1 -1
- package/dist/Map/Map.vue2.js +162 -121
- package/dist/Stepper/Stepper.vue.js +48 -35
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/analysis/SlicePlane.js +23 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/ImageMaterial.glsl.js +56 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/Laserlines.glsl.js +7 -7
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/LineCallout.glsl.js +138 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/LineMarker.glsl.js +200 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/NativeLine.glsl.js +40 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/Path.glsl.js +111 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/Pattern.glsl.js +185 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/SlicePlaneMaterial.glsl.js +30 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/WaterSurface.glsl.js +158 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/chunks/vec32.js +13 -13
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/MapUtils.js +18 -11
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/PooledArray.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/accessorSupport/diffUtils.js +75 -48
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/arrayUtils.js +59 -53
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/asyncUtils.js +1 -1
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/colorUtils.js +77 -59
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/fontUtils.js +22 -18
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/handleUtils.js +12 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/libs/gl-matrix-2/factories/mat2f64.js +19 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/libs/gl-matrix-2/math/mat2.js +104 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/libs/gl-matrix-2/math/mat4.js +12 -12
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/mathUtils.js +29 -25
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/quantityFormatUtils.js +115 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/quantityUtils.js +38 -19
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/reactiveUtils.js +63 -49
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/scheduling.js +56 -48
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/time.js +9 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/unitFormatUtils.js +95 -41
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/core/unitUtils.js +130 -89
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/Circle.js +82 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/ellipsoidUtils.js +1 -1
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/projection/projectBoundingRect.js +11 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/projection/projectPointToVector.js +16 -12
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/projection/projectPolygonToWGS84ComparableLonLat.js +22 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/projection/projectPolylineToWGS84ComparableLonLat.js +22 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/projection/projectVectorToPoint.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/projection.js +1 -1
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/spatialReferenceEllipsoidUtils.js +12 -12
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/FloatArray.js +12 -4
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/Indices.js +26 -22
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/aaBoundingBox.js +133 -74
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/aaBoundingRect.js +78 -49
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/axisAngleDegrees.js +13 -13
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/buffer/BufferView.js +93 -93
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/coordsUtils.js +132 -68
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/geodesicUtils.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/heightModelInfoUtils.js +71 -19
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/lineSegment.js +12 -12
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/meshUtils/External.js +4 -4
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/plane.js +107 -89
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/ray.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/rotate.js +44 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/triangle.js +16 -11
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/vector.js +14 -9
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/geometry/support/vectorStacks.js +6 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/graphics/data/QueryEngine.js +12 -12
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/graphics/dehydratedFeatures.js +64 -13
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/graphics/hydratedFeatures.js +54 -46
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/graphics/sources/support/uploadAssets.js +6 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/mixins/ArcGISMapService.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/mixins/PortalLayer.js +4 -4
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/support/ElevationSampler.js +4 -4
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/support/layerUtils.js +44 -24
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/layers/support/vectorTileLayerLoader.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/libs/maquette/h.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/renderers/UniqueValueRenderer.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/renderers/support/AuthoringInfo.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/renderers/support/numberUtils.js +65 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/renderers/support/rendererConversion.js +55 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/renderers/support/renderingInfoUtils.js +115 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/renderers/visualVariables/support/visualVariableUtils.js +195 -149
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/support/actions/ActionSlider.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/support/basemapUtils.js +31 -26
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/support/elevationInfoUtils.js +77 -57
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/support/progressUtils.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/callouts/calloutUtils.js +20 -12
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/cim/CIMSymbolRasterizer.js +80 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/cim/utils.js +100 -76
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/IconSymbol3DLayerResource.js +11 -9
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/ObjectSymbol3DLayerResource.js +7 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/cimSymbolUtils.js +169 -16
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/defaults3D.js +31 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/defaultsJSON.js +8 -7
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/gfxUtils.js +89 -9
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/previewCIMSymbol.js +47 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/previewSymbol2D.js +142 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/previewSymbol3D.js +288 -37
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/previewUtils.js +87 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/previewWebStyleSymbol.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/renderUtils.js +82 -9
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/styleUtils.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/svgUtils.js +271 -7
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/symbolLayerUtils3D.js +34 -16
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/symbolUtils.js +147 -41
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/symbols/support/utils.js +169 -128
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/ControlPointsTransformTool.js +149 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/MediaTransformToolsWrapper.js +78 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/TransformTool.js +218 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +70 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/draw/symbols.js +9 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/manipulations/DragManipulation.js +50 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/manipulations/Manipulation.js +28 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/manipulations/RotateManipulation.js +50 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +78 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools/manipulations/utils.js +54 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/interactive/editingTools.js +10 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/layers/FeatureLayerView2D.js +6 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/layers/ImageryLayerView2D.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/layers/TileLayerView2D.js +8 -8
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/layers/features/Processor.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/layers/support/ExportStrategy.js +5 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/2d/navigation/MapViewNavigation.js +4 -4
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/Slice/ResizeManipulator.js +31 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/Slice/RotateManipulator.js +38 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/Slice/ShiftManipulator.js +88 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/Slice/sliceToolConfig.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/Slice/sliceToolUtils.js +129 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/images/Factory.js +11 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/images/generateTextures.js +27 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/analysis/images/heading-rotate-svg.js +4 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/environment/CloudsParameters.js +5 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/environment/weather.js +3 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/SegmentLabels3D.js +24 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/GrabbingState.js +7 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/ManipulatorState.js +23 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/ManipulatorType.js +7 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/dragEventPipeline3D.js +121 -67
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +138 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/geometryUtils.js +22 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/isSupportedGraphicUtils.js +26 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/lineGraphicVisualElementUtils.js +74 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/Manipulation.js +53 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/MoveManipulation.js +84 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +116 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +90 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/MoveXYGraphicManipulation.js +36 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +96 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/config.js +29 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulations/moveUtils.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/manipulatorUtils.js +7 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/meshFastUpdateUtils.js +34 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +256 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/moveGraphic/isSupportedGraphic.js +23 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/originGraphicVisualElementUtils.js +94 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/reshapeGraphic/GraphicReshapeTool.js +93 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +738 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +39 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/reshapeGraphic/isSupportedGraphic.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/settings.js +124 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/snapping/SnapToScene.js +38 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/ExtentMove.js +108 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/ExtentRotate.js +96 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/ExtentScale.js +138 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +164 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +331 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +170 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/PreserveAspectRatio.js +32 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +96 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/ScaleRotateObjectSymbol3DAdapter.js +142 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/extentUtils.js +71 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/isSupportedGraphic.js +27 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +37 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools/visualElementUtils.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/editingTools.js +12 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/manipulatorUtils.js +50 -38
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +4 -4
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +5 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/visualElements/OutlineVisualElement.js +196 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/interactive/visualElements/VerticesVisualElement.js +108 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/GraphicsLayerView3D.js +110 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/LayerView3D.js +42 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/DisplayFeatureLimit.js +8 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/ElevationAligners.js +87 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/ElevationQuery.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/ExtentSet.js +71 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/GraphicState.js +16 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/GraphicStateTracking.js +65 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DCalloutSymbolLayerFactory.js +16 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DCore.js +1110 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +84 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DElevationAlignment.js +93 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +221 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DFeatureStore.js +43 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +78 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DGraphic.js +164 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DGraphicCreationContext.js +8 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +367 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +115 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +226 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +96 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +511 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +91 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +147 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DObjectMetadata.js +8 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DObjectStateSet.js +16 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DObjectStates.js +69 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +347 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +240 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DPathSymbolLayerConstants.js +6 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DPointSymbol.js +51 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +203 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DScaleVisibility.js +145 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DSymbol.js +158 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +14 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DSymbolFactory.js +8 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DSymbolLayer.js +195 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DSymbolLayerFactory.js +19 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +153 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +151 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +57 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/GraphicsCorePerformanceInfo.js +8 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/GraphicsProcessor.js +192 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/LabelParameters.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/Loadable.js +32 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/MeshFastUpdateProcessor.js +85 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/SpatialIndex2D.js +70 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/SymbolComplexity.js +32 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/constants.js +6 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/defaultSymbolComplexity.js +152 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/elevationAlignPointsInFeatures.js +35 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/elevationAlignmentUtils.js +107 -33
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/enums.js +10 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/featureExpressionInfoUtils.js +48 -25
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/graphicUtils.js +119 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/interfaces.js +7 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/lineUtils.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/lodResourceUtils.js +16 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/objectResourceUtils.js +15 -15
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/placementUtils.js +45 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/pointUtils.js +45 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/polygonUtils.js +60 -29
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +45 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/queryForSymbologySnapping.js +32 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/symbolMemory.js +6 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/graphics/webStyleUtils.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/FastSymbolUpdates.js +323 -31
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/LayerViewPerformanceInfo.js +8 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/StageLayerElevationProvider.js +76 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/edgeUtils.js +37 -8
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/layerUtils.js +10 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/patternUtils.js +52 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/projectExtentUtils.js +14 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/symbolColorUtils.js +28 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/layers/support/uvUtils.js +68 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/ElevationProvider.js +11 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/ElevationUpdateEvent.js +9 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/FrustumExtentIntersection.js +105 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/buffer/InterleavedLayout.js +5 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/engineContent/line.js +68 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/engineContent/marker.js +3 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/extentUtils.js +12 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/geometryUtils/ray.js +15 -11
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/intersectionUtils.js +33 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/mathUtils.js +13 -8
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/orientedBoundingBox.js +22 -22
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/renderInfoUtils/line.js +29 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/renderInfoUtils/point.js +13 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/support/renderInfoUtils/polygon.js +63 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +25 -17
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +105 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +1 -1
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/shading/FoamRendering.glsl.js +16 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js +14 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +19 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +53 -13
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +123 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +85 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +68 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +105 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/core/shaderModules/TextureCubePassUniform.js +10 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/effects/RenderPlugin.js +5 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/AnimationTimer.js +15 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/BoundingInfo.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/FontMetrics.js +30 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/GeometryUtil.js +308 -73
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/GeometryWithMapPositions.js +19 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/Intersector.js +14 -14
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/Normals.js +16 -8
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/Object3D.js +14 -14
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/Object3DStateSet.js +57 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/Octree.js +4 -4
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/Path.js +40 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/PathBuilder.js +62 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/PathCapBuilder.js +100 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/PathExtruder.js +53 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/PathGeometry.js +19 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/PathGeometryData.js +94 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/PathProfile.js +62 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/PathVertex.js +81 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/TextHelperCanvas.js +6 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/TextRenderParameters.js +46 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/TextRenderer.js +219 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/TextTextureAtlas.js +212 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/TextTextureFactory.js +30 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +5 -5
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/BackedBufferObject.js +43 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +174 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/Intersector.js +13 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/LevelSelector.js +15 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/LodComponentData.js +43 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/LodLevel.js +48 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +264 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/LodResources.js +44 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +110 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/lib/pathGeometryUtils.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/DefaultLayouts.js +12 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/DefaultMaterial.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/ImageMaterial.js +66 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/LineCalloutMaterial.js +68 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/LineMarkerMaterial.js +104 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/NativeLineMaterial.js +106 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/PathMaterial.js +74 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/PathTechnique.js +49 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/PatternMaterial.js +86 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/PatternStyle.js +7 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/WaterGLMaterial.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/WaterMaterial.js +48 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/WaterTechnique.js +48 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +122 -109
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +4 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/lineStippleUtils.js +18 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/materials/renderers/utils.js +15 -9
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +33 -27
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +15 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +45 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/LaserlineTechnique.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/LineCallout.glsl.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +27 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +12 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/LineMarker.glsl.js +24 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +32 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/NativeLine.glsl.js +15 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/NativeLineTechnique.js +28 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +13 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/Path.glsl.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/Pattern.glsl.js +19 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/PatternTechnique.js +46 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +12 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +29 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/DOMContainer.js +6 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/DrawGraphicTool.js +397 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/DrawOperation.js +1 -1
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/DrawScreenTool.js +126 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/drawSurfaces.js +47 -21
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/Box.js +481 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/GraphicMover.js +211 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/HighlightHelper.js +38 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/Reshape.js +556 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/createUtils.js +118 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/drawUtils.js +117 -23
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/helpMessageUtils.js +26 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/helpMessageUtils3d.js +22 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/input/GraphicMoverEvents.js +65 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/layerUtils.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/draw/support/settings.js +40 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/SegmentLabels.js +147 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/dragEventPipeline.js +165 -81
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/editGeometry/support/editPlaneUtils.js +52 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/keybindings.js +3 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/sketch/SketchOptions.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/sketch/SketchTooltipElevationOptions.js +19 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/sketch/SketchTooltipOptions.js +22 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/sketch/SketchTooltipVisibleElements.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/sketch/SketchValueOptions.js +26 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/sketch/constraints.js +25 -25
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/sketch/normalizedPoint.js +1 -1
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/snapping/FeatureSnappingEngine.js +6 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +6 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/DrawTooltipInfos.js +68 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/ExtentTooltipInfos.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/ReshapeTooltipInfos.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/SketchTooltipInfo.js +25 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/Tooltip.js +80 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/TransformTooltipInfos.js +30 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/TranslateTooltipInfos.js +64 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/components/DrawHeaderActions.js +34 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/components/TooltipEditableField.js +117 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/components/TooltipField.js +23 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/components/ValueByValue.js +23 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/components/directionModeIcons.js +4 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/constraintUtils.js +90 -91
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/Fields.js +9 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContent.js +150 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentDrawCircle.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentDrawMesh.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentDrawPoint.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +24 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +24 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentDrawRectangle.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentExtentRotate.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentExtentScale.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentReshapeEdgeOffset.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTransformAbsolute.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTransformRotate.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTransformScale.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTranslateGraphic.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTranslateGraphicXY.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTranslateGraphicZ.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTranslateVertex.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTranslateVertexXY.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/TooltipContentTranslateVertexZ.js +20 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/content/tooltipContentFactory.js +64 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/css.js +12 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/fields/TooltipField.js +29 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/fields/TooltipFieldElevation.js +21 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/interactive/tooltip/fields/fields.js +45 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/layers/WMSLayerView.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/layers/support/popupUtils.js +17 -13
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/overlay/OutlineOverlayItem.js +48 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/overlay/TextOverlayItem.js +76 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/DefaultsFromMap.js +3 -3
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/angularMeasurementUtils.js +87 -48
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/automaticAreaMeasurementUtils.js +16 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/automaticLengthMeasurementUtils.js +18 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/euclideanAreaMeasurementUtils.js +67 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/euclideanLengthMeasurementUtils.js +92 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/extentUtils.js +12 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/geodesicAreaMeasurementUtils.js +28 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/geodesicLengthMeasurementUtils.js +57 -27
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/geometry2dUtils.js +1 -1
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/hitTestSelectUtils.js +9 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/layerViewUtils.js +10 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/support/measurementUtils.js +9 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/webgl/Util.js +90 -70
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/views/webgl/testFloatBufferBlend.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Feature/FeatureRelationship.js +2 -2
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Feature/support/featureUtils.js +54 -49
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/LayerList/LayerListViewModel.js +113 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/LayerList/ListItem.js +144 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/LayerList/ListItemPanel.js +98 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/LayerList/support/layerListUtils.js +64 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/LegendViewModel.js +190 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/styles/Card.js +284 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/styles/CardCSS.js +4 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/styles/Classic.js +110 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/styles/ClassicCSS.js +5 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/styles/support/relationshipUtils.js +46 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/styles/support/univariateUtils.js +64 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/support/ActiveLayerInfo.js +1053 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/support/clusterUtils.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/support/colorRampUtils.js +54 -19
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/support/relationshipRampUtils.js +59 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/support/sizeRampUtils.js +155 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/support/styleUtils.js +44 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend/support/utils.js +75 -13
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Legend.js +115 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Sketch/SketchViewModel.js +886 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Sketch/VisibleElements.js +30 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Sketch/support/OperationHandle.js +81 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/Sketch.js +293 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/smartMapping/support/utils.js +32 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/Heading.js +13 -9
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/LabeledSwitch.js +11 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +74 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SelectionToolbar.js +138 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/Selector2D/SelectionOperation.js +95 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/Selector2D/selectorUtils.js +93 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SketchTooltipControls/VisibleElements.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SketchTooltipControls.js +66 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SnappingControls/SnappingControlsViewModel.js +79 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SnappingControls/SnappingLayerListViewModel.js +41 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SnappingControls/SnappingListItem.js +45 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SnappingControls/VisibleElements.js +17 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SnappingControls/snappingLayerListUtils.js +33 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/SnappingControls.js +141 -0
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/widget.js +7 -6
- package/dist/node_modules/.pnpm/@arcgis_core@4.29.10/node_modules/@arcgis/core/widgets/support/widgetUtils.js +19 -15
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-accordion-item.js +157 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-accordion.js +97 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-block.js +230 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-dropdown-group.js +97 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-dropdown-item.js +171 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-dropdown.js +11 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-radio-button-group.js +144 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-radio-button.js +11 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-switch.js +11 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/calcite-tooltip.js +290 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/dom.js +91 -79
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/dropdown.js +319 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/floating-ui.js +11 -10
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/radio-button.js +244 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/resources3.js +20 -0
- package/dist/node_modules/.pnpm/@esri_calcite-components@2.7.1/node_modules/@esri/calcite-components/dist/components/switch.js +123 -0
- package/dist/node_modules/.pnpm/@terraformer_arcgis@2.1.2/node_modules/@terraformer/arcgis/dist/t-arcgis.esm.js +124 -45
- package/dist/node_modules/.pnpm/@terraformer_wkt@2.2.1/node_modules/@terraformer/wkt/dist/t-wkt.esm.js +1287 -0
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/terraformer-wkt-parser.js +0 -4
- package/dist/_virtual/terraformer.js +0 -4
- package/dist/node_modules/.pnpm/terraformer-wkt-parser@1.2.1/node_modules/terraformer-wkt-parser/terraformer-wkt-parser.js +0 -469
- package/dist/node_modules/.pnpm/terraformer@1.0.12/node_modules/terraformer/terraformer.js +0 -637
|
@@ -0,0 +1,886 @@
|
|
|
1
|
+
import { _ as u } from "../../chunks/tslib.es6.js";
|
|
2
|
+
import { symbolTypes as A } from "../../symbols.js";
|
|
3
|
+
import x from "../../core/Collection.js";
|
|
4
|
+
import J from "../../core/Error.js";
|
|
5
|
+
import Q from "../../core/Evented.js";
|
|
6
|
+
import X from "../../core/Logger.js";
|
|
7
|
+
import { destroyMaybe as M, abortMaybe as I } from "../../core/maybe.js";
|
|
8
|
+
import { createAbortError as L, whenOrAbort as tt } from "../../core/promiseUtils.js";
|
|
9
|
+
import { on as F, watch as k, when as et, whenOnce as V, syncAndInitial as D } from "../../core/reactiveUtils.js";
|
|
10
|
+
import { property as m } from "../../core/accessorSupport/decorators/property.js";
|
|
11
|
+
import "../../core/has.js";
|
|
12
|
+
import "../../core/RandomLCG.js";
|
|
13
|
+
import { subclass as ot } from "../../core/accessorSupport/decorators/subclass.js";
|
|
14
|
+
import { getReferenceEllipsoid as at } from "../../geometry/ellipsoidUtils.js";
|
|
15
|
+
import { canProjectWithoutEngine as it, isLoaded as rt, load as st, project as nt } from "../../geometry/projection.js";
|
|
16
|
+
import { geometryToCoordinates as K } from "../../geometry/support/coordsUtils.js";
|
|
17
|
+
import { equals as pt } from "../../geometry/support/spatialReferenceUtils.js";
|
|
18
|
+
import lt from "../../layers/GraphicsLayer.js";
|
|
19
|
+
import { isIntegratedMeshLayer as ht } from "../../layers/support/layerUtils.js";
|
|
20
|
+
import { SupportedGraphicResult as E, isSupportedGraphicResultMessage as U } from "../../views/3d/interactive/editingTools/isSupportedGraphicUtils.js";
|
|
21
|
+
import { isSupportedGraphic as ct } from "../../views/3d/interactive/editingTools/moveGraphic/isSupportedGraphic.js";
|
|
22
|
+
import { isSupportedGraphic as C } from "../../views/3d/interactive/editingTools/reshapeGraphic/isSupportedGraphic.js";
|
|
23
|
+
import { isSupportedGraphic as dt } from "../../views/3d/interactive/editingTools/transformGraphic/isSupportedGraphic.js";
|
|
24
|
+
import { addUniqueLayer as W } from "../../views/draw/support/layerUtils.js";
|
|
25
|
+
import { ViewEventPriorities as G } from "../../views/input/InputManager.js";
|
|
26
|
+
import { sketchKeys as v } from "../../views/interactive/keybindings.js";
|
|
27
|
+
import ut from "../../views/interactive/sketch/SketchLabelOptions.js";
|
|
28
|
+
import j from "../../views/interactive/sketch/SketchOptions.js";
|
|
29
|
+
import yt from "../../views/interactive/sketch/SketchTooltipOptions.js";
|
|
30
|
+
import mt from "../../views/interactive/sketch/SketchValueOptions.js";
|
|
31
|
+
import { SnappingManager as Z } from "../../views/interactive/snapping/SnappingManager.js";
|
|
32
|
+
import B from "../../views/interactive/snapping/SnappingOptions.js";
|
|
33
|
+
import { setupSnappingToggleHandles as gt } from "../../views/interactive/snapping/snappingUtils.js";
|
|
34
|
+
import { findFirstGraphicHit as vt } from "../../views/support/hitTestSelectUtils.js";
|
|
35
|
+
import { createScreenPointFromEvent as $ } from "../../views/support/screenUtils.js";
|
|
36
|
+
import { CreateOperationHandle as ft, UpdateOperationHandle as T } from "./support/OperationHandle.js";
|
|
37
|
+
import q from "../../symbols/SimpleMarkerSymbol.js";
|
|
38
|
+
import _t from "../../symbols/SimpleFillSymbol.js";
|
|
39
|
+
import Gt from "../../symbols/SimpleLineSymbol.js";
|
|
40
|
+
import bt from "../../symbols/MeshSymbol3D.js";
|
|
41
|
+
import wt from "../../symbols/FillSymbol3DLayer.js";
|
|
42
|
+
const N = { defaultZ: 0 }, S = { reshapeOptions: { edgeOperation: "split", shapeOperation: "move", vertexOperation: "move" }, enableMoveAllGraphics: !0, enableRotation: !0, enableScaling: !0, multipleSelectionEnabled: !0, preserveAspectRatio: !1, toggleToolOnClick: !0, enableZ: !0, highlightOptions: { enabled: !0 }, tool: "transform" };
|
|
43
|
+
let d = class extends Q.EventedAccessor {
|
|
44
|
+
constructor(t) {
|
|
45
|
+
var e;
|
|
46
|
+
super(t), this._numUpdating = 0, this._defaultSnappingManager = null, this._internalGraphicsLayer = new lt({ listMode: "hide", internal: !0, title: "SVM Internal" }), this._operationHandle = null, this._viewHandlesKey = "viewHandles", this.activeFillSymbol = null, this.activeLineSymbol = null, this.activeVertexSymbol = null, this.allowDeleteKey = !0, this.layer = null, this.pointSymbol = new q({ style: "circle", size: 6, color: [255, 255, 255], outline: { color: [50, 50, 50], width: 1 } }), this.polygonSymbol = new _t({ color: [150, 150, 150, 0.2], outline: { color: [50, 50, 50], width: 2 } }), this.polylineSymbol = new Gt({ color: [130, 130, 130, 1], width: 2 }), this.meshSymbol = new bt({ symbolLayers: new x([new wt()]) }), this.updateGraphics = new x(), this.updateOnGraphicClick = !0, this.vertexSymbol = new q({ style: "circle", size: 6, color: [255, 255, 255], outline: { color: [50, 50, 50], width: 1 } }), this.sketchOptions = new j(), this._moduleLoaderAbortController = null, this._viewReadyAbortController = null, this._originalPopupEnabled = null, this.defaultCreateOptions = N, this.defaultUpdateOptions = S, this.snappingOptions = ((e = t == null ? void 0 : t.snappingManager) == null ? void 0 : e.options) ?? (t == null ? void 0 : t.snappingOptions) ?? new B();
|
|
47
|
+
}
|
|
48
|
+
initialize() {
|
|
49
|
+
this.addHandles([F(() => {
|
|
50
|
+
var t, e;
|
|
51
|
+
return (e = (t = this.view) == null ? void 0 : t.map) == null ? void 0 : e.layers;
|
|
52
|
+
}, "change", (t) => {
|
|
53
|
+
t.removed.includes(this.layer) && this.cancel();
|
|
54
|
+
}), F(() => {
|
|
55
|
+
var t;
|
|
56
|
+
return (t = this.layer) == null ? void 0 : t.graphics;
|
|
57
|
+
}, "change", (t) => {
|
|
58
|
+
if (this._operationHandle != null)
|
|
59
|
+
for (const e of t.removed)
|
|
60
|
+
this.updateGraphics.includes(e) && (this.updateGraphics.length > 1 ? this._operationHandle.removeFromSelection(e) : this._operationHandle.cancel());
|
|
61
|
+
}), k(() => {
|
|
62
|
+
var t;
|
|
63
|
+
return ((t = this.layer) == null ? void 0 : t.elevationInfo) ?? null;
|
|
64
|
+
}, (t) => {
|
|
65
|
+
t !== this._internalGraphicsLayer.elevationInfo && (this.cancel(), this._internalGraphicsLayer.elevationInfo = t);
|
|
66
|
+
}, D), k(() => this.view, (t) => {
|
|
67
|
+
this._defaultSnappingManager = M(this._defaultSnappingManager), t && (this.snappingManager || (this._defaultSnappingManager = new Z({ view: t, options: this.snappingOptions })), t.type === "2d" ? import("../../views/2d/interactive/editingTools.js") : t.type === "3d" && (import("../../views/3d/interactive/editingTools.js"), import("../../views/3d/layers/GraphicsLayerView3D.js")));
|
|
68
|
+
}, D), k(() => {
|
|
69
|
+
var t;
|
|
70
|
+
return (t = this.view) == null ? void 0 : t.spatialReference;
|
|
71
|
+
}, (t, e) => {
|
|
72
|
+
t && e && !t.equals(e) && this.cancel();
|
|
73
|
+
})]), gt(this);
|
|
74
|
+
}
|
|
75
|
+
destroy() {
|
|
76
|
+
this.cancel(), this._removeDefaultLayer(), this._defaultSnappingManager = M(this._defaultSnappingManager), this._set("snappingManager", null), this._set("view", null), this.emit("destroy");
|
|
77
|
+
}
|
|
78
|
+
get _defaultUpdateTool() {
|
|
79
|
+
var t;
|
|
80
|
+
return ((t = this.view) == null ? void 0 : t.type) === "3d" ? "move" : "transform";
|
|
81
|
+
}
|
|
82
|
+
get updating() {
|
|
83
|
+
return this._numUpdating > 0 || this.snappingManager != null && this.snappingManager.updating;
|
|
84
|
+
}
|
|
85
|
+
get activeTool() {
|
|
86
|
+
var t;
|
|
87
|
+
return ((t = this._operationHandle) == null ? void 0 : t.tool) ?? null;
|
|
88
|
+
}
|
|
89
|
+
get activeComponent() {
|
|
90
|
+
var t;
|
|
91
|
+
return ((t = this._operationHandle) == null ? void 0 : t.activeComponent) ?? null;
|
|
92
|
+
}
|
|
93
|
+
get createGraphic() {
|
|
94
|
+
return this.activeComponent == null || this.activeComponent.type !== "draw-3d" && this.activeComponent.type !== "draw-2d" ? this._get("createGraphic") : this.activeComponent.graphic;
|
|
95
|
+
}
|
|
96
|
+
get defaultCreateOptions() {
|
|
97
|
+
return this._get("defaultCreateOptions");
|
|
98
|
+
}
|
|
99
|
+
set defaultCreateOptions(t) {
|
|
100
|
+
this._set("defaultCreateOptions", { ...N, ...t });
|
|
101
|
+
}
|
|
102
|
+
get defaultUpdateOptions() {
|
|
103
|
+
return this._get("defaultUpdateOptions");
|
|
104
|
+
}
|
|
105
|
+
set defaultUpdateOptions(t) {
|
|
106
|
+
this._set("defaultUpdateOptions", { ...S, ...t, reshapeOptions: { ...S.reshapeOptions, ...t == null ? void 0 : t.reshapeOptions }, highlightOptions: { ...S.highlightOptions, ...t == null ? void 0 : t.highlightOptions } });
|
|
107
|
+
}
|
|
108
|
+
get labelOptions() {
|
|
109
|
+
return this.sketchOptions.labels;
|
|
110
|
+
}
|
|
111
|
+
set labelOptions(t) {
|
|
112
|
+
this.sketchOptions.labels = t;
|
|
113
|
+
}
|
|
114
|
+
get snappingOptions() {
|
|
115
|
+
var t;
|
|
116
|
+
return ((t = this.snappingManager) == null ? void 0 : t.options) ?? this._get("snappingOptions");
|
|
117
|
+
}
|
|
118
|
+
set snappingOptions(t) {
|
|
119
|
+
this._defaultSnappingManager != null && (this._defaultSnappingManager.options = t), this._set("snappingOptions", t);
|
|
120
|
+
}
|
|
121
|
+
get snappingManager() {
|
|
122
|
+
return this._isOverridden("snappingManager") && this._get("snappingManager"), this._defaultSnappingManager;
|
|
123
|
+
}
|
|
124
|
+
set snappingManager(t) {
|
|
125
|
+
if (t)
|
|
126
|
+
this._isOverridden("snappingManager") || (this._defaultSnappingManager = M(this._defaultSnappingManager)), this._override("snappingManager", t);
|
|
127
|
+
else {
|
|
128
|
+
const { view: e } = this;
|
|
129
|
+
!this._defaultSnappingManager && e && (this._defaultSnappingManager = new Z({ options: this.snappingOptions, view: e })), this._clearOverride("snappingManager");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
get state() {
|
|
133
|
+
var a;
|
|
134
|
+
const t = !(!((a = this.view) != null && a.ready) || !this.layer), e = this._operationHandle;
|
|
135
|
+
return t && e ? "active" : t ? "ready" : "disabled";
|
|
136
|
+
}
|
|
137
|
+
get tooltipOptions() {
|
|
138
|
+
return this.sketchOptions.tooltips;
|
|
139
|
+
}
|
|
140
|
+
set tooltipOptions(t) {
|
|
141
|
+
this.sketchOptions.tooltips = t;
|
|
142
|
+
}
|
|
143
|
+
get valueOptions() {
|
|
144
|
+
return this.sketchOptions.values;
|
|
145
|
+
}
|
|
146
|
+
set valueOptions(t) {
|
|
147
|
+
this.sketchOptions.values = t;
|
|
148
|
+
}
|
|
149
|
+
get view() {
|
|
150
|
+
return this._get("view");
|
|
151
|
+
}
|
|
152
|
+
set view(t) {
|
|
153
|
+
const e = this._get("view");
|
|
154
|
+
if (e) {
|
|
155
|
+
const { container: o, map: i } = e;
|
|
156
|
+
o && (e.cursor = null), i == null || i.remove(this._internalGraphicsLayer), this.removeHandles(this._viewHandlesKey), this.cancel();
|
|
157
|
+
}
|
|
158
|
+
const a = "view-ready";
|
|
159
|
+
this.removeHandles(a), t && this.addHandles(et(() => t.ready, (o) => {
|
|
160
|
+
this.removeHandles(this._viewHandlesKey), o && this.addHandles(this._generateViewHandles(t), this._viewHandlesKey);
|
|
161
|
+
}, D), a), this._set("view", t);
|
|
162
|
+
}
|
|
163
|
+
cancel() {
|
|
164
|
+
this._moduleLoaderAbortController = I(this._moduleLoaderAbortController), this._viewReadyAbortController = I(this._viewReadyAbortController), this._operationHandle && this._operationHandle.cancel();
|
|
165
|
+
}
|
|
166
|
+
complete() {
|
|
167
|
+
this._operationHandle && this._operationHandle.complete();
|
|
168
|
+
}
|
|
169
|
+
delete() {
|
|
170
|
+
const { state: t, updateGraphics: e } = this;
|
|
171
|
+
if (t === "active" && e.length) {
|
|
172
|
+
const { activeTool: a, layer: o } = this, i = e.toArray();
|
|
173
|
+
o.removeMany(i), this.cancel(), this._emitDeleteEvent({ graphics: i, tool: a });
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
duplicate() {
|
|
177
|
+
if (this.state === "active" && this.updateGraphics.length) {
|
|
178
|
+
const t = this.updateGraphics.map((e) => e.clone()).toArray();
|
|
179
|
+
return this.layer.addMany(t), this.emit("duplicate", { graphics: t, type: "duplicate" }), t;
|
|
180
|
+
}
|
|
181
|
+
return [];
|
|
182
|
+
}
|
|
183
|
+
async create(t, e) {
|
|
184
|
+
this.cancel(), await this._waitViewReady();
|
|
185
|
+
const { view: a, layer: o } = this;
|
|
186
|
+
if (!a || this.state === "disabled")
|
|
187
|
+
throw o || this._logMissingLayer(), L();
|
|
188
|
+
if (a.activeTool != null && (a.activeTool = null), !t)
|
|
189
|
+
return void this._logError("sketch:missing-parameter", "Missing parameter 'tool'.");
|
|
190
|
+
W(a, this._internalGraphicsLayer);
|
|
191
|
+
const i = await this._setupCreateOperation(t, e);
|
|
192
|
+
if (i == null || this.destroyed)
|
|
193
|
+
return void a.map.remove(this._internalGraphicsLayer);
|
|
194
|
+
const r = () => {
|
|
195
|
+
var p;
|
|
196
|
+
if (i === this._operationHandle) {
|
|
197
|
+
const s = this.createGraphic, c = this._operationHandle.cancelled;
|
|
198
|
+
this._operationHandle.destroy(), this._operationHandle = null, this._set("createGraphic", null), (p = this.view) != null && p.map && this.view.map.remove(this._internalGraphicsLayer), i.cancelled || s == null || o.add(s), this.emit("create", { graphic: s, state: c ? "cancel" : "complete", tool: t, toolEventInfo: null, type: "create" });
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
i.on("complete", r), this._operationHandle = i, a.ready && a.focus();
|
|
202
|
+
}
|
|
203
|
+
async place(t, e) {
|
|
204
|
+
return this.create("mesh", { mode: "click", hasZ: t.hasZ, geometryToPlace: t, ...e });
|
|
205
|
+
}
|
|
206
|
+
async update(t, e) {
|
|
207
|
+
this.cancel(), await this._waitViewReady();
|
|
208
|
+
const { layer: a, view: o, state: i } = this;
|
|
209
|
+
if (!o || i === "disabled")
|
|
210
|
+
throw a || this._logMissingLayer(), L();
|
|
211
|
+
o.activeTool != null && (o.activeTool = null);
|
|
212
|
+
const r = Array.isArray(t) ? t : [t];
|
|
213
|
+
if (t == null || !(r != null && r.length))
|
|
214
|
+
return void this._logError("sketch:missing-parameter", "Missing parameter 'graphics'.");
|
|
215
|
+
if (r.some((s) => s.layer !== a ? (this._logError("sketch:invalid-parameter", "Parameter 'graphics' contains one or more graphics missing from the supplied GraphicsLayer."), !0) : s.geometry == null && (this._logError("sketch:invalid-parameter", "Parameter 'graphics' contains one or more graphics with an unsupported geometry."), !0)))
|
|
216
|
+
return;
|
|
217
|
+
const p = await this._setupUpdateOperation(r, e);
|
|
218
|
+
this.destroyed || p == null || f(p) || (W(o, this._internalGraphicsLayer), this._setUpdateOperationHandle(p, e), this.emit("update", { graphics: r, state: "start", aborted: !1, tool: p.tool, toolEventInfo: null, type: "update" }));
|
|
219
|
+
}
|
|
220
|
+
async _updateSpatialReference(t) {
|
|
221
|
+
const e = this.view;
|
|
222
|
+
if (e) {
|
|
223
|
+
this._beginAsyncOperation(), t = Array.isArray(t) ? t : [t];
|
|
224
|
+
for (const a of t)
|
|
225
|
+
a.geometry == null || a.geometry.type === "mesh" || pt(a.geometry.spatialReference, e.spatialReference) || (it(a.geometry.spatialReference, e.spatialReference) || rt() || await st(), a.geometry = nt(a.geometry, e.spatialReference));
|
|
226
|
+
this._endAsyncOperation();
|
|
227
|
+
} else
|
|
228
|
+
this._logMissingView();
|
|
229
|
+
}
|
|
230
|
+
undo() {
|
|
231
|
+
var t;
|
|
232
|
+
this.canUndo() && ((t = this._operationHandle) == null || t.undo());
|
|
233
|
+
}
|
|
234
|
+
redo() {
|
|
235
|
+
var t;
|
|
236
|
+
this.canRedo() && ((t = this._operationHandle) == null || t.redo());
|
|
237
|
+
}
|
|
238
|
+
canUndo() {
|
|
239
|
+
return !(!this._operationHandle || !this._operationHandle.canUndo());
|
|
240
|
+
}
|
|
241
|
+
canRedo() {
|
|
242
|
+
return !(!this._operationHandle || !this._operationHandle.canRedo());
|
|
243
|
+
}
|
|
244
|
+
toggleUpdateTool() {
|
|
245
|
+
this._operationHandle && this._operationHandle.toggleTool && this._operationHandle.toggleTool();
|
|
246
|
+
}
|
|
247
|
+
async _getFirstHit(t) {
|
|
248
|
+
const e = this.view;
|
|
249
|
+
if (!e)
|
|
250
|
+
return this._logMissingView(), null;
|
|
251
|
+
if (e.type === "2d") {
|
|
252
|
+
const i = [];
|
|
253
|
+
e.map.allLayers.forEach((p) => {
|
|
254
|
+
p.type !== "vector-tile" && p.type !== "imagery" || i.push(p);
|
|
255
|
+
});
|
|
256
|
+
const r = await e.hitTest(t, { exclude: i });
|
|
257
|
+
return vt(r.results);
|
|
258
|
+
}
|
|
259
|
+
const a = [e.map.ground];
|
|
260
|
+
e.map.allLayers.forEach((i) => {
|
|
261
|
+
ht(i.type) && a.push(i);
|
|
262
|
+
});
|
|
263
|
+
const o = await e.hitTest(t, { exclude: a });
|
|
264
|
+
if (o.results.length > 0) {
|
|
265
|
+
const i = o.results[0];
|
|
266
|
+
if (i != null && i.type === "graphic" && i.graphic && (!o.ground.mapPoint || e.map.ground.opacity < 1 || o.ground.distance - (i.distance ?? 0) > -Math.min(3 * o.ground.distance, e.viewingMode === "global" ? at(e.renderCoordsHelper.spatialReference).radius / e.renderCoordsHelper.unitInMeters : Number.POSITIVE_INFINITY)))
|
|
267
|
+
return i;
|
|
268
|
+
}
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
_generateViewHandles(t) {
|
|
272
|
+
return [t.on("immediate-click", async (e) => {
|
|
273
|
+
var r;
|
|
274
|
+
const a = this.state === "active" && ((r = this._operationHandle) == null ? void 0 : r.type) === "create";
|
|
275
|
+
if (this.state === "disabled" || a || !this.updateOnGraphicClick)
|
|
276
|
+
return;
|
|
277
|
+
this._beginAsyncOperation();
|
|
278
|
+
const o = await e.async(() => this._getFirstHit($(e)));
|
|
279
|
+
let i = null;
|
|
280
|
+
if (o != null) {
|
|
281
|
+
const p = o.graphic;
|
|
282
|
+
this.updateGraphics.includes(p) || p.layer === this.layer ? (e.stopPropagation(), i = p) : t.type !== "2d" || this._isComponentGraphic(p) || this.state !== "active" || this.cancel();
|
|
283
|
+
} else
|
|
284
|
+
this.state === "active" && this.cancel();
|
|
285
|
+
i == null || this.updateGraphics.includes(i) || await this.update([i], { ...this.defaultUpdateOptions, reshapeOptions: { ...this.defaultUpdateOptions.reshapeOptions } }), this._endAsyncOperation();
|
|
286
|
+
}, G.WIDGET)];
|
|
287
|
+
}
|
|
288
|
+
async _setupCreateOperation(t, e) {
|
|
289
|
+
const a = this.view;
|
|
290
|
+
if (!a)
|
|
291
|
+
return this._logMissingView(), null;
|
|
292
|
+
const o = { hasZ: a.type === "3d", ...this.defaultCreateOptions, ...e }, i = await this._setupDrawGraphicTool(t, a, o);
|
|
293
|
+
return i == null ? null : (a.tools.add(i), a.activeTool = i, this._setupCreateOperationHandle(i));
|
|
294
|
+
}
|
|
295
|
+
async _setupDrawGraphicTool(t, e, a) {
|
|
296
|
+
if (t === "multipoint" && e.type === "3d")
|
|
297
|
+
return this._logError("sketch:create", "Multipoint geometries are not supported in SceneView."), null;
|
|
298
|
+
if (!e)
|
|
299
|
+
return this._logMissingView(), null;
|
|
300
|
+
const { cursor: o, defaultZ: i, hasZ: r, geometryToPlace: p, graphicProperties: s, mode: c, preserveAspectRatio: n } = a, h = t === "rectangle" || t === "circle" ? "hybrid" : "click", l = n ?? t !== "rectangle", y = { centered: t !== "rectangle" && !(t === "circle" && !l), cursor: o, defaultZ: i, forceUniformSize: l, graphicProperties: s, geometryToPlace: p, geometryType: t, graphicSymbol: this._getGraphicSymbolFromTool(t), hasZ: r, mode: c ?? h, snappingManager: this.snappingManager, snapToScene: !1, view: e };
|
|
301
|
+
return e.type === "2d" ? this._makeDrawGraphicTool2D(y) : this._makeDrawGraphicTool3D(y);
|
|
302
|
+
}
|
|
303
|
+
async _makeDrawGraphicTool2D(t) {
|
|
304
|
+
const e = await this._requireModule(import("../../views/2d/interactive/editingTools.js"));
|
|
305
|
+
return f(e) || this.destroyed ? null : new e.module.DrawGraphicTool2D({ ...t, activeVertexSymbol: this.activeVertexSymbol, regularVerticesSymbol: this.vertexSymbol, activeLineSymbol: this.activeLineSymbol, activeFillSymbol: Et(t.geometryType) ? this.activeFillSymbol : null, sketchOptions: this.sketchOptions });
|
|
306
|
+
}
|
|
307
|
+
async _makeDrawGraphicTool3D(t) {
|
|
308
|
+
const e = await this._requireModule(import("../../views/3d/interactive/editingTools.js"));
|
|
309
|
+
if (f(e) || this.destroyed)
|
|
310
|
+
return null;
|
|
311
|
+
const { elevationInfo: a } = this.layer;
|
|
312
|
+
return new e.module.DrawGraphicTool3D({ ...t, elevationInfo: a, snapToScene: !0, sketchOptions: this.sketchOptions });
|
|
313
|
+
}
|
|
314
|
+
_setupCreateOperationHandle(t) {
|
|
315
|
+
const e = this.view;
|
|
316
|
+
if (!e)
|
|
317
|
+
return this._logMissingView(), null;
|
|
318
|
+
let a = null;
|
|
319
|
+
const o = t.forceUniformSize, i = t.centered, r = [e.on("key-down", (s) => {
|
|
320
|
+
if (s.key === v.pan)
|
|
321
|
+
s.stopPropagation(), s.repeat || (t.enabled = !1);
|
|
322
|
+
else if (s.key === v.complete)
|
|
323
|
+
s.stopPropagation(), t.completeCreateOperation();
|
|
324
|
+
else if (s.key !== v.vertexAdd || s.repeat)
|
|
325
|
+
s.key === v.undo ? (s.stopPropagation(), p.undo()) : s.key === v.redo ? (s.stopPropagation(), p.redo()) : s.key !== v.constraint || t.geometryType !== "rectangle" && t.geometryType !== "circle" || s.repeat ? s.key === v.center && (s.repeat || (t.centered = !i, s.stopPropagation())) : (t.forceUniformSize = !o, s.stopPropagation());
|
|
326
|
+
else {
|
|
327
|
+
const c = t.drawOperation.geometryType;
|
|
328
|
+
c !== "polyline" && c !== "polygon" && c !== "multipoint" || (s.stopPropagation(), t.drawOperation.commitStagedVertex());
|
|
329
|
+
}
|
|
330
|
+
}, G.WIDGET), e.on("key-up", (s) => {
|
|
331
|
+
s.key === v.pan ? t.enabled = !0 : s.key !== v.constraint || t.geometryType !== "rectangle" && t.geometryType !== "circle" ? s.key === v.center && (t.centered = i, s.stopPropagation()) : (t.forceUniformSize = o, s.stopPropagation());
|
|
332
|
+
}, G.WIDGET), t.on("vertex-add", (s) => {
|
|
333
|
+
switch (a = a == null ? "start" : "active", s.operation) {
|
|
334
|
+
case "apply":
|
|
335
|
+
this.emit("create", { graphic: t.graphic, state: a, tool: this.activeTool, toolEventInfo: s, type: "create" });
|
|
336
|
+
break;
|
|
337
|
+
case "undo":
|
|
338
|
+
this._emitUndoEvent({ graphics: [t.graphic], tool: t.geometryType });
|
|
339
|
+
break;
|
|
340
|
+
case "redo":
|
|
341
|
+
this._emitRedoEvent({ graphics: [t.graphic], tool: t.geometryType });
|
|
342
|
+
}
|
|
343
|
+
}), t.on("cursor-update", (s) => {
|
|
344
|
+
t.drawOperation.numCommittedVertices > 0 && this.emit("create", { graphic: t.graphic, state: "active", tool: this.activeTool, toolEventInfo: { coordinates: s.vertices[0].coordinates, type: "cursor-update" }, type: "create" });
|
|
345
|
+
}), t.on("vertex-remove", (s) => {
|
|
346
|
+
switch (s.operation) {
|
|
347
|
+
case "apply":
|
|
348
|
+
this.emit("create", { graphic: t.graphic, state: "active", tool: this.activeTool, toolEventInfo: s, type: "create" });
|
|
349
|
+
break;
|
|
350
|
+
case "undo":
|
|
351
|
+
this._emitUndoEvent({ graphics: [t.graphic], tool: t.geometryType });
|
|
352
|
+
break;
|
|
353
|
+
case "redo":
|
|
354
|
+
this._emitRedoEvent({ graphics: [t.graphic], tool: t.geometryType });
|
|
355
|
+
}
|
|
356
|
+
}), t.on("complete", (s) => {
|
|
357
|
+
this._set("createGraphic", s.graphic), a = "complete", s.aborted ? p && p.cancel() : p && p.complete();
|
|
358
|
+
}), k(() => this._getGraphicSymbolFromTool(t.geometryType), (s) => {
|
|
359
|
+
t.graphicSymbol = s;
|
|
360
|
+
})], p = new ft({ activeComponent: t, tool: t.geometryType, type: "create", onEnd: () => {
|
|
361
|
+
var s;
|
|
362
|
+
r.forEach((c) => c.remove()), r.length = 0, (s = e.tools) == null || s.remove(t);
|
|
363
|
+
}, undo: () => {
|
|
364
|
+
t.canUndo && t.undo();
|
|
365
|
+
}, redo: () => {
|
|
366
|
+
t.canRedo && t.redo();
|
|
367
|
+
}, canUndo: () => t.canUndo, canRedo: () => t.canRedo });
|
|
368
|
+
return p;
|
|
369
|
+
}
|
|
370
|
+
_getGraphicSymbolFromTool(t) {
|
|
371
|
+
switch (t) {
|
|
372
|
+
case "point":
|
|
373
|
+
case "multipoint":
|
|
374
|
+
return this.pointSymbol;
|
|
375
|
+
case "polyline":
|
|
376
|
+
return this.polylineSymbol;
|
|
377
|
+
case "circle":
|
|
378
|
+
case "rectangle":
|
|
379
|
+
case "polygon":
|
|
380
|
+
return this.polygonSymbol;
|
|
381
|
+
case "mesh":
|
|
382
|
+
return this.meshSymbol;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
async _setupUpdateOperation(t, e) {
|
|
386
|
+
var p;
|
|
387
|
+
const { layer: a, view: o } = this;
|
|
388
|
+
if (!o)
|
|
389
|
+
return this._logMissingView(), null;
|
|
390
|
+
const i = { tool: this._defaultUpdateTool, ...this.defaultUpdateOptions, ...e, reshapeOptions: { ...this.defaultUpdateOptions.reshapeOptions, ...e == null ? void 0 : e.reshapeOptions }, highlightOptions: { ...this.defaultUpdateOptions.highlightOptions, ...e == null ? void 0 : e.highlightOptions } };
|
|
391
|
+
let r = i.tool;
|
|
392
|
+
for (const s of t)
|
|
393
|
+
a.remove(s), a.add(s);
|
|
394
|
+
if (o.type === "3d") {
|
|
395
|
+
if (t.length === 0)
|
|
396
|
+
return null;
|
|
397
|
+
switch (r) {
|
|
398
|
+
case "move":
|
|
399
|
+
return this._setupMove3DOperation(t, i, o, r);
|
|
400
|
+
case "reshape": {
|
|
401
|
+
if (t.length > 1)
|
|
402
|
+
return this._logError("sketch:reshape-multiple", "Reshape operation does not support multiple graphics."), null;
|
|
403
|
+
const s = C(t[0]);
|
|
404
|
+
return s === E.SUPPORTED ? this._setupReshape3DOperation(t[0], i, o) : (this._logError("sketch:reshape", `Reshape operation not supported for provided graphic(s) (${U(s)}).`), null);
|
|
405
|
+
}
|
|
406
|
+
case "transform":
|
|
407
|
+
return this._setupGraphicTransform3DOperation(t, i, o);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
switch (r) {
|
|
411
|
+
case "move":
|
|
412
|
+
return this._setupMove2DOperation(t, i, o);
|
|
413
|
+
case "reshape": {
|
|
414
|
+
if (t.length > 1)
|
|
415
|
+
return this._logError("sketch:reshape-multiple", "Reshape operation does not support multiple graphics."), null;
|
|
416
|
+
const s = C(t[0]);
|
|
417
|
+
return s === E.SUPPORTED ? this._setupTransformOrReshape2DOperation(t, r, i, o) : (this._logError("sketch:reshape", `Reshape operation not supported for provided graphic(s) (${U(s)}).`), null);
|
|
418
|
+
}
|
|
419
|
+
case "transform":
|
|
420
|
+
if (t.length === 1) {
|
|
421
|
+
const s = (p = t[0].geometry) == null ? void 0 : p.type;
|
|
422
|
+
s !== "point" && s !== "multipoint" || (r = "reshape");
|
|
423
|
+
}
|
|
424
|
+
return this._setupTransformOrReshape2DOperation(t, r, i, o);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
async _setupMove3DOperation(t, e, a, o, i = !1) {
|
|
428
|
+
for (const n of t) {
|
|
429
|
+
const h = ct(n);
|
|
430
|
+
if (h !== E.SUPPORTED)
|
|
431
|
+
return this._logError("sketch:move", `Move operation not supported for provided graphic(s) (${U(h)}).`), null;
|
|
432
|
+
}
|
|
433
|
+
const r = await this._requireModule(import("../../views/3d/interactive/editingTools.js"));
|
|
434
|
+
if (f(r))
|
|
435
|
+
return r;
|
|
436
|
+
const p = new r.module.GraphicMoveTool({ view: a, enableZ: e.enableZ, snappingManager: this.snappingManager, sketchOptions: this.sketchOptions });
|
|
437
|
+
a.tools.add(p), p.graphics.addMany(t), i || this.updateGraphics.addMany(t);
|
|
438
|
+
const s = [], c = new T({ activeComponent: p, tool: o, type: "update", onEnd: () => {
|
|
439
|
+
var n;
|
|
440
|
+
s.forEach((h) => h.remove()), s.length = 0, (n = a.tools) == null || n.remove(p), p.destroyed || p.destroy();
|
|
441
|
+
}, undo: () => {
|
|
442
|
+
H(c, this.updateGraphics.toArray()), this._emitUndoEvent({ graphics: this.updateGraphics.toArray(), tool: o });
|
|
443
|
+
}, redo: () => {
|
|
444
|
+
R(c, this.updateGraphics.toArray()), this._emitRedoEvent({ graphics: this.updateGraphics.toArray(), tool: o });
|
|
445
|
+
}, addToSelection: (n) => {
|
|
446
|
+
this.updateGraphics.push(n), p.graphics.push(n), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [n], removed: [], type: "selection-change" }, type: "update" });
|
|
447
|
+
}, removeFromSelection: (n) => {
|
|
448
|
+
const h = this.updateGraphics.indexOf(n);
|
|
449
|
+
c.history.undo.forEach((l) => l.updates.splice(h, 1)), c.history.redo.forEach((l) => l.updates.splice(h, 1)), this.updateGraphics.remove(n), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [], removed: [n], type: "selection-change" }, type: "update" }), this.updateGraphics.length !== 0 ? p.graphics.remove(n) : c.complete();
|
|
450
|
+
}, toggleTool: async () => {
|
|
451
|
+
if (this.updateGraphics.length !== 1 || e.toggleToolOnClick === !1 || o !== "transform")
|
|
452
|
+
return;
|
|
453
|
+
const n = this.updateGraphics.at(0);
|
|
454
|
+
if (C(n) !== E.SUPPORTED)
|
|
455
|
+
return;
|
|
456
|
+
c.onEnd(), c.destroy();
|
|
457
|
+
const h = await this._setupReshape3DOperation(n, e, a, !0);
|
|
458
|
+
f(h) || this._setUpdateOperationHandle(h, e);
|
|
459
|
+
} });
|
|
460
|
+
return s.push(...this._getHandlesForComponent(c, e), a.on("immediate-click", (n) => this._getCommonUpdateOperationClickHandlers(c, n, e), G.WIDGET), a.on("key-down", (n) => {
|
|
461
|
+
this._getCommonUpdateOperationKeyDownHandlers(c, n);
|
|
462
|
+
}, G.WIDGET)), c;
|
|
463
|
+
}
|
|
464
|
+
_setupGraphicTransform3DOperation(t, e, a, o = !1) {
|
|
465
|
+
if (t.length === 1 && dt(t[0]) === E.SUPPORTED) {
|
|
466
|
+
const i = t[0], r = i.geometry;
|
|
467
|
+
if (r != null && (r.type === "point" || r.type === "mesh"))
|
|
468
|
+
return this._setupPointTransform3DOperation(i, e, a);
|
|
469
|
+
if (r != null && (r.type === "polygon" || r.type === "polyline"))
|
|
470
|
+
return this._setupPolyTransform3DOperation(i, e, a, o);
|
|
471
|
+
}
|
|
472
|
+
return this._setupMove3DOperation(t, e, a, "transform", o);
|
|
473
|
+
}
|
|
474
|
+
async _setupPointTransform3DOperation(t, e, a) {
|
|
475
|
+
const o = "transform", { enableRotation: i, enableScaling: r, enableZ: p } = e, s = await this._requireModule(import("../../views/3d/interactive/editingTools.js"));
|
|
476
|
+
if (f(s))
|
|
477
|
+
return s;
|
|
478
|
+
const c = new s.module.GraphicTransformTool({ graphic: t, view: a, enableRotation: i, enableScaling: r, enableZ: p, snappingManager: this.snappingManager, sketchOptions: this.sketchOptions });
|
|
479
|
+
a.tools.add(c), this.updateGraphics.add(t);
|
|
480
|
+
const n = [], h = new T({ activeComponent: c, tool: o, type: "update", onEnd: () => {
|
|
481
|
+
var l;
|
|
482
|
+
n.forEach((y) => y.remove()), n.length = 0, (l = a.tools) == null || l.remove(c), c.destroyed || c.destroy();
|
|
483
|
+
}, undo: () => {
|
|
484
|
+
H(h, this.updateGraphics.toArray()), this._emitUndoEvent({ graphics: this.updateGraphics.toArray(), tool: o });
|
|
485
|
+
}, redo: () => {
|
|
486
|
+
R(h, this.updateGraphics.toArray()), this._emitRedoEvent({ graphics: this.updateGraphics.toArray(), tool: o });
|
|
487
|
+
}, addToSelection: async (l) => {
|
|
488
|
+
this.updateGraphics.add(l), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [l], removed: [], type: "selection-change" }, type: "update" }), h.onEnd(), h.destroy();
|
|
489
|
+
const y = await this._setupMove3DOperation(this.updateGraphics.toArray(), e, a, "transform", !0);
|
|
490
|
+
f(y) || this._setUpdateOperationHandle(y, e);
|
|
491
|
+
}, removeFromSelection: (l) => {
|
|
492
|
+
this.updateGraphics.remove(l), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [], removed: [l], type: "selection-change" }, type: "update" }), h.complete();
|
|
493
|
+
}, toggleTool: () => {
|
|
494
|
+
} });
|
|
495
|
+
return n.push(...this._getHandlesForComponent(h, e), a.on("immediate-click", (l) => this._getCommonUpdateOperationClickHandlers(h, l, e), G.WIDGET), a.on("key-down", (l) => {
|
|
496
|
+
this._getCommonUpdateOperationKeyDownHandlers(h, l);
|
|
497
|
+
}, G.WIDGET)), h;
|
|
498
|
+
}
|
|
499
|
+
async _setupPolyTransform3DOperation(t, e, a, o = !1) {
|
|
500
|
+
var O, P;
|
|
501
|
+
const i = "transform", { enableRotation: r, enableScaling: p, enableZ: s, preserveAspectRatio: c } = e, n = await this._requireModule(import("../../views/3d/interactive/editingTools.js"));
|
|
502
|
+
if (f(n))
|
|
503
|
+
return n;
|
|
504
|
+
const h = (P = (O = this.view) == null ? void 0 : O.inputManager) == null ? void 0 : P.isModifierKeyDown(v.constraint), l = new n.module.ExtentTransformTool({ graphic: t, view: a, enableRotation: r, enableScaling: p, enableZ: s, preserveAspectRatio: !!c != !!h, sketchOptions: this.sketchOptions });
|
|
505
|
+
a.tools.add(l), o || this.updateGraphics.add(t);
|
|
506
|
+
const y = [], _ = new T({ activeComponent: l, tool: i, type: "update", onEnd: () => {
|
|
507
|
+
var g;
|
|
508
|
+
y.forEach((w) => w.remove()), y.length = 0, (g = a.tools) == null || g.remove(l), l.destroyed || l.destroy();
|
|
509
|
+
}, canUndo: () => l.canUndo, undo: () => {
|
|
510
|
+
l.undo(), this._emitUndoEvent({ graphics: this.updateGraphics.toArray(), tool: i });
|
|
511
|
+
}, canRedo: () => l.canRedo, redo: () => {
|
|
512
|
+
l.redo(), this._emitRedoEvent({ graphics: this.updateGraphics.toArray(), tool: i });
|
|
513
|
+
}, addToSelection: async (g) => {
|
|
514
|
+
this.updateGraphics.add(g), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [g], removed: [], type: "selection-change" }, type: "update" }), _.onEnd(), _.destroy();
|
|
515
|
+
const w = await this._setupMove3DOperation(this.updateGraphics.toArray(), e, a, "transform", !0);
|
|
516
|
+
f(w) || this._setUpdateOperationHandle(w, e);
|
|
517
|
+
}, removeFromSelection: (g) => {
|
|
518
|
+
this.updateGraphics.remove(g), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [], removed: [g], type: "selection-change" }, type: "update" }), _.complete();
|
|
519
|
+
}, toggleTool: async () => {
|
|
520
|
+
if (this.updateGraphics.length !== 1 || e.toggleToolOnClick === !1)
|
|
521
|
+
return;
|
|
522
|
+
const g = this.updateGraphics.at(0);
|
|
523
|
+
if (C(g) !== E.SUPPORTED)
|
|
524
|
+
return;
|
|
525
|
+
_.onEnd(), _.destroy();
|
|
526
|
+
const w = await this._setupReshape3DOperation(g, e, a, !0);
|
|
527
|
+
f(w) || this._setUpdateOperationHandle(w, e);
|
|
528
|
+
} });
|
|
529
|
+
return y.push(...this._getHandlesForComponent(_, e), a.on("immediate-click", (g) => this._getCommonUpdateOperationClickHandlers(_, g, e), G.WIDGET), a.on("key-down", (g) => this._getCommonUpdateOperationKeyDownHandlers(_, g), G.WIDGET), a.on("key-down", (g) => {
|
|
530
|
+
g.key !== v.constraint || g.repeat || (l.preserveAspectRatio = !l.preserveAspectRatio, g.stopPropagation());
|
|
531
|
+
}, G.WIDGET), a.on("key-up", (g) => {
|
|
532
|
+
g.key === v.constraint && (l.preserveAspectRatio = !l.preserveAspectRatio, g.stopPropagation());
|
|
533
|
+
}, G.WIDGET)), _;
|
|
534
|
+
}
|
|
535
|
+
async _setupMove2DOperation(t, e, a) {
|
|
536
|
+
const o = "move";
|
|
537
|
+
this.updateGraphics.addMany(t), await this._updateSpatialReference(t);
|
|
538
|
+
const i = await this._getGraphicMover(t, e, a);
|
|
539
|
+
if (f(i))
|
|
540
|
+
return i;
|
|
541
|
+
const r = new T({ activeComponent: i, tool: o, type: "update", onEnd: () => {
|
|
542
|
+
var n;
|
|
543
|
+
this._displayDefaultCursor(), c.forEach((h) => h.remove()), s.forEach((h) => h.remove()), c = [], s = [], i.destroy(), (n = this._internalGraphicsLayer) == null || n.removeMany([...this.updateGraphics.toArray()]);
|
|
544
|
+
}, undo: () => {
|
|
545
|
+
const n = this.updateGraphics.toArray();
|
|
546
|
+
H(r, n), r.refreshComponent(), this._emitUndoEvent({ graphics: n, tool: o });
|
|
547
|
+
}, redo: () => {
|
|
548
|
+
const n = this.updateGraphics.toArray();
|
|
549
|
+
R(r, n), r.refreshComponent(), this._emitRedoEvent({ graphics: n, tool: o });
|
|
550
|
+
}, addToSelection: async (n) => {
|
|
551
|
+
await this._updateSpatialReference(n), this.updateGraphics.push(n), i.graphics = this.updateGraphics.toArray(), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [n], removed: [], type: "selection-change" }, type: "update" });
|
|
552
|
+
}, removeFromSelection: (n) => {
|
|
553
|
+
const h = this.updateGraphics.indexOf(n);
|
|
554
|
+
r.history.undo.forEach((y) => y.updates.splice(h, 1)), r.history.redo.forEach((y) => y.updates.splice(h, 1)), this.updateGraphics.remove(n);
|
|
555
|
+
const l = this.updateGraphics.toArray();
|
|
556
|
+
this.emit("update", { graphics: l, state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [], removed: [n], type: "selection-change" }, type: "update" }), this.updateGraphics.length !== 0 ? i.graphics = l : r.complete();
|
|
557
|
+
} });
|
|
558
|
+
let p = !1, s = [a.on("immediate-click", (n) => this._getCommonUpdateOperationClickHandlers(r, n, e), G.WIDGET), a.on("key-down", (n) => {
|
|
559
|
+
this._getCommonUpdateOperationKeyDownHandlers(r, n), n.key !== v.constraint || n.repeat || (p = !0, i.enableMoveAllGraphics = !i.enableMoveAllGraphics);
|
|
560
|
+
}, G.WIDGET), a.on("key-up", (n) => {
|
|
561
|
+
n.key === v.constraint && p && (p = !1, i.enableMoveAllGraphics = !i.enableMoveAllGraphics);
|
|
562
|
+
}, G.WIDGET)], c = this._getHandlesForComponent(r, e);
|
|
563
|
+
return r;
|
|
564
|
+
}
|
|
565
|
+
async _setupReshape3DOperation(t, e, a, o = !1) {
|
|
566
|
+
const i = "reshape", r = await this._requireModule(import("../../views/3d/interactive/editingTools.js"));
|
|
567
|
+
if (f(r))
|
|
568
|
+
return r;
|
|
569
|
+
const p = e.reshapeOptions, s = new r.module.GraphicReshapeTool({ view: a, graphic: t, enableZVertex: e.enableZ && (p == null ? void 0 : p.vertexOperation) === "move", enableZShape: e.enableZ && (p == null ? void 0 : p.shapeOperation) === "move", enableMoveGraphic: (p == null ? void 0 : p.shapeOperation) === "move" || (p == null ? void 0 : p.shapeOperation) === "move-xy", enableMidpoints: (p == null ? void 0 : p.edgeOperation) === "split", enableEdgeOffset: (p == null ? void 0 : p.edgeOperation) === "offset", snappingManager: this.snappingManager, sketchOptions: this.sketchOptions });
|
|
570
|
+
a.tools.add(s), o || this.updateGraphics.add(t);
|
|
571
|
+
const c = [], n = new T({ activeComponent: s, tool: i, type: "update", onEnd: () => {
|
|
572
|
+
var h;
|
|
573
|
+
c.forEach((l) => l.remove()), c.length = 0, (h = a.tools) == null || h.remove(s), s.destroyed || s.destroy();
|
|
574
|
+
}, canUndo: () => s.canUndo, undo: () => {
|
|
575
|
+
s.undo(), this._emitUndoEvent({ graphics: this.updateGraphics.toArray(), tool: i });
|
|
576
|
+
}, canRedo: () => s.canRedo, redo: () => {
|
|
577
|
+
s.redo(), this._emitRedoEvent({ graphics: this.updateGraphics.toArray(), tool: i });
|
|
578
|
+
}, addToSelection: async (h) => {
|
|
579
|
+
this.updateGraphics.add(h), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [h], removed: [], type: "selection-change" }, type: "update" }), n.onEnd(), n.destroy();
|
|
580
|
+
const l = await this._setupMove3DOperation(this.updateGraphics.toArray(), e, a, "transform", !0);
|
|
581
|
+
f(l) || this._setUpdateOperationHandle(l, e);
|
|
582
|
+
}, removeFromSelection: (h) => {
|
|
583
|
+
this.updateGraphics.remove(h), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [], removed: [h], type: "selection-change" }, type: "update" }), n.complete();
|
|
584
|
+
}, toggleTool: async () => {
|
|
585
|
+
if (e.toggleToolOnClick === !1)
|
|
586
|
+
return;
|
|
587
|
+
n.onEnd(), n.destroy();
|
|
588
|
+
const h = await this._setupGraphicTransform3DOperation(this.updateGraphics.toArray(), e, a, !0);
|
|
589
|
+
f(h) || this._setUpdateOperationHandle(h, e);
|
|
590
|
+
} });
|
|
591
|
+
return c.push(...this._getHandlesForComponent(n, e), a.on("immediate-click", (h) => this._getCommonUpdateOperationClickHandlers(n, h, e), G.WIDGET), a.on("key-down", (h) => {
|
|
592
|
+
this._getCommonUpdateOperationKeyDownHandlers(n, h);
|
|
593
|
+
}, G.WIDGET)), n;
|
|
594
|
+
}
|
|
595
|
+
async _setupTransformOrReshape2DOperation(t, e, a, o) {
|
|
596
|
+
this.updateGraphics.addMany(t), await this._updateSpatialReference(t);
|
|
597
|
+
const i = e === "transform" ? await this._getBox(t, a, o) : await this._getReshape(t, a, o);
|
|
598
|
+
if (f(i))
|
|
599
|
+
return i;
|
|
600
|
+
const r = new T({ activeComponent: i, type: "update", onEnd: () => {
|
|
601
|
+
s.forEach((c) => c.remove()), p.forEach((c) => c.remove()), s = [], p = [], r.activeComponent && !r.activeComponent.destroyed && r.activeComponent.destroy(), this._internalGraphicsLayer.removeMany(this.updateGraphics.toArray());
|
|
602
|
+
}, undo: () => {
|
|
603
|
+
H(r, this.updateGraphics.toArray()), r.refreshComponent(), this._emitUndoEvent({ graphics: this.updateGraphics.toArray(), tool: r.tool });
|
|
604
|
+
}, redo: () => {
|
|
605
|
+
R(r, this.updateGraphics.toArray()), r.refreshComponent(), this._emitRedoEvent({ graphics: this.updateGraphics.toArray(), tool: r.tool });
|
|
606
|
+
}, addToSelection: async (c) => {
|
|
607
|
+
let n = r.activeComponent;
|
|
608
|
+
if ((n == null ? void 0 : n.type) === "reshape") {
|
|
609
|
+
const h = [...this.updateGraphics, c];
|
|
610
|
+
this.updateGraphics.removeAll(), r.onEnd(), r.destroy();
|
|
611
|
+
const l = await this._setupTransformOrReshape2DOperation(h, "transform", a, o);
|
|
612
|
+
if (f(l))
|
|
613
|
+
return;
|
|
614
|
+
this._setUpdateOperationHandle(l, a);
|
|
615
|
+
} else
|
|
616
|
+
this.updateGraphics.add(c), n.graphics = this.updateGraphics.toArray(), n.refresh(), r.resetHistory();
|
|
617
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [c], removed: [], type: "selection-change" }, type: "update" });
|
|
618
|
+
}, removeFromSelection: async (c) => {
|
|
619
|
+
const n = this.updateGraphics.indexOf(c);
|
|
620
|
+
r.history.undo.forEach((l) => l.updates.splice(n, 1)), r.history.redo.forEach((l) => l.updates.splice(n, 1)), this.updateGraphics.remove(c);
|
|
621
|
+
const h = this.updateGraphics.toArray();
|
|
622
|
+
if (h.length === 0)
|
|
623
|
+
r.complete();
|
|
624
|
+
else {
|
|
625
|
+
const l = h[0].geometry;
|
|
626
|
+
h.length !== 1 || l == null || l.type !== "point" && l.type !== "multipoint" ? r.activeComponent.graphics = h : r.toggleTool();
|
|
627
|
+
}
|
|
628
|
+
this.emit("update", { graphics: h, state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: [], removed: [c], type: "selection-change" }, type: "update" });
|
|
629
|
+
}, toggleTool: async () => {
|
|
630
|
+
var l;
|
|
631
|
+
if (this.updateGraphics.length > 1)
|
|
632
|
+
return;
|
|
633
|
+
const c = this.updateGraphics.at(0), n = c.geometry;
|
|
634
|
+
if (n != null && (r.tool === "reshape" && (n.type === "point" || n.type === "multipoint") || r.tool === "transform" && n.type === "extent"))
|
|
635
|
+
return;
|
|
636
|
+
let h = null;
|
|
637
|
+
r.tool === "transform" ? h = await this._getReshape([c], a, o) : r.tool === "reshape" && (h = await this._getBox([c], a, o)), f(h) || ((l = r.activeComponent) == null || l.destroy(), r.activeComponent = h, r.activeComponent && (s.forEach((y) => y.remove()), s = this._getHandlesForComponent(r, a)));
|
|
638
|
+
} });
|
|
639
|
+
let p = [o.on("immediate-click", (c) => this._getCommonUpdateOperationClickHandlers(r, c, a), G.WIDGET), o.on("key-down", (c) => {
|
|
640
|
+
if (this._getCommonUpdateOperationKeyDownHandlers(r, c), c.key === v.constraint && !c.repeat && r) {
|
|
641
|
+
const n = r.activeComponent;
|
|
642
|
+
n && n.type === "box" && (n.preserveAspectRatio = !n.preserveAspectRatio);
|
|
643
|
+
}
|
|
644
|
+
}, G.WIDGET), o.on("key-up", (c) => {
|
|
645
|
+
if (c.key === v.constraint && r) {
|
|
646
|
+
const n = r.activeComponent;
|
|
647
|
+
n && n.type === "box" && (n.preserveAspectRatio = !n.preserveAspectRatio);
|
|
648
|
+
}
|
|
649
|
+
}, G.WIDGET)], s = this._getHandlesForComponent(r, a);
|
|
650
|
+
return r;
|
|
651
|
+
}
|
|
652
|
+
async _getGraphicMover(t, e, a) {
|
|
653
|
+
const { enableMoveAllGraphics: o, highlightOptions: i } = e, r = await this._requireModule(import("../../views/draw/support/GraphicMover.js"));
|
|
654
|
+
return f(r) ? r : new r.module.default({ enableMoveAllGraphics: o, highlightsEnabled: !!(i != null && i.enabled), indicatorsEnabled: !1, graphics: t, view: a, callbacks: { onGraphicMoveStart: ({ dx: p, dy: s, graphic: c }) => {
|
|
655
|
+
this._displayGrabbingCursor(), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: p, dy: s, mover: c, type: "move-start" }, type: "update" });
|
|
656
|
+
}, onGraphicMove: ({ dx: p, dy: s, graphic: c }) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: p, dy: s, mover: c, type: "move" }, type: "update" }), onGraphicMoveStop: ({ dx: p, dy: s, graphic: c }) => {
|
|
657
|
+
this._displayPointerCursor(), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: p, dy: s, mover: c, type: "move-stop" }, type: "update" });
|
|
658
|
+
}, onGraphicPointerOver: () => this._displayPointerCursor(), onGraphicPointerOut: () => this._displayDefaultCursor() } });
|
|
659
|
+
}
|
|
660
|
+
async _getBox(t, e, a) {
|
|
661
|
+
var n, h;
|
|
662
|
+
const { enableRotation: o, enableScaling: i, highlightOptions: r, preserveAspectRatio: p } = e, s = await this._requireModule(import("../../views/draw/support/Box.js"));
|
|
663
|
+
if (f(s))
|
|
664
|
+
return s;
|
|
665
|
+
const c = (h = (n = this.view) == null ? void 0 : n.inputManager) == null ? void 0 : h.isModifierKeyDown(v.constraint);
|
|
666
|
+
return new s.module.default({ graphics: t, enableRotation: o, enableScaling: i, highlightsEnabled: !!(r != null && r.enabled), preserveAspectRatio: !!p != !!c, layer: this._internalGraphicsLayer, view: a, sketchOptions: this.sketchOptions, callbacks: { onMoveStart: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onMove: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onMoveStop: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onScaleStart: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onScale: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onScaleStop: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onRotateStart: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onRotate: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }), onRotateStop: (l) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...l }, type: "update" }) } });
|
|
667
|
+
}
|
|
668
|
+
async _getReshape(t, e, a) {
|
|
669
|
+
var s, c, n;
|
|
670
|
+
const o = ((s = e.reshapeOptions) == null ? void 0 : s.edgeOperation) === "split", i = ((c = e.reshapeOptions) == null ? void 0 : c.shapeOperation) === "move", r = !!((n = e.highlightOptions) != null && n.enabled), p = await this._requireModule(import("../../views/draw/support/Reshape.js"));
|
|
671
|
+
return f(p) ? p : new p.module.default({ enableMidpoints: o, enableMovement: i, graphic: t[0], highlightsEnabled: r, layer: this._internalGraphicsLayer, snappingManager: this.snappingManager, sketchOptions: this.sketchOptions, view: a, callbacks: { onReshapeStart: (h) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...h }, type: "update" }), onReshape: (h) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { ...h }, type: "update" }), onReshapeStop: ({ mover: h, type: l }) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: h, type: l }, type: "update" }), onMoveStart: ({ dx: h, dy: l, mover: y, type: _ }) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: h, dy: l, mover: y, type: _ }, type: "update" }), onMove: ({ dx: h, dy: l, mover: y, type: _ }) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: h, dy: l, mover: y, type: _ }, type: "update" }), onMoveStop: ({ dx: h, dy: l, mover: y, type: _ }) => this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: h, dy: l, mover: y, type: _ }, type: "update" }), onVertexAdd: ({ added: h, type: l, vertices: y }) => {
|
|
672
|
+
const _ = h.map((O) => K(O.geometry));
|
|
673
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { added: _, vertices: y, type: l }, type: "update" });
|
|
674
|
+
}, onVertexRemove: ({ removed: h, type: l, vertices: y }) => {
|
|
675
|
+
const _ = h.map((O) => K(O.geometry));
|
|
676
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { removed: _, vertices: y, type: l }, type: "update" });
|
|
677
|
+
} } });
|
|
678
|
+
}
|
|
679
|
+
_getHandlesForComponent(t, e) {
|
|
680
|
+
const a = t.activeComponent;
|
|
681
|
+
if (!a)
|
|
682
|
+
return [];
|
|
683
|
+
switch (a.type) {
|
|
684
|
+
case "graphic-mover":
|
|
685
|
+
return [a.on("graphic-click", ({ graphic: o, viewEvent: i }) => {
|
|
686
|
+
var r;
|
|
687
|
+
(r = i.native) != null && r.shiftKey && (i.stopPropagation(), t.removeFromSelection(o));
|
|
688
|
+
}), a.on("graphic-move-start", (o) => t.addToHistory(b(o.allGraphics)))];
|
|
689
|
+
case "box":
|
|
690
|
+
return [a.on("graphic-click", (o) => this._onTransformOrReshape2DGraphicClick(t, e, o)), a.on("move-start", (o) => t.addToHistory(b(o.graphics))), a.on("rotate-start", (o) => t.addToHistory(b(o.graphics))), a.on("scale-start", (o) => t.addToHistory(b(o.graphics)))];
|
|
691
|
+
case "reshape":
|
|
692
|
+
return [a.on("graphic-click", (o) => this._onTransformOrReshape2DGraphicClick(t, e, o)), a.on("move-start", (o) => t.addToHistory(b([o.mover]))), a.on("reshape-start", (o) => t.addToHistory(b([o.graphic]))), a.on("vertex-add", (o) => t.addToHistory(b([o.oldGraphic]))), a.on("vertex-remove", (o) => t.addToHistory(b([o.oldGraphic])))];
|
|
693
|
+
case "move-3d":
|
|
694
|
+
return [a.on("graphic-move-start", (o) => {
|
|
695
|
+
t.addToHistory(b(o.allGraphics)), this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: 0, dy: 0, mover: o.allGraphics.length > 0 ? o.allGraphics[0] : null, type: "move-start" }, type: "update" });
|
|
696
|
+
}), a.on("graphic-move", (o) => {
|
|
697
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: o.dx, dy: o.dy, mover: o.allGraphics.length > 0 ? o.allGraphics[0] : null, type: "move" }, type: "update" });
|
|
698
|
+
}), a.on("graphic-move-stop", (o) => {
|
|
699
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { dx: 0, dy: 0, mover: o.allGraphics.length > 0 ? o.allGraphics[0] : null, type: "move-stop" }, type: "update" });
|
|
700
|
+
}), a.on("immediate-click", (o) => {
|
|
701
|
+
o.shiftKey ? this._toggleSelection([o.graphic], t, e) : t.toggleTool();
|
|
702
|
+
})];
|
|
703
|
+
case "transform-3d":
|
|
704
|
+
return [a.on("record-undo", ({ record: o }) => {
|
|
705
|
+
t.addToHistory({ updates: [o] });
|
|
706
|
+
}), a.on("graphic-translate-start", (o) => {
|
|
707
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, dx: o.dxScreen, dy: o.dyScreen, type: "move-start" }, type: "update" });
|
|
708
|
+
}), a.on("graphic-translate-stop", (o) => {
|
|
709
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, dx: o.dxScreen, dy: o.dyScreen, type: "move-stop" }, type: "update" });
|
|
710
|
+
}), a.on("graphic-rotate-start", (o) => {
|
|
711
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, angle: o.angle, type: "rotate-start" }, type: "update" });
|
|
712
|
+
}), a.on("graphic-rotate-stop", (o) => {
|
|
713
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, angle: o.angle, type: "rotate-stop" }, type: "update" });
|
|
714
|
+
}), a.on("graphic-scale-start", (o) => {
|
|
715
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, xScale: o.xScale, yScale: o.yScale, type: "scale-start" }, type: "update" });
|
|
716
|
+
}), a.on("graphic-scale-stop", (o) => {
|
|
717
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, xScale: o.xScale, yScale: o.yScale, type: "scale-stop" }, type: "update" });
|
|
718
|
+
}), a.on("graphic-translate", (o) => {
|
|
719
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, dx: o.dxScreen, dy: o.dyScreen, type: "move" }, type: "update" });
|
|
720
|
+
}), a.on("graphic-rotate", (o) => {
|
|
721
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, angle: o.angle, type: "rotate" }, type: "update" });
|
|
722
|
+
}), a.on("graphic-scale", (o) => {
|
|
723
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: { mover: o.graphic, xScale: o.xScale, yScale: o.yScale, type: "scale" }, type: "update" });
|
|
724
|
+
}), a.on("immediate-click", (o) => {
|
|
725
|
+
o.shiftKey ? this._toggleSelection([o.graphic], t, e) : t.toggleTool();
|
|
726
|
+
})];
|
|
727
|
+
case "reshape-3d":
|
|
728
|
+
return [a.on("reshape", (o) => {
|
|
729
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: o, type: "update" });
|
|
730
|
+
}), a.on("move", (o) => {
|
|
731
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: o, type: "update" });
|
|
732
|
+
}), a.on("vertex-add", (o) => {
|
|
733
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: o, type: "update" });
|
|
734
|
+
}), a.on("vertex-remove", (o) => {
|
|
735
|
+
this.emit("update", { graphics: this.updateGraphics.toArray(), state: "active", aborted: !1, tool: this.activeTool, toolEventInfo: o, type: "update" });
|
|
736
|
+
}), a.on("immediate-click", (o) => {
|
|
737
|
+
o.shiftKey ? this._toggleSelection([o.graphic], t, e) : t.toggleTool();
|
|
738
|
+
})];
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
_onTransformOrReshape2DGraphicClick(t, e, a) {
|
|
742
|
+
var r;
|
|
743
|
+
const { graphic: o, viewEvent: i } = a;
|
|
744
|
+
return (r = i.native) != null && r.shiftKey && o.layer === this.layer ? (i.stopPropagation(), t.removeFromSelection(o)) : e.toggleToolOnClick ? (i.stopPropagation(), t.toggleTool()) : void 0;
|
|
745
|
+
}
|
|
746
|
+
_setUpdateOperationHandle(t, e) {
|
|
747
|
+
var i;
|
|
748
|
+
this._operationHandle = t;
|
|
749
|
+
const a = (i = this.view) == null ? void 0 : i.map;
|
|
750
|
+
this._disablePopup(e);
|
|
751
|
+
const o = () => {
|
|
752
|
+
if (t === this._operationHandle) {
|
|
753
|
+
const r = this.updateGraphics.toArray(), p = this._operationHandle.tool;
|
|
754
|
+
this._operationHandle.destroy(), this._operationHandle = null, this._internalGraphicsLayer.removeMany(this.updateGraphics.toArray()), this.updateGraphics.removeAll(), a && a.remove(this._internalGraphicsLayer), this._restorePopup(e), this.emit("update", { graphics: r, state: "complete", aborted: t.cancelled, tool: p, toolEventInfo: null, type: "update" });
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
t.on("complete", o);
|
|
758
|
+
}
|
|
759
|
+
async _getCommonUpdateOperationClickHandlers(t, e, a) {
|
|
760
|
+
const o = $(e), i = await e.async(() => this._getFirstHit(o));
|
|
761
|
+
if (i == null)
|
|
762
|
+
return void t.complete();
|
|
763
|
+
if (e.native.shiftKey && this._toggleSelection([i.graphic], t, a))
|
|
764
|
+
return void e.stopPropagation();
|
|
765
|
+
this.updateGraphics.includes(i.graphic) ? e.stopPropagation() : t.complete();
|
|
766
|
+
}
|
|
767
|
+
_toggleSelection(t, e, a) {
|
|
768
|
+
const o = !!a.multipleSelectionEnabled;
|
|
769
|
+
return t.some((i) => i != null && !(!o || i.layer !== this.layer) && (this.updateGraphics.includes(i) ? e.removeFromSelection(i) : e.addToSelection(i), !0));
|
|
770
|
+
}
|
|
771
|
+
_getCommonUpdateOperationKeyDownHandlers(t, e) {
|
|
772
|
+
if (!t)
|
|
773
|
+
return;
|
|
774
|
+
const a = e.key;
|
|
775
|
+
a === v.undo && t.canUndo() ? (e.stopPropagation(), t.undo()) : a === v.redo && t.canRedo() ? (e.stopPropagation(), t.redo()) : a === v.cancel ? (e.stopPropagation(), t.cancel()) : this.allowDeleteKey && v.delete.includes(a) && this._onDeleteKey(e);
|
|
776
|
+
}
|
|
777
|
+
_onDeleteKey(t) {
|
|
778
|
+
var o;
|
|
779
|
+
if (!this._operationHandle || this._operationHandle.type !== "update")
|
|
780
|
+
return;
|
|
781
|
+
const e = this.activeComponent, a = this.updateGraphics.toArray();
|
|
782
|
+
e != null && e.type !== "reshape-3d" && (e.type !== "reshape" || a.length === 1 && ((o = a[0].geometry) == null ? void 0 : o.type) === "point") && (t.stopPropagation(), this.delete());
|
|
783
|
+
}
|
|
784
|
+
_removeDefaultLayer() {
|
|
785
|
+
var t, e;
|
|
786
|
+
this._internalGraphicsLayer && ((e = (t = this.view) == null ? void 0 : t.map) == null || e.remove(this._internalGraphicsLayer), this._internalGraphicsLayer = M(this._internalGraphicsLayer));
|
|
787
|
+
}
|
|
788
|
+
_isComponentGraphic(t) {
|
|
789
|
+
var a;
|
|
790
|
+
const { activeComponent: e } = this;
|
|
791
|
+
return !(!t || e == null) && (((a = t.attributes) == null ? void 0 : a.esriSketchTool) || e.type === "draw-2d" && e.graphic === t || (e.type === "box" || e.type === "reshape") && e.isUIGraphic(t));
|
|
792
|
+
}
|
|
793
|
+
_displayPointerCursor() {
|
|
794
|
+
var t;
|
|
795
|
+
(t = this.view) != null && t.container && this.view.cursor !== "pointer" && (this.view.cursor = "pointer");
|
|
796
|
+
}
|
|
797
|
+
_displayGrabbingCursor() {
|
|
798
|
+
var t;
|
|
799
|
+
(t = this.view) != null && t.container && this.view.cursor !== "grabbing" && (this.view.cursor = "grabbing");
|
|
800
|
+
}
|
|
801
|
+
_displayDefaultCursor() {
|
|
802
|
+
var t;
|
|
803
|
+
(t = this.view) != null && t.container && this.view.cursor !== null && (this.view.cursor = null);
|
|
804
|
+
}
|
|
805
|
+
_logError(t, e, a) {
|
|
806
|
+
X.getLogger(this).error(new J(t, e, a));
|
|
807
|
+
}
|
|
808
|
+
async _requireModule(t) {
|
|
809
|
+
const e = new AbortController();
|
|
810
|
+
this._moduleLoaderAbortController = e;
|
|
811
|
+
const a = await t;
|
|
812
|
+
return this._moduleLoaderAbortController !== e || e.signal.aborted ? { requireError: "aborted" } : { module: a };
|
|
813
|
+
}
|
|
814
|
+
_emitUndoEvent(t) {
|
|
815
|
+
this.emit("undo", { ...t, type: "undo" });
|
|
816
|
+
}
|
|
817
|
+
_emitRedoEvent(t) {
|
|
818
|
+
this.emit("redo", { ...t, type: "redo" });
|
|
819
|
+
}
|
|
820
|
+
_emitDeleteEvent(t) {
|
|
821
|
+
this.emit("delete", { ...t, type: "delete" });
|
|
822
|
+
}
|
|
823
|
+
get test() {
|
|
824
|
+
return { operationHandle: this._operationHandle, snappingManager: this.snappingManager, defaultUpdateOptions: S };
|
|
825
|
+
}
|
|
826
|
+
wait() {
|
|
827
|
+
return V(() => !this.updating);
|
|
828
|
+
}
|
|
829
|
+
_beginAsyncOperation() {
|
|
830
|
+
this._numUpdating += 1, this.notifyChange("updating");
|
|
831
|
+
}
|
|
832
|
+
_endAsyncOperation() {
|
|
833
|
+
this._numUpdating -= 1, this.notifyChange("updating");
|
|
834
|
+
}
|
|
835
|
+
_disablePopupEnabled(t) {
|
|
836
|
+
var e;
|
|
837
|
+
return ((e = this.view) == null ? void 0 : e.type) !== "3d" || this.updateOnGraphicClick || ((t == null ? void 0 : t.toggleToolOnClick) ?? !1);
|
|
838
|
+
}
|
|
839
|
+
_disablePopup(t) {
|
|
840
|
+
this._disablePopupEnabled(t) && this.view && this._originalPopupEnabled == null && (this._originalPopupEnabled = this.view.popupEnabled, this.view.popupEnabled = !1);
|
|
841
|
+
}
|
|
842
|
+
_restorePopup(t) {
|
|
843
|
+
this._disablePopupEnabled(t) && this.view && this._originalPopupEnabled != null && (this.view.popupEnabled = this._originalPopupEnabled, this._originalPopupEnabled = null);
|
|
844
|
+
}
|
|
845
|
+
async _waitViewReady() {
|
|
846
|
+
const t = this.view;
|
|
847
|
+
t ? (I(this._viewReadyAbortController), this._viewReadyAbortController = new AbortController(), await tt(V(() => t == null ? void 0 : t.ready), this._viewReadyAbortController.signal)) : this._logMissingView();
|
|
848
|
+
}
|
|
849
|
+
_logMissingView() {
|
|
850
|
+
this._logError("sketch:missing-property", z("view"));
|
|
851
|
+
}
|
|
852
|
+
_logMissingLayer() {
|
|
853
|
+
this._logError(Ot, z("layer"));
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
u([m()], d.prototype, "_defaultSnappingManager", void 0), u([m()], d.prototype, "updating", null), u([m()], d.prototype, "_operationHandle", void 0), u([m({ readOnly: !0 })], d.prototype, "activeTool", null), u([m()], d.prototype, "activeFillSymbol", void 0), u([m()], d.prototype, "activeLineSymbol", void 0), u([m()], d.prototype, "activeVertexSymbol", void 0), u([m()], d.prototype, "allowDeleteKey", void 0), u([m({ readOnly: !0 })], d.prototype, "createGraphic", null), u([m()], d.prototype, "defaultCreateOptions", null), u([m()], d.prototype, "defaultUpdateOptions", null), u([m({ type: ut, nonNullable: !0 })], d.prototype, "labelOptions", null), u([m()], d.prototype, "layer", void 0), u([m({ types: A })], d.prototype, "pointSymbol", void 0), u([m({ types: A })], d.prototype, "polygonSymbol", void 0), u([m({ types: A })], d.prototype, "polylineSymbol", void 0), u([m()], d.prototype, "meshSymbol", void 0), u([m({ type: B, nonNullable: !0 })], d.prototype, "snappingOptions", null), u([m()], d.prototype, "snappingManager", null), u([m({ readOnly: !0 })], d.prototype, "state", null), u([m({ type: yt, nonNullable: !0 })], d.prototype, "tooltipOptions", null), u([m({ readOnly: !0 })], d.prototype, "updateGraphics", void 0), u([m()], d.prototype, "updateOnGraphicClick", void 0), u([m({ type: mt, nonNullable: !0 })], d.prototype, "valueOptions", null), u([m({ types: A })], d.prototype, "vertexSymbol", void 0), u([m({ value: null })], d.prototype, "view", null), u([m({ constructOnly: !0, type: j })], d.prototype, "sketchOptions", void 0), d = u([ot("esri.widgets.Sketch.SketchViewModel")], d);
|
|
857
|
+
const Ot = "sketch:missing-property", z = (t) => `Property '${t}' is missing on SketchViewModel.`;
|
|
858
|
+
function Et(t) {
|
|
859
|
+
return t === "polygon" || t === "rectangle" || t === "circle";
|
|
860
|
+
}
|
|
861
|
+
function H(t, e) {
|
|
862
|
+
Y("undo", t.history.undo, t.history.redo, e);
|
|
863
|
+
}
|
|
864
|
+
function R(t, e) {
|
|
865
|
+
Y("redo", t.history.redo, t.history.undo, e);
|
|
866
|
+
}
|
|
867
|
+
function Y(t, e, a, o) {
|
|
868
|
+
const i = e.pop();
|
|
869
|
+
if (!i)
|
|
870
|
+
return;
|
|
871
|
+
const r = i.updates, p = [];
|
|
872
|
+
o.forEach((s, c) => {
|
|
873
|
+
const n = r[c];
|
|
874
|
+
n != null && ("geometry" in n && n.geometry != null && (p.push({ geometry: s.geometry }), s.geometry = n.geometry), "symbol" in n && n.symbol != null && (p.push({ symbol: s.symbol }), s.symbol = n.symbol), "undo" in n && (p.push(n), n[t](s)));
|
|
875
|
+
}), a.push({ updates: p });
|
|
876
|
+
}
|
|
877
|
+
function b(t) {
|
|
878
|
+
return { updates: t.map((e) => ({ geometry: e.geometry })) };
|
|
879
|
+
}
|
|
880
|
+
function f(t) {
|
|
881
|
+
return "requireError" in t && t.requireError === "aborted";
|
|
882
|
+
}
|
|
883
|
+
const de = d;
|
|
884
|
+
export {
|
|
885
|
+
de as default
|
|
886
|
+
};
|