@agrotools1/at-components 0.2.3 → 0.2.5
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-d82e96aa.js +109 -0
- package/dist/APIKeyMixin-2ee64e59.js +19 -0
- package/dist/Analysis-449f84c5.js +31 -0
- package/dist/ArcGISCachedService-a838709f.js +47 -0
- package/dist/ArcGISService-7e5e8710.js +25 -0
- package/dist/AreaMeasurement2D-971dad40.js +405 -0
- package/dist/AreaMeasurement3D-48bc0242.js +488 -0
- package/dist/AttachmentInfo-ad88d558.js +34 -0
- package/dist/AttachmentQuery-c86dac15.js +18 -0
- package/dist/AttributeStore-3851ad0b.js +1707 -0
- package/dist/BaseDynamicLayerView2D-02baa49a.js +63 -0
- package/dist/BingMapsLayer-67c70069.js +112 -0
- package/dist/Bitmap-d455f554.js +128 -0
- package/dist/BitmapContainer-c78799ad.js +23 -0
- package/dist/BlendLayer-246e4998.js +13 -0
- package/dist/BoundsStore-b18f4e4e.js +63 -0
- package/dist/BufferObject-22d914df.js +100 -0
- package/dist/BufferView-5272765e.js +683 -0
- package/dist/BuildingSceneLayer-f08d5129.js +535 -0
- package/dist/Button-335b8469.js +36 -0
- package/dist/CSVLayer-40c0bd0e.js +208 -0
- package/dist/CSVSourceWorker-b8df4580.js +367 -0
- package/dist/CardWithInsights/CardWithInsights.d.ts +2 -1
- package/dist/CatalogDynamicGroupLayerView2D-3abd5c54.js +66 -0
- package/dist/CatalogFootprintLayerView2D-22c795e4.js +76 -0
- package/dist/CatalogLayer-74d18466.js +262 -0
- package/dist/CatalogLayerView2D-ffee45d8.js +52 -0
- package/dist/ClassBreaksDefinition-5a577d31.js +18 -0
- package/dist/ColorMaterial.glsl-bc384e65.js +64 -0
- package/dist/ColorSet-570396b9.js +45 -0
- package/dist/ColorStop-5009138a.js +29 -0
- package/dist/Container-f931e682.js +521 -0
- package/dist/CustomParametersMixin-9e8adcf6.js +12 -0
- package/dist/DefaultMaterial.glsl-092e1a97.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-43e030be.js +653 -0
- package/dist/DefaultTheme-59d78c72.js +130 -0
- package/dist/DeleteForwardEditsParameters-8b5196fa.js +18 -0
- package/dist/DimensionLayer-6fc6ab12.js +129 -0
- package/dist/DirectLineMeasurement3D-6823c93d.js +449 -0
- package/dist/DistanceMeasurement2D-a6cf62b6.js +303 -0
- package/dist/DoubleArray-bb8ff0fb.js +25 -0
- package/dist/Dropdown/Filter/test.mocks.d.ts +6 -0
- package/dist/Dropdown/List/test.mocks.d.ts +6 -0
- package/dist/EdgeProcessingWorker-c5511714.js +63 -0
- package/dist/EditBusLayer-513ca203.js +107 -0
- package/dist/ElevationInfo-234040e3.js +56 -0
- package/dist/ElevationLayer-599949a0.js +129 -0
- package/dist/ElevationQuery-aaa7fb05.js +598 -0
- package/dist/ElevationSamplerWorker-07be3a80.js +62 -0
- package/dist/ExportImageParameters-b28e28df.js +66 -0
- package/dist/ExportStrategy-d6fd38ed.js +93 -0
- package/dist/ExportWMSImageParameters-be4cc5df.js +33 -0
- package/dist/External-55b35c8d.js +110 -0
- package/dist/Faq/Faq.d.ts +1 -1
- package/dist/Faq/index.d.ts +1 -1
- package/dist/FeatureCollectionSnappingSource-fce9fa91.js +130 -0
- package/dist/FeatureCommandQueue-4e426066.js +1244 -0
- package/dist/FeatureEffect-0a86f0ba.js +39 -0
- package/dist/FeatureEffectLayer-13705792.js +13 -0
- package/dist/FeatureFilter-1635b86a.js +27 -0
- package/dist/FeatureLayer-d2f8e7c0.js +693 -0
- package/dist/FeatureLayerBase-40e10dd6.js +148 -0
- package/dist/FeatureLayerSource-ebd2bea5.js +444 -0
- package/dist/FeatureLayerView2D-23240236.js +1967 -0
- package/dist/FeaturePipelineWorker-8d07a1dd.js +3633 -0
- package/dist/FeatureReductionLayer-55609d4e.js +225 -0
- package/dist/FeatureReductionSelection-2f351ee7.js +22 -0
- package/dist/FeatureServiceSnappingSource-513edf0d.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-d6deecd4.js +747 -0
- package/dist/FeatureSet-ffd45984.js +188 -0
- package/dist/FeatureStore-9fd6c0f8.js +131 -0
- package/dist/FeatureTemplate-e4854302.js +12 -0
- package/dist/FeatureType-b4ef51c2.js +25 -0
- package/dist/FieldsIndex-91fb234a.js +109 -0
- package/dist/FormTemplate-67f4d44e.js +350 -0
- package/dist/GeoJSONLayer-e3495648.js +236 -0
- package/dist/GeoJSONSourceWorker-b0ee6d8e.js +247 -0
- package/dist/GeoRSSLayer-afac8cf1.js +73 -0
- package/dist/GeoRSSLayerView2D-b03f6564.js +140 -0
- package/dist/GeometryUtils-058e30f4.js +403 -0
- package/dist/GraphicContainer-d0803f7a.js +26 -0
- package/dist/GraphicManipulator-797ae6c6.js +1499 -0
- package/dist/GraphicsLayer-a30f80da.js +38 -0
- package/dist/GraphicsLayerView2D-0c92e0f2.js +114 -0
- package/dist/GraphicsSnappingSource-e928ab8c.js +273 -0
- package/dist/GraphicsView2D-963eb026.js +620 -0
- package/dist/GroupLayer-7f131ab8.js +147 -0
- package/dist/GroupLayerView2D-5fcc27fc.js +98 -0
- package/dist/HUDMaterial.glsl-3b450c01.js +65 -0
- package/dist/HighlightCounter-fda615cd.js +41 -0
- package/dist/HighlightGraphicContainer-8cfde780.js +18 -0
- package/dist/I3SBinaryReader-a4021fad.js +310 -0
- package/dist/I3SLayerDefinitions-f004f8b6.js +55 -0
- package/dist/I3SUtil-040e44af.js +59 -0
- package/dist/IdentityManager-012e74ca.js +899 -0
- package/dist/ImageHistogramParameters-f7c4c804.js +905 -0
- package/dist/ImageryLayer-c3f0176f.js +1799 -0
- package/dist/ImageryLayerView2D-5a14beb5.js +352 -0
- package/dist/ImageryTileLayer-a93e8471.js +2157 -0
- package/dist/ImageryTileLayerView2D-3e9fea94.js +1110 -0
- package/dist/Indices-f0dca4b5.js +67 -0
- package/dist/Input/index.d.ts +4547 -3
- package/dist/IntegratedMesh3DTilesLayer-7e70c76e.js +112 -0
- package/dist/IntegratedMeshLayer-2283f8d9.js +141 -0
- package/dist/InteractiveAnalysisViewModel-f0a0c72a.js +7397 -0
- package/dist/InterleavedLayout-9490090b.js +163 -0
- package/dist/KMLLayer-06b7037f.js +162 -0
- package/dist/KMLLayerView2D-59f96ec9.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-6c8c4aae.js +43 -0
- package/dist/LRUCache-fc532e9b.js +32 -0
- package/dist/LabelClass-eae6271b.js +135 -0
- package/dist/LabelMetric-ee740bd1.js +400 -0
- package/dist/LaserlinePath.glsl-f58264f5.js +64 -0
- package/dist/Laserlines.glsl-14ab8523.js +65 -0
- package/dist/LayerFloorInfo-6ac1a57d.js +15 -0
- package/dist/LayerView-e41297e4.js +206 -0
- package/dist/LercWorker-22ed35b2.js +157 -0
- package/dist/LineOfSightLayer-6bf67bb7.js +147 -0
- package/dist/LinkChartLayer-e9a861f0.js +1027 -0
- package/dist/Lyr3DWorker-29f7a041.js +82 -0
- package/dist/MagnifierPrograms-1584f9b5.js +806 -0
- package/dist/MapImageLayer-b89cf158.js +169 -0
- package/dist/MapImageLayerView2D-e3f4a4cc.js +146 -0
- package/dist/MapNotesLayer-966f3446.js +283 -0
- package/dist/MapNotesLayerView2D-4aedef2a.js +161 -0
- package/dist/MapServiceLayerViewHelper-4f262166.js +288 -0
- package/dist/MeasurementWidgetContent-82971f95.js +2642 -0
- package/dist/MediaLayer-697a7c14.js +523 -0
- package/dist/MediaLayerView2D-64897044.js +332 -0
- package/dist/MemCache-0861cc28.js +227 -0
- package/dist/MemorySourceWorker-e1c531ac.js +222 -0
- package/dist/Mesh-44c8f6ba.js +980 -0
- package/dist/MeshLocalVertexSpace-6fe3a662.js +19 -0
- package/dist/MultiOriginJSONSupport-248453ac.js +158 -0
- package/dist/Notifications/index.d.ts +1 -0
- package/dist/OGCFeatureLayer-2daa0551.js +211 -0
- package/dist/OGCFeatureLayerView2D-7cebf7e0.js +82 -0
- package/dist/ObjectStack-424092a9.js +21 -0
- package/dist/Octree-21d216f2.js +495 -0
- package/dist/OpenStreetMapLayer-ade6fa9d.js +30 -0
- package/dist/OperationalLayer-097ad3e0.js +44 -0
- package/dist/OrderByInfo-e9ed942d.js +16 -0
- package/dist/OrderedLayer-fef2b56e.js +26 -0
- package/dist/OrientedImageryLayer-424a6234.js +216 -0
- package/dist/OverlayCompositing.glsl-1954a291.js +65 -0
- package/dist/OverrideHelper-f8aace2c.js +242 -0
- package/dist/PBFDecoderWorker-15cd639d.js +213 -0
- package/dist/PointCloudLayer-c820d269.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-e7d37f08.js +115 -0
- package/dist/PointCloudWorker-3e28270d.js +212 -0
- package/dist/PooledRBush-e4cbf810.js +272 -0
- package/dist/Popup-2c03dbc0.js +3990 -0
- package/dist/PortalLayer-09e5a300.js +126 -0
- package/dist/Program-ed5a5aa3.js +694 -0
- package/dist/ProgramTemplate-976cfde1.js +35 -0
- package/dist/QueryEngine-8915348b.js +896 -0
- package/dist/QueryTask-f386d91d.js +119 -0
- package/dist/RasterSymbolizer-6177c6ec.js +3024 -0
- package/dist/RasterVFDisplayObject-6411b56f.js +581 -0
- package/dist/RasterWorker-f825daf0.js +78 -0
- package/dist/RawBlockCache-0d61962b.js +185 -0
- package/dist/RealisticTree.glsl-c9fd0d3c.js +42 -0
- package/dist/RefreshableLayer-0945a308.js +80 -0
- package/dist/RefreshableLayerView-4956f17c.js +16 -0
- package/dist/Relationship-9a82bd43.js +64 -0
- package/dist/RelationshipQuery-68ad49a7.js +22 -0
- package/dist/RenderingContext-49610ad9.js +889 -0
- package/dist/RibbonLine.glsl-6314f72e.js +65 -0
- package/dist/RouteLayer-ff5c8f33.js +786 -0
- package/dist/RouteLayerView2D-2cc60ad2.js +195 -0
- package/dist/SDFHelper-b08be611.js +140 -0
- package/dist/SSAO.glsl-0e92c4e5.js +43 -0
- package/dist/SSAOBlur.glsl-a2bb2587.js +42 -0
- package/dist/ScaleRangeLayer-ab226dbd.js +21 -0
- package/dist/SceneLayer-884ec175.js +542 -0
- package/dist/SceneLayerSnappingSource-aa2944b9.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-5616c206.js +112 -0
- package/dist/SceneLayerWorker-9745b8b5.js +164 -0
- package/dist/SceneService-da855dda.js +215 -0
- package/dist/Scheduler-b3c40220.js +373 -0
- package/dist/Search/index.d.ts +1 -0
- package/dist/Search/test.mocks.d.ts +3 -0
- package/dist/Search/utils.d.ts +3 -0
- package/dist/Select/index.d.ts +3 -3
- package/dist/ShadedColorMaterial.glsl-f953e894.js +64 -0
- package/dist/SnappingOperation-be595c42.js +48 -0
- package/dist/SourceLayerData-ec8ab72c.js +116 -0
- package/dist/SpatialFilter-7d64232d.js +1701 -0
- package/dist/Stop-c022e866.js +281 -0
- package/dist/StreamLayer-d603abd8.js +188 -0
- package/dist/StreamLayerView2D-6d6618cf.js +164 -0
- package/dist/StyleRepository-2f08de17.js +2212 -0
- package/dist/SublayersOwner-cc0e4f54.js +545 -0
- package/dist/SubtypeGroupLayer-bacf048d.js +514 -0
- package/dist/SubtypeGroupLayerView2D-b3ed2c1a.js +84 -0
- package/dist/TechniqueInstance-397b7dc2.js +233 -0
- package/dist/TemporalLayer-7844bd88.js +23 -0
- package/dist/Texture-b1727861.js +501 -0
- package/dist/TextureOnly.glsl-ffd4a7df.js +65 -0
- package/dist/Theme-12cb681b.js +3426 -0
- package/dist/Tick-25d07d27.js +723 -0
- package/dist/TileContainer-ab77d7a6.js +31 -0
- package/dist/TileInfoTilemapCache-3e97ab02.js +38 -0
- package/dist/TileLayer-03cfc8ab.js +194 -0
- package/dist/TileLayerView2D-3cfd6a21.js +187 -0
- package/dist/TilemapCache-36e3c4b7.js +189 -0
- package/dist/TimeInfo-cea2517f.js +42 -0
- package/dist/TimeOnly-5a143001.js +706 -0
- package/dist/Tooltip-2b4711cb.js +138 -0
- package/dist/TopFeaturesQuery-285284f1.js +32 -0
- package/dist/TurboLine-708823a3.js +565 -0
- package/dist/UniqueValueRenderer-3d92c0b9.js +1039 -0
- package/dist/UnknownLayer-d3dbe7c9.js +30 -0
- package/dist/UnknownTimeZone-ed4def19.js +15 -0
- package/dist/UnsupportedLayer-40bbb9f5.js +31 -0
- package/dist/UpdateTracking2D-23c8ff3f.js +8566 -0
- package/dist/Upload/index.d.ts +1 -1
- package/dist/Util-2ba07f64.js +57 -0
- package/dist/VectorTileLayer-ba191a02.js +544 -0
- package/dist/VectorTileLayerView2D-bd3971cd.js +2108 -0
- package/dist/Version-d45bee25.js +33 -0
- package/dist/VertexArrayObject-08a9d938.js +73 -0
- package/dist/VertexColor.glsl-cfafd4c9.js +2683 -0
- package/dist/VertexSnappingCandidate-cbae227c.js +13 -0
- package/dist/VideoLayerView2D-ec66c226.js +124 -0
- package/dist/VoxelLayer-888a65f9.js +631 -0
- package/dist/WFSLayer-786bdecd.js +221 -0
- package/dist/WFSSourceWorker-a212500b.js +157 -0
- package/dist/WGLContainer-f05c906a.js +5426 -0
- package/dist/WMSLayer-b2c46060.js +536 -0
- package/dist/WMSLayerView2D-a90672e9.js +117 -0
- package/dist/WMTSLayer-860b1a45.js +531 -0
- package/dist/WMTSLayerView2D-c492825d.js +142 -0
- package/dist/WebTileLayer-e178eb17.js +110 -0
- package/dist/WhereClause-ad3cc5ae.js +2766 -0
- package/dist/WorkerHandle-ef6ad49b.js +47 -0
- package/dist/WorkerTileHandler-c2b98dae.js +1539 -0
- package/dist/action-46ccf03a.js +198 -0
- package/dist/action-group-9785519d.js +145 -0
- package/dist/action-menu-f423306a.js +1759 -0
- package/dist/agrotools-theme.css +2 -2
- package/dist/agrotools-theme.css.map +1 -1
- package/dist/apng-66c828d8.js +392 -0
- package/dist/arcade-af30f385.js +229 -0
- package/dist/arcadeAsyncRuntime-fdce05e3.js +943 -0
- package/dist/arcadeUtils-2b5a1e68.js +8741 -0
- package/dist/arcgis-knowledge-client-core-192a1ac0.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-4fb6c777.js +1218 -0
- package/dist/arcgisLayers-f43f9183.js +152 -0
- package/dist/associatedFeatureServiceUtils-15949591.js +92 -0
- package/dist/axisAngleDegrees-de05cd64.js +49 -0
- package/dist/basis_transcoder-6f118404.js +1248 -0
- package/dist/calcite-action-bar-9722a11e.js +303 -0
- package/dist/calcite-action-f5829479.js +22 -0
- package/dist/calcite-action-group-3e77994f.js +28 -0
- package/dist/calcite-button-8979d383.js +228 -0
- package/dist/calcite-flow-b50ce308.js +128 -0
- package/dist/calcite-flow-item-57549b16.js +499 -0
- package/dist/calcite-icon-fb43725c.js +16 -0
- package/dist/calcite-input-fcc054c7.js +24 -0
- package/dist/calcite-label-10d65c11.js +79 -0
- package/dist/calcite-list-2847bddc.js +2135 -0
- package/dist/calcite-list-item-53cde043.js +576 -0
- package/dist/calcite-list-item-group-256eb990.js +71 -0
- package/dist/calcite-loader-022a5436.js +14 -0
- package/dist/calcite-modal-5b1a23d9.js +333 -0
- package/dist/calcite-notice-17009704.js +181 -0
- package/dist/calcite-option-c7d00181.js +94 -0
- package/dist/calcite-scrim-1dced2db.js +18 -0
- package/dist/calcite-select-a96a55a3.js +231 -0
- package/dist/capabilities-3f86754a.js +50 -0
- package/dist/chartCommon-af8c14ae.js +256 -0
- package/dist/chartUtilsAm5-418cf95f.js +2954 -0
- package/dist/clientSideDefaults-2aad569c.js +39 -0
- package/dist/colorRamps-0fae1fde.js +38 -0
- package/dist/colorUtils-6d5e716b.js +164 -0
- package/dist/commonProperties-d1f695a2.js +60 -0
- package/dist/computeTranslationToOriginAndRotation-cba163ab.js +60 -0
- package/dist/conditionalSlot-14f35023.js +27 -0
- package/dist/createConnection-f3b9e606.js +299 -0
- package/dist/dataUtils-65604399.js +1421 -0
- package/dist/deduplicate-16f30199.js +89 -0
- package/dist/defaults-b7c93d2a.js +31 -0
- package/dist/deleteForwardEdits-f31f885d.js +13 -0
- package/dist/diffUtils-54c1c039.js +90 -0
- package/dist/drapedUtils-166cd4c2.js +75 -0
- package/dist/earcut-ffaa9a50.js +292 -0
- package/dist/edgeProcessing-1a2c4169.js +252 -0
- package/dist/editingSupport-ffa6f639.js +203 -0
- package/dist/editsZScale-2840378a.js +37 -0
- package/dist/elevationInfoUtils-c1caf596.js +126 -0
- package/dist/executeForIds-b9c9164b.js +14 -0
- package/dist/executeForTopCount-8a73aea7.js +17 -0
- package/dist/executeForTopExtents-a3d0b42e.js +17 -0
- package/dist/executeForTopIds-f14d5790.js +17 -0
- package/dist/executeQueryJSON-6cd89bed.js +15 -0
- package/dist/executeQueryPBF-e1d32cfc.js +152 -0
- package/dist/executeRelationshipQuery-5cadcb20.js +53 -0
- package/dist/executeTopFeaturesQuery-32dda453.js +18 -0
- package/dist/featureConversionUtils-a5f0b9b2.js +479 -0
- package/dist/featureLayerUtils-828813e8.js +250 -0
- package/dist/featureLayerUtils-9e9f97c1.js +142 -0
- package/dist/featureSetUtils-2f86a02f.js +2530 -0
- package/dist/featuresetbase-bb981400.js +707 -0
- package/dist/featuresetgeom-0185b49f.js +99 -0
- package/dist/featuresetstats-3d689b79.js +81 -0
- package/dist/featuresetstring-83733fad.js +95 -0
- package/dist/fetchService-25e9ba70.js +33 -0
- package/dist/fieldProperties-cd5649d9.js +33 -0
- package/dist/floatRGBA-005cc596.js +20 -0
- package/dist/form-41e8f739.js +138 -0
- package/dist/geohashUtils-776cae3b.js +85 -0
- package/dist/geojson-7ef69d00.js +208 -0
- package/dist/geomasync-43a66474.js +567 -0
- package/dist/geometryEngine-e18a460d.js +192 -0
- package/dist/geometryEngineAsync-ae21d4e2.js +217 -0
- package/dist/geometryEngineBase-d653892b.js +18463 -0
- package/dist/geometryEngineJSON-031f6196.js +46 -0
- package/dist/geometryEngineJSON-9aeb41cd.js +171 -0
- package/dist/geometryEngineWorker-1c2f96e6.js +11 -0
- package/dist/geometryServiceUtils-50afe031.js +28 -0
- package/dist/georeference-cf051555.js +291 -0
- package/dist/gif-3fe5f761.js +323 -0
- package/dist/gltfexport-3ec498d6.js +705 -0
- package/dist/groupLayerUtils-5b8e1f89.js +39 -0
- package/dist/heatmapUtils-b512588d.js +45 -0
- package/dist/highlightReasons-b0f772b2.js +19 -0
- package/dist/hydrated-36edecd6.js +40 -0
- package/dist/i3s-239f062a.js +809 -0
- package/dist/icon-5e93376e.js +127 -0
- package/dist/imageBitmapUtils-142daeaf.js +23 -0
- package/dist/imageUtils-27ed5e73.js +89 -0
- package/dist/imageUtils-901282e9.js +69 -0
- package/dist/imageryUtils-b1dd3a54.js +43 -0
- package/dist/index-6ebf29c1.js +43667 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +17 -13
- package/dist/input-message-20d19cfb.js +92 -0
- package/dist/input2-8da11a51.js +575 -0
- package/dist/interactive-bcb1b82d.js +80 -0
- package/dist/jsonContext-45fce1e1.js +15 -0
- package/dist/jsonUtils-09f69988.js +86 -0
- package/dist/jsonUtils-1f447d0c.js +476 -0
- package/dist/jsonUtils-db906457.js +59 -0
- package/dist/kmlUtils-6412718d.js +112 -0
- package/dist/knowledgeGraphService-80890106.js +739 -0
- package/dist/knowledgegraph-475723f0.js +149 -0
- package/dist/labelUtils-85708580.js +61 -0
- package/dist/labelingInfo-62fc9d21.js +46 -0
- package/dist/layersCreator-a94b60fe.js +151 -0
- package/dist/layersLoader-39c74edb.js +197 -0
- package/dist/lazyLayerLoader-7922c10d.js +10 -0
- package/dist/lclayout-6ac84378.js +773 -0
- package/dist/lengthUtils-6a89d855.js +5 -0
- package/dist/lerc-wasm-b8b3cd2c.js +325 -0
- package/dist/libtess-61451fa0.js +269 -0
- package/dist/libtess-asm-fef1a4ca.js +3673 -0
- package/dist/lineSegment-f45db35c.js +76 -0
- package/dist/loadGLTFMesh-2f9cee21.js +181 -0
- package/dist/loadable-c29cb205.js +24 -0
- package/dist/loader-d9b4787f.js +79 -0
- package/dist/lyr3DWorker-33babc2c.js +2108 -0
- package/dist/mapViewDeps-f5b886c8.js +3052 -0
- package/dist/mediaLayerUtils-5a2c2fe8.js +35 -0
- package/dist/meshFeatureSet-2312bbe6.js +126 -0
- package/dist/meshVertexSpaceUtils-c9b69510.js +58 -0
- package/dist/multidimensionalUtils-e85f5a78.js +290 -0
- package/dist/normalizeUtilsSync-555b1847.js +181 -0
- package/dist/number-72e1a662.js +128 -0
- package/dist/objectResourceUtils-abe804cf.js +1455 -0
- package/dist/observers-f3bd3593.js +30 -0
- package/dist/ogcFeatureUtils-7097c17e.js +206 -0
- package/dist/openCloseComponent-67a2c20c.js +37 -0
- package/dist/orientedBoundingBox-4ae2c366.js +447 -0
- package/dist/parser-7a76caf9.js +488 -0
- package/dist/pbf-0b9b579c.js +215 -0
- package/dist/pbfQueryUtils-baba23c7.js +422 -0
- package/dist/pe-wasm-d080c07b.js +887 -0
- package/dist/persistable-82932da9.js +89 -0
- package/dist/perspectiveUtils-1b383b17.js +42 -0
- package/dist/pieChart-eca78f7c.js +555 -0
- package/dist/plane-84e27261.js +160 -0
- package/dist/popupUtils-b72d32fb.js +22 -0
- package/dist/popupUtils-cde1d105.js +50 -0
- package/dist/portalItemUtils-28314a3f.js +57 -0
- package/dist/portalLayers-eeaa6e57.js +312 -0
- package/dist/portalUtils-457f542e.js +7 -0
- package/dist/programUtils-0c20a48e.js +59 -0
- package/dist/project-1b5431dd.js +21 -0
- package/dist/projectPointToVector-1f1d1dc7.js +14 -0
- package/dist/projectVectorToVector-b7e757a1.js +13 -0
- package/dist/quantityUtils-b64583f9.js +33 -0
- package/dist/quantizationUtils-9e478e23.js +68 -0
- package/dist/quat-5502b70d.js +104 -0
- package/dist/query-b2397453.js +89 -0
- package/dist/queryAttachments-4361fd2f.js +39 -0
- package/dist/queryEngineUtils-f24bc98c.js +21 -0
- package/dist/queryTopFeatures-e06aa562.js +50 -0
- package/dist/queryZScale-b18ec359.js +12 -0
- package/dist/rasterProjectionHelper-935c256c.js +577 -0
- package/dist/rasterUtils-efad8a20.js +122 -0
- package/dist/rasterizingUtils-80de9b14.js +46 -0
- package/dist/request-cae502b7.js +46 -0
- package/dist/requestImageUtils-caebcf1e.js +8 -0
- package/dist/resourceExtension-7d14f4fc.js +17 -0
- package/dist/resourceUtils-8d97f5bf.js +42 -0
- package/dist/resourceUtils-be991ca4.js +69 -0
- package/dist/resourceUtils-fa1a565f.js +62 -0
- package/dist/saveAPIKeyUtils-9f0454db.js +8 -0
- package/dist/saveUtils-22a6caa6.js +24 -0
- package/dist/scaleUtils-ba5596ad.js +23 -0
- package/dist/scrim-5b1b6156.js +114 -0
- package/dist/serviceCapabilitiesUtils-3a47b26b.js +64 -0
- package/dist/sourceUtils-ded5acd6.js +71 -0
- package/dist/sphere-418b76df.js +199 -0
- package/dist/statsWorker-a082453a.js +37 -0
- package/dist/streamLayerUtils-22aa35f2.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-aa4777b6.js +75 -0
- package/dist/styleUtils-e5f7ddb7.js +14 -0
- package/dist/sublayerUtils-7c5ebfea.js +37 -0
- package/dist/substitute-da3c695d.js +52 -0
- package/dist/symbolColorUtils-5d3e355f.js +8 -0
- package/dist/symbolLayerUtils-47cdd4d1.js +31 -0
- package/dist/symbologySnappingCandidates-6ebf1df0.js +221 -0
- package/dist/t9n-c80e56d9.js +349 -0
- package/dist/testSVGPremultipliedAlpha-b9ff88ef.js +94 -0
- package/dist/timeSupport-8d2432f7.js +410 -0
- package/dist/triangle-07f96fb9.js +98 -0
- package/dist/unitConversionUtils-c1bfd22b.js +17 -0
- package/dist/unitFormatUtils-e75be0c3.js +40 -0
- package/dist/uploadAssetErrors-3493bdb9.js +70 -0
- package/dist/uploadAssets-24fe5279.js +330 -0
- package/dist/utils-17d83806.js +2746 -0
- package/dist/utils-717efd4b.js +73 -0
- package/dist/utils-74e8e651.js +433 -0
- package/dist/utils-7c8f1d3f.js +232 -0
- package/dist/utils-94cbe432.js +79 -0
- package/dist/utils-a76b92ed.js +34 -0
- package/dist/utils-e73651cf.js +419 -0
- package/dist/utils-f46de72c.js +91 -0
- package/dist/utils3-eb04cacb.js +75 -0
- package/dist/vec3-61daf837.js +81 -0
- package/dist/vec42-27060a00.js +125 -0
- package/dist/versionUtils-c9c03a5d.js +161 -0
- package/dist/visualVariableUtils-bc9bfef1.js +267 -0
- package/dist/webStyleSymbolUtils-0990caa8.js +48 -0
- package/dist/webglDeps-812387f7.js +23 -0
- package/dist/wfsUtils-fdccd660.js +343 -0
- package/dist/workerHelper-d8d5f17b.js +11 -0
- package/dist/xyChart-94c1ef04.js +3335 -0
- package/package.json +1 -1
- package/dist/AGraphicContainer-98a4c8a4.js +0 -109
- package/dist/APIKeyMixin-9511e0a5.js +0 -19
- package/dist/Accordion/Accordion.d.ts +0 -49
- package/dist/Analysis-4b1d1fb5.js +0 -31
- package/dist/ArcGISCachedService-93e2cb27.js +0 -47
- package/dist/ArcGISService-3f8d89c1.js +0 -25
- package/dist/AreaMeasurement2D-e0bb230c.js +0 -405
- package/dist/AreaMeasurement3D-a9959ecf.js +0 -488
- package/dist/AttachmentInfo-601c56e2.js +0 -34
- package/dist/AttachmentQuery-3504d550.js +0 -18
- package/dist/AttributeStore-b90878e3.js +0 -1707
- package/dist/Avatar/Avatar.d.ts +0 -66
- package/dist/BaseDynamicLayerView2D-b2faf028.js +0 -63
- package/dist/BingMapsLayer-5d79fe2b.js +0 -112
- package/dist/Bitmap-f775c851.js +0 -128
- package/dist/BitmapContainer-af5942b8.js +0 -23
- package/dist/BlendLayer-a792edf6.js +0 -13
- package/dist/BoundsStore-789624df.js +0 -63
- package/dist/BufferObject-cbd0168e.js +0 -100
- package/dist/BufferView-004ad517.js +0 -683
- package/dist/BuildingSceneLayer-25bc760b.js +0 -535
- package/dist/Button/Button.d.ts +0 -82
- package/dist/Button-70963624.js +0 -36
- package/dist/CSVLayer-fd3b6750.js +0 -208
- package/dist/CSVSourceWorker-eb24cd85.js +0 -367
- package/dist/CatalogDynamicGroupLayerView2D-dfc700a4.js +0 -66
- package/dist/CatalogFootprintLayerView2D-6eb16597.js +0 -76
- package/dist/CatalogLayer-1cc632fe.js +0 -262
- package/dist/CatalogLayerView2D-d143aa34.js +0 -52
- package/dist/Checkbox/Checkbox.d.ts +0 -87
- package/dist/ClassBreaksDefinition-07ba0c64.js +0 -18
- package/dist/ColorMaterial.glsl-e7801766.js +0 -64
- package/dist/ColorSet-df5696b5.js +0 -45
- package/dist/ColorStop-7187f368.js +0 -29
- package/dist/Container-ac97765a.js +0 -521
- package/dist/CustomParametersMixin-b3432b3e.js +0 -12
- package/dist/DataTable/Column/Column.d.ts +0 -36
- package/dist/DataTable/Counters/Counters.d.ts +0 -41
- package/dist/DataTable/DataTable.d.ts +0 -113
- package/dist/DefaultMaterial.glsl-3cc4efe7.js +0 -42
- package/dist/DefaultMaterial_COLOR_GAMMA-337c63aa.js +0 -653
- package/dist/DefaultTheme-12dffc66.js +0 -130
- package/dist/DeleteForwardEditsParameters-ae76d898.js +0 -18
- package/dist/DimensionLayer-9eb47c76.js +0 -129
- package/dist/DirectLineMeasurement3D-e9903136.js +0 -449
- package/dist/DistanceMeasurement2D-a4853462.js +0 -303
- package/dist/DoubleArray-5076283e.js +0 -25
- package/dist/EdgeProcessingWorker-c1783ddd.js +0 -63
- package/dist/EditBusLayer-e812f4c9.js +0 -107
- package/dist/ElevationInfo-fad03d5e.js +0 -56
- package/dist/ElevationLayer-397792d5.js +0 -129
- package/dist/ElevationQuery-beceb62f.js +0 -598
- package/dist/ElevationSamplerWorker-0048a204.js +0 -62
- package/dist/ExportImageParameters-c6c4bc61.js +0 -66
- package/dist/ExportStrategy-908f5b8d.js +0 -93
- package/dist/ExportWMSImageParameters-34da6b46.js +0 -33
- package/dist/External-14daf0c1.js +0 -110
- package/dist/FeatureCollectionSnappingSource-f97a1829.js +0 -130
- package/dist/FeatureCommandQueue-d4817eac.js +0 -1244
- package/dist/FeatureEffect-08976bbd.js +0 -39
- package/dist/FeatureEffectLayer-05c258f4.js +0 -13
- package/dist/FeatureFilter-8c5e44b1.js +0 -27
- package/dist/FeatureLayer-d3659466.js +0 -693
- package/dist/FeatureLayerBase-9b63f732.js +0 -148
- package/dist/FeatureLayerSource-960f1c01.js +0 -444
- package/dist/FeatureLayerView2D-7503e1ed.js +0 -1967
- package/dist/FeaturePipelineWorker-d4301d2a.js +0 -3633
- package/dist/FeatureReductionLayer-e6cf73ac.js +0 -225
- package/dist/FeatureReductionSelection-d90249a7.js +0 -22
- package/dist/FeatureServiceSnappingSource-9e49ca72.js +0 -481
- package/dist/FeatureServiceSnappingSourceWorker-39b093b3.js +0 -747
- package/dist/FeatureSet-d79f0e48.js +0 -188
- package/dist/FeatureStore-eb4b87c0.js +0 -131
- package/dist/FeatureTemplate-edb1b782.js +0 -12
- package/dist/FeatureType-bba29adb.js +0 -25
- package/dist/FieldsIndex-75cca4d0.js +0 -109
- package/dist/FormTemplate-22911c47.js +0 -350
- package/dist/GeoJSONLayer-b33c96b8.js +0 -236
- package/dist/GeoJSONSourceWorker-b04ff552.js +0 -247
- package/dist/GeoRSSLayer-6e5fcd0e.js +0 -73
- package/dist/GeoRSSLayerView2D-21b6b12e.js +0 -140
- package/dist/GeometryUtils-fa897cbd.js +0 -403
- package/dist/GraphicContainer-1fd6bfce.js +0 -26
- package/dist/GraphicManipulator-f3b7dc9b.js +0 -1499
- package/dist/GraphicsLayer-e0686779.js +0 -38
- package/dist/GraphicsLayerView2D-a7eba2fe.js +0 -114
- package/dist/GraphicsSnappingSource-594f402a.js +0 -273
- package/dist/GraphicsView2D-347562b8.js +0 -620
- package/dist/GroupLayer-7ae0a916.js +0 -147
- package/dist/GroupLayerView2D-ffcde606.js +0 -98
- package/dist/HUDMaterial.glsl-b0a3e0ce.js +0 -65
- package/dist/HighlightCounter-e18f0179.js +0 -41
- package/dist/HighlightGraphicContainer-fd774cea.js +0 -18
- package/dist/I3SBinaryReader-190e99de.js +0 -310
- package/dist/I3SLayerDefinitions-6ddaca60.js +0 -55
- package/dist/I3SUtil-44b83dc0.js +0 -59
- package/dist/IdentityManager-fbe91c13.js +0 -899
- package/dist/ImageHistogramParameters-d64fd9c8.js +0 -905
- package/dist/ImageryLayer-67878a78.js +0 -1799
- package/dist/ImageryLayerView2D-ae45faba.js +0 -352
- package/dist/ImageryTileLayer-9dca8b93.js +0 -2157
- package/dist/ImageryTileLayerView2D-977f66aa.js +0 -1110
- package/dist/Indices-e6dc3b15.js +0 -67
- package/dist/Input/Input.core.d.ts +0 -159
- package/dist/IntegratedMesh3DTilesLayer-8811e7bf.js +0 -112
- package/dist/IntegratedMeshLayer-9162c0b5.js +0 -141
- package/dist/InteractiveAnalysisViewModel-b046fcb9.js +0 -7397
- package/dist/InterleavedLayout-32973c8a.js +0 -163
- package/dist/KMLLayer-80f81df7.js +0 -162
- package/dist/KMLLayerView2D-b6ba3b80.js +0 -253
- package/dist/KnowledgeGraphLayerView2D-ae91bd81.js +0 -43
- package/dist/LRUCache-27e8c401.js +0 -32
- package/dist/LabelClass-d9a476d6.js +0 -135
- package/dist/LabelMetric-e2728bbf.js +0 -400
- package/dist/LaserlinePath.glsl-60d00e61.js +0 -64
- package/dist/Laserlines.glsl-499a6cbf.js +0 -65
- package/dist/LayerFloorInfo-d05cf9dd.js +0 -15
- package/dist/LayerView-036988a9.js +0 -206
- package/dist/Legend/Legend.d.ts +0 -73
- package/dist/LercWorker-b1b4bb47.js +0 -157
- package/dist/LineOfSightLayer-9a9a60b7.js +0 -147
- package/dist/LinkChartLayer-d61803bb.js +0 -1027
- package/dist/Lyr3DWorker-87be14e0.js +0 -82
- package/dist/MagnifierPrograms-da7a27ab.js +0 -806
- package/dist/Map/Map.d.ts +0 -26
- package/dist/MapImageLayer-f07adf1a.js +0 -169
- package/dist/MapImageLayerView2D-d1b140c3.js +0 -146
- package/dist/MapNotesLayer-c662d147.js +0 -283
- package/dist/MapNotesLayerView2D-bf9ac698.js +0 -161
- package/dist/MapServiceLayerViewHelper-fb724de9.js +0 -288
- package/dist/MeasurementWidgetContent-e4888ef2.js +0 -2642
- package/dist/MediaLayer-36d873a3.js +0 -523
- package/dist/MediaLayerView2D-e58b8ec0.js +0 -332
- package/dist/MemCache-a9232ec2.js +0 -227
- package/dist/MemorySourceWorker-20ff27d6.js +0 -222
- package/dist/Mesh-3839826a.js +0 -980
- package/dist/MeshLocalVertexSpace-00151564.js +0 -19
- package/dist/Modal/Modal.d.ts +0 -106
- package/dist/MultiOriginJSONSupport-bb258670.js +0 -158
- package/dist/OGCFeatureLayer-2a8b7ecc.js +0 -211
- package/dist/OGCFeatureLayerView2D-185f9649.js +0 -82
- package/dist/ObjectStack-10d91171.js +0 -21
- package/dist/Octree-78797046.js +0 -495
- package/dist/OpenStreetMapLayer-b0a17790.js +0 -30
- package/dist/OperationalLayer-55af27d6.js +0 -44
- package/dist/OrderByInfo-22e3c805.js +0 -16
- package/dist/OrderedLayer-1403a591.js +0 -26
- package/dist/OrientedImageryLayer-8ec8d7d1.js +0 -216
- package/dist/OverlayCompositing.glsl-ba3bd81d.js +0 -65
- package/dist/OverrideHelper-82325a2c.js +0 -242
- package/dist/PBFDecoderWorker-f6517afc.js +0 -213
- package/dist/Paginator/Paginator.d.ts +0 -43
- package/dist/PointCloudLayer-cff43a10.js +0 -197
- package/dist/PointCloudUniqueValueRenderer-f337a895.js +0 -115
- package/dist/PointCloudWorker-cdb28dc1.js +0 -212
- package/dist/PooledRBush-ee4e60af.js +0 -272
- package/dist/Popup-c7f55588.js +0 -3990
- package/dist/PortalLayer-07b3c53e.js +0 -126
- package/dist/Program-ba2f18b2.js +0 -694
- package/dist/ProgramTemplate-eee4f097.js +0 -35
- package/dist/ProgressBar/ProgressBar.d.ts +0 -73
- package/dist/QueryEngine-10c97624.js +0 -896
- package/dist/QueryTask-115430b6.js +0 -119
- package/dist/RadioButton/RadioButton.d.ts +0 -87
- package/dist/RasterSymbolizer-fbf433fe.js +0 -3024
- package/dist/RasterVFDisplayObject-20b0dd86.js +0 -581
- package/dist/RasterWorker-44c37e20.js +0 -78
- package/dist/RawBlockCache-25203dbd.js +0 -185
- package/dist/RealisticTree.glsl-bc07c4dc.js +0 -42
- package/dist/RefreshableLayer-9550b85a.js +0 -80
- package/dist/RefreshableLayerView-601f7038.js +0 -16
- package/dist/Relationship-c662830e.js +0 -64
- package/dist/RelationshipQuery-765f068e.js +0 -22
- package/dist/RenderingContext-3db74548.js +0 -889
- package/dist/RibbonLine.glsl-c6a715b7.js +0 -65
- package/dist/RouteLayer-3f5411f3.js +0 -786
- package/dist/RouteLayerView2D-a5fd4cbf.js +0 -195
- package/dist/SDFHelper-a34e90ee.js +0 -140
- package/dist/SSAO.glsl-5491a708.js +0 -43
- package/dist/SSAOBlur.glsl-f3068b8e.js +0 -42
- package/dist/ScaleRangeLayer-7ddf00b4.js +0 -21
- package/dist/SceneLayer-c594bfc3.js +0 -542
- package/dist/SceneLayerSnappingSource-a0504ac7.js +0 -218
- package/dist/SceneLayerSnappingSourceWorker-a04d6692.js +0 -112
- package/dist/SceneLayerWorker-1865768e.js +0 -164
- package/dist/SceneService-fb9f0142.js +0 -215
- package/dist/Scheduler-eacc84bb.js +0 -373
- package/dist/Select/Item/Item.d.ts +0 -104
- package/dist/Select/Multiple/Select.multiple.d.ts +0 -90
- package/dist/Select/Select.core.d.ts +0 -78
- package/dist/Select/Single/Select.single.d.ts +0 -66
- package/dist/ShadedColorMaterial.glsl-db97956b.js +0 -64
- package/dist/SnappingOperation-9622a00d.js +0 -48
- package/dist/SourceLayerData-7016f1a5.js +0 -116
- package/dist/SpatialFilter-d20d4f50.js +0 -1701
- package/dist/Stop-68022e32.js +0 -281
- package/dist/StreamLayer-7c837e3d.js +0 -188
- package/dist/StreamLayerView2D-586f5a6a.js +0 -164
- package/dist/StyleRepository-fba75e70.js +0 -2212
- package/dist/SublayersOwner-3dc574cd.js +0 -545
- package/dist/SubtypeGroupLayer-1f9c5398.js +0 -514
- package/dist/SubtypeGroupLayerView2D-0f108d9d.js +0 -84
- package/dist/Tabs/Tab/Tab.d.ts +0 -69
- package/dist/Tabs/Tabs.d.ts +0 -50
- package/dist/TechniqueInstance-0481dbff.js +0 -233
- package/dist/TemporalLayer-8116b4a4.js +0 -23
- package/dist/Texture-22a8cca5.js +0 -501
- package/dist/TextureOnly.glsl-458f8148.js +0 -65
- package/dist/Theme-f05b8eb0.js +0 -3426
- package/dist/Tick-aef93b48.js +0 -723
- package/dist/TileContainer-0bf0ea1b.js +0 -31
- package/dist/TileInfoTilemapCache-d78858c0.js +0 -38
- package/dist/TileLayer-0edee064.js +0 -194
- package/dist/TileLayerView2D-78d5801b.js +0 -187
- package/dist/TilemapCache-79699d61.js +0 -189
- package/dist/TimeInfo-40c96ade.js +0 -42
- package/dist/TimeOnly-9ee66ca6.js +0 -706
- package/dist/Tipograph/Paragraph/Paragraph.d.ts +0 -25
- package/dist/Tipograph/Title/Title.d.ts +0 -25
- package/dist/Toggle/Toggle.d.ts +0 -45
- package/dist/Tooltip-e7498dc9.js +0 -138
- package/dist/TopFeaturesQuery-ad224e01.js +0 -32
- package/dist/TurboLine-6ab04aef.js +0 -565
- package/dist/UniqueValueRenderer-eaa5f8a6.js +0 -1039
- package/dist/UnknownLayer-e280ddd4.js +0 -30
- package/dist/UnknownTimeZone-220952b5.js +0 -15
- package/dist/UnsupportedLayer-447f7676.js +0 -31
- package/dist/UpdateTracking2D-e9adad8f.js +0 -8566
- package/dist/Upload/Upload.d.ts +0 -129
- package/dist/Util-002f5109.js +0 -57
- package/dist/VectorTileLayer-3210be81.js +0 -544
- package/dist/VectorTileLayerView2D-6a51e3b8.js +0 -2108
- package/dist/Version-3de8cbca.js +0 -33
- package/dist/VertexArrayObject-07998745.js +0 -73
- package/dist/VertexColor.glsl-e415cf02.js +0 -2683
- package/dist/VertexSnappingCandidate-b676241f.js +0 -13
- package/dist/VideoLayerView2D-f659dd0d.js +0 -124
- package/dist/VoxelLayer-003f82ff.js +0 -631
- package/dist/WFSLayer-3da6c5f7.js +0 -221
- package/dist/WFSSourceWorker-9a11693a.js +0 -157
- package/dist/WGLContainer-3d159b63.js +0 -5426
- package/dist/WMSLayer-fc0632f8.js +0 -536
- package/dist/WMSLayerView2D-54e80e1b.js +0 -117
- package/dist/WMTSLayer-9324b12b.js +0 -531
- package/dist/WMTSLayerView2D-3ef936db.js +0 -142
- package/dist/WebTileLayer-45c563ff.js +0 -110
- package/dist/WhereClause-7a28b740.js +0 -2766
- package/dist/WorkerHandle-0d54a6c7.js +0 -47
- package/dist/WorkerTileHandler-786c2b24.js +0 -1539
- package/dist/action-163397e3.js +0 -198
- package/dist/action-group-4859fb97.js +0 -145
- package/dist/action-menu-2d70b2fc.js +0 -1759
- package/dist/apng-9b71d52c.js +0 -392
- package/dist/arcade-fa309282.js +0 -229
- package/dist/arcadeAsyncRuntime-738498fd.js +0 -943
- package/dist/arcadeUtils-f71d80fa.js +0 -8741
- package/dist/arcgis-knowledge-client-core-6056bcea.js +0 -1218
- package/dist/arcgis-knowledge-client-core-simd-9bc1f83e.js +0 -1218
- package/dist/arcgisLayers-b2b878bd.js +0 -152
- package/dist/associatedFeatureServiceUtils-df5b5187.js +0 -92
- package/dist/axisAngleDegrees-32643b7c.js +0 -49
- package/dist/basis_transcoder-3187cc92.js +0 -1248
- package/dist/calcite-action-bar-5a87c23c.js +0 -303
- package/dist/calcite-action-ee2ca847.js +0 -22
- package/dist/calcite-action-group-19aa86ee.js +0 -28
- package/dist/calcite-button-8e9175c0.js +0 -228
- package/dist/calcite-flow-57d26d2d.js +0 -128
- package/dist/calcite-flow-item-4a3e3fc0.js +0 -499
- package/dist/calcite-icon-d99e280a.js +0 -16
- package/dist/calcite-input-28b20785.js +0 -24
- package/dist/calcite-label-4f30e08d.js +0 -79
- package/dist/calcite-list-0cee7628.js +0 -2135
- package/dist/calcite-list-item-0a19efa8.js +0 -576
- package/dist/calcite-list-item-group-0706662f.js +0 -71
- package/dist/calcite-loader-865045b1.js +0 -14
- package/dist/calcite-modal-3e4da6fd.js +0 -333
- package/dist/calcite-notice-50b74ab7.js +0 -181
- package/dist/calcite-option-713c1d40.js +0 -94
- package/dist/calcite-scrim-809fbd0b.js +0 -18
- package/dist/calcite-select-28d8edfc.js +0 -231
- package/dist/capabilities-c8f838be.js +0 -50
- package/dist/chartCommon-13718cda.js +0 -256
- package/dist/chartUtilsAm5-6be145fb.js +0 -2954
- package/dist/clientSideDefaults-5c1f97c9.js +0 -39
- package/dist/colorRamps-8792655e.js +0 -38
- package/dist/colorUtils-54f4b662.js +0 -164
- package/dist/commonProperties-f9559903.js +0 -60
- package/dist/computeTranslationToOriginAndRotation-4876cb93.js +0 -60
- package/dist/conditionalSlot-87175989.js +0 -27
- package/dist/createConnection-f974a00a.js +0 -299
- package/dist/dataUtils-7c276b73.js +0 -1421
- package/dist/deduplicate-59fb9cac.js +0 -89
- package/dist/defaults-2bfa4a36.js +0 -31
- package/dist/deleteForwardEdits-f653b513.js +0 -13
- package/dist/diffUtils-e71a6152.js +0 -90
- package/dist/drapedUtils-b42fcbc6.js +0 -75
- package/dist/earcut-6fa1a128.js +0 -292
- package/dist/edgeProcessing-2ff1f201.js +0 -252
- package/dist/editingSupport-68545668.js +0 -203
- package/dist/editsZScale-c7cdd215.js +0 -37
- package/dist/elevationInfoUtils-5456a079.js +0 -126
- package/dist/executeForIds-4ab75c0d.js +0 -14
- package/dist/executeForTopCount-7e095ec1.js +0 -17
- package/dist/executeForTopExtents-19daf9d0.js +0 -17
- package/dist/executeForTopIds-1ba3a4af.js +0 -17
- package/dist/executeQueryJSON-46168866.js +0 -15
- package/dist/executeQueryPBF-d8623daf.js +0 -152
- package/dist/executeRelationshipQuery-011dfb45.js +0 -53
- package/dist/executeTopFeaturesQuery-02166801.js +0 -18
- package/dist/featureConversionUtils-650d7601.js +0 -479
- package/dist/featureLayerUtils-64e09283.js +0 -142
- package/dist/featureLayerUtils-b07f9c11.js +0 -250
- package/dist/featureSetUtils-9d37d6f8.js +0 -2530
- package/dist/featuresetbase-62aeb079.js +0 -707
- package/dist/featuresetgeom-51f9fc4e.js +0 -99
- package/dist/featuresetstats-4db32894.js +0 -81
- package/dist/featuresetstring-990c3287.js +0 -95
- package/dist/fetchService-5198dd4a.js +0 -33
- package/dist/fieldProperties-edfa24cb.js +0 -33
- package/dist/floatRGBA-516d7961.js +0 -20
- package/dist/form-99719d52.js +0 -138
- package/dist/geohashUtils-2bc76440.js +0 -85
- package/dist/geojson-603231df.js +0 -208
- package/dist/geomasync-e9063b4c.js +0 -567
- package/dist/geometryEngine-d3bb2fd6.js +0 -192
- package/dist/geometryEngineAsync-55aa6170.js +0 -217
- package/dist/geometryEngineBase-527e8b63.js +0 -18463
- package/dist/geometryEngineJSON-28087174.js +0 -46
- package/dist/geometryEngineJSON-d54949f9.js +0 -171
- package/dist/geometryEngineWorker-dc2c7127.js +0 -11
- package/dist/geometryServiceUtils-6a3e1e93.js +0 -28
- package/dist/georeference-ed8b2c30.js +0 -291
- package/dist/gif-204e82dd.js +0 -323
- package/dist/gltfexport-b2566542.js +0 -705
- package/dist/groupLayerUtils-ea9e6359.js +0 -39
- package/dist/heatmapUtils-56758920.js +0 -45
- package/dist/highlightReasons-de432106.js +0 -19
- package/dist/hydrated-0e1c7565.js +0 -40
- package/dist/i3s-bb0b5b67.js +0 -809
- package/dist/icon-c6e3bd23.js +0 -127
- package/dist/imageBitmapUtils-881d8c64.js +0 -23
- package/dist/imageUtils-57eeedc5.js +0 -69
- package/dist/imageUtils-ef69c578.js +0 -89
- package/dist/imageryUtils-23f51cb1.js +0 -43
- package/dist/index-01c737ed.js +0 -42563
- package/dist/input-message-673a9baa.js +0 -92
- package/dist/input2-bbf6454e.js +0 -575
- package/dist/interactive-aeb2cb9f.js +0 -80
- package/dist/jsonContext-2dc288b1.js +0 -15
- package/dist/jsonUtils-1abd4bfc.js +0 -59
- package/dist/jsonUtils-913fa1bd.js +0 -86
- package/dist/jsonUtils-f6a5e63b.js +0 -476
- package/dist/kmlUtils-7c2744fe.js +0 -112
- package/dist/knowledgeGraphService-6a349e04.js +0 -739
- package/dist/knowledgegraph-c91b0bb2.js +0 -149
- package/dist/labelUtils-a3634e8f.js +0 -61
- package/dist/labelingInfo-568c9210.js +0 -46
- package/dist/layersCreator-4a5366ea.js +0 -151
- package/dist/layersLoader-b87d4857.js +0 -197
- package/dist/lazyLayerLoader-8817000c.js +0 -10
- package/dist/lclayout-64c67b4e.js +0 -773
- package/dist/lengthUtils-695e744c.js +0 -5
- package/dist/lerc-wasm-13192bf3.js +0 -325
- package/dist/libtess-asm-4883179d.js +0 -3673
- package/dist/libtess-fc70d1ce.js +0 -269
- package/dist/lineSegment-3aa941f5.js +0 -76
- package/dist/loadGLTFMesh-db6645f5.js +0 -181
- package/dist/loadable-266f324b.js +0 -24
- package/dist/loader-d1ce1bc1.js +0 -79
- package/dist/lyr3DWorker-dd48e619.js +0 -2108
- package/dist/mapViewDeps-226d9da3.js +0 -3052
- package/dist/mediaLayerUtils-ae485c27.js +0 -35
- package/dist/meshFeatureSet-8a2ad011.js +0 -126
- package/dist/meshVertexSpaceUtils-6efe3dcc.js +0 -58
- package/dist/multidimensionalUtils-508a3f3f.js +0 -290
- package/dist/normalizeUtilsSync-1dae280b.js +0 -181
- package/dist/number-5aa3a81b.js +0 -128
- package/dist/objectResourceUtils-642ab03e.js +0 -1455
- package/dist/observers-f646a6a4.js +0 -30
- package/dist/ogcFeatureUtils-46ac1c44.js +0 -206
- package/dist/openCloseComponent-47eb52c6.js +0 -37
- package/dist/orientedBoundingBox-554ccdc6.js +0 -447
- package/dist/parser-0701286c.js +0 -488
- package/dist/pbf-5dd791f5.js +0 -215
- package/dist/pbfQueryUtils-a6ca7e23.js +0 -422
- package/dist/pe-wasm-6c16b121.js +0 -887
- package/dist/persistable-9eb0e8df.js +0 -89
- package/dist/perspectiveUtils-b194621d.js +0 -42
- package/dist/pieChart-b97433d0.js +0 -555
- package/dist/plane-3398eec1.js +0 -160
- package/dist/popupUtils-c444b896.js +0 -22
- package/dist/popupUtils-d871563b.js +0 -50
- package/dist/portalItemUtils-4c4caad0.js +0 -57
- package/dist/portalLayers-cb07742f.js +0 -312
- package/dist/portalUtils-effd590f.js +0 -7
- package/dist/programUtils-65af7b7c.js +0 -59
- package/dist/project-ee9c2947.js +0 -21
- package/dist/projectPointToVector-7dc831a9.js +0 -14
- package/dist/projectVectorToVector-5163db7a.js +0 -13
- package/dist/quantityUtils-5cd4cf90.js +0 -33
- package/dist/quantizationUtils-0a8f74c6.js +0 -68
- package/dist/quat-a508aed3.js +0 -104
- package/dist/query-b6e1fd14.js +0 -89
- package/dist/queryAttachments-7b39ebdc.js +0 -39
- package/dist/queryEngineUtils-cb8e309e.js +0 -21
- package/dist/queryTopFeatures-2e0e3941.js +0 -50
- package/dist/queryZScale-c5733d0a.js +0 -12
- package/dist/rasterProjectionHelper-213afa27.js +0 -577
- package/dist/rasterUtils-f2e44e8b.js +0 -122
- package/dist/rasterizingUtils-25cc0190.js +0 -46
- package/dist/request-e0c679b3.js +0 -46
- package/dist/requestImageUtils-37d79281.js +0 -8
- package/dist/resourceExtension-5f3f1c80.js +0 -17
- package/dist/resourceUtils-0d68cbc2.js +0 -69
- package/dist/resourceUtils-374db840.js +0 -62
- package/dist/resourceUtils-43ce192b.js +0 -42
- package/dist/saveAPIKeyUtils-1a3d4a8a.js +0 -8
- package/dist/saveUtils-43fdc547.js +0 -24
- package/dist/scaleUtils-bdf8b6cb.js +0 -23
- package/dist/scrim-44eb4dc0.js +0 -114
- package/dist/serviceCapabilitiesUtils-823612b8.js +0 -64
- package/dist/sourceUtils-01d115c6.js +0 -71
- package/dist/sphere-908cd9aa.js +0 -199
- package/dist/statsWorker-49f9befe.js +0 -37
- package/dist/streamLayerUtils-29324e05.js +0 -31
- package/dist/styleUtils-82e8da52.js +0 -75
- package/dist/styleUtils-8541d60d.js +0 -14
- package/dist/sublayerUtils-eaac2486.js +0 -37
- package/dist/substitute-1f578d70.js +0 -52
- package/dist/symbolColorUtils-18fd6b3d.js +0 -8
- package/dist/symbolLayerUtils-4c58b291.js +0 -31
- package/dist/symbologySnappingCandidates-14d94b6b.js +0 -221
- package/dist/t9n-c1c2b6c8.js +0 -349
- package/dist/testSVGPremultipliedAlpha-159dac90.js +0 -94
- package/dist/timeSupport-3f529cdb.js +0 -410
- package/dist/triangle-8a3a2ba8.js +0 -98
- package/dist/unitConversionUtils-f0ebaf75.js +0 -17
- package/dist/unitFormatUtils-555e2d94.js +0 -40
- package/dist/uploadAssetErrors-d1389781.js +0 -70
- package/dist/uploadAssets-5e85f09d.js +0 -330
- package/dist/utils-3a10b10c.js +0 -34
- package/dist/utils-505c54e9.js +0 -91
- package/dist/utils-5432e258.js +0 -433
- package/dist/utils-7a88ec6a.js +0 -419
- package/dist/utils-7fa9cdf9.js +0 -2746
- package/dist/utils-d252c575.js +0 -73
- package/dist/utils-f07e00b3.js +0 -232
- package/dist/utils-fda10b4b.js +0 -79
- package/dist/utils3-c34ab97c.js +0 -75
- package/dist/vec3-f79c600d.js +0 -81
- package/dist/vec42-36edeb73.js +0 -125
- package/dist/versionUtils-6935648b.js +0 -161
- package/dist/visualVariableUtils-c425461a.js +0 -267
- package/dist/webStyleSymbolUtils-4f42a29f.js +0 -48
- package/dist/webglDeps-5f18210d.js +0 -23
- package/dist/wfsUtils-6f7f1e3e.js +0 -343
- package/dist/workerHelper-9dc9a790.js +0 -11
- package/dist/xyChart-e5648fee.js +0 -3335
|
@@ -0,0 +1,2108 @@
|
|
|
1
|
+
import { U as Ee, a as $e, cJ as re, c$ as ze, fc as Ve, bO as Fe, n as M, i as j, dL as oe, jC as Ce, ao as qe, aG as F, hX as He, Q as U, gS as ne, f6 as Be, f7 as Ne, f9 as We, g2 as Qe, fd as z, jD as Je, hc as Ke, cZ as Re, z as ae, a3 as Ge, h as Ye, x as $, G as je, s as le, m as he, bz as Xe, a$ as Ze, e as ce, y as et, c as tt } from "./index-6ebf29c1.js";
|
|
2
|
+
import { m as st, p as it } from "./diffUtils-54c1c039.js";
|
|
3
|
+
import { E as L, I as v } from "./enums-25d066fc.js";
|
|
4
|
+
import { t as A } from "./Rect-894f011c.js";
|
|
5
|
+
import { G as rt, D as Le, F as C, I as k, O as ue, R as B } from "./enums-2c166c09.js";
|
|
6
|
+
import { e as Pe, m as Ae } from "./Texture-b1727861.js";
|
|
7
|
+
import { n as X } from "./pbf-0b9b579c.js";
|
|
8
|
+
import { i as ot } from "./rasterizingUtils-80de9b14.js";
|
|
9
|
+
import { e as nt } from "./LRUCache-fc532e9b.js";
|
|
10
|
+
import { w as at, d as lt } from "./GeometryUtils-058e30f4.js";
|
|
11
|
+
import { h as R } from "./BufferObject-22d914df.js";
|
|
12
|
+
import { o as E } from "./VertexArrayObject-08a9d938.js";
|
|
13
|
+
import { e as Q, t as ht, c as ct } from "./config-61215215.js";
|
|
14
|
+
import { r as Me } from "./WGLContainer-f05c906a.js";
|
|
15
|
+
import { n as ut, l as O, r as yt, i as Z, a as D } from "./StyleDefinition-f4862d5a.js";
|
|
16
|
+
import { E as N } from "./Container-f931e682.js";
|
|
17
|
+
import { i as dt } from "./TileContainer-ab77d7a6.js";
|
|
18
|
+
import { s as _t } from "./PooledRBush-e4cbf810.js";
|
|
19
|
+
import { e as ye, s as de } from "./SourceLayerData-ec8ab72c.js";
|
|
20
|
+
import { L as ft, l as _e } from "./StyleRepository-2f08de17.js";
|
|
21
|
+
import { m as pt, u as gt } from "./LayerView-e41297e4.js";
|
|
22
|
+
import "vue";
|
|
23
|
+
import "./floatRGBA-005cc596.js";
|
|
24
|
+
import "./constants-5bd557fe.js";
|
|
25
|
+
import "./MemCache-0861cc28.js";
|
|
26
|
+
import "./definitions-a00a3a6c.js";
|
|
27
|
+
import "./LabelMetric-ee740bd1.js";
|
|
28
|
+
import "./enums-fa8f05ab.js";
|
|
29
|
+
import "./Program-ed5a5aa3.js";
|
|
30
|
+
import "./VertexElementDescriptor-d7c718c2.js";
|
|
31
|
+
import "./vec4f32-b2628ced.js";
|
|
32
|
+
import "./ProgramTemplate-976cfde1.js";
|
|
33
|
+
import "./earcut-ffaa9a50.js";
|
|
34
|
+
import "./featureConversionUtils-a5f0b9b2.js";
|
|
35
|
+
import "./OptimizedGeometry-3b808152.js";
|
|
36
|
+
import "./OptimizedFeatureSet-54e095c4.js";
|
|
37
|
+
import "./parser-7a76caf9.js";
|
|
38
|
+
import "./highlightReasons-b0f772b2.js";
|
|
39
|
+
import "./colorUtils-6d5e716b.js";
|
|
40
|
+
import "./vec42-27060a00.js";
|
|
41
|
+
import "./vec4f64-043e974c.js";
|
|
42
|
+
import "./scaleUtils-ba5596ad.js";
|
|
43
|
+
let V = class {
|
|
44
|
+
constructor(e, s) {
|
|
45
|
+
this._width = 0, this._height = 0, this._free = [], this._width = e, this._height = s, this._free.push(new A(0, 0, e, s));
|
|
46
|
+
}
|
|
47
|
+
get width() {
|
|
48
|
+
return this._width;
|
|
49
|
+
}
|
|
50
|
+
get height() {
|
|
51
|
+
return this._height;
|
|
52
|
+
}
|
|
53
|
+
allocate(e, s) {
|
|
54
|
+
if (e > this._width || s > this._height)
|
|
55
|
+
return new A();
|
|
56
|
+
let t = null, i = -1;
|
|
57
|
+
for (let r = 0; r < this._free.length; ++r) {
|
|
58
|
+
const o = this._free[r];
|
|
59
|
+
e <= o.width && s <= o.height && (t === null || o.y <= t.y && o.x <= t.x) && (t = o, i = r);
|
|
60
|
+
}
|
|
61
|
+
return t === null ? new A() : (this._free.splice(i, 1), t.width < t.height ? (t.width > e && this._free.push(new A(t.x + e, t.y, t.width - e, s)), t.height > s && this._free.push(new A(t.x, t.y + s, t.width, t.height - s))) : (t.width > e && this._free.push(new A(t.x + e, t.y, t.width - e, t.height)), t.height > s && this._free.push(new A(t.x, t.y + s, e, t.height - s))), new A(t.x, t.y, e, s));
|
|
62
|
+
}
|
|
63
|
+
release(e) {
|
|
64
|
+
for (let s = 0; s < this._free.length; ++s) {
|
|
65
|
+
const t = this._free[s];
|
|
66
|
+
if (t.y === e.y && t.height === e.height && t.x + t.width === e.x)
|
|
67
|
+
t.width += e.width;
|
|
68
|
+
else if (t.x === e.x && t.width === e.width && t.y + t.height === e.y)
|
|
69
|
+
t.height += e.height;
|
|
70
|
+
else if (e.y === t.y && e.height === t.height && e.x + e.width === t.x)
|
|
71
|
+
t.x = e.x, t.width += e.width;
|
|
72
|
+
else {
|
|
73
|
+
if (e.x !== t.x || e.width !== t.width || e.y + e.height !== t.y)
|
|
74
|
+
continue;
|
|
75
|
+
t.y = e.y, t.height += e.height;
|
|
76
|
+
}
|
|
77
|
+
this._free.splice(s, 1), this.release(e);
|
|
78
|
+
}
|
|
79
|
+
this._free.push(e);
|
|
80
|
+
}
|
|
81
|
+
}, fe = class {
|
|
82
|
+
constructor(e, s, t) {
|
|
83
|
+
this.width = 0, this.height = 0, this._dirties = [], this._glyphData = [], this._currentPage = 0, this._glyphIndex = {}, this._textures = [], this._rangePromises = /* @__PURE__ */ new Map(), this.width = e, this.height = s, this._glyphSource = t, this._binPack = new V(e - 4, s - 4), this._glyphData.push(new Uint8Array(e * s)), this._dirties.push(!0), this._textures.push(void 0);
|
|
84
|
+
}
|
|
85
|
+
getGlyphItems(e, s) {
|
|
86
|
+
const t = [], i = this._glyphSource, r = /* @__PURE__ */ new Set(), o = 1 / 256;
|
|
87
|
+
for (const a of s) {
|
|
88
|
+
const l = Math.floor(a * o);
|
|
89
|
+
r.add(l);
|
|
90
|
+
}
|
|
91
|
+
const n = [];
|
|
92
|
+
return r.forEach((a) => {
|
|
93
|
+
const l = e + a;
|
|
94
|
+
if (this._rangePromises.has(l))
|
|
95
|
+
n.push(this._rangePromises.get(l));
|
|
96
|
+
else {
|
|
97
|
+
const c = i.getRange(e, a).then(() => {
|
|
98
|
+
this._rangePromises.delete(l);
|
|
99
|
+
}, () => {
|
|
100
|
+
this._rangePromises.delete(l);
|
|
101
|
+
});
|
|
102
|
+
this._rangePromises.set(l, c), n.push(c);
|
|
103
|
+
}
|
|
104
|
+
}), Promise.all(n).then(() => {
|
|
105
|
+
let a = this._glyphIndex[e];
|
|
106
|
+
a || (a = {}, this._glyphIndex[e] = a);
|
|
107
|
+
for (const l of s) {
|
|
108
|
+
const c = a[l];
|
|
109
|
+
if (c) {
|
|
110
|
+
t[l] = { sdf: !0, rect: c.rect, metrics: c.metrics, page: c.page, code: l };
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
const y = i.getGlyph(e, l);
|
|
114
|
+
if (!(y != null && y.metrics))
|
|
115
|
+
continue;
|
|
116
|
+
const d = y.metrics;
|
|
117
|
+
let u;
|
|
118
|
+
if (d.width === 0)
|
|
119
|
+
u = new A(0, 0, 0, 0);
|
|
120
|
+
else {
|
|
121
|
+
const f = d.width + 6, g = d.height + 2 * 3;
|
|
122
|
+
let p = f % 4 ? 4 - f % 4 : 4, m = g % 4 ? 4 - g % 4 : 4;
|
|
123
|
+
p === 1 && (p = 5), m === 1 && (m = 5), u = this._binPack.allocate(f + p, g + m), u.isEmpty && (this._dirties[this._currentPage] || (this._glyphData[this._currentPage] = null), this._currentPage = this._glyphData.length, this._glyphData.push(new Uint8Array(this.width * this.height)), this._dirties.push(!0), this._textures.push(void 0), this._binPack = new V(this.width - 4, this.height - 4), u = this._binPack.allocate(f + p, g + m));
|
|
124
|
+
const b = this._glyphData[this._currentPage], S = y.bitmap;
|
|
125
|
+
let I, w;
|
|
126
|
+
if (S)
|
|
127
|
+
for (let x = 0; x < g; x++) {
|
|
128
|
+
I = f * x, w = this.width * (u.y + x + 1) + u.x;
|
|
129
|
+
for (let P = 0; P < f; P++)
|
|
130
|
+
b[w + P + 1] = S.at(I + P);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
a[l] = { rect: u, metrics: d, tileIDs: null, page: this._currentPage }, t[l] = { sdf: !0, rect: u, metrics: d, page: this._currentPage, code: l }, this._dirties[this._currentPage] = !0;
|
|
134
|
+
}
|
|
135
|
+
return t;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
removeGlyphs(e) {
|
|
139
|
+
for (const s in this._glyphIndex) {
|
|
140
|
+
const t = this._glyphIndex[s];
|
|
141
|
+
if (!t)
|
|
142
|
+
continue;
|
|
143
|
+
let i;
|
|
144
|
+
for (const r in t)
|
|
145
|
+
if (i = t[r], i.tileIDs.delete(e), i.tileIDs.size === 0) {
|
|
146
|
+
const o = this._glyphData[i.page], n = i.rect;
|
|
147
|
+
let a, l;
|
|
148
|
+
for (let c = 0; c < n.height; c++)
|
|
149
|
+
for (a = this.width * (n.y + c) + n.x, l = 0; l < n.width; l++)
|
|
150
|
+
o[a + l] = 0;
|
|
151
|
+
delete t[r], this._dirties[i.page] = !0;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
bind(e, s, t, i = 0) {
|
|
156
|
+
if (!this._textures[t]) {
|
|
157
|
+
const o = new Pe();
|
|
158
|
+
o.pixelFormat = rt.ALPHA, o.wrapMode = Le.CLAMP_TO_EDGE, o.width = this.width, o.height = this.height, this._textures[t] = new Ae(e, o, new Uint8Array(this.width * this.height));
|
|
159
|
+
}
|
|
160
|
+
const r = this._textures[t];
|
|
161
|
+
r.setSamplingMode(s), this._dirties[t] && r.setData(this._glyphData[t]), e.bindTexture(r, i), this._dirties[t] = !1;
|
|
162
|
+
}
|
|
163
|
+
destroy() {
|
|
164
|
+
this.dispose();
|
|
165
|
+
}
|
|
166
|
+
dispose() {
|
|
167
|
+
this._glyphData.length = 0, this._binPack = null;
|
|
168
|
+
for (const e of this._textures)
|
|
169
|
+
e && e.dispose();
|
|
170
|
+
this._textures.length = 0;
|
|
171
|
+
}
|
|
172
|
+
}, G = class {
|
|
173
|
+
constructor(e) {
|
|
174
|
+
if (this._metrics = [], !e)
|
|
175
|
+
return void (this._allBitmaps = null);
|
|
176
|
+
const s = /* @__PURE__ */ new Map();
|
|
177
|
+
let t = 0;
|
|
178
|
+
for (; e.next(); )
|
|
179
|
+
switch (e.tag()) {
|
|
180
|
+
case 1: {
|
|
181
|
+
const o = e.getMessage();
|
|
182
|
+
for (; o.next(); )
|
|
183
|
+
switch (o.tag()) {
|
|
184
|
+
case 3: {
|
|
185
|
+
const n = o.getMessage();
|
|
186
|
+
let a, l, c, y, d, u, _;
|
|
187
|
+
for (; n.next(); )
|
|
188
|
+
switch (n.tag()) {
|
|
189
|
+
case 1:
|
|
190
|
+
a = n.getUInt32();
|
|
191
|
+
break;
|
|
192
|
+
case 2:
|
|
193
|
+
l = n.getBytes();
|
|
194
|
+
break;
|
|
195
|
+
case 3:
|
|
196
|
+
c = n.getUInt32();
|
|
197
|
+
break;
|
|
198
|
+
case 4:
|
|
199
|
+
y = n.getUInt32();
|
|
200
|
+
break;
|
|
201
|
+
case 5:
|
|
202
|
+
d = n.getSInt32();
|
|
203
|
+
break;
|
|
204
|
+
case 6:
|
|
205
|
+
u = n.getSInt32();
|
|
206
|
+
break;
|
|
207
|
+
case 7:
|
|
208
|
+
_ = n.getUInt32();
|
|
209
|
+
break;
|
|
210
|
+
default:
|
|
211
|
+
n.skip();
|
|
212
|
+
}
|
|
213
|
+
if (n.release(), a) {
|
|
214
|
+
const f = (l == null ? void 0 : l.length) ?? 0;
|
|
215
|
+
this._metrics[a] = { width: c, height: y, left: d, top: u, advance: _, startOffset: t, length: f }, s.set(a, l), t += f;
|
|
216
|
+
}
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
default:
|
|
220
|
+
o.skip();
|
|
221
|
+
}
|
|
222
|
+
o.release();
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
default:
|
|
226
|
+
e.skip();
|
|
227
|
+
}
|
|
228
|
+
const i = new Uint8Array(t), r = this._metrics;
|
|
229
|
+
for (const [o, n] of s) {
|
|
230
|
+
const { startOffset: a, length: l } = r[o];
|
|
231
|
+
if (n)
|
|
232
|
+
for (let c = 0; c < l; ++c)
|
|
233
|
+
i[a + c] = n[c];
|
|
234
|
+
}
|
|
235
|
+
this._allBitmaps = i;
|
|
236
|
+
}
|
|
237
|
+
getMetrics(e) {
|
|
238
|
+
return this._metrics[e];
|
|
239
|
+
}
|
|
240
|
+
getBitmap(e) {
|
|
241
|
+
if (!this._allBitmaps)
|
|
242
|
+
return;
|
|
243
|
+
const s = this._metrics[e];
|
|
244
|
+
if (s === void 0)
|
|
245
|
+
return;
|
|
246
|
+
const { startOffset: t, length: i } = s;
|
|
247
|
+
return i !== 0 ? new bt(this._allBitmaps, t, i) : void 0;
|
|
248
|
+
}
|
|
249
|
+
}, mt = class {
|
|
250
|
+
constructor() {
|
|
251
|
+
this._ranges = [];
|
|
252
|
+
}
|
|
253
|
+
get ranges() {
|
|
254
|
+
return this._ranges;
|
|
255
|
+
}
|
|
256
|
+
getRange(e) {
|
|
257
|
+
return this._ranges[e];
|
|
258
|
+
}
|
|
259
|
+
addRange(e, s) {
|
|
260
|
+
this._ranges[e] = s;
|
|
261
|
+
}
|
|
262
|
+
}, pe = class {
|
|
263
|
+
constructor(e) {
|
|
264
|
+
this._glyphInfo = {}, this._baseURL = e;
|
|
265
|
+
}
|
|
266
|
+
getRange(e, s) {
|
|
267
|
+
const t = this._getFontStack(e);
|
|
268
|
+
if (t.getRange(s))
|
|
269
|
+
return Promise.resolve();
|
|
270
|
+
const i = 256 * s, r = i + 255;
|
|
271
|
+
if (this._baseURL) {
|
|
272
|
+
const o = this._baseURL.replace("{fontstack}", e).replace("{range}", i + "-" + r);
|
|
273
|
+
return Ee(o, { responseType: "array-buffer" }).then((n) => {
|
|
274
|
+
t.addRange(s, new G(new X(new Uint8Array(n.data), new DataView(n.data))));
|
|
275
|
+
}).catch(() => {
|
|
276
|
+
t.addRange(s, new G());
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
return t.addRange(s, new G()), Promise.resolve();
|
|
280
|
+
}
|
|
281
|
+
getGlyph(e, s) {
|
|
282
|
+
const t = this._getFontStack(e);
|
|
283
|
+
if (!t)
|
|
284
|
+
return;
|
|
285
|
+
const i = Math.floor(s / 256), r = t.getRange(i);
|
|
286
|
+
return r ? { metrics: r.getMetrics(s), bitmap: r.getBitmap(s) } : void 0;
|
|
287
|
+
}
|
|
288
|
+
_getFontStack(e) {
|
|
289
|
+
let s = this._glyphInfo[e];
|
|
290
|
+
return s || (s = this._glyphInfo[e] = new mt()), s;
|
|
291
|
+
}
|
|
292
|
+
}, bt = class {
|
|
293
|
+
constructor(e, s, t) {
|
|
294
|
+
this._array = e, this._start = s, this.length = t;
|
|
295
|
+
}
|
|
296
|
+
at(e) {
|
|
297
|
+
return 0 <= e && e < this.length ? this._array[this._start + e] : void 0;
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
const wt = "dasharray-";
|
|
301
|
+
let ge = class Oe {
|
|
302
|
+
constructor(e, s, t = 0) {
|
|
303
|
+
this._size = [], this._mosaicsData = [], this._textures = [], this._dirties = [], this._maxItemSize = 0, this._currentPage = 0, this._pageWidth = 0, this._pageHeight = 0, this._mosaicRects = {}, this.pixelRatio = 1, (e <= 0 || s <= 0) && console.error("Sprites mosaic defaultWidth and defaultHeight must be greater than zero!"), this._pageWidth = e, this._pageHeight = s, t > 0 && (this._maxItemSize = t), this._binPack = new V(e - 4, s - 4);
|
|
304
|
+
}
|
|
305
|
+
destroy() {
|
|
306
|
+
this.dispose();
|
|
307
|
+
}
|
|
308
|
+
dispose() {
|
|
309
|
+
this._binPack = null, this._mosaicsData.length = 0, this._mosaicRects = {};
|
|
310
|
+
for (const e of this._textures)
|
|
311
|
+
e && e.dispose();
|
|
312
|
+
this._textures.length = 0;
|
|
313
|
+
}
|
|
314
|
+
getWidth(e) {
|
|
315
|
+
return e >= this._size.length ? -1 : this._size[e][0];
|
|
316
|
+
}
|
|
317
|
+
getHeight(e) {
|
|
318
|
+
return e >= this._size.length ? -1 : this._size[e][1];
|
|
319
|
+
}
|
|
320
|
+
getPageSize(e) {
|
|
321
|
+
return e >= this._size.length ? null : this._size[e];
|
|
322
|
+
}
|
|
323
|
+
setSpriteSource(e) {
|
|
324
|
+
if (this.dispose(), this.pixelRatio = e.devicePixelRatio, this._mosaicsData.length === 0) {
|
|
325
|
+
this._binPack = new V(this._pageWidth - 4, this._pageHeight - 4);
|
|
326
|
+
const s = Math.floor(this._pageWidth), t = Math.floor(this._pageHeight), i = new Uint32Array(s * t);
|
|
327
|
+
this._mosaicsData[0] = i, this._dirties.push(!0), this._size.push([this._pageWidth, this._pageHeight]), this._textures.push(void 0);
|
|
328
|
+
}
|
|
329
|
+
this._sprites = e;
|
|
330
|
+
}
|
|
331
|
+
getSpriteItem(e, s = !1) {
|
|
332
|
+
let t, i, r = this._mosaicRects[e];
|
|
333
|
+
if (r)
|
|
334
|
+
return r;
|
|
335
|
+
if (!this._sprites || this._sprites.loadStatus !== "loaded" || (e && e.startsWith(wt) ? ([t, i] = this._rasterizeDash(e), s = !0) : t = this._sprites.getSpriteInfo(e), !(t != null && t.width) || !t.height || t.width < 0 || t.height < 0))
|
|
336
|
+
return null;
|
|
337
|
+
const o = t.width, n = t.height, [a, l, c] = this._allocateImage(o, n);
|
|
338
|
+
return a.width <= 0 ? null : (this._copy(a, t, l, c, s, i), r = { type: "sprite", rect: a, width: o, height: n, sdf: t.sdf, simplePattern: !1, rasterizationScale: t.pixelRatio, page: l }, this._mosaicRects[e] = r, r);
|
|
339
|
+
}
|
|
340
|
+
getSpriteItems(e) {
|
|
341
|
+
const s = {};
|
|
342
|
+
for (const t of e)
|
|
343
|
+
s[t.name] = this.getSpriteItem(t.name, t.repeat);
|
|
344
|
+
return s;
|
|
345
|
+
}
|
|
346
|
+
getMosaicItemPosition(e, s) {
|
|
347
|
+
const t = this.getSpriteItem(e, s), i = t && t.rect;
|
|
348
|
+
if (!i)
|
|
349
|
+
return null;
|
|
350
|
+
i.width = t.width, i.height = t.height;
|
|
351
|
+
const r = t.width, o = t.height, n = 2;
|
|
352
|
+
return { tl: [i.x + n, i.y + n], br: [i.x + n + r, i.y + n + o], page: t.page };
|
|
353
|
+
}
|
|
354
|
+
bind(e, s, t = 0, i = 0) {
|
|
355
|
+
if (t >= this._size.length || t >= this._mosaicsData.length)
|
|
356
|
+
return;
|
|
357
|
+
if (!this._textures[t]) {
|
|
358
|
+
const o = new Pe();
|
|
359
|
+
o.wrapMode = Le.CLAMP_TO_EDGE, o.width = this._size[t][0], o.height = this._size[t][1], this._textures[t] = new Ae(e, o, new Uint8Array(this._mosaicsData[t].buffer));
|
|
360
|
+
}
|
|
361
|
+
const r = this._textures[t];
|
|
362
|
+
r.setSamplingMode(s), this._dirties[t] && r.setData(new Uint8Array(this._mosaicsData[t].buffer)), e.bindTexture(r, i), this._dirties[t] = !1;
|
|
363
|
+
}
|
|
364
|
+
static _copyBits(e, s, t, i, r, o, n, a, l, c, y) {
|
|
365
|
+
let d = i * s + t, u = a * o + n;
|
|
366
|
+
if (y) {
|
|
367
|
+
u -= o;
|
|
368
|
+
for (let _ = -1; _ <= c; _++, d = ((_ + c) % c + i) * s + t, u += o)
|
|
369
|
+
for (let f = -1; f <= l; f++)
|
|
370
|
+
r[u + f] = e[d + (f + l) % l];
|
|
371
|
+
} else
|
|
372
|
+
for (let _ = 0; _ < c; _++) {
|
|
373
|
+
for (let f = 0; f < l; f++)
|
|
374
|
+
r[u + f] = e[d + f];
|
|
375
|
+
d += s, u += o;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
_copy(e, s, t, i, r, o) {
|
|
379
|
+
if (!this._sprites || this._sprites.loadStatus !== "loaded" || t >= this._mosaicsData.length)
|
|
380
|
+
return;
|
|
381
|
+
const n = new Uint32Array(o ? o.buffer : this._sprites.image.buffer), a = this._mosaicsData[t];
|
|
382
|
+
a && n || console.error("Source or target images are uninitialized!");
|
|
383
|
+
const l = 2, c = o ? s.width : this._sprites.width;
|
|
384
|
+
Oe._copyBits(n, c, s.x, s.y, a, i[0], e.x + l, e.y + l, s.width, s.height, r), this._dirties[t] = !0;
|
|
385
|
+
}
|
|
386
|
+
_allocateImage(e, s) {
|
|
387
|
+
e += 2, s += 2;
|
|
388
|
+
const t = Math.max(e, s);
|
|
389
|
+
if (this._maxItemSize && this._maxItemSize < t) {
|
|
390
|
+
const n = new A(0, 0, e, s);
|
|
391
|
+
return this._mosaicsData.push(new Uint32Array(e * s)), this._dirties.push(!0), this._size.push([e, s]), this._textures.push(void 0), [n, this._mosaicsData.length - 1, [e, s]];
|
|
392
|
+
}
|
|
393
|
+
let i = e % 4 ? 4 - e % 4 : 4, r = s % 4 ? 4 - s % 4 : 4;
|
|
394
|
+
i === 1 && (i = 5), r === 1 && (r = 5);
|
|
395
|
+
const o = this._binPack.allocate(e + i, s + r);
|
|
396
|
+
return o.width <= 0 ? (this._dirties[this._currentPage] || (this._mosaicsData[this._currentPage] = null), this._currentPage = this._mosaicsData.length, this._mosaicsData.push(new Uint32Array(this._pageWidth * this._pageHeight)), this._dirties.push(!0), this._size.push([this._pageWidth, this._pageHeight]), this._textures.push(void 0), this._binPack = new V(this._pageWidth - 4, this._pageHeight - 4), this._allocateImage(e, s)) : [o, this._currentPage, [this._pageWidth, this._pageHeight]];
|
|
397
|
+
}
|
|
398
|
+
_rasterizeDash(e) {
|
|
399
|
+
const s = /\[(.*?)\]/, t = e.match(s);
|
|
400
|
+
if (!t)
|
|
401
|
+
return null;
|
|
402
|
+
const i = t[1].split(",").map(Number), r = e.slice(e.lastIndexOf("-") + 1), [o, n, a] = ot(i, r);
|
|
403
|
+
return [{ x: 0, y: 0, width: n, height: a, sdf: !0, pixelRatio: 1 }, new Uint8Array(o.buffer)];
|
|
404
|
+
}
|
|
405
|
+
}, St = class {
|
|
406
|
+
constructor(e, s, t, i) {
|
|
407
|
+
this._layer = e, this._styleRepository = s, this.devicePixelRatio = t, this._sourceDataMaxLOD = i, this._spriteMosaic = null, this._glyphMosaic = null, this._connection = null, this._spriteSourceAbortController = null, this._startOptionsInputSignal = null, this._inputSignalEventListener = null;
|
|
408
|
+
}
|
|
409
|
+
destroy() {
|
|
410
|
+
var e, s, t;
|
|
411
|
+
(e = this._connection) == null || e.close(), this._connection = null, this._styleRepository = null, this._layer = null, (s = this._spriteMosaic) == null || s.destroy(), this._spriteMosaic = null, this._glyphMosaic = null, this._spriteSourceAbortController = $e(this._spriteSourceAbortController), this._spriteSourcePromise = null, this._inputSignalEventListener && ((t = this._startOptionsInputSignal) == null || t.removeEventListener("abort", this._inputSignalEventListener)), this._startOptionsInputSignal = null, this._inputSignalEventListener = null;
|
|
412
|
+
}
|
|
413
|
+
get spriteMosaic() {
|
|
414
|
+
return this._spriteSourcePromise.then(() => this._spriteMosaic);
|
|
415
|
+
}
|
|
416
|
+
get glyphMosaic() {
|
|
417
|
+
return this._glyphMosaic;
|
|
418
|
+
}
|
|
419
|
+
async start(e) {
|
|
420
|
+
this._requestSprite(e);
|
|
421
|
+
const s = this._layer.currentStyleInfo.glyphsUrl, t = new pe(s ? re(s, { ...this._layer.customParameters, token: this._layer.apiKey }) : null);
|
|
422
|
+
this._glyphMosaic = new fe(1024, 1024, t), this._broadcastPromise = ze("WorkerTileHandler", { client: this, schedule: e.schedule, signal: e.signal }).then((i) => {
|
|
423
|
+
var r;
|
|
424
|
+
if (this._layer && ((r = this._connection) == null || r.close(), this._connection = i, this._layer && !this._connection.closed)) {
|
|
425
|
+
const o = i.broadcast("setStyle", { style: this._layer.currentStyleInfo.style, sourceDataMaxLOD: this._sourceDataMaxLOD }, e);
|
|
426
|
+
Promise.all(o).catch((n) => Ve(n));
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
_requestSprite(e) {
|
|
431
|
+
var o, n;
|
|
432
|
+
(o = this._spriteSourceAbortController) == null || o.abort();
|
|
433
|
+
const s = new AbortController();
|
|
434
|
+
this._spriteSourceAbortController = s;
|
|
435
|
+
const t = e == null ? void 0 : e.signal;
|
|
436
|
+
this._inputSignalEventListener && ((n = this._startOptionsInputSignal) == null || n.removeEventListener("abort", this._inputSignalEventListener)), this._startOptionsInputSignal = null, t && (this._inputSignalEventListener = xt(s), t.addEventListener("abort", this._inputSignalEventListener, { once: !0 }));
|
|
437
|
+
const { signal: i } = s, r = { ...e, signal: i };
|
|
438
|
+
this._spriteSourcePromise = this._layer.loadSpriteSource(this.devicePixelRatio, r), this._spriteSourcePromise.then((a) => {
|
|
439
|
+
Fe(i), this._spriteMosaic = new ge(1024, 1024, 250), this._spriteMosaic.setSpriteSource(a);
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
async updateStyle(e) {
|
|
443
|
+
return await this._broadcastPromise, this._broadcastPromise = Promise.all(this._connection.broadcast("updateStyle", e)), this._broadcastPromise;
|
|
444
|
+
}
|
|
445
|
+
setSpriteSource(e) {
|
|
446
|
+
const s = new ge(1024, 1024, 250);
|
|
447
|
+
return s.setSpriteSource(e), this._spriteMosaic = s, this._spriteSourcePromise = Promise.resolve(e), this._spriteSourceAbortController = null, s;
|
|
448
|
+
}
|
|
449
|
+
async setStyle(e, s, t) {
|
|
450
|
+
await this._broadcastPromise, this._styleRepository = e, this._sourceDataMaxLOD = t, this._requestSprite();
|
|
451
|
+
const i = new pe(this._layer.currentStyleInfo.glyphsUrl ? re(this._layer.currentStyleInfo.glyphsUrl, { ...this._layer.customParameters, token: this._layer.apiKey }) : null);
|
|
452
|
+
return this._glyphMosaic = new fe(1024, 1024, i), this._broadcastPromise = Promise.all(this._connection.broadcast("setStyle", { style: s, sourceDataMaxLOD: this._sourceDataMaxLOD })), this._broadcastPromise;
|
|
453
|
+
}
|
|
454
|
+
async fetchTileData(e, s) {
|
|
455
|
+
const t = await this._getRefKeys(e, s);
|
|
456
|
+
return this._getSourcesData(Object.keys(this._layer.sourceNameToSource), t, s);
|
|
457
|
+
}
|
|
458
|
+
async fetchTilePBFs(e) {
|
|
459
|
+
const s = Object.keys(this._layer.sourceNameToSource), t = {}, i = await this._getRefKeys(e, t), r = [], o = [];
|
|
460
|
+
for (let n = 0; n < i.length; n++)
|
|
461
|
+
if (i[n].value == null || s[n] == null)
|
|
462
|
+
o.push(null);
|
|
463
|
+
else {
|
|
464
|
+
const a = i[n].value, l = this._getTilePayload(a, s[n], t);
|
|
465
|
+
l.then((c) => {
|
|
466
|
+
r.push({ ...c, key: a });
|
|
467
|
+
}), o.push(l);
|
|
468
|
+
}
|
|
469
|
+
return Promise.all(o).then(() => r);
|
|
470
|
+
}
|
|
471
|
+
async parseTileData(e, s) {
|
|
472
|
+
const t = e && e.data;
|
|
473
|
+
if (!t)
|
|
474
|
+
return null;
|
|
475
|
+
const { sourceName2DataAndRefKey: i, transferList: r } = t;
|
|
476
|
+
return Object.keys(i).length === 0 ? null : this._broadcastPromise.then(() => this._connection.invoke("createTileAndParse", { key: e.key.id, sourceName2DataAndRefKey: i, styleLayerUIDs: e.styleLayerUIDs }, { ...s, transferList: r }));
|
|
477
|
+
}
|
|
478
|
+
async getSprites(e) {
|
|
479
|
+
return await this._spriteSourcePromise, this._spriteMosaic.getSpriteItems(e);
|
|
480
|
+
}
|
|
481
|
+
getGlyphs(e) {
|
|
482
|
+
return this._glyphMosaic.getGlyphItems(e.font, e.codePoints);
|
|
483
|
+
}
|
|
484
|
+
async _getTilePayload(e, s, t) {
|
|
485
|
+
const i = M.pool.acquire(e.id), r = this._layer.sourceNameToSource[s], { level: o, row: n, col: a } = i;
|
|
486
|
+
M.pool.release(i);
|
|
487
|
+
try {
|
|
488
|
+
return { protobuff: await r.requestTile(o, n, a, t), sourceName: s };
|
|
489
|
+
} catch (l) {
|
|
490
|
+
if (j(l))
|
|
491
|
+
throw l;
|
|
492
|
+
return { protobuff: null, sourceName: s };
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
async _getRefKeys(e, s) {
|
|
496
|
+
const t = this._layer.sourceNameToSource, i = new Array();
|
|
497
|
+
for (const r in t) {
|
|
498
|
+
const o = t[r].getRefKey(e, s);
|
|
499
|
+
i.push(o);
|
|
500
|
+
}
|
|
501
|
+
return oe(i);
|
|
502
|
+
}
|
|
503
|
+
_getSourcesData(e, s, t) {
|
|
504
|
+
const i = [];
|
|
505
|
+
for (let r = 0; r < s.length; r++)
|
|
506
|
+
if (s[r].value == null || e[r] == null)
|
|
507
|
+
i.push(null);
|
|
508
|
+
else {
|
|
509
|
+
const o = s[r].value, n = this._getTilePayload(o, e[r], t);
|
|
510
|
+
i.push(n);
|
|
511
|
+
}
|
|
512
|
+
return oe(i).then((r) => {
|
|
513
|
+
const o = {}, n = [];
|
|
514
|
+
for (let a = 0; a < r.length; a++) {
|
|
515
|
+
const l = r[a].value;
|
|
516
|
+
if (l && l.protobuff && l.protobuff.byteLength > 0) {
|
|
517
|
+
const c = s[a].value.id;
|
|
518
|
+
o[l.sourceName] = { refKey: c, protobuff: l.protobuff }, n.push(l.protobuff);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return { sourceName2DataAndRefKey: o, transferList: n };
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
function xt(h) {
|
|
526
|
+
return () => h.abort();
|
|
527
|
+
}
|
|
528
|
+
const me = 512, It = 1e-6, Tt = (h, e) => h + 1 / (1 << 2 * e);
|
|
529
|
+
let be = class {
|
|
530
|
+
constructor(e, s) {
|
|
531
|
+
this._tiles = /* @__PURE__ */ new Map(), this._tileCache = new nt(40, (t) => t.dispose()), this._viewSize = [0, 0], this._visibleTiles = /* @__PURE__ */ new Map(), this.acquireTile = e.acquireTile, this.releaseTile = e.releaseTile, this.tileInfoView = e.tileInfoView, this._container = s;
|
|
532
|
+
}
|
|
533
|
+
destroy() {
|
|
534
|
+
for (const [e, s] of this._tiles)
|
|
535
|
+
s.dispose();
|
|
536
|
+
this._tiles = null, this._tileCache.clear(), this._tileCache = null;
|
|
537
|
+
}
|
|
538
|
+
update(e) {
|
|
539
|
+
this._updateCacheSize(e);
|
|
540
|
+
const s = this.tileInfoView, t = s.getTileCoverage(e.state, 0, !0, "smallest");
|
|
541
|
+
if (!t)
|
|
542
|
+
return !0;
|
|
543
|
+
const { spans: i, lodInfo: r } = t, { level: o } = r, n = this._tiles, a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
|
|
544
|
+
for (const { row: y, colFrom: d, colTo: u } of i)
|
|
545
|
+
for (let _ = d; _ <= u; _++) {
|
|
546
|
+
const f = M.getId(o, y, r.normalizeCol(_), r.getWorldForColumn(_)), g = this._getOrAcquireTile(f);
|
|
547
|
+
a.add(f), g.processed() ? this._addToContainer(g) : l.add(new M(f));
|
|
548
|
+
}
|
|
549
|
+
for (const [y, d] of n)
|
|
550
|
+
d.isCoverage = a.has(y);
|
|
551
|
+
for (const y of l)
|
|
552
|
+
this._findPlaceholdersForMissingTiles(y, a);
|
|
553
|
+
let c = !1;
|
|
554
|
+
for (const [y, d] of n)
|
|
555
|
+
d.neededForCoverage = a.has(y), d.neededForCoverage || d.isHoldingForFade && s.intersects(t, d.key) && a.add(y), d.isFading && (c = !0);
|
|
556
|
+
for (const [y, d] of this._tiles)
|
|
557
|
+
a.has(y) || this._releaseTile(y);
|
|
558
|
+
return Ce.pool.release(t), !c;
|
|
559
|
+
}
|
|
560
|
+
clear() {
|
|
561
|
+
this._tiles.clear(), this._tileCache.clear(), this._visibleTiles.clear();
|
|
562
|
+
}
|
|
563
|
+
clearCache() {
|
|
564
|
+
this._tileCache.clear();
|
|
565
|
+
}
|
|
566
|
+
getIntersectingTiles(e, s, t, i, r) {
|
|
567
|
+
const o = [0, 0], n = [0, 0];
|
|
568
|
+
i.toMap(o, e - t, s + t), i.toMap(n, e + t, s - t);
|
|
569
|
+
const a = Math.min(o[0], n[0]), l = Math.min(o[1], n[1]), c = Math.max(o[0], n[0]), y = Math.max(o[1], n[1]), d = qe(a, l, c, y), u = F(), _ = [];
|
|
570
|
+
for (const [f, g] of this._visibleTiles)
|
|
571
|
+
this.tileInfoView.getTileBounds(u, g.key), He(d, u) && _.push(g);
|
|
572
|
+
if (r != null && r.length > 0) {
|
|
573
|
+
const f = new Set(_.map((p) => p.id)), g = r.filter((p) => !f.has(p.tileKey.id)).map((p) => this._visibleTiles.get(p.tileKey.id)).filter((p) => p !== void 0);
|
|
574
|
+
_.push(...g);
|
|
575
|
+
}
|
|
576
|
+
return _;
|
|
577
|
+
}
|
|
578
|
+
_findPlaceholdersForMissingTiles(e, s) {
|
|
579
|
+
const t = [];
|
|
580
|
+
for (const [r, o] of this._tiles)
|
|
581
|
+
this._addPlaceholderChild(t, o, e, s);
|
|
582
|
+
const i = t.reduce(Tt, 0);
|
|
583
|
+
Math.abs(1 - i) < It || this._addPlaceholderParent(e.id, s);
|
|
584
|
+
}
|
|
585
|
+
_addPlaceholderChild(e, s, t, i) {
|
|
586
|
+
s.key.level <= t.level || !s.hasData() || Dt(t, s.key) && (this._addToContainer(s), i.add(s.id), e.push(s.key.level - t.level));
|
|
587
|
+
}
|
|
588
|
+
_addPlaceholderParent(e, s) {
|
|
589
|
+
const t = this._tiles;
|
|
590
|
+
let i = e;
|
|
591
|
+
for (; ; ) {
|
|
592
|
+
if (i = vt(i), !i || s.has(i))
|
|
593
|
+
return;
|
|
594
|
+
const r = t.get(i);
|
|
595
|
+
if (r && r.hasData())
|
|
596
|
+
return this._addToContainer(r), void s.add(r.id);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
_getOrAcquireTile(e) {
|
|
600
|
+
let s = this._tiles.get(e);
|
|
601
|
+
return s || (s = this._tileCache.pop(e), s || (s = this.acquireTile(new M(e))), this._tiles.set(e, s), s);
|
|
602
|
+
}
|
|
603
|
+
_releaseTile(e) {
|
|
604
|
+
const s = this._tiles.get(e);
|
|
605
|
+
this.releaseTile(s), this._removeFromContainer(s), this._tiles.delete(e), s.hasData() ? this._tileCache.put(e, s, 1) : s.dispose();
|
|
606
|
+
}
|
|
607
|
+
_addToContainer(e) {
|
|
608
|
+
let s;
|
|
609
|
+
const t = [], i = this._container;
|
|
610
|
+
if (i.contains(e))
|
|
611
|
+
return;
|
|
612
|
+
const r = this._visibleTiles;
|
|
613
|
+
for (const [o, n] of r)
|
|
614
|
+
this._canConnectDirectly(e, n) && t.push(n), s == null && this._canConnectDirectly(n, e) && (s = n);
|
|
615
|
+
if (s != null) {
|
|
616
|
+
for (const o of t)
|
|
617
|
+
s.childrenTiles.delete(o), e.childrenTiles.add(o), o.parentTile = e;
|
|
618
|
+
s.childrenTiles.add(e), e.parentTile = s;
|
|
619
|
+
} else
|
|
620
|
+
for (const o of t)
|
|
621
|
+
e.childrenTiles.add(o), o.parentTile = e;
|
|
622
|
+
r.set(e.id, e), i.addChild(e);
|
|
623
|
+
}
|
|
624
|
+
_removeFromContainer(e) {
|
|
625
|
+
if (this._visibleTiles.delete(e.id), this._container.removeChild(e), e.parentTile != null) {
|
|
626
|
+
e.parentTile.childrenTiles.delete(e);
|
|
627
|
+
for (const s of e.childrenTiles)
|
|
628
|
+
e.parentTile != null && e.parentTile.childrenTiles.add(s);
|
|
629
|
+
}
|
|
630
|
+
for (const s of e.childrenTiles)
|
|
631
|
+
s.parentTile = e.parentTile;
|
|
632
|
+
e.parentTile = null, e.childrenTiles.clear();
|
|
633
|
+
}
|
|
634
|
+
_canConnectDirectly(e, s) {
|
|
635
|
+
const t = e.key;
|
|
636
|
+
let { level: i, row: r, col: o, world: n } = s.key;
|
|
637
|
+
const a = this._visibleTiles;
|
|
638
|
+
for (; i > 0; ) {
|
|
639
|
+
if (i--, r >>= 1, o >>= 1, t.level === i && t.row === r && t.col === o && t.world === n)
|
|
640
|
+
return !0;
|
|
641
|
+
if (a.has(`${i}/${r}/${o}/${n}`))
|
|
642
|
+
return !1;
|
|
643
|
+
}
|
|
644
|
+
return !1;
|
|
645
|
+
}
|
|
646
|
+
_updateCacheSize(e) {
|
|
647
|
+
const s = e.state.size;
|
|
648
|
+
if (s[0] === this._viewSize[0] && s[1] === this._viewSize[1])
|
|
649
|
+
return;
|
|
650
|
+
const t = Math.ceil(s[0] / me) + 1, i = Math.ceil(s[1] / me) + 1;
|
|
651
|
+
this._viewSize[0] = s[0], this._viewSize[1] = s[1], this._tileCache.maxSize = 5 * t * i;
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
function vt(h) {
|
|
655
|
+
const [e, s, t, i] = h.split("/"), r = parseInt(e, 10);
|
|
656
|
+
return r === 0 ? null : `${r - 1}/${parseInt(s, 10) >> 1}/${parseInt(t, 10) >> 1}/${parseInt(i, 10)}`;
|
|
657
|
+
}
|
|
658
|
+
function Dt(h, e) {
|
|
659
|
+
const s = e.level - h.level;
|
|
660
|
+
return h.row === e.row >> s && h.col === e.col >> s && h.world === e.world;
|
|
661
|
+
}
|
|
662
|
+
let Ct = class {
|
|
663
|
+
constructor(e, s) {
|
|
664
|
+
this.sourceTile = s, this.xTile = 0, this.yTile = 0, this.hash = 0, this.priority = 1, this.featureIndex = 0, this.colliders = [], this.textVertexRanges = [], this.iconVertexRanges = [], this.tile = e;
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
class Rt {
|
|
668
|
+
constructor() {
|
|
669
|
+
this.tileSymbols = [], this.parts = [{ startTime: 0, startOpacity: 0, targetOpacity: 0, show: !1 }, { startTime: 0, startOpacity: 0, targetOpacity: 0, show: !1 }], this.show = !1;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
function we(h, e, s, t, i, r) {
|
|
673
|
+
const o = s - i;
|
|
674
|
+
if (o >= 0)
|
|
675
|
+
return (e >> o) + (t - (r << o)) * (h >> o);
|
|
676
|
+
const n = -o;
|
|
677
|
+
return e - (r - (t << n)) * (h >> n) << n;
|
|
678
|
+
}
|
|
679
|
+
let ke = class {
|
|
680
|
+
constructor(e, s, t) {
|
|
681
|
+
this._rows = Math.ceil(s / t), this._columns = Math.ceil(e / t), this._cellSize = t, this.cells = new Array(this._rows);
|
|
682
|
+
for (let i = 0; i < this._rows; i++) {
|
|
683
|
+
this.cells[i] = new Array(this._columns);
|
|
684
|
+
for (let r = 0; r < this._columns; r++)
|
|
685
|
+
this.cells[i][r] = [];
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
getCell(e, s) {
|
|
689
|
+
const t = Math.min(Math.max(Math.floor(s / this._cellSize), 0), this._rows - 1), i = Math.min(Math.max(Math.floor(e / this._cellSize), 0), this._columns - 1);
|
|
690
|
+
return this.cells[t] && this.cells[t][i] || null;
|
|
691
|
+
}
|
|
692
|
+
getCellSpan(e, s, t, i) {
|
|
693
|
+
return [Math.min(Math.max(Math.floor(e / this._cellSize), 0), this.columns - 1), Math.min(Math.max(Math.floor(s / this._cellSize), 0), this.rows - 1), Math.min(Math.max(Math.floor(t / this._cellSize), 0), this.columns - 1), Math.min(Math.max(Math.floor(i / this._cellSize), 0), this.rows - 1)];
|
|
694
|
+
}
|
|
695
|
+
get cellSize() {
|
|
696
|
+
return this._cellSize;
|
|
697
|
+
}
|
|
698
|
+
get columns() {
|
|
699
|
+
return this._columns;
|
|
700
|
+
}
|
|
701
|
+
get rows() {
|
|
702
|
+
return this._rows;
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
function Lt(h, e, s, t, i, r, o) {
|
|
706
|
+
const n = e[t++];
|
|
707
|
+
for (let a = 0; a < n; a++) {
|
|
708
|
+
const l = new Ct(r, o);
|
|
709
|
+
l.xTile = e[t++], l.yTile = e[t++], l.hash = e[t++], l.priority = e[t++], l.featureIndex = e[t++];
|
|
710
|
+
const c = e[t++];
|
|
711
|
+
for (let u = 0; u < c; u++) {
|
|
712
|
+
const _ = e[t++], f = e[t++], g = e[t++], p = e[t++], m = !!e[t++], b = e[t++], S = s[t++], I = s[t++], w = e[t++], x = e[t++];
|
|
713
|
+
l.colliders.push({ xTile: _, yTile: f, dxPixels: g, dyPixels: p, hard: m, partIndex: b, width: w, height: x, minLod: S, maxLod: I });
|
|
714
|
+
}
|
|
715
|
+
const y = h[t++];
|
|
716
|
+
for (let u = 0; u < y; u++)
|
|
717
|
+
l.textVertexRanges.push([h[t++], h[t++]]);
|
|
718
|
+
const d = h[t++];
|
|
719
|
+
for (let u = 0; u < d; u++)
|
|
720
|
+
l.iconVertexRanges.push([h[t++], h[t++]]);
|
|
721
|
+
i.push(l);
|
|
722
|
+
}
|
|
723
|
+
return t;
|
|
724
|
+
}
|
|
725
|
+
function Pt(h, e, s) {
|
|
726
|
+
for (const [t, i] of h.symbols)
|
|
727
|
+
At(h, e, s, i, t);
|
|
728
|
+
}
|
|
729
|
+
function At(h, e, s, t, i) {
|
|
730
|
+
const r = h.layerData.get(i);
|
|
731
|
+
if (r.type === L.SYMBOL) {
|
|
732
|
+
for (const o of t) {
|
|
733
|
+
const n = o.unique;
|
|
734
|
+
let a;
|
|
735
|
+
if (o.selectedForRendering) {
|
|
736
|
+
const l = n.parts[0], c = l.startOpacity, y = l.targetOpacity;
|
|
737
|
+
h.allSymbolsFadingOut = h.allSymbolsFadingOut && y === 0;
|
|
738
|
+
const d = s ? Math.floor(127 * c) | y << 7 : y ? 255 : 0;
|
|
739
|
+
a = d << 24 | d << 16 | d << 8 | d;
|
|
740
|
+
} else
|
|
741
|
+
a = 0;
|
|
742
|
+
for (const [l, c] of o.iconVertexRanges)
|
|
743
|
+
for (let y = l; y < l + c; y += 4)
|
|
744
|
+
r.iconOpacity[y / 4] = a;
|
|
745
|
+
if (o.selectedForRendering) {
|
|
746
|
+
const l = n.parts[1], c = l.startOpacity, y = l.targetOpacity;
|
|
747
|
+
h.allSymbolsFadingOut = h.allSymbolsFadingOut && y === 0;
|
|
748
|
+
const d = s ? Math.floor(127 * c) | y << 7 : y ? 255 : 0;
|
|
749
|
+
a = d << 24 | d << 16 | d << 8 | d;
|
|
750
|
+
} else
|
|
751
|
+
a = 0;
|
|
752
|
+
for (const [l, c] of o.textVertexRanges)
|
|
753
|
+
for (let y = l; y < l + c; y += 4)
|
|
754
|
+
r.textOpacity[y / 4] = a;
|
|
755
|
+
}
|
|
756
|
+
r.lastOpacityUpdate = e, r.opacityChanged = !0;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
function Mt(h, e, s, t) {
|
|
760
|
+
const i = h.colliders;
|
|
761
|
+
let r, o, n, a;
|
|
762
|
+
for (const l of i)
|
|
763
|
+
if (h.unique.show && h.unique.parts[l.partIndex].show && (r = l.xScreen - t[0] + l.dxScreen, o = l.yScreen - t[1] + l.dyScreen, n = r + l.width, a = o + l.height, at(s, e.x, e.y, r, o, n, a)))
|
|
764
|
+
return !0;
|
|
765
|
+
return !1;
|
|
766
|
+
}
|
|
767
|
+
let K = class {
|
|
768
|
+
constructor(e, s) {
|
|
769
|
+
this.layerUIDs = [], this.isDestroyed = !1, this._data = e;
|
|
770
|
+
let t = 1;
|
|
771
|
+
const i = new Uint32Array(e);
|
|
772
|
+
this.layerUIDs = [];
|
|
773
|
+
const r = i[t++];
|
|
774
|
+
for (let o = 0; o < r; o++)
|
|
775
|
+
this.layerUIDs[o] = i[t++];
|
|
776
|
+
this.bufferDataOffset = t, s && (this.layer = s.getStyleLayerByUID(this.layerUIDs[0]));
|
|
777
|
+
}
|
|
778
|
+
get isPreparedForRendering() {
|
|
779
|
+
return this._data == null;
|
|
780
|
+
}
|
|
781
|
+
get offset() {
|
|
782
|
+
return this.bufferDataOffset;
|
|
783
|
+
}
|
|
784
|
+
get data() {
|
|
785
|
+
return this._data;
|
|
786
|
+
}
|
|
787
|
+
destroy() {
|
|
788
|
+
this.isDestroyed || (this.doDestroy(), this._data = null, this.isDestroyed = !0);
|
|
789
|
+
}
|
|
790
|
+
prepareForRendering(e) {
|
|
791
|
+
this._data != null && (this.doPrepareForRendering(e, this._data, this.bufferDataOffset), this._data = null);
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
class Ot extends K {
|
|
795
|
+
constructor(e, s) {
|
|
796
|
+
super(e, s), this.type = L.LINE, this.lineIndexStart = 0, this.lineIndexCount = 0;
|
|
797
|
+
const t = new Uint32Array(e);
|
|
798
|
+
let i = this.bufferDataOffset;
|
|
799
|
+
this.lineIndexStart = t[i++], this.lineIndexCount = t[i++];
|
|
800
|
+
const r = t[i++];
|
|
801
|
+
if (r > 0) {
|
|
802
|
+
this.patternMap = /* @__PURE__ */ new Map();
|
|
803
|
+
for (let o = 0; o < r; o++) {
|
|
804
|
+
const n = t[i++], a = t[i++], l = t[i++];
|
|
805
|
+
this.patternMap.set(n, [a, l]);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
this.bufferDataOffset = i;
|
|
809
|
+
}
|
|
810
|
+
get memoryUsed() {
|
|
811
|
+
var e, s;
|
|
812
|
+
return (((e = this.data) == null ? void 0 : e.byteLength) ?? 0) + (((s = this.vao) == null ? void 0 : s.usedMemory) ?? 0);
|
|
813
|
+
}
|
|
814
|
+
hasData() {
|
|
815
|
+
return this.lineIndexCount > 0;
|
|
816
|
+
}
|
|
817
|
+
triangleCount() {
|
|
818
|
+
return this.lineIndexCount / 3;
|
|
819
|
+
}
|
|
820
|
+
doDestroy() {
|
|
821
|
+
this.vao = U(this.vao);
|
|
822
|
+
}
|
|
823
|
+
doPrepareForRendering(e, s, t) {
|
|
824
|
+
const i = new Uint32Array(s), r = new Int32Array(i.buffer), o = i[t++], n = R.createVertex(e, C.STATIC_DRAW, new Int32Array(r.buffer, 4 * t, o));
|
|
825
|
+
t += o;
|
|
826
|
+
const a = i[t++], l = R.createIndex(e, C.STATIC_DRAW, new Uint32Array(i.buffer, 4 * t, a));
|
|
827
|
+
t += a;
|
|
828
|
+
const c = this.layer.lineMaterial;
|
|
829
|
+
this.vao = new E(e, c.getAttributeLocations(), c.getLayoutInfo(), { geometry: n }, l);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
let kt = class extends K {
|
|
833
|
+
constructor(e, s) {
|
|
834
|
+
super(e, s), this.type = L.FILL, this.fillIndexStart = 0, this.fillIndexCount = 0, this.outlineIndexStart = 0, this.outlineIndexCount = 0;
|
|
835
|
+
const t = new Uint32Array(e);
|
|
836
|
+
let i = this.bufferDataOffset;
|
|
837
|
+
this.fillIndexStart = t[i++], this.fillIndexCount = t[i++], this.outlineIndexStart = t[i++], this.outlineIndexCount = t[i++];
|
|
838
|
+
const r = t[i++];
|
|
839
|
+
if (r > 0) {
|
|
840
|
+
this.patternMap = /* @__PURE__ */ new Map();
|
|
841
|
+
for (let o = 0; o < r; o++) {
|
|
842
|
+
const n = t[i++], a = t[i++], l = t[i++];
|
|
843
|
+
this.patternMap.set(n, [a, l]);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
this.bufferDataOffset = i;
|
|
847
|
+
}
|
|
848
|
+
get memoryUsed() {
|
|
849
|
+
var e, s, t;
|
|
850
|
+
return (((e = this.data) == null ? void 0 : e.byteLength) ?? 0) + (((s = this.fillVAO) == null ? void 0 : s.usedMemory) ?? 0) + (((t = this.outlineVAO) == null ? void 0 : t.usedMemory) ?? 0);
|
|
851
|
+
}
|
|
852
|
+
hasData() {
|
|
853
|
+
return this.fillIndexCount > 0 || this.outlineIndexCount > 0;
|
|
854
|
+
}
|
|
855
|
+
triangleCount() {
|
|
856
|
+
return (this.fillIndexCount + this.outlineIndexCount) / 3;
|
|
857
|
+
}
|
|
858
|
+
doDestroy() {
|
|
859
|
+
this.fillVAO = U(this.fillVAO), this.outlineVAO = U(this.outlineVAO);
|
|
860
|
+
}
|
|
861
|
+
doPrepareForRendering(e, s, t) {
|
|
862
|
+
const i = new Uint32Array(s), r = new Int32Array(i.buffer), o = i[t++], n = R.createVertex(e, C.STATIC_DRAW, new Int32Array(r.buffer, 4 * t, o));
|
|
863
|
+
t += o;
|
|
864
|
+
const a = i[t++], l = R.createIndex(e, C.STATIC_DRAW, new Uint32Array(i.buffer, 4 * t, a));
|
|
865
|
+
t += a;
|
|
866
|
+
const c = i[t++], y = R.createVertex(e, C.STATIC_DRAW, new Int32Array(r.buffer, 4 * t, c));
|
|
867
|
+
t += c;
|
|
868
|
+
const d = i[t++], u = R.createIndex(e, C.STATIC_DRAW, new Uint32Array(i.buffer, 4 * t, d));
|
|
869
|
+
t += d;
|
|
870
|
+
const _ = this.layer, f = _.fillMaterial, g = _.outlineMaterial;
|
|
871
|
+
this.fillVAO = new E(e, f.getAttributeLocations(), f.getLayoutInfo(), { geometry: n }, l), this.outlineVAO = new E(e, g.getAttributeLocations(), g.getLayoutInfo(), { geometry: y }, u);
|
|
872
|
+
}
|
|
873
|
+
}, Ut = class extends K {
|
|
874
|
+
constructor(e, s, t) {
|
|
875
|
+
super(e, s), this.type = L.SYMBOL, this.iconPerPageElementsMap = /* @__PURE__ */ new Map(), this.glyphPerPageElementsMap = /* @__PURE__ */ new Map(), this.symbolInstances = [], this.isIconSDF = !1, this.opacityChanged = !1, this.lastOpacityUpdate = 0, this.symbols = [];
|
|
876
|
+
const i = new Uint32Array(e), r = new Int32Array(e), o = new Float32Array(e);
|
|
877
|
+
let n = this.bufferDataOffset;
|
|
878
|
+
this.isIconSDF = !!i[n++];
|
|
879
|
+
const a = i[n++], l = i[n++], c = i[n++], y = new M(a, l, c, 0), d = i[n++];
|
|
880
|
+
for (let g = 0; g < d; g++) {
|
|
881
|
+
const p = i[n++], m = i[n++], b = i[n++];
|
|
882
|
+
this.iconPerPageElementsMap.set(p, [m, b]);
|
|
883
|
+
}
|
|
884
|
+
const u = i[n++];
|
|
885
|
+
for (let g = 0; g < u; g++) {
|
|
886
|
+
const p = i[n++], m = i[n++], b = i[n++];
|
|
887
|
+
this.glyphPerPageElementsMap.set(p, [m, b]);
|
|
888
|
+
}
|
|
889
|
+
const _ = i[n++], f = i[n++];
|
|
890
|
+
this.iconOpacity = new Int32Array(_), this.textOpacity = new Int32Array(f), n = Lt(i, r, o, n, this.symbols, t, y), this.bufferDataOffset = n;
|
|
891
|
+
}
|
|
892
|
+
get memoryUsed() {
|
|
893
|
+
var e, s, t;
|
|
894
|
+
return (((e = this.data) == null ? void 0 : e.byteLength) ?? 0) + (((s = this.iconVAO) == null ? void 0 : s.usedMemory) ?? 0) + (((t = this.textVAO) == null ? void 0 : t.usedMemory) ?? 0) + ne(this.iconOpacity) + ne(this.textOpacity);
|
|
895
|
+
}
|
|
896
|
+
hasData() {
|
|
897
|
+
return this.iconPerPageElementsMap.size > 0 || this.glyphPerPageElementsMap.size > 0;
|
|
898
|
+
}
|
|
899
|
+
triangleCount() {
|
|
900
|
+
let e = 0;
|
|
901
|
+
for (const [s, t] of this.iconPerPageElementsMap)
|
|
902
|
+
e += t[1];
|
|
903
|
+
for (const [s, t] of this.glyphPerPageElementsMap)
|
|
904
|
+
e += t[1];
|
|
905
|
+
return e / 3;
|
|
906
|
+
}
|
|
907
|
+
doDestroy() {
|
|
908
|
+
this.iconVAO = U(this.iconVAO), this.textVAO = U(this.textVAO);
|
|
909
|
+
}
|
|
910
|
+
updateOpacityInfo() {
|
|
911
|
+
if (!this.opacityChanged)
|
|
912
|
+
return;
|
|
913
|
+
this.opacityChanged = !1;
|
|
914
|
+
const e = this.iconOpacity, s = this.iconVAO.vertexBuffers.opacity;
|
|
915
|
+
e.length > 0 && e.byteLength === s.usedMemory && s.setSubData(e, 0, 0, e.length);
|
|
916
|
+
const t = this.textOpacity, i = this.textVAO.vertexBuffers.opacity;
|
|
917
|
+
t.length > 0 && t.byteLength === i.usedMemory && i.setSubData(t, 0, 0, t.length);
|
|
918
|
+
}
|
|
919
|
+
doPrepareForRendering(e, s, t) {
|
|
920
|
+
const i = new Uint32Array(s), r = new Int32Array(i.buffer), o = i[t++], n = R.createVertex(e, C.STATIC_DRAW, new Int32Array(r.buffer, 4 * t, o));
|
|
921
|
+
t += o;
|
|
922
|
+
const a = i[t++], l = R.createIndex(e, C.STATIC_DRAW, new Uint32Array(i.buffer, 4 * t, a));
|
|
923
|
+
t += a;
|
|
924
|
+
const c = i[t++], y = R.createVertex(e, C.STATIC_DRAW, new Int32Array(r.buffer, 4 * t, c));
|
|
925
|
+
t += c;
|
|
926
|
+
const d = i[t++], u = R.createIndex(e, C.STATIC_DRAW, new Uint32Array(i.buffer, 4 * t, d));
|
|
927
|
+
t += d;
|
|
928
|
+
const _ = R.createVertex(e, C.STATIC_DRAW, this.iconOpacity.buffer), f = R.createVertex(e, C.STATIC_DRAW, this.textOpacity.buffer), g = this.layer, p = g.iconMaterial, m = g.textMaterial;
|
|
929
|
+
this.iconVAO = new E(e, p.getAttributeLocations(), p.getLayoutInfo(), { geometry: n, opacity: _ }, l), this.textVAO = new E(e, m.getAttributeLocations(), m.getLayoutInfo(), { geometry: y, opacity: f }, u);
|
|
930
|
+
}
|
|
931
|
+
}, Et = class extends K {
|
|
932
|
+
constructor(e, s) {
|
|
933
|
+
super(e, s), this.type = L.CIRCLE, this.circleIndexStart = 0, this.circleIndexCount = 0;
|
|
934
|
+
const t = new Uint32Array(e);
|
|
935
|
+
let i = this.bufferDataOffset;
|
|
936
|
+
this.circleIndexStart = t[i++], this.circleIndexCount = t[i++], this.bufferDataOffset = i;
|
|
937
|
+
}
|
|
938
|
+
get memoryUsed() {
|
|
939
|
+
var e, s;
|
|
940
|
+
return (((e = this.data) == null ? void 0 : e.byteLength) ?? 0) + (((s = this.vao) == null ? void 0 : s.usedMemory) ?? 0);
|
|
941
|
+
}
|
|
942
|
+
hasData() {
|
|
943
|
+
return this.circleIndexCount > 0;
|
|
944
|
+
}
|
|
945
|
+
triangleCount() {
|
|
946
|
+
return this.circleIndexCount / 3;
|
|
947
|
+
}
|
|
948
|
+
doDestroy() {
|
|
949
|
+
this.vao = U(this.vao);
|
|
950
|
+
}
|
|
951
|
+
doPrepareForRendering(e, s, t) {
|
|
952
|
+
const i = new Uint32Array(s), r = new Int32Array(i.buffer), o = i[t++], n = R.createVertex(e, C.STATIC_DRAW, new Int32Array(r.buffer, 4 * t, o));
|
|
953
|
+
t += o;
|
|
954
|
+
const a = i[t++], l = R.createIndex(e, C.STATIC_DRAW, new Uint32Array(i.buffer, 4 * t, a));
|
|
955
|
+
t += a;
|
|
956
|
+
const c = this.layer.circleMaterial;
|
|
957
|
+
this.vao = new E(e, c.getAttributeLocations(), c.getLayoutInfo(), { geometry: n }, l);
|
|
958
|
+
}
|
|
959
|
+
}, $t = class Ue extends Me {
|
|
960
|
+
constructor(e, s, t, i, r, o, n, a = null) {
|
|
961
|
+
super(e, s, t, i, r, o, 4096, 4096), this.styleRepository = n, this._memCache = a, this.type = "vector-tile", this._referenced = 0, this._hasSymbolBuckets = !1, this._memoryUsedByLayerData = 0, this.layerData = /* @__PURE__ */ new Map(), this.status = "loading", this.allSymbolsFadingOut = !1, this.lastOpacityUpdate = 0, this.symbols = /* @__PURE__ */ new Map(), this.isCoverage = !1, this.neededForCoverage = !1, this.decluttered = !1, this.parentTile = null, this.childrenTiles = /* @__PURE__ */ new Set(), this.featureIndex = null, this.triangleCount = 0, this._processed = !1, this._referenced = 1, this.id = e.id;
|
|
962
|
+
}
|
|
963
|
+
get hasSymbolBuckets() {
|
|
964
|
+
return this._hasSymbolBuckets;
|
|
965
|
+
}
|
|
966
|
+
get isFading() {
|
|
967
|
+
return this._hasSymbolBuckets && performance.now() - this.lastOpacityUpdate < Q;
|
|
968
|
+
}
|
|
969
|
+
get isHoldingForFade() {
|
|
970
|
+
return this._hasSymbolBuckets && (!this.allSymbolsFadingOut || performance.now() - this.lastOpacityUpdate < Q);
|
|
971
|
+
}
|
|
972
|
+
get wasRequested() {
|
|
973
|
+
return this.status === "errored" || this.status === "loaded" || this.status === "reloading";
|
|
974
|
+
}
|
|
975
|
+
setData(e) {
|
|
976
|
+
this.changeDataImpl(e), this.requestRender(), this.ready(), this._processed = !0;
|
|
977
|
+
}
|
|
978
|
+
deleteLayerData(e) {
|
|
979
|
+
var t, i;
|
|
980
|
+
let s = !1;
|
|
981
|
+
for (const r of e) {
|
|
982
|
+
const o = this.layerData.get(r);
|
|
983
|
+
o && (this._memoryUsedByLayerData -= o.memoryUsed, o.type === L.SYMBOL && this.symbols.delete(r) && (s = !0), o.destroy(), this.layerData.delete(r));
|
|
984
|
+
}
|
|
985
|
+
(t = this._memCache) == null || t.updateSize(this.key.id, this, this._memoryUsedByLayerData), s && ((i = this.featureIndex) == null || i.clear(), this.emit("symbols-changed")), this.requestRender();
|
|
986
|
+
}
|
|
987
|
+
processed() {
|
|
988
|
+
return this._processed;
|
|
989
|
+
}
|
|
990
|
+
hasData() {
|
|
991
|
+
return this.layerData.size > 0;
|
|
992
|
+
}
|
|
993
|
+
dispose() {
|
|
994
|
+
this.status !== "unloaded" && (this.featureIndex = null, zt.delete(this), Ue._destroyRenderBuckets(this.layerData), this.layerData.clear(), this._memoryUsedByLayerData = 0, this.destroy(), this.status = "unloaded");
|
|
995
|
+
}
|
|
996
|
+
release() {
|
|
997
|
+
return --this._referenced == 0 && (this.dispose(), this.stage = null, !0);
|
|
998
|
+
}
|
|
999
|
+
retain() {
|
|
1000
|
+
++this._referenced;
|
|
1001
|
+
}
|
|
1002
|
+
get referenced() {
|
|
1003
|
+
return this._referenced;
|
|
1004
|
+
}
|
|
1005
|
+
get usedMemory() {
|
|
1006
|
+
return this._memoryUsedByLayerData + 256;
|
|
1007
|
+
}
|
|
1008
|
+
changeDataImpl(e) {
|
|
1009
|
+
var t, i;
|
|
1010
|
+
(t = this.featureIndex) == null || t.clear();
|
|
1011
|
+
let s = !1;
|
|
1012
|
+
if (e) {
|
|
1013
|
+
const { bucketsWithData: r, emptyBuckets: o } = e, n = this._createRenderBuckets(r);
|
|
1014
|
+
if (o && o.byteLength > 0) {
|
|
1015
|
+
const a = new Uint32Array(o);
|
|
1016
|
+
for (const l of a)
|
|
1017
|
+
this._deleteLayerData(l);
|
|
1018
|
+
}
|
|
1019
|
+
for (const [a, l] of n)
|
|
1020
|
+
this._deleteLayerData(a), l.type === L.SYMBOL && (this.symbols.set(a, l.symbols), s = !0), this._memoryUsedByLayerData += l.memoryUsed, this.layerData.set(a, l);
|
|
1021
|
+
(i = this._memCache) == null || i.updateSize(this.key.id, this, this.usedMemory);
|
|
1022
|
+
}
|
|
1023
|
+
this._hasSymbolBuckets = !1;
|
|
1024
|
+
for (const [r, o] of this.layerData)
|
|
1025
|
+
o.type === L.SYMBOL && (this._hasSymbolBuckets = !0);
|
|
1026
|
+
s && this.emit("symbols-changed");
|
|
1027
|
+
}
|
|
1028
|
+
attachWithContext(e) {
|
|
1029
|
+
this.stage = { context: e, trashDisplayObject(s) {
|
|
1030
|
+
s.processDetach();
|
|
1031
|
+
}, untrashDisplayObject: () => !1 };
|
|
1032
|
+
}
|
|
1033
|
+
setTransform(e) {
|
|
1034
|
+
super.setTransform(e);
|
|
1035
|
+
const s = this.resolution / (e.resolution * e.pixelRatio), t = this.width / this.rangeX * s, i = this.height / this.rangeY * s, r = [0, 0];
|
|
1036
|
+
e.toScreen(r, [this.x, this.y]);
|
|
1037
|
+
const o = this.transforms.tileUnitsToPixels;
|
|
1038
|
+
Be(o), Ne(o, o, r), We(o, o, Math.PI * e.rotation / 180), Qe(o, o, [t, i, 1]);
|
|
1039
|
+
}
|
|
1040
|
+
_createTransforms() {
|
|
1041
|
+
return { displayViewScreenMat3: z(), tileMat3: z(), tileUnitsToPixels: z() };
|
|
1042
|
+
}
|
|
1043
|
+
static _destroyRenderBuckets(e) {
|
|
1044
|
+
if (!e)
|
|
1045
|
+
return;
|
|
1046
|
+
const s = /* @__PURE__ */ new Set();
|
|
1047
|
+
for (const t of e.values())
|
|
1048
|
+
s.has(t) || (t.destroy(), s.add(t));
|
|
1049
|
+
e.clear();
|
|
1050
|
+
}
|
|
1051
|
+
_createRenderBuckets(e) {
|
|
1052
|
+
const s = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
1053
|
+
for (const i of e) {
|
|
1054
|
+
const r = this._deserializeBucket(i, t);
|
|
1055
|
+
for (const o of r.layerUIDs)
|
|
1056
|
+
s.set(o, r);
|
|
1057
|
+
}
|
|
1058
|
+
return s;
|
|
1059
|
+
}
|
|
1060
|
+
_deserializeBucket(e, s) {
|
|
1061
|
+
let t = s.get(e);
|
|
1062
|
+
if (t)
|
|
1063
|
+
return t;
|
|
1064
|
+
switch (new Uint32Array(e)[0]) {
|
|
1065
|
+
case L.FILL:
|
|
1066
|
+
t = new kt(e, this.styleRepository);
|
|
1067
|
+
break;
|
|
1068
|
+
case L.LINE:
|
|
1069
|
+
t = new Ot(e, this.styleRepository);
|
|
1070
|
+
break;
|
|
1071
|
+
case L.SYMBOL:
|
|
1072
|
+
t = new Ut(e, this.styleRepository, this);
|
|
1073
|
+
break;
|
|
1074
|
+
case L.CIRCLE:
|
|
1075
|
+
t = new Et(e, this.styleRepository);
|
|
1076
|
+
}
|
|
1077
|
+
return s.set(e, t), t;
|
|
1078
|
+
}
|
|
1079
|
+
_deleteLayerData(e) {
|
|
1080
|
+
if (!this.layerData.has(e))
|
|
1081
|
+
return;
|
|
1082
|
+
const s = this.layerData.get(e);
|
|
1083
|
+
this._memoryUsedByLayerData -= s.memoryUsed, s.destroy(), this.layerData.delete(e);
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
const zt = /* @__PURE__ */ new Map();
|
|
1087
|
+
function Vt(h, e, s, t, i, r) {
|
|
1088
|
+
const { iconRotationAlignment: o, textRotationAlignment: n, iconTranslate: a, iconTranslateAnchor: l, textTranslate: c, textTranslateAnchor: y } = t;
|
|
1089
|
+
let d = 0;
|
|
1090
|
+
for (const u of h.colliders) {
|
|
1091
|
+
const [_, f] = u.partIndex === 0 ? a : c, g = u.partIndex === 0 ? l : y, p = u.minLod <= r && r <= u.maxLod;
|
|
1092
|
+
d += p ? 0 : 1, u.enabled = p, u.xScreen = u.xTile * i[0] + u.yTile * i[3] + i[6], u.yScreen = u.xTile * i[1] + u.yTile * i[4] + i[7], g === yt.MAP ? (u.xScreen += s * _ - e * f, u.yScreen += e * _ + s * f) : (u.xScreen += _, u.yScreen += f), O.VIEWPORT === (u.partIndex === 0 ? o : n) ? (u.dxScreen = u.dxPixels, u.dyScreen = u.dyPixels) : (u.dxScreen = s * (u.dxPixels + u.width / 2) - e * (u.dyPixels + u.height / 2) - u.width / 2, u.dyScreen = e * (u.dxPixels + u.width / 2) + s * (u.dyPixels + u.height / 2) - u.height / 2);
|
|
1093
|
+
}
|
|
1094
|
+
h.colliders.length > 0 && d === h.colliders.length && (h.unique.show = !1);
|
|
1095
|
+
}
|
|
1096
|
+
class Ft {
|
|
1097
|
+
constructor(e, s, t, i, r, o) {
|
|
1098
|
+
this._symbols = e, this._styleRepository = i, this._zoom = r, this._currentLayerCursor = 0, this._currentSymbolCursor = 0, this._styleProps = /* @__PURE__ */ new Map(), this._allNeededMatrices = /* @__PURE__ */ new Map(), this._gridIndex = new ke(s, t, ht), this._si = Math.sin(Math.PI * o / 180), this._co = Math.cos(Math.PI * o / 180);
|
|
1099
|
+
for (const n of e)
|
|
1100
|
+
for (const a of n.symbols)
|
|
1101
|
+
this._allNeededMatrices.has(a.tile) || this._allNeededMatrices.set(a.tile, Je(a.tile.transforms.tileUnitsToPixels));
|
|
1102
|
+
}
|
|
1103
|
+
work(e) {
|
|
1104
|
+
const s = this._gridIndex;
|
|
1105
|
+
function t(r) {
|
|
1106
|
+
const o = r.xScreen + r.dxScreen, n = r.yScreen + r.dyScreen, a = o + r.width, l = n + r.height, [c, y, d, u] = s.getCellSpan(o, n, a, l);
|
|
1107
|
+
for (let _ = y; _ <= u; _++)
|
|
1108
|
+
for (let f = c; f <= d; f++) {
|
|
1109
|
+
const g = s.cells[_][f];
|
|
1110
|
+
for (const p of g) {
|
|
1111
|
+
const m = p.xScreen + p.dxScreen, b = p.yScreen + p.dyScreen, S = m + p.width, I = b + p.height;
|
|
1112
|
+
if (!(a < m || o > S || l < b || n > I))
|
|
1113
|
+
return !0;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
return !1;
|
|
1117
|
+
}
|
|
1118
|
+
const i = performance.now();
|
|
1119
|
+
for (; this._currentLayerCursor < this._symbols.length; this._currentLayerCursor++, this._currentSymbolCursor = 0) {
|
|
1120
|
+
const r = this._symbols[this._currentLayerCursor], o = this._getProperties(r.styleLayerUID);
|
|
1121
|
+
for (; this._currentSymbolCursor < r.symbols.length; this._currentSymbolCursor++) {
|
|
1122
|
+
if (this._currentSymbolCursor % 100 == 99 && performance.now() - i > e)
|
|
1123
|
+
return !1;
|
|
1124
|
+
const n = r.symbols[this._currentSymbolCursor];
|
|
1125
|
+
if (!n.unique.show)
|
|
1126
|
+
continue;
|
|
1127
|
+
Vt(n, this._si, this._co, o, this._allNeededMatrices.get(n.tile), this._zoom);
|
|
1128
|
+
const a = n.unique;
|
|
1129
|
+
if (!a.show)
|
|
1130
|
+
continue;
|
|
1131
|
+
const { iconAllowOverlap: l, iconIgnorePlacement: c, textAllowOverlap: y, textIgnorePlacement: d } = o;
|
|
1132
|
+
for (const u of n.colliders) {
|
|
1133
|
+
if (!u.enabled)
|
|
1134
|
+
continue;
|
|
1135
|
+
const _ = a.parts[u.partIndex];
|
|
1136
|
+
_.show && !(u.partIndex ? y : l) && t(u) && (u.hard ? a.show = !1 : _.show = !1);
|
|
1137
|
+
}
|
|
1138
|
+
if (a.show)
|
|
1139
|
+
for (const u of n.colliders) {
|
|
1140
|
+
if (!u.enabled || (u.partIndex ? d : c) || !a.parts[u.partIndex].show)
|
|
1141
|
+
continue;
|
|
1142
|
+
const _ = u.xScreen + u.dxScreen, f = u.yScreen + u.dyScreen, g = _ + u.width, p = f + u.height, [m, b, S, I] = this._gridIndex.getCellSpan(_, f, g, p);
|
|
1143
|
+
for (let w = b; w <= I; w++)
|
|
1144
|
+
for (let x = m; x <= S; x++)
|
|
1145
|
+
this._gridIndex.cells[w][x].push(u);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
return !0;
|
|
1150
|
+
}
|
|
1151
|
+
_getProperties(e) {
|
|
1152
|
+
const s = this._styleProps.get(e);
|
|
1153
|
+
if (s)
|
|
1154
|
+
return s;
|
|
1155
|
+
const t = this._zoom, i = this._styleRepository.getStyleLayerByUID(e), r = i.getLayoutValue("symbol-placement", t) !== ut.POINT;
|
|
1156
|
+
let o = i.getLayoutValue("icon-rotation-alignment", t);
|
|
1157
|
+
o === O.AUTO && (o = r ? O.MAP : O.VIEWPORT);
|
|
1158
|
+
let n = i.getLayoutValue("text-rotation-alignment", t);
|
|
1159
|
+
n === O.AUTO && (n = r ? O.MAP : O.VIEWPORT);
|
|
1160
|
+
const a = i.getPaintValue("icon-translate", t), l = i.getPaintValue("icon-translate-anchor", t), c = i.getPaintValue("text-translate", t), y = i.getPaintValue("text-translate-anchor", t), d = { iconAllowOverlap: i.getLayoutValue("icon-allow-overlap", t), iconIgnorePlacement: i.getLayoutValue("icon-ignore-placement", t), textAllowOverlap: i.getLayoutValue("text-allow-overlap", t), textIgnorePlacement: i.getLayoutValue("text-ignore-placement", t), iconRotationAlignment: o, textRotationAlignment: n, iconTranslateAnchor: l, iconTranslate: a, textTranslateAnchor: y, textTranslate: c };
|
|
1161
|
+
return this._styleProps.set(e, d), d;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
function qt(h, e) {
|
|
1165
|
+
if (h.priority - e.priority)
|
|
1166
|
+
return h.priority - e.priority;
|
|
1167
|
+
const s = h.tile.key, t = e.tile.key;
|
|
1168
|
+
return s.world - t.world ? s.world - t.world : s.level - t.level ? s.level - t.level : s.row - t.row ? s.row - t.row : s.col - t.col ? s.col - t.col : h.xTile - e.xTile ? h.xTile - e.xTile : h.yTile - e.yTile;
|
|
1169
|
+
}
|
|
1170
|
+
class Ht {
|
|
1171
|
+
get running() {
|
|
1172
|
+
return this._running;
|
|
1173
|
+
}
|
|
1174
|
+
constructor(e, s, t, i, r, o) {
|
|
1175
|
+
this._visibleTiles = e, this._symbolRepository = s, this._createCollisionJob = t, this._assignTileSymbolsOpacity = i, this._symbolLayerSorter = r, this._isLayerVisible = o, this._selectionJob = null, this._selectionJobCompleted = !1, this._collisionJob = null, this._collisionJobCompleted = !1, this._opacityJob = null, this._opacityJobCompleted = !1, this._running = !0;
|
|
1176
|
+
}
|
|
1177
|
+
setScreenSize(e, s) {
|
|
1178
|
+
this._screenWidth === e && this._screenHeight === s || this.restart(), this._screenWidth = e, this._screenHeight = s;
|
|
1179
|
+
}
|
|
1180
|
+
restart() {
|
|
1181
|
+
this._selectionJob = null, this._selectionJobCompleted = !1, this._collisionJob = null, this._collisionJobCompleted = !1, this._opacityJob = null, this._opacityJobCompleted = !1, this._running = !0;
|
|
1182
|
+
}
|
|
1183
|
+
continue(e) {
|
|
1184
|
+
if (this._selectionJob || (this._selectionJob = this._createSelectionJob()), !this._selectionJobCompleted) {
|
|
1185
|
+
const s = performance.now();
|
|
1186
|
+
if (!this._selectionJob.work(e) || (this._selectionJobCompleted = !0, (e = Math.max(0, e - (performance.now() - s))) === 0))
|
|
1187
|
+
return !1;
|
|
1188
|
+
}
|
|
1189
|
+
if (this._collisionJob || (this._collisionJob = this._createCollisionJob(this._selectionJob.sortedSymbols, this._screenWidth, this._screenHeight)), !this._collisionJobCompleted) {
|
|
1190
|
+
const s = performance.now();
|
|
1191
|
+
if (!this._collisionJob.work(e) || (this._collisionJobCompleted = !0, (e = Math.max(0, e - (performance.now() - s))) === 0))
|
|
1192
|
+
return !1;
|
|
1193
|
+
}
|
|
1194
|
+
if (this._opacityJob || (this._opacityJob = this._createOpacityJob()), !this._opacityJobCompleted) {
|
|
1195
|
+
const s = performance.now();
|
|
1196
|
+
if (!this._opacityJob.work(e) || (this._opacityJobCompleted = !0, (e = Math.max(0, e - (performance.now() - s))) === 0))
|
|
1197
|
+
return !1;
|
|
1198
|
+
}
|
|
1199
|
+
return this._running = !1, !0;
|
|
1200
|
+
}
|
|
1201
|
+
_createSelectionJob() {
|
|
1202
|
+
const e = this._symbolRepository.uniqueSymbols;
|
|
1203
|
+
for (let a = 0; a < e.length; a++) {
|
|
1204
|
+
const l = e[a];
|
|
1205
|
+
for (let c = 0; c < l.uniqueSymbols.length; c++) {
|
|
1206
|
+
const y = l.uniqueSymbols[c];
|
|
1207
|
+
for (const d of y.tileSymbols)
|
|
1208
|
+
d.selectedForRendering = !1;
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
const s = [];
|
|
1212
|
+
let t = 0, i = 0;
|
|
1213
|
+
const r = this._isLayerVisible;
|
|
1214
|
+
function o(a) {
|
|
1215
|
+
let l;
|
|
1216
|
+
const c = performance.now();
|
|
1217
|
+
for (; i < e.length; i++, t = 0) {
|
|
1218
|
+
const y = e[i], d = y.styleLayerUID;
|
|
1219
|
+
if (!r(d)) {
|
|
1220
|
+
s[i] || (s[i] = { styleLayerUID: d, symbols: [] });
|
|
1221
|
+
continue;
|
|
1222
|
+
}
|
|
1223
|
+
s[i] = s[i] || { styleLayerUID: d, symbols: [] };
|
|
1224
|
+
const u = s[i];
|
|
1225
|
+
for (; t < y.uniqueSymbols.length; t++) {
|
|
1226
|
+
if (l = y.uniqueSymbols[t], t % 100 == 99 && performance.now() - c > a)
|
|
1227
|
+
return !1;
|
|
1228
|
+
let _ = null, f = !1, g = !1;
|
|
1229
|
+
for (const p of l.tileSymbols)
|
|
1230
|
+
if (!g || !f) {
|
|
1231
|
+
const m = p.tile;
|
|
1232
|
+
(!_ || m.isCoverage || m.neededForCoverage && !f) && (_ = p, (m.neededForCoverage || m.isCoverage) && (g = !0), m.isCoverage && (f = !0));
|
|
1233
|
+
}
|
|
1234
|
+
if (_.selectedForRendering = !0, g) {
|
|
1235
|
+
u.symbols.push(_), l.show = !0;
|
|
1236
|
+
for (const p of l.parts)
|
|
1237
|
+
p.show = !0;
|
|
1238
|
+
} else
|
|
1239
|
+
l.show = !1;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
for (const y of s)
|
|
1243
|
+
y.symbols.sort(qt);
|
|
1244
|
+
return !0;
|
|
1245
|
+
}
|
|
1246
|
+
const n = this._symbolLayerSorter;
|
|
1247
|
+
return { work: o, get sortedSymbols() {
|
|
1248
|
+
return s.sort(n);
|
|
1249
|
+
} };
|
|
1250
|
+
}
|
|
1251
|
+
_createOpacityJob() {
|
|
1252
|
+
const e = this._assignTileSymbolsOpacity, s = this._visibleTiles;
|
|
1253
|
+
let t = 0;
|
|
1254
|
+
function i(r, o) {
|
|
1255
|
+
const n = r.symbols;
|
|
1256
|
+
for (const [a, l] of n)
|
|
1257
|
+
Bt(l, o);
|
|
1258
|
+
e(r, o);
|
|
1259
|
+
for (const a of r.childrenTiles)
|
|
1260
|
+
i(a, o);
|
|
1261
|
+
}
|
|
1262
|
+
return { work(r) {
|
|
1263
|
+
const o = performance.now();
|
|
1264
|
+
for (; t < s.length; t++) {
|
|
1265
|
+
if (performance.now() - o > r)
|
|
1266
|
+
return !1;
|
|
1267
|
+
const n = s[t];
|
|
1268
|
+
n.parentTile == null && i(n, performance.now());
|
|
1269
|
+
}
|
|
1270
|
+
return !0;
|
|
1271
|
+
} };
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
function Bt(h, e) {
|
|
1275
|
+
for (const s of h) {
|
|
1276
|
+
const t = s.unique;
|
|
1277
|
+
for (const i of t.parts) {
|
|
1278
|
+
const r = i.targetOpacity > 0.5 ? 1 : -1;
|
|
1279
|
+
i.startOpacity += r * ((e - i.startTime) / Q), i.startOpacity = Math.min(Math.max(i.startOpacity, 0), 1), i.startTime = e, i.targetOpacity = t.show && i.show ? 1 : 0;
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
const Nt = 32, Wt = 8, Qt = 64;
|
|
1284
|
+
class Jt {
|
|
1285
|
+
constructor(e, s, t) {
|
|
1286
|
+
this.tileCoordRange = e, this._visibleTiles = s, this._createUnique = t, this._tiles = /* @__PURE__ */ new Map(), this._uniqueSymbolsReferences = /* @__PURE__ */ new Map();
|
|
1287
|
+
}
|
|
1288
|
+
get uniqueSymbols() {
|
|
1289
|
+
return this._uniqueSymbolLayerArray == null && (this._uniqueSymbolLayerArray = this._createUniqueSymbolLayerArray()), this._uniqueSymbolLayerArray;
|
|
1290
|
+
}
|
|
1291
|
+
get uniqueSymbolsReferences() {
|
|
1292
|
+
return this._uniqueSymbolsReferences;
|
|
1293
|
+
}
|
|
1294
|
+
add(e, s) {
|
|
1295
|
+
this._uniqueSymbolLayerArray = null;
|
|
1296
|
+
let t = this._tiles.get(e.id);
|
|
1297
|
+
t || (t = { symbols: /* @__PURE__ */ new Map() }, this._tiles.set(e.id, t));
|
|
1298
|
+
const i = /* @__PURE__ */ new Map();
|
|
1299
|
+
if (s)
|
|
1300
|
+
for (const n of s)
|
|
1301
|
+
t.symbols.has(n) && (i.set(n, t.symbols.get(n)), t.symbols.delete(n));
|
|
1302
|
+
else
|
|
1303
|
+
for (const [n, a] of e.layerData)
|
|
1304
|
+
t.symbols.has(n) && (i.set(n, t.symbols.get(n)), t.symbols.delete(n));
|
|
1305
|
+
this._removeSymbols(i);
|
|
1306
|
+
const r = e.symbols, o = /* @__PURE__ */ new Map();
|
|
1307
|
+
for (const [n, a] of r) {
|
|
1308
|
+
let l = a.length;
|
|
1309
|
+
if (l >= Nt) {
|
|
1310
|
+
let c = this.tileCoordRange;
|
|
1311
|
+
do
|
|
1312
|
+
c /= 2, l /= 4;
|
|
1313
|
+
while (l > Wt && c > Qt);
|
|
1314
|
+
const y = new ke(this.tileCoordRange, this.tileCoordRange, c);
|
|
1315
|
+
o.set(n, { flat: a, index: y }), t.symbols.set(n, { flat: a, index: y });
|
|
1316
|
+
for (const d of a)
|
|
1317
|
+
y.getCell(d.xTile, d.yTile).push(d);
|
|
1318
|
+
} else
|
|
1319
|
+
o.set(n, { flat: a }), t.symbols.set(n, { flat: a });
|
|
1320
|
+
}
|
|
1321
|
+
this._addSymbols(e.key, r);
|
|
1322
|
+
}
|
|
1323
|
+
deleteStyleLayers(e) {
|
|
1324
|
+
this._uniqueSymbolLayerArray = null;
|
|
1325
|
+
for (const [s, t] of this._tiles) {
|
|
1326
|
+
const i = /* @__PURE__ */ new Map();
|
|
1327
|
+
for (const r of e)
|
|
1328
|
+
t.symbols.has(r) && (i.set(r, t.symbols.get(r)), t.symbols.delete(r));
|
|
1329
|
+
this._removeSymbols(i), t.symbols.size === 0 && this._tiles.delete(s);
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
removeTile(e) {
|
|
1333
|
+
this._uniqueSymbolLayerArray = null;
|
|
1334
|
+
const s = this._tiles.get(e.id);
|
|
1335
|
+
if (!s)
|
|
1336
|
+
return;
|
|
1337
|
+
const t = /* @__PURE__ */ new Map();
|
|
1338
|
+
for (const [i, r] of e.symbols)
|
|
1339
|
+
s.symbols.has(i) && (t.set(i, s.symbols.get(i)), s.symbols.delete(i));
|
|
1340
|
+
this._removeSymbols(t), s.symbols.size === 0 && this._tiles.delete(e.id);
|
|
1341
|
+
}
|
|
1342
|
+
querySymbols(e, s, t, i) {
|
|
1343
|
+
const r = [], o = this.uniqueSymbols;
|
|
1344
|
+
for (const n of o) {
|
|
1345
|
+
const a = n.styleLayerUID, l = n.uniqueSymbols;
|
|
1346
|
+
for (const c of l) {
|
|
1347
|
+
const y = c.tileSymbols.find((d) => d.selectedForRendering);
|
|
1348
|
+
y && Mt(y, e, s * (window.devicePixelRatio || 1), t) && r.push({ vtlSymbol: y, styleLayerUID: a, tileKey: y.tile.key });
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
return r;
|
|
1352
|
+
}
|
|
1353
|
+
_removeSymbols(e) {
|
|
1354
|
+
for (const [s, { flat: t }] of e)
|
|
1355
|
+
for (const i of t) {
|
|
1356
|
+
const r = i.unique, o = r.tileSymbols, n = o.length - 1;
|
|
1357
|
+
for (let a = 0; a < n; a++)
|
|
1358
|
+
if (o[a] === i) {
|
|
1359
|
+
o[a] = o[n];
|
|
1360
|
+
break;
|
|
1361
|
+
}
|
|
1362
|
+
if (o.length = n, n === 0) {
|
|
1363
|
+
const a = this._uniqueSymbolsReferences.get(s);
|
|
1364
|
+
a.delete(r), a.size === 0 && this._uniqueSymbolsReferences.delete(s);
|
|
1365
|
+
}
|
|
1366
|
+
i.unique = null;
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
_addSymbols(e, s) {
|
|
1370
|
+
if (s.size === 0)
|
|
1371
|
+
return;
|
|
1372
|
+
const t = this._visibleTiles;
|
|
1373
|
+
for (const i of t)
|
|
1374
|
+
i.parentTile || i.key.world !== e.world || i.key.level === e.level && !i.key.equals(e) || this._matchSymbols(i, e, s);
|
|
1375
|
+
for (const [i, r] of s)
|
|
1376
|
+
for (const o of r)
|
|
1377
|
+
if (o.unique == null) {
|
|
1378
|
+
const n = this._createUnique();
|
|
1379
|
+
o.unique = n, n.tileSymbols.push(o);
|
|
1380
|
+
let a = this._uniqueSymbolsReferences.get(i);
|
|
1381
|
+
a || (a = /* @__PURE__ */ new Set(), this._uniqueSymbolsReferences.set(i, a)), a.add(n);
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
_matchSymbols(e, s, t) {
|
|
1385
|
+
if (e.key.level > s.level) {
|
|
1386
|
+
const r = e.key.level - s.level;
|
|
1387
|
+
if (e.key.row >> r !== s.row || e.key.col >> r !== s.col)
|
|
1388
|
+
return;
|
|
1389
|
+
}
|
|
1390
|
+
if (s.level > e.key.level) {
|
|
1391
|
+
const r = s.level - e.key.level;
|
|
1392
|
+
if (s.row >> r !== e.key.row || s.col >> r !== e.key.col)
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
if (s.equals(e.key)) {
|
|
1396
|
+
for (const r of e.childrenTiles)
|
|
1397
|
+
this._matchSymbols(r, s, t);
|
|
1398
|
+
return;
|
|
1399
|
+
}
|
|
1400
|
+
const i = /* @__PURE__ */ new Map();
|
|
1401
|
+
for (const [r, o] of t) {
|
|
1402
|
+
const n = [];
|
|
1403
|
+
for (const y of o) {
|
|
1404
|
+
const d = we(this.tileCoordRange, y.xTile, s.level, s.col, e.key.level, e.key.col), u = we(this.tileCoordRange, y.yTile, s.level, s.row, e.key.level, e.key.row);
|
|
1405
|
+
d >= 0 && d < this.tileCoordRange && u >= 0 && u < this.tileCoordRange && n.push({ symbol: y, xTransformed: d, yTransformed: u });
|
|
1406
|
+
}
|
|
1407
|
+
const a = [], l = e.key.level < s.level ? 1 : 1 << e.key.level - s.level, c = this._tiles.get(e.id).symbols.get(r);
|
|
1408
|
+
if (c) {
|
|
1409
|
+
const y = c.flat;
|
|
1410
|
+
for (const d of n) {
|
|
1411
|
+
let u, _ = !1;
|
|
1412
|
+
const f = d.xTransformed, g = d.yTransformed;
|
|
1413
|
+
u = c.index != null ? c.index.getCell(f, g) : y;
|
|
1414
|
+
const p = d.symbol, m = p.hash;
|
|
1415
|
+
for (const b of u)
|
|
1416
|
+
if (m === b.hash && Math.abs(f - b.xTile) <= l && Math.abs(g - b.yTile) <= l) {
|
|
1417
|
+
const S = b.unique;
|
|
1418
|
+
p.unique = S, S.tileSymbols.push(p), _ = !0;
|
|
1419
|
+
break;
|
|
1420
|
+
}
|
|
1421
|
+
_ || a.push(p);
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
a.length > 0 && i.set(r, a);
|
|
1425
|
+
}
|
|
1426
|
+
for (const r of e.childrenTiles)
|
|
1427
|
+
this._matchSymbols(r, s, i);
|
|
1428
|
+
}
|
|
1429
|
+
_createUniqueSymbolLayerArray() {
|
|
1430
|
+
const e = this._uniqueSymbolsReferences, s = new Array(e.size);
|
|
1431
|
+
let t, i = 0;
|
|
1432
|
+
for (const [r, o] of e) {
|
|
1433
|
+
const n = new Array(o.size);
|
|
1434
|
+
t = 0;
|
|
1435
|
+
for (const a of o)
|
|
1436
|
+
n[t++] = a;
|
|
1437
|
+
s[i] = { styleLayerUID: r, uniqueSymbols: n }, i++;
|
|
1438
|
+
}
|
|
1439
|
+
return s;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
const Kt = 0.5, Se = 1e-6;
|
|
1443
|
+
class Gt {
|
|
1444
|
+
constructor(e, s) {
|
|
1445
|
+
this.styleRepository = e, this._tileToHandle = /* @__PURE__ */ new Map(), this._viewState = { scale: 0, rotation: 0, center: [0, 0], size: [0, 0] }, this._declutterViewState = { scale: 0, rotation: 0, center: [0, 0], size: [0, 0] }, this._offsetFromScreenCenter = [0, 0], this._completed = !1, this._fading = Ke(!1), this._symbolRepository = new Jt(4096, s, () => new Rt()), this._symbolDeclutterer = new Ht(s, this._symbolRepository, (t, i, r) => this._createCollisionJob(t, i, r), (t, i) => {
|
|
1446
|
+
t.allSymbolsFadingOut = !0, t.lastOpacityUpdate = i, Pt(t, i, !0), t.decluttered = !0, t.requestRender();
|
|
1447
|
+
}, (t, i) => this.styleRepository.getStyleLayerByUID(t.styleLayerUID).z - this.styleRepository.getStyleLayerByUID(i.styleLayerUID).z, (t) => {
|
|
1448
|
+
const i = this.styleRepository.getStyleLayerByUID(t);
|
|
1449
|
+
if (this._zoom + Se < i.minzoom || this._zoom - Se >= i.maxzoom)
|
|
1450
|
+
return !1;
|
|
1451
|
+
const r = i.getLayoutProperty("visibility");
|
|
1452
|
+
return !r || r.getValue() !== Z.NONE;
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
get symbolRepository() {
|
|
1456
|
+
return this._symbolRepository;
|
|
1457
|
+
}
|
|
1458
|
+
_createCollisionJob(e, s, t) {
|
|
1459
|
+
return this.updateDecluttererViewState(), new Ft(e, s, t, this.styleRepository, this._zoom, this._viewState.rotation);
|
|
1460
|
+
}
|
|
1461
|
+
get fading() {
|
|
1462
|
+
return this._fading.value;
|
|
1463
|
+
}
|
|
1464
|
+
get decluttererOffset() {
|
|
1465
|
+
return this._offsetFromScreenCenter;
|
|
1466
|
+
}
|
|
1467
|
+
addTile(e) {
|
|
1468
|
+
e.decluttered = !1, this._tileToHandle.set(e, e.on("symbols-changed", () => {
|
|
1469
|
+
this._symbolRepository.add(e), this.restartDeclutter();
|
|
1470
|
+
})), this._symbolRepository.add(e), this.restartDeclutter();
|
|
1471
|
+
}
|
|
1472
|
+
removeTile(e) {
|
|
1473
|
+
const s = this._tileToHandle.get(e);
|
|
1474
|
+
s && (this._symbolRepository.removeTile(e), this.restartDeclutter(), s.remove(), this._tileToHandle.delete(e));
|
|
1475
|
+
}
|
|
1476
|
+
update(e, s) {
|
|
1477
|
+
this._zoom = e, this._viewState = { scale: s.scale, rotation: s.rotation, center: [s.center[0], s.center[1]], size: [s.size[0], s.size[1]] };
|
|
1478
|
+
const t = [0, 0];
|
|
1479
|
+
s.toScreen(t, s.center);
|
|
1480
|
+
const i = [0, 0];
|
|
1481
|
+
return s.toScreen(i, this._declutterViewState.center), this._offsetFromScreenCenter[0] = t[0] - i[0], this._offsetFromScreenCenter[1] = t[1] - i[1], this._continueDeclutter(), this._completed;
|
|
1482
|
+
}
|
|
1483
|
+
restartDeclutter() {
|
|
1484
|
+
this._completed = !1, this._symbolDeclutterer.restart(), this._notifyUnstable();
|
|
1485
|
+
}
|
|
1486
|
+
clear() {
|
|
1487
|
+
this._completed = !1, this._symbolRepository = null, this._symbolDeclutterer.restart(), this._tileToHandle.forEach((e) => e.remove()), this._tileToHandle.clear();
|
|
1488
|
+
}
|
|
1489
|
+
get stale() {
|
|
1490
|
+
return this._zoom !== this._declutterZoom || this._viewState.size[0] !== this._declutterViewState.size[0] || this._viewState.size[1] !== this._declutterViewState.size[1] || this._viewState.scale !== this._declutterViewState.scale || this._viewState.rotation !== this._declutterViewState.rotation;
|
|
1491
|
+
}
|
|
1492
|
+
deleteStyleLayers(e) {
|
|
1493
|
+
this._symbolRepository.deleteStyleLayers(e);
|
|
1494
|
+
}
|
|
1495
|
+
_continueDeclutter() {
|
|
1496
|
+
this._completed && !this.stale || (this._symbolDeclutterer.running || (this.updateDecluttererViewState(), this._symbolDeclutterer.restart()), this._symbolDeclutterer.setScreenSize(this._viewState.size[0], this._viewState.size[1]), this._completed = this._symbolDeclutterer.continue(ct), this._completed && this._scheduleNotifyStable());
|
|
1497
|
+
}
|
|
1498
|
+
_scheduleNotifyStable() {
|
|
1499
|
+
this._stableNotificationHandle != null && clearTimeout(this._stableNotificationHandle), this._stableNotificationHandle = setTimeout(() => {
|
|
1500
|
+
this._stableNotificationHandle = null, this._fading.value = !1;
|
|
1501
|
+
}, (1 + Kt) * Q);
|
|
1502
|
+
}
|
|
1503
|
+
_notifyUnstable() {
|
|
1504
|
+
this._stableNotificationHandle != null && (clearTimeout(this._stableNotificationHandle), this._stableNotificationHandle = null), this._fading.value = !0;
|
|
1505
|
+
}
|
|
1506
|
+
updateDecluttererViewState() {
|
|
1507
|
+
this._declutterZoom = this._zoom, this._declutterViewState.center[0] = this._viewState.center[0], this._declutterViewState.center[1] = this._viewState.center[1], this._declutterViewState.rotation = this._viewState.rotation, this._declutterViewState.scale = this._viewState.scale, this._declutterViewState.size[0] = this._viewState.size[0], this._declutterViewState.size[1] = this._viewState.size[1], this._offsetFromScreenCenter[0] = 0, this._offsetFromScreenCenter[1] = 0;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
let Yt = class extends Me {
|
|
1511
|
+
_createTransforms() {
|
|
1512
|
+
return { displayViewScreenMat3: z(), tileMat3: z() };
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
const J = 1e-6;
|
|
1516
|
+
function xe(h, e) {
|
|
1517
|
+
if (h) {
|
|
1518
|
+
const s = h.getLayoutProperty("visibility");
|
|
1519
|
+
if (!s || s.getValue() !== Z.NONE && (h.minzoom === void 0 || h.minzoom < e + J) && (h.maxzoom === void 0 || h.maxzoom >= e - J))
|
|
1520
|
+
return !0;
|
|
1521
|
+
}
|
|
1522
|
+
return !1;
|
|
1523
|
+
}
|
|
1524
|
+
let jt = class extends dt {
|
|
1525
|
+
constructor(e) {
|
|
1526
|
+
super(e), this._backgroundTiles = [], this._computeDisplayInfoView(e);
|
|
1527
|
+
}
|
|
1528
|
+
destroy() {
|
|
1529
|
+
var e, s;
|
|
1530
|
+
this.removeAllChildren(), (e = this._spriteMosaic) == null || e.dispose(), this._spriteMosaic = null, (s = this._glyphMosaic) == null || s.dispose(), this._glyphMosaic = null, this._symbolFader != null && (this._symbolFader.clear(), this._symbolFader = null), this._styleRepository = null, this._backgroundTiles = [];
|
|
1531
|
+
}
|
|
1532
|
+
get fading() {
|
|
1533
|
+
var e;
|
|
1534
|
+
return ((e = this._symbolFader) == null ? void 0 : e.fading) ?? !1;
|
|
1535
|
+
}
|
|
1536
|
+
get symbolFader() {
|
|
1537
|
+
return this._symbolFader;
|
|
1538
|
+
}
|
|
1539
|
+
get symbolRepository() {
|
|
1540
|
+
var e;
|
|
1541
|
+
return (e = this._symbolFader) == null ? void 0 : e.symbolRepository;
|
|
1542
|
+
}
|
|
1543
|
+
setStyleResources(e, s, t, i) {
|
|
1544
|
+
this._spriteMosaic = e, this._glyphMosaic = s, this._styleRepository = t, this._tileInfoView = i, this._computeDisplayInfoView(i), this._symbolFader == null && (this._symbolFader = new Gt(this._styleRepository, this.children)), this._symbolFader.styleRepository = t;
|
|
1545
|
+
}
|
|
1546
|
+
setSpriteMosaic(e) {
|
|
1547
|
+
var s;
|
|
1548
|
+
(s = this._spriteMosaic) == null || s.dispose(), this._spriteMosaic = e;
|
|
1549
|
+
}
|
|
1550
|
+
deleteStyleLayers(e) {
|
|
1551
|
+
this._symbolFader != null && this._symbolFader.deleteStyleLayers(e);
|
|
1552
|
+
}
|
|
1553
|
+
createRenderParams(e) {
|
|
1554
|
+
return { ...super.createRenderParams(e), renderPass: null, styleLayer: null, styleLayerUID: -1, glyphMosaic: this._glyphMosaic, spriteMosaic: this._spriteMosaic, hasClipping: !!this._clippingInfos };
|
|
1555
|
+
}
|
|
1556
|
+
doRender(e) {
|
|
1557
|
+
!this.visible || e.drawPhase !== N.MAP && e.drawPhase !== N.DEBUG || this._spriteMosaic === void 0 || super.doRender(e);
|
|
1558
|
+
}
|
|
1559
|
+
addChild(e) {
|
|
1560
|
+
return super.addChild(e), this._symbolFader != null ? this._symbolFader.addTile(e) : e.decluttered = !0, this.requestRender(), e;
|
|
1561
|
+
}
|
|
1562
|
+
removeChild(e) {
|
|
1563
|
+
return this._symbolFader != null && this._symbolFader.removeTile(e), this.requestRender(), super.removeChild(e);
|
|
1564
|
+
}
|
|
1565
|
+
renderChildren(e) {
|
|
1566
|
+
const { drawPhase: s } = e;
|
|
1567
|
+
s !== N.DEBUG ? this._doRender(e) : super.renderChildren(e);
|
|
1568
|
+
}
|
|
1569
|
+
removeAllChildren() {
|
|
1570
|
+
for (let e = 0; e < this.children.length; e++) {
|
|
1571
|
+
const s = this.children[e];
|
|
1572
|
+
this._symbolFader != null && this._symbolFader.removeTile(s), s.dispose();
|
|
1573
|
+
}
|
|
1574
|
+
super.removeAllChildren();
|
|
1575
|
+
}
|
|
1576
|
+
getStencilTarget() {
|
|
1577
|
+
return this.children.filter((e) => e.neededForCoverage && e.hasData());
|
|
1578
|
+
}
|
|
1579
|
+
restartDeclutter() {
|
|
1580
|
+
this._symbolFader != null && this._symbolFader.restartDeclutter();
|
|
1581
|
+
}
|
|
1582
|
+
_doRender(e) {
|
|
1583
|
+
const { context: s, state: t } = e, i = this._styleRepository;
|
|
1584
|
+
if (!i)
|
|
1585
|
+
return;
|
|
1586
|
+
const r = i.layers, o = this._displayInfo.scaleToZoom(t.scale);
|
|
1587
|
+
i.backgroundBucketIds.length > 0 && (e.renderPass = "background", this._renderBackgroundLayers(e, i.backgroundBucketIds, o)), super.renderChildren(e), e.drawPhase === N.MAP && this._fade(o, t);
|
|
1588
|
+
const n = this.children.filter((a) => a.visible && a.hasData());
|
|
1589
|
+
if (!n || n.length === 0)
|
|
1590
|
+
return s.bindVAO(), s.setStencilTestEnabled(!0), void s.setBlendingEnabled(!0);
|
|
1591
|
+
for (const a of n)
|
|
1592
|
+
a.triangleCount = 0;
|
|
1593
|
+
s.setStencilWriteMask(0), s.setColorMask(!0, !0, !0, !0), s.setStencilOp(k.KEEP, k.KEEP, k.REPLACE), s.setStencilTestEnabled(!0), s.setBlendingEnabled(!1), s.setDepthTestEnabled(!0), s.setDepthWriteEnabled(!0), s.setDepthFunction(ue.LEQUAL), s.setClearDepth(1), s.clear(s.gl.DEPTH_BUFFER_BIT), e.renderPass = "opaque";
|
|
1594
|
+
for (let a = r.length - 1; a >= 0; a--)
|
|
1595
|
+
this._renderStyleLayer(r[a], e, n);
|
|
1596
|
+
s.setDepthWriteEnabled(!1), s.setBlendingEnabled(!0), s.setBlendFunctionSeparate(B.ONE, B.ONE_MINUS_SRC_ALPHA, B.ONE, B.ONE_MINUS_SRC_ALPHA), e.renderPass = "translucent";
|
|
1597
|
+
for (let a = 0; a < r.length; a++)
|
|
1598
|
+
this._renderStyleLayer(r[a], e, n);
|
|
1599
|
+
s.bindVAO(), s.setStencilTestEnabled(!0), s.setBlendingEnabled(!0);
|
|
1600
|
+
for (const a of n)
|
|
1601
|
+
a.debugInfo.display.triangleCount = a.triangleCount;
|
|
1602
|
+
}
|
|
1603
|
+
_fade(e, s) {
|
|
1604
|
+
this._symbolFader != null && (this._symbolFader.update(e, s) || this.requestRender());
|
|
1605
|
+
}
|
|
1606
|
+
_renderStyleLayer(e, s, t) {
|
|
1607
|
+
const { displayLevel: i, painter: r, renderPass: o } = s;
|
|
1608
|
+
if (e === void 0)
|
|
1609
|
+
return;
|
|
1610
|
+
const n = e.getLayoutProperty("visibility");
|
|
1611
|
+
if (n && n.getValue() === Z.NONE)
|
|
1612
|
+
return;
|
|
1613
|
+
let a;
|
|
1614
|
+
switch (e.type) {
|
|
1615
|
+
case D.BACKGROUND:
|
|
1616
|
+
return;
|
|
1617
|
+
case D.FILL:
|
|
1618
|
+
if (o !== "opaque" && s.renderPass !== "translucent")
|
|
1619
|
+
return;
|
|
1620
|
+
a = "vtlFill";
|
|
1621
|
+
break;
|
|
1622
|
+
case D.LINE:
|
|
1623
|
+
if (o !== "translucent")
|
|
1624
|
+
return;
|
|
1625
|
+
a = "vtlLine";
|
|
1626
|
+
break;
|
|
1627
|
+
case D.CIRCLE:
|
|
1628
|
+
if (o !== "translucent")
|
|
1629
|
+
return;
|
|
1630
|
+
a = "vtlCircle";
|
|
1631
|
+
break;
|
|
1632
|
+
case D.SYMBOL:
|
|
1633
|
+
if (o !== "translucent")
|
|
1634
|
+
return;
|
|
1635
|
+
a = "vtlSymbol";
|
|
1636
|
+
}
|
|
1637
|
+
if (t = e.type === D.SYMBOL ? t.filter((c) => c.decluttered) : t.filter((c) => c.neededForCoverage), a !== "vtlSymbol" && (t.length === 0 || e.minzoom !== void 0 && e.minzoom >= i + J || e.maxzoom !== void 0 && e.maxzoom < i - J))
|
|
1638
|
+
return;
|
|
1639
|
+
const l = e.uid;
|
|
1640
|
+
s.styleLayerUID = l, s.styleLayer = e;
|
|
1641
|
+
for (const c of t)
|
|
1642
|
+
if (c.layerData.has(l)) {
|
|
1643
|
+
r.renderObjects(s, t, a);
|
|
1644
|
+
break;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
_renderBackgroundLayers(e, s, t) {
|
|
1648
|
+
const { context: i, painter: r, state: o } = e, n = this._styleRepository;
|
|
1649
|
+
let a = !1;
|
|
1650
|
+
for (const b of s)
|
|
1651
|
+
if (n.getLayerById(b).type === D.BACKGROUND && xe(n.getLayerById(b), t)) {
|
|
1652
|
+
a = !0;
|
|
1653
|
+
break;
|
|
1654
|
+
}
|
|
1655
|
+
if (!a)
|
|
1656
|
+
return;
|
|
1657
|
+
const l = this._tileInfoView, c = l.getTileCoverage(e.state, 0, !0, "smallest"), { spans: y, lodInfo: d } = c, { level: u } = d, _ = F(), f = [];
|
|
1658
|
+
if (this._renderPasses) {
|
|
1659
|
+
const b = this._renderPasses[0];
|
|
1660
|
+
this._clippingInfos != null && (b.brushes[0].prepareState(e), b.brushes[0].drawMany(e, this._clippingInfos));
|
|
1661
|
+
}
|
|
1662
|
+
const g = this._backgroundTiles;
|
|
1663
|
+
let p, m = 0;
|
|
1664
|
+
for (const { row: b, colFrom: S, colTo: I } of y)
|
|
1665
|
+
for (let w = S; w <= I; w++) {
|
|
1666
|
+
if (m < g.length)
|
|
1667
|
+
p = g[m], p.key.set(u, b, d.normalizeCol(w), d.getWorldForColumn(w)), l.getTileBounds(_, p.key, !1), p.x = _[0], p.y = _[3], p.resolution = l.getTileResolution(u);
|
|
1668
|
+
else {
|
|
1669
|
+
const x = new M(u, b, d.normalizeCol(w), d.getWorldForColumn(w)), P = l.getTileBounds(F(), x), q = l.getTileResolution(u);
|
|
1670
|
+
p = new Yt(x, q, P[0], P[3], 512, 512, 4096, 4096), g.push(p);
|
|
1671
|
+
}
|
|
1672
|
+
p.setTransform(o), f.push(p), m++;
|
|
1673
|
+
}
|
|
1674
|
+
i.setStencilWriteMask(0), i.setColorMask(!0, !0, !0, !0), i.setStencilOp(k.KEEP, k.KEEP, k.REPLACE), i.setStencilFunction(ue.EQUAL, 0, 255), i.setStencilTestEnabled(!0);
|
|
1675
|
+
for (const b of s) {
|
|
1676
|
+
const S = n.getLayerById(b);
|
|
1677
|
+
S.type === D.BACKGROUND && xe(S, t) && (e.styleLayerUID = S.uid, e.styleLayer = S, r.renderObjects(e, f, "vtlBackground"));
|
|
1678
|
+
}
|
|
1679
|
+
Ce.pool.release(c);
|
|
1680
|
+
}
|
|
1681
|
+
_computeDisplayInfoView(e) {
|
|
1682
|
+
let s = e.tileInfo.lods[0].scale;
|
|
1683
|
+
const t = Math.max(25, e.tileInfo.lods.length), i = [];
|
|
1684
|
+
for (let r = 0; r <= t; r++)
|
|
1685
|
+
i.push(s), s /= 2;
|
|
1686
|
+
this._displayInfo = Re.create({ scales: i, size: 512, spatialReference: e.spatialReference, numLODs: t });
|
|
1687
|
+
}
|
|
1688
|
+
};
|
|
1689
|
+
const Xt = 8, Zt = 512, Ie = 4096, es = (h, e) => {
|
|
1690
|
+
const s = h.vtlSymbol.sourceTile, t = e.vtlSymbol.sourceTile;
|
|
1691
|
+
return s.level !== t.level ? s.level - t.level : s.row !== t.row ? s.row - t.row : s.col !== t.col ? s.col - t.col : h.styleLayerUID - e.styleLayerUID;
|
|
1692
|
+
};
|
|
1693
|
+
class ee {
|
|
1694
|
+
constructor(e, s, t, i, r) {
|
|
1695
|
+
this.tileKey = e, this._index = null, this._styleRepository = null, this._tileHandler = null, this._tileKeyToPBF = /* @__PURE__ */ new Map(), this._tileLayerData = s, this._styleRepository = t, this._tileHandler = i, this._parentLayer = r;
|
|
1696
|
+
}
|
|
1697
|
+
static create(e, s, t, i, r) {
|
|
1698
|
+
return new ee(e, s, t, i, r);
|
|
1699
|
+
}
|
|
1700
|
+
clear() {
|
|
1701
|
+
var e;
|
|
1702
|
+
(e = this._index) == null || e.clear(), this._tileKeyToPBF.clear();
|
|
1703
|
+
}
|
|
1704
|
+
async queryAttributes(e, s, t, i, r) {
|
|
1705
|
+
if (this._tileLayerData.size === 0 || !this._styleRepository || !this._tileHandler)
|
|
1706
|
+
return [];
|
|
1707
|
+
this._index === null && (this._index = new _t(100, ts), await this._indexLayers());
|
|
1708
|
+
const o = [];
|
|
1709
|
+
return this._queryIndex(o, e, s, t, this.tileKey.level, i), r && (r == null ? void 0 : r.length) > 0 && await this._getSymbolsAttributes(o, r), o;
|
|
1710
|
+
}
|
|
1711
|
+
async _indexLayers() {
|
|
1712
|
+
const e = this.tileKey, s = this._styleRepository.layers, t = await this._getTilePayload(e);
|
|
1713
|
+
for (const [i, r] of this._tileLayerData) {
|
|
1714
|
+
const o = s[i], n = t.find((c) => c.sourceName === o.source);
|
|
1715
|
+
if (!n)
|
|
1716
|
+
continue;
|
|
1717
|
+
const { protobuff: a, key: l } = n;
|
|
1718
|
+
if (r.type !== L.SYMBOL) {
|
|
1719
|
+
const c = 1 << e.level - l.level, y = e.row - l.row * c, d = e.col - l.col * c;
|
|
1720
|
+
this._indexLayer(o, a, e.level, c, y, d);
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
_indexLayer(e, s, t, i, r, o) {
|
|
1725
|
+
const n = e.sourceLayer, a = e.getFeatureFilter(), l = t, c = t + 1, y = lt(l), d = new X(new Uint8Array(s), new DataView(s));
|
|
1726
|
+
for (; d.next(); )
|
|
1727
|
+
switch (d.tag()) {
|
|
1728
|
+
case 3: {
|
|
1729
|
+
const u = d.getMessage(), _ = new ye(u);
|
|
1730
|
+
if (u.release(), _.name !== n)
|
|
1731
|
+
continue;
|
|
1732
|
+
const f = _.getData(), g = _.extent / i, p = g * o - y, m = g * r - y, b = p + g + 2 * y, S = m + g + 2 * y, I = g / Zt, w = Ie / g, x = g * o, P = g * r;
|
|
1733
|
+
for (; f.nextTag(2); ) {
|
|
1734
|
+
const q = f.getMessage(), H = new de(q, _);
|
|
1735
|
+
if (q.release(), a && !a.filter(H, t))
|
|
1736
|
+
continue;
|
|
1737
|
+
const te = H.values || {}, se = te._minzoom, ie = te._maxzoom;
|
|
1738
|
+
if (se && se >= 10 * c || ie && ie <= 10 * l)
|
|
1739
|
+
continue;
|
|
1740
|
+
const T = e.getFeatureInflatedBounds(H, l, _.extent, I);
|
|
1741
|
+
T == null || T[0] > b || T[1] > S || T[2] < p || T[3] < m || (T[0] = (T[0] - x) * w, T[1] = (T[1] - P) * w, T[2] = (T[2] - x) * w, T[3] = (T[3] - P) * w, this._index.insert(new ft(e, H, T, w, x, P)));
|
|
1742
|
+
}
|
|
1743
|
+
break;
|
|
1744
|
+
}
|
|
1745
|
+
default:
|
|
1746
|
+
d.skip();
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
async _getSymbolsAttributes(e, s) {
|
|
1750
|
+
if (!s || s.length === 0)
|
|
1751
|
+
return e;
|
|
1752
|
+
const t = [];
|
|
1753
|
+
s.sort(es);
|
|
1754
|
+
let i = s[0].styleLayerUID, r = 0;
|
|
1755
|
+
for (let l = 0; l < s.length; l++)
|
|
1756
|
+
i !== s[l].styleLayerUID && (t.push({ from: r, to: l, styleLayerUID: i, sourceTileKey: s[l].vtlSymbol.sourceTile }), r = l, i = s[l].styleLayerUID);
|
|
1757
|
+
t.push({ from: r, to: s.length, styleLayerUID: i, sourceTileKey: s[s.length - 1].vtlSymbol.sourceTile });
|
|
1758
|
+
const o = this._styleRepository.layers;
|
|
1759
|
+
let n, a = null;
|
|
1760
|
+
for (const l of t) {
|
|
1761
|
+
const c = await this._getTilePayload(l.sourceTileKey);
|
|
1762
|
+
n = o[l.styleLayerUID], a = !!n && c.find((y) => y.sourceName === n.source), a && this._addSymbolsAttributes(e, s.slice(l.from, l.to).map((y) => y.vtlSymbol), i, a);
|
|
1763
|
+
}
|
|
1764
|
+
return e;
|
|
1765
|
+
}
|
|
1766
|
+
_addSymbolsAttributes(e, s, t, i) {
|
|
1767
|
+
const r = this._styleRepository.layers, o = i.key, n = this.tileKey, a = 1 << n.level - o.level, l = n.row - o.row * a, c = n.col - o.col * a;
|
|
1768
|
+
this._getSymbolAttributes(i.protobuff, s, t, a, l, c).forEach((y) => {
|
|
1769
|
+
const { attributes: d, tilePoint: u } = y;
|
|
1770
|
+
e.push({ layerId: r[t].id, layerIndex: t, graphic: new ae({ attributes: d, origin: { type: "vector-tile", layerId: r[t].id, layerIndex: t, layer: this._parentLayer } }), tilePoint: u });
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
_getSymbolAttributes(e, s, t, i, r, o) {
|
|
1774
|
+
const n = [], a = this._styleRepository.layers;
|
|
1775
|
+
let l = 0;
|
|
1776
|
+
s.sort((y, d) => y.featureIndex - d.featureIndex);
|
|
1777
|
+
const c = new X(new Uint8Array(e), new DataView(e));
|
|
1778
|
+
for (; c.next(); )
|
|
1779
|
+
switch (c.tag()) {
|
|
1780
|
+
case 3: {
|
|
1781
|
+
const y = c.getMessage(), d = new ye(y);
|
|
1782
|
+
if (y.release(), d.name !== a[t].sourceLayer)
|
|
1783
|
+
continue;
|
|
1784
|
+
const u = d.getData(), _ = d.extent / i, f = Ie / _, g = _ * o, p = _ * r;
|
|
1785
|
+
let m = 0;
|
|
1786
|
+
for (; u.nextTag(2); ) {
|
|
1787
|
+
const b = u.getMessage();
|
|
1788
|
+
if (m++ === s[l].featureIndex) {
|
|
1789
|
+
const S = new de(b, d), I = S.values, w = S.getGeometry(), x = w != null ? [f * (w[0][0].x - g), f * (w[0][0].y - p)] : null;
|
|
1790
|
+
n.push({ attributes: I, tilePoint: x }), l++;
|
|
1791
|
+
}
|
|
1792
|
+
if (b.release(), l === s.length)
|
|
1793
|
+
return n;
|
|
1794
|
+
}
|
|
1795
|
+
break;
|
|
1796
|
+
}
|
|
1797
|
+
default:
|
|
1798
|
+
c.skip();
|
|
1799
|
+
}
|
|
1800
|
+
return n;
|
|
1801
|
+
}
|
|
1802
|
+
_queryIndex(e, s, t, i, r, o) {
|
|
1803
|
+
var a;
|
|
1804
|
+
const n = Xt * i * (window.devicePixelRatio || 1);
|
|
1805
|
+
return (a = this._index) == null || a.search({ minX: s - n, minY: t - n, maxX: s + n, maxY: t + n }, (l) => {
|
|
1806
|
+
const { layer: c, feature: y } = l;
|
|
1807
|
+
c.isIntersectingFeature(s, t, i, y, r, o, l) && e.push({ layerId: c.id, layerIndex: c.uid, tilePoint: null, graphic: new ae({ attributes: y.values, origin: { type: "vector-tile", layerId: l.layer.id, layerIndex: l.layer.uid, layer: this._parentLayer } }) });
|
|
1808
|
+
}), e;
|
|
1809
|
+
}
|
|
1810
|
+
async _getTilePayload(e) {
|
|
1811
|
+
return Ge(this._tileKeyToPBF, e.id, () => this._tileHandler.fetchTilePBFs(e)).then((s) => s);
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
const ts = (h) => ({ minX: h.bounds[0], minY: h.bounds[1], maxX: h.bounds[2], maxY: h.bounds[3] });
|
|
1815
|
+
class Te extends Ye {
|
|
1816
|
+
constructor() {
|
|
1817
|
+
super(...arguments), this._fullCacheLodInfos = null, this._levelByScale = {};
|
|
1818
|
+
}
|
|
1819
|
+
getTileParentId(e) {
|
|
1820
|
+
const s = M.pool.acquire(e), t = s.level === 0 ? null : M.getId(s.level - 1, s.row >> 1, s.col >> 1, s.world);
|
|
1821
|
+
return M.pool.release(s), t;
|
|
1822
|
+
}
|
|
1823
|
+
getTileCoverage(e, s, t = !0, i) {
|
|
1824
|
+
const r = super.getTileCoverage(e, s, t, i);
|
|
1825
|
+
if (!r)
|
|
1826
|
+
return r;
|
|
1827
|
+
const o = 1 << r.lodInfo.level;
|
|
1828
|
+
return r.spans = r.spans.filter((n) => n.row >= 0 && n.row < o), r;
|
|
1829
|
+
}
|
|
1830
|
+
scaleToLevel(e) {
|
|
1831
|
+
if (this._fullCacheLodInfos || this._initializeFullCacheLODs(this._lodInfos), this._levelByScale[e])
|
|
1832
|
+
return this._levelByScale[e];
|
|
1833
|
+
{
|
|
1834
|
+
const s = this._fullCacheLodInfos;
|
|
1835
|
+
if (e > s[0].scale)
|
|
1836
|
+
return s[0].level;
|
|
1837
|
+
let t, i;
|
|
1838
|
+
for (let r = 0; r < s.length - 1; r++)
|
|
1839
|
+
if (i = s[r + 1], e > i.scale)
|
|
1840
|
+
return t = s[r], t.level + (t.scale - e) / (t.scale - i.scale);
|
|
1841
|
+
return s[s.length - 1].level;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
_initializeFullCacheLODs(e) {
|
|
1845
|
+
let s;
|
|
1846
|
+
if (e[0].level === 0)
|
|
1847
|
+
s = e.map((t) => ({ level: t.level, resolution: t.resolution, scale: t.scale }));
|
|
1848
|
+
else {
|
|
1849
|
+
const t = this.tileInfo.size[0], i = this.tileInfo.spatialReference;
|
|
1850
|
+
s = Re.create({ size: t, spatialReference: i }).lods.map((r) => ({ level: r.level, resolution: r.resolution, scale: r.scale }));
|
|
1851
|
+
}
|
|
1852
|
+
for (let t = 0; t < s.length; t++)
|
|
1853
|
+
this._levelByScale[s[t].scale] = s[t].level;
|
|
1854
|
+
this._fullCacheLodInfos = s;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
const Y = 2, ve = 8, De = 512;
|
|
1858
|
+
let W = class extends pt(gt) {
|
|
1859
|
+
constructor() {
|
|
1860
|
+
super(...arguments), this._styleChanges = [], this._fetchQueue = null, this._parseQueue = null, this._tileHandlerPromise = null, this._isTileHandlerReady = !1;
|
|
1861
|
+
}
|
|
1862
|
+
get fading() {
|
|
1863
|
+
var h;
|
|
1864
|
+
return ((h = this._vectorTileContainer) == null ? void 0 : h.fading) ?? !1;
|
|
1865
|
+
}
|
|
1866
|
+
async hitTest(h, e) {
|
|
1867
|
+
var c, y;
|
|
1868
|
+
const s = this._tileHandlerPromise, t = (c = this._vectorTileContainer) == null ? void 0 : c.symbolFader;
|
|
1869
|
+
if (!s || !this._isTileHandlerReady || !t)
|
|
1870
|
+
return;
|
|
1871
|
+
await s;
|
|
1872
|
+
let i = null;
|
|
1873
|
+
const r = (y = this._vectorTileContainer) == null ? void 0 : y.symbolRepository;
|
|
1874
|
+
r && (i = r.querySymbols(e, Y, t.decluttererOffset, {}));
|
|
1875
|
+
const o = this.view.state, n = this._tileManager.getIntersectingTiles(e.x, e.y, Y, o, i);
|
|
1876
|
+
if ((!n || n.length === 0) && (i == null ? void 0 : i.length) === 0)
|
|
1877
|
+
return null;
|
|
1878
|
+
h = h.clone().normalize();
|
|
1879
|
+
const a = [], l = [];
|
|
1880
|
+
for (const d of n)
|
|
1881
|
+
a.push(this._queryTile(l, h, Y, this.view.state.rotation, d, i == null ? void 0 : i.filter((u) => u.tileKey.id === d.id)));
|
|
1882
|
+
return await Promise.all(a), l;
|
|
1883
|
+
}
|
|
1884
|
+
update(h) {
|
|
1885
|
+
if (this._tileHandlerPromise && this._isTileHandlerReady)
|
|
1886
|
+
return h.pixelRatio !== this._tileHandler.devicePixelRatio ? (this._start(), void (this._tileHandler.devicePixelRatio = h.pixelRatio)) : void (this._styleChanges.length > 0 ? this._tileHandlerPromise = this._applyStyleChanges() : (this._fetchQueue.pause(), this._parseQueue.pause(), this._fetchQueue.state = h.state, this._parseQueue.state = h.state, this._tileManager.update(h) || this.requestUpdate(), this._parseQueue.resume(), this._fetchQueue.resume()));
|
|
1887
|
+
}
|
|
1888
|
+
attach() {
|
|
1889
|
+
const { style: h } = this.layer.currentStyleInfo;
|
|
1890
|
+
this._styleRepository = new _e(h), this._tileInfoView = new Te(this.layer.tileInfo, this.layer.fullExtent), this._vectorTileContainer = new jt(this._tileInfoView), this._tileHandler = new St(this.layer, this._styleRepository, window.devicePixelRatio || 1, this.layer.tileInfo.lods.length - 1), this.container.addChild(this._vectorTileContainer), this._start(), this.addAttachHandles([this.layer.on("paint-change", (e) => {
|
|
1891
|
+
var s, t;
|
|
1892
|
+
if (e.isDataDriven)
|
|
1893
|
+
this._styleChanges.push({ type: v.PAINTER_CHANGED, data: e }), this.requestUpdate();
|
|
1894
|
+
else {
|
|
1895
|
+
const i = this._styleRepository, r = i.getLayerById(e.layer);
|
|
1896
|
+
if (!r)
|
|
1897
|
+
return;
|
|
1898
|
+
const o = r.type === D.SYMBOL;
|
|
1899
|
+
i.setPaintProperties(e.layer, e.paint), o && ((s = this._vectorTileContainer) == null || s.restartDeclutter()), (t = this._vectorTileContainer) == null || t.requestRender();
|
|
1900
|
+
}
|
|
1901
|
+
}), this.layer.on("layout-change", (e) => {
|
|
1902
|
+
var r, o;
|
|
1903
|
+
const s = this._styleRepository, t = s.getLayerById(e.layer);
|
|
1904
|
+
if (!t)
|
|
1905
|
+
return;
|
|
1906
|
+
const i = st(t.layout, e.layout);
|
|
1907
|
+
if (i != null) {
|
|
1908
|
+
if (it(i, "visibility") && ss(i) === 1)
|
|
1909
|
+
return s.setLayoutProperties(e.layer, e.layout), t.type === D.SYMBOL && ((r = this._vectorTileContainer) == null || r.restartDeclutter()), void ((o = this._vectorTileContainer) == null ? void 0 : o.requestRender());
|
|
1910
|
+
this._styleChanges.push({ type: v.LAYOUT_CHANGED, data: e }), this.requestUpdate();
|
|
1911
|
+
}
|
|
1912
|
+
}), this.layer.on("style-layer-visibility-change", (e) => {
|
|
1913
|
+
var i, r;
|
|
1914
|
+
const s = this._styleRepository, t = s.getLayerById(e.layer);
|
|
1915
|
+
t && (s.setStyleLayerVisibility(e.layer, e.visibility), t.type === D.SYMBOL && ((i = this._vectorTileContainer) == null || i.restartDeclutter()), (r = this._vectorTileContainer) == null || r.requestRender());
|
|
1916
|
+
}), this.layer.on("style-layer-change", (e) => {
|
|
1917
|
+
this._styleChanges.push({ type: v.LAYER_CHANGED, data: e }), this.requestUpdate();
|
|
1918
|
+
}), this.layer.on("delete-style-layer", (e) => {
|
|
1919
|
+
this._styleChanges.push({ type: v.LAYER_REMOVED, data: e }), this.requestUpdate();
|
|
1920
|
+
}), this.layer.on("load-style", () => this._loadStyle()), this.layer.on("spriteSource-change", (e) => {
|
|
1921
|
+
this._styleChanges.push({ type: v.SPRITES_CHANGED, data: e });
|
|
1922
|
+
const s = this._styleRepository.layers;
|
|
1923
|
+
for (const t of s)
|
|
1924
|
+
switch (t.type) {
|
|
1925
|
+
case D.SYMBOL:
|
|
1926
|
+
t.getLayoutProperty("icon-image") && this._styleChanges.push({ type: v.LAYOUT_CHANGED, data: { layer: t.id, layout: t.layout } });
|
|
1927
|
+
break;
|
|
1928
|
+
case D.LINE:
|
|
1929
|
+
t.getPaintProperty("line-pattern") && this._styleChanges.push({ type: v.PAINTER_CHANGED, data: { layer: t.id, paint: t.paint, isDataDriven: t.isPainterDataDriven() } });
|
|
1930
|
+
break;
|
|
1931
|
+
case D.FILL:
|
|
1932
|
+
t.getLayoutProperty("fill-pattern") && this._styleChanges.push({ type: v.PAINTER_CHANGED, data: { layer: t.id, paint: t.paint, isDataDriven: t.isPainterDataDriven() } });
|
|
1933
|
+
}
|
|
1934
|
+
this.requestUpdate();
|
|
1935
|
+
})]);
|
|
1936
|
+
}
|
|
1937
|
+
detach() {
|
|
1938
|
+
this._stop(), this.container.removeAllChildren(), this._vectorTileContainer = $(this._vectorTileContainer), this._tileHandler = $(this._tileHandler);
|
|
1939
|
+
}
|
|
1940
|
+
moveStart() {
|
|
1941
|
+
this.requestUpdate();
|
|
1942
|
+
}
|
|
1943
|
+
viewChange() {
|
|
1944
|
+
this.requestUpdate();
|
|
1945
|
+
}
|
|
1946
|
+
moveEnd() {
|
|
1947
|
+
this.requestUpdate();
|
|
1948
|
+
}
|
|
1949
|
+
supportsSpatialReference(h) {
|
|
1950
|
+
var e;
|
|
1951
|
+
return je((e = this.layer.tileInfo) == null ? void 0 : e.spatialReference, h);
|
|
1952
|
+
}
|
|
1953
|
+
canResume() {
|
|
1954
|
+
let h = super.canResume();
|
|
1955
|
+
const { currentStyleInfo: e } = this.layer;
|
|
1956
|
+
if (h && (e != null && e.layerDefinition)) {
|
|
1957
|
+
const s = this.view.scale, { minScale: t, maxScale: i } = e.layerDefinition;
|
|
1958
|
+
e != null && e.layerDefinition && (t && t < s && (h = !1), i && i > s && (h = !1));
|
|
1959
|
+
}
|
|
1960
|
+
return h;
|
|
1961
|
+
}
|
|
1962
|
+
isUpdating() {
|
|
1963
|
+
return this.fading;
|
|
1964
|
+
}
|
|
1965
|
+
acquireTile(h) {
|
|
1966
|
+
const e = this._createVectorTile(h);
|
|
1967
|
+
return this._updatingHandles.addPromise(this._fetchQueue.push(e.key).then((s) => this._parseQueue.push({ key: e.key, data: s })).then((s) => {
|
|
1968
|
+
e.once("attach", () => this.requestUpdate()), e.setData(s), this.requestUpdate();
|
|
1969
|
+
}).catch((s) => {
|
|
1970
|
+
j(s) || le.getLogger(this).error(s);
|
|
1971
|
+
})), e;
|
|
1972
|
+
}
|
|
1973
|
+
releaseTile(h) {
|
|
1974
|
+
const e = h.key.id;
|
|
1975
|
+
this._fetchQueue.abort(e), this._parseQueue.abort(e), this.requestUpdate();
|
|
1976
|
+
}
|
|
1977
|
+
_start() {
|
|
1978
|
+
if (this._stop(), this._tileManager = new be({ acquireTile: (s) => this.acquireTile(s), releaseTile: (s) => this.releaseTile(s), tileInfoView: this._tileInfoView }, this._vectorTileContainer), !this.layer.currentStyleInfo)
|
|
1979
|
+
return;
|
|
1980
|
+
const h = new AbortController(), e = this._tileHandler.start({ signal: h.signal }).then(() => {
|
|
1981
|
+
this._fetchQueue = new he({ tileInfoView: this._tileInfoView, process: (s, t) => this._getTileData(s, t), concurrency: 15 }), this._parseQueue = new he({ tileInfoView: this._tileInfoView, process: (s, t) => this._parseTileData(s, t), concurrency: 8 }), this.requestUpdate(), this._isTileHandlerReady = !0;
|
|
1982
|
+
});
|
|
1983
|
+
this._tileHandler.spriteMosaic.then((s) => {
|
|
1984
|
+
this._vectorTileContainer.setStyleResources(s, this._tileHandler.glyphMosaic, this._styleRepository, this._tileInfoView), this.requestUpdate();
|
|
1985
|
+
}), this._tileHandlerAbortController = h, this._tileHandlerPromise = e;
|
|
1986
|
+
}
|
|
1987
|
+
_stop() {
|
|
1988
|
+
if (!this._tileHandlerAbortController || !this._vectorTileContainer)
|
|
1989
|
+
return;
|
|
1990
|
+
const h = this._tileHandlerAbortController;
|
|
1991
|
+
h && h.abort(), this._tileHandlerPromise = null, this._isTileHandlerReady = !1, this._fetchQueue = $(this._fetchQueue), this._parseQueue = $(this._parseQueue), this._tileManager = $(this._tileManager), this._vectorTileContainer.removeAllChildren();
|
|
1992
|
+
}
|
|
1993
|
+
async _getTileData(h, e) {
|
|
1994
|
+
return this._tileHandler.fetchTileData(h, e);
|
|
1995
|
+
}
|
|
1996
|
+
async _parseTileData(h, e) {
|
|
1997
|
+
return this._tileHandler.parseTileData(h, e);
|
|
1998
|
+
}
|
|
1999
|
+
async _applyStyleChanges() {
|
|
2000
|
+
this._isTileHandlerReady = !1, this._fetchQueue.pause(), this._parseQueue.pause(), this._fetchQueue.clear(), this._parseQueue.clear(), this._tileManager.clearCache();
|
|
2001
|
+
const h = this._styleChanges;
|
|
2002
|
+
try {
|
|
2003
|
+
await this._tileHandler.updateStyle(h);
|
|
2004
|
+
} catch (r) {
|
|
2005
|
+
le.getLogger(this).error("error applying vector-tiles style update", r.message), this._fetchQueue.resume(), this._parseQueue.resume(), this._isTileHandlerReady = !0;
|
|
2006
|
+
}
|
|
2007
|
+
const e = this._styleRepository, s = /* @__PURE__ */ new Set();
|
|
2008
|
+
h.forEach((r) => {
|
|
2009
|
+
if (r.type !== v.LAYER_REMOVED)
|
|
2010
|
+
return;
|
|
2011
|
+
const o = r.data, n = e.getLayerById(o.layer);
|
|
2012
|
+
n && s.add(n.uid);
|
|
2013
|
+
});
|
|
2014
|
+
const t = /* @__PURE__ */ new Set();
|
|
2015
|
+
h.forEach((r) => {
|
|
2016
|
+
let o;
|
|
2017
|
+
switch (r.type) {
|
|
2018
|
+
case v.PAINTER_CHANGED:
|
|
2019
|
+
e.setPaintProperties(r.data.layer, r.data.paint), o = r.data.layer;
|
|
2020
|
+
break;
|
|
2021
|
+
case v.LAYOUT_CHANGED:
|
|
2022
|
+
e.setLayoutProperties(r.data.layer, r.data.layout), o = r.data.layer;
|
|
2023
|
+
break;
|
|
2024
|
+
case v.LAYER_REMOVED:
|
|
2025
|
+
return void e.deleteStyleLayer(r.data.layer);
|
|
2026
|
+
case v.LAYER_CHANGED:
|
|
2027
|
+
e.setStyleLayer(r.data.layer, r.data.index), o = r.data.layer.id;
|
|
2028
|
+
break;
|
|
2029
|
+
case v.SPRITES_CHANGED:
|
|
2030
|
+
this._vectorTileContainer.setSpriteMosaic(this._tileHandler.setSpriteSource(r.data.spriteSource));
|
|
2031
|
+
}
|
|
2032
|
+
if (o) {
|
|
2033
|
+
const n = e.getLayerById(o);
|
|
2034
|
+
n && t.add(n.uid);
|
|
2035
|
+
}
|
|
2036
|
+
});
|
|
2037
|
+
const i = this._vectorTileContainer.children;
|
|
2038
|
+
if (s.size > 0) {
|
|
2039
|
+
const r = Array.from(s);
|
|
2040
|
+
this._vectorTileContainer.deleteStyleLayers(r);
|
|
2041
|
+
for (const o of i)
|
|
2042
|
+
o.deleteLayerData(r);
|
|
2043
|
+
}
|
|
2044
|
+
if (this._fetchQueue.resume(), this._parseQueue.resume(), t.size > 0) {
|
|
2045
|
+
const r = Array.from(t), o = [];
|
|
2046
|
+
for (const n of i) {
|
|
2047
|
+
const a = this._updatingHandles.addPromise(this._fetchQueue.push(n.key).then((l) => this._parseQueue.push({ key: n.key, data: l, styleLayerUIDs: r })).then((l) => n.setData(l)));
|
|
2048
|
+
o.push(a);
|
|
2049
|
+
}
|
|
2050
|
+
await Promise.all(o);
|
|
2051
|
+
}
|
|
2052
|
+
this._styleChanges = [], this._isTileHandlerReady = !0, this.requestUpdate();
|
|
2053
|
+
}
|
|
2054
|
+
async _loadStyle() {
|
|
2055
|
+
const { style: h } = this.layer.currentStyleInfo, e = Xe(h);
|
|
2056
|
+
this._isTileHandlerReady = !1, this._fetchQueue.pause(), this._parseQueue.pause(), this._fetchQueue.clear(), this._parseQueue.clear(), this._styleRepository = new _e(e), this._vectorTileContainer.destroy(), this._tileManager.clear(), this._tileHandlerAbortController.abort(), this._tileHandlerAbortController = new AbortController();
|
|
2057
|
+
const { signal: s } = this._tileHandlerAbortController;
|
|
2058
|
+
try {
|
|
2059
|
+
this._tileHandlerPromise = this._tileHandler.setStyle(this._styleRepository, e, this.layer.tileInfo.lods.length - 1), await this._tileHandlerPromise;
|
|
2060
|
+
} catch (r) {
|
|
2061
|
+
if (!j(r))
|
|
2062
|
+
throw r;
|
|
2063
|
+
}
|
|
2064
|
+
if (s.aborted)
|
|
2065
|
+
return this._fetchQueue.resume(), this._parseQueue.resume(), this._isTileHandlerReady = !0, void this.requestUpdate();
|
|
2066
|
+
const t = await this._tileHandler.spriteMosaic, i = this._vectorTileContainer;
|
|
2067
|
+
this._tileInfoView = new Te(this.layer.tileInfo, this.layer.fullExtent), i.setStyleResources(t, this._tileHandler.glyphMosaic, this._styleRepository, this._tileInfoView), this._tileManager = new be({ acquireTile: (r) => this.acquireTile(r), releaseTile: (r) => this.releaseTile(r), tileInfoView: this._tileInfoView }, this._vectorTileContainer), this._fetchQueue.resume(), this._parseQueue.resume(), this._isTileHandlerReady = !0, this.requestUpdate();
|
|
2068
|
+
}
|
|
2069
|
+
_createVectorTile(h) {
|
|
2070
|
+
const e = this._tileInfoView.getTileBounds(F(), h), s = this._tileInfoView.getTileResolution(h.level);
|
|
2071
|
+
return new $t(h, s, e[0], e[3], 512, 512, this._styleRepository);
|
|
2072
|
+
}
|
|
2073
|
+
async _queryTile(h, e, s, t, i, r) {
|
|
2074
|
+
if (i.layerData.size === 0)
|
|
2075
|
+
return;
|
|
2076
|
+
const o = this._ensureTileIndex(i), n = this._tileInfoView.getTileBounds(F(), i.key, !0), a = ve * De * ((e.x - n[0]) / (n[2] - n[0])), l = ve * De * (1 - (e.y - n[1]) / (n[3] - n[1])), c = await o.queryAttributes(a, l, s, t, r);
|
|
2077
|
+
for (const y of c)
|
|
2078
|
+
y.graphic.geometry = this._tileToMapPoint(y.tilePoint, i.transforms.tileUnitsToPixels), h.push({ type: "graphic", layer: this.layer, graphic: y.graphic, mapPoint: e.clone() });
|
|
2079
|
+
h.sort((y, d) => d.graphic.origin.layerIndex - y.graphic.origin.layerIndex);
|
|
2080
|
+
}
|
|
2081
|
+
_tileToMapPoint(h, e) {
|
|
2082
|
+
if (!h)
|
|
2083
|
+
return null;
|
|
2084
|
+
const s = h[0] * e[0] + h[1] * e[3] + e[6], t = h[0] * e[1] + h[1] * e[4] + e[7], i = this.view.state, r = [0, 0];
|
|
2085
|
+
return i.toMap(r, [s, t]), new Ze({ x: r[0], y: r[1], spatialReference: i.spatialReference });
|
|
2086
|
+
}
|
|
2087
|
+
_ensureTileIndex(h) {
|
|
2088
|
+
let e = h.featureIndex;
|
|
2089
|
+
return e || (e = ee.create(h.key, h.layerData, this._styleRepository, this._tileHandler, this.layer), h.featureIndex = e), e;
|
|
2090
|
+
}
|
|
2091
|
+
};
|
|
2092
|
+
function ss(h) {
|
|
2093
|
+
if (h == null)
|
|
2094
|
+
return 0;
|
|
2095
|
+
switch (h.type) {
|
|
2096
|
+
case "partial":
|
|
2097
|
+
return Object.keys(h.diff).length;
|
|
2098
|
+
case "complete":
|
|
2099
|
+
return Math.max(Object.keys(h.oldValue).length, Object.keys(h.newValue).length);
|
|
2100
|
+
case "collection":
|
|
2101
|
+
return Object.keys(h.added).length + Object.keys(h.changed).length + Object.keys(h.removed).length;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
ce([et()], W.prototype, "_isTileHandlerReady", void 0), W = ce([tt("esri.views.2d.layers.VectorTileLayerView2D")], W);
|
|
2105
|
+
const ai = W;
|
|
2106
|
+
export {
|
|
2107
|
+
ai as default
|
|
2108
|
+
};
|