@agrotools1/at-components 0.3.2 → 0.3.3
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/AGraphicContainer-0a4e0426.js +109 -0
- package/dist/APIKeyMixin-83e85532.js +19 -0
- package/dist/Analysis-c4011253.js +31 -0
- package/dist/ArcGISCachedService-1c6af1c1.js +47 -0
- package/dist/ArcGISService-1d880889.js +25 -0
- package/dist/AreaMeasurement2D-86006a71.js +405 -0
- package/dist/AreaMeasurement3D-1825243c.js +488 -0
- package/dist/AttachmentInfo-fa04c641.js +34 -0
- package/dist/AttachmentQuery-1450c2f7.js +18 -0
- package/dist/AttributeStore-02f947ea.js +1707 -0
- package/dist/BaseDynamicLayerView2D-eb11c757.js +63 -0
- package/dist/BingMapsLayer-7ad7d511.js +112 -0
- package/dist/Bitmap-14a020d8.js +128 -0
- package/dist/BitmapContainer-cc71fd24.js +23 -0
- package/dist/BlendLayer-e2f97659.js +13 -0
- package/dist/BoundsStore-8612892f.js +63 -0
- package/dist/BufferObject-bd932c2c.js +100 -0
- package/dist/BufferView-97ed14c7.js +683 -0
- package/dist/BuildingSceneLayer-3f5380c8.js +535 -0
- package/dist/Button-15031955.js +36 -0
- package/dist/CSVLayer-a76db6f4.js +208 -0
- package/dist/CSVSourceWorker-afe160ed.js +367 -0
- package/dist/CatalogDynamicGroupLayerView2D-be946494.js +66 -0
- package/dist/CatalogFootprintLayerView2D-14763204.js +76 -0
- package/dist/CatalogLayer-7d6228dd.js +262 -0
- package/dist/CatalogLayerView2D-13e32a42.js +52 -0
- package/dist/ClassBreaksDefinition-7040a7fc.js +18 -0
- package/dist/ColorMaterial.glsl-e56765f1.js +64 -0
- package/dist/ColorSet-4ff0a7b7.js +45 -0
- package/dist/ColorStop-1e154045.js +29 -0
- package/dist/Container-6e3b610b.js +521 -0
- package/dist/CustomParametersMixin-c01280c0.js +12 -0
- package/dist/DefaultMaterial.glsl-e7e23b90.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-7fd21704.js +653 -0
- package/dist/DefaultTheme-3c5b433f.js +130 -0
- package/dist/DeleteForwardEditsParameters-7073c5e5.js +18 -0
- package/dist/DimensionLayer-f921dd3d.js +129 -0
- package/dist/DirectLineMeasurement3D-61d14af2.js +449 -0
- package/dist/DistanceMeasurement2D-b023b35c.js +303 -0
- package/dist/DoubleArray-1186b8b8.js +25 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +59 -10
- package/dist/Dropdown/Checklist/draggable.d.ts +5 -4
- package/dist/Dropdown/Dropdown.core.d.ts +0 -13
- package/dist/Dropdown/Dropdown.types.d.ts +16 -0
- package/dist/Dropdown/Filter/Filter.types.d.ts +17 -0
- package/dist/Dropdown/Filter/test.mocks.d.ts +2 -2
- package/dist/Dropdown/List/Dropdown.List.d.ts +6 -21
- package/dist/Dropdown/List/List.types.d.ts +11 -0
- package/dist/Dropdown/List/test.mocks.d.ts +1 -1
- package/dist/EdgeProcessingWorker-cb6277ad.js +63 -0
- package/dist/EditBusLayer-9d740f8f.js +107 -0
- package/dist/ElevationInfo-581ff99d.js +56 -0
- package/dist/ElevationLayer-42b57d9b.js +129 -0
- package/dist/ElevationQuery-f6d0cf9f.js +598 -0
- package/dist/ElevationSamplerWorker-50d805bb.js +62 -0
- package/dist/ExportImageParameters-5b047f92.js +66 -0
- package/dist/ExportStrategy-b6c54d77.js +93 -0
- package/dist/ExportWMSImageParameters-ff5a3ac8.js +33 -0
- package/dist/External-695a389a.js +110 -0
- package/dist/FeatureCollectionSnappingSource-fdaed9e0.js +130 -0
- package/dist/FeatureCommandQueue-c2bd1a39.js +1244 -0
- package/dist/FeatureEffect-9ea1b3da.js +39 -0
- package/dist/FeatureEffectLayer-0fa169c4.js +13 -0
- package/dist/FeatureFilter-638c4cae.js +27 -0
- package/dist/FeatureLayer-2a419d3e.js +693 -0
- package/dist/FeatureLayerBase-7331e738.js +148 -0
- package/dist/FeatureLayerSource-733186fb.js +444 -0
- package/dist/FeatureLayerView2D-bc4994b6.js +1967 -0
- package/dist/FeaturePipelineWorker-5f68488c.js +3633 -0
- package/dist/FeatureReductionLayer-0c152478.js +225 -0
- package/dist/FeatureReductionSelection-f952512d.js +22 -0
- package/dist/FeatureServiceSnappingSource-4c02d5a3.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-c2a1dc50.js +747 -0
- package/dist/FeatureSet-2c6b8e00.js +188 -0
- package/dist/FeatureStore-a26846c0.js +131 -0
- package/dist/FeatureTemplate-1b6b7e2d.js +12 -0
- package/dist/FeatureType-9e1f1a7d.js +25 -0
- package/dist/FieldsIndex-91711836.js +109 -0
- package/dist/FormTemplate-ae0cfb6e.js +350 -0
- package/dist/GeoJSONLayer-b2070c34.js +236 -0
- package/dist/GeoJSONSourceWorker-aecb5f9b.js +247 -0
- package/dist/GeoRSSLayer-3743b41f.js +73 -0
- package/dist/GeoRSSLayerView2D-098c24bc.js +140 -0
- package/dist/GeometryUtils-036c7f22.js +403 -0
- package/dist/GraphicContainer-ece3945e.js +26 -0
- package/dist/GraphicManipulator-bc92899f.js +1499 -0
- package/dist/GraphicsLayer-764f0324.js +38 -0
- package/dist/GraphicsLayerView2D-36908d0c.js +114 -0
- package/dist/GraphicsSnappingSource-2bb681c0.js +273 -0
- package/dist/GraphicsView2D-e9cf5cd6.js +620 -0
- package/dist/GroupLayer-5ea5b71b.js +147 -0
- package/dist/GroupLayerView2D-22ec9eaa.js +98 -0
- package/dist/HUDMaterial.glsl-80ab7d22.js +65 -0
- package/dist/HighlightCounter-36842e52.js +41 -0
- package/dist/HighlightGraphicContainer-10cb9671.js +18 -0
- package/dist/I3SBinaryReader-9dbdc661.js +310 -0
- package/dist/I3SLayerDefinitions-b56e2c87.js +55 -0
- package/dist/I3SUtil-5461dc89.js +59 -0
- package/dist/IdentityManager-bb063156.js +899 -0
- package/dist/ImageHistogramParameters-1f8e5179.js +905 -0
- package/dist/ImageryLayer-a807d3b3.js +1799 -0
- package/dist/ImageryLayerView2D-358a3267.js +352 -0
- package/dist/ImageryTileLayer-0f67f262.js +2157 -0
- package/dist/ImageryTileLayerView2D-2bc2bb67.js +1110 -0
- package/dist/Indices-0c5304f2.js +67 -0
- package/dist/IntegratedMesh3DTilesLayer-be69dca8.js +112 -0
- package/dist/IntegratedMeshLayer-3c070523.js +141 -0
- package/dist/InteractiveAnalysisViewModel-3005a4a6.js +7397 -0
- package/dist/InterleavedLayout-d37b99a2.js +163 -0
- package/dist/KMLLayer-2011c3c6.js +162 -0
- package/dist/KMLLayerView2D-5d17145f.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-7172b91b.js +43 -0
- package/dist/LRUCache-39211cf9.js +32 -0
- package/dist/LabelClass-d1080628.js +135 -0
- package/dist/LabelMetric-ab56c6b3.js +400 -0
- package/dist/LaserlinePath.glsl-df8f92cc.js +64 -0
- package/dist/Laserlines.glsl-f7d93e3f.js +65 -0
- package/dist/LayerFloorInfo-3edeb9a2.js +15 -0
- package/dist/LayerView-1c58c8c6.js +206 -0
- package/dist/LercWorker-c7a2aca1.js +157 -0
- package/dist/LineOfSightLayer-3028e21f.js +147 -0
- package/dist/LinkChartLayer-988ae660.js +1027 -0
- package/dist/Lyr3DWorker-4c8c758f.js +82 -0
- package/dist/MagnifierPrograms-123961a3.js +806 -0
- package/dist/MapImageLayer-9241ad63.js +169 -0
- package/dist/MapImageLayerView2D-726e5c66.js +146 -0
- package/dist/MapNotesLayer-2d2db99b.js +283 -0
- package/dist/MapNotesLayerView2D-41f5790c.js +161 -0
- package/dist/MapServiceLayerViewHelper-8f5228ec.js +288 -0
- package/dist/MeasurementWidgetContent-504fd868.js +2642 -0
- package/dist/MediaLayer-e71ce661.js +523 -0
- package/dist/MediaLayerView2D-33c67404.js +332 -0
- package/dist/MemCache-413327b3.js +227 -0
- package/dist/MemorySourceWorker-b0e70dd0.js +222 -0
- package/dist/Mesh-98c4e050.js +980 -0
- package/dist/MeshLocalVertexSpace-7a7e4d4e.js +19 -0
- package/dist/MultiOriginJSONSupport-2fca3cc5.js +158 -0
- package/dist/OGCFeatureLayer-451fbd45.js +211 -0
- package/dist/OGCFeatureLayerView2D-d23b08d2.js +82 -0
- package/dist/ObjectStack-742b2ff3.js +21 -0
- package/dist/Octree-a3c8e90e.js +495 -0
- package/dist/OpenStreetMapLayer-9bb91f97.js +30 -0
- package/dist/OperationalLayer-fbfada66.js +44 -0
- package/dist/OrderByInfo-335eb561.js +16 -0
- package/dist/OrderedLayer-29b4ac64.js +26 -0
- package/dist/OrientedImageryLayer-aa2498e2.js +216 -0
- package/dist/OverlayCompositing.glsl-4b1e83c2.js +65 -0
- package/dist/OverrideHelper-74cc3959.js +242 -0
- package/dist/PBFDecoderWorker-fd40e0f9.js +213 -0
- package/dist/PointCloudLayer-64cdbbb2.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-db9b3a98.js +115 -0
- package/dist/PointCloudWorker-a5eb5224.js +212 -0
- package/dist/PooledRBush-be6fe17a.js +272 -0
- package/dist/Popup-db250fe6.js +3990 -0
- package/dist/PortalLayer-a6ce110e.js +126 -0
- package/dist/Program-ecabc523.js +694 -0
- package/dist/ProgramTemplate-e5ce3b0f.js +35 -0
- package/dist/QueryEngine-87b2546b.js +896 -0
- package/dist/QueryTask-36400ec7.js +119 -0
- package/dist/RasterSymbolizer-cfd47847.js +3024 -0
- package/dist/RasterVFDisplayObject-d4c967ea.js +581 -0
- package/dist/RasterWorker-068ae23a.js +78 -0
- package/dist/RawBlockCache-9e8d4c35.js +185 -0
- package/dist/RealisticTree.glsl-adab8e44.js +42 -0
- package/dist/RefreshableLayer-eec34ca2.js +80 -0
- package/dist/RefreshableLayerView-ee06f08c.js +16 -0
- package/dist/Relationship-a7eb5489.js +64 -0
- package/dist/RelationshipQuery-4551bb04.js +22 -0
- package/dist/RenderingContext-9e8fac0d.js +889 -0
- package/dist/RibbonLine.glsl-5990bf5f.js +65 -0
- package/dist/RouteLayer-858bc482.js +786 -0
- package/dist/RouteLayerView2D-a70d519f.js +195 -0
- package/dist/SDFHelper-efca0a53.js +140 -0
- package/dist/SSAO.glsl-7670c1fc.js +43 -0
- package/dist/SSAOBlur.glsl-3523d6af.js +42 -0
- package/dist/ScaleRangeLayer-7f440b85.js +21 -0
- package/dist/SceneLayer-999bd23f.js +542 -0
- package/dist/SceneLayerSnappingSource-9420aaed.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-be67e552.js +112 -0
- package/dist/SceneLayerWorker-201939c2.js +164 -0
- package/dist/SceneService-318eff2f.js +215 -0
- package/dist/Scheduler-279ea0c3.js +373 -0
- package/dist/Search/Search.d.ts +1 -1
- package/dist/Search/test.mocks.d.ts +1 -1
- package/dist/Search/utils.d.ts +1 -1
- package/dist/Select/Select.core.d.ts +1 -1
- package/dist/Select/Single/Select.single.d.ts +1 -0
- package/dist/Select/index.d.ts +1 -0
- package/dist/ShadedColorMaterial.glsl-bd2979d8.js +64 -0
- package/dist/SnappingOperation-5100da71.js +48 -0
- package/dist/SourceLayerData-50c2b980.js +116 -0
- package/dist/SpatialFilter-b6c6b2fc.js +1701 -0
- package/dist/Stop-196981da.js +281 -0
- package/dist/StreamLayer-37b818b8.js +188 -0
- package/dist/StreamLayerView2D-7f0f45bc.js +164 -0
- package/dist/StyleRepository-4e8fa398.js +2212 -0
- package/dist/SublayersOwner-90d10612.js +545 -0
- package/dist/SubtypeGroupLayer-959cabf8.js +514 -0
- package/dist/SubtypeGroupLayerView2D-95e63b42.js +84 -0
- package/dist/TableConfig/TableConfig.d.ts +14 -6
- package/dist/TableConfig/test/mocks.d.ts +1 -1
- package/dist/TechniqueInstance-bd190c26.js +233 -0
- package/dist/TemporalLayer-aacda167.js +23 -0
- package/dist/Texture-3618be49.js +501 -0
- package/dist/TextureOnly.glsl-fcca7034.js +65 -0
- package/dist/Theme-85608a9a.js +3426 -0
- package/dist/Tick-79e96104.js +723 -0
- package/dist/TileContainer-f1e7edd8.js +31 -0
- package/dist/TileInfoTilemapCache-2f882821.js +38 -0
- package/dist/TileLayer-db13a237.js +194 -0
- package/dist/TileLayerView2D-15af6be4.js +187 -0
- package/dist/TilemapCache-fc4b2c6c.js +189 -0
- package/dist/TimeInfo-39a9d4e1.js +42 -0
- package/dist/TimeOnly-b759457a.js +706 -0
- package/dist/Toggle/Toggle.d.ts +9 -0
- package/dist/Tooltip-0ba72b27.js +138 -0
- package/dist/TopFeaturesQuery-a11ecc39.js +32 -0
- package/dist/TurboLine-5e62d290.js +565 -0
- package/dist/UniqueValueRenderer-bf2f3234.js +1039 -0
- package/dist/UnknownLayer-2cf71578.js +30 -0
- package/dist/UnknownTimeZone-aabdcf56.js +15 -0
- package/dist/UnsupportedLayer-36650e4a.js +31 -0
- package/dist/UpdateTracking2D-b6d16b0c.js +8566 -0
- package/dist/Util-8f54c96b.js +57 -0
- package/dist/VectorTileLayer-ddcca4ec.js +544 -0
- package/dist/VectorTileLayerView2D-8176946a.js +2108 -0
- package/dist/Version-9eb299cd.js +33 -0
- package/dist/VertexArrayObject-d1a4262b.js +73 -0
- package/dist/VertexColor.glsl-fd9f70e0.js +2683 -0
- package/dist/VertexSnappingCandidate-70513010.js +13 -0
- package/dist/VideoLayerView2D-e08e1d57.js +124 -0
- package/dist/VoxelLayer-959702aa.js +631 -0
- package/dist/WFSLayer-4a41b206.js +221 -0
- package/dist/WFSSourceWorker-53d88982.js +157 -0
- package/dist/WGLContainer-e9e8616e.js +5426 -0
- package/dist/WMSLayer-8e44f55c.js +536 -0
- package/dist/WMSLayerView2D-415a1793.js +117 -0
- package/dist/WMTSLayer-804f4bed.js +531 -0
- package/dist/WMTSLayerView2D-96186a90.js +142 -0
- package/dist/WebTileLayer-7391ea01.js +110 -0
- package/dist/WhereClause-1816217e.js +2766 -0
- package/dist/WorkerHandle-25f67c67.js +47 -0
- package/dist/WorkerTileHandler-a7e508bc.js +1539 -0
- package/dist/action-3ce81e45.js +198 -0
- package/dist/action-group-f2d26c2b.js +145 -0
- package/dist/action-menu-015d91ab.js +1759 -0
- package/dist/apng-e5532475.js +392 -0
- package/dist/arcade-dbe2ca4a.js +229 -0
- package/dist/arcadeAsyncRuntime-78b83b41.js +943 -0
- package/dist/arcadeUtils-cb1066a6.js +8741 -0
- package/dist/arcgis-knowledge-client-core-7379d99e.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-ea8b4d20.js +1218 -0
- package/dist/arcgisLayers-cd3494fd.js +152 -0
- package/dist/associatedFeatureServiceUtils-da8d377d.js +92 -0
- package/dist/axisAngleDegrees-19922758.js +49 -0
- package/dist/basis_transcoder-bf0490cc.js +1248 -0
- package/dist/calcite-action-0db4f61c.js +22 -0
- package/dist/calcite-action-bar-1b4c89cb.js +303 -0
- package/dist/calcite-action-group-3c8a934c.js +28 -0
- package/dist/calcite-button-1079a10c.js +228 -0
- package/dist/calcite-flow-c1e71a12.js +128 -0
- package/dist/calcite-flow-item-1097b48f.js +499 -0
- package/dist/calcite-icon-c88b4a67.js +16 -0
- package/dist/calcite-input-8c33ee84.js +24 -0
- package/dist/calcite-label-7fbfbe36.js +79 -0
- package/dist/calcite-list-93af4ae2.js +2135 -0
- package/dist/calcite-list-item-f0a6cda3.js +576 -0
- package/dist/calcite-list-item-group-107a313e.js +71 -0
- package/dist/calcite-loader-5194bf83.js +14 -0
- package/dist/calcite-modal-486280cc.js +333 -0
- package/dist/calcite-notice-a81274a8.js +181 -0
- package/dist/calcite-option-0020a955.js +94 -0
- package/dist/calcite-scrim-27d65e7f.js +18 -0
- package/dist/calcite-select-05f25c2a.js +231 -0
- package/dist/capabilities-238bde7d.js +50 -0
- package/dist/chartCommon-7eda170a.js +256 -0
- package/dist/chartUtilsAm5-fd8aeac2.js +2954 -0
- package/dist/clientSideDefaults-b91506af.js +39 -0
- package/dist/colorRamps-6027ea73.js +38 -0
- package/dist/colorUtils-3dd4b884.js +164 -0
- package/dist/commonProperties-bf4d305f.js +60 -0
- package/dist/computeTranslationToOriginAndRotation-ca5a9439.js +60 -0
- package/dist/conditionalSlot-80a4c6ff.js +27 -0
- package/dist/createConnection-70dd787a.js +299 -0
- package/dist/dataUtils-b632d3a2.js +1421 -0
- package/dist/deduplicate-e13aa9e2.js +89 -0
- package/dist/defaults-40a1a995.js +31 -0
- package/dist/deleteForwardEdits-b0182a08.js +13 -0
- package/dist/diffUtils-5f43e52a.js +90 -0
- package/dist/drapedUtils-416e5304.js +75 -0
- package/dist/earcut-235aa57d.js +292 -0
- package/dist/edgeProcessing-43d45a32.js +252 -0
- package/dist/editingSupport-7706f838.js +203 -0
- package/dist/editsZScale-49d8a8cd.js +37 -0
- package/dist/elevationInfoUtils-3fbfcf1f.js +126 -0
- package/dist/executeForIds-419ba6a3.js +14 -0
- package/dist/executeForTopCount-8a8ba5c7.js +17 -0
- package/dist/executeForTopExtents-9f24d5d0.js +17 -0
- package/dist/executeForTopIds-0bfdb55f.js +17 -0
- package/dist/executeQueryJSON-2a2e9e1b.js +15 -0
- package/dist/executeQueryPBF-f10de9ec.js +152 -0
- package/dist/executeRelationshipQuery-0680cb30.js +53 -0
- package/dist/executeTopFeaturesQuery-c553d696.js +18 -0
- package/dist/featureConversionUtils-83783887.js +479 -0
- package/dist/featureLayerUtils-545d260a.js +250 -0
- package/dist/featureLayerUtils-b18e6016.js +142 -0
- package/dist/featureSetUtils-0c7ba073.js +2530 -0
- package/dist/featuresetbase-aadfabb3.js +707 -0
- package/dist/featuresetgeom-a405018e.js +99 -0
- package/dist/featuresetstats-f6602402.js +81 -0
- package/dist/featuresetstring-834ea865.js +95 -0
- package/dist/fetchService-dac740ef.js +33 -0
- package/dist/fieldProperties-b024e721.js +33 -0
- package/dist/floatRGBA-46ee3e38.js +20 -0
- package/dist/form-0b2f0ac9.js +138 -0
- package/dist/geohashUtils-418d1ca6.js +85 -0
- package/dist/geojson-96d3353d.js +208 -0
- package/dist/geomasync-ff5b3734.js +567 -0
- package/dist/geometryEngine-8fcb3d59.js +192 -0
- package/dist/geometryEngineAsync-212f4b0f.js +217 -0
- package/dist/geometryEngineBase-4c2ff8b9.js +18463 -0
- package/dist/geometryEngineJSON-131b461e.js +171 -0
- package/dist/geometryEngineJSON-b43cf67f.js +46 -0
- package/dist/geometryEngineWorker-707ca480.js +11 -0
- package/dist/geometryServiceUtils-af23d0b5.js +28 -0
- package/dist/georeference-02bc532d.js +291 -0
- package/dist/gif-b072aa1c.js +323 -0
- package/dist/gltfexport-3362ea71.js +705 -0
- package/dist/groupLayerUtils-81545911.js +39 -0
- package/dist/heatmapUtils-b25824e4.js +45 -0
- package/dist/highlightReasons-5b8b2665.js +19 -0
- package/dist/hydrated-b0c62926.js +40 -0
- package/dist/i3s-32edc725.js +809 -0
- package/dist/icon-453c7f62.js +127 -0
- package/dist/imageBitmapUtils-51497e26.js +23 -0
- package/dist/imageUtils-1d1da6e6.js +89 -0
- package/dist/imageUtils-8c40eba6.js +69 -0
- package/dist/imageryUtils-0c00fbf3.js +43 -0
- package/dist/index-3b4c2147.js +45568 -0
- package/dist/index.js +1 -1
- package/dist/input-message-32600f49.js +92 -0
- package/dist/input2-1c0831ed.js +575 -0
- package/dist/interactive-5824e097.js +80 -0
- package/dist/jsonContext-ec21ce85.js +15 -0
- package/dist/jsonUtils-012feb40.js +476 -0
- package/dist/jsonUtils-3979baa3.js +59 -0
- package/dist/jsonUtils-3eb7c689.js +86 -0
- package/dist/kmlUtils-4c198ea5.js +112 -0
- package/dist/knowledgeGraphService-a159d815.js +739 -0
- package/dist/knowledgegraph-eb0d44d4.js +149 -0
- package/dist/labelUtils-01b646c7.js +61 -0
- package/dist/labelingInfo-148dcd26.js +46 -0
- package/dist/layersCreator-4e94f616.js +151 -0
- package/dist/layersLoader-f4e3ab33.js +197 -0
- package/dist/lazyLayerLoader-eb51910e.js +10 -0
- package/dist/lclayout-4d303c41.js +773 -0
- package/dist/lengthUtils-6abaf27a.js +5 -0
- package/dist/lerc-wasm-0ae912df.js +325 -0
- package/dist/libtess-asm-91c97dcd.js +3673 -0
- package/dist/libtess-cba14731.js +269 -0
- package/dist/lineSegment-8f04aab4.js +76 -0
- package/dist/loadGLTFMesh-71542570.js +181 -0
- package/dist/loadable-e7c40a8a.js +24 -0
- package/dist/loader-6272e4b3.js +79 -0
- package/dist/lyr3DWorker-9ee4ee8b.js +2108 -0
- package/dist/mapViewDeps-b17a2e04.js +3052 -0
- package/dist/mediaLayerUtils-f0ccfd82.js +35 -0
- package/dist/meshFeatureSet-304dfa08.js +126 -0
- package/dist/meshVertexSpaceUtils-e7f774fa.js +58 -0
- package/dist/multidimensionalUtils-642f26da.js +290 -0
- package/dist/normalizeUtilsSync-b5f617e6.js +181 -0
- package/dist/number-3af512e3.js +128 -0
- package/dist/objectResourceUtils-d45057aa.js +1455 -0
- package/dist/observers-700e505d.js +30 -0
- package/dist/ogcFeatureUtils-440ed0bf.js +206 -0
- package/dist/openCloseComponent-1501c620.js +37 -0
- package/dist/orientedBoundingBox-80988e7f.js +447 -0
- package/dist/parser-6e351b85.js +488 -0
- package/dist/pbf-a85c52b3.js +215 -0
- package/dist/pbfQueryUtils-5f25f81f.js +422 -0
- package/dist/pe-wasm-e588110b.js +887 -0
- package/dist/persistable-ad01d0ca.js +89 -0
- package/dist/perspectiveUtils-ab58ddbb.js +42 -0
- package/dist/pieChart-d3793e8b.js +555 -0
- package/dist/plane-e103e8ed.js +160 -0
- package/dist/popupUtils-5f7c3e79.js +50 -0
- package/dist/popupUtils-b95ab60a.js +22 -0
- package/dist/portalItemUtils-3d59513a.js +57 -0
- package/dist/portalLayers-16b2f807.js +312 -0
- package/dist/portalUtils-3789afb0.js +7 -0
- package/dist/programUtils-c8d96b39.js +59 -0
- package/dist/project-7eaa59a4.js +21 -0
- package/dist/projectPointToVector-19151d97.js +14 -0
- package/dist/projectVectorToVector-d552535c.js +13 -0
- package/dist/quantityUtils-258bfdb4.js +33 -0
- package/dist/quantizationUtils-752e4d24.js +68 -0
- package/dist/quat-6dc51256.js +104 -0
- package/dist/query-da893693.js +89 -0
- package/dist/queryAttachments-df86b71d.js +39 -0
- package/dist/queryEngineUtils-ffc50ce5.js +21 -0
- package/dist/queryTopFeatures-5a58a12d.js +50 -0
- package/dist/queryZScale-39ffaf30.js +12 -0
- package/dist/rasterProjectionHelper-d13bc46d.js +577 -0
- package/dist/rasterUtils-22b15453.js +122 -0
- package/dist/rasterizingUtils-3388ddbf.js +46 -0
- package/dist/request-82a2415a.js +46 -0
- package/dist/requestImageUtils-2fca27f8.js +8 -0
- package/dist/resourceExtension-672d03cc.js +17 -0
- package/dist/resourceUtils-95b9964a.js +42 -0
- package/dist/resourceUtils-b1e50d5e.js +69 -0
- package/dist/resourceUtils-e8831103.js +62 -0
- package/dist/saveAPIKeyUtils-ee9b0447.js +8 -0
- package/dist/saveUtils-1323ad64.js +24 -0
- package/dist/scaleUtils-1a70f716.js +23 -0
- package/dist/scrim-c0a641cd.js +114 -0
- package/dist/serviceCapabilitiesUtils-33d4e1c0.js +64 -0
- package/dist/sourceUtils-e8c5db4e.js +71 -0
- package/dist/sphere-75cef429.js +199 -0
- package/dist/statsWorker-1f1bc582.js +37 -0
- package/dist/streamLayerUtils-c85a0eed.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-05bc85a5.js +75 -0
- package/dist/styleUtils-7bd8d0a7.js +14 -0
- package/dist/sublayerUtils-feb77591.js +37 -0
- package/dist/substitute-c31da60c.js +52 -0
- package/dist/symbolColorUtils-3c385668.js +8 -0
- package/dist/symbolLayerUtils-2d2753b7.js +31 -0
- package/dist/symbologySnappingCandidates-00eeca39.js +221 -0
- package/dist/t9n-55800455.js +349 -0
- package/dist/testSVGPremultipliedAlpha-ec1f73c4.js +94 -0
- package/dist/timeSupport-a7623294.js +410 -0
- package/dist/triangle-c799f11b.js +98 -0
- package/dist/unitConversionUtils-05050e6d.js +17 -0
- package/dist/unitFormatUtils-2a84c371.js +40 -0
- package/dist/uploadAssetErrors-601b044e.js +70 -0
- package/dist/uploadAssets-5a835c8a.js +330 -0
- package/dist/utils-2dc379da.js +79 -0
- package/dist/utils-34b1ea70.js +2746 -0
- package/dist/utils-45c14202.js +232 -0
- package/dist/utils-484969fb.js +91 -0
- package/dist/utils-5aaff624.js +433 -0
- package/dist/utils-a94dc35d.js +419 -0
- package/dist/utils-e68cfebf.js +34 -0
- package/dist/utils-fc14cc83.js +73 -0
- package/dist/utils3-5745e839.js +75 -0
- package/dist/vec3-12b9e1d8.js +81 -0
- package/dist/vec42-a1569d60.js +125 -0
- package/dist/versionUtils-c4f3617a.js +161 -0
- package/dist/visualVariableUtils-bcb95edc.js +267 -0
- package/dist/webStyleSymbolUtils-9db5b81c.js +48 -0
- package/dist/webglDeps-05e0410a.js +23 -0
- package/dist/wfsUtils-7caaa2cc.js +343 -0
- package/dist/workerHelper-86e37deb.js +11 -0
- package/dist/xyChart-0673158d.js +3335 -0
- package/package.json +1 -1
- package/dist/AGraphicContainer-232b465f.js +0 -109
- package/dist/APIKeyMixin-6c797b4c.js +0 -19
- package/dist/Analysis-fb0fc04a.js +0 -31
- package/dist/ArcGISCachedService-e0930844.js +0 -47
- package/dist/ArcGISService-81baed4d.js +0 -25
- package/dist/AreaMeasurement2D-1dbe17c7.js +0 -405
- package/dist/AreaMeasurement3D-3b80654b.js +0 -488
- package/dist/AttachmentInfo-e02ca554.js +0 -34
- package/dist/AttachmentQuery-1667a134.js +0 -18
- package/dist/AttributeStore-2f8bce1a.js +0 -1707
- package/dist/BaseDynamicLayerView2D-6ed632c7.js +0 -63
- package/dist/BingMapsLayer-1b540400.js +0 -112
- package/dist/Bitmap-625c3ae1.js +0 -128
- package/dist/BitmapContainer-ac2e261c.js +0 -23
- package/dist/BlendLayer-38d68343.js +0 -13
- package/dist/BoundsStore-f1942e67.js +0 -63
- package/dist/BufferObject-faafd842.js +0 -100
- package/dist/BufferView-c2f86567.js +0 -683
- package/dist/BuildingSceneLayer-95da2010.js +0 -535
- package/dist/Button-312c8286.js +0 -36
- package/dist/CSVLayer-68bdf977.js +0 -208
- package/dist/CSVSourceWorker-df47e4b9.js +0 -367
- package/dist/CatalogDynamicGroupLayerView2D-5ff99579.js +0 -66
- package/dist/CatalogFootprintLayerView2D-9f09a894.js +0 -76
- package/dist/CatalogLayer-6b5e756d.js +0 -262
- package/dist/CatalogLayerView2D-4f9ea89a.js +0 -52
- package/dist/ClassBreaksDefinition-d32b0ea5.js +0 -18
- package/dist/ColorMaterial.glsl-5fa4dda6.js +0 -64
- package/dist/ColorSet-59641c11.js +0 -45
- package/dist/ColorStop-d5b563ab.js +0 -29
- package/dist/Container-879e59ef.js +0 -521
- package/dist/CustomParametersMixin-c281d5e7.js +0 -12
- package/dist/DefaultMaterial.glsl-6cc65bf3.js +0 -42
- package/dist/DefaultMaterial_COLOR_GAMMA-14d3794c.js +0 -653
- package/dist/DefaultTheme-6f3c03ba.js +0 -130
- package/dist/DeleteForwardEditsParameters-127d0833.js +0 -18
- package/dist/DimensionLayer-031be560.js +0 -129
- package/dist/DirectLineMeasurement3D-342dea70.js +0 -449
- package/dist/DistanceMeasurement2D-a628b12a.js +0 -303
- package/dist/DoubleArray-61325dbc.js +0 -25
- package/dist/EdgeProcessingWorker-9baa9f38.js +0 -63
- package/dist/EditBusLayer-b7db2f6c.js +0 -107
- package/dist/ElevationInfo-016cc1c4.js +0 -56
- package/dist/ElevationLayer-ae7cbbb9.js +0 -129
- package/dist/ElevationQuery-96db182d.js +0 -598
- package/dist/ElevationSamplerWorker-ab27b576.js +0 -62
- package/dist/ExportImageParameters-d1792a7e.js +0 -66
- package/dist/ExportStrategy-a42be397.js +0 -93
- package/dist/ExportWMSImageParameters-853db12a.js +0 -33
- package/dist/External-a5c4899d.js +0 -110
- package/dist/FeatureCollectionSnappingSource-40da43c0.js +0 -130
- package/dist/FeatureCommandQueue-68735fa7.js +0 -1244
- package/dist/FeatureEffect-20b68d20.js +0 -39
- package/dist/FeatureEffectLayer-65d674f5.js +0 -13
- package/dist/FeatureFilter-0babb1a1.js +0 -27
- package/dist/FeatureLayer-bb266fef.js +0 -693
- package/dist/FeatureLayerBase-583207e8.js +0 -148
- package/dist/FeatureLayerSource-daea2938.js +0 -444
- package/dist/FeatureLayerView2D-a93360fa.js +0 -1967
- package/dist/FeaturePipelineWorker-f8bb9d01.js +0 -3633
- package/dist/FeatureReductionLayer-b540e503.js +0 -225
- package/dist/FeatureReductionSelection-75ac9c66.js +0 -22
- package/dist/FeatureServiceSnappingSource-8d342703.js +0 -481
- package/dist/FeatureServiceSnappingSourceWorker-97c5a3e7.js +0 -747
- package/dist/FeatureSet-769d2f68.js +0 -188
- package/dist/FeatureStore-cfee3322.js +0 -131
- package/dist/FeatureTemplate-1be6448a.js +0 -12
- package/dist/FeatureType-69365546.js +0 -25
- package/dist/FieldsIndex-fd635f39.js +0 -109
- package/dist/FormTemplate-8a69784e.js +0 -350
- package/dist/GeoJSONLayer-288dc230.js +0 -236
- package/dist/GeoJSONSourceWorker-2a406166.js +0 -247
- package/dist/GeoRSSLayer-b6cf0b9a.js +0 -73
- package/dist/GeoRSSLayerView2D-a2d897cc.js +0 -140
- package/dist/GeometryUtils-42ae242b.js +0 -403
- package/dist/GraphicContainer-f39e4cce.js +0 -26
- package/dist/GraphicManipulator-d94e3db2.js +0 -1499
- package/dist/GraphicsLayer-06f54c2b.js +0 -38
- package/dist/GraphicsLayerView2D-6b0c439f.js +0 -114
- package/dist/GraphicsSnappingSource-cdbd5c58.js +0 -273
- package/dist/GraphicsView2D-5c69cd54.js +0 -620
- package/dist/GroupLayer-d90d1469.js +0 -147
- package/dist/GroupLayerView2D-47ee20d3.js +0 -98
- package/dist/HUDMaterial.glsl-1f7c8dc7.js +0 -65
- package/dist/HighlightCounter-82aefa16.js +0 -41
- package/dist/HighlightGraphicContainer-5887470a.js +0 -18
- package/dist/I3SBinaryReader-bc4c80ba.js +0 -310
- package/dist/I3SLayerDefinitions-dcda247e.js +0 -55
- package/dist/I3SUtil-f0366135.js +0 -59
- package/dist/IdentityManager-488a6f1a.js +0 -899
- package/dist/ImageHistogramParameters-4dc64f39.js +0 -905
- package/dist/ImageryLayer-b486249a.js +0 -1799
- package/dist/ImageryLayerView2D-f1c342ad.js +0 -352
- package/dist/ImageryTileLayer-12ada40b.js +0 -2157
- package/dist/ImageryTileLayerView2D-f35352b1.js +0 -1110
- package/dist/Indices-d59209a8.js +0 -67
- package/dist/IntegratedMesh3DTilesLayer-be58f806.js +0 -112
- package/dist/IntegratedMeshLayer-7b709481.js +0 -141
- package/dist/InteractiveAnalysisViewModel-cc8c864a.js +0 -7397
- package/dist/InterleavedLayout-31a7340e.js +0 -163
- package/dist/KMLLayer-599771d7.js +0 -162
- package/dist/KMLLayerView2D-017f9a86.js +0 -253
- package/dist/KnowledgeGraphLayerView2D-2578f250.js +0 -43
- package/dist/LRUCache-d9e4b57a.js +0 -32
- package/dist/LabelClass-909af0e5.js +0 -135
- package/dist/LabelMetric-a3f892e4.js +0 -400
- package/dist/LaserlinePath.glsl-763a0501.js +0 -64
- package/dist/Laserlines.glsl-75db5218.js +0 -65
- package/dist/LayerFloorInfo-8abaffaa.js +0 -15
- package/dist/LayerView-2a8c8edc.js +0 -206
- package/dist/LercWorker-06fcacbd.js +0 -157
- package/dist/LineOfSightLayer-019d46c8.js +0 -147
- package/dist/LinkChartLayer-332a03e2.js +0 -1027
- package/dist/Lyr3DWorker-5d6064e5.js +0 -82
- package/dist/MagnifierPrograms-4170fe79.js +0 -806
- package/dist/MapImageLayer-d86788de.js +0 -169
- package/dist/MapImageLayerView2D-0b2dddf2.js +0 -146
- package/dist/MapNotesLayer-07a5011d.js +0 -283
- package/dist/MapNotesLayerView2D-37f2c3b3.js +0 -161
- package/dist/MapServiceLayerViewHelper-f4014bfb.js +0 -288
- package/dist/MeasurementWidgetContent-31e1b266.js +0 -2642
- package/dist/MediaLayer-cd8e19fe.js +0 -523
- package/dist/MediaLayerView2D-bd3bc699.js +0 -332
- package/dist/MemCache-6249a3f0.js +0 -227
- package/dist/MemorySourceWorker-074a99da.js +0 -222
- package/dist/Mesh-17dfbf3e.js +0 -980
- package/dist/MeshLocalVertexSpace-a0c9365a.js +0 -19
- package/dist/MultiOriginJSONSupport-677c0e5f.js +0 -158
- package/dist/OGCFeatureLayer-1db569c4.js +0 -211
- package/dist/OGCFeatureLayerView2D-3dacad79.js +0 -82
- package/dist/ObjectStack-5e8cdae7.js +0 -21
- package/dist/Octree-0cab1591.js +0 -495
- package/dist/OpenStreetMapLayer-4b9e6867.js +0 -30
- package/dist/OperationalLayer-96cb1405.js +0 -44
- package/dist/OrderByInfo-4cb60db9.js +0 -16
- package/dist/OrderedLayer-cbff4a31.js +0 -26
- package/dist/OrientedImageryLayer-301c702b.js +0 -216
- package/dist/OverlayCompositing.glsl-cdda5153.js +0 -65
- package/dist/OverrideHelper-f9ba3c94.js +0 -242
- package/dist/PBFDecoderWorker-eac75de9.js +0 -213
- package/dist/PointCloudLayer-ce8e5fd6.js +0 -197
- package/dist/PointCloudUniqueValueRenderer-ca506fdf.js +0 -115
- package/dist/PointCloudWorker-49b24336.js +0 -212
- package/dist/PooledRBush-af918d48.js +0 -272
- package/dist/Popup-e996c502.js +0 -3990
- package/dist/PortalLayer-60c1c36d.js +0 -126
- package/dist/Program-5b5c8288.js +0 -694
- package/dist/ProgramTemplate-62d54e1b.js +0 -35
- package/dist/QueryEngine-1b2a6d7d.js +0 -896
- package/dist/QueryTask-07de3621.js +0 -119
- package/dist/RasterSymbolizer-c6f76134.js +0 -3024
- package/dist/RasterVFDisplayObject-573f0530.js +0 -581
- package/dist/RasterWorker-f428c6b4.js +0 -78
- package/dist/RawBlockCache-0803fdd7.js +0 -185
- package/dist/RealisticTree.glsl-abb5883e.js +0 -42
- package/dist/RefreshableLayer-0d1a28eb.js +0 -80
- package/dist/RefreshableLayerView-19c8ff47.js +0 -16
- package/dist/Relationship-35bb85fc.js +0 -64
- package/dist/RelationshipQuery-1cb86efa.js +0 -22
- package/dist/RenderingContext-34f41421.js +0 -889
- package/dist/RibbonLine.glsl-88da820b.js +0 -65
- package/dist/RouteLayer-b6a064d9.js +0 -786
- package/dist/RouteLayerView2D-b14b84ae.js +0 -195
- package/dist/SDFHelper-49b28369.js +0 -140
- package/dist/SSAO.glsl-b5eba45c.js +0 -43
- package/dist/SSAOBlur.glsl-7377bef6.js +0 -42
- package/dist/ScaleRangeLayer-d06647e5.js +0 -21
- package/dist/SceneLayer-34617ffa.js +0 -542
- package/dist/SceneLayerSnappingSource-2115fd1b.js +0 -218
- package/dist/SceneLayerSnappingSourceWorker-5051ed2a.js +0 -112
- package/dist/SceneLayerWorker-416bda11.js +0 -164
- package/dist/SceneService-337f7bcd.js +0 -215
- package/dist/Scheduler-b0e8df04.js +0 -373
- package/dist/ShadedColorMaterial.glsl-8dd39e79.js +0 -64
- package/dist/SnappingOperation-726320a3.js +0 -48
- package/dist/SourceLayerData-b2da5f90.js +0 -116
- package/dist/SpatialFilter-0839066d.js +0 -1701
- package/dist/Stop-16e18837.js +0 -281
- package/dist/StreamLayer-a2c5ad69.js +0 -188
- package/dist/StreamLayerView2D-b1cb419c.js +0 -164
- package/dist/StyleRepository-55975dc1.js +0 -2212
- package/dist/SublayersOwner-dfd52113.js +0 -545
- package/dist/SubtypeGroupLayer-19990fdc.js +0 -514
- package/dist/SubtypeGroupLayerView2D-039eecec.js +0 -84
- package/dist/TechniqueInstance-f272ce92.js +0 -233
- package/dist/TemporalLayer-960c7904.js +0 -23
- package/dist/Texture-08e8abdd.js +0 -501
- package/dist/TextureOnly.glsl-adbd8e1e.js +0 -65
- package/dist/Theme-a0c472c9.js +0 -3426
- package/dist/Tick-ad80492f.js +0 -723
- package/dist/TileContainer-6b12d8e1.js +0 -31
- package/dist/TileInfoTilemapCache-b78dac78.js +0 -38
- package/dist/TileLayer-4db1b607.js +0 -194
- package/dist/TileLayerView2D-1f2d0b4c.js +0 -187
- package/dist/TilemapCache-671945d2.js +0 -189
- package/dist/TimeInfo-48493242.js +0 -42
- package/dist/TimeOnly-40ea9bb9.js +0 -706
- package/dist/Tooltip-9ecc3c9d.js +0 -138
- package/dist/TopFeaturesQuery-c0fd4e83.js +0 -32
- package/dist/TurboLine-cb0c9eaa.js +0 -565
- package/dist/UniqueValueRenderer-e4a27dfc.js +0 -1039
- package/dist/UnknownLayer-c3ba50b7.js +0 -30
- package/dist/UnknownTimeZone-832b690f.js +0 -15
- package/dist/UnsupportedLayer-0a89352f.js +0 -31
- package/dist/UpdateTracking2D-881e1d79.js +0 -8566
- package/dist/Util-b8d78341.js +0 -57
- package/dist/VectorTileLayer-43223ebe.js +0 -544
- package/dist/VectorTileLayerView2D-3d5f0721.js +0 -2108
- package/dist/Version-014efc62.js +0 -33
- package/dist/VertexArrayObject-4c6a6897.js +0 -73
- package/dist/VertexColor.glsl-e1468339.js +0 -2683
- package/dist/VertexSnappingCandidate-b3a3d14d.js +0 -13
- package/dist/VideoLayerView2D-f24c6919.js +0 -124
- package/dist/VoxelLayer-5ab46878.js +0 -631
- package/dist/WFSLayer-e8a081ca.js +0 -221
- package/dist/WFSSourceWorker-55c872f8.js +0 -157
- package/dist/WGLContainer-f4c4a8dc.js +0 -5426
- package/dist/WMSLayer-e9d5e4a6.js +0 -536
- package/dist/WMSLayerView2D-56144a1d.js +0 -117
- package/dist/WMTSLayer-c571ae0f.js +0 -531
- package/dist/WMTSLayerView2D-81b561e0.js +0 -142
- package/dist/WebTileLayer-cd295f56.js +0 -110
- package/dist/WhereClause-8bc4aa58.js +0 -2766
- package/dist/WorkerHandle-f8e580f2.js +0 -47
- package/dist/WorkerTileHandler-0f73a7f2.js +0 -1539
- package/dist/action-53058ddb.js +0 -198
- package/dist/action-group-ff2ef7e7.js +0 -145
- package/dist/action-menu-fefff035.js +0 -1759
- package/dist/apng-ac31a3d2.js +0 -392
- package/dist/arcade-ce9e8356.js +0 -229
- package/dist/arcadeAsyncRuntime-068150f3.js +0 -943
- package/dist/arcadeUtils-38c2028a.js +0 -8741
- package/dist/arcgis-knowledge-client-core-418d2890.js +0 -1218
- package/dist/arcgis-knowledge-client-core-simd-bf207cbd.js +0 -1218
- package/dist/arcgisLayers-f9b73e96.js +0 -152
- package/dist/associatedFeatureServiceUtils-f1895302.js +0 -92
- package/dist/axisAngleDegrees-abd6e971.js +0 -49
- package/dist/basis_transcoder-ba9d02db.js +0 -1248
- package/dist/calcite-action-07342a33.js +0 -22
- package/dist/calcite-action-bar-b8b194bf.js +0 -303
- package/dist/calcite-action-group-f93a5b76.js +0 -28
- package/dist/calcite-button-13172f9c.js +0 -228
- package/dist/calcite-flow-959098df.js +0 -128
- package/dist/calcite-flow-item-9141ea0e.js +0 -499
- package/dist/calcite-icon-1f1f741d.js +0 -16
- package/dist/calcite-input-99b0c89d.js +0 -24
- package/dist/calcite-label-5daa57c6.js +0 -79
- package/dist/calcite-list-543efc4b.js +0 -2135
- package/dist/calcite-list-item-a148ac57.js +0 -576
- package/dist/calcite-list-item-group-4da974f3.js +0 -71
- package/dist/calcite-loader-8b29a4cd.js +0 -14
- package/dist/calcite-modal-b64d2a9b.js +0 -333
- package/dist/calcite-notice-1527bc00.js +0 -181
- package/dist/calcite-option-5ea94a2a.js +0 -94
- package/dist/calcite-scrim-35fd270f.js +0 -18
- package/dist/calcite-select-a936a6d4.js +0 -231
- package/dist/capabilities-eb05cd14.js +0 -50
- package/dist/chartCommon-af447b81.js +0 -256
- package/dist/chartUtilsAm5-21243f3e.js +0 -2954
- package/dist/clientSideDefaults-0197b13d.js +0 -39
- package/dist/colorRamps-100595ab.js +0 -38
- package/dist/colorUtils-1a8cc2f8.js +0 -164
- package/dist/commonProperties-7d8f6b56.js +0 -60
- package/dist/computeTranslationToOriginAndRotation-466bc2c5.js +0 -60
- package/dist/conditionalSlot-55a86124.js +0 -27
- package/dist/createConnection-37afc89c.js +0 -299
- package/dist/dataUtils-efd5edf8.js +0 -1421
- package/dist/deduplicate-be0453c1.js +0 -89
- package/dist/defaults-3495cefd.js +0 -31
- package/dist/deleteForwardEdits-8ffa4b4e.js +0 -13
- package/dist/diffUtils-cccaeaa2.js +0 -90
- package/dist/drapedUtils-dfe3325a.js +0 -75
- package/dist/earcut-1a1bdd2c.js +0 -292
- package/dist/edgeProcessing-b0f5f4f0.js +0 -252
- package/dist/editingSupport-93603f8d.js +0 -203
- package/dist/editsZScale-8a2a7226.js +0 -37
- package/dist/elevationInfoUtils-96b1ac38.js +0 -126
- package/dist/executeForIds-48f5ccd3.js +0 -14
- package/dist/executeForTopCount-6ba38c5f.js +0 -17
- package/dist/executeForTopExtents-570aeb4a.js +0 -17
- package/dist/executeForTopIds-066c5e05.js +0 -17
- package/dist/executeQueryJSON-f5d65f6d.js +0 -15
- package/dist/executeQueryPBF-4ff20838.js +0 -152
- package/dist/executeRelationshipQuery-60c2686f.js +0 -53
- package/dist/executeTopFeaturesQuery-029eb564.js +0 -18
- package/dist/featureConversionUtils-8635d4bd.js +0 -479
- package/dist/featureLayerUtils-883379f8.js +0 -250
- package/dist/featureLayerUtils-89be3008.js +0 -142
- package/dist/featureSetUtils-3ba52dc3.js +0 -2530
- package/dist/featuresetbase-360521bb.js +0 -707
- package/dist/featuresetgeom-1c40fbf0.js +0 -99
- package/dist/featuresetstats-8b7ee0fc.js +0 -81
- package/dist/featuresetstring-502232ab.js +0 -95
- package/dist/fetchService-81224f29.js +0 -33
- package/dist/fieldProperties-1d23cc31.js +0 -33
- package/dist/floatRGBA-8dd8f77f.js +0 -20
- package/dist/form-81637afc.js +0 -138
- package/dist/geohashUtils-7a5a8250.js +0 -85
- package/dist/geojson-b271f3fc.js +0 -208
- package/dist/geomasync-4182a04e.js +0 -567
- package/dist/geometryEngine-170fd2fc.js +0 -192
- package/dist/geometryEngineAsync-ff5386c8.js +0 -217
- package/dist/geometryEngineBase-292b6d6f.js +0 -18463
- package/dist/geometryEngineJSON-15d3dac3.js +0 -46
- package/dist/geometryEngineJSON-c8044348.js +0 -171
- package/dist/geometryEngineWorker-19511bd8.js +0 -11
- package/dist/geometryServiceUtils-a348e7af.js +0 -28
- package/dist/georeference-72e12165.js +0 -291
- package/dist/gif-48b9a7df.js +0 -323
- package/dist/gltfexport-45261c80.js +0 -705
- package/dist/groupLayerUtils-f400995e.js +0 -39
- package/dist/heatmapUtils-81245e4b.js +0 -45
- package/dist/highlightReasons-23d6c956.js +0 -19
- package/dist/hydrated-e88a116e.js +0 -40
- package/dist/i3s-8b6deab9.js +0 -809
- package/dist/icon-422742c4.js +0 -127
- package/dist/imageBitmapUtils-12016538.js +0 -23
- package/dist/imageUtils-b38618d9.js +0 -89
- package/dist/imageUtils-c550215a.js +0 -69
- package/dist/imageryUtils-ac0e6068.js +0 -43
- package/dist/index-a450f76b.js +0 -45553
- package/dist/input-message-c606a089.js +0 -92
- package/dist/input2-8de5385e.js +0 -575
- package/dist/interactive-1bfa32d8.js +0 -80
- package/dist/jsonContext-70d89bc5.js +0 -15
- package/dist/jsonUtils-599f89fd.js +0 -86
- package/dist/jsonUtils-59cbda09.js +0 -476
- package/dist/jsonUtils-dbeb4b10.js +0 -59
- package/dist/kmlUtils-acfd0be5.js +0 -112
- package/dist/knowledgeGraphService-d0de6015.js +0 -739
- package/dist/knowledgegraph-1d25377f.js +0 -149
- package/dist/labelUtils-17e6e19c.js +0 -61
- package/dist/labelingInfo-7583b96a.js +0 -46
- package/dist/layersCreator-a7588c85.js +0 -151
- package/dist/layersLoader-503fa253.js +0 -197
- package/dist/lazyLayerLoader-14780aaf.js +0 -10
- package/dist/lclayout-b5aeb13b.js +0 -773
- package/dist/lengthUtils-15c44621.js +0 -5
- package/dist/lerc-wasm-57456401.js +0 -325
- package/dist/libtess-asm-08a80cbf.js +0 -3673
- package/dist/libtess-bcb513a0.js +0 -269
- package/dist/lineSegment-53f5f3d5.js +0 -76
- package/dist/loadGLTFMesh-561cd76a.js +0 -181
- package/dist/loadable-11e952cf.js +0 -24
- package/dist/loader-aafdf7c3.js +0 -79
- package/dist/lyr3DWorker-1876a7b0.js +0 -2108
- package/dist/mapViewDeps-c8de4ef9.js +0 -3052
- package/dist/mediaLayerUtils-236fdb9c.js +0 -35
- package/dist/meshFeatureSet-cf240f51.js +0 -126
- package/dist/meshVertexSpaceUtils-3647b869.js +0 -58
- package/dist/multidimensionalUtils-611e5cda.js +0 -290
- package/dist/normalizeUtilsSync-90304e5d.js +0 -181
- package/dist/number-d1e69c5f.js +0 -128
- package/dist/objectResourceUtils-237c5dab.js +0 -1455
- package/dist/observers-7ebedc04.js +0 -30
- package/dist/ogcFeatureUtils-f14754d3.js +0 -206
- package/dist/openCloseComponent-f7f72e31.js +0 -37
- package/dist/orientedBoundingBox-75e679bc.js +0 -447
- package/dist/parser-54b64f9a.js +0 -488
- package/dist/pbf-4b5a905e.js +0 -215
- package/dist/pbfQueryUtils-780daa49.js +0 -422
- package/dist/pe-wasm-7eeff6bc.js +0 -887
- package/dist/persistable-2afd8b64.js +0 -89
- package/dist/perspectiveUtils-78d50b08.js +0 -42
- package/dist/pieChart-f5575f34.js +0 -555
- package/dist/plane-ee1849b4.js +0 -160
- package/dist/popupUtils-5d826c7a.js +0 -50
- package/dist/popupUtils-8f261298.js +0 -22
- package/dist/portalItemUtils-07c1c29f.js +0 -57
- package/dist/portalLayers-199d1cb1.js +0 -312
- package/dist/portalUtils-f3c544f6.js +0 -7
- package/dist/programUtils-cd0377dc.js +0 -59
- package/dist/project-6d7a2904.js +0 -21
- package/dist/projectPointToVector-5800baf2.js +0 -14
- package/dist/projectVectorToVector-fdcb00cb.js +0 -13
- package/dist/quantityUtils-ab7a657b.js +0 -33
- package/dist/quantizationUtils-dde8a0c2.js +0 -68
- package/dist/quat-48b188ff.js +0 -104
- package/dist/query-581e35c7.js +0 -89
- package/dist/queryAttachments-191977a0.js +0 -39
- package/dist/queryEngineUtils-15b0748f.js +0 -21
- package/dist/queryTopFeatures-e6b8517a.js +0 -50
- package/dist/queryZScale-b9c83898.js +0 -12
- package/dist/rasterProjectionHelper-9e69c84d.js +0 -577
- package/dist/rasterUtils-76d2db45.js +0 -122
- package/dist/rasterizingUtils-730137a6.js +0 -46
- package/dist/request-3c238dd9.js +0 -46
- package/dist/requestImageUtils-6a0b710a.js +0 -8
- package/dist/resourceExtension-8e2ef6d4.js +0 -17
- package/dist/resourceUtils-49ebeb9f.js +0 -42
- package/dist/resourceUtils-b3c85655.js +0 -62
- package/dist/resourceUtils-b45c0ef9.js +0 -69
- package/dist/saveAPIKeyUtils-1146065e.js +0 -8
- package/dist/saveUtils-196e791e.js +0 -24
- package/dist/scaleUtils-7e908168.js +0 -23
- package/dist/scrim-56f6fa37.js +0 -114
- package/dist/serviceCapabilitiesUtils-266d7001.js +0 -64
- package/dist/sourceUtils-0d21eace.js +0 -71
- package/dist/sphere-8103ac36.js +0 -199
- package/dist/statsWorker-04df4d99.js +0 -37
- package/dist/streamLayerUtils-6b66a73a.js +0 -31
- package/dist/styleUtils-31e64784.js +0 -75
- package/dist/styleUtils-3951c967.js +0 -14
- package/dist/sublayerUtils-d60d357a.js +0 -37
- package/dist/substitute-77b7b80a.js +0 -52
- package/dist/symbolColorUtils-d97fe12d.js +0 -8
- package/dist/symbolLayerUtils-5f73a9b9.js +0 -31
- package/dist/symbologySnappingCandidates-bd284687.js +0 -221
- package/dist/t9n-2012740c.js +0 -349
- package/dist/testSVGPremultipliedAlpha-bb386a75.js +0 -94
- package/dist/timeSupport-2eb266be.js +0 -410
- package/dist/triangle-cac8dd7a.js +0 -98
- package/dist/unitConversionUtils-ad9151e0.js +0 -17
- package/dist/unitFormatUtils-3096fcbf.js +0 -40
- package/dist/uploadAssetErrors-b8ec890d.js +0 -70
- package/dist/uploadAssets-42d5e368.js +0 -330
- package/dist/utils-0ec1deff.js +0 -232
- package/dist/utils-25ac5b7c.js +0 -73
- package/dist/utils-3fc8cef0.js +0 -79
- package/dist/utils-59c058ba.js +0 -2746
- package/dist/utils-5a4ac69c.js +0 -419
- package/dist/utils-93ae7d8a.js +0 -34
- package/dist/utils-bba64d46.js +0 -91
- package/dist/utils-ce8900dc.js +0 -433
- package/dist/utils3-72b32be5.js +0 -75
- package/dist/vec3-0abe1464.js +0 -81
- package/dist/vec42-1641eab7.js +0 -125
- package/dist/versionUtils-6a805b25.js +0 -161
- package/dist/visualVariableUtils-7ae62b11.js +0 -267
- package/dist/webStyleSymbolUtils-038dca4c.js +0 -48
- package/dist/webglDeps-c2957fe0.js +0 -23
- package/dist/wfsUtils-a332128b.js +0 -343
- package/dist/workerHelper-2a48e790.js +0 -11
- package/dist/xyChart-131284db.js +0 -3335
|
@@ -1,2642 +0,0 @@
|
|
|
1
|
-
import { G as Ze, cy as Ut, fg as P, bd as et, bf as Et, W as jt, j as Bt, b1 as Tn, b0 as Vn, kf as q, dU as Ls, kg as Rs, kh as Ps, aI as Ss, bR as An, bg as X, bl as bt, e as f, y as _, c as It, ad as re, bx as Ln, g6 as V, fs as ue, fm as ks, aS as R, iJ as Mt, a$ as Rt, iI as Rn, ki as Pn, kj as Ns, jA as zs, b9 as g, kk as Cs, gc as Is, hk as Ds, bm as $t, kl as oe, aH as Zs, gn as Os, dc as Sn, dN as Xt, d0 as Us, jj as C, jv as qs, km as kn, kn as ct, ko as kt, kp as Pt, kq as Hs, hW as sn, bo as rn, bc as z, kr as on, bp as Ot, ks as Fs, bF as Gs, iH as js, kt as an, g as Xs, c7 as Ys, ku as Ws, kv as Bs, kw as Js, bT as pe, bz as Qs, aq as Yt, en as j, fr as O, kx as Ks, bn as Oe, gi as Le, fj as Nn, C as ti, B as ei, br as Re, bq as ni, ky as si, jr as zn, bE as ii, kz as ri, o as Ue, a as oi, l as ai, eQ as li, k as ci, fG as Cn, by as hi, q as ui, kA as pi, i0 as di, jm as fi, kB as gi, kC as _i, kD as mi, V as yi, S as In, kE as Tt, dO as vi, s as Dn, p as xi, fU as Ei, fV as Zn, hO as On, fW as N, kF as $i } from "./index-a450f76b.js";
|
|
2
|
-
import { _ as Mi, a as wi, L as bi, s as Ti, j as Vi } from "./vec42-1641eab7.js";
|
|
3
|
-
import { n as Un, r as Ee, e as Ai } from "./vec4f64-043e974c.js";
|
|
4
|
-
import { E as F, j as Jt, V as qt, A as $e, D as qn, F as Ht, w as qe, R as Pe, J as Hn, b as Li } from "./plane-ee1849b4.js";
|
|
5
|
-
import { f as Ri, a as ln, D as Pi, T as Si, E as ki, W as Ni, Z as zi } from "./sphere-8103ac36.js";
|
|
6
|
-
import { e as Qt, n as ae } from "./projectVectorToVector-fdcb00cb.js";
|
|
7
|
-
import { g as Ci, h as Ii, w as He, v as cn } from "./elevationInfoUtils-96b1ac38.js";
|
|
8
|
-
import { g as Di, u as Zi } from "./meshVertexSpaceUtils-3647b869.js";
|
|
9
|
-
import { I as Oi, F as Ui } from "./Scheduler-b0e8df04.js";
|
|
10
|
-
import { y as Fn, l as qi } from "./quantityUtils-ab7a657b.js";
|
|
11
|
-
function Hi(n, t) {
|
|
12
|
-
return n === t || n != null && t != null && Ze(n.spatialReference, t.spatialReference) && n.x === t.x && n.y === t.y && n.z === t.z && n.m === t.m;
|
|
13
|
-
}
|
|
14
|
-
function Do(n, t, e) {
|
|
15
|
-
return n === t || n != null && t != null && Ze(n.spatialReference, t.spatialReference) && Ut(n.x, t.x, e) && Ut(n.y, t.y, e) && Ut(n.z ?? 0, t.z ?? 0, e) && Ut(n.m ?? 0, t.m ?? 0, e);
|
|
16
|
-
}
|
|
17
|
-
function Zo(n) {
|
|
18
|
-
const t = n[0] * n[0] + n[4] * n[4] + n[8] * n[8], e = n[1] * n[1] + n[5] * n[5] + n[9] * n[9], s = n[2] * n[2] + n[6] * n[6] + n[10] * n[10];
|
|
19
|
-
return Math.sqrt(Math.max(t, e, s));
|
|
20
|
-
}
|
|
21
|
-
function Gn(n, t, e) {
|
|
22
|
-
Math.abs(n[0]) > Math.abs(n[1]) ? P(t, 0, 1, 0) : P(t, 1, 0, 0), et(e, n, t), et(t, e, n), Et(e, e), Et(t, t);
|
|
23
|
-
}
|
|
24
|
-
function jn(n) {
|
|
25
|
-
if (!n)
|
|
26
|
-
return null;
|
|
27
|
-
if (Ls(n) && n.wkid) {
|
|
28
|
-
const e = Rs[n.wkid];
|
|
29
|
-
if (e)
|
|
30
|
-
return e;
|
|
31
|
-
}
|
|
32
|
-
const t = n.wkt2 || n.wkt;
|
|
33
|
-
if (t) {
|
|
34
|
-
const e = Fi(t);
|
|
35
|
-
if (e)
|
|
36
|
-
return e;
|
|
37
|
-
}
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
function Fi(n) {
|
|
41
|
-
const t = Ps.exec(n);
|
|
42
|
-
if (!t || t.length !== 2)
|
|
43
|
-
return null;
|
|
44
|
-
const e = t[1].split(",");
|
|
45
|
-
if (!e || e.length < 3)
|
|
46
|
-
return null;
|
|
47
|
-
const s = parseFloat(e[1]), i = parseFloat(e[2]);
|
|
48
|
-
return isNaN(s) || isNaN(i) ? null : { a: s, f: i === 0 ? 0 : 1 / i };
|
|
49
|
-
}
|
|
50
|
-
function de(n) {
|
|
51
|
-
const t = jn(n);
|
|
52
|
-
if (Gi(t))
|
|
53
|
-
return t;
|
|
54
|
-
const e = t.a * (1 - t.f);
|
|
55
|
-
return Object.assign(t, { b: e, eSq: 1 - (e / t.a) ** 2, radius: (2 * t.a + e) / 3, densificationRatio: 1e4 / ((2 * t.a + e) / 3) });
|
|
56
|
-
}
|
|
57
|
-
function Gi(n) {
|
|
58
|
-
return n != null && "b" in n && "eSq" in n && "radius" in n;
|
|
59
|
-
}
|
|
60
|
-
function ie(n, t, e) {
|
|
61
|
-
const { a: s, eSq: i } = de(e), r = Math.sqrt(i), o = Math.sin(t[1] * q), a = s * t[0] * q;
|
|
62
|
-
let l;
|
|
63
|
-
return i > 0 ? l = s * ((1 - i) * (o / (1 - i * (o * o)) - 1 / (2 * r) * Math.log((1 - r * o) / (1 + r * o)))) * 0.5 : l = s * o, n[0] = a, n[1] = l, n;
|
|
64
|
-
}
|
|
65
|
-
function fe(n) {
|
|
66
|
-
return jn(n) !== null;
|
|
67
|
-
}
|
|
68
|
-
function Oo(n, t = "square-meters") {
|
|
69
|
-
if (n.some((o) => !fe(o.spatialReference)))
|
|
70
|
-
throw new jt("geodesic-areas:invalid-spatial-reference", "the input geometries spatial reference is not supported");
|
|
71
|
-
const e = [];
|
|
72
|
-
for (let o = 0; o < n.length; o++) {
|
|
73
|
-
const a = n[o], l = a.spatialReference, { radius: c, densificationRatio: u } = de(l), h = c * u;
|
|
74
|
-
e.push(ji(a, h));
|
|
75
|
-
}
|
|
76
|
-
const s = [], i = [0, 0], r = [0, 0];
|
|
77
|
-
for (let o = 0; o < e.length; o++) {
|
|
78
|
-
const { rings: a, spatialReference: l } = e[o];
|
|
79
|
-
let c = 0;
|
|
80
|
-
for (let u = 0; u < a.length; u++) {
|
|
81
|
-
const h = a[u];
|
|
82
|
-
ie(i, h[0], l), ie(r, h[h.length - 1], l);
|
|
83
|
-
let d = r[0] * i[1] - i[0] * r[1];
|
|
84
|
-
for (let p = 0; p < h.length - 1; p++)
|
|
85
|
-
ie(i, h[p + 1], l), ie(r, h[p], l), d += r[0] * i[1] - i[0] * r[1];
|
|
86
|
-
c += d;
|
|
87
|
-
}
|
|
88
|
-
c = Bt(c, "square-meters", t), s.push(c / -2);
|
|
89
|
-
}
|
|
90
|
-
return s;
|
|
91
|
-
}
|
|
92
|
-
function Uo(n, t = "meters") {
|
|
93
|
-
if (!n)
|
|
94
|
-
throw new jt("geodesic-lengths:invalid-geometries", "the input geometries type is not supported");
|
|
95
|
-
if (n.some((s) => !fe(s.spatialReference)))
|
|
96
|
-
throw new jt("geodesic-lengths:invalid-spatial-reference", "the input geometries spatial reference is not supported");
|
|
97
|
-
const e = [];
|
|
98
|
-
for (let s = 0; s < n.length; s++) {
|
|
99
|
-
const i = n[s], { spatialReference: r } = i, o = i.type === "polyline" ? i.paths : i.rings;
|
|
100
|
-
let a = 0;
|
|
101
|
-
for (let l = 0; l < o.length; l++) {
|
|
102
|
-
const c = o[l];
|
|
103
|
-
let u = 0;
|
|
104
|
-
for (let h = 1; h < c.length; h++) {
|
|
105
|
-
const d = c[h - 1][0], p = c[h][0], y = c[h - 1][1], m = c[h][1];
|
|
106
|
-
if (y !== m || d !== p) {
|
|
107
|
-
const v = new Kt();
|
|
108
|
-
te(v, [d, y], [p, m], r), u += v.distance;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
a += u;
|
|
112
|
-
}
|
|
113
|
-
a = Bt(a, "meters", t), e.push(a);
|
|
114
|
-
}
|
|
115
|
-
return e;
|
|
116
|
-
}
|
|
117
|
-
function ji(n, t) {
|
|
118
|
-
if (n.type !== "polyline" && n.type !== "polygon")
|
|
119
|
-
throw new jt("geodesic-densify:invalid-geometry", "the input geometry is neither polyline nor polygon");
|
|
120
|
-
const { spatialReference: e } = n;
|
|
121
|
-
if (!fe(e))
|
|
122
|
-
throw new jt("geodesic-densify:invalid-spatial-reference", "the input geometry spatial reference is not supported");
|
|
123
|
-
const s = n.type === "polyline" ? n.paths : n.rings, i = [], r = [0, 0], o = new Kt();
|
|
124
|
-
for (const a of s) {
|
|
125
|
-
const l = [];
|
|
126
|
-
i.push(l), l.push([a[0][0], a[0][1]]);
|
|
127
|
-
let c, u, h = a[0][0], d = a[0][1];
|
|
128
|
-
for (let p = 0; p < a.length - 1; p++) {
|
|
129
|
-
if (c = a[p + 1][0], u = a[p + 1][1], h === c && d === u)
|
|
130
|
-
continue;
|
|
131
|
-
const y = [h, d];
|
|
132
|
-
te(o, [h, d], [c, u], e);
|
|
133
|
-
const { azimuth: m, distance: v } = o, x = v / t;
|
|
134
|
-
if (x > 1) {
|
|
135
|
-
for (let b = 1; b <= x - 1; b++)
|
|
136
|
-
At(r, y, m, b * t, e), l.push(r.slice(0));
|
|
137
|
-
At(r, y, m, (v + Math.floor(x - 1) * t) / 2, e), l.push(r.slice(0));
|
|
138
|
-
}
|
|
139
|
-
At(r, y, m, v, e), l.push(r.slice(0)), h = r[0], d = r[1];
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return n.type === "polyline" ? new Tn({ paths: i, spatialReference: e }) : new Vn({ rings: i, spatialReference: e });
|
|
143
|
-
}
|
|
144
|
-
let Kt = class {
|
|
145
|
-
constructor(t = 0, e = void 0, s = void 0) {
|
|
146
|
-
this.distance = t, this.azimuth = e, this.reverseAzimuth = s;
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
function At(n, t, e, s, i) {
|
|
150
|
-
const r = t[0], o = t[1], a = r * q, l = o * q, c = (e ?? 0) * q, { a: u, b: h, f: d } = de(i), p = Math.sin(c), y = Math.cos(c), m = (1 - d) * Math.tan(l), v = 1 / Math.sqrt(1 + m * m), x = m * v, b = Math.atan2(m, y), S = v * p, I = S * S, A = 1 - I, E = A * (u * u - h * h) / (h * h), k = 1 + E / 16384 * (4096 + E * (E * (320 - 175 * E) - 768)), U = E / 1024 * (256 + E * (E * (74 - 47 * E) - 128));
|
|
151
|
-
let D, G, L, rt, W = s / (h * k), H = 2 * Math.PI;
|
|
152
|
-
for (; Math.abs(W - H) > 1e-12; )
|
|
153
|
-
L = Math.cos(2 * b + W), D = Math.sin(W), G = Math.cos(W), rt = U * D * (L + U / 4 * (G * (2 * L * L - 1) - U / 6 * L * (4 * D * D - 3) * (4 * L * L - 3))), H = W, W = s / (h * k) + rt;
|
|
154
|
-
const Q = x * D - v * G * y, Dt = Math.atan2(x * G + v * D * y, (1 - d) * Math.sqrt(I + Q * Q)), ye = Math.atan2(D * p, v * G - x * D * y), Zt = d / 16 * A * (4 + d * (4 - 3 * A)), ve = Dt / q, xe = (a + (ye - (1 - Zt) * d * S * (W + Zt * D * (L + Zt * G * (2 * L * L - 1))))) / q;
|
|
155
|
-
return n[0] = xe, n[1] = ve, n;
|
|
156
|
-
}
|
|
157
|
-
function te(n, t, e, s) {
|
|
158
|
-
const i = t[0] * q, r = t[1] * q, o = e[0] * q, a = e[1] * q, { a: l, b: c, f: u, radius: h } = de(s), d = o - i, p = Math.atan((1 - u) * Math.tan(r)), y = Math.atan((1 - u) * Math.tan(a)), m = Math.sin(p), v = Math.cos(p), x = Math.sin(y), b = Math.cos(y);
|
|
159
|
-
let S, I, A, E, k, U, D, G, L, rt, W = 1e3, H = d;
|
|
160
|
-
do {
|
|
161
|
-
if (D = Math.sin(H), G = Math.cos(H), A = Math.sqrt(b * D * (b * D) + (v * x - m * b * G) * (v * x - m * b * G)), A === 0)
|
|
162
|
-
return n.distance = 0, n.azimuth = void 0, n.reverseAzimuth = void 0, n;
|
|
163
|
-
k = m * x + v * b * G, U = Math.atan2(A, k), L = v * b * D / A, I = 1 - L * L, E = k - 2 * m * x / I, isNaN(E) && (E = 0), rt = u / 16 * I * (4 + u * (4 - 3 * I)), S = H, H = d + (1 - rt) * u * L * (U + rt * A * (E + rt * k * (2 * E * E - 1)));
|
|
164
|
-
} while (Math.abs(H - S) > 1e-12 && --W > 0);
|
|
165
|
-
if (W === 0) {
|
|
166
|
-
const xe = h, bs = Math.acos(Math.sin(r) * Math.sin(a) + Math.cos(r) * Math.cos(a) * Math.cos(o - i)) * xe, nn = o - i, Ts = Math.sin(nn) * Math.cos(a), Vs = Math.cos(r) * Math.sin(a) - Math.sin(r) * Math.cos(a) * Math.cos(nn), As = Math.atan2(Ts, Vs);
|
|
167
|
-
return n.azimuth = As / q, n.distance = bs, n.reverseAzimuth = void 0, n;
|
|
168
|
-
}
|
|
169
|
-
const Q = I * (l * l - c * c) / (c * c), Dt = Q / 1024 * (256 + Q * (Q * (74 - 47 * Q) - 128)), ye = c * (1 + Q / 16384 * (4096 + Q * (Q * (320 - 175 * Q) - 768))) * (U - Dt * A * (E + Dt / 4 * (k * (2 * E * E - 1) - Dt / 6 * E * (4 * A * A - 3) * (4 * E * E - 3)))), Zt = Math.atan2(b * Math.sin(H), v * x - m * b * Math.cos(H)), ve = Math.atan2(v * Math.sin(H), v * x * Math.cos(H) - m * b);
|
|
170
|
-
return n.azimuth = Zt / q, n.distance = ye, n.reverseAzimuth = ve / q, n;
|
|
171
|
-
}
|
|
172
|
-
function Se(n) {
|
|
173
|
-
return fe(n) ? n : Ss(n) ? An.WGS84 : null;
|
|
174
|
-
}
|
|
175
|
-
function Xi(n, t, e) {
|
|
176
|
-
return X(n, t, e);
|
|
177
|
-
}
|
|
178
|
-
function Ho(n) {
|
|
179
|
-
return n;
|
|
180
|
-
}
|
|
181
|
-
function Fo(n) {
|
|
182
|
-
return n;
|
|
183
|
-
}
|
|
184
|
-
function St(n, t, e) {
|
|
185
|
-
return X(n, t, e);
|
|
186
|
-
}
|
|
187
|
-
function Nt(n) {
|
|
188
|
-
return bt(n);
|
|
189
|
-
}
|
|
190
|
-
function hn(n, t, { coordinateHelper: e, elevationInfo: s }) {
|
|
191
|
-
return n ? Yi(e.vectorToDehydratedPoint(n, Wi), t, s) : null;
|
|
192
|
-
}
|
|
193
|
-
function Yi(n, t, e) {
|
|
194
|
-
if (n == null)
|
|
195
|
-
return null;
|
|
196
|
-
if (t == null)
|
|
197
|
-
return X(n.x, n.y, n.z ?? 0);
|
|
198
|
-
if (t.type === "2d")
|
|
199
|
-
return X(n.x, n.y, 0);
|
|
200
|
-
const s = Ci(t, n, e, He) ?? 0;
|
|
201
|
-
return X(n.x, n.y, s);
|
|
202
|
-
}
|
|
203
|
-
function Go(n, t) {
|
|
204
|
-
return Qt(n[0], n[1], n[2], t);
|
|
205
|
-
}
|
|
206
|
-
function jo(n, t, { z: e, m: s }, i) {
|
|
207
|
-
const { spatialReference: r, elevationInfo: o } = i;
|
|
208
|
-
let a;
|
|
209
|
-
e == null && s == null ? a = void 0 : t == null || t.type === "2d" ? a = e ?? void 0 : a = Ii(t, n, r, He, o) ?? 0;
|
|
210
|
-
const l = Qt(n[0], n[1], a, r);
|
|
211
|
-
return s != null && (l.m = s, l.hasM = !0), l;
|
|
212
|
-
}
|
|
213
|
-
const Wi = Qt(0, 0, 0, null);
|
|
214
|
-
let nt = class extends Ln {
|
|
215
|
-
constructor() {
|
|
216
|
-
super(...arguments), this.enabled = !0;
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
f([_({ type: Boolean })], nt.prototype, "enabled", void 0), nt = f([It("esri.views.interactive.snapping.Settings.DefaultSnappingAlgorithm")], nt);
|
|
220
|
-
let M = class extends Ln {
|
|
221
|
-
constructor(t) {
|
|
222
|
-
super(t), this.lineSnapper = new nt(), this.parallelLineSnapper = new nt(), this.rightAngleSnapper = new nt(), this.rightAngleTriangleSnapper = new nt(), this.shortLineThreshold = 15, this.distance = 5, this.pointThreshold = 1e-6, this.intersectionParallelLineThreshold = 1e-6, this.parallelLineThreshold = 1e-6, this.verticalLineThresholdMeters = 0.3, this.touchSensitivityMultiplier = 1.5, this.pointOnLineThreshold = 1e-6, this.orange = new re([255, 127, 0]), this.orangeTransparent = new re([255, 127, 0, 0.5]), this.lineHintWidthReference = 3, this.lineHintWidthTarget = 3, this.lineHintFadedExtensions = 0.3, this.parallelLineHintWidth = 2, this.parallelLineHintLength = 24, this.parallelLineHintOffset = 1.5, this.rightAngleHintSize = 24, this.rightAngleHintOutlineSize = 1.5, this.satisfiesConstraintScreenThreshold = 1;
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "lineSnapper", void 0), f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "parallelLineSnapper", void 0), f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "rightAngleSnapper", void 0), f([_({ type: nt, constructOnly: !0, nonNullable: !0, json: { write: !0 } })], M.prototype, "rightAngleTriangleSnapper", void 0), f([_({ type: Number, nonNullable: !0, range: { min: -1, max: 50, step: 1 }, json: { write: !0 } })], M.prototype, "shortLineThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: -1, max: 50, step: 1 }, json: { write: !0 } })], M.prototype, "distance", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "pointThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "intersectionParallelLineThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "parallelLineThreshold", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1 }, json: { write: !0 } })], M.prototype, "verticalLineThresholdMeters", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "touchSensitivityMultiplier", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1e-5 }, json: { write: !0 } })], M.prototype, "pointOnLineThreshold", void 0), f([_({ type: re, nonNullable: !0 })], M.prototype, "orange", void 0), f([_({ type: re, nonNullable: !0 })], M.prototype, "orangeTransparent", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "lineHintWidthReference", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "lineHintWidthTarget", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 1 }, json: { write: !0 } })], M.prototype, "lineHintFadedExtensions", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 10 }, json: { write: !0 } })], M.prototype, "parallelLineHintWidth", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 50 }, json: { write: !0 } })], M.prototype, "parallelLineHintLength", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 5 }, json: { write: !0 } })], M.prototype, "parallelLineHintOffset", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 46 }, json: { write: !0 } })], M.prototype, "rightAngleHintSize", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 6 }, json: { write: !0 } })], M.prototype, "rightAngleHintOutlineSize", void 0), f([_({ type: Number, nonNullable: !0, range: { min: 0, max: 5 }, json: { write: !0 } })], M.prototype, "satisfiesConstraintScreenThreshold", void 0), M = f([It("esri.views.interactive.snapping.Settings.Defaults")], M);
|
|
226
|
-
const Wo = new M();
|
|
227
|
-
var zt;
|
|
228
|
-
(function(n) {
|
|
229
|
-
n[n.FEATURE = 1] = "FEATURE", n[n.SELF = 2] = "SELF", n[n.ALL = 3] = "ALL";
|
|
230
|
-
})(zt || (zt = {}));
|
|
231
|
-
let ee = class {
|
|
232
|
-
constructor(t, e) {
|
|
233
|
-
this.isDraped = t, this.domain = e;
|
|
234
|
-
}
|
|
235
|
-
}, Bi = class Xn extends ee {
|
|
236
|
-
constructor(t, e, s = zt.ALL) {
|
|
237
|
-
super(e, s), this.intersectionPoint = t;
|
|
238
|
-
}
|
|
239
|
-
equals(t) {
|
|
240
|
-
return t instanceof Xn && V(this.intersectionPoint, t.intersectionPoint);
|
|
241
|
-
}
|
|
242
|
-
}, Ji = class Yn extends ee {
|
|
243
|
-
constructor(t, e, s, i, r = zt.ALL, o = !0, a = !0) {
|
|
244
|
-
super(i, r), this.type = t, this.lineStart = e, this.lineEnd = s, this.fadeLeft = o, this.fadeRight = a;
|
|
245
|
-
}
|
|
246
|
-
equals(t) {
|
|
247
|
-
return t instanceof Yn && this.type === t.type && V(this.lineStart, t.lineStart) && V(this.lineEnd, t.lineEnd) && this.fadeLeft === t.fadeLeft && this.fadeRight === t.fadeRight;
|
|
248
|
-
}
|
|
249
|
-
get length() {
|
|
250
|
-
return ue(this.lineStart, this.lineEnd);
|
|
251
|
-
}
|
|
252
|
-
}, Qi = class Wn extends ee {
|
|
253
|
-
constructor(t, e, s, i = zt.ALL) {
|
|
254
|
-
super(s, i), this.lineStart = t, this.lineEnd = e;
|
|
255
|
-
}
|
|
256
|
-
equals(t) {
|
|
257
|
-
return t instanceof Wn && V(this.lineStart, t.lineStart) && V(this.lineEnd, t.lineEnd);
|
|
258
|
-
}
|
|
259
|
-
}, Ki = class Bn extends ee {
|
|
260
|
-
constructor(t, e, s) {
|
|
261
|
-
super(e, s), this.point = t;
|
|
262
|
-
}
|
|
263
|
-
equals(t) {
|
|
264
|
-
return t instanceof Bn && V(this.point, t.point);
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
class Fe extends ee {
|
|
268
|
-
constructor(t, e, s, i, r = zt.ALL) {
|
|
269
|
-
super(i, r), this.previousVertex = t, this.centerVertex = e, this.nextVertex = s;
|
|
270
|
-
}
|
|
271
|
-
equals(t) {
|
|
272
|
-
return t instanceof Fe && V(this.previousVertex, t.previousVertex) && V(this.centerVertex, t.centerVertex) && V(this.nextVertex, t.nextVertex);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
let Jo = class {
|
|
276
|
-
draw(t, e) {
|
|
277
|
-
const s = this._getUniqueHints(t), i = this.sortUniqueHints(s), r = [];
|
|
278
|
-
for (const o of i)
|
|
279
|
-
o instanceof Bi && r.push(this.visualizeIntersectionPoint(o, e)), o instanceof Ji && r.push(this.visualizeLine(o, e)), o instanceof Qi && r.push(this.visualizeParallelSign(o, e)), o instanceof Fe && r.push(this.visualizeRightAngleQuad(o, e)), o instanceof Ki && r.push(this.visualizePoint(o, e));
|
|
280
|
-
return ks(r);
|
|
281
|
-
}
|
|
282
|
-
sortUniqueHints(t) {
|
|
283
|
-
return t;
|
|
284
|
-
}
|
|
285
|
-
_getUniqueHints(t) {
|
|
286
|
-
const e = [];
|
|
287
|
-
for (const s of t) {
|
|
288
|
-
let i = !0;
|
|
289
|
-
for (const r of e)
|
|
290
|
-
if (s.equals(r)) {
|
|
291
|
-
i = !1;
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
i && e.push(s);
|
|
295
|
-
}
|
|
296
|
-
return e;
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
var T;
|
|
300
|
-
(function(n) {
|
|
301
|
-
n[n.Z = 0] = "Z", n[n.M = 1] = "M";
|
|
302
|
-
})(T || (T = {}));
|
|
303
|
-
let tr = class {
|
|
304
|
-
constructor(t) {
|
|
305
|
-
this.spatialReference = t;
|
|
306
|
-
}
|
|
307
|
-
createVector() {
|
|
308
|
-
return this._tag(R());
|
|
309
|
-
}
|
|
310
|
-
pointToVector(t) {
|
|
311
|
-
return this._tag(Mt(t.x, t.y));
|
|
312
|
-
}
|
|
313
|
-
arrayToVector(t) {
|
|
314
|
-
return this._tag(Mt(t[0], t[1]));
|
|
315
|
-
}
|
|
316
|
-
vectorToArray(t) {
|
|
317
|
-
return [t[0], t[1]];
|
|
318
|
-
}
|
|
319
|
-
pointToArray(t) {
|
|
320
|
-
return [t.x, t.y];
|
|
321
|
-
}
|
|
322
|
-
vectorToPoint(t, e = new Rt()) {
|
|
323
|
-
return e.x = t[0], e.y = t[1], e.z = void 0, e.m = void 0, e.spatialReference = this.spatialReference, e;
|
|
324
|
-
}
|
|
325
|
-
arrayToPoint(t, e = new Rt()) {
|
|
326
|
-
return e.x = t[0], e.y = t[1], e.z = void 0, e.m = void 0, e.spatialReference = this.spatialReference, e;
|
|
327
|
-
}
|
|
328
|
-
vectorToDehydratedPoint(t, e) {
|
|
329
|
-
if (t)
|
|
330
|
-
return e ?? (e = { x: void 0, y: void 0, z: void 0, m: void 0, hasZ: void 0, hasM: void 0, spatialReference: void 0, type: "point" }), e.x = t[0], e.y = t[1], e.z = void 0, e.m = void 0, e.hasZ = !1, e.hasM = !1, e.spatialReference = this.spatialReference, e;
|
|
331
|
-
}
|
|
332
|
-
lerp(t, e, s, i) {
|
|
333
|
-
return Rn(i, t, e, s);
|
|
334
|
-
}
|
|
335
|
-
addDelta(t, e, s) {
|
|
336
|
-
t[0] += e, t[1] += s;
|
|
337
|
-
}
|
|
338
|
-
distance(t, e) {
|
|
339
|
-
return Pn(t, e);
|
|
340
|
-
}
|
|
341
|
-
getZ(t, e = void 0) {
|
|
342
|
-
return e;
|
|
343
|
-
}
|
|
344
|
-
hasZ() {
|
|
345
|
-
return !1;
|
|
346
|
-
}
|
|
347
|
-
getM(t, e = void 0) {
|
|
348
|
-
return e;
|
|
349
|
-
}
|
|
350
|
-
hasM() {
|
|
351
|
-
return !1;
|
|
352
|
-
}
|
|
353
|
-
clone(t) {
|
|
354
|
-
return this._tag(Ns(t));
|
|
355
|
-
}
|
|
356
|
-
copy(t, e) {
|
|
357
|
-
return zs(e, t);
|
|
358
|
-
}
|
|
359
|
-
fromXYZ(t) {
|
|
360
|
-
return this._tag(Mt(t[0], t[1]));
|
|
361
|
-
}
|
|
362
|
-
toXYZ(t, e = g()) {
|
|
363
|
-
return P(e, t[0], t[1], 0);
|
|
364
|
-
}
|
|
365
|
-
pointToXYZ(t, e = g()) {
|
|
366
|
-
return P(e, t.x, t.y, 0);
|
|
367
|
-
}
|
|
368
|
-
equals(t, e) {
|
|
369
|
-
return Cs(t, e);
|
|
370
|
-
}
|
|
371
|
-
_tag(t) {
|
|
372
|
-
return t;
|
|
373
|
-
}
|
|
374
|
-
}, un = class {
|
|
375
|
-
constructor(t, e) {
|
|
376
|
-
this._valueType = t, this.spatialReference = e;
|
|
377
|
-
}
|
|
378
|
-
createVector() {
|
|
379
|
-
return this._tag(g());
|
|
380
|
-
}
|
|
381
|
-
pointToVector(t) {
|
|
382
|
-
return this._tag(X(t.x, t.y, this._valueType === T.Z ? t.z : t.m));
|
|
383
|
-
}
|
|
384
|
-
arrayToVector(t) {
|
|
385
|
-
return this._tag(X(t[0], t[1], t[2] || 0));
|
|
386
|
-
}
|
|
387
|
-
vectorToArray(t) {
|
|
388
|
-
return [t[0], t[1], t[2]];
|
|
389
|
-
}
|
|
390
|
-
pointToArray(t) {
|
|
391
|
-
return this._valueType === T.Z ? [t.x, t.y, t.z] : [t.x, t.y, t.m];
|
|
392
|
-
}
|
|
393
|
-
vectorToPoint(t, e = new Rt()) {
|
|
394
|
-
return e.x = t[0], e.y = t[1], e.z = this._valueType === T.Z ? t[2] : void 0, e.m = this._valueType === T.M ? t[2] : void 0, e.spatialReference = this.spatialReference, e;
|
|
395
|
-
}
|
|
396
|
-
arrayToPoint(t, e = new Rt()) {
|
|
397
|
-
return e.x = t[0], e.y = t[1], e.z = this._valueType === T.Z ? t[2] : void 0, e.m = this._valueType === T.M ? t[2] : void 0, e.spatialReference = this.spatialReference, e;
|
|
398
|
-
}
|
|
399
|
-
vectorToDehydratedPoint(t, e) {
|
|
400
|
-
if (!t)
|
|
401
|
-
return;
|
|
402
|
-
e ?? (e = { x: void 0, y: void 0, z: void 0, m: void 0, hasZ: void 0, hasM: void 0, spatialReference: void 0, type: "point" });
|
|
403
|
-
const s = this._valueType === T.Z, i = this._valueType === T.M;
|
|
404
|
-
return e.x = t[0], e.y = t[1], e.z = s ? t[2] : void 0, e.m = i ? t[2] : void 0, e.hasZ = s, e.hasM = i, e.spatialReference = this.spatialReference, e;
|
|
405
|
-
}
|
|
406
|
-
lerp(t, e, s, i) {
|
|
407
|
-
return Is(i, t, e, s);
|
|
408
|
-
}
|
|
409
|
-
addDelta(t, e, s, i) {
|
|
410
|
-
t[0] += e, t[1] += s, this._valueType === T.Z && (t[2] += i);
|
|
411
|
-
}
|
|
412
|
-
distance(t, e) {
|
|
413
|
-
return this._valueType === T.Z ? ue(t, e) : Pn(t, e);
|
|
414
|
-
}
|
|
415
|
-
getZ(t, e = void 0) {
|
|
416
|
-
return this._valueType === T.Z ? t[2] : e;
|
|
417
|
-
}
|
|
418
|
-
hasZ() {
|
|
419
|
-
return this._valueType === T.Z;
|
|
420
|
-
}
|
|
421
|
-
getM(t, e = void 0) {
|
|
422
|
-
return this._valueType === T.M ? t[2] : e;
|
|
423
|
-
}
|
|
424
|
-
hasM() {
|
|
425
|
-
return this._valueType === T.M;
|
|
426
|
-
}
|
|
427
|
-
clone(t) {
|
|
428
|
-
return this._tag(Ds(t));
|
|
429
|
-
}
|
|
430
|
-
copy(t, e) {
|
|
431
|
-
return $t(e, t);
|
|
432
|
-
}
|
|
433
|
-
fromXYZ(t, e = 0, s = 0) {
|
|
434
|
-
return this._tag(X(t[0], t[1], this._valueType === T.Z ? t.length > 2 ? t[2] : e : s));
|
|
435
|
-
}
|
|
436
|
-
toXYZ(t, e = g()) {
|
|
437
|
-
return P(e, t[0], t[1], this._valueType === T.Z ? t[2] : 0);
|
|
438
|
-
}
|
|
439
|
-
pointToXYZ(t, e = g()) {
|
|
440
|
-
return P(e, t.x, t.y, this._valueType === T.Z ? t.z ?? 0 : 0);
|
|
441
|
-
}
|
|
442
|
-
equals(t, e) {
|
|
443
|
-
return oe(t, e);
|
|
444
|
-
}
|
|
445
|
-
_tag(t) {
|
|
446
|
-
return t;
|
|
447
|
-
}
|
|
448
|
-
}, er = class {
|
|
449
|
-
constructor(t) {
|
|
450
|
-
this.spatialReference = t;
|
|
451
|
-
}
|
|
452
|
-
createVector() {
|
|
453
|
-
return this._tag(Un());
|
|
454
|
-
}
|
|
455
|
-
pointToVector(t) {
|
|
456
|
-
return this._tag(Ee(t.x, t.y, t.z, t.m));
|
|
457
|
-
}
|
|
458
|
-
arrayToVector(t) {
|
|
459
|
-
return this._tag(Ee(t[0], t[1], t[2] || 0, t[3] || 0));
|
|
460
|
-
}
|
|
461
|
-
vectorToArray(t) {
|
|
462
|
-
return [t[0], t[1], t[2], t[3]];
|
|
463
|
-
}
|
|
464
|
-
pointToArray(t) {
|
|
465
|
-
return [t.x, t.y, t.z, t.m];
|
|
466
|
-
}
|
|
467
|
-
vectorToPoint(t, e = new Rt()) {
|
|
468
|
-
return e.x = t[0], e.y = t[1], e.z = t[2], e.m = t[3], e.spatialReference = this.spatialReference, e;
|
|
469
|
-
}
|
|
470
|
-
arrayToPoint(t, e = new Rt()) {
|
|
471
|
-
return e.x = t[0], e.y = t[1], e.z = t[2], e.m = t[3], e.spatialReference = this.spatialReference, e;
|
|
472
|
-
}
|
|
473
|
-
vectorToDehydratedPoint(t, e) {
|
|
474
|
-
if (t)
|
|
475
|
-
return e ?? (e = { x: void 0, y: void 0, z: void 0, m: void 0, hasZ: void 0, hasM: void 0, spatialReference: void 0, type: "point" }), e.x = t[0], e.y = t[1], e.z = t[2], e.m = t[3], e.hasZ = !0, e.hasM = !0, e.spatialReference = this.spatialReference, e;
|
|
476
|
-
}
|
|
477
|
-
lerp(t, e, s, i) {
|
|
478
|
-
return Mi(i, t, e, s);
|
|
479
|
-
}
|
|
480
|
-
addDelta(t, e, s, i) {
|
|
481
|
-
t[0] += e, t[1] += s, t[2] += i;
|
|
482
|
-
}
|
|
483
|
-
distance(t, e) {
|
|
484
|
-
return ue(t, e);
|
|
485
|
-
}
|
|
486
|
-
getZ(t) {
|
|
487
|
-
return t[2];
|
|
488
|
-
}
|
|
489
|
-
hasZ() {
|
|
490
|
-
return !0;
|
|
491
|
-
}
|
|
492
|
-
getM(t) {
|
|
493
|
-
return t[3];
|
|
494
|
-
}
|
|
495
|
-
hasM() {
|
|
496
|
-
return !0;
|
|
497
|
-
}
|
|
498
|
-
clone(t) {
|
|
499
|
-
return this._tag(Ai(t));
|
|
500
|
-
}
|
|
501
|
-
copy(t, e) {
|
|
502
|
-
return wi(e, t);
|
|
503
|
-
}
|
|
504
|
-
fromXYZ(t, e = 0, s = 0) {
|
|
505
|
-
return this._tag(Ee(t[0], t[1], t.length > 2 ? t[2] : e, s));
|
|
506
|
-
}
|
|
507
|
-
toXYZ(t, e = g()) {
|
|
508
|
-
return P(e, t[0], t[1], t[2]);
|
|
509
|
-
}
|
|
510
|
-
pointToXYZ(t, e = g()) {
|
|
511
|
-
return P(e, t.x, t.y, t.z ?? 0);
|
|
512
|
-
}
|
|
513
|
-
equals(t, e) {
|
|
514
|
-
return bi(t, e);
|
|
515
|
-
}
|
|
516
|
-
_tag(t) {
|
|
517
|
-
return t;
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
function nr(n, t, e) {
|
|
521
|
-
return n && t ? new er(e) : t ? new un(T.M, e) : n ? new un(T.Z, e) : new tr(e);
|
|
522
|
-
}
|
|
523
|
-
function sr(n, t) {
|
|
524
|
-
if (!t.supported)
|
|
525
|
-
return;
|
|
526
|
-
let e = 1 / 0, s = -1 / 0;
|
|
527
|
-
const i = t.upperBoundX - t.lowerBoundX;
|
|
528
|
-
n.forEach((o) => {
|
|
529
|
-
let a = o.pos[0];
|
|
530
|
-
for (; a < t.lowerBoundX; )
|
|
531
|
-
a += i;
|
|
532
|
-
for (; a > t.upperBoundX; )
|
|
533
|
-
a -= i;
|
|
534
|
-
e = Math.min(e, a), s = Math.max(s, a), o.pos[0] = a;
|
|
535
|
-
});
|
|
536
|
-
const r = s - e;
|
|
537
|
-
i - r < r && n.forEach((o) => {
|
|
538
|
-
o.pos[0] < 0 && (o.pos[0] += i);
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
function ir(n, t) {
|
|
542
|
-
const e = Zs(n);
|
|
543
|
-
return t === Os.Global && e ? { supported: !0, lowerBoundX: e.valid[0], upperBoundX: e.valid[1] } : { supported: !1, lowerBoundX: null, upperBoundX: null };
|
|
544
|
-
}
|
|
545
|
-
let Ft = class {
|
|
546
|
-
constructor(t) {
|
|
547
|
-
this.component = t, this.leftEdge = null, this.rightEdge = null, this.type = "vertex", this.index = null;
|
|
548
|
-
}
|
|
549
|
-
get pos() {
|
|
550
|
-
return this._pos;
|
|
551
|
-
}
|
|
552
|
-
set pos(t) {
|
|
553
|
-
this._pos = t, this.component.unnormalizeVertexPositions();
|
|
554
|
-
}
|
|
555
|
-
}, _t = class {
|
|
556
|
-
constructor(t, e, s) {
|
|
557
|
-
this.component = t, this.leftVertex = e, this.rightVertex = s, this.type = "edge", e.rightEdge = this, s.leftEdge = this;
|
|
558
|
-
}
|
|
559
|
-
}, Me = class {
|
|
560
|
-
constructor(t, e) {
|
|
561
|
-
this._spatialReference = t, this._viewingMode = e, this.vertices = [], this.edges = [], this.index = null;
|
|
562
|
-
}
|
|
563
|
-
unnormalizeVertexPositions() {
|
|
564
|
-
this.vertices.length <= 1 || sr(this.vertices, ir(this._spatialReference, this._viewingMode));
|
|
565
|
-
}
|
|
566
|
-
updateVertexIndex(t, e) {
|
|
567
|
-
if (this.vertices.length === 0)
|
|
568
|
-
return;
|
|
569
|
-
const s = this.vertices[0];
|
|
570
|
-
let i = null, r = t, o = e;
|
|
571
|
-
do
|
|
572
|
-
i = r, i.index = o++, r = i.rightEdge ? i.rightEdge.rightVertex : null;
|
|
573
|
-
while (r != null && r !== s);
|
|
574
|
-
i.leftEdge && i !== this.vertices[this.vertices.length - 1] && this.swapVertices(this.vertices.indexOf(i), this.vertices.length - 1);
|
|
575
|
-
}
|
|
576
|
-
getFirstVertex() {
|
|
577
|
-
return this.vertices.at(0);
|
|
578
|
-
}
|
|
579
|
-
getLastVertex() {
|
|
580
|
-
return this.vertices.at(-1);
|
|
581
|
-
}
|
|
582
|
-
isClosed() {
|
|
583
|
-
return this.vertices.length > 2 && this.vertices[0].leftEdge !== null;
|
|
584
|
-
}
|
|
585
|
-
swapVertices(t, e) {
|
|
586
|
-
const s = this.vertices[t];
|
|
587
|
-
this.vertices[t] = this.vertices[e], this.vertices[e] = s;
|
|
588
|
-
}
|
|
589
|
-
iterateVertices(t) {
|
|
590
|
-
if (this.vertices.length === 0)
|
|
591
|
-
return;
|
|
592
|
-
const e = this.vertices[0];
|
|
593
|
-
let s = e;
|
|
594
|
-
do
|
|
595
|
-
t(s, s.index), s = s.rightEdge != null ? s.rightEdge.rightVertex : null;
|
|
596
|
-
while (s !== e && s != null);
|
|
597
|
-
}
|
|
598
|
-
}, rr = class Jn extends Sn {
|
|
599
|
-
constructor(t, e) {
|
|
600
|
-
super(), this.type = t, this.coordinateHelper = e, this._geometry = null, this._dirty = !0, this.components = [];
|
|
601
|
-
}
|
|
602
|
-
get geometry() {
|
|
603
|
-
if (this._dirty) {
|
|
604
|
-
switch (this.type) {
|
|
605
|
-
case "point":
|
|
606
|
-
this._geometry = this._toPoint();
|
|
607
|
-
break;
|
|
608
|
-
case "polyline":
|
|
609
|
-
this._geometry = this._toPolyline();
|
|
610
|
-
break;
|
|
611
|
-
case "polygon":
|
|
612
|
-
this._geometry = this._toPolygon();
|
|
613
|
-
}
|
|
614
|
-
this._dirty = !1;
|
|
615
|
-
}
|
|
616
|
-
return this._geometry;
|
|
617
|
-
}
|
|
618
|
-
get spatialReference() {
|
|
619
|
-
return this.coordinateHelper.spatialReference;
|
|
620
|
-
}
|
|
621
|
-
notifyChanges(t) {
|
|
622
|
-
this._dirty = !0, this.emit("change", t);
|
|
623
|
-
}
|
|
624
|
-
_toPoint() {
|
|
625
|
-
return this.components.length === 0 || this.components[0].vertices.length === 0 ? null : this.coordinateHelper.vectorToPoint(this.components[0].vertices[0].pos);
|
|
626
|
-
}
|
|
627
|
-
_toPolyline() {
|
|
628
|
-
const t = [], e = this.coordinateHelper.vectorToArray;
|
|
629
|
-
for (const s of this.components) {
|
|
630
|
-
if (s.vertices.length < 1)
|
|
631
|
-
continue;
|
|
632
|
-
const i = [];
|
|
633
|
-
let r = s.vertices.find((a) => a.leftEdge == null);
|
|
634
|
-
const o = r;
|
|
635
|
-
do
|
|
636
|
-
i.push(e(r.pos)), r = r.rightEdge ? r.rightEdge.rightVertex : null;
|
|
637
|
-
while (r && r !== o);
|
|
638
|
-
t.push(i);
|
|
639
|
-
}
|
|
640
|
-
return new Tn({ paths: t, spatialReference: this.spatialReference, hasZ: this.coordinateHelper.hasZ(), hasM: this.coordinateHelper.hasM() });
|
|
641
|
-
}
|
|
642
|
-
_toPolygon() {
|
|
643
|
-
const t = [], e = this.coordinateHelper.vectorToArray;
|
|
644
|
-
for (const s of this.components) {
|
|
645
|
-
if (s.vertices.length < 1)
|
|
646
|
-
continue;
|
|
647
|
-
const i = [], r = s.vertices[0];
|
|
648
|
-
let o = r;
|
|
649
|
-
const a = o;
|
|
650
|
-
do
|
|
651
|
-
i.push(e(o.pos)), o = o.rightEdge != null ? o.rightEdge.rightVertex : null;
|
|
652
|
-
while (o && o !== a);
|
|
653
|
-
s.isClosed() && i.push(e(r.pos)), t.push(i);
|
|
654
|
-
}
|
|
655
|
-
return new Vn({ rings: t, spatialReference: this.spatialReference, hasZ: this.coordinateHelper.hasZ(), hasM: this.coordinateHelper.hasM() });
|
|
656
|
-
}
|
|
657
|
-
static fromGeometry(t, e) {
|
|
658
|
-
const s = t.spatialReference, i = nr(t.hasZ, t.hasM, s), r = new Jn(t.type, i);
|
|
659
|
-
switch (t.type) {
|
|
660
|
-
case "polygon": {
|
|
661
|
-
const o = t.rings;
|
|
662
|
-
for (let a = 0; a < o.length; ++a) {
|
|
663
|
-
const l = o[a], c = new Me(s, e);
|
|
664
|
-
c.index = a;
|
|
665
|
-
const u = l.length > 2 && Xt(l[0], l[l.length - 1]), h = u ? l.length - 1 : l.length;
|
|
666
|
-
for (let p = 0; p < h; ++p) {
|
|
667
|
-
const y = i.arrayToVector(l[p]), m = new Ft(c);
|
|
668
|
-
c.vertices.push(m), m.pos = y, m.index = p;
|
|
669
|
-
}
|
|
670
|
-
const d = c.vertices.length - 1;
|
|
671
|
-
for (let p = 0; p < d; ++p) {
|
|
672
|
-
const y = c.vertices[p], m = c.vertices[p + 1], v = new _t(c, y, m);
|
|
673
|
-
c.edges.push(v);
|
|
674
|
-
}
|
|
675
|
-
if (u) {
|
|
676
|
-
const p = new _t(c, c.vertices[c.vertices.length - 1], c.vertices[0]);
|
|
677
|
-
c.edges.push(p);
|
|
678
|
-
}
|
|
679
|
-
r.components.push(c);
|
|
680
|
-
}
|
|
681
|
-
break;
|
|
682
|
-
}
|
|
683
|
-
case "polyline": {
|
|
684
|
-
const o = t.paths;
|
|
685
|
-
for (let a = 0; a < o.length; ++a) {
|
|
686
|
-
const l = o[a], c = new Me(s, e);
|
|
687
|
-
c.index = a;
|
|
688
|
-
const u = l.length;
|
|
689
|
-
for (let d = 0; d < u; ++d) {
|
|
690
|
-
const p = i.arrayToVector(l[d]), y = new Ft(c);
|
|
691
|
-
c.vertices.push(y), y.pos = p, y.index = d;
|
|
692
|
-
}
|
|
693
|
-
const h = c.vertices.length - 1;
|
|
694
|
-
for (let d = 0; d < h; ++d) {
|
|
695
|
-
const p = c.vertices[d], y = c.vertices[d + 1], m = new _t(c, p, y);
|
|
696
|
-
c.edges.push(m);
|
|
697
|
-
}
|
|
698
|
-
r.components.push(c);
|
|
699
|
-
}
|
|
700
|
-
break;
|
|
701
|
-
}
|
|
702
|
-
case "point": {
|
|
703
|
-
const o = new Me(s, e);
|
|
704
|
-
o.index = 0;
|
|
705
|
-
const a = new Ft(o);
|
|
706
|
-
a.index = 0, a.pos = i.pointToVector(t), o.vertices.push(a), r.components.push(o);
|
|
707
|
-
break;
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
return r;
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
var gt;
|
|
714
|
-
(function(n) {
|
|
715
|
-
n[n.NEW_STEP = 0] = "NEW_STEP", n[n.ACCUMULATE_STEPS = 1] = "ACCUMULATE_STEPS";
|
|
716
|
-
})(gt || (gt = {}));
|
|
717
|
-
let or = class {
|
|
718
|
-
constructor(t, e, s) {
|
|
719
|
-
this._editGeometry = t, this._component = e, this._pos = s, this._addedVertex = null, this._originalEdge = null, this._left = null, this._right = null;
|
|
720
|
-
}
|
|
721
|
-
apply() {
|
|
722
|
-
let t = "redo";
|
|
723
|
-
this._addedVertex == null && (t = "apply", this._addedVertex = new Ft(this._component));
|
|
724
|
-
const e = this._component.getLastVertex();
|
|
725
|
-
if (e == null)
|
|
726
|
-
this._component.vertices.push(this._addedVertex), this._addedVertex.pos = this._pos, this._addedVertex.index = 0;
|
|
727
|
-
else {
|
|
728
|
-
let s = null;
|
|
729
|
-
e.rightEdge && (this._originalEdge = e.rightEdge, s = this._originalEdge.rightVertex, this._component.edges.splice(this._component.edges.indexOf(this._originalEdge), 1)), this._component.vertices.push(this._addedVertex), this._addedVertex.pos = this._pos, this._left == null && (this._left = new _t(this._component, e, this._addedVertex)), this._component.edges.push(this._left), e.rightEdge = this._left, this._originalEdge != null && s != null && (this._right == null && (this._right = new _t(this._component, this._addedVertex, s)), this._component.edges.push(this._right), s.leftEdge = this._right), this._component.updateVertexIndex(this._addedVertex, e.index + 1);
|
|
730
|
-
}
|
|
731
|
-
this._editGeometry.notifyChanges({ operation: t, addedVertices: [this._addedVertex] });
|
|
732
|
-
}
|
|
733
|
-
undo() {
|
|
734
|
-
this._addedVertex != null && (this._component.vertices.splice(this._component.vertices.indexOf(this._addedVertex), 1), this._left != null && (this._component.edges.splice(this._component.edges.indexOf(this._left), 1), this._left.leftVertex.rightEdge = null), this._right != null && (this._component.edges.splice(this._component.edges.indexOf(this._right), 1), this._right.rightVertex.leftEdge = null), this._originalEdge != null && (this._component.edges.push(this._originalEdge), this._originalEdge.leftVertex.rightEdge = this._originalEdge, this._originalEdge.rightVertex.leftEdge = this._originalEdge), this._left != null ? this._component.updateVertexIndex(this._left.leftVertex, this._left.leftVertex.index) : this._component.updateVertexIndex(this._addedVertex, 0), this._editGeometry.notifyChanges({ operation: "undo", removedVertices: [this._addedVertex] }));
|
|
735
|
-
}
|
|
736
|
-
accumulate() {
|
|
737
|
-
return !1;
|
|
738
|
-
}
|
|
739
|
-
}, ar = class Qn {
|
|
740
|
-
constructor(t, e, s) {
|
|
741
|
-
this._editGeometry = t, this._vertices = e, this.operation = s, this._undone = !1;
|
|
742
|
-
}
|
|
743
|
-
apply() {
|
|
744
|
-
this._vertices.forEach((t) => this.operation.apply(t)), this._editGeometry.components.forEach((t) => t.unnormalizeVertexPositions()), this._editGeometry.notifyChanges({ operation: this._undone ? "redo" : "apply", updatedVertices: this._vertices });
|
|
745
|
-
}
|
|
746
|
-
undo() {
|
|
747
|
-
this._vertices.forEach((t) => this.operation.undo(t)), this._editGeometry.notifyChanges({ operation: "undo", updatedVertices: this._vertices }), this._undone = !0;
|
|
748
|
-
}
|
|
749
|
-
canAccumulate(t) {
|
|
750
|
-
if (this._undone || t._vertices.length !== this._vertices.length)
|
|
751
|
-
return !1;
|
|
752
|
-
for (let e = 0; e < t._vertices.length; ++e)
|
|
753
|
-
if (t._vertices[e] !== this._vertices[e])
|
|
754
|
-
return !1;
|
|
755
|
-
return this.operation.canAccumulate(t.operation);
|
|
756
|
-
}
|
|
757
|
-
accumulate(t) {
|
|
758
|
-
return !!(t instanceof Qn && this.canAccumulate(t)) && (this._vertices.forEach((e) => this.operation.accumulate(e, t.operation)), this.operation.accumulateParams(t.operation), this._editGeometry.components.forEach((e) => e.unnormalizeVertexPositions()), this._editGeometry.notifyChanges({ operation: "apply", updatedVertices: this._vertices }), !0);
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
var ht;
|
|
762
|
-
(function(n) {
|
|
763
|
-
n[n.CUMULATIVE = 0] = "CUMULATIVE", n[n.REPLACE = 1] = "REPLACE";
|
|
764
|
-
})(ht || (ht = {}));
|
|
765
|
-
let lr = class {
|
|
766
|
-
constructor(t, e, s = 0) {
|
|
767
|
-
this._editGeometry = t, this._vertices = e, this._minNumberOfVertices = s, this.removedVertices = null;
|
|
768
|
-
}
|
|
769
|
-
apply() {
|
|
770
|
-
let t = "redo";
|
|
771
|
-
if (this.removedVertices == null) {
|
|
772
|
-
const e = this.removedVertices = [];
|
|
773
|
-
this._vertices.forEach((s) => {
|
|
774
|
-
const i = this._removeVertex(s);
|
|
775
|
-
i != null && e.push(i);
|
|
776
|
-
}), t = "apply";
|
|
777
|
-
} else
|
|
778
|
-
this.removedVertices.forEach((e) => {
|
|
779
|
-
this._removeVertex(e.removedVertex);
|
|
780
|
-
});
|
|
781
|
-
this._editGeometry.notifyChanges({ operation: t, removedVertices: this._vertices });
|
|
782
|
-
}
|
|
783
|
-
undo() {
|
|
784
|
-
var t;
|
|
785
|
-
(t = this.removedVertices) == null || t.forEach((e) => {
|
|
786
|
-
this._undoRemoveVertex(e);
|
|
787
|
-
}), this._editGeometry.notifyChanges({ operation: "undo", addedVertices: this._vertices });
|
|
788
|
-
}
|
|
789
|
-
accumulate() {
|
|
790
|
-
return !1;
|
|
791
|
-
}
|
|
792
|
-
_removeVertex(t) {
|
|
793
|
-
const e = t.component;
|
|
794
|
-
if (e.vertices.length <= this._minNumberOfVertices)
|
|
795
|
-
return null;
|
|
796
|
-
const s = { removedVertex: t, createdEdge: null }, i = t.leftEdge, r = t.rightEdge;
|
|
797
|
-
return e.vertices.splice(e.vertices.indexOf(t), 1), i && (e.edges.splice(e.edges.indexOf(i), 1), i.leftVertex.rightEdge = null), r && (e.edges.splice(e.edges.indexOf(r), 1), r.rightVertex.leftEdge = null), t.index === 0 && r && this._vertices.length > 0 && e.swapVertices(e.vertices.indexOf(r.rightVertex), 0), i && r && (s.createdEdge = new _t(e, i.leftVertex, r.rightVertex), e.edges.push(s.createdEdge)), r && e.updateVertexIndex(r.rightVertex, r.rightVertex.index - 1), s;
|
|
798
|
-
}
|
|
799
|
-
_undoRemoveVertex(t) {
|
|
800
|
-
const e = t.removedVertex, s = t.removedVertex.component, i = e.leftEdge, r = e.rightEdge;
|
|
801
|
-
t.createdEdge && s.edges.splice(s.edges.indexOf(t.createdEdge), 1), s.vertices.push(e), i && (s.edges.push(i), i.leftVertex.rightEdge = i), r && (s.edges.push(r), r.rightVertex.leftEdge = r), s.updateVertexIndex(e, e.index);
|
|
802
|
-
}
|
|
803
|
-
}, cr = class {
|
|
804
|
-
constructor(t, e, s) {
|
|
805
|
-
this._editGeometry = t, this._edge = e, this._t = s, this.createdVertex = null, this._left = null, this._right = null;
|
|
806
|
-
}
|
|
807
|
-
apply() {
|
|
808
|
-
let t = "redo";
|
|
809
|
-
const e = this._edge, s = e.component, i = e.leftVertex, r = e.rightVertex;
|
|
810
|
-
s.edges.splice(s.edges.indexOf(e), 1), this.createdVertex == null && (t = "apply", this.createdVertex = new Ft(e.component)), s.vertices.push(this.createdVertex), this.createdVertex.pos = this._editGeometry.coordinateHelper.lerp(e.leftVertex.pos, e.rightVertex.pos, this._t, this._editGeometry.coordinateHelper.createVector()), this._left == null && (this._left = new _t(s, i, this.createdVertex)), this._left.leftVertex.leftEdge ? s.edges.push(this._left) : s.edges.unshift(this._left), i.rightEdge = this._left, this._right == null && (this._right = new _t(s, this.createdVertex, r)), s.edges.push(this._right), r.leftEdge = this._right, s.updateVertexIndex(this.createdVertex, i.index + 1), this._editGeometry.notifyChanges({ operation: t, addedVertices: [this.createdVertex] });
|
|
811
|
-
}
|
|
812
|
-
undo() {
|
|
813
|
-
if (this.createdVertex == null || this._left == null || this._right == null)
|
|
814
|
-
return null;
|
|
815
|
-
const t = this._edge, e = t.component, s = this.createdVertex.leftEdge, i = this.createdVertex.rightEdge, r = s == null ? void 0 : s.leftVertex, o = i == null ? void 0 : i.rightVertex;
|
|
816
|
-
e.vertices.splice(e.vertices.indexOf(this.createdVertex), 1), e.edges.splice(e.edges.indexOf(this._left), 1), e.edges.splice(e.edges.indexOf(this._right), 1), this._edge.leftVertex.leftEdge ? e.edges.push(this._edge) : e.edges.unshift(this._edge), r && (r.rightEdge = t), o && (o.leftEdge = t), r && e.updateVertexIndex(r, r.index), this._editGeometry.notifyChanges({ operation: "undo", removedVertices: [this.createdVertex] });
|
|
817
|
-
}
|
|
818
|
-
accumulate() {
|
|
819
|
-
return !1;
|
|
820
|
-
}
|
|
821
|
-
}, hr = class Kn {
|
|
822
|
-
constructor(t, e, s) {
|
|
823
|
-
this._editGeometry = t, this._vertex = e, this._pos = s;
|
|
824
|
-
}
|
|
825
|
-
apply() {
|
|
826
|
-
const t = this._originalPosition == null;
|
|
827
|
-
t && (this._originalPosition = this._vertex.pos), this._apply(t ? "apply" : "redo");
|
|
828
|
-
}
|
|
829
|
-
undo() {
|
|
830
|
-
this._vertex.pos = this._originalPosition, this._editGeometry.notifyChanges({ operation: "undo", updatedVertices: [this._vertex] });
|
|
831
|
-
}
|
|
832
|
-
accumulate(t) {
|
|
833
|
-
return t instanceof Kn && t._vertex === this._vertex && (this._pos = t._pos, this._apply("apply"), !0);
|
|
834
|
-
}
|
|
835
|
-
_apply(t) {
|
|
836
|
-
this._vertex.pos = this._pos, this._editGeometry.components.forEach((e) => e.unnormalizeVertexPositions()), this._editGeometry.notifyChanges({ operation: t, updatedVertices: [this._vertex] });
|
|
837
|
-
}
|
|
838
|
-
}, ur = class {
|
|
839
|
-
constructor(t, e) {
|
|
840
|
-
this._editGeometry = t, this._component = e, this._createdEdge = null;
|
|
841
|
-
}
|
|
842
|
-
apply() {
|
|
843
|
-
let t = "redo";
|
|
844
|
-
if (this._createdEdge == null) {
|
|
845
|
-
t = "apply";
|
|
846
|
-
const e = this._component.getFirstVertex(), s = this._component.getLastVertex();
|
|
847
|
-
if (this._component.isClosed() || this._component.vertices.length < 3 || e == null || s == null)
|
|
848
|
-
return;
|
|
849
|
-
this._createdEdge = new _t(this._component, s, e);
|
|
850
|
-
}
|
|
851
|
-
this._createdEdge.leftVertex.rightEdge = this._createdEdge, this._createdEdge.rightVertex.leftEdge = this._createdEdge, this._component.edges.push(this._createdEdge), this._editGeometry.notifyChanges({ operation: t });
|
|
852
|
-
}
|
|
853
|
-
undo() {
|
|
854
|
-
this._createdEdge != null && (Us(this._component.edges, this._createdEdge), this._createdEdge.leftVertex.rightEdge = null, this._createdEdge.rightVertex.leftEdge = null, this._editGeometry.notifyChanges({ operation: "undo" }));
|
|
855
|
-
}
|
|
856
|
-
accumulate() {
|
|
857
|
-
return !1;
|
|
858
|
-
}
|
|
859
|
-
}, pr = class ts {
|
|
860
|
-
constructor(t, e, s, i) {
|
|
861
|
-
this._helper = t, this.dx = e, this.dy = s, this.dz = i;
|
|
862
|
-
}
|
|
863
|
-
_move(t, e, s, i) {
|
|
864
|
-
this._helper.addDelta(t.pos, e, s, i);
|
|
865
|
-
}
|
|
866
|
-
apply(t) {
|
|
867
|
-
this._move(t, this.dx, this.dy, this.dz);
|
|
868
|
-
}
|
|
869
|
-
undo(t) {
|
|
870
|
-
this._move(t, -this.dx, -this.dy, -this.dz);
|
|
871
|
-
}
|
|
872
|
-
canAccumulate(t) {
|
|
873
|
-
return t instanceof ts;
|
|
874
|
-
}
|
|
875
|
-
accumulate(t, e) {
|
|
876
|
-
this._move(t, e.dx, e.dy, e.dz);
|
|
877
|
-
}
|
|
878
|
-
accumulateParams(t) {
|
|
879
|
-
this.dx += t.dx, this.dy += t.dy, this.dz += t.dz;
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
function we(n, t) {
|
|
883
|
-
return n[0] * t[1] - n[1] * t[0];
|
|
884
|
-
}
|
|
885
|
-
function dr(n, t, e) {
|
|
886
|
-
const s = kt(e, t) / Pt(e);
|
|
887
|
-
return Hs(n, e, s);
|
|
888
|
-
}
|
|
889
|
-
function ca(n, t, e, s, i = e) {
|
|
890
|
-
return C(Lt, s, e), C(le, t, i), dr(Ct, le, Lt), qs(n, i, Ct);
|
|
891
|
-
}
|
|
892
|
-
function ha(n, t, e, s) {
|
|
893
|
-
C(Lt, t, e);
|
|
894
|
-
const i = s / kn(Lt);
|
|
895
|
-
return ct(n, e, Lt, i);
|
|
896
|
-
}
|
|
897
|
-
function fr(n, t) {
|
|
898
|
-
const e = n.start, s = n.end, i = t.start, r = t.end, o = C(Lt, s, e), a = C(es, r, i), l = we(o, a);
|
|
899
|
-
if (Math.abs(l) <= _r)
|
|
900
|
-
return [];
|
|
901
|
-
const c = C(le, e, i), u = we(a, c) / l, h = we(o, c) / l;
|
|
902
|
-
if (u >= 0) {
|
|
903
|
-
if (h >= 0 || t.type === w.LINE)
|
|
904
|
-
return [ct(Ct, e, o, u)];
|
|
905
|
-
} else if (n.type === w.LINE && (h >= 0 || t.type === w.LINE))
|
|
906
|
-
return [ct(Ct, e, o, u)];
|
|
907
|
-
return [];
|
|
908
|
-
}
|
|
909
|
-
function gr(n, t, e) {
|
|
910
|
-
const s = [], i = C(Lt, n.end, n.start), r = C(es, n.start, t), o = Pt(i), a = 2 * kt(i, r), l = a * a - 4 * o * (Pt(r) - e * e);
|
|
911
|
-
if (l === 0) {
|
|
912
|
-
const c = -a / (2 * o);
|
|
913
|
-
(n.type === w.LINE || c >= 0) && s.push(ct(Ct, n.start, i, c));
|
|
914
|
-
} else if (l > 0) {
|
|
915
|
-
const c = Math.sqrt(l), u = (-a + c) / (2 * o);
|
|
916
|
-
(n.type === w.LINE || u >= 0) && s.push(ct(Ct, n.start, i, u));
|
|
917
|
-
const h = (-a - c) / (2 * o);
|
|
918
|
-
(n.type === w.LINE || h >= 0) && s.push(ct(le, n.start, i, h));
|
|
919
|
-
}
|
|
920
|
-
return s;
|
|
921
|
-
}
|
|
922
|
-
var w;
|
|
923
|
-
(function(n) {
|
|
924
|
-
n[n.RAY = 0] = "RAY", n[n.LINE = 1] = "LINE";
|
|
925
|
-
})(w || (w = {}));
|
|
926
|
-
const _r = 1e-6, Lt = R(), es = R(), le = R(), Ct = R();
|
|
927
|
-
let mr = class ke {
|
|
928
|
-
get plane() {
|
|
929
|
-
return this._plane;
|
|
930
|
-
}
|
|
931
|
-
get requiresSplitEdgeLeft() {
|
|
932
|
-
return !this._left.isOriginalDirection;
|
|
933
|
-
}
|
|
934
|
-
get requiresSplitEdgeRight() {
|
|
935
|
-
return !this._right.isOriginalDirection;
|
|
936
|
-
}
|
|
937
|
-
get edgeDirection() {
|
|
938
|
-
return this._edgeDirection;
|
|
939
|
-
}
|
|
940
|
-
constructor(t, e, s, i = 0, r = Gt.IMMEDIATE) {
|
|
941
|
-
this._helper = t, this._planeType = e, this._edge = s, this.distance = i, this._plane = F(), this._offsetPlane = F(), this._minDistance = -1 / 0, this._maxDistance = 1 / 0, this._selectedArrow = 1, r === Gt.IMMEDIATE && this._initialize();
|
|
942
|
-
}
|
|
943
|
-
_initialize() {
|
|
944
|
-
this._initializeNeighbors(), this._initializePlane(), this._initializeDistanceConstraints();
|
|
945
|
-
}
|
|
946
|
-
_initializeNeighbors() {
|
|
947
|
-
var r, o, a, l;
|
|
948
|
-
const t = this._toXYZ(this._edge.leftVertex.pos), e = this._toXYZ((o = (r = this._edge.leftVertex.leftEdge) == null ? void 0 : r.leftVertex) == null ? void 0 : o.pos), s = this._toXYZ(this._edge.rightVertex.pos), i = this._toXYZ((l = (a = this._edge.rightVertex.rightEdge) == null ? void 0 : a.rightVertex) == null ? void 0 : l.pos);
|
|
949
|
-
this._edgeDirection = sn(g(), t, s), e ? (this._left = this._computeNeighbor(t, e, this._edgeDirection), this._right = this._computeNeighbor(s, i, this._edgeDirection, this._left)) : (this._right = this._computeNeighbor(s, i, this._edgeDirection), this._left = this._computeNeighbor(t, e, this._edgeDirection, this._right));
|
|
950
|
-
}
|
|
951
|
-
_toXYZ(t) {
|
|
952
|
-
return t != null ? this._helper.toXYZ(t) : null;
|
|
953
|
-
}
|
|
954
|
-
_pointToXYZ(t) {
|
|
955
|
-
return this._toXYZ(this._helper.pointToVector(t));
|
|
956
|
-
}
|
|
957
|
-
_computeNeighbor(t, e, s, i) {
|
|
958
|
-
const r = g();
|
|
959
|
-
if (e) {
|
|
960
|
-
sn(r, t, e);
|
|
961
|
-
const o = !this._passesBisectingAngleThreshold(r, s);
|
|
962
|
-
return { start: t, end: e, direction: o ? this._bisectVectorsPerpendicular(s, r) : r, isOriginalDirection: !o };
|
|
963
|
-
}
|
|
964
|
-
return this._helper.hasZ() ? i && (et(r, s, i.direction), et(r, r, s), Et(r, r), Math.sign(r[1]) !== Math.sign(s[0]) && rn(r, r, -1)) : P(r, -s[1], s[0], 0), { start: t, end: e, direction: r, isOriginalDirection: !0 };
|
|
965
|
-
}
|
|
966
|
-
_passesBisectingAngleThreshold(t, e) {
|
|
967
|
-
const s = Math.abs(Ri(e, t));
|
|
968
|
-
return s >= pn && s <= Math.PI - pn;
|
|
969
|
-
}
|
|
970
|
-
_bisectVectorsPerpendicular(t, e) {
|
|
971
|
-
const s = z(t, e) < 0 ? t : on(g(), t), i = Math.abs(z(s, e));
|
|
972
|
-
if (!(i < dn || i > 1 - dn))
|
|
973
|
-
return this._bisectDirection(s, e);
|
|
974
|
-
const r = et(g(), s, [0, 0, 1]);
|
|
975
|
-
return Et(r, r);
|
|
976
|
-
}
|
|
977
|
-
_bisectDirection(t, e) {
|
|
978
|
-
const s = Ot(g(), t, e);
|
|
979
|
-
return Et(s, s);
|
|
980
|
-
}
|
|
981
|
-
_initializePlane() {
|
|
982
|
-
const t = this._computeNormalDirection(this._left), e = this._computeNormalDirection(this._right);
|
|
983
|
-
z(t, e) < 0 && on(e, e), Jt(this._left.start, this._bisectDirection(t, e), this._plane);
|
|
984
|
-
}
|
|
985
|
-
_computeNormalDirection(t) {
|
|
986
|
-
const e = et(g(), t.direction, this._edgeDirection);
|
|
987
|
-
Et(e, e);
|
|
988
|
-
const s = et(g(), this._edgeDirection, e);
|
|
989
|
-
return this._planeType === Ne.XY && (s[2] = 0), Et(s, s);
|
|
990
|
-
}
|
|
991
|
-
_initializeDistanceConstraints() {
|
|
992
|
-
this._left.end == null || this.requiresSplitEdgeLeft || this._updateDistanceConstraint(qt(this._plane, this._left.end)), this._right.end == null || this.requiresSplitEdgeRight || this._updateDistanceConstraint(qt(this._plane, this._right.end)), this._updateIntersectDistanceConstraint(this._plane);
|
|
993
|
-
}
|
|
994
|
-
_updateDistanceConstraint(t) {
|
|
995
|
-
t <= 0 && (this._minDistance = Math.max(this._minDistance, t)), t >= 0 && (this._maxDistance = Math.min(this._maxDistance, t));
|
|
996
|
-
}
|
|
997
|
-
_updateIntersectDistanceConstraint(t) {
|
|
998
|
-
const e = Ht(t), s = this._edgeDirection, i = Ot(g(), this._left.start, this._left.direction), r = Ot(g(), this._right.start, this._right.direction), o = this._pointInBasis2D(R(), e, s, this._left.start), a = this._pointInBasis2D(R(), e, s, i), l = this._pointInBasis2D(R(), e, s, this._right.start), c = this._pointInBasis2D(R(), e, s, r), [u] = fr({ start: a, end: o, type: w.LINE }, { start: c, end: l, type: w.LINE });
|
|
999
|
-
if (!u)
|
|
1000
|
-
return;
|
|
1001
|
-
const h = C(R(), o, a);
|
|
1002
|
-
Fs(h, h);
|
|
1003
|
-
const d = C(R(), u, a), p = kt(h, d), y = Ot(g(), i, rn(g(), this._left.direction, -p)), m = qt(t, y);
|
|
1004
|
-
this._updateDistanceConstraint(m);
|
|
1005
|
-
}
|
|
1006
|
-
_pointInBasis2D(t, e, s, i) {
|
|
1007
|
-
return t[0] = ln(e, i), t[1] = ln(s, i), t;
|
|
1008
|
-
}
|
|
1009
|
-
_offset(t, e) {
|
|
1010
|
-
Number.isFinite(this._minDistance) && (e = Math.max(this._minDistance, e)), Number.isFinite(this._maxDistance) && (e = Math.min(this._maxDistance, e)), $e(this._offsetPlane, this._plane), this._offsetPlane[3] -= e;
|
|
1011
|
-
const s = (r, o, a) => o != null && qe(this._offsetPlane, r, Ot(g(), r, o), a), i = g();
|
|
1012
|
-
(t === this._edge.leftVertex ? s(this._left.start, this._left.direction, i) : s(this._right.start, this._right.direction, i)) && this._helper.copy(this._helper.fromXYZ(i, void 0, this._helper.getM(t.pos)), t.pos);
|
|
1013
|
-
}
|
|
1014
|
-
selectArrowFromStartPoint(t) {
|
|
1015
|
-
this._selectedArrow = qn(this.plane, this._pointToXYZ(t)) ? 1 : -1;
|
|
1016
|
-
}
|
|
1017
|
-
get selectedArrow() {
|
|
1018
|
-
return this._selectedArrow;
|
|
1019
|
-
}
|
|
1020
|
-
signedDistanceToPoint(t) {
|
|
1021
|
-
return qt(this.plane, this._pointToXYZ(t));
|
|
1022
|
-
}
|
|
1023
|
-
apply(t) {
|
|
1024
|
-
this._offset(t, this.distance);
|
|
1025
|
-
}
|
|
1026
|
-
undo(t) {
|
|
1027
|
-
this._offset(t, 0);
|
|
1028
|
-
}
|
|
1029
|
-
canAccumulate(t) {
|
|
1030
|
-
return t instanceof ke && this._edge.leftVertex.index === t._edge.leftVertex.index && this._edge.rightVertex.index === t._edge.rightVertex.index && this._edge.component === t._edge.component && this._maybeEqualsVec3(this._left.direction, t._left.direction) && this._maybeEqualsVec3(this._right.direction, t._right.direction) && oe(Ht(this._plane), Ht(t._plane));
|
|
1031
|
-
}
|
|
1032
|
-
accumulate(t, e) {
|
|
1033
|
-
const s = this._plane[3] - e._plane[3] + e.distance;
|
|
1034
|
-
this._offset(t, s);
|
|
1035
|
-
}
|
|
1036
|
-
accumulateParams(t) {
|
|
1037
|
-
const e = t.distance - t._plane[3];
|
|
1038
|
-
this.distance = e + this._plane[3];
|
|
1039
|
-
}
|
|
1040
|
-
clone() {
|
|
1041
|
-
const t = new ke(this._helper, this._planeType, this._edge, this.distance, Gt.DEFERRED);
|
|
1042
|
-
return $e(t._plane, this._plane), $e(t._offsetPlane, this._offsetPlane), t._maxDistance = this._maxDistance, t._minDistance = this._minDistance, t._left = this._cloneNeighbor(this._left), t._right = this._cloneNeighbor(this._right), t._edgeDirection = $t(g(), this._edgeDirection), t;
|
|
1043
|
-
}
|
|
1044
|
-
_maybeEqualsVec3(t, e) {
|
|
1045
|
-
return t == null && e == null || t != null && e != null && oe(t, e);
|
|
1046
|
-
}
|
|
1047
|
-
_cloneNeighbor({ start: t, end: e, direction: s, isOriginalDirection: i }) {
|
|
1048
|
-
return { start: $t(g(), t), end: e != null ? $t(g(), e) : null, direction: $t(g(), s), isOriginalDirection: i };
|
|
1049
|
-
}
|
|
1050
|
-
};
|
|
1051
|
-
const pn = Gs(15), dn = 1e-3;
|
|
1052
|
-
var Ne, Gt;
|
|
1053
|
-
(function(n) {
|
|
1054
|
-
n[n.XYZ = 0] = "XYZ", n[n.XY = 1] = "XY";
|
|
1055
|
-
})(Ne || (Ne = {})), function(n) {
|
|
1056
|
-
n[n.IMMEDIATE = 0] = "IMMEDIATE", n[n.DEFERRED = 1] = "DEFERRED";
|
|
1057
|
-
}(Gt || (Gt = {}));
|
|
1058
|
-
let yr = class ns {
|
|
1059
|
-
constructor(t, e, s = ht.CUMULATIVE) {
|
|
1060
|
-
this.origin = t, this.angle = e, this._accumulationType = s;
|
|
1061
|
-
}
|
|
1062
|
-
_rotate(t, e) {
|
|
1063
|
-
js(t.pos, t.pos, this.origin, e);
|
|
1064
|
-
}
|
|
1065
|
-
apply(t) {
|
|
1066
|
-
this._rotate(t, this.angle);
|
|
1067
|
-
}
|
|
1068
|
-
undo(t) {
|
|
1069
|
-
this._rotate(t, -this.angle);
|
|
1070
|
-
}
|
|
1071
|
-
canAccumulate(t) {
|
|
1072
|
-
return t instanceof ns && Xt(this.origin, t.origin);
|
|
1073
|
-
}
|
|
1074
|
-
accumulate(t, e) {
|
|
1075
|
-
const s = e._accumulationType === ht.REPLACE;
|
|
1076
|
-
this._rotate(t, s ? e.angle - this.angle : e.angle);
|
|
1077
|
-
}
|
|
1078
|
-
accumulateParams(t) {
|
|
1079
|
-
const e = t._accumulationType === ht.REPLACE;
|
|
1080
|
-
this.angle = e ? t.angle : this.angle + t.angle;
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
class Ge {
|
|
1084
|
-
constructor(t, e, s, i, r = ht.CUMULATIVE) {
|
|
1085
|
-
this.origin = t, this.axis1 = e, this.factor1 = s, this.factor2 = i, this._accumulationType = r, this.axis2 = Mt(e[1], -e[0]);
|
|
1086
|
-
}
|
|
1087
|
-
_scale(t, e, s) {
|
|
1088
|
-
an(t.pos, t.pos, this.origin, this.axis1, e), an(t.pos, t.pos, this.origin, this.axis2, s);
|
|
1089
|
-
}
|
|
1090
|
-
apply(t) {
|
|
1091
|
-
this._scale(t, this.factor1, this.factor2);
|
|
1092
|
-
}
|
|
1093
|
-
undo(t) {
|
|
1094
|
-
this._scale(t, 1 / this.factor1, 1 / this.factor2);
|
|
1095
|
-
}
|
|
1096
|
-
canAccumulate(t) {
|
|
1097
|
-
return t instanceof Ge && Xt(this.origin, t.origin) && Xt(this.axis1, t.axis1);
|
|
1098
|
-
}
|
|
1099
|
-
accumulate(t, e) {
|
|
1100
|
-
e._accumulationType === ht.REPLACE ? this._scale(t, e.factor1 / this.factor1, e.factor2 / this.factor2) : this._scale(t, e.factor1, e.factor2);
|
|
1101
|
-
}
|
|
1102
|
-
accumulateParams(t) {
|
|
1103
|
-
const e = t._accumulationType === ht.REPLACE;
|
|
1104
|
-
this.factor1 = e ? t.factor1 : this.factor1 * t.factor1, this.factor2 = e ? t.factor2 : this.factor2 * t.factor2;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
let vr = class {
|
|
1108
|
-
constructor() {
|
|
1109
|
-
this._operations = [], this._closed = !1;
|
|
1110
|
-
}
|
|
1111
|
-
close() {
|
|
1112
|
-
this._closed = !0;
|
|
1113
|
-
}
|
|
1114
|
-
apply() {
|
|
1115
|
-
for (const t of this._operations)
|
|
1116
|
-
t.apply();
|
|
1117
|
-
}
|
|
1118
|
-
undo() {
|
|
1119
|
-
for (let t = this._operations.length - 1; t >= 0; t--)
|
|
1120
|
-
this._operations[t].undo();
|
|
1121
|
-
}
|
|
1122
|
-
accumulate(t) {
|
|
1123
|
-
if (this._closed)
|
|
1124
|
-
return !1;
|
|
1125
|
-
const e = this._operations.length ? this._operations[this._operations.length - 1] : null;
|
|
1126
|
-
return e && e.accumulate(t) || (this._operations.push(t), t.apply()), !0;
|
|
1127
|
-
}
|
|
1128
|
-
};
|
|
1129
|
-
class ss extends Sn {
|
|
1130
|
-
constructor(t) {
|
|
1131
|
-
super(), this.data = t, this._undoStack = [], this._redoStack = [], this._listener = this.data.on("change", (e) => {
|
|
1132
|
-
e.addedVertices && this.emit("vertex-add", { type: "vertex-add", vertices: e.addedVertices, operation: e.operation }), e.removedVertices && this.emit("vertex-remove", { type: "vertex-remove", vertices: e.removedVertices, operation: e.operation }), e.updatedVertices && this.emit("vertex-update", { type: "vertex-update", vertices: e.updatedVertices, operation: e.operation });
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
destroy() {
|
|
1136
|
-
this._listener.remove();
|
|
1137
|
-
}
|
|
1138
|
-
splitEdge(t, e) {
|
|
1139
|
-
return this._apply(new cr(this.data, t, e));
|
|
1140
|
-
}
|
|
1141
|
-
updateVertices(t, e, s = gt.ACCUMULATE_STEPS) {
|
|
1142
|
-
return this._apply(new ar(this.data, t, e), s);
|
|
1143
|
-
}
|
|
1144
|
-
moveVertices(t, e, s, i, r = gt.ACCUMULATE_STEPS) {
|
|
1145
|
-
return this.updateVertices(t, new pr(this.data.coordinateHelper, e, s, i), r);
|
|
1146
|
-
}
|
|
1147
|
-
scaleVertices(t, e, s, i, r, o = gt.ACCUMULATE_STEPS, a = ht.CUMULATIVE) {
|
|
1148
|
-
return this.updateVertices(t, new Ge(e, s, i, r, a), o);
|
|
1149
|
-
}
|
|
1150
|
-
rotateVertices(t, e, s, i = gt.ACCUMULATE_STEPS, r = ht.CUMULATIVE) {
|
|
1151
|
-
return this.updateVertices(t, new yr(e, s, r), i);
|
|
1152
|
-
}
|
|
1153
|
-
removeVertices(t) {
|
|
1154
|
-
return this._apply(new lr(this.data, t, this._minNumVerticesPerType));
|
|
1155
|
-
}
|
|
1156
|
-
appendVertex(t) {
|
|
1157
|
-
return this.data.components.length === 0 ? null : this._apply(new or(this.data, this.data.components[0], t));
|
|
1158
|
-
}
|
|
1159
|
-
setVertexPosition(t, e) {
|
|
1160
|
-
return this._apply(new hr(this.data, t, e));
|
|
1161
|
-
}
|
|
1162
|
-
offsetEdge(t, e, s, i = gt.ACCUMULATE_STEPS) {
|
|
1163
|
-
return this.updateVertices([e.leftVertex, e.rightVertex], new mr(this.data.coordinateHelper, t, e, s), i);
|
|
1164
|
-
}
|
|
1165
|
-
closeComponent(t) {
|
|
1166
|
-
return this.data.components.includes(t) ? this._apply(new ur(this.data, t)) : null;
|
|
1167
|
-
}
|
|
1168
|
-
canRemoveVertex(t) {
|
|
1169
|
-
return t.vertices.length > this._minNumVerticesPerType;
|
|
1170
|
-
}
|
|
1171
|
-
createUndoGroup() {
|
|
1172
|
-
const t = new vr();
|
|
1173
|
-
return this._apply(t), Xs(() => t.close());
|
|
1174
|
-
}
|
|
1175
|
-
undo() {
|
|
1176
|
-
if (this._undoStack.length > 0) {
|
|
1177
|
-
const t = this._undoStack.pop();
|
|
1178
|
-
return t.undo(), this._redoStack.push(t), t;
|
|
1179
|
-
}
|
|
1180
|
-
return null;
|
|
1181
|
-
}
|
|
1182
|
-
redo() {
|
|
1183
|
-
if (this._redoStack.length > 0) {
|
|
1184
|
-
const t = this._redoStack.pop();
|
|
1185
|
-
return t.apply(), this._undoStack.push(t), t;
|
|
1186
|
-
}
|
|
1187
|
-
return null;
|
|
1188
|
-
}
|
|
1189
|
-
get canUndo() {
|
|
1190
|
-
return this._undoStack.length > 0;
|
|
1191
|
-
}
|
|
1192
|
-
get canRedo() {
|
|
1193
|
-
return this._redoStack.length > 0;
|
|
1194
|
-
}
|
|
1195
|
-
get lastOperation() {
|
|
1196
|
-
return this._undoStack.length > 0 ? this._undoStack[this._undoStack.length - 1] : null;
|
|
1197
|
-
}
|
|
1198
|
-
get _minNumVerticesPerType() {
|
|
1199
|
-
switch (this.data.type) {
|
|
1200
|
-
case "point":
|
|
1201
|
-
return 1;
|
|
1202
|
-
case "polyline":
|
|
1203
|
-
return 2;
|
|
1204
|
-
case "polygon":
|
|
1205
|
-
return 3;
|
|
1206
|
-
default:
|
|
1207
|
-
return 0;
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
_apply(t, e = gt.ACCUMULATE_STEPS) {
|
|
1211
|
-
return e !== gt.NEW_STEP && this.lastOperation != null && this.lastOperation.accumulate(t) || (t.apply(), this._undoStack.push(t), this._redoStack = []), t;
|
|
1212
|
-
}
|
|
1213
|
-
static fromGeometry(t, e) {
|
|
1214
|
-
return new ss(rr.fromGeometry(t, e));
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
let xr = class {
|
|
1218
|
-
constructor(t) {
|
|
1219
|
-
this.vertexHandle = null, this.excludeFeature = null, this.visualizer = null, this.selfSnappingZ = null, this.editGeometryOperations = t.editGeometryOperations, this.elevationInfo = t.elevationInfo, this.pointer = t.pointer, this.vertexHandle = t.vertexHandle, this.excludeFeature = t.excludeFeature, this.feature = t.feature, this.visualizer = t.visualizer, this.selfSnappingZ = t.selfSnappingZ;
|
|
1220
|
-
}
|
|
1221
|
-
get coordinateHelper() {
|
|
1222
|
-
return this.editGeometryOperations.data.coordinateHelper;
|
|
1223
|
-
}
|
|
1224
|
-
get spatialReference() {
|
|
1225
|
-
return this.coordinateHelper.spatialReference;
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
const da = { redo: "r", undo: "z", center: "Alt", constraint: "Shift", cancel: "Escape", delete: ["Backspace", "Delete"], complete: "Enter", vertexAdd: "f", pan: " " }, fn = { toggle: "Control" };
|
|
1229
|
-
function fa(n) {
|
|
1230
|
-
let t, e, s = [], i = !1;
|
|
1231
|
-
function r(...o) {
|
|
1232
|
-
return i && t === this && Er(o, s) || (e = n.apply(this, o), t = this, s = o, i = !0), e;
|
|
1233
|
-
}
|
|
1234
|
-
return r;
|
|
1235
|
-
}
|
|
1236
|
-
function Er(n, t) {
|
|
1237
|
-
if (n.length !== t.length)
|
|
1238
|
-
return !1;
|
|
1239
|
-
for (let e = 0; e < n.length; ++e)
|
|
1240
|
-
if (n[e] !== t[e])
|
|
1241
|
-
return !1;
|
|
1242
|
-
return !0;
|
|
1243
|
-
}
|
|
1244
|
-
function $r(n) {
|
|
1245
|
-
return "declaredClass" in n;
|
|
1246
|
-
}
|
|
1247
|
-
function gn(n) {
|
|
1248
|
-
return "declaredClass" in n;
|
|
1249
|
-
}
|
|
1250
|
-
function ga(n) {
|
|
1251
|
-
return n == null ? null : $r(n) ? n : Ys(Mr(n));
|
|
1252
|
-
}
|
|
1253
|
-
function Mr(n) {
|
|
1254
|
-
const { wkid: t, wkt: e, wkt2: s, latestWkid: i } = n.spatialReference, r = { wkid: t, wkt: e, wkt2: s, latestWkid: i };
|
|
1255
|
-
switch (n.type) {
|
|
1256
|
-
case "point": {
|
|
1257
|
-
const { x: o, y: a, z: l, m: c } = n;
|
|
1258
|
-
return { x: o, y: a, z: l, m: c, spatialReference: r };
|
|
1259
|
-
}
|
|
1260
|
-
case "polygon": {
|
|
1261
|
-
const { rings: o, hasZ: a, hasM: l } = n;
|
|
1262
|
-
return { rings: _n(o), hasZ: a, hasM: l, spatialReference: r };
|
|
1263
|
-
}
|
|
1264
|
-
case "polyline": {
|
|
1265
|
-
const { paths: o, hasZ: a, hasM: l } = n;
|
|
1266
|
-
return { paths: _n(o), hasZ: a, hasM: l, spatialReference: r };
|
|
1267
|
-
}
|
|
1268
|
-
case "extent": {
|
|
1269
|
-
const { xmin: o, xmax: a, ymin: l, ymax: c, zmin: u, zmax: h, mmin: d, mmax: p, hasZ: y, hasM: m } = n;
|
|
1270
|
-
return { xmin: o, xmax: a, ymin: l, ymax: c, zmin: u, zmax: h, mmin: d, mmax: p, hasZ: y, hasM: m, spatialReference: r };
|
|
1271
|
-
}
|
|
1272
|
-
case "multipoint": {
|
|
1273
|
-
const { points: o, hasZ: a, hasM: l } = n;
|
|
1274
|
-
return { points: rs(o) ? is(o) : o, hasZ: a, hasM: l, spatialReference: r };
|
|
1275
|
-
}
|
|
1276
|
-
default:
|
|
1277
|
-
return;
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
function _n(n) {
|
|
1281
|
-
return wr(n) ? n.map((t) => is(t)) : n;
|
|
1282
|
-
}
|
|
1283
|
-
function is(n) {
|
|
1284
|
-
return n.map((t) => Array.from(t));
|
|
1285
|
-
}
|
|
1286
|
-
function wr(n) {
|
|
1287
|
-
for (const t of n)
|
|
1288
|
-
if (t.length !== 0)
|
|
1289
|
-
return rs(t);
|
|
1290
|
-
return !1;
|
|
1291
|
-
}
|
|
1292
|
-
function rs(n) {
|
|
1293
|
-
return n.length > 0 && (Ws(n[0]) || Bs(n[0]));
|
|
1294
|
-
}
|
|
1295
|
-
function br(n, t) {
|
|
1296
|
-
if (!n)
|
|
1297
|
-
return null;
|
|
1298
|
-
let e;
|
|
1299
|
-
if (gn(n)) {
|
|
1300
|
-
if (t == null)
|
|
1301
|
-
return n.clone();
|
|
1302
|
-
if (gn(t))
|
|
1303
|
-
return t.copy(n);
|
|
1304
|
-
}
|
|
1305
|
-
return t != null ? (e = t, e.x = n.x, e.y = n.y, e.spatialReference = n.spatialReference, n.hasZ ? (e.z = n.z, e.hasZ = n.hasZ) : (e.z = void 0, e.hasZ = !1), n.hasM ? (e.m = n.m, e.hasM = !0) : (e.m = void 0, e.hasM = !1)) : (e = Qt(n.x, n.y, n.z, n.spatialReference), n.hasM && (e.m = n.m, e.hasM = !0)), e;
|
|
1306
|
-
}
|
|
1307
|
-
function Tr(n) {
|
|
1308
|
-
const { wkid: t, wkt: e, wkt2: s, latestWkid: i } = n, r = { wkid: t, wkt: e, wkt2: s, latestWkid: i };
|
|
1309
|
-
return An.fromJSON(r);
|
|
1310
|
-
}
|
|
1311
|
-
var ze;
|
|
1312
|
-
(function(n) {
|
|
1313
|
-
n[n.EnableFastUpdates = 0] = "EnableFastUpdates", n[n.DisableFastUpdates = 1] = "DisableFastUpdates", n[n.UpdateFastLocalOrigin = 2] = "UpdateFastLocalOrigin";
|
|
1314
|
-
})(ze || (ze = {}));
|
|
1315
|
-
function os(n, t, e, s) {
|
|
1316
|
-
if (s == null || n.hasZ || (s = void 0), n.type === "point")
|
|
1317
|
-
return n.x += t, n.y += e, n.hasZ && s != null && (n.z += s), n;
|
|
1318
|
-
if (n.type === "multipoint") {
|
|
1319
|
-
const o = n.points;
|
|
1320
|
-
for (let a = 0; a < o.length; a++)
|
|
1321
|
-
o[a] = mn(o[a], t, e, s);
|
|
1322
|
-
return n;
|
|
1323
|
-
}
|
|
1324
|
-
if (n.type === "extent")
|
|
1325
|
-
return n.xmin += t, n.xmax += t, n.ymin += e, n.ymax += e, s != null && (n.zmin ?? (n.zmin = 0), n.zmin += s, n.zmax ?? (n.zmax = 0), n.zmax += s), n;
|
|
1326
|
-
const i = Js(n), r = n.type === "polyline" ? n.paths : n.rings;
|
|
1327
|
-
for (let o = 0; o < i.length; o++) {
|
|
1328
|
-
const a = i[o];
|
|
1329
|
-
for (let l = 0; l < a.length; l++)
|
|
1330
|
-
a[l] = mn(a[l], t, e, s);
|
|
1331
|
-
}
|
|
1332
|
-
return "paths" in n ? n.paths = r : n.rings = r, n;
|
|
1333
|
-
}
|
|
1334
|
-
function mn(n, t, e, s) {
|
|
1335
|
-
return Vr(n, n[0] + t, n[1] + e, n[2] != null && s != null ? n[2] + s : void 0);
|
|
1336
|
-
}
|
|
1337
|
-
function Vr(n, t, e, s) {
|
|
1338
|
-
const i = [t, e];
|
|
1339
|
-
return n.length > 2 && i.push(s ?? n[2]), n.length > 3 && i.push(n[3]), i;
|
|
1340
|
-
}
|
|
1341
|
-
function Ar(n, t) {
|
|
1342
|
-
let e = null, s = null;
|
|
1343
|
-
return (i) => {
|
|
1344
|
-
if (i.action === "cancel")
|
|
1345
|
-
return void (s != null && (s.execute({ action: "cancel" }), e = null, s = null));
|
|
1346
|
-
const r = { action: i.action, screenStart: i.start, screenEnd: i.screenPoint };
|
|
1347
|
-
i.action === "start" && e == null && (e = new Wt(), s = new Wt(), t(n, e, s, i.pointerType, r)), e != null && e.execute(r), i.action === "end" && e != null && (e = null, s = null);
|
|
1348
|
-
};
|
|
1349
|
-
}
|
|
1350
|
-
function _a(n, t) {
|
|
1351
|
-
return n.events.on("drag", Ar(n, t));
|
|
1352
|
-
}
|
|
1353
|
-
function ma(n) {
|
|
1354
|
-
let t = null;
|
|
1355
|
-
return (e) => {
|
|
1356
|
-
if (e.action === "start" && (t = Lr(n, e.mapStart.spatialReference)), t == null)
|
|
1357
|
-
return null;
|
|
1358
|
-
const s = e.mapEnd.x - e.mapStart.x, i = e.mapEnd.y - e.mapStart.y, r = e.mapEnd.z - e.mapStart.z;
|
|
1359
|
-
return t.move(s, i, r, e.action), { ...e, translationX: s, translationY: i, translationZ: r };
|
|
1360
|
-
};
|
|
1361
|
-
}
|
|
1362
|
-
function as(n, t) {
|
|
1363
|
-
return n == null ? null : n.spatialReference.equals(t) ? n.clone() : pe(n, t);
|
|
1364
|
-
}
|
|
1365
|
-
function Lr(n, t) {
|
|
1366
|
-
const e = n.geometry, s = Tr(t);
|
|
1367
|
-
if (e == null)
|
|
1368
|
-
return null;
|
|
1369
|
-
if (e.type === "mesh")
|
|
1370
|
-
return Rr(n, e, s);
|
|
1371
|
-
const i = as(e, s), r = e.spatialReference;
|
|
1372
|
-
return i == null ? null : { move: (o, a, l) => {
|
|
1373
|
-
const c = os(i.clone(), o, a, l);
|
|
1374
|
-
c.spatialReference.equals(r) ? n.geometry = c : n.geometry = pe(c, r);
|
|
1375
|
-
} };
|
|
1376
|
-
}
|
|
1377
|
-
function Rr(n, t, e) {
|
|
1378
|
-
if (Di(t.vertexSpace))
|
|
1379
|
-
return Pr(n, t, t.vertexSpace, e);
|
|
1380
|
-
if (!t.spatialReference.equals(e))
|
|
1381
|
-
return null;
|
|
1382
|
-
let s = 0, i = 0, r = 0;
|
|
1383
|
-
return { move: (o, a, l) => {
|
|
1384
|
-
const c = o - s, u = a - i, h = l - r;
|
|
1385
|
-
if (c || u || h) {
|
|
1386
|
-
const d = new Rt(t.anchor.x + c, t.anchor.y + u, (t.anchor.z ?? 0) + h, t.anchor.spatialReference);
|
|
1387
|
-
t.centerAt(d), n.notifyGeometryChanged(), s = o, i = a, r = l;
|
|
1388
|
-
}
|
|
1389
|
-
} };
|
|
1390
|
-
}
|
|
1391
|
-
function Pr(n, t, e, s) {
|
|
1392
|
-
const i = as(Zi(t.vertexSpace, t.spatialReference), s), r = t.spatialReference;
|
|
1393
|
-
return i == null ? null : { move: (o, a, l, c) => {
|
|
1394
|
-
const u = os(i.clone(), o, a, l);
|
|
1395
|
-
if (u.spatialReference.equals(r))
|
|
1396
|
-
e.origin = X(u.x, u.y, u.z ?? 0);
|
|
1397
|
-
else {
|
|
1398
|
-
const d = pe(u, r);
|
|
1399
|
-
d != null && (e.origin = X(d.x, d.y, d.z ?? 0));
|
|
1400
|
-
}
|
|
1401
|
-
const h = c === "end";
|
|
1402
|
-
n.notifyMeshTransformChanged(h ? { action: ze.UpdateFastLocalOrigin } : {});
|
|
1403
|
-
} };
|
|
1404
|
-
}
|
|
1405
|
-
function ya(n, t = null, e) {
|
|
1406
|
-
var o;
|
|
1407
|
-
let s = null;
|
|
1408
|
-
const i = t == null || (o = n.spatialReference) != null && o.equals(t) ? (a) => a : (a) => a != null ? pe(a, t) : a, r = { exclude: [], ...e };
|
|
1409
|
-
return (a) => {
|
|
1410
|
-
if (a.action === "start" && (s = i(n.toMap(a.screenStart, r))), s == null)
|
|
1411
|
-
return null;
|
|
1412
|
-
const l = i(n.toMap(a.screenEnd, r));
|
|
1413
|
-
return l != null ? { ...a, mapStart: s, mapEnd: l } : null;
|
|
1414
|
-
};
|
|
1415
|
-
}
|
|
1416
|
-
function va(n, t) {
|
|
1417
|
-
const e = /* @__PURE__ */ new Map();
|
|
1418
|
-
for (const s of t)
|
|
1419
|
-
e.set(s, Qs(n[s]));
|
|
1420
|
-
return (s) => (e.forEach((i, r) => {
|
|
1421
|
-
n[r] = i;
|
|
1422
|
-
}), s);
|
|
1423
|
-
}
|
|
1424
|
-
const Sr = () => {
|
|
1425
|
-
};
|
|
1426
|
-
class Wt {
|
|
1427
|
-
constructor() {
|
|
1428
|
-
this.execute = Sr;
|
|
1429
|
-
}
|
|
1430
|
-
next(t, e = new Wt()) {
|
|
1431
|
-
return t != null && (this.execute = (s) => {
|
|
1432
|
-
const i = t(s);
|
|
1433
|
-
i != null && e.execute(i);
|
|
1434
|
-
}), e;
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
function xa(n, t, e = []) {
|
|
1438
|
-
if (n.type === "2d")
|
|
1439
|
-
return (i) => i;
|
|
1440
|
-
let s = null;
|
|
1441
|
-
return (i) => {
|
|
1442
|
-
i.action === "start" && (s = n.toMap(i.screenStart, { exclude: e }), s != null && (s.z = cn(s, n, t)));
|
|
1443
|
-
const r = n.toMap(i.screenEnd, { exclude: e });
|
|
1444
|
-
r != null && (r.z = cn(r, n, t));
|
|
1445
|
-
const o = s != null && r != null ? { sceneStart: s, sceneEnd: r } : null;
|
|
1446
|
-
return { ...i, scenePoints: o };
|
|
1447
|
-
};
|
|
1448
|
-
}
|
|
1449
|
-
function je({ start: n, end: t, type: e }, s, i) {
|
|
1450
|
-
const r = [], o = C(ne, t, n), a = C(ge, n, s), l = Pt(o), c = 2 * kt(o, a), u = c * c - 4 * l * (Pt(a) - i * i);
|
|
1451
|
-
if (u === 0) {
|
|
1452
|
-
const h = -c / (2 * l);
|
|
1453
|
-
(e === Y.PLANE || h >= 0) && r.push(ct(R(), n, o, h));
|
|
1454
|
-
} else if (u > 0) {
|
|
1455
|
-
const h = Math.sqrt(u), d = (-c + h) / (2 * l);
|
|
1456
|
-
(e === Y.PLANE || d >= 0) && r.push(ct(R(), n, o, d));
|
|
1457
|
-
const p = (-c - h) / (2 * l);
|
|
1458
|
-
(e === Y.PLANE || p >= 0) && r.push(ct(R(), n, o, p));
|
|
1459
|
-
}
|
|
1460
|
-
return r;
|
|
1461
|
-
}
|
|
1462
|
-
function ls(n, t) {
|
|
1463
|
-
const e = n.start, s = n.end, i = C(ne, s, e), r = P(me, -i[1], i[0], 0), o = t.start, a = t.end, l = j(Ye, a, o), c = z(l, r), u = P(_s, e[0], e[1], 0), h = j(ms, u, o), d = z(h, r), p = Yt();
|
|
1464
|
-
if (Math.abs(c) < p)
|
|
1465
|
-
return [];
|
|
1466
|
-
const y = O(ys, o, l, d / c);
|
|
1467
|
-
if (t.type === w.RAY) {
|
|
1468
|
-
const m = j(Ce, y, o);
|
|
1469
|
-
if (z(m, l) < -p)
|
|
1470
|
-
return [];
|
|
1471
|
-
}
|
|
1472
|
-
if (n.type === Y.HALF_PLANE) {
|
|
1473
|
-
const m = Ks(ge, y, e);
|
|
1474
|
-
if (kt(m, i) < -p)
|
|
1475
|
-
return [];
|
|
1476
|
-
}
|
|
1477
|
-
return [bt(y)];
|
|
1478
|
-
}
|
|
1479
|
-
function kr(n, t) {
|
|
1480
|
-
return zr(ce(We, t[2], n), t);
|
|
1481
|
-
}
|
|
1482
|
-
function cs(n, t) {
|
|
1483
|
-
return fs(ce(We, 0, n), ce(Zr, 0, t)).map(([s, i]) => Mt(s, i));
|
|
1484
|
-
}
|
|
1485
|
-
function hs(n, t) {
|
|
1486
|
-
return ps(n, ce(We, n[2], t));
|
|
1487
|
-
}
|
|
1488
|
-
function us(n, t, e) {
|
|
1489
|
-
const s = C(ne, n, t), i = kn(s), r = i === 0 ? 1 : e / i, o = g();
|
|
1490
|
-
return ct(o, t, s, r), o[2] = n[2], o;
|
|
1491
|
-
}
|
|
1492
|
-
function ps(n, { start: t, end: e, type: s }, i = g()) {
|
|
1493
|
-
const r = j(_e, n, t), o = j(me, e, t), a = z(r, o) / z(o, o);
|
|
1494
|
-
return O(i, t, o, s === w.RAY ? Math.max(a, 0) : a);
|
|
1495
|
-
}
|
|
1496
|
-
const Nr = (() => {
|
|
1497
|
-
const n = g(), t = g(), e = g();
|
|
1498
|
-
return ({ start: s, end: i }, { center: r, radius: o, normal: a, slicePlane: l }) => {
|
|
1499
|
-
const c = Jt(r, a, Dr);
|
|
1500
|
-
if ($(Pe(c, s), 0) && $(Pe(c, i), 0)) {
|
|
1501
|
-
Gn(a, n, t);
|
|
1502
|
-
const h = (y, m) => (Oe(e, m, r), Nn(y, z(e, n), z(e, t)), y), d = gr({ start: h(ne, s), end: h(ge, i), type: w.LINE }, ti, o), p = [];
|
|
1503
|
-
for (const [y, m] of d) {
|
|
1504
|
-
const v = $t(g(), r);
|
|
1505
|
-
O(v, v, n, y), O(v, v, t, m), l && !wt(l, v) || p.push(v);
|
|
1506
|
-
}
|
|
1507
|
-
return p;
|
|
1508
|
-
}
|
|
1509
|
-
const u = g();
|
|
1510
|
-
return qe(c, s, i, u) ? !$(ue(u, r), o) || l && !wt(l, u) ? [] : [u] : [];
|
|
1511
|
-
};
|
|
1512
|
-
})();
|
|
1513
|
-
function ds({ start: n, end: t, type: e }, s, i) {
|
|
1514
|
-
const r = [], o = Oe(_e, t, n), a = C(ge, n, s), l = Pt(o), c = 2 * kt(o, a), u = c * c - 4 * l * (Pt(a) - i * i);
|
|
1515
|
-
if (u === 0) {
|
|
1516
|
-
const h = -c / (2 * l);
|
|
1517
|
-
(e === w.LINE || h >= 0) && r.push(O(g(), n, o, h));
|
|
1518
|
-
} else if (u > 0) {
|
|
1519
|
-
const h = Math.sqrt(u), d = (-c + h) / (2 * l);
|
|
1520
|
-
(e === w.LINE || d >= 0) && r.push(O(g(), n, o, d));
|
|
1521
|
-
const p = (-c - h) / (2 * l);
|
|
1522
|
-
(e === w.LINE || p >= 0) && r.push(O(g(), n, o, p));
|
|
1523
|
-
}
|
|
1524
|
-
return r;
|
|
1525
|
-
}
|
|
1526
|
-
function fs(n, t) {
|
|
1527
|
-
const e = n.start, s = n.end, i = t.start, r = t.end, o = j(_e, s, e), a = j(me, r, i), l = j(Ye, i, e), c = et(_s, o, a);
|
|
1528
|
-
if (!$(z(l, c), 0))
|
|
1529
|
-
return [];
|
|
1530
|
-
const u = Le(c);
|
|
1531
|
-
if ($(u, 0))
|
|
1532
|
-
return [];
|
|
1533
|
-
const h = et(ms, l, a), d = z(h, c) / u, p = O(ys, e, o, d);
|
|
1534
|
-
if (n.type === w.RAY) {
|
|
1535
|
-
const y = j(Ce, p, e);
|
|
1536
|
-
if (z(o, y) < -Yt())
|
|
1537
|
-
return [];
|
|
1538
|
-
}
|
|
1539
|
-
if (t.type === w.RAY) {
|
|
1540
|
-
const y = j(Ce, p, i);
|
|
1541
|
-
if (z(a, y) < -Yt())
|
|
1542
|
-
return [];
|
|
1543
|
-
}
|
|
1544
|
-
return [bt(p)];
|
|
1545
|
-
}
|
|
1546
|
-
function zr({ start: n, end: t, type: e }, s) {
|
|
1547
|
-
const i = j(_e, s, n), r = j(me, t, n), o = et(Ye, r, i), a = Le(o) / Le(r), l = Yt();
|
|
1548
|
-
if (a < l)
|
|
1549
|
-
switch (e) {
|
|
1550
|
-
case w.LINE:
|
|
1551
|
-
return [bt(s)];
|
|
1552
|
-
case w.RAY:
|
|
1553
|
-
return z(r, i) < -l ? [] : [bt(s)];
|
|
1554
|
-
}
|
|
1555
|
-
return [];
|
|
1556
|
-
}
|
|
1557
|
-
function Xe(n, t, e, s) {
|
|
1558
|
-
const [i, r] = n, [o, a] = e, l = o - i, c = a - r, u = l * l + c * c, h = Math.sqrt(u);
|
|
1559
|
-
if (h > t + s)
|
|
1560
|
-
return [];
|
|
1561
|
-
if (h < Math.abs(t - s))
|
|
1562
|
-
return [];
|
|
1563
|
-
if ($(h, 0) && $(t, s))
|
|
1564
|
-
return [];
|
|
1565
|
-
const d = (t * t - s * s + u) / (2 * h), p = Math.sqrt(t * t - d * d), y = p * c / h, m = p * l / h, [v, x] = Rn(ne, n, e, d / h);
|
|
1566
|
-
return $(y, m) ? [Mt(v, x)] : [Mt(v + y, x - m), Mt(v - y, x + m)];
|
|
1567
|
-
}
|
|
1568
|
-
function ce(n, t, { start: e, end: s, type: i }) {
|
|
1569
|
-
return P(n.start, e[0], e[1], t), P(n.end, s[0], s[1], t), n.type = Ir[i], n;
|
|
1570
|
-
}
|
|
1571
|
-
function gs(n, t) {
|
|
1572
|
-
return $(n[2], t[2]);
|
|
1573
|
-
}
|
|
1574
|
-
function $(n, t) {
|
|
1575
|
-
return Ut(Math.abs(n - t), 0, Yt());
|
|
1576
|
-
}
|
|
1577
|
-
function Cr(n, t) {
|
|
1578
|
-
return t.filter((e) => wt(n, e));
|
|
1579
|
-
}
|
|
1580
|
-
function wt(n, t) {
|
|
1581
|
-
return qn(n, t);
|
|
1582
|
-
}
|
|
1583
|
-
var Y;
|
|
1584
|
-
(function(n) {
|
|
1585
|
-
n[n.PLANE = 0] = "PLANE", n[n.HALF_PLANE = 1] = "HALF_PLANE";
|
|
1586
|
-
})(Y || (Y = {}));
|
|
1587
|
-
const Ir = { [Y.PLANE]: w.LINE, [Y.HALF_PLANE]: w.RAY }, ne = R(), ge = R(), _e = g(), me = g(), Ye = g(), _s = g(), ms = g(), ys = g(), Ce = g(), Dr = F(), We = { start: g(), end: g(), type: w.LINE }, Zr = { start: g(), end: g(), type: w.LINE };
|
|
1588
|
-
class it {
|
|
1589
|
-
intersect(t) {
|
|
1590
|
-
return ut(this, t);
|
|
1591
|
-
}
|
|
1592
|
-
closestPoints(t) {
|
|
1593
|
-
return [this.closestTo(t)];
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
class se extends it {
|
|
1597
|
-
constructor(t) {
|
|
1598
|
-
super(), this.point = t;
|
|
1599
|
-
}
|
|
1600
|
-
equals(t) {
|
|
1601
|
-
return this === t || tt(t) && V(this.point, t.point);
|
|
1602
|
-
}
|
|
1603
|
-
closestTo() {
|
|
1604
|
-
return Nt(this.point);
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
class Be extends it {
|
|
1608
|
-
constructor(t, e, s) {
|
|
1609
|
-
super(), this.start = t, this.end = e, this.lineLike = { start: t, end: e, type: s };
|
|
1610
|
-
}
|
|
1611
|
-
equals(t) {
|
|
1612
|
-
return this === t || ot(t) && this.lineLike.type === t.lineLike.type && V(this.start, t.start) && V(this.end, t.end);
|
|
1613
|
-
}
|
|
1614
|
-
closestTo(t) {
|
|
1615
|
-
const e = ps(t, this.lineLike);
|
|
1616
|
-
return e;
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
class vs extends Be {
|
|
1620
|
-
constructor(t, e) {
|
|
1621
|
-
super(t, e, w.LINE);
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
class Or extends Be {
|
|
1625
|
-
constructor(t, e) {
|
|
1626
|
-
super(t, e, w.RAY);
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
class xs extends it {
|
|
1630
|
-
constructor(t) {
|
|
1631
|
-
super(), this.constraints = t;
|
|
1632
|
-
}
|
|
1633
|
-
equals(t) {
|
|
1634
|
-
return this === t || Ie(t) && Xt(this.constraints, t.constraints, (e, s) => e.equals(s));
|
|
1635
|
-
}
|
|
1636
|
-
closestTo(t) {
|
|
1637
|
-
let e, s = 1 / 0;
|
|
1638
|
-
for (const i of this.constraints) {
|
|
1639
|
-
const r = i.closestTo(t), o = Re(t, r);
|
|
1640
|
-
o < s && (s = o, e = r);
|
|
1641
|
-
}
|
|
1642
|
-
return e ? Nt(e) : t;
|
|
1643
|
-
}
|
|
1644
|
-
closestPoints(t) {
|
|
1645
|
-
return this.constraints.flatMap((e) => e === this ? [] : e.closestPoints(t));
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
class Ur extends it {
|
|
1649
|
-
constructor(t, e) {
|
|
1650
|
-
super(), this.center = t, this.radius = e;
|
|
1651
|
-
}
|
|
1652
|
-
equals(t) {
|
|
1653
|
-
return this === t || lt(t) && this.center[0] === t.center[0] && this.center[1] === t.center[1] && this.radius === t.radius;
|
|
1654
|
-
}
|
|
1655
|
-
closestTo(t) {
|
|
1656
|
-
const e = us(t, this.center, this.radius);
|
|
1657
|
-
return e;
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
class Je extends it {
|
|
1661
|
-
constructor(t, e) {
|
|
1662
|
-
super(), this.center = t, this.radius = e;
|
|
1663
|
-
}
|
|
1664
|
-
equals(t) {
|
|
1665
|
-
return this === t || dt(t) && V(this.center, t.center) && this.radius === t.radius;
|
|
1666
|
-
}
|
|
1667
|
-
closestTo(t) {
|
|
1668
|
-
const e = us(t, this.center, this.radius);
|
|
1669
|
-
return e[2] = this.center[2], e;
|
|
1670
|
-
}
|
|
1671
|
-
asCircle() {
|
|
1672
|
-
return new Qe(Nt(this.center), this.radius, St(0, 0, 1));
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
class Qe extends it {
|
|
1676
|
-
constructor(t, e, s, i = void 0) {
|
|
1677
|
-
super(), this.center = t, this.radius = e, this.normal = s, this.slicePlane = i;
|
|
1678
|
-
}
|
|
1679
|
-
equals(t) {
|
|
1680
|
-
return this === t || vt(t) && V(this.center, t.center) && V(this.normal, t.normal) && this.radius === t.radius;
|
|
1681
|
-
}
|
|
1682
|
-
closestTo(t) {
|
|
1683
|
-
const { center: e, radius: s } = this;
|
|
1684
|
-
Hn(this.getPlane(qr), t, be);
|
|
1685
|
-
const i = j(be, be, e), r = ni(i);
|
|
1686
|
-
if ($(r, 0))
|
|
1687
|
-
return Nt(t);
|
|
1688
|
-
const o = s / Math.sqrt(r), a = O(g(), e, i, o), { slicePlane: l } = this;
|
|
1689
|
-
if (l && !wt(l, a)) {
|
|
1690
|
-
const c = tn(l, this);
|
|
1691
|
-
return (c == null ? void 0 : c.closestTo(t)) ?? Nt(t);
|
|
1692
|
-
}
|
|
1693
|
-
return a;
|
|
1694
|
-
}
|
|
1695
|
-
getPlane(t = F()) {
|
|
1696
|
-
return Jt(this.center, this.normal, t);
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
const be = g(), qr = F();
|
|
1700
|
-
class Hr extends it {
|
|
1701
|
-
constructor(t) {
|
|
1702
|
-
super(), this.z = t;
|
|
1703
|
-
}
|
|
1704
|
-
equals(t) {
|
|
1705
|
-
return this === t || pt(t) && this.z === t.z;
|
|
1706
|
-
}
|
|
1707
|
-
closestTo(t) {
|
|
1708
|
-
return X(t[0], t[1], this.z);
|
|
1709
|
-
}
|
|
1710
|
-
getPlane(t = F()) {
|
|
1711
|
-
return P(yn, 0, 0, this.z), Jt(yn, ii, t);
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
const yn = g();
|
|
1715
|
-
class Ke extends it {
|
|
1716
|
-
constructor(t, e, s) {
|
|
1717
|
-
super(), this.start = t, this.end = e, this.planeLike = { start: t, end: e, type: s };
|
|
1718
|
-
}
|
|
1719
|
-
equals(t) {
|
|
1720
|
-
return this === t || at(t) && this.planeLike.type === t.planeLike.type && V(this.start, t.start) && V(this.end, t.end);
|
|
1721
|
-
}
|
|
1722
|
-
closestTo(t) {
|
|
1723
|
-
return hs(t, this.planeLike);
|
|
1724
|
-
}
|
|
1725
|
-
closestEndTo(t) {
|
|
1726
|
-
const { start: e, end: s } = this.planeLike;
|
|
1727
|
-
return Math.sign(kt(C(Fr, s, e), C(Gr, t, e))) > 0 ? this.end : this.start;
|
|
1728
|
-
}
|
|
1729
|
-
getPlane(t = F()) {
|
|
1730
|
-
const e = $t(vn, this.end);
|
|
1731
|
-
return e[2] += 1, Li(this.start, this.end, e, t);
|
|
1732
|
-
}
|
|
1733
|
-
getSlicePlane(t = F()) {
|
|
1734
|
-
const { start: e, end: s, type: i } = this.planeLike;
|
|
1735
|
-
if (i === Y.PLANE)
|
|
1736
|
-
return;
|
|
1737
|
-
const r = P(vn, e[0], e[1], 0), o = P(xn, s[0], s[1], 0), a = Oe(xn, o, r);
|
|
1738
|
-
return Jt(r, a, t), t;
|
|
1739
|
-
}
|
|
1740
|
-
}
|
|
1741
|
-
const Fr = R(), Gr = R(), vn = g(), xn = g();
|
|
1742
|
-
class Ea extends Ke {
|
|
1743
|
-
constructor(t, e) {
|
|
1744
|
-
super(t, e, Y.HALF_PLANE);
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
class $a extends Ke {
|
|
1748
|
-
constructor(t, e) {
|
|
1749
|
-
super(t, e, Y.PLANE);
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
class jr extends it {
|
|
1753
|
-
constructor(t, e) {
|
|
1754
|
-
super(), this.sphere = Si(t, e);
|
|
1755
|
-
}
|
|
1756
|
-
equals(t) {
|
|
1757
|
-
return this === t || ft(t) && ki(this.sphere, t.sphere);
|
|
1758
|
-
}
|
|
1759
|
-
closestTo(t) {
|
|
1760
|
-
const e = Ni(this.sphere, t, g());
|
|
1761
|
-
return e;
|
|
1762
|
-
}
|
|
1763
|
-
get center() {
|
|
1764
|
-
return zi(this.sphere);
|
|
1765
|
-
}
|
|
1766
|
-
get radius() {
|
|
1767
|
-
return this.sphere[3];
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
class Xr extends it {
|
|
1771
|
-
constructor(t, e, s) {
|
|
1772
|
-
super(), this.start = t, this.end = e, this.getZ = s, this.planeLike = { start: t, end: e, type: Y.PLANE };
|
|
1773
|
-
}
|
|
1774
|
-
equals(t) {
|
|
1775
|
-
return this === t || he(t) && V(this.start, t.start) && V(this.end, t.end) && this.getZ === t.getZ;
|
|
1776
|
-
}
|
|
1777
|
-
closestTo(t) {
|
|
1778
|
-
return Qr(this, t);
|
|
1779
|
-
}
|
|
1780
|
-
addIfOnTheGround(t, e) {
|
|
1781
|
-
for (const s of e) {
|
|
1782
|
-
const i = this.getZ(s[0], s[1]) ?? 0;
|
|
1783
|
-
$(s[2], i) && (s[2] = i, t.push(s));
|
|
1784
|
-
}
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
class Yr extends it {
|
|
1788
|
-
constructor(t, e, s, i, r) {
|
|
1789
|
-
super(), this._origin = t, this._spatialReference = e, this._distanceMeters = s, this._elevationMeters = i, this._directionDegrees = r;
|
|
1790
|
-
}
|
|
1791
|
-
equals(t) {
|
|
1792
|
-
return this === t || fo(t) && ri(this._origin, t._origin) && this._distanceMeters === t._distanceMeters && this._elevationMeters === t._elevationMeters && this._directionDegrees === t._directionDegrees;
|
|
1793
|
-
}
|
|
1794
|
-
closestTo([t, e, s]) {
|
|
1795
|
-
if (Nn(mt, t, e), this._directionDegrees != null && this._distanceMeters != null)
|
|
1796
|
-
At(mt, this._origin, this._directionDegrees, this._distanceMeters, this._spatialReference);
|
|
1797
|
-
else if (this._directionDegrees != null)
|
|
1798
|
-
Br(mt, this._origin, this._directionDegrees, mt, this._spatialReference);
|
|
1799
|
-
else if (this._distanceMeters != null) {
|
|
1800
|
-
const { azimuth: i } = te(Wr, this._origin, mt, this._spatialReference);
|
|
1801
|
-
At(mt, this._origin, i ?? 0, this._distanceMeters, this._spatialReference);
|
|
1802
|
-
}
|
|
1803
|
-
return Xi(mt[0], mt[1], this._elevationMeters ?? s);
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
const mt = [0, 0], Wr = new Kt();
|
|
1807
|
-
function Br(n, t, e, s, i) {
|
|
1808
|
-
let { azimuth: r, distance: o } = te(Jr, t, s, i);
|
|
1809
|
-
r ?? (r = 0);
|
|
1810
|
-
let a = o * Math.cos((r - e) * q);
|
|
1811
|
-
a = Math.max(0, a), At(n, t, e, a, i);
|
|
1812
|
-
}
|
|
1813
|
-
const Jr = new Kt();
|
|
1814
|
-
function Qr(n, t) {
|
|
1815
|
-
const e = hs(t, n.planeLike);
|
|
1816
|
-
return e[2] = n.getZ(e[0], e[1]) ?? $s, e;
|
|
1817
|
-
}
|
|
1818
|
-
function ut(n, t) {
|
|
1819
|
-
if (Ie(n)) {
|
|
1820
|
-
const e = [];
|
|
1821
|
-
for (const s of n.constraints) {
|
|
1822
|
-
const i = s.intersect(t);
|
|
1823
|
-
i && e.push(i);
|
|
1824
|
-
}
|
|
1825
|
-
return en(e);
|
|
1826
|
-
}
|
|
1827
|
-
if (Ie(t))
|
|
1828
|
-
return ut(t, n);
|
|
1829
|
-
if (he(n))
|
|
1830
|
-
return En(n, t);
|
|
1831
|
-
if (he(t))
|
|
1832
|
-
return En(t, n);
|
|
1833
|
-
if (tt(n)) {
|
|
1834
|
-
const { point: e } = n;
|
|
1835
|
-
if (tt(t))
|
|
1836
|
-
return V(e, t.point) ? n : void 0;
|
|
1837
|
-
const s = t.closestTo(e);
|
|
1838
|
-
return oe(s, e) ? n : void 0;
|
|
1839
|
-
}
|
|
1840
|
-
if (ot(n)) {
|
|
1841
|
-
if (tt(t))
|
|
1842
|
-
return ut(t, n);
|
|
1843
|
-
if (ot(t))
|
|
1844
|
-
return st(fs(n.lineLike, t.lineLike));
|
|
1845
|
-
if (pt(t))
|
|
1846
|
-
return Kr(n, t);
|
|
1847
|
-
if (at(t))
|
|
1848
|
-
return st(ls(t.planeLike, n.lineLike));
|
|
1849
|
-
if (lt(t))
|
|
1850
|
-
return st(ds(n.lineLike, t.center, t.radius));
|
|
1851
|
-
if (vt(t))
|
|
1852
|
-
return st(Nr(n.lineLike, t));
|
|
1853
|
-
if (dt(t))
|
|
1854
|
-
return to(n, t);
|
|
1855
|
-
if (ft(t))
|
|
1856
|
-
return eo(n, t);
|
|
1857
|
-
} else if (pt(n)) {
|
|
1858
|
-
if (tt(t) || ot(t))
|
|
1859
|
-
return ut(t, n);
|
|
1860
|
-
if (pt(t))
|
|
1861
|
-
return no(n, t);
|
|
1862
|
-
if (at(t))
|
|
1863
|
-
return so(n, t);
|
|
1864
|
-
if (lt(t))
|
|
1865
|
-
return io(n, t);
|
|
1866
|
-
if (vt(t))
|
|
1867
|
-
return oo(n, t);
|
|
1868
|
-
if (dt(t))
|
|
1869
|
-
return ro(n, t);
|
|
1870
|
-
if (ft(t))
|
|
1871
|
-
return ao(n, t);
|
|
1872
|
-
} else if (at(n)) {
|
|
1873
|
-
if (tt(t) || ot(t) || pt(t))
|
|
1874
|
-
return ut(t, n);
|
|
1875
|
-
if (at(t))
|
|
1876
|
-
return Te(cs(n.planeLike, t.planeLike));
|
|
1877
|
-
if (lt(t))
|
|
1878
|
-
return Te(je(n.planeLike, t.center, t.radius));
|
|
1879
|
-
if (vt(t))
|
|
1880
|
-
return co(n, t);
|
|
1881
|
-
if (dt(t))
|
|
1882
|
-
return lo(n, t);
|
|
1883
|
-
if (ft(t))
|
|
1884
|
-
return ho(n, t);
|
|
1885
|
-
} else if (lt(n)) {
|
|
1886
|
-
if (tt(t) || ot(t) || pt(t) || at(t))
|
|
1887
|
-
return ut(t, n);
|
|
1888
|
-
if (lt(t))
|
|
1889
|
-
return Te(Xe(n.center, n.radius, t.center, t.radius));
|
|
1890
|
-
if (vt(t))
|
|
1891
|
-
return void 0;
|
|
1892
|
-
if (dt(t))
|
|
1893
|
-
return uo(n, t);
|
|
1894
|
-
if (ft(t))
|
|
1895
|
-
return void 0;
|
|
1896
|
-
} else if (vt(n)) {
|
|
1897
|
-
if (tt(t) || ot(t) || pt(t) || at(t) || lt(t))
|
|
1898
|
-
return ut(t, n);
|
|
1899
|
-
if (vt(t))
|
|
1900
|
-
return void 0;
|
|
1901
|
-
if (dt(t))
|
|
1902
|
-
return t.asCircle(), void 0;
|
|
1903
|
-
if (ft(t))
|
|
1904
|
-
return void 0;
|
|
1905
|
-
} else if (dt(n)) {
|
|
1906
|
-
if (tt(t) || ot(t) || pt(t) || at(t) || lt(t) || vt(t))
|
|
1907
|
-
return ut(t, n);
|
|
1908
|
-
if (dt(t))
|
|
1909
|
-
return po(t, n);
|
|
1910
|
-
if (ft(t))
|
|
1911
|
-
return void 0;
|
|
1912
|
-
} else if (ft(n)) {
|
|
1913
|
-
if (tt(t) || ot(t) || pt(t) || at(t) || lt(t) || dt(t))
|
|
1914
|
-
return ut(t, n);
|
|
1915
|
-
if (ft(t))
|
|
1916
|
-
return void 0;
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
const Kr = (() => {
|
|
1920
|
-
const n = F();
|
|
1921
|
-
return (t, e) => {
|
|
1922
|
-
const { start: s, end: i } = t;
|
|
1923
|
-
if (gs(s, i) && $(s[2], e.z))
|
|
1924
|
-
return t;
|
|
1925
|
-
const r = g();
|
|
1926
|
-
return qe(e.getPlane(n), s, i, r) ? new se(r) : void 0;
|
|
1927
|
-
};
|
|
1928
|
-
})();
|
|
1929
|
-
function to({ lineLike: n }, { center: t, radius: e }) {
|
|
1930
|
-
const s = t[2];
|
|
1931
|
-
return st(ds(n, t, e).filter((i) => $(i[2], s)));
|
|
1932
|
-
}
|
|
1933
|
-
function eo({ lineLike: n }, { sphere: t }) {
|
|
1934
|
-
return st(Pi(t, n.start, n.end));
|
|
1935
|
-
}
|
|
1936
|
-
const tn = (() => {
|
|
1937
|
-
const n = Un(), t = g(), e = g();
|
|
1938
|
-
return (s, i, r) => {
|
|
1939
|
-
const { normal: o, center: a, radius: l } = i;
|
|
1940
|
-
Gn(o, t, e);
|
|
1941
|
-
const c = Ht(s), u = l * z(c, t), h = l * z(c, e);
|
|
1942
|
-
Ti(n, a[0], a[1], a[2], 1);
|
|
1943
|
-
const d = Vi(s, n), p = Math.hypot(u, h), y = $(p, 0);
|
|
1944
|
-
if ($(Pe(s, a), 0)) {
|
|
1945
|
-
if (y)
|
|
1946
|
-
return i;
|
|
1947
|
-
if ($(l, 0))
|
|
1948
|
-
return !r || wt(r, a) ? new se(Nt(a)) : void 0;
|
|
1949
|
-
et(t, c, o), Et(t, t);
|
|
1950
|
-
const E = new Array(), k = bt(a);
|
|
1951
|
-
O(k, k, t, l), r && !wt(r, k) || E.push(k);
|
|
1952
|
-
const U = bt(a);
|
|
1953
|
-
return O(U, U, t, -l), r && !wt(r, U) || E.push(U), st(E);
|
|
1954
|
-
}
|
|
1955
|
-
if (y)
|
|
1956
|
-
return;
|
|
1957
|
-
const m = -d / p;
|
|
1958
|
-
if (Math.abs(m) > 1 || $(m, 1))
|
|
1959
|
-
return;
|
|
1960
|
-
const v = Math.atan(u / h), x = si(m) - v, b = Math.PI - x, S = new Array(), I = g();
|
|
1961
|
-
O(I, a, t, l * Math.cos(x)), O(I, I, e, l * Math.sin(x)), S.push(I);
|
|
1962
|
-
const A = g();
|
|
1963
|
-
return O(A, a, t, l * Math.cos(b)), O(A, A, e, l * Math.sin(b)), S.push(A), st(r ? Cr(r, S) : S);
|
|
1964
|
-
};
|
|
1965
|
-
})();
|
|
1966
|
-
function no(n, t) {
|
|
1967
|
-
return $(n.z, t.z) ? n : void 0;
|
|
1968
|
-
}
|
|
1969
|
-
function so({ z: n }, { planeLike: t }) {
|
|
1970
|
-
const [e, s] = t.start, [i, r] = t.end, o = St(e, s, n), a = St(i, r, n);
|
|
1971
|
-
return t.type === Y.PLANE ? new vs(o, a) : new Or(o, a);
|
|
1972
|
-
}
|
|
1973
|
-
function io(n, t) {
|
|
1974
|
-
const [e, s] = t.center;
|
|
1975
|
-
return new Je(St(e, s, n.z), t.radius);
|
|
1976
|
-
}
|
|
1977
|
-
function ro(n, t) {
|
|
1978
|
-
return $(t.center[2], n.z) ? t : void 0;
|
|
1979
|
-
}
|
|
1980
|
-
const oo = (() => {
|
|
1981
|
-
const n = F();
|
|
1982
|
-
return (t, e) => tn(t.getPlane(n), e, e.slicePlane);
|
|
1983
|
-
})();
|
|
1984
|
-
function ao(n, { center: t, radius: e }) {
|
|
1985
|
-
const s = Math.abs(t[2] - n.z);
|
|
1986
|
-
if (s > e && !$(s, e))
|
|
1987
|
-
return;
|
|
1988
|
-
const i = St(t[0], t[1], n.z), r = Math.sqrt(e ** 2 - s ** 2);
|
|
1989
|
-
return $(r, 0) ? void 0 : new Je(i, r);
|
|
1990
|
-
}
|
|
1991
|
-
const lo = (() => {
|
|
1992
|
-
const n = F();
|
|
1993
|
-
return (t, { center: e, radius: s }) => {
|
|
1994
|
-
const i = je(t.planeLike, e, s), r = e[2];
|
|
1995
|
-
t.getSlicePlane(n);
|
|
1996
|
-
const o = new Array();
|
|
1997
|
-
for (const [a, l] of i) {
|
|
1998
|
-
const c = [a, l, r];
|
|
1999
|
-
wt(n, c) && o.push(c);
|
|
2000
|
-
}
|
|
2001
|
-
return st(o);
|
|
2002
|
-
};
|
|
2003
|
-
})(), co = (() => {
|
|
2004
|
-
const n = F(), t = F();
|
|
2005
|
-
return (e, s) => tn(e.getPlane(n), s, e.getSlicePlane(t));
|
|
2006
|
-
})(), ho = (() => {
|
|
2007
|
-
const n = F();
|
|
2008
|
-
return (t, { center: e, radius: s }) => {
|
|
2009
|
-
const i = t.getPlane(n), r = qt(i, e), o = Math.abs(r);
|
|
2010
|
-
if (o > s && !$(o, s))
|
|
2011
|
-
return;
|
|
2012
|
-
const a = bt(Ht(i)), l = O(g(), e, a, r), c = Math.sqrt(s ** 2 - r ** 2);
|
|
2013
|
-
return $(c, 0) ? new se(Hn(i, e, g())) : new Qe(l, c, a, t.getSlicePlane());
|
|
2014
|
-
};
|
|
2015
|
-
})();
|
|
2016
|
-
function uo(n, t) {
|
|
2017
|
-
const e = zn(n.center, t.center);
|
|
2018
|
-
return $(e, 0) && $(n.radius, t.radius) ? t : Es(Xe(n.center, n.radius, t.center, t.radius), t.center[2]);
|
|
2019
|
-
}
|
|
2020
|
-
function po(n, t) {
|
|
2021
|
-
if (!gs(n.center, t.center))
|
|
2022
|
-
return;
|
|
2023
|
-
const e = zn(n.center, t.center);
|
|
2024
|
-
return $(e, 0) && $(n.radius, t.radius) ? n : Es(Xe(n.center, n.radius, t.center, t.radius), n.center[2]);
|
|
2025
|
-
}
|
|
2026
|
-
function En(n, t) {
|
|
2027
|
-
const { planeLike: e, getZ: s } = n, i = new Array();
|
|
2028
|
-
if (tt(t))
|
|
2029
|
-
n.addIfOnTheGround(i, kr(e, t.point));
|
|
2030
|
-
else if (ot(t))
|
|
2031
|
-
n.addIfOnTheGround(i, ls(e, t.lineLike));
|
|
2032
|
-
else if (lt(t))
|
|
2033
|
-
for (const [r, o] of je(e, t.center, t.radius)) {
|
|
2034
|
-
const a = s(r, o);
|
|
2035
|
-
a != null && i.push(X(r, o, a));
|
|
2036
|
-
}
|
|
2037
|
-
else if (at(t) || he(t))
|
|
2038
|
-
for (const [r, o] of cs(e, t.planeLike)) {
|
|
2039
|
-
const a = s(r, o) ?? $s;
|
|
2040
|
-
i.push(X(r, o, a));
|
|
2041
|
-
}
|
|
2042
|
-
return st(i);
|
|
2043
|
-
}
|
|
2044
|
-
function Te(n) {
|
|
2045
|
-
return en(n.map(([t, e]) => {
|
|
2046
|
-
const s = St(t, e, 0), i = St(t, e, 1);
|
|
2047
|
-
return new vs(s, i);
|
|
2048
|
-
}));
|
|
2049
|
-
}
|
|
2050
|
-
function st(n) {
|
|
2051
|
-
return en(n.map((t) => t ? new se(t) : void 0));
|
|
2052
|
-
}
|
|
2053
|
-
function Es(n, t) {
|
|
2054
|
-
return st(n.map(([e, s]) => [e, s, t]));
|
|
2055
|
-
}
|
|
2056
|
-
function en(n) {
|
|
2057
|
-
if (n.length !== 0)
|
|
2058
|
-
return n.length === 1 ? n[0] ?? void 0 : new xs(n.filter(ei));
|
|
2059
|
-
}
|
|
2060
|
-
function Ie(n) {
|
|
2061
|
-
return n instanceof xs;
|
|
2062
|
-
}
|
|
2063
|
-
function tt(n) {
|
|
2064
|
-
return n instanceof se;
|
|
2065
|
-
}
|
|
2066
|
-
function ot(n) {
|
|
2067
|
-
return n instanceof Be;
|
|
2068
|
-
}
|
|
2069
|
-
function pt(n) {
|
|
2070
|
-
return n instanceof Hr;
|
|
2071
|
-
}
|
|
2072
|
-
function at(n) {
|
|
2073
|
-
return n instanceof Ke;
|
|
2074
|
-
}
|
|
2075
|
-
function lt(n) {
|
|
2076
|
-
return n instanceof Ur;
|
|
2077
|
-
}
|
|
2078
|
-
function dt(n) {
|
|
2079
|
-
return n instanceof Je;
|
|
2080
|
-
}
|
|
2081
|
-
function vt(n) {
|
|
2082
|
-
return n instanceof Qe;
|
|
2083
|
-
}
|
|
2084
|
-
function ft(n) {
|
|
2085
|
-
return n instanceof jr;
|
|
2086
|
-
}
|
|
2087
|
-
function he(n) {
|
|
2088
|
-
return n instanceof Xr;
|
|
2089
|
-
}
|
|
2090
|
-
function fo(n) {
|
|
2091
|
-
return n instanceof Yr;
|
|
2092
|
-
}
|
|
2093
|
-
const $s = 0;
|
|
2094
|
-
function Ma({ predicate: n = () => !0, snappingManager: t, snappingContext: e, updatingHandles: s, useZ: i = !0 }) {
|
|
2095
|
-
const r = new Wt();
|
|
2096
|
-
if (t == null)
|
|
2097
|
-
return { snappingStep: [$n, r], cancelSnapping: $n };
|
|
2098
|
-
let o, a = null, l = null, c = null;
|
|
2099
|
-
const u = () => {
|
|
2100
|
-
a = oi(a), t.doneSnapping(), l == null || l.frameTask.remove(), l = null, o = ai(o), c = null;
|
|
2101
|
-
}, h = go(t, i, r);
|
|
2102
|
-
let d = null, p = null, y = null;
|
|
2103
|
-
return { snappingStep: [(m) => {
|
|
2104
|
-
if (!n(m))
|
|
2105
|
-
return m;
|
|
2106
|
-
const { action: v } = m;
|
|
2107
|
-
if (v === "start") {
|
|
2108
|
-
const { info: x } = m, b = _o(t.view);
|
|
2109
|
-
if (l = mo(e, m, b), l.context.selfSnappingZ = null, !i && x != null) {
|
|
2110
|
-
const S = vo(e.coordinateHelper, x.handle.component);
|
|
2111
|
-
S != null && (l.context.selfSnappingZ = { value: S, elevationInfo: e.elevationInfo ?? He });
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
if (l != null) {
|
|
2115
|
-
const { context: x, originalScenePos: b, originalPos: S } = l, { mapEnd: I, mapStart: A, scenePoints: E } = m, k = Ms(S, De(I, A)), U = De(A, S), D = { ...m, action: "update" }, G = l.context, L = yo(b, E), rt = t.update({ point: k, scenePoint: L, context: x });
|
|
2116
|
-
if (y = rt, ws(I, rt, U, i), d = k, p = L, v !== "end") {
|
|
2117
|
-
const { frameTask: W } = l;
|
|
2118
|
-
a == null && (a = new AbortController()), c = (H) => {
|
|
2119
|
-
s.addPromise(li(h({ frameTask: W, event: D, context: G, point: k, scenePoint: L, delta: U, getLastState: () => ({ point: d, scenePoint: p, updatePoint: H.forceUpdate ? null : y }) }, a.signal)));
|
|
2120
|
-
}, c({ forceUpdate: !1 }), o == null && (o = Ue(() => t.options.effectiveEnabled, () => c == null ? void 0 : c({ forceUpdate: !0 })));
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
return v === "end" && u(), m;
|
|
2124
|
-
}, r], cancelSnapping: (m) => (u(), m) };
|
|
2125
|
-
}
|
|
2126
|
-
function go(n, t, e) {
|
|
2127
|
-
return ci(async ({ frameTask: s, point: i, scenePoint: r, context: o, event: a, delta: l, getLastState: c }, u) => {
|
|
2128
|
-
const h = await s.schedule(() => n.snap({ point: i, scenePoint: r, context: o, signal: u }), u);
|
|
2129
|
-
if (h.valid) {
|
|
2130
|
-
let d = await s.schedule(() => h.apply(), u);
|
|
2131
|
-
const p = c();
|
|
2132
|
-
p.point != null && i !== p.point && (d = n.update({ point: p.point, scenePoint: p.scenePoint, context: o })), p.updatePoint != null && Hi(d, p.updatePoint) || (ws(a.mapEnd, d, l, t), e.execute(a));
|
|
2133
|
-
}
|
|
2134
|
-
});
|
|
2135
|
-
}
|
|
2136
|
-
function _o(n) {
|
|
2137
|
-
return n.type === "3d" ? n.resourceController.scheduler.registerTask(Oi.SNAPPING) : Ui;
|
|
2138
|
-
}
|
|
2139
|
-
function mo(n, t, e) {
|
|
2140
|
-
return { context: new xr({ editGeometryOperations: n.editGeometryOperations, elevationInfo: n.elevationInfo, pointer: n.pointer, vertexHandle: t.info != null ? t.info.handle : null, excludeFeature: n.excludeFeature, feature: n.feature, visualizer: n.visualizer }), originalPos: t.snapOrigin != null ? n.coordinateHelper.vectorToDehydratedPoint(t.snapOrigin) : t.mapStart, originalScenePos: t.scenePoints != null ? t.scenePoints.sceneStart : null, frameTask: e };
|
|
2141
|
-
}
|
|
2142
|
-
function Ms(n, [t, e, s]) {
|
|
2143
|
-
const i = br(n);
|
|
2144
|
-
return i.x += t, i.y += e, i.hasZ && (i.z += s), i;
|
|
2145
|
-
}
|
|
2146
|
-
function yo(n, t) {
|
|
2147
|
-
return n == null || t == null ? null : Ms(n, De(t.sceneEnd, t.sceneStart));
|
|
2148
|
-
}
|
|
2149
|
-
function De(n, t) {
|
|
2150
|
-
const e = n.hasZ && t.hasZ ? n.z - t.z : 0;
|
|
2151
|
-
return [n.x - t.x, n.y - t.y, e];
|
|
2152
|
-
}
|
|
2153
|
-
function ws(n, t, [e, s, i], r) {
|
|
2154
|
-
n.x = t.x + e, n.y = t.y + s, r && n.hasZ && t.hasZ && (n.z = t.z + i);
|
|
2155
|
-
}
|
|
2156
|
-
function vo(n, t) {
|
|
2157
|
-
if (!n.hasZ())
|
|
2158
|
-
return null;
|
|
2159
|
-
const e = t.vertices;
|
|
2160
|
-
let s = null;
|
|
2161
|
-
for (const i of e) {
|
|
2162
|
-
const r = n.getZ(i.pos);
|
|
2163
|
-
if (s != null && r != null && Math.abs(r - s) > 1e-6)
|
|
2164
|
-
return null;
|
|
2165
|
-
s == null && (s = r);
|
|
2166
|
-
}
|
|
2167
|
-
return s;
|
|
2168
|
-
}
|
|
2169
|
-
function $n(n) {
|
|
2170
|
-
return n;
|
|
2171
|
-
}
|
|
2172
|
-
function xo(n, t) {
|
|
2173
|
-
const e = n.x - t.x, s = n.y - t.y;
|
|
2174
|
-
return e * e + s * s;
|
|
2175
|
-
}
|
|
2176
|
-
function wa(n, t) {
|
|
2177
|
-
return Math.sqrt(xo(n, t));
|
|
2178
|
-
}
|
|
2179
|
-
function ba(n, t) {
|
|
2180
|
-
t.sort((e, s) => Re(e.targetPoint, n) - Re(s.targetPoint, n));
|
|
2181
|
-
}
|
|
2182
|
-
var Mn;
|
|
2183
|
-
function Ta({ point: n, distance: t, returnEdge: e, vertexMode: s, coordinateHelper: { spatialReference: i }, filter: r }, o, a) {
|
|
2184
|
-
return a = a != null ? a.clone() : new hi({ where: "1=1" }), r && (a.geometry = r.geometry, a.distance = r.distance, a.spatialRelationship = r.spatialRelationship, a.where = ui(a.where, r.where), a.timeExtent = pi(a.timeExtent, r.timeExtent), a.objectIds = Eo(a.objectIds, r.objectIds)), { point: Qt(n[0], n[1], n[2], i.toJSON()), mode: o, distance: t, returnEdge: e, vertexMode: s, query: a.toJSON() };
|
|
2185
|
-
}
|
|
2186
|
-
function Eo(n, t) {
|
|
2187
|
-
return n || t ? t ? n ? Array.from(di(new Set(n), new Set(t))) : t : n : null;
|
|
2188
|
-
}
|
|
2189
|
-
function Va(n, t, e) {
|
|
2190
|
-
return { left: hn(n.leftVertex.pos, t, e), right: hn(n.rightVertex.pos, t, e) };
|
|
2191
|
-
}
|
|
2192
|
-
function Aa(n) {
|
|
2193
|
-
return n.createQuery();
|
|
2194
|
-
}
|
|
2195
|
-
(function(n) {
|
|
2196
|
-
n[n.TARGET = 0] = "TARGET", n[n.REFERENCE = 1] = "REFERENCE", n[n.REFERENCE_EXTENSION = 2] = "REFERENCE_EXTENSION";
|
|
2197
|
-
})(Mn || (Mn = {}));
|
|
2198
|
-
const wn = Symbol("snapping-toggle");
|
|
2199
|
-
function La(n, t = () => {
|
|
2200
|
-
}) {
|
|
2201
|
-
const e = Ue(() => ({ view: n.view, snappingOptions: n.snappingOptions }), ({ view: s, snappingOptions: i }) => {
|
|
2202
|
-
if (n.removeHandles(wn), !s || !i)
|
|
2203
|
-
return;
|
|
2204
|
-
const r = fi.TOOL, o = [s.on("key-down", (a) => {
|
|
2205
|
-
a.key !== fn.toggle || a.repeat || (i.enabledToggled = !0, t());
|
|
2206
|
-
}, r), s.on("key-up", (a) => {
|
|
2207
|
-
a.key === fn.toggle && (i.enabledToggled = !1, t());
|
|
2208
|
-
}, r), s.on("pointer-move", (a) => {
|
|
2209
|
-
const l = a.native.ctrlKey;
|
|
2210
|
-
i.enabledToggled !== l && (i.enabledToggled = l, t());
|
|
2211
|
-
}, r)];
|
|
2212
|
-
n.addHandles(o, wn);
|
|
2213
|
-
}, Cn);
|
|
2214
|
-
n.addHandles(e);
|
|
2215
|
-
}
|
|
2216
|
-
function Ra(n) {
|
|
2217
|
-
var t;
|
|
2218
|
-
return gi(n) && "utilityNetworks" in n && !!((t = n.utilityNetworks) != null && t.length);
|
|
2219
|
-
}
|
|
2220
|
-
var bn;
|
|
2221
|
-
function Pa(n, t) {
|
|
2222
|
-
if (n == null || t == null)
|
|
2223
|
-
return;
|
|
2224
|
-
const e = $o(n, t);
|
|
2225
|
-
return e != null ? qi(e, "radians", "geographic") : void 0;
|
|
2226
|
-
}
|
|
2227
|
-
(function(n) {
|
|
2228
|
-
n.Absolute = "absolute", n.Relative = "relative", n.RelativeBilateral = "relative-bilateral";
|
|
2229
|
-
})(bn || (bn = {}));
|
|
2230
|
-
const $o = (() => {
|
|
2231
|
-
const n = g(), t = g();
|
|
2232
|
-
return (e, s) => (P(n, e.x, e.y, e.z ?? 0), P(t, s.x, s.y, s.z ?? 0), Mo(n, t, e.spatialReference, s.spatialReference));
|
|
2233
|
-
})(), Mo = (() => {
|
|
2234
|
-
const n = R(), t = g(), e = g();
|
|
2235
|
-
return (s, i, r, o) => {
|
|
2236
|
-
if (V(s, i))
|
|
2237
|
-
return;
|
|
2238
|
-
const a = Se(r), l = Se(o);
|
|
2239
|
-
if (a && l && Ze(a, l) && ae(s, r, t, a) && ae(i, o, e, l)) {
|
|
2240
|
-
const { azimuth: u } = te(bo, t, e, a);
|
|
2241
|
-
return u != null ? Bt(u, "degrees", "radians") : void 0;
|
|
2242
|
-
}
|
|
2243
|
-
n[0] = i[0] - s[0], n[1] = i[1] - s[1];
|
|
2244
|
-
let c = _i(mi, n);
|
|
2245
|
-
return n[0] < 0 && (c = To - c), c;
|
|
2246
|
-
};
|
|
2247
|
-
})(), Sa = (() => {
|
|
2248
|
-
const n = g();
|
|
2249
|
-
return (t, e, s, i, r, o = "geodesic") => {
|
|
2250
|
-
$t(n, e);
|
|
2251
|
-
const a = wo(r);
|
|
2252
|
-
if (o === "geodesic") {
|
|
2253
|
-
const p = Se(s);
|
|
2254
|
-
if (p && ae(n, s, n, p))
|
|
2255
|
-
return At(t, n, a, i, p), t[2] = e[2], !!ae(t, p, t, s);
|
|
2256
|
-
}
|
|
2257
|
-
const l = Fn(a, "geographic", "arithmetic"), c = Bt(l, "degrees", "radians"), u = e[0] + i * Math.cos(c), h = e[1] + i * Math.sin(c), d = e[2];
|
|
2258
|
-
return P(t, u, h, d), !0;
|
|
2259
|
-
};
|
|
2260
|
-
})();
|
|
2261
|
-
function wo(n) {
|
|
2262
|
-
return n != null ? Fn(Bt(n.value, n.unit, "degrees"), n.rotationType, "geographic") : void 0;
|
|
2263
|
-
}
|
|
2264
|
-
const bo = new Kt(), To = 2 * Math.PI;
|
|
2265
|
-
var Vt;
|
|
2266
|
-
(function(n) {
|
|
2267
|
-
n[n.WhenToolEditable = 0] = "WhenToolEditable", n[n.WhenToolNotEditable = 1] = "WhenToolNotEditable", n[n.Always = 2] = "Always";
|
|
2268
|
-
})(Vt || (Vt = {}));
|
|
2269
|
-
class Vo {
|
|
2270
|
-
constructor() {
|
|
2271
|
-
this._isToolEditable = !0, this._manipulators = new yi(), this._resourceContexts = { manipulator3D: {} }, this._attached = !1;
|
|
2272
|
-
}
|
|
2273
|
-
set isToolEditable(t) {
|
|
2274
|
-
this._isToolEditable = t;
|
|
2275
|
-
}
|
|
2276
|
-
get length() {
|
|
2277
|
-
return this._manipulators.length;
|
|
2278
|
-
}
|
|
2279
|
-
add(t, e = Vt.WhenToolEditable) {
|
|
2280
|
-
this.addMany([t], e);
|
|
2281
|
-
}
|
|
2282
|
-
addMany(t, e = Vt.WhenToolEditable) {
|
|
2283
|
-
for (const s of t) {
|
|
2284
|
-
const i = { manipulator: s, visibilityPredicate: e, attached: !1 };
|
|
2285
|
-
this._manipulators.add(i), this._attached && this._updateManipulatorAttachment(i);
|
|
2286
|
-
}
|
|
2287
|
-
}
|
|
2288
|
-
remove(t) {
|
|
2289
|
-
for (let e = 0; e < this._manipulators.length; e++)
|
|
2290
|
-
if (this._manipulators.at(e).manipulator === t) {
|
|
2291
|
-
const s = this._manipulators.splice(e, 1)[0];
|
|
2292
|
-
this._detachManipulator(s);
|
|
2293
|
-
break;
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
removeAll() {
|
|
2297
|
-
this._manipulators.forEach((t) => {
|
|
2298
|
-
this._detachManipulator(t);
|
|
2299
|
-
}), this._manipulators.removeAll();
|
|
2300
|
-
}
|
|
2301
|
-
attach() {
|
|
2302
|
-
this._manipulators.forEach((t) => {
|
|
2303
|
-
this._updateManipulatorAttachment(t);
|
|
2304
|
-
}), this._attached = !0;
|
|
2305
|
-
}
|
|
2306
|
-
detach() {
|
|
2307
|
-
this._manipulators.forEach((t) => {
|
|
2308
|
-
this._detachManipulator(t);
|
|
2309
|
-
}), this._attached = !1;
|
|
2310
|
-
}
|
|
2311
|
-
destroy() {
|
|
2312
|
-
this.detach(), this._manipulators.forEach(({ manipulator: t }) => t.destroy()), this._manipulators.destroy(), this._resourceContexts = null;
|
|
2313
|
-
}
|
|
2314
|
-
on(t, e) {
|
|
2315
|
-
return this._manipulators.on(t, (s) => {
|
|
2316
|
-
e(s);
|
|
2317
|
-
});
|
|
2318
|
-
}
|
|
2319
|
-
forEach(t) {
|
|
2320
|
-
for (const e of this._manipulators.items)
|
|
2321
|
-
t(e);
|
|
2322
|
-
}
|
|
2323
|
-
some(t) {
|
|
2324
|
-
return this._manipulators.items.some(t);
|
|
2325
|
-
}
|
|
2326
|
-
toArray() {
|
|
2327
|
-
const t = [];
|
|
2328
|
-
return this.forEach((e) => t.push(e.manipulator)), t;
|
|
2329
|
-
}
|
|
2330
|
-
intersect(t, e) {
|
|
2331
|
-
let s = null, i = Number.MAX_VALUE;
|
|
2332
|
-
return this._manipulators.forEach(({ manipulator: r, attached: o }) => {
|
|
2333
|
-
if (!o || !r.interactive)
|
|
2334
|
-
return;
|
|
2335
|
-
const a = r.intersectionDistance(t, e);
|
|
2336
|
-
a != null && a < i && (i = a, s = r);
|
|
2337
|
-
}), s;
|
|
2338
|
-
}
|
|
2339
|
-
_updateManipulatorAttachment(t) {
|
|
2340
|
-
this._isManipulatorItemVisible(t) ? this._attachManipulator(t) : this._detachManipulator(t);
|
|
2341
|
-
}
|
|
2342
|
-
_attachManipulator(t) {
|
|
2343
|
-
t.attached || (t.manipulator.attach && t.manipulator.attach(this._resourceContexts), t.attached = !0);
|
|
2344
|
-
}
|
|
2345
|
-
_detachManipulator(t) {
|
|
2346
|
-
if (!t.attached)
|
|
2347
|
-
return;
|
|
2348
|
-
const e = t.manipulator;
|
|
2349
|
-
e.grabbing = !1, e.dragging = !1, e.hovering = !1, e.selected = !1, e.detach && e.detach(this._resourceContexts), t.attached = !1;
|
|
2350
|
-
}
|
|
2351
|
-
_isManipulatorItemVisible(t) {
|
|
2352
|
-
return t.visibilityPredicate === Vt.Always || (this._isToolEditable ? t.visibilityPredicate === Vt.WhenToolEditable : t.visibilityPredicate === Vt.WhenToolNotEditable);
|
|
2353
|
-
}
|
|
2354
|
-
}
|
|
2355
|
-
let Z = class extends In {
|
|
2356
|
-
constructor(t) {
|
|
2357
|
-
super(t), this.manipulators = new Vo(), this.automaticManipulatorSelection = !0, this.hasGrabbedManipulators = !1, this.hasHoveredManipulators = !1, this.firstGrabbedManipulator = null, this.created = !1, this.removeIncompleteOnCancel = !0, this._editableFlags = /* @__PURE__ */ new Map([[Tt.MANAGER, !0], [Tt.USER, !0]]), this._creationFinishedResolver = vi();
|
|
2358
|
-
}
|
|
2359
|
-
get active() {
|
|
2360
|
-
return this.view != null && this.view.activeTool === this;
|
|
2361
|
-
}
|
|
2362
|
-
set visible(t) {
|
|
2363
|
-
this._get("visible") !== t && (this._set("visible", t), this._syncVisible());
|
|
2364
|
-
}
|
|
2365
|
-
get editable() {
|
|
2366
|
-
return this.getEditableFlag(Tt.USER);
|
|
2367
|
-
}
|
|
2368
|
-
set editable(t) {
|
|
2369
|
-
this.setEditableFlag(Tt.USER, t);
|
|
2370
|
-
}
|
|
2371
|
-
get updating() {
|
|
2372
|
-
return !1;
|
|
2373
|
-
}
|
|
2374
|
-
get cursor() {
|
|
2375
|
-
return null;
|
|
2376
|
-
}
|
|
2377
|
-
get hasFocusedManipulators() {
|
|
2378
|
-
return this.hasGrabbedManipulators || this.hasHoveredManipulators;
|
|
2379
|
-
}
|
|
2380
|
-
destroy() {
|
|
2381
|
-
this.manipulators.destroy(), this._set("view", null);
|
|
2382
|
-
}
|
|
2383
|
-
onAdd() {
|
|
2384
|
-
this._syncVisible();
|
|
2385
|
-
}
|
|
2386
|
-
activate() {
|
|
2387
|
-
this.view != null ? (this.view.focus(), this.onActivate()) : Dn.getLogger(this).error("Can't activate tool if view is not defined.");
|
|
2388
|
-
}
|
|
2389
|
-
deactivate() {
|
|
2390
|
-
this.onDeactivate();
|
|
2391
|
-
}
|
|
2392
|
-
handleInputEvent(t) {
|
|
2393
|
-
this.onInputEvent(t);
|
|
2394
|
-
}
|
|
2395
|
-
handleInputEventAfter(t) {
|
|
2396
|
-
this.onInputEventAfter(t);
|
|
2397
|
-
}
|
|
2398
|
-
setEditableFlag(t, e) {
|
|
2399
|
-
this._editableFlags.set(t, e), this.manipulators.isToolEditable = this.internallyEditable, this._updateManipulatorAttachment(), t === Tt.USER && this.notifyChange("editable"), this.onEditableChange(), this.onManipulatorSelectionChanged();
|
|
2400
|
-
}
|
|
2401
|
-
getEditableFlag(t) {
|
|
2402
|
-
return this._editableFlags.get(t) ?? !1;
|
|
2403
|
-
}
|
|
2404
|
-
whenCreated() {
|
|
2405
|
-
return this._creationFinishedResolver.promise;
|
|
2406
|
-
}
|
|
2407
|
-
onManipulatorSelectionChanged() {
|
|
2408
|
-
}
|
|
2409
|
-
onActivate() {
|
|
2410
|
-
}
|
|
2411
|
-
onDeactivate() {
|
|
2412
|
-
}
|
|
2413
|
-
onShow() {
|
|
2414
|
-
}
|
|
2415
|
-
onHide() {
|
|
2416
|
-
}
|
|
2417
|
-
onEditableChange() {
|
|
2418
|
-
}
|
|
2419
|
-
onInputEvent(t) {
|
|
2420
|
-
}
|
|
2421
|
-
onInputEventAfter(t) {
|
|
2422
|
-
}
|
|
2423
|
-
get internallyEditable() {
|
|
2424
|
-
return this.getEditableFlag(Tt.USER) && this.getEditableFlag(Tt.MANAGER);
|
|
2425
|
-
}
|
|
2426
|
-
finishToolCreation() {
|
|
2427
|
-
this.created || this._creationFinishedResolver.resolve(this), this._set("created", !0);
|
|
2428
|
-
}
|
|
2429
|
-
_syncVisible() {
|
|
2430
|
-
if (this.initialized) {
|
|
2431
|
-
if (this.visible)
|
|
2432
|
-
this._show();
|
|
2433
|
-
else if (this._hide(), this.active)
|
|
2434
|
-
return void (this.view.activeTool = null);
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
_show() {
|
|
2438
|
-
this._updateManipulatorAttachment(), this.onShow();
|
|
2439
|
-
}
|
|
2440
|
-
_hide() {
|
|
2441
|
-
this._updateManipulatorAttachment(), this.onHide();
|
|
2442
|
-
}
|
|
2443
|
-
_updateManipulatorAttachment() {
|
|
2444
|
-
this.visible ? this.manipulators.attach() : this.manipulators.detach();
|
|
2445
|
-
}
|
|
2446
|
-
};
|
|
2447
|
-
f([_({ constructOnly: !0 })], Z.prototype, "view", void 0), f([_({ readOnly: !0 })], Z.prototype, "active", null), f([_({ value: !0 })], Z.prototype, "visible", null), f([_({ value: !0 })], Z.prototype, "editable", null), f([_({ readOnly: !0 })], Z.prototype, "manipulators", void 0), f([_({ readOnly: !0 })], Z.prototype, "updating", null), f([_()], Z.prototype, "cursor", null), f([_({ readOnly: !0 })], Z.prototype, "automaticManipulatorSelection", void 0), f([_()], Z.prototype, "hasFocusedManipulators", null), f([_()], Z.prototype, "hasGrabbedManipulators", void 0), f([_()], Z.prototype, "hasHoveredManipulators", void 0), f([_()], Z.prototype, "firstGrabbedManipulator", void 0), f([_({ readOnly: !0 })], Z.prototype, "created", void 0), f([_({ readOnly: !0 })], Z.prototype, "removeIncompleteOnCancel", void 0), Z = f([It("esri.views.interactive.InteractiveToolBase")], Z);
|
|
2448
|
-
let yt = class extends In {
|
|
2449
|
-
constructor(t) {
|
|
2450
|
-
super(t), this.tool = null, this._loggedUnsupportedErrorOnce = !1, this.logger = Dn.getLogger(this), (t == null ? void 0 : t.visible) != null && (this.visible = t.visible);
|
|
2451
|
-
}
|
|
2452
|
-
initialize() {
|
|
2453
|
-
this.addHandles(Ue(() => ({ ready: this.view != null && this.view.ready, supported: this.supported }), ({ ready: t, supported: e }) => {
|
|
2454
|
-
!t || e || this._loggedUnsupportedErrorOnce || (this.logError(this.unsupportedErrorMessage), this._loggedUnsupportedErrorOnce = !0);
|
|
2455
|
-
}, Cn));
|
|
2456
|
-
}
|
|
2457
|
-
destroy() {
|
|
2458
|
-
this.removeTool(), this.view = null;
|
|
2459
|
-
}
|
|
2460
|
-
get active() {
|
|
2461
|
-
return this.tool != null && this.tool.active;
|
|
2462
|
-
}
|
|
2463
|
-
get disabled() {
|
|
2464
|
-
return this.view == null || !this.view.ready || !this.supported;
|
|
2465
|
-
}
|
|
2466
|
-
get supported() {
|
|
2467
|
-
return this.view == null || this.view.type === this.supportedViewType;
|
|
2468
|
-
}
|
|
2469
|
-
get view() {
|
|
2470
|
-
return this._get("view");
|
|
2471
|
-
}
|
|
2472
|
-
set view(t) {
|
|
2473
|
-
if (t === this.view)
|
|
2474
|
-
return;
|
|
2475
|
-
this.removeTool(), this._set("view", t);
|
|
2476
|
-
const e = "tools";
|
|
2477
|
-
this.removeHandles(e), t != null && this.addHandles(t.tools.on("after-remove", (s) => {
|
|
2478
|
-
s.item === this.tool && this._set("tool", null);
|
|
2479
|
-
}), e);
|
|
2480
|
-
}
|
|
2481
|
-
set visible(t) {
|
|
2482
|
-
this._set("visible", t), this.tool != null && (this.tool.visible = t);
|
|
2483
|
-
}
|
|
2484
|
-
createTool(t = { interactive: !1 }) {
|
|
2485
|
-
if (this.removeTool(), this.view == null || !this.view.ready || !this.supported)
|
|
2486
|
-
return;
|
|
2487
|
-
const e = this.constructTool();
|
|
2488
|
-
e.created ? (this._set("tool", e), this.view.tools.add(e)) : t.interactive ? (this._set("tool", e), this.view.addAndActivateTool(e), xi(() => e.created, () => {
|
|
2489
|
-
e.active && this.view != null && (this.view.activeTool = null);
|
|
2490
|
-
}, { initial: !0, once: !0 })) : e.destroy();
|
|
2491
|
-
}
|
|
2492
|
-
removeTool() {
|
|
2493
|
-
var s;
|
|
2494
|
-
const t = this.tool;
|
|
2495
|
-
if (t == null)
|
|
2496
|
-
return;
|
|
2497
|
-
const e = (s = this.view) == null ? void 0 : s.tools;
|
|
2498
|
-
e != null ? e.remove(t) : t.destroy(), this._set("tool", null);
|
|
2499
|
-
}
|
|
2500
|
-
logError(...t) {
|
|
2501
|
-
this.logger.error(...t);
|
|
2502
|
-
}
|
|
2503
|
-
};
|
|
2504
|
-
f([_({ constructOnly: !0 })], yt.prototype, "tool", void 0), f([_()], yt.prototype, "active", null), f([_()], yt.prototype, "disabled", null), f([_()], yt.prototype, "supported", null), f([_({ value: null })], yt.prototype, "view", null), f([_({ type: Boolean, value: !0 })], yt.prototype, "visible", null), yt = f([It("esri.widgets.support.InteractiveToolViewModel")], yt);
|
|
2505
|
-
const Ve = "esri-unit-select", Ae = { base: Ve, label: `${Ve}__label`, select: `${Ve}__select` };
|
|
2506
|
-
let xt = class extends Zn {
|
|
2507
|
-
constructor(n, t) {
|
|
2508
|
-
super(n, t), this._onSelectChange = (e) => {
|
|
2509
|
-
this.onChange(e.target.value);
|
|
2510
|
-
};
|
|
2511
|
-
}
|
|
2512
|
-
loadDependencies() {
|
|
2513
|
-
return On({ label: () => import("./calcite-label-5daa57c6.js"), option: () => import("./calcite-option-5ea94a2a.js"), select: () => import("./calcite-select-a936a6d4.js") });
|
|
2514
|
-
}
|
|
2515
|
-
render() {
|
|
2516
|
-
const { messages: n, options: t, selectLabel: e, value: s, _onSelectChange: i } = this;
|
|
2517
|
-
return N("div", { class: Ae.base, key: "units" }, N("calcite-label", { class: Ae.label }, e, N("calcite-select", { class: Ae.select, label: e, onCalciteSelectChange: i }, t.map((r) => {
|
|
2518
|
-
var o;
|
|
2519
|
-
return N("calcite-option", { key: r, selected: r === s, value: r }, $i(r) ? n.systems[r] : (o = n.units[r]) == null ? void 0 : o.pluralCapitalized);
|
|
2520
|
-
}))));
|
|
2521
|
-
}
|
|
2522
|
-
};
|
|
2523
|
-
f([_()], xt.prototype, "options", void 0), f([_()], xt.prototype, "onChange", void 0), f([_()], xt.prototype, "selectLabel", void 0), f([_()], xt.prototype, "value", void 0), f([_(), Ei("esri/core/t9n/Units")], xt.prototype, "messages", void 0), xt = f([It("esri.widgets.support.UnitSelect")], xt);
|
|
2524
|
-
const B = "esri-measurement-widget-content", K = { base: B, actions: `${B}__actions`, error: `${B}__error`, hint: `${B}__hint`, hintText: `${B}__hint-text`, panelError: `${B}__panel--error`, settings: `${B}__settings`, measurement: `${B}__measurement`, measurementItem: `${B}__measurement-item`, measurementItemDisabled: `${B}__measurement-item--disabled`, measurementItemTitle: `${B}__measurement-item__title`, measurementItemValue: `${B}__measurement-item__value` };
|
|
2525
|
-
let J = class extends Zn {
|
|
2526
|
-
constructor(n, t) {
|
|
2527
|
-
super(n, t);
|
|
2528
|
-
}
|
|
2529
|
-
loadDependencies() {
|
|
2530
|
-
return On({ button: () => import("./calcite-button-13172f9c.js") });
|
|
2531
|
-
}
|
|
2532
|
-
render() {
|
|
2533
|
-
return N("div", { class: K.base }, this._renderContent());
|
|
2534
|
-
}
|
|
2535
|
-
_renderContent() {
|
|
2536
|
-
const { supported: n, active: t, state: e } = this;
|
|
2537
|
-
switch (e) {
|
|
2538
|
-
case "disabled":
|
|
2539
|
-
case "ready":
|
|
2540
|
-
return n ? t ? this._renderHint() : this._renderActions() : this._renderUnsupportedMessage();
|
|
2541
|
-
case "measuring":
|
|
2542
|
-
case "measured":
|
|
2543
|
-
return [this._renderSettings(), this._renderMeasurement(), this._renderActions()];
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
|
-
_renderUnsupportedMessage() {
|
|
2547
|
-
return N("section", { class: K.error, key: "unsupported" }, N("p", null, this.messages.unsupported));
|
|
2548
|
-
}
|
|
2549
|
-
_renderHint() {
|
|
2550
|
-
const { messages: n } = this;
|
|
2551
|
-
return N("section", { class: K.hint, key: "hint" }, N("p", { class: K.hintText }, n.hint));
|
|
2552
|
-
}
|
|
2553
|
-
_renderSettings() {
|
|
2554
|
-
return N("div", { class: K.settings, key: "settings" }, N(xt, { options: this.unitOptions, selectLabel: this.messages.unit, value: this.unit, onChange: this.onUnitChange }));
|
|
2555
|
-
}
|
|
2556
|
-
_renderMeasurement() {
|
|
2557
|
-
return N("section", { class: K.measurement, key: "measurement" }, this.measurementItems.map((n) => this._renderMeasurementItem(n)));
|
|
2558
|
-
}
|
|
2559
|
-
_renderMeasurementItem({ key: n, title: t, value: e }) {
|
|
2560
|
-
return N("div", { class: this.classes(K.measurementItem, e == null && K.measurementItemDisabled), key: n }, N("span", { class: K.measurementItemTitle }, t), N("span", { "aria-live": "polite", class: K.measurementItemValue }, e ?? this.messages.notApplicable));
|
|
2561
|
-
}
|
|
2562
|
-
_renderActions() {
|
|
2563
|
-
const { messages: n } = this;
|
|
2564
|
-
return N("div", { class: K.actions }, N("calcite-button", { class: this.newMeasurementButtonClass, disabled: this.state === "disabled", onclick: this.onNewMeasurementClick }, n.newMeasurement));
|
|
2565
|
-
}
|
|
2566
|
-
};
|
|
2567
|
-
f([_()], J.prototype, "active", void 0), f([_()], J.prototype, "measurementItems", void 0), f([_()], J.prototype, "messages", void 0), f([_()], J.prototype, "newMeasurementButtonClass", void 0), f([_()], J.prototype, "onNewMeasurementClick", void 0), f([_()], J.prototype, "onUnitChange", void 0), f([_()], J.prototype, "state", void 0), f([_()], J.prototype, "supported", void 0), f([_()], J.prototype, "unit", void 0), f([_()], J.prototype, "unitOptions", void 0), J = f([It("esri.widgets.support.MeasurementWidgetContent")], J);
|
|
2568
|
-
export {
|
|
2569
|
-
Xi as $,
|
|
2570
|
-
da as A,
|
|
2571
|
-
Yi as B,
|
|
2572
|
-
jo as C,
|
|
2573
|
-
Ur as D,
|
|
2574
|
-
wo as E,
|
|
2575
|
-
bn as F,
|
|
2576
|
-
en as G,
|
|
2577
|
-
Sa as H,
|
|
2578
|
-
Ea as I,
|
|
2579
|
-
Pa as J,
|
|
2580
|
-
tt as K,
|
|
2581
|
-
Hi as L,
|
|
2582
|
-
va as M,
|
|
2583
|
-
La as N,
|
|
2584
|
-
Do as O,
|
|
2585
|
-
nr as P,
|
|
2586
|
-
Zo as Q,
|
|
2587
|
-
ji as R,
|
|
2588
|
-
ma as S,
|
|
2589
|
-
Hr as T,
|
|
2590
|
-
Yr as U,
|
|
2591
|
-
ss as V,
|
|
2592
|
-
ga as W,
|
|
2593
|
-
Ji as X,
|
|
2594
|
-
Go as Y,
|
|
2595
|
-
xa as Z,
|
|
2596
|
-
Mn as _,
|
|
2597
|
-
Oo as a,
|
|
2598
|
-
zt as a0,
|
|
2599
|
-
Tr as a1,
|
|
2600
|
-
Xr as a2,
|
|
2601
|
-
vs as a3,
|
|
2602
|
-
Fe as a4,
|
|
2603
|
-
hn as a5,
|
|
2604
|
-
wa as a6,
|
|
2605
|
-
xo as a7,
|
|
2606
|
-
$a as a8,
|
|
2607
|
-
te as a9,
|
|
2608
|
-
Kt as aa,
|
|
2609
|
-
Va as ab,
|
|
2610
|
-
Mo as ac,
|
|
2611
|
-
ps as ad,
|
|
2612
|
-
w as ae,
|
|
2613
|
-
Qi as af,
|
|
2614
|
-
ca as ag,
|
|
2615
|
-
ha as ah,
|
|
2616
|
-
Bi as ai,
|
|
2617
|
-
ya as b,
|
|
2618
|
-
Ho as c,
|
|
2619
|
-
br as d,
|
|
2620
|
-
xr as e,
|
|
2621
|
-
ba as f,
|
|
2622
|
-
rr as g,
|
|
2623
|
-
Ma as h,
|
|
2624
|
-
Vo as i,
|
|
2625
|
-
Aa as j,
|
|
2626
|
-
Ra as k,
|
|
2627
|
-
Z as l,
|
|
2628
|
-
se as m,
|
|
2629
|
-
Ki as n,
|
|
2630
|
-
Fo as o,
|
|
2631
|
-
yt as p,
|
|
2632
|
-
Wo as q,
|
|
2633
|
-
Jo as r,
|
|
2634
|
-
St as s,
|
|
2635
|
-
fa as t,
|
|
2636
|
-
J as u,
|
|
2637
|
-
Uo as v,
|
|
2638
|
-
fe as w,
|
|
2639
|
-
_a as x,
|
|
2640
|
-
Ta as y,
|
|
2641
|
-
Me as z
|
|
2642
|
-
};
|