@agrotools1/at-components 0.2.0 → 0.2.2
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-98a4c8a4.js +109 -0
- package/dist/APIKeyMixin-9511e0a5.js +19 -0
- package/dist/Analysis-4b1d1fb5.js +31 -0
- package/dist/ArcGISCachedService-93e2cb27.js +47 -0
- package/dist/ArcGISService-3f8d89c1.js +25 -0
- package/dist/AreaMeasurement2D-e0bb230c.js +405 -0
- package/dist/AreaMeasurement3D-a9959ecf.js +488 -0
- package/dist/AttachmentInfo-601c56e2.js +34 -0
- package/dist/AttachmentQuery-3504d550.js +18 -0
- package/dist/AttributeStore-b90878e3.js +1707 -0
- package/dist/BaseDynamicLayerView2D-b2faf028.js +63 -0
- package/dist/BindType-5e76c8e1.js +7 -0
- package/dist/BingMapsLayer-5d79fe2b.js +112 -0
- package/dist/Bitmap-f775c851.js +128 -0
- package/dist/BitmapContainer-af5942b8.js +23 -0
- package/dist/BlendLayer-a792edf6.js +13 -0
- package/dist/BoundsStore-789624df.js +63 -0
- package/dist/BufferObject-cbd0168e.js +100 -0
- package/dist/BufferView-004ad517.js +683 -0
- package/dist/BuildingSceneLayer-25bc760b.js +535 -0
- package/dist/Button/Button.d.ts +24 -2
- package/dist/Button-70963624.js +36 -0
- package/dist/ByteSizeUnit-90df2840.js +7 -0
- package/dist/CSVLayer-fd3b6750.js +208 -0
- package/dist/CSVSourceWorker-eb24cd85.js +367 -0
- package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +66 -0
- package/dist/CatalogFootprintLayerView2D-6eb16597.js +76 -0
- package/dist/CatalogLayer-1cc632fe.js +262 -0
- package/dist/CatalogLayerView2D-d143aa34.js +52 -0
- package/dist/Chips/index.d.ts +1 -0
- package/dist/CircularArray-b2bc1dfd.js +40 -0
- package/dist/ClassBreaksDefinition-07ba0c64.js +18 -0
- package/dist/ColorMaterial.glsl-e7801766.js +64 -0
- package/dist/ColorSet-df5696b5.js +45 -0
- package/dist/ColorStop-7187f368.js +29 -0
- package/dist/Container-ac97765a.js +521 -0
- package/dist/CustomParametersMixin-b3432b3e.js +12 -0
- package/dist/DatePicker/DatePicker.helper.d.ts +22 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.d.ts +18 -0
- package/dist/DatePicker/index.d.ts +2 -0
- package/dist/DefaultMaterial.glsl-3cc4efe7.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +653 -0
- package/dist/DefaultTheme-12dffc66.js +130 -0
- package/dist/DeleteForwardEditsParameters-ae76d898.js +18 -0
- package/dist/DimensionLayer-9eb47c76.js +129 -0
- package/dist/DirectLineMeasurement3D-e9903136.js +449 -0
- package/dist/DistanceMeasurement2D-a4853462.js +303 -0
- package/dist/DoubleArray-5076283e.js +25 -0
- package/dist/EdgeProcessingWorker-c1783ddd.js +63 -0
- package/dist/EditBusLayer-e812f4c9.js +107 -0
- package/dist/ElevationInfo-fad03d5e.js +56 -0
- package/dist/ElevationLayer-397792d5.js +129 -0
- package/dist/ElevationQuery-beceb62f.js +598 -0
- package/dist/ElevationSamplerWorker-0048a204.js +62 -0
- package/dist/ExportImageParameters-c6c4bc61.js +66 -0
- package/dist/ExportStrategy-908f5b8d.js +93 -0
- package/dist/ExportWMSImageParameters-34da6b46.js +33 -0
- package/dist/External-14daf0c1.js +110 -0
- package/dist/FeatureCollectionSnappingSource-f97a1829.js +130 -0
- package/dist/FeatureCommandQueue-d4817eac.js +1244 -0
- package/dist/FeatureEffect-08976bbd.js +39 -0
- package/dist/FeatureEffectLayer-05c258f4.js +13 -0
- package/dist/FeatureFilter-8c5e44b1.js +27 -0
- package/dist/FeatureLayer-d3659466.js +693 -0
- package/dist/FeatureLayerBase-9b63f732.js +148 -0
- package/dist/FeatureLayerSource-960f1c01.js +444 -0
- package/dist/FeatureLayerView2D-7503e1ed.js +1967 -0
- package/dist/FeaturePipelineWorker-d4301d2a.js +3633 -0
- package/dist/FeatureReductionLayer-e6cf73ac.js +225 -0
- package/dist/FeatureReductionSelection-d90249a7.js +22 -0
- package/dist/FeatureServiceSnappingSource-9e49ca72.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +747 -0
- package/dist/FeatureSet-d79f0e48.js +188 -0
- package/dist/FeatureStore-eb4b87c0.js +131 -0
- package/dist/FeatureTemplate-edb1b782.js +12 -0
- package/dist/FeatureType-bba29adb.js +25 -0
- package/dist/FieldsIndex-75cca4d0.js +109 -0
- package/dist/FormTemplate-22911c47.js +350 -0
- package/dist/GeoJSONLayer-b33c96b8.js +236 -0
- package/dist/GeoJSONSourceWorker-b04ff552.js +247 -0
- package/dist/GeoRSSLayer-6e5fcd0e.js +73 -0
- package/dist/GeoRSSLayerView2D-21b6b12e.js +140 -0
- package/dist/GeometryUtils-fa897cbd.js +403 -0
- package/dist/GraphicContainer-1fd6bfce.js +26 -0
- package/dist/GraphicManipulator-f3b7dc9b.js +1499 -0
- package/dist/GraphicsLayer-e0686779.js +38 -0
- package/dist/GraphicsLayerView2D-a7eba2fe.js +114 -0
- package/dist/GraphicsSnappingSource-594f402a.js +273 -0
- package/dist/GraphicsView2D-347562b8.js +620 -0
- package/dist/GroupLayer-7ae0a916.js +147 -0
- package/dist/GroupLayerView2D-ffcde606.js +98 -0
- package/dist/HUDMaterial.glsl-b0a3e0ce.js +65 -0
- package/dist/HighlightCounter-e18f0179.js +41 -0
- package/dist/HighlightGraphicContainer-fd774cea.js +18 -0
- package/dist/I3SBinaryReader-190e99de.js +310 -0
- package/dist/I3SLayerDefinitions-6ddaca60.js +55 -0
- package/dist/I3SUtil-44b83dc0.js +59 -0
- package/dist/IdentityManager-fbe91c13.js +899 -0
- package/dist/ImageHistogramParameters-d64fd9c8.js +905 -0
- package/dist/ImageryLayer-67878a78.js +1799 -0
- package/dist/ImageryLayerView2D-ae45faba.js +352 -0
- package/dist/ImageryTileLayer-9dca8b93.js +2157 -0
- package/dist/ImageryTileLayerView2D-977f66aa.js +1110 -0
- package/dist/ImmutableArray-fb7b7a6a.js +20 -0
- package/dist/Indices-e6dc3b15.js +67 -0
- package/dist/Input/Input.core.d.ts +37 -11
- package/dist/Input/index.d.ts +37 -11
- package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +112 -0
- package/dist/IntegratedMeshLayer-9162c0b5.js +141 -0
- package/dist/InteractiveAnalysisViewModel-b046fcb9.js +7397 -0
- package/dist/InterleavedLayout-32973c8a.js +163 -0
- package/dist/KMLLayer-80f81df7.js +162 -0
- package/dist/KMLLayerView2D-b6ba3b80.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +43 -0
- package/dist/LRUCache-27e8c401.js +32 -0
- package/dist/LabelClass-d9a476d6.js +135 -0
- package/dist/LabelMetric-e2728bbf.js +400 -0
- package/dist/LaserlinePath.glsl-60d00e61.js +64 -0
- package/dist/Laserlines.glsl-499a6cbf.js +65 -0
- package/dist/LayerFloorInfo-d05cf9dd.js +15 -0
- package/dist/LayerView-036988a9.js +206 -0
- package/dist/LercWorker-b1b4bb47.js +157 -0
- package/dist/LineOfSightLayer-9a9a60b7.js +147 -0
- package/dist/LinkChartLayer-d61803bb.js +1027 -0
- package/dist/Lyr3DWorker-87be14e0.js +82 -0
- package/dist/MD5-1b5ec1c3.js +76 -0
- package/dist/MagnifierPrograms-da7a27ab.js +806 -0
- package/dist/Map/Map.d.ts +26 -0
- package/dist/Map/index.d.ts +1 -0
- package/dist/Map/types/index.d.ts +38 -0
- package/dist/Map/utils/index.d.ts +24 -0
- package/dist/MapImageLayer-f07adf1a.js +169 -0
- package/dist/MapImageLayerView2D-d1b140c3.js +146 -0
- package/dist/MapNotesLayer-c662d147.js +283 -0
- package/dist/MapNotesLayerView2D-bf9ac698.js +161 -0
- package/dist/MapServiceLayerViewHelper-fb724de9.js +288 -0
- package/dist/MeasurementWidgetContent-e4888ef2.js +2642 -0
- package/dist/MediaLayer-36d873a3.js +523 -0
- package/dist/MediaLayerView2D-e58b8ec0.js +332 -0
- package/dist/MemCache-a9232ec2.js +227 -0
- package/dist/MemorySourceWorker-20ff27d6.js +222 -0
- package/dist/Mesh-3839826a.js +980 -0
- package/dist/MeshLocalVertexSpace-00151564.js +19 -0
- package/dist/MultiOriginJSONSupport-bb258670.js +158 -0
- package/dist/NestedMap-83f8e815.js +29 -0
- package/dist/OGCFeatureLayer-2a8b7ecc.js +211 -0
- package/dist/OGCFeatureLayerView2D-185f9649.js +82 -0
- package/dist/ObjectStack-10d91171.js +21 -0
- package/dist/Octree-78797046.js +495 -0
- package/dist/OpenStreetMapLayer-b0a17790.js +30 -0
- package/dist/OperationalLayer-55af27d6.js +44 -0
- package/dist/OptimizedFeatureSet-54e095c4.js +12 -0
- package/dist/OptimizedGeometry-3b808152.js +68 -0
- package/dist/OrderByInfo-22e3c805.js +16 -0
- package/dist/OrderIndependentTransparency-3eadfe42.js +214 -0
- package/dist/OrderedLayer-1403a591.js +26 -0
- package/dist/OrientedImageryLayer-8ec8d7d1.js +216 -0
- package/dist/OverlayCompositing.glsl-ba3bd81d.js +65 -0
- package/dist/OverrideHelper-82325a2c.js +242 -0
- package/dist/PBFDecoderWorker-f6517afc.js +213 -0
- package/dist/PointCloudLayer-cff43a10.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-f337a895.js +115 -0
- package/dist/PointCloudWorker-cdb28dc1.js +212 -0
- package/dist/PooledRBush-ee4e60af.js +272 -0
- package/dist/Popup-c7f55588.js +3990 -0
- package/dist/PortalLayer-07b3c53e.js +126 -0
- package/dist/Program-ba2f18b2.js +694 -0
- package/dist/ProgramTemplate-eee4f097.js +35 -0
- package/dist/ProgressBar/ProgressBar.d.ts +0 -13
- package/dist/QueryEngine-10c97624.js +896 -0
- package/dist/QueryEngineCapabilities-0d8477a2.js +4 -0
- package/dist/QueryTask-115430b6.js +119 -0
- package/dist/RasterSymbolizer-fbf433fe.js +3024 -0
- package/dist/RasterVFDisplayObject-20b0dd86.js +581 -0
- package/dist/RasterWorker-44c37e20.js +78 -0
- package/dist/RawBlockCache-25203dbd.js +185 -0
- package/dist/RealisticTree.glsl-bc07c4dc.js +42 -0
- package/dist/Rect-894f011c.js +14 -0
- package/dist/RefreshableLayer-9550b85a.js +80 -0
- package/dist/RefreshableLayerView-601f7038.js +16 -0
- package/dist/Relationship-c662830e.js +64 -0
- package/dist/RelationshipQuery-765f068e.js +22 -0
- package/dist/RenderState-b244097f.js +7 -0
- package/dist/RenderingContext-3db74548.js +889 -0
- package/dist/RibbonLine.glsl-c6a715b7.js +65 -0
- package/dist/RouteLayer-3f5411f3.js +786 -0
- package/dist/RouteLayerView2D-a5fd4cbf.js +195 -0
- package/dist/SDFHelper-a34e90ee.js +140 -0
- package/dist/SSAO.glsl-5491a708.js +43 -0
- package/dist/SSAOBlur.glsl-f3068b8e.js +42 -0
- package/dist/ScaleRangeLayer-7ddf00b4.js +21 -0
- package/dist/SceneLayer-c594bfc3.js +542 -0
- package/dist/SceneLayerSnappingSource-a0504ac7.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +112 -0
- package/dist/SceneLayerWorker-1865768e.js +164 -0
- package/dist/SceneService-fb9f0142.js +215 -0
- package/dist/Scheduler-eacc84bb.js +373 -0
- package/dist/Select/Item/Item.d.ts +2 -1
- package/dist/Select/{Select.multiple.d.ts → Multiple/Select.multiple.d.ts} +26 -16
- package/dist/Select/Select.core.d.ts +18 -15
- package/dist/Select/{Select.single.d.ts → Single/Select.single.d.ts} +23 -14
- package/dist/Select/index.d.ts +42 -24
- package/dist/ShadedColorMaterial.glsl-db97956b.js +64 -0
- package/dist/SnappingOperation-9622a00d.js +48 -0
- package/dist/SourceLayerData-7016f1a5.js +116 -0
- package/dist/SpatialFilter-d20d4f50.js +1701 -0
- package/dist/Stop-68022e32.js +281 -0
- package/dist/StreamLayer-7c837e3d.js +188 -0
- package/dist/StreamLayerView2D-586f5a6a.js +164 -0
- package/dist/StyleDefinition-f4862d5a.js +36 -0
- package/dist/StyleRepository-fba75e70.js +2212 -0
- package/dist/SublayersOwner-3dc574cd.js +545 -0
- package/dist/SubtypeGroupLayer-1f9c5398.js +514 -0
- package/dist/SubtypeGroupLayerView2D-0f108d9d.js +84 -0
- package/dist/Tabs/Tab/Tab.d.ts +3 -3
- package/dist/TechniqueInstance-0481dbff.js +233 -0
- package/dist/TemporalLayer-8116b4a4.js +23 -0
- package/dist/Texture-22a8cca5.js +501 -0
- package/dist/TextureOnly.glsl-458f8148.js +65 -0
- package/dist/Theme-f05b8eb0.js +3426 -0
- package/dist/Tick-aef93b48.js +723 -0
- package/dist/TileContainer-0bf0ea1b.js +31 -0
- package/dist/TileInfoTilemapCache-d78858c0.js +38 -0
- package/dist/TileLayer-0edee064.js +194 -0
- package/dist/TileLayerView2D-78d5801b.js +187 -0
- package/dist/TilemapCache-79699d61.js +189 -0
- package/dist/TimeInfo-40c96ade.js +42 -0
- package/dist/TimeOnly-9ee66ca6.js +706 -0
- package/dist/Tooltip-e7498dc9.js +138 -0
- package/dist/TopFeaturesQuery-ad224e01.js +32 -0
- package/dist/TurboLine-6ab04aef.js +565 -0
- package/dist/UniqueValueRenderer-eaa5f8a6.js +1039 -0
- package/dist/UnknownLayer-e280ddd4.js +30 -0
- package/dist/UnknownTimeZone-220952b5.js +15 -0
- package/dist/UnsupportedLayer-447f7676.js +31 -0
- package/dist/UpdateTracking2D-e9adad8f.js +8566 -0
- package/dist/Util-002f5109.js +57 -0
- package/dist/VectorTileLayer-3210be81.js +544 -0
- package/dist/VectorTileLayerView2D-6a51e3b8.js +2108 -0
- package/dist/Version-3de8cbca.js +33 -0
- package/dist/VertexArrayObject-07998745.js +73 -0
- package/dist/VertexAttribute-faad30bf.js +11 -0
- package/dist/VertexColor.glsl-e415cf02.js +2683 -0
- package/dist/VertexElementDescriptor-d7c718c2.js +8 -0
- package/dist/VertexSnappingCandidate-b676241f.js +13 -0
- package/dist/VideoLayerView2D-f659dd0d.js +124 -0
- package/dist/VoxelLayer-003f82ff.js +631 -0
- package/dist/WFSLayer-3da6c5f7.js +221 -0
- package/dist/WFSSourceWorker-9a11693a.js +157 -0
- package/dist/WGLContainer-3d159b63.js +5426 -0
- package/dist/WMSLayer-fc0632f8.js +536 -0
- package/dist/WMSLayerView2D-54e80e1b.js +117 -0
- package/dist/WMTSLayer-9324b12b.js +531 -0
- package/dist/WMTSLayerView2D-3ef936db.js +142 -0
- package/dist/WebTileLayer-45c563ff.js +110 -0
- package/dist/WhereClause-7a28b740.js +2766 -0
- package/dist/WorkerHandle-0d54a6c7.js +47 -0
- package/dist/WorkerTileHandler-786c2b24.js +1539 -0
- package/dist/action-163397e3.js +198 -0
- package/dist/action-group-4859fb97.js +145 -0
- package/dist/action-menu-2d70b2fc.js +1759 -0
- package/dist/agrotools-theme.css.map +1 -1
- package/dist/apng-9b71d52c.js +392 -0
- package/dist/ar-a17f8064.js +18 -0
- package/dist/arcade-fa309282.js +229 -0
- package/dist/arcadeAsyncRuntime-738498fd.js +943 -0
- package/dist/arcadeUtils-f71d80fa.js +8741 -0
- package/dist/arcgis-knowledge-client-core-6056bcea.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +1218 -0
- package/dist/arcgisLayers-b2b878bd.js +152 -0
- package/dist/associatedFeatureServiceUtils-df5b5187.js +92 -0
- package/dist/axisAngleDegrees-32643b7c.js +49 -0
- package/dist/basicInterfaces-fa4f5fa7.js +30 -0
- package/dist/basis_transcoder-3187cc92.js +1248 -0
- package/dist/bg_BG-9950a70b.js +18 -0
- package/dist/bs_BA-60482871.js +18 -0
- package/dist/ca_ES-a121088e.js +18 -0
- package/dist/calcite-action-bar-5a87c23c.js +303 -0
- package/dist/calcite-action-ee2ca847.js +22 -0
- package/dist/calcite-action-group-19aa86ee.js +28 -0
- package/dist/calcite-button-8e9175c0.js +228 -0
- package/dist/calcite-flow-57d26d2d.js +128 -0
- package/dist/calcite-flow-item-4a3e3fc0.js +499 -0
- package/dist/calcite-icon-d99e280a.js +16 -0
- package/dist/calcite-input-28b20785.js +24 -0
- package/dist/calcite-label-4f30e08d.js +79 -0
- package/dist/calcite-list-0cee7628.js +2135 -0
- package/dist/calcite-list-item-0a19efa8.js +576 -0
- package/dist/calcite-list-item-group-0706662f.js +71 -0
- package/dist/calcite-loader-865045b1.js +14 -0
- package/dist/calcite-modal-3e4da6fd.js +333 -0
- package/dist/calcite-notice-50b74ab7.js +181 -0
- package/dist/calcite-option-713c1d40.js +94 -0
- package/dist/calcite-scrim-809fbd0b.js +18 -0
- package/dist/calcite-select-28d8edfc.js +231 -0
- package/dist/capabilities-c8f838be.js +50 -0
- package/dist/chartCommon-13718cda.js +256 -0
- package/dist/chartUtilsAm5-6be145fb.js +2954 -0
- package/dist/clientSideDefaults-5c1f97c9.js +39 -0
- package/dist/colorRamps-8792655e.js +38 -0
- package/dist/colorUtils-54f4b662.js +164 -0
- package/dist/commonProperties-f9559903.js +60 -0
- package/dist/component-51a10bc0.js +18 -0
- package/dist/computeTranslationToOriginAndRotation-4876cb93.js +60 -0
- package/dist/conditionalSlot-87175989.js +27 -0
- package/dist/config-61215215.js +7 -0
- package/dist/constants-5bd557fe.js +5 -0
- package/dist/createConnection-f974a00a.js +299 -0
- package/dist/crsUtils-59933b10.js +7 -0
- package/dist/cs_CZ-1b968650.js +18 -0
- package/dist/da_DK-e0fe1642.js +18 -0
- package/dist/dataUtils-7c276b73.js +1421 -0
- package/dist/date-1c28c6a5.js +52 -0
- package/dist/de_CH-b0dbd4c8.js +6 -0
- package/dist/de_DE-8609ef65.js +6 -0
- package/dist/debounce-de27a42a.js +121 -0
- package/dist/deduplicate-59fb9cac.js +89 -0
- package/dist/defaults-2bfa4a36.js +31 -0
- package/dist/defaultsJSON-ba17aa15.js +10 -0
- package/dist/definitions-a00a3a6c.js +52 -0
- package/dist/deleteForwardEdits-f653b513.js +13 -0
- package/dist/devEnvironmentUtils-42cb97c7.js +11 -0
- package/dist/diffUtils-e71a6152.js +90 -0
- package/dist/dom-b589b728.js +358 -0
- package/dist/doublePrecisionUtils-46e21550.js +22 -0
- package/dist/drapedUtils-b42fcbc6.js +75 -0
- package/dist/earcut-6fa1a128.js +292 -0
- package/dist/edgeProcessing-2ff1f201.js +252 -0
- package/dist/editingSupport-68545668.js +203 -0
- package/dist/editsZScale-c7cdd215.js +37 -0
- package/dist/el_GR-5cfd1e7e.js +18 -0
- package/dist/elevationInfoUtils-5456a079.js +126 -0
- package/dist/en_CA-47f2633b.js +18 -0
- package/dist/en_US-47f2633b.js +18 -0
- package/dist/enums-25d066fc.js +13 -0
- package/dist/enums-2c166c09.js +99 -0
- package/dist/enums-fa8f05ab.js +152 -0
- package/dist/es_ES-489878a2.js +6 -0
- package/dist/et_EE-6472669a.js +18 -0
- package/dist/executeForIds-4ab75c0d.js +14 -0
- package/dist/executeForTopCount-7e095ec1.js +17 -0
- package/dist/executeForTopExtents-19daf9d0.js +17 -0
- package/dist/executeForTopIds-1ba3a4af.js +17 -0
- package/dist/executeQueryJSON-46168866.js +15 -0
- package/dist/executeQueryPBF-d8623daf.js +152 -0
- package/dist/executeRelationshipQuery-011dfb45.js +53 -0
- package/dist/executeTopFeaturesQuery-02166801.js +18 -0
- package/dist/featureConversionUtils-650d7601.js +479 -0
- package/dist/featureLayerUtils-64e09283.js +142 -0
- package/dist/featureLayerUtils-b07f9c11.js +250 -0
- package/dist/featureSetUtils-9d37d6f8.js +2530 -0
- package/dist/featuresetbase-62aeb079.js +707 -0
- package/dist/featuresetgeom-51f9fc4e.js +99 -0
- package/dist/featuresetstats-4db32894.js +81 -0
- package/dist/featuresetstring-990c3287.js +95 -0
- package/dist/fetchService-5198dd4a.js +33 -0
- package/dist/fi_FI-d7a3a525.js +18 -0
- package/dist/fieldProperties-edfa24cb.js +33 -0
- package/dist/floatRGBA-516d7961.js +20 -0
- package/dist/floorFilterUtils-936f7587.js +19 -0
- package/dist/focusTrapComponent-e849bb89.js +475 -0
- package/dist/form-99719d52.js +138 -0
- package/dist/fr_FR-a88f2596.js +7 -0
- package/dist/geohashUtils-2bc76440.js +85 -0
- package/dist/geojson-603231df.js +208 -0
- package/dist/geomasync-e9063b4c.js +567 -0
- package/dist/geometryEngine-d3bb2fd6.js +192 -0
- package/dist/geometryEngineAsync-55aa6170.js +217 -0
- package/dist/geometryEngineBase-527e8b63.js +18463 -0
- package/dist/geometryEngineJSON-28087174.js +46 -0
- package/dist/geometryEngineJSON-d54949f9.js +171 -0
- package/dist/geometryEngineWorker-dc2c7127.js +11 -0
- package/dist/geometryServiceUtils-6a3e1e93.js +28 -0
- package/dist/georeference-ed8b2c30.js +291 -0
- package/dist/gif-204e82dd.js +323 -0
- package/dist/glUtil-8f8bce6b.js +19 -0
- package/dist/gltfexport-b2566542.js +705 -0
- package/dist/groupLayerUtils-ea9e6359.js +39 -0
- package/dist/guid-5ee54248.js +17 -0
- package/dist/he_IL-e34cf273.js +18 -0
- package/dist/heatmapUtils-56758920.js +45 -0
- package/dist/highlightReasons-de432106.js +19 -0
- package/dist/hr_HR-6a124f87.js +18 -0
- package/dist/hu_HU-58f3feb6.js +18 -0
- package/dist/hydrated-0e1c7565.js +40 -0
- package/dist/i3s-bb0b5b67.js +809 -0
- package/dist/icon-c6e3bd23.js +127 -0
- package/dist/id_ID-18d97715.js +18 -0
- package/dist/imageBitmapUtils-881d8c64.js +23 -0
- package/dist/imageUtils-57eeedc5.js +69 -0
- package/dist/imageUtils-ef69c578.js +89 -0
- package/dist/imageryUtils-23f51cb1.js +43 -0
- package/dist/index-01c737ed.js +42563 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +22 -10177
- package/dist/infoFor3D-bf4e6c95.js +58 -0
- package/dist/input-message-673a9baa.js +92 -0
- package/dist/input2-bbf6454e.js +575 -0
- package/dist/interactive-aeb2cb9f.js +80 -0
- package/dist/interfaces-fac3cfda.js +7 -0
- package/dist/it_IT-49e70bbf.js +6 -0
- package/dist/ja_JP-eaef2cc3.js +18 -0
- package/dist/json-5febf88a.js +57 -0
- package/dist/jsonContext-2dc288b1.js +15 -0
- package/dist/jsonUtils-1abd4bfc.js +59 -0
- package/dist/jsonUtils-913fa1bd.js +86 -0
- package/dist/jsonUtils-f6a5e63b.js +476 -0
- package/dist/kmlUtils-7c2744fe.js +112 -0
- package/dist/knowledgeGraphService-6a349e04.js +739 -0
- package/dist/knowledgegraph-c91b0bb2.js +149 -0
- package/dist/ko_KR-5c972fd8.js +14 -0
- package/dist/label2-1ab25f27.js +90 -0
- package/dist/labelUtils-a3634e8f.js +61 -0
- package/dist/labelingInfo-568c9210.js +46 -0
- package/dist/layerViewUtils-052e603c.js +10 -0
- package/dist/layersCreator-4a5366ea.js +151 -0
- package/dist/layersLoader-b87d4857.js +197 -0
- package/dist/lazyLayerLoader-8817000c.js +10 -0
- package/dist/lclayout-64c67b4e.js +773 -0
- package/dist/lengthUtils-695e744c.js +5 -0
- package/dist/lerc-wasm-13192bf3.js +325 -0
- package/dist/libtess-asm-4883179d.js +3673 -0
- package/dist/libtess-fc70d1ce.js +269 -0
- package/dist/lineSegment-3aa941f5.js +76 -0
- package/dist/loadGLTFMesh-db6645f5.js +181 -0
- package/dist/loadable-266f324b.js +24 -0
- package/dist/loader-d1ce1bc1.js +79 -0
- package/dist/lt_LT-26f13fd1.js +6 -0
- package/dist/lv_LV-4feafa92.js +18 -0
- package/dist/lyr3DWorker-dd48e619.js +2108 -0
- package/dist/mapViewDeps-226d9da3.js +3052 -0
- package/dist/mask-svg-30f64a7b.js +4 -0
- package/dist/mat3f64-03233387.js +19 -0
- package/dist/mat4f64-cce69db4.js +19 -0
- package/dist/mediaLayerUtils-ae485c27.js +35 -0
- package/dist/meshFeatureSet-8a2ad011.js +126 -0
- package/dist/meshVertexSpaceUtils-6efe3dcc.js +58 -0
- package/dist/multiOriginJSONSupportUtils-207ba4d4.js +6 -0
- package/dist/multidimensionalUtils-508a3f3f.js +290 -0
- package/dist/nb_NO-21543153.js +18 -0
- package/dist/nl_NL-7876d97f.js +7 -0
- package/dist/normalizeUtilsSync-1dae280b.js +181 -0
- package/dist/number-5aa3a81b.js +128 -0
- package/dist/objectIdUtils-93dae423.js +14 -0
- package/dist/objectResourceUtils-642ab03e.js +1455 -0
- package/dist/observers-f646a6a4.js +30 -0
- package/dist/ogcFeatureUtils-46ac1c44.js +206 -0
- package/dist/openCloseComponent-47eb52c6.js +37 -0
- package/dist/orientedBoundingBox-554ccdc6.js +447 -0
- package/dist/originUtils-87edf087.js +9 -0
- package/dist/overlay-svg-c3941b3b.js +4 -0
- package/dist/parser-0701286c.js +488 -0
- package/dist/pbf-5dd791f5.js +215 -0
- package/dist/pbfQueryUtils-a6ca7e23.js +422 -0
- package/dist/pe-wasm-6c16b121.js +887 -0
- package/dist/persistable-9eb0e8df.js +89 -0
- package/dist/perspectiveUtils-b194621d.js +42 -0
- package/dist/pieChart-b97433d0.js +555 -0
- package/dist/pl_PL-276c6dae.js +18 -0
- package/dist/plane-3398eec1.js +160 -0
- package/dist/popupUtils-c444b896.js +22 -0
- package/dist/popupUtils-d871563b.js +50 -0
- package/dist/portalItemUtils-4c4caad0.js +57 -0
- package/dist/portalLayers-cb07742f.js +312 -0
- package/dist/portalUtils-effd590f.js +7 -0
- package/dist/programUtils-65af7b7c.js +59 -0
- package/dist/project-ee9c2947.js +21 -0
- package/dist/projectPointToVector-7dc831a9.js +14 -0
- package/dist/projectVectorToVector-5163db7a.js +13 -0
- package/dist/pt_BR-4fae3055.js +6 -0
- package/dist/pt_PT-14d9efb1.js +6 -0
- package/dist/quantityUtils-5cd4cf90.js +33 -0
- package/dist/quantizationUtils-0a8f74c6.js +68 -0
- package/dist/quat-a508aed3.js +104 -0
- package/dist/quatf64-bec1af25.js +19 -0
- package/dist/query-b6e1fd14.js +89 -0
- package/dist/queryAttachments-7b39ebdc.js +39 -0
- package/dist/queryEngineUtils-cb8e309e.js +21 -0
- package/dist/queryTopFeatures-2e0e3941.js +50 -0
- package/dist/queryZScale-c5733d0a.js +12 -0
- package/dist/rasterProjectionHelper-213afa27.js +577 -0
- package/dist/rasterUtils-f2e44e8b.js +122 -0
- package/dist/rasterizingUtils-25cc0190.js +46 -0
- package/dist/request-e0c679b3.js +46 -0
- package/dist/requestImageUtils-37d79281.js +8 -0
- package/dist/resourceExtension-5f3f1c80.js +17 -0
- package/dist/resourceUtils-0d68cbc2.js +69 -0
- package/dist/resourceUtils-374db840.js +62 -0
- package/dist/resourceUtils-43ce192b.js +42 -0
- package/dist/ro_RO-8e733cf5.js +18 -0
- package/dist/ru_RU-f7bafc90.js +6 -0
- package/dist/saveAPIKeyUtils-1a3d4a8a.js +8 -0
- package/dist/saveUtils-43fdc547.js +24 -0
- package/dist/scaleUtils-bdf8b6cb.js +23 -0
- package/dist/scrim-44eb4dc0.js +114 -0
- package/dist/serviceCapabilitiesUtils-823612b8.js +64 -0
- package/dist/sizeVariableUtils-a1b694d8.js +27 -0
- package/dist/sk_SK-c279eea3.js +6 -0
- package/dist/sl_SL-e40950dd.js +6 -0
- package/dist/sourceUtils-01d115c6.js +71 -0
- package/dist/sphere-908cd9aa.js +199 -0
- package/dist/sr_RS-b1835dfa.js +18 -0
- package/dist/statsWorker-49f9befe.js +37 -0
- package/dist/streamLayerUtils-29324e05.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-82e8da52.js +75 -0
- package/dist/styleUtils-8541d60d.js +14 -0
- package/dist/sublayerUtils-eaac2486.js +37 -0
- package/dist/substitute-1f578d70.js +52 -0
- package/dist/sv_SE-15ca9e36.js +6 -0
- package/dist/symbolColorUtils-18fd6b3d.js +8 -0
- package/dist/symbolLayerUtils-4c58b291.js +31 -0
- package/dist/symbologySnappingCandidates-14d94b6b.js +221 -0
- package/dist/t9n-c1c2b6c8.js +349 -0
- package/dist/testSVGPremultipliedAlpha-159dac90.js +94 -0
- package/dist/th_TH-bf624a56.js +18 -0
- package/dist/tileUtils-3e0c8c1d.js +7 -0
- package/dist/timeSupport-3f529cdb.js +410 -0
- package/dist/tr_TR-ca5c315f.js +18 -0
- package/dist/triangle-8a3a2ba8.js +98 -0
- package/dist/types-adba9034.js +19 -0
- package/dist/uk_UA-4b3cb86d.js +6 -0
- package/dist/unitConversionUtils-f0ebaf75.js +17 -0
- package/dist/unitFormatUtils-555e2d94.js +40 -0
- package/dist/uploadAssetErrors-d1389781.js +70 -0
- package/dist/uploadAssets-5e85f09d.js +330 -0
- package/dist/utils-3a10b10c.js +34 -0
- package/dist/utils-505c54e9.js +91 -0
- package/dist/utils-5432e258.js +433 -0
- package/dist/utils-7a88ec6a.js +419 -0
- package/dist/utils-7fa9cdf9.js +2746 -0
- package/dist/utils-d252c575.js +73 -0
- package/dist/utils-f07e00b3.js +232 -0
- package/dist/utils-fda10b4b.js +79 -0
- package/dist/utils3-c34ab97c.js +75 -0
- package/dist/vec3-f79c600d.js +81 -0
- package/dist/vec3f32-304a6a9c.js +36 -0
- package/dist/vec42-36edeb73.js +125 -0
- package/dist/vec4f32-b2628ced.js +38 -0
- package/dist/vec4f64-043e974c.js +45 -0
- package/dist/versionUtils-6935648b.js +161 -0
- package/dist/vi_VN-ad09e708.js +18 -0
- package/dist/visualVariableUtils-c425461a.js +267 -0
- package/dist/webStyleSymbolUtils-4f42a29f.js +48 -0
- package/dist/webglDeps-5f18210d.js +23 -0
- package/dist/wfsUtils-6f7f1e3e.js +343 -0
- package/dist/workerHelper-9dc9a790.js +11 -0
- package/dist/xmlUtils-64cc47e1.js +24 -0
- package/dist/xyChart-e5648fee.js +3335 -0
- package/dist/zh_Hans-61faef57.js +14 -0
- package/dist/zh_Hant-87a9767b.js +14 -0
- package/dist/zipjs-wrapper-1bd67e07.js +6496 -0
- package/package.json +6 -1
|
@@ -0,0 +1,806 @@
|
|
|
1
|
+
import { c as b } from "./WGLContainer-3d159b63.js";
|
|
2
|
+
import { t as wt } from "./CircularArray-b2bc1dfd.js";
|
|
3
|
+
import { aO as ot, dc as yt, b as x, S as E, e as _, y as v, c as R, jm as lt, g0 as Mt, b9 as pt, fg as bt, g7 as xt, bo as gt, js as H, a$ as Q, p as vt, jt as X, jl as Tt, bg as $t, fj as st, ju as St, jv as Ct, jw as Dt, aS as B, jx as Vt, jy as nt, jz as zt, jA as Et, x as q, jB as ut } from "./index-01c737ed.js";
|
|
4
|
+
import { a as Rt } from "./testSVGPremultipliedAlpha-159dac90.js";
|
|
5
|
+
import { u as O, O as Lt, Q as It } from "./definitions-a00a3a6c.js";
|
|
6
|
+
import { t as At } from "./AttributeStore-b90878e3.js";
|
|
7
|
+
import { a as Ft } from "./ProgramTemplate-eee4f097.js";
|
|
8
|
+
const se = { shaders: { vertexShader: b("bitBlit/bitBlit.vert"), fragmentShader: b("bitBlit/bitBlit.frag") }, attributes: /* @__PURE__ */ new Map([["a_pos", 0], ["a_tex", 1]]) }, ne = { shaders: { vertexShader: b("stencil/stencil.vert"), fragmentShader: b("stencil/stencil.frag") }, attributes: /* @__PURE__ */ new Map([["a_pos", 0]]) }, oe = { shaders: { vertexShader: b("highlight/textured.vert"), fragmentShader: b("highlight/highlight.frag") }, attributes: /* @__PURE__ */ new Map([["a_position", 0], ["a_texcoord", 1]]) }, ae = { shaders: { vertexShader: b("highlight/textured.vert"), fragmentShader: b("highlight/blur.frag") }, attributes: /* @__PURE__ */ new Map([["a_position", 0], ["a_texcoord", 1]]) }, w = ot("esri-2d-profiler");
|
|
9
|
+
let re = class {
|
|
10
|
+
constructor(t, e) {
|
|
11
|
+
if (this._events = new yt(), this._entries = /* @__PURE__ */ new Map(), this._timings = new wt(10), this._currentContainer = null, this._currentPass = null, this._currentBrush = null, this._currentSummary = null, !w)
|
|
12
|
+
return;
|
|
13
|
+
this._ext = Rt(t.gl, {}), this._debugOutput = e;
|
|
14
|
+
const i = t.gl;
|
|
15
|
+
if (!this.enableCommandLogging)
|
|
16
|
+
return;
|
|
17
|
+
let s;
|
|
18
|
+
for (s in i)
|
|
19
|
+
if (typeof i[s] == "function") {
|
|
20
|
+
const n = i[s], r = s.includes("draw");
|
|
21
|
+
i[s] = (...h) => (this._events.emit("command", { container: this._currentContainer, pass: this._currentPass, brush: this._currentBrush, method: s, args: h, isDrawCommand: r }), this._currentSummary && (this._currentSummary.commands++, r && this._currentSummary.drawCommands++), n.apply(i, h));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
get enableCommandLogging() {
|
|
25
|
+
return !(typeof w == "object" && w.disableCommands);
|
|
26
|
+
}
|
|
27
|
+
recordContainerStart(t) {
|
|
28
|
+
w && (this._currentContainer = t);
|
|
29
|
+
}
|
|
30
|
+
recordContainerEnd() {
|
|
31
|
+
w && (this._currentContainer = null);
|
|
32
|
+
}
|
|
33
|
+
recordPassStart(t) {
|
|
34
|
+
w && (this._currentPass = t, this._initSummary());
|
|
35
|
+
}
|
|
36
|
+
recordPassEnd() {
|
|
37
|
+
w && (this._currentPass = null, this._emitSummary());
|
|
38
|
+
}
|
|
39
|
+
recordBrushStart(t) {
|
|
40
|
+
w && (this._currentBrush = t);
|
|
41
|
+
}
|
|
42
|
+
recordBrushEnd() {
|
|
43
|
+
w && (this._currentBrush = null);
|
|
44
|
+
}
|
|
45
|
+
recordStart(t) {
|
|
46
|
+
if (w && this._ext != null) {
|
|
47
|
+
if (this._entries.has(t)) {
|
|
48
|
+
const i = this._entries.get(t), s = this._ext.resultAvailable(i.query), n = this._ext.disjoint();
|
|
49
|
+
if (s && !n) {
|
|
50
|
+
const r = this._ext.getResult(i.query) / 1e6;
|
|
51
|
+
let h = 0;
|
|
52
|
+
if (this._timings.enqueue(r) != null) {
|
|
53
|
+
const l = this._timings.entries, c = l.length;
|
|
54
|
+
let p = 0;
|
|
55
|
+
for (const m of l)
|
|
56
|
+
p += m;
|
|
57
|
+
h = p / c;
|
|
58
|
+
}
|
|
59
|
+
const o = r.toFixed(2), u = h ? h.toFixed(2) : "--";
|
|
60
|
+
this.enableCommandLogging ? (console.groupCollapsed(`Frame report for ${t}, ${o} ms (${u} last 10 avg)
|
|
61
|
+
${i.commandsLen} Commands (${i.drawCommands} draw)`), console.log("RenderPass breakdown: "), console.table(i.summaries), console.log("Commands: ", i.commands), console.groupEnd()) : console.log(`Frame report for ${t}, ${o} ms (${u} last 10 avg)`), this._debugOutput.innerHTML = `${o} (${u})`;
|
|
62
|
+
}
|
|
63
|
+
for (const r of i.handles)
|
|
64
|
+
r.remove();
|
|
65
|
+
this._ext.deleteQuery(i.query), this._entries.delete(t);
|
|
66
|
+
}
|
|
67
|
+
const e = { name: t, query: this._ext.createQuery(), commands: [], commandsLen: 0, drawCommands: 0, summaries: [], handles: [] };
|
|
68
|
+
this.enableCommandLogging && (e.handles.push(this._events.on("command", (i) => {
|
|
69
|
+
e.commandsLen++, e.commands.push(i), i.isDrawCommand && e.drawCommands++;
|
|
70
|
+
})), e.handles.push(this._events.on("summary", (i) => {
|
|
71
|
+
e.summaries.push(i);
|
|
72
|
+
}))), this._ext.beginTimeElapsed(e.query), this._entries.set(t, e);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
recordEnd(t) {
|
|
76
|
+
w && this._ext != null && this._entries.has(t) && this._ext.endTimeElapsed();
|
|
77
|
+
}
|
|
78
|
+
_initSummary() {
|
|
79
|
+
this.enableCommandLogging && (this._currentSummary = { container: this._currentContainer, pass: this._currentPass, drawCommands: 0, commands: 0 });
|
|
80
|
+
}
|
|
81
|
+
_emitSummary() {
|
|
82
|
+
this.enableCommandLogging && this._currentSummary && this._events.emit("summary", this._currentSummary);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const y = 1, Y = 0, k = 1, N = 2;
|
|
86
|
+
let Pt = class {
|
|
87
|
+
constructor(t, e, i) {
|
|
88
|
+
this._debugMap = /* @__PURE__ */ new Map(), this._width = t * i, this._height = e * i, this._pixelRatio = i;
|
|
89
|
+
const s = Math.ceil(this._width / y), n = Math.ceil(this._height / y);
|
|
90
|
+
this._cols = s, this._rows = n, this._cells = At.create(s * n);
|
|
91
|
+
}
|
|
92
|
+
insertMetrics(t) {
|
|
93
|
+
this._markMetrics(t);
|
|
94
|
+
}
|
|
95
|
+
hasCollision(t) {
|
|
96
|
+
let e = 0;
|
|
97
|
+
for (const { computedX: i, computedY: s, width: n, height: r } of t.bounds) {
|
|
98
|
+
const h = (n + O) * this._pixelRatio, o = (r + O) * this._pixelRatio;
|
|
99
|
+
switch (this._collide(i, s, h, o)) {
|
|
100
|
+
case N:
|
|
101
|
+
return N;
|
|
102
|
+
case k:
|
|
103
|
+
e++;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return e === t.bounds.length ? k : Y;
|
|
107
|
+
}
|
|
108
|
+
getCellId(t, e) {
|
|
109
|
+
return t + e * this._cols;
|
|
110
|
+
}
|
|
111
|
+
has(t) {
|
|
112
|
+
return this._cells.has(t);
|
|
113
|
+
}
|
|
114
|
+
hasRange(t, e) {
|
|
115
|
+
return this._cells.hasRange(t, e);
|
|
116
|
+
}
|
|
117
|
+
set(t) {
|
|
118
|
+
this._cells.set(t);
|
|
119
|
+
}
|
|
120
|
+
setRange(t, e) {
|
|
121
|
+
this._cells.setRange(t, e);
|
|
122
|
+
}
|
|
123
|
+
_collide(t, e, i, s) {
|
|
124
|
+
const n = t - i / 2, r = e - s / 2, h = n + i, o = r + s;
|
|
125
|
+
if (h < 0 || o < 0 || n > this._width || r > this._height)
|
|
126
|
+
return k;
|
|
127
|
+
const u = x(Math.floor(n / y), 0, this._cols), l = x(Math.floor(r / y), 0, this._rows), c = x(Math.ceil(h / y), 0, this._cols), p = x(Math.ceil(o / y), 0, this._rows);
|
|
128
|
+
for (let m = l; m <= p; m++)
|
|
129
|
+
for (let d = u; d <= c; d++) {
|
|
130
|
+
const g = this.getCellId(d, m);
|
|
131
|
+
if (this.has(g))
|
|
132
|
+
return N;
|
|
133
|
+
}
|
|
134
|
+
return Y;
|
|
135
|
+
}
|
|
136
|
+
_mark(t, e, i, s, n) {
|
|
137
|
+
const r = t - i / 2, h = e - s / 2, o = r + i, u = h + s, l = x(Math.floor(r / y), 0, this._cols), c = x(Math.floor(h / y), 0, this._rows), p = x(Math.ceil(o / y), 0, this._cols), m = x(Math.ceil(u / y), 0, this._rows);
|
|
138
|
+
for (let d = c; d <= m; d++)
|
|
139
|
+
for (let g = l; g <= p; g++) {
|
|
140
|
+
const L = this.getCellId(g, d);
|
|
141
|
+
this._debugMap.set(L, n), this.set(L);
|
|
142
|
+
}
|
|
143
|
+
return !1;
|
|
144
|
+
}
|
|
145
|
+
_markMetrics(t) {
|
|
146
|
+
for (const { computedX: e, computedY: i, width: s, height: n } of t.bounds) {
|
|
147
|
+
const r = (s + O) * this._pixelRatio, h = (n + O) * this._pixelRatio;
|
|
148
|
+
this._mark(e, i, r, h, t.entityTexel);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
const I = 254, U = 255, A = 0;
|
|
153
|
+
function C(a, t) {
|
|
154
|
+
const e = a.children.slice();
|
|
155
|
+
e.sort((i, s) => i.tileAge - s.tileAge), e.forEach((i) => {
|
|
156
|
+
i.labelMetrics != null && i.isReady && t(i, i.labelMetrics);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function mt(a, t) {
|
|
160
|
+
return (!a.minScale || a.minScale >= t) && (!a.maxScale || a.maxScale <= t);
|
|
161
|
+
}
|
|
162
|
+
let Zt = class {
|
|
163
|
+
run(t, e, i, s) {
|
|
164
|
+
var r;
|
|
165
|
+
const n = [];
|
|
166
|
+
for (let h = t.length - 1; h >= 0; h--) {
|
|
167
|
+
const o = t[h];
|
|
168
|
+
(r = o.labelingCollisionInfos) != null && r.length && n.push(...o.labelingCollisionInfos);
|
|
169
|
+
}
|
|
170
|
+
ot("esri-2d-update-debug") && n.length && console.debug("CollisionEngine.run"), this._transformMetrics(n), this._runCollision(n, e, i, s);
|
|
171
|
+
for (const h of n)
|
|
172
|
+
h.container.requestRender();
|
|
173
|
+
}
|
|
174
|
+
_runCollision(t, e, i, s) {
|
|
175
|
+
const [n, r] = e.state.size, h = new Pt(n, r, e.pixelRatio);
|
|
176
|
+
for (const { container: o, deconflictionEnabled: u, visible: l } of t) {
|
|
177
|
+
const c = o.attributeView;
|
|
178
|
+
u ? l ? (this._prepare(o), this._collideVisible(h, o, i, s), this._collideInvisible(h, o)) : C(o, (p, m) => {
|
|
179
|
+
for (const d of m)
|
|
180
|
+
c.setLabelMinZoom(d.entityTexel, U);
|
|
181
|
+
}) : C(o, (p, m) => {
|
|
182
|
+
for (const d of m)
|
|
183
|
+
mt(d, i) ? (c.setLabelMinZoom(d.entityTexel, A), l && h.insertMetrics(d)) : c.setLabelMinZoom(d.entityTexel, I);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
_isFiltered(t, e, i) {
|
|
188
|
+
const s = e.getFilterFlags(t), n = !i.hasFilter || !!(s & Lt), r = i.featureEffect == null || i.featureEffect.excludedLabelsVisible || !!(s & It);
|
|
189
|
+
return !(n && r);
|
|
190
|
+
}
|
|
191
|
+
_prepare(t) {
|
|
192
|
+
const e = t.attributeView, i = /* @__PURE__ */ new Set();
|
|
193
|
+
C(t, (s, n) => {
|
|
194
|
+
for (const r of n) {
|
|
195
|
+
const h = r.entityTexel;
|
|
196
|
+
if (!i.has(h)) {
|
|
197
|
+
if (i.add(h), this._isFiltered(h, e, t.layerView)) {
|
|
198
|
+
e.setLabelMinZoom(h, I);
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
e.getLabelMinZoom(h) !== A ? e.setLabelMinZoom(h, U) : e.setLabelMinZoom(h, A);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
_collideVisible(t, e, i, s) {
|
|
207
|
+
const n = e.attributeView, r = /* @__PURE__ */ new Set();
|
|
208
|
+
C(e, (h, o) => {
|
|
209
|
+
for (let u = 0; u < o.length; u++) {
|
|
210
|
+
const l = o[u].entityTexel;
|
|
211
|
+
if (r.has(l))
|
|
212
|
+
continue;
|
|
213
|
+
if (h.key.level !== s) {
|
|
214
|
+
n.setLabelMinZoom(l, I), r.add(l);
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
if (!mt(o[u], i)) {
|
|
218
|
+
n.setLabelMinZoom(l, I), r.add(l);
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
if (n.getLabelMinZoom(l) !== 0) {
|
|
222
|
+
r.add(l);
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
let c = !1, p = !0;
|
|
226
|
+
const m = u;
|
|
227
|
+
let d = u;
|
|
228
|
+
for (; d < o.length; d++) {
|
|
229
|
+
const g = o[d];
|
|
230
|
+
if (g.entityTexel !== l)
|
|
231
|
+
break;
|
|
232
|
+
if (!c)
|
|
233
|
+
switch (t.hasCollision(g)) {
|
|
234
|
+
case k:
|
|
235
|
+
break;
|
|
236
|
+
case N:
|
|
237
|
+
c = !0, p = !1;
|
|
238
|
+
break;
|
|
239
|
+
case Y:
|
|
240
|
+
p = !1;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
if (!c)
|
|
244
|
+
for (let g = m; g < d; g++)
|
|
245
|
+
t.insertMetrics(o[g]);
|
|
246
|
+
u = d - 1, p || (r.add(l), n.setLabelMinZoom(l, c ? I : A));
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
_collideInvisible(t, e) {
|
|
251
|
+
const i = e.attributeView, s = /* @__PURE__ */ new Set();
|
|
252
|
+
C(e, (n, r) => {
|
|
253
|
+
for (let h = 0; h < r.length; h++) {
|
|
254
|
+
const o = r[h].entityTexel;
|
|
255
|
+
if (s.has(o))
|
|
256
|
+
continue;
|
|
257
|
+
if (i.getLabelMinZoom(o) !== U) {
|
|
258
|
+
s.add(o);
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
let u = !1, l = !0;
|
|
262
|
+
const c = h;
|
|
263
|
+
let p = h;
|
|
264
|
+
for (; p < r.length; p++) {
|
|
265
|
+
const m = r[p];
|
|
266
|
+
if (m.entityTexel !== o)
|
|
267
|
+
break;
|
|
268
|
+
if (!u)
|
|
269
|
+
switch (t.hasCollision(m)) {
|
|
270
|
+
case k:
|
|
271
|
+
break;
|
|
272
|
+
case N:
|
|
273
|
+
u = !0, l = !1;
|
|
274
|
+
break;
|
|
275
|
+
case Y:
|
|
276
|
+
l = !1;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (!u)
|
|
280
|
+
for (let m = c; m < p; m++)
|
|
281
|
+
t.insertMetrics(r[m]);
|
|
282
|
+
h = p - 1, l || (s.add(o), i.setLabelMinZoom(o, u ? U : A));
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
_transformMetrics(t) {
|
|
287
|
+
for (const { container: e, geometryType: i, vvEvaluators: s } of t)
|
|
288
|
+
C(e, (n, r) => {
|
|
289
|
+
var l;
|
|
290
|
+
const h = e.attributeView, o = n.transforms.labelMat2d;
|
|
291
|
+
o[4] = Math.round(o[4]), o[5] = Math.round(o[5]);
|
|
292
|
+
const u = i === "polyline";
|
|
293
|
+
for (const c of r) {
|
|
294
|
+
const { entityTexel: p, anchorX: m, anchorY: d } = c;
|
|
295
|
+
let g = ((l = c.referenceBounds) == null ? void 0 : l.size) ?? 0;
|
|
296
|
+
const L = s[0];
|
|
297
|
+
if (L != null) {
|
|
298
|
+
const f = L(h.getVVSize(p));
|
|
299
|
+
g = isNaN(f) || f == null || f === 1 / 0 ? g : f;
|
|
300
|
+
}
|
|
301
|
+
const rt = c.directionX * (g / 2), ht = c.directionY * (g / 2);
|
|
302
|
+
for (const f of c.bounds) {
|
|
303
|
+
let J = m, K = d;
|
|
304
|
+
if (u) {
|
|
305
|
+
let $ = J + f.x + rt, S = K + f.y + ht;
|
|
306
|
+
$ = o[0] * $ + o[2] * S + o[4], S = o[1] * $ + o[3] * S + o[5], f.computedX = Math.floor($), f.computedY = Math.floor(S);
|
|
307
|
+
} else {
|
|
308
|
+
J = o[0] * m + o[2] * d + o[4], K = o[1] * m + o[3] * d + o[5];
|
|
309
|
+
const $ = J + f.x + rt, S = K + f.y + ht;
|
|
310
|
+
f.computedX = $, f.computedY = S;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
const kt = 32;
|
|
318
|
+
let F = class extends E {
|
|
319
|
+
constructor(t) {
|
|
320
|
+
super(t), this._lastUpdate = 0, this.collisionEngine = new Zt(), this.lastUpdateId = -1, this.updateRequested = !1, this.view = null;
|
|
321
|
+
}
|
|
322
|
+
get updating() {
|
|
323
|
+
return ot("esri-2d-log-updating") && console.log(`Updating LabelManager ${this.updateRequested}:
|
|
324
|
+
-> updateRequested: ${this.updateRequested}`), this.updateRequested;
|
|
325
|
+
}
|
|
326
|
+
update(t) {
|
|
327
|
+
const e = performance.now();
|
|
328
|
+
e - this._lastUpdate >= kt ? (this._lastUpdate = e, this.doUpdate(t)) : this.requestUpdate();
|
|
329
|
+
}
|
|
330
|
+
viewChange() {
|
|
331
|
+
this.requestUpdate();
|
|
332
|
+
}
|
|
333
|
+
requestUpdate() {
|
|
334
|
+
var t;
|
|
335
|
+
this.updateRequested || (this.updateRequested = !0, (t = this.view) == null || t.requestUpdate());
|
|
336
|
+
}
|
|
337
|
+
processUpdate(t) {
|
|
338
|
+
this.updateRequested && (this.updateRequested = !1, this.update(t));
|
|
339
|
+
}
|
|
340
|
+
doUpdate(t) {
|
|
341
|
+
const e = this.view;
|
|
342
|
+
if (e)
|
|
343
|
+
try {
|
|
344
|
+
const i = t.state.scale, s = e.featuresTilingScheme.getClosestInfoForScale(i).level;
|
|
345
|
+
this.collisionEngine.run(e.allLayerViews.items, t, i, s);
|
|
346
|
+
} catch {
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
_([v()], F.prototype, "updateRequested", void 0), _([v()], F.prototype, "updating", null), _([v()], F.prototype, "view", void 0), F = _([R("esri.views.2d.LabelManager")], F);
|
|
351
|
+
const j = "esri-zoom-box", G = { container: `${j}__container`, overlay: `${j}__overlay`, background: `${j}__overlay-background`, box: `${j}__outline` }, W = { zoom: "Shift", counter: "Ctrl" };
|
|
352
|
+
let P = class extends E {
|
|
353
|
+
constructor(t) {
|
|
354
|
+
super(t), this._container = null, this._overlay = null, this._backgroundShape = null, this._boxShape = null, this._box = { x: 0, y: 0, width: 0, height: 0 }, this._rafId = null, this._redraw = this._redraw.bind(this);
|
|
355
|
+
}
|
|
356
|
+
destroy() {
|
|
357
|
+
this.view = null;
|
|
358
|
+
}
|
|
359
|
+
set view(t) {
|
|
360
|
+
this.removeAllHandles(), this._destroyOverlay(), this._set("view", t), t && this.addHandles([t.on("drag", [W.zoom], (e) => this._handleDrag(e, 1), lt.INTERNAL), t.on("drag", [W.zoom, W.counter], (e) => this._handleDrag(e, -1), lt.INTERNAL)]);
|
|
361
|
+
}
|
|
362
|
+
_start() {
|
|
363
|
+
this._createContainer(), this._createOverlay(), this.navigation.begin();
|
|
364
|
+
}
|
|
365
|
+
_update(t, e, i, s) {
|
|
366
|
+
this._box.x = t, this._box.y = e, this._box.width = i, this._box.height = s, this._rafId || (this._rafId = requestAnimationFrame(this._redraw));
|
|
367
|
+
}
|
|
368
|
+
_end(t, e, i, s, n) {
|
|
369
|
+
const r = this.view, h = r.toMap(Mt(t + 0.5 * i, e + 0.5 * s));
|
|
370
|
+
let o = Math.max(i / r.width, s / r.height);
|
|
371
|
+
n === -1 && (o = 1 / o), this._destroyOverlay(), this.navigation.end(), r.goTo({ center: h, scale: r.scale * o });
|
|
372
|
+
}
|
|
373
|
+
_updateBox(t, e, i, s) {
|
|
374
|
+
const n = this._boxShape;
|
|
375
|
+
n.setAttributeNS(null, "x", "" + t), n.setAttributeNS(null, "y", "" + e), n.setAttributeNS(null, "width", "" + i), n.setAttributeNS(null, "height", "" + s), n.setAttributeNS(null, "class", G.box);
|
|
376
|
+
}
|
|
377
|
+
_updateBackground(t, e, i, s) {
|
|
378
|
+
this._backgroundShape.setAttributeNS(null, "d", this._toSVGPath(t, e, i, s, this.view.width, this.view.height));
|
|
379
|
+
}
|
|
380
|
+
_createContainer() {
|
|
381
|
+
const t = document.createElement("div");
|
|
382
|
+
t.className = G.container, this.view.root.appendChild(t), this._container = t;
|
|
383
|
+
}
|
|
384
|
+
_createOverlay() {
|
|
385
|
+
const t = this.view.width, e = this.view.height, i = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
386
|
+
i.setAttributeNS(null, "d", "M 0 0 L " + t + " 0 L " + t + " " + e + " L 0 " + e + " Z"), i.setAttributeNS(null, "class", G.background);
|
|
387
|
+
const s = document.createElementNS("http://www.w3.org/2000/svg", "rect"), n = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
388
|
+
n.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), n.setAttributeNS(null, "class", G.overlay), n.appendChild(i), n.appendChild(s), this._container.appendChild(n), this._backgroundShape = i, this._boxShape = s, this._overlay = n;
|
|
389
|
+
}
|
|
390
|
+
_destroyOverlay() {
|
|
391
|
+
this._container && this._container.parentNode && this._container.parentNode.removeChild(this._container), this._container = this._backgroundShape = this._boxShape = this._overlay = null;
|
|
392
|
+
}
|
|
393
|
+
_toSVGPath(t, e, i, s, n, r) {
|
|
394
|
+
const h = t + i, o = e + s;
|
|
395
|
+
return "M 0 0 L " + n + " 0 L " + n + " " + r + " L 0 " + r + " ZM " + t + " " + e + " L " + t + " " + o + " L " + h + " " + o + " L " + h + " " + e + " Z";
|
|
396
|
+
}
|
|
397
|
+
_handleDrag(t, e) {
|
|
398
|
+
const i = t.x, s = t.y, n = t.origin.x, r = t.origin.y;
|
|
399
|
+
let h, o, u, l;
|
|
400
|
+
switch (i > n ? (h = n, u = i - n) : (h = i, u = n - i), s > r ? (o = r, l = s - r) : (o = s, l = r - s), t.action) {
|
|
401
|
+
case "start":
|
|
402
|
+
this._start();
|
|
403
|
+
break;
|
|
404
|
+
case "update":
|
|
405
|
+
this._update(h, o, u, l);
|
|
406
|
+
break;
|
|
407
|
+
case "end":
|
|
408
|
+
this._end(h, o, u, l, e);
|
|
409
|
+
}
|
|
410
|
+
t.stopPropagation();
|
|
411
|
+
}
|
|
412
|
+
_redraw() {
|
|
413
|
+
if (!this._rafId || (this._rafId = null, !this._overlay))
|
|
414
|
+
return;
|
|
415
|
+
const { x: t, y: e, width: i, height: s } = this._box;
|
|
416
|
+
this._updateBox(t, e, i, s), this._updateBackground(t, e, i, s), this._rafId = requestAnimationFrame(this._redraw);
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
_([v()], P.prototype, "navigation", void 0), _([v()], P.prototype, "view", null), P = _([R("esri.views.2d.navigation.ZoomBox")], P);
|
|
420
|
+
const Nt = P;
|
|
421
|
+
let T = class {
|
|
422
|
+
constructor(t) {
|
|
423
|
+
this._gain = t, this.lastValue = void 0, this.filteredDelta = void 0;
|
|
424
|
+
}
|
|
425
|
+
update(t) {
|
|
426
|
+
if (this.hasLastValue()) {
|
|
427
|
+
const e = this.computeDelta(t);
|
|
428
|
+
this._updateDelta(e);
|
|
429
|
+
}
|
|
430
|
+
this.lastValue = t;
|
|
431
|
+
}
|
|
432
|
+
reset() {
|
|
433
|
+
this.lastValue = void 0, this.filteredDelta = void 0;
|
|
434
|
+
}
|
|
435
|
+
hasLastValue() {
|
|
436
|
+
return this.lastValue !== void 0;
|
|
437
|
+
}
|
|
438
|
+
hasFilteredDelta() {
|
|
439
|
+
return this.filteredDelta !== void 0;
|
|
440
|
+
}
|
|
441
|
+
computeDelta(t) {
|
|
442
|
+
return this.lastValue === void 0 ? NaN : t - this.lastValue;
|
|
443
|
+
}
|
|
444
|
+
_updateDelta(t) {
|
|
445
|
+
this.filteredDelta !== void 0 ? this.filteredDelta = (1 - this._gain) * this.filteredDelta + this._gain * t : this.filteredDelta = t;
|
|
446
|
+
}
|
|
447
|
+
}, at = class {
|
|
448
|
+
constructor(t, e, i) {
|
|
449
|
+
this._initialVelocity = t, this._stopVelocity = e, this._friction = i, this._duration = Math.abs(Math.log(Math.abs(this._initialVelocity) / this._stopVelocity) / Math.log(1 - this._friction));
|
|
450
|
+
}
|
|
451
|
+
get duration() {
|
|
452
|
+
return this._duration;
|
|
453
|
+
}
|
|
454
|
+
isFinished(t) {
|
|
455
|
+
return t > this.duration;
|
|
456
|
+
}
|
|
457
|
+
get friction() {
|
|
458
|
+
return this._friction;
|
|
459
|
+
}
|
|
460
|
+
value(t) {
|
|
461
|
+
return this.valueFromInitialVelocity(this._initialVelocity, t);
|
|
462
|
+
}
|
|
463
|
+
valueDelta(t, e) {
|
|
464
|
+
const i = this.value(t);
|
|
465
|
+
return this.value(t + e) - i;
|
|
466
|
+
}
|
|
467
|
+
valueFromInitialVelocity(t, e) {
|
|
468
|
+
e = Math.min(e, this.duration);
|
|
469
|
+
const i = 1 - this.friction;
|
|
470
|
+
return t * (i ** e - 1) / Math.log(i);
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
class Bt extends at {
|
|
474
|
+
constructor(t, e, i, s, n) {
|
|
475
|
+
super(t, e, i), this._sceneVelocity = s, this.direction = n;
|
|
476
|
+
}
|
|
477
|
+
value(t) {
|
|
478
|
+
return super.valueFromInitialVelocity(this._sceneVelocity, t);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
class qt {
|
|
482
|
+
constructor(t = 300, e = 12, i = 0.84) {
|
|
483
|
+
this._minimumInitialVelocity = t, this._stopVelocity = e, this._friction = i, this.enabled = !0, this._time = new T(0.6), this._screen = [new T(0.4), new T(0.4)], this._scene = [new T(0.6), new T(0.6), new T(0.6)], this._tmpDirection = pt();
|
|
484
|
+
}
|
|
485
|
+
add(t, e, i) {
|
|
486
|
+
if (this.enabled) {
|
|
487
|
+
if (this._time.hasLastValue() && this._time.computeDelta(i) < 0.015)
|
|
488
|
+
return;
|
|
489
|
+
this._screen[0].update(t[0]), this._screen[1].update(t[1]), this._scene[0].update(e[0]), this._scene[1].update(e[1]), this._scene[2].update(e[2]), this._time.update(i);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
reset() {
|
|
493
|
+
this._screen[0].reset(), this._screen[1].reset(), this._scene[0].reset(), this._scene[1].reset(), this._scene[2].reset(), this._time.reset();
|
|
494
|
+
}
|
|
495
|
+
evaluateMomentum() {
|
|
496
|
+
if (!this.enabled || !this._screen[0].hasFilteredDelta() || !this._time.hasFilteredDelta())
|
|
497
|
+
return null;
|
|
498
|
+
const t = this._screen[0].filteredDelta, e = this._screen[1].filteredDelta, i = t == null || e == null ? 0 : Math.sqrt(t * t + e * e), s = this._time.filteredDelta, n = s == null || i == null ? 0 : i / s;
|
|
499
|
+
return Math.abs(n) < this._minimumInitialVelocity ? null : this.createMomentum(n, this._stopVelocity, this._friction);
|
|
500
|
+
}
|
|
501
|
+
createMomentum(t, e, i) {
|
|
502
|
+
bt(this._tmpDirection, this._scene[0].filteredDelta ?? 0, this._scene[1].filteredDelta ?? 0, this._scene[2].filteredDelta ?? 0);
|
|
503
|
+
const s = xt(this._tmpDirection);
|
|
504
|
+
s > 0 && gt(this._tmpDirection, this._tmpDirection, 1 / s);
|
|
505
|
+
const n = this._time.filteredDelta;
|
|
506
|
+
return new Bt(t, e, i, n == null ? 0 : s / n, this._tmpDirection);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
let V = class extends E {
|
|
510
|
+
constructor(t) {
|
|
511
|
+
super(t), this.animationTime = 0, this.momentumEstimator = new qt(500, 6, 0.92), this.momentum = null, this.tmpMomentum = pt(), this.momentumFinished = !1, this.viewpoint = new H({ targetGeometry: new Q(), scale: 0, rotation: 0 }), this._previousDrag = null, vt(() => this.momentumFinished, () => this.navigation.stop());
|
|
512
|
+
}
|
|
513
|
+
begin(t, e) {
|
|
514
|
+
this.navigation.begin(), this.momentumEstimator.reset(), this.addToEstimator(e), this._previousDrag = e;
|
|
515
|
+
}
|
|
516
|
+
update(t, e) {
|
|
517
|
+
this.addToEstimator(e);
|
|
518
|
+
let i = e.center.x, s = e.center.y;
|
|
519
|
+
const n = this._previousDrag;
|
|
520
|
+
i = n ? n.center.x - i : -i, s = n ? s - n.center.y : s, t.viewpoint = X(this.viewpoint, t.viewpoint, [i || 0, s || 0]), this._previousDrag = e;
|
|
521
|
+
}
|
|
522
|
+
end(t, e) {
|
|
523
|
+
this.addToEstimator(e);
|
|
524
|
+
const i = t.navigation.momentumEnabled;
|
|
525
|
+
this.momentum = i ? this.momentumEstimator.evaluateMomentum() : null, this.animationTime = 0, this.momentum && this.onAnimationUpdate(t), this._previousDrag = null, this.navigation.end();
|
|
526
|
+
}
|
|
527
|
+
addToEstimator(t) {
|
|
528
|
+
const e = t.center.x, i = t.center.y, s = Tt(-e, i), n = $t(-e, i, 0);
|
|
529
|
+
this.momentumEstimator.add(s, n, 1e-3 * t.timestamp);
|
|
530
|
+
}
|
|
531
|
+
onAnimationUpdate(t) {
|
|
532
|
+
var e;
|
|
533
|
+
(e = this.navigation.animationManager) == null || e.animateContinous(t.viewpoint, (i, s) => {
|
|
534
|
+
const { momentum: n, animationTime: r, tmpMomentum: h } = this, o = 1e-3 * s;
|
|
535
|
+
if (!(this.momentumFinished = !n || n.isFinished(r))) {
|
|
536
|
+
const u = n.valueDelta(r, o);
|
|
537
|
+
gt(h, n.direction, u), X(i, i, h), t.constraints.constrainByGeometry(i);
|
|
538
|
+
}
|
|
539
|
+
this.animationTime += o;
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
stopMomentumNavigation() {
|
|
543
|
+
this.momentum && (this.momentumEstimator.reset(), this.momentum = null, this.navigation.stop());
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
_([v()], V.prototype, "momentumFinished", void 0), _([v()], V.prototype, "viewpoint", void 0), _([v()], V.prototype, "navigation", void 0), V = _([R("esri.views.2d.navigation.actions.Pan")], V);
|
|
547
|
+
const Ot = V;
|
|
548
|
+
let ft = class {
|
|
549
|
+
constructor(t = 2.5, e = 0.01, i = 0.95, s = 12) {
|
|
550
|
+
this._minimumInitialVelocity = t, this._stopVelocity = e, this._friction = i, this._maxVelocity = s, this.enabled = !0, this.value = new T(0.8), this.time = new T(0.3);
|
|
551
|
+
}
|
|
552
|
+
add(t, e) {
|
|
553
|
+
if (this.enabled && e != null) {
|
|
554
|
+
if (this.time.hasLastValue()) {
|
|
555
|
+
if (this.time.computeDelta(e) < 0.01)
|
|
556
|
+
return;
|
|
557
|
+
if (this.value.hasFilteredDelta()) {
|
|
558
|
+
const i = this.value.computeDelta(t);
|
|
559
|
+
this.value.filteredDelta * i < 0 && this.value.reset();
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
this.time.update(e), this.value.update(t);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
reset() {
|
|
566
|
+
this.value.reset(), this.time.reset();
|
|
567
|
+
}
|
|
568
|
+
evaluateMomentum() {
|
|
569
|
+
if (!this.enabled || !this.value.hasFilteredDelta() || !this.time.hasFilteredDelta())
|
|
570
|
+
return null;
|
|
571
|
+
let t = this.value.filteredDelta / this.time.filteredDelta;
|
|
572
|
+
return t = x(t, -this._maxVelocity, this._maxVelocity), Math.abs(t) < this._minimumInitialVelocity ? null : this.createMomentum(t, this._stopVelocity, this._friction);
|
|
573
|
+
}
|
|
574
|
+
createMomentum(t, e, i) {
|
|
575
|
+
return new at(t, e, i);
|
|
576
|
+
}
|
|
577
|
+
}, Ut = class extends ft {
|
|
578
|
+
constructor(t = 3, e = 0.01, i = 0.95, s = 12) {
|
|
579
|
+
super(t, e, i, s);
|
|
580
|
+
}
|
|
581
|
+
add(t, e) {
|
|
582
|
+
const i = this.value.lastValue;
|
|
583
|
+
if (i != null) {
|
|
584
|
+
let s = t - i;
|
|
585
|
+
for (; s > Math.PI; )
|
|
586
|
+
s -= 2 * Math.PI;
|
|
587
|
+
for (; s < -Math.PI; )
|
|
588
|
+
s += 2 * Math.PI;
|
|
589
|
+
t = i + s;
|
|
590
|
+
}
|
|
591
|
+
super.add(t, e);
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
class jt extends at {
|
|
595
|
+
constructor(t, e, i) {
|
|
596
|
+
super(t, e, i);
|
|
597
|
+
}
|
|
598
|
+
value(t) {
|
|
599
|
+
const e = super.value(t);
|
|
600
|
+
return Math.exp(e);
|
|
601
|
+
}
|
|
602
|
+
valueDelta(t, e) {
|
|
603
|
+
const i = super.value(t), s = super.value(t + e) - i;
|
|
604
|
+
return Math.exp(s);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
class Gt extends ft {
|
|
608
|
+
constructor(t = 2.5, e = 0.01, i = 0.95, s = 12) {
|
|
609
|
+
super(t, e, i, s);
|
|
610
|
+
}
|
|
611
|
+
add(t, e) {
|
|
612
|
+
super.add(Math.log(t), e);
|
|
613
|
+
}
|
|
614
|
+
createMomentum(t, e, i) {
|
|
615
|
+
return new jt(t, e, i);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
let z = class extends E {
|
|
619
|
+
constructor(t) {
|
|
620
|
+
super(t), this._animationTime = 0, this._momentumFinished = !1, this._previousAngle = 0, this._previousRadius = 0, this._previousCenter = null, this._rotationMomentumEstimator = new Ut(0.6, 0.15, 0.95), this._rotationDirection = 1, this._startAngle = 0, this._startRadius = 0, this._updateTimestamp = null, this._zoomDirection = 1, this._zoomMomentumEstimator = new Gt(), this._zoomOnly = null, this.zoomMomentum = null, this.rotateMomentum = null, this.viewpoint = new H({ targetGeometry: new Q(), scale: 0, rotation: 0 }), this.addHandles(vt(() => this._momentumFinished, () => this.navigation.stop()));
|
|
621
|
+
}
|
|
622
|
+
begin(t, e) {
|
|
623
|
+
this.navigation.begin(), this._rotationMomentumEstimator.reset(), this._zoomMomentumEstimator.reset(), this._zoomOnly = null, this._previousAngle = this._startAngle = e.angle, this._previousRadius = this._startRadius = e.radius, this._previousCenter = e.center, this._updateTimestamp = null, t.constraints.rotationEnabled && this.addToRotateEstimator(0, e.timestamp), this.addToZoomEstimator(e, 1);
|
|
624
|
+
}
|
|
625
|
+
update(t, e) {
|
|
626
|
+
this._updateTimestamp === null && (this._updateTimestamp = e.timestamp);
|
|
627
|
+
const i = e.angle, s = e.radius, n = e.center, r = Math.abs(180 * (i - this._startAngle) / Math.PI), h = Math.abs(s - this._startRadius), o = this._startRadius / s;
|
|
628
|
+
if (this._previousRadius && this._previousCenter) {
|
|
629
|
+
const u = s / this._previousRadius;
|
|
630
|
+
let l = 180 * (i - this._previousAngle) / Math.PI;
|
|
631
|
+
this._rotationDirection = l >= 0 ? 1 : -1, this._zoomDirection = u >= 1 ? 1 : -1, t.constraints.rotationEnabled ? (this._zoomOnly === null && e.timestamp - this._updateTimestamp > 200 && (this._zoomOnly = h - r > 0), this._zoomOnly === null || this._zoomOnly ? l = 0 : this.addToRotateEstimator(i - this._startAngle, e.timestamp)) : l = 0, this.addToZoomEstimator(e, o), this.navigation.setViewpoint([n.x, n.y], 1 / u, l, [this._previousCenter.x - n.x, n.y - this._previousCenter.y]);
|
|
632
|
+
}
|
|
633
|
+
this._previousAngle = i, this._previousRadius = s, this._previousCenter = n;
|
|
634
|
+
}
|
|
635
|
+
end(t) {
|
|
636
|
+
this.rotateMomentum = this._rotationMomentumEstimator.evaluateMomentum(), this.zoomMomentum = this._zoomMomentumEstimator.evaluateMomentum(), this._animationTime = 0, (this.rotateMomentum || this.zoomMomentum) && this.onAnimationUpdate(t), this.navigation.end();
|
|
637
|
+
}
|
|
638
|
+
addToRotateEstimator(t, e) {
|
|
639
|
+
this._rotationMomentumEstimator.add(t, 1e-3 * e);
|
|
640
|
+
}
|
|
641
|
+
addToZoomEstimator(t, e) {
|
|
642
|
+
this._zoomMomentumEstimator.add(e, 1e-3 * t.timestamp);
|
|
643
|
+
}
|
|
644
|
+
canZoomIn(t) {
|
|
645
|
+
const e = t.scale, i = t.constraints.effectiveMaxScale;
|
|
646
|
+
return i === 0 || e > i;
|
|
647
|
+
}
|
|
648
|
+
canZoomOut(t) {
|
|
649
|
+
const e = t.scale, i = t.constraints.effectiveMinScale;
|
|
650
|
+
return i === 0 || e < i;
|
|
651
|
+
}
|
|
652
|
+
onAnimationUpdate(t) {
|
|
653
|
+
var e;
|
|
654
|
+
(e = this.navigation.animationManager) == null || e.animateContinous(t.viewpoint, (i, s) => {
|
|
655
|
+
const n = !this.canZoomIn(t) && this._zoomDirection > 1 || !this.canZoomOut(t) && this._zoomDirection < 1, r = !this.rotateMomentum || this.rotateMomentum.isFinished(this._animationTime), h = n || !this.zoomMomentum || this.zoomMomentum.isFinished(this._animationTime), o = 1e-3 * s;
|
|
656
|
+
if (this._momentumFinished = r && h, !this._momentumFinished) {
|
|
657
|
+
const u = this.rotateMomentum ? Math.abs(this.rotateMomentum.valueDelta(this._animationTime, o)) * this._rotationDirection * 180 / Math.PI : 0;
|
|
658
|
+
let l = this.zoomMomentum ? Math.abs(this.zoomMomentum.valueDelta(this._animationTime, o)) : 1;
|
|
659
|
+
const c = B(), p = B();
|
|
660
|
+
if (this._previousCenter) {
|
|
661
|
+
st(c, this._previousCenter.x, this._previousCenter.y), St(p, t.size, t.padding), Ct(c, c, p);
|
|
662
|
+
const { constraints: m, scale: d } = t, g = d * l;
|
|
663
|
+
l < 1 && !m.canZoomInTo(g) ? (l = d / m.effectiveMaxScale, this.zoomMomentum = null, this.rotateMomentum = null) : l > 1 && !m.canZoomOutTo(g) && (l = d / m.effectiveMinScale, this.zoomMomentum = null, this.rotateMomentum = null), Dt(i, t.viewpoint, l, u, c, t.size), t.constraints.constrainByGeometry(i);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
this._animationTime += o;
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
stopMomentumNavigation() {
|
|
670
|
+
(this.rotateMomentum || this.zoomMomentum) && (this.rotateMomentum && (this._rotationMomentumEstimator.reset(), this.rotateMomentum = null), this.zoomMomentum && (this._zoomMomentumEstimator.reset(), this.zoomMomentum = null), this.navigation.stop());
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
_([v()], z.prototype, "_momentumFinished", void 0), _([v()], z.prototype, "viewpoint", void 0), _([v()], z.prototype, "navigation", void 0), z = _([R("esri.views.2d.navigation.actions.Pinch")], z);
|
|
674
|
+
const Xt = z, tt = B(), ct = B();
|
|
675
|
+
let Z = class extends E {
|
|
676
|
+
constructor(a) {
|
|
677
|
+
super(a), this._previousCenter = B(), this.viewpoint = new H({ targetGeometry: new Q(), scale: 0, rotation: 0 });
|
|
678
|
+
}
|
|
679
|
+
begin(a, t) {
|
|
680
|
+
this.navigation.begin(), st(this._previousCenter, t.center.x, t.center.y);
|
|
681
|
+
}
|
|
682
|
+
update(a, t) {
|
|
683
|
+
const { state: { size: e, padding: i } } = a;
|
|
684
|
+
st(tt, t.center.x, t.center.y), Vt(ct, e, i), a.viewpoint = nt(this.viewpoint, a.state.paddedViewState.viewpoint, zt(ct, this._previousCenter, tt)), Et(this._previousCenter, tt);
|
|
685
|
+
}
|
|
686
|
+
end() {
|
|
687
|
+
this.navigation.end();
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
_([v()], Z.prototype, "viewpoint", void 0), _([v()], Z.prototype, "navigation", void 0), Z = _([R("esri.views.2d.actions.Rotate")], Z);
|
|
691
|
+
const Yt = Z, D = 10, dt = 1, et = new H({ targetGeometry: new Q() }), it = [0, 0], _t = 250;
|
|
692
|
+
let M = class extends E {
|
|
693
|
+
constructor(a) {
|
|
694
|
+
super(a), this._endTimer = null, this._lastEventTimestamp = null, this.animationManager = null, this.interacting = !1;
|
|
695
|
+
}
|
|
696
|
+
initialize() {
|
|
697
|
+
this.pan = new Ot({ navigation: this }), this.rotate = new Yt({ navigation: this }), this.pinch = new Xt({ navigation: this }), this.zoomBox = new Nt({ view: this.view, navigation: this });
|
|
698
|
+
}
|
|
699
|
+
destroy() {
|
|
700
|
+
this.pan = q(this.pan), this.rotate = q(this.rotate), this.pinch = q(this.pinch), this.zoomBox = q(this.zoomBox), this.animationManager = null;
|
|
701
|
+
}
|
|
702
|
+
begin() {
|
|
703
|
+
this.stop(), this._set("interacting", !0);
|
|
704
|
+
}
|
|
705
|
+
end() {
|
|
706
|
+
this._lastEventTimestamp = performance.now(), this._startTimer(_t);
|
|
707
|
+
}
|
|
708
|
+
async zoom(a, t = this._getDefaultAnchor()) {
|
|
709
|
+
if (this.begin(), this.view.constraints.snapToZoom && this.view.constraints.effectiveLODs)
|
|
710
|
+
return a < 1 ? this.zoomIn(t) : this.zoomOut(t);
|
|
711
|
+
this.setViewpoint(t, a, 0, [0, 0]);
|
|
712
|
+
}
|
|
713
|
+
async zoomIn(a) {
|
|
714
|
+
const t = this.view, e = t.constraints.snapToNextScale(t.scale);
|
|
715
|
+
return this._zoomToScale(e, a);
|
|
716
|
+
}
|
|
717
|
+
async zoomOut(a) {
|
|
718
|
+
const t = this.view, e = t.constraints.snapToPreviousScale(t.scale);
|
|
719
|
+
return this._zoomToScale(e, a);
|
|
720
|
+
}
|
|
721
|
+
setViewpoint(a, t, e, i) {
|
|
722
|
+
this.begin(), this.view.stateManager.state.viewpoint = this._scaleRotateTranslateViewpoint(this.view.viewpoint, a, t, e, i), this.end();
|
|
723
|
+
}
|
|
724
|
+
setViewpointImmediate(a, t = 0, e = [0, 0], i = this._getDefaultAnchor()) {
|
|
725
|
+
this.view.stateManager.state.viewpoint = this._scaleRotateTranslateViewpoint(this.view.viewpoint, i, a, t, e);
|
|
726
|
+
}
|
|
727
|
+
continousRotateClockwise() {
|
|
728
|
+
var t;
|
|
729
|
+
const a = this.view.viewpoint;
|
|
730
|
+
(t = this.animationManager) == null || t.animateContinous(a, (e) => {
|
|
731
|
+
nt(e, e, -dt);
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
continousRotateCounterclockwise() {
|
|
735
|
+
var t;
|
|
736
|
+
const a = this.view.viewpoint;
|
|
737
|
+
(t = this.animationManager) == null || t.animateContinous(a, (e) => {
|
|
738
|
+
nt(e, e, dt);
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
resetRotation() {
|
|
742
|
+
this.view.constraints.rotationEnabled && (this.view.rotation = 0);
|
|
743
|
+
}
|
|
744
|
+
continousPanLeft() {
|
|
745
|
+
this._continuousPan([-D, 0]);
|
|
746
|
+
}
|
|
747
|
+
continousPanRight() {
|
|
748
|
+
this._continuousPan([D, 0]);
|
|
749
|
+
}
|
|
750
|
+
continousPanUp() {
|
|
751
|
+
this._continuousPan([0, D]);
|
|
752
|
+
}
|
|
753
|
+
continousPanDown() {
|
|
754
|
+
this._continuousPan([0, -D]);
|
|
755
|
+
}
|
|
756
|
+
continuousPanVector({ x: a, y: t }) {
|
|
757
|
+
this._continuousPan([a * D, t * D]);
|
|
758
|
+
}
|
|
759
|
+
stop() {
|
|
760
|
+
var a;
|
|
761
|
+
this.pan.stopMomentumNavigation(), (a = this.animationManager) == null || a.stop(), this.end(), this._endTimer !== null && (clearTimeout(this._endTimer), this._endTimer = null, this._set("interacting", !1));
|
|
762
|
+
}
|
|
763
|
+
_continuousPan(a) {
|
|
764
|
+
var e;
|
|
765
|
+
const t = this.view.viewpoint;
|
|
766
|
+
(e = this.animationManager) == null || e.animateContinous(t, (i) => {
|
|
767
|
+
X(i, i, a), this.view.constraints.constrainByGeometry(i);
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
_startTimer(a) {
|
|
771
|
+
return this._endTimer !== null || (this._endTimer = setTimeout(() => {
|
|
772
|
+
this._endTimer = null;
|
|
773
|
+
const t = performance.now() - (this._lastEventTimestamp ?? 0);
|
|
774
|
+
t < _t ? this._endTimer = this._startTimer(t) : this._set("interacting", !1);
|
|
775
|
+
}, a)), this._endTimer;
|
|
776
|
+
}
|
|
777
|
+
_getDefaultAnchor() {
|
|
778
|
+
const { size: a, padding: { left: t, right: e, top: i, bottom: s } } = this.view;
|
|
779
|
+
return it[0] = 0.5 * (a[0] - e + t), it[1] = 0.5 * (a[1] - s + i), it;
|
|
780
|
+
}
|
|
781
|
+
async _zoomToScale(a, t = this._getDefaultAnchor()) {
|
|
782
|
+
const { view: e } = this, { constraints: i, scale: s, viewpoint: n, size: r, padding: h } = e, o = i.canZoomInTo(a), u = i.canZoomOutTo(a);
|
|
783
|
+
if (!(a < s && !o || a > s && !u))
|
|
784
|
+
return ut(et, n, a / s, 0, t, r, h), i.constrainByGeometry(et), e.goTo(et, { animate: !0, pickClosestTarget: !1 });
|
|
785
|
+
}
|
|
786
|
+
_scaleRotateTranslateViewpoint(a, t, e, i, s) {
|
|
787
|
+
const { view: n } = this, { size: r, padding: h, constraints: o, scale: u, viewpoint: l } = n, c = u * e, p = o.canZoomInTo(c), m = o.canZoomOutTo(c);
|
|
788
|
+
return (e < 1 && !p || e > 1 && !m) && (e = 1), X(l, l, s), ut(a, l, e, i, t, r, h), o.constrainByGeometry(a);
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
_([v()], M.prototype, "animationManager", void 0), _([v({ type: Boolean, readOnly: !0 })], M.prototype, "interacting", void 0), _([v()], M.prototype, "pan", void 0), _([v()], M.prototype, "pinch", void 0), _([v()], M.prototype, "rotate", void 0), _([v()], M.prototype, "view", void 0), _([v()], M.prototype, "zoomBox", void 0), M = _([R("esri.views.2d.navigation.MapViewNavigation")], M);
|
|
792
|
+
const we = M, Ht = { shaders: { vertexShader: b("magnifier/magnifier.vert"), fragmentShader: b("magnifier/magnifier.frag") }, attributes: /* @__PURE__ */ new Map([["a_pos", 0]]) };
|
|
793
|
+
function ye(a) {
|
|
794
|
+
return Ft(a, Ht);
|
|
795
|
+
}
|
|
796
|
+
export {
|
|
797
|
+
ae as a,
|
|
798
|
+
ye as b,
|
|
799
|
+
Ht as c,
|
|
800
|
+
F as d,
|
|
801
|
+
se as e,
|
|
802
|
+
we as f,
|
|
803
|
+
re as n,
|
|
804
|
+
ne as r,
|
|
805
|
+
oe as t
|
|
806
|
+
};
|