@arcgis/core 4.23.0-next.20220127 → 4.23.0-next.20220128
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
- package/assets/esri/core/workers/chunks/{e657ba0cab29f05d02da.js → 0cd0a6eef51fc5b9ea61.js} +1 -1
- package/assets/esri/core/workers/chunks/{e4896cf85fb2da8a9cc7.js → 17de7a324dfa7f57ad5d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
- package/assets/esri/core/workers/chunks/{0317f37b6c8705b363fd.js → 1c733b7db092a2a88ef3.js} +1 -1
- package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
- package/assets/esri/core/workers/chunks/{d835b2a683fcd8aeeed8.js → 27474b007988855bea9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{8001b0e514bfffe9d7f8.js → 357033117dfe61eb81ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{5948923e07bd1662c24a.js → 37c03cfc19086ce631c6.js} +1 -1
- package/assets/esri/core/workers/chunks/3c673495e5f507c4a9e5.js +1 -0
- package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
- package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
- package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
- package/assets/esri/core/workers/chunks/{5f1dcb6556820cd0aa31.js → 4be35af7d6babbfe9d84.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9ff3eaf4eb324429fbd.js → 5457962a70bd3c557a75.js} +1 -1
- package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
- package/assets/esri/core/workers/chunks/{56274b37ff74ca0d68a6.js → 5d11b97b667921d67ae7.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba5eb394f098968c22d2.js → 655b55ac0cd533d7e9d7.js} +1 -1
- package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
- package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
- package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
- package/assets/esri/core/workers/chunks/{601e697dc7414bda128a.js → 952980635afc7ec81804.js} +1 -1
- package/assets/esri/core/workers/chunks/{e8741bf421f80213f1d3.js → 9876a1bae350795fab36.js} +1 -1
- package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
- package/assets/esri/core/workers/chunks/{3f343f792fd9f44d6f25.js → b3f5e91116112b0b612a.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c76146014dc15143ba3.js → be588873c16770ceb9ef.js} +1 -1
- package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
- package/assets/esri/core/workers/chunks/{b62e3dccd9f662c0afeb.js → db3c729ce0c0b2690dc9.js} +1 -1
- package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
- package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
- package/assets/esri/core/workers/chunks/{c9cbf8135e95f0f42cd9.js → e287f49184d076af17e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e6a3c5866e8d8820457.js → eb82ff10cef2bde6e57f.js} +1 -1
- package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
- package/assets/esri/core/workers/chunks/{842db82733635dbf25cb.js → ee6e0db58dc64410e687.js} +1 -1
- package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
- package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
- package/chunks/BlendLayers.glsl.js +2 -2
- package/chunks/ChapmanAtmosphere.glsl.js +17 -17
- package/chunks/CheckerBoard.glsl.js +3 -3
- package/chunks/Clouds.glsl.js +2 -2
- package/chunks/CloudsComposition.glsl.js +1 -1
- package/chunks/ColorMaterial.glsl.js +12 -12
- package/chunks/ComponentShader.glsl.js +3 -3
- package/chunks/Compositing.glsl.js +1 -1
- package/chunks/DefaultMaterial.glsl.js +33 -33
- package/chunks/EdgeShaderProgram.glsl.js +7 -7
- package/chunks/Fog.glsl.js +10 -12
- package/chunks/HUDMaterial.glsl.js +2 -2
- package/chunks/HighlightComposition.glsl.js +5 -5
- package/chunks/ImageMaterial.glsl.js +6 -6
- package/chunks/LaserlinePath.glsl.js +8 -8
- package/chunks/LineCallout.glsl.js +6 -6
- package/chunks/MeasurementArrow.glsl.js +1 -1
- package/chunks/NativeLine.glsl.js +1 -1
- package/chunks/Path.glsl.js +5 -5
- package/chunks/Pattern.glsl.js +9 -9
- package/chunks/PointRenderer.glsl.js +14 -14
- package/chunks/Precipitation.glsl.js +2 -2
- package/chunks/RealisticTree.glsl.js +21 -21
- package/chunks/RibbonLine.glsl.js +11 -11
- package/chunks/SMAA.glsl.js +40 -40
- package/chunks/ShadedColorMaterial.glsl.js +12 -12
- package/chunks/ShadowCast.glsl.js +6 -6
- package/chunks/ShadowHighlight.glsl.js +4 -4
- package/chunks/SimpleAtmosphere.glsl.js +3 -3
- package/chunks/SlicePlaneMaterial.glsl.js +3 -3
- package/chunks/Stars.glsl.js +3 -3
- package/chunks/Terrain.glsl.js +11 -11
- package/chunks/TextureOnly.glsl.js +2 -2
- package/chunks/WaterSurface.glsl.js +5 -5
- package/chunks/boundedPlane.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/loadAll.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +204 -10
- package/layers/VectorTileLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/package.json +1 -1
- package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
- package/support/revision.js +1 -1
- package/symbols/FillSymbol3DLayer.js +1 -1
- package/symbols/IconSymbol3DLayer.js +1 -1
- package/symbols/ObjectSymbol3DLayer.js +1 -1
- package/symbols/Symbol3D.js +1 -1
- package/symbols/WebStyleSymbol.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/support/IconSymbol3DLayerResource.js +1 -1
- package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
- package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
- package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
- package/symbols/support/Symbol3DFillMaterial.js +1 -1
- package/symbols/support/Symbol3DIconOutline.js +1 -1
- package/symbols/support/Symbol3DOutline.js +1 -1
- package/symbols/support/Thumbnail.js +1 -1
- package/symbols/support/webStyleSymbolUtils.js +1 -1
- package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsComposition.glsl.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/Fog.glsl.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/Precipitation.glsl.js +1 -1
- package/views/3d/environment/Precipitation.js +1 -1
- package/views/3d/environment/PrecipitationTechnique.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/environment/Stars.glsl.js +1 -1
- package/views/3d/environment/Stars.js +1 -1
- package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/lineUtils.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/symbolComplexity.js +1 -1
- package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
- package/views/3d/layers/support/overlayImageUtils.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/LaserlinePathData.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/terrain/tileUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
- package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +10 -10
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
- package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/TextureUniformName.js +4 -0
- package/views/3d/webgl-engine/lib/UniformName.js +4 -0
- package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
- package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/VisualVariableMaterialParameters.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.js +1 -1
- package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
- package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
- package/views/SceneView.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/support/WatchUpdatingTracking.js +1 -1
- package/views/webgl/BufferObject.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/Program.js +1 -1
- package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/Search/support/locatorUtils.js +1 -1
- package/widgets/Search.js +1 -1
- package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +0 -1
- package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +0 -1
- package/assets/esri/core/workers/chunks/392b6382e06652dd4c80.js +0 -1
- package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +0 -1
- package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +0 -1
- package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +0 -1
- package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
- package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +0 -1
- package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
- package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +0 -1
- package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +0 -1
- package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
- package/assets/esri/core/workers/chunks/dee9929d95e9fe26929c.js +0 -1
- package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +0 -1
- package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.23/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{ShaderOutput as r}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutputOptions.js";import{Slice as i}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as a}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{OutputHighlight as o}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadLinearDepth as t}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadLinearDepth.glsl.js";import{EvaluateAmbientLighting as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js";import{EvaluateMainLighting as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateMainLighting.glsl.js";import{multipassTerrainTest as d}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{NormalUtils as s}from"../views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js";import{PBRMode as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadShadowMap as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{Water as
|
|
5
|
+
import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{ShaderOutput as r}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutputOptions.js";import{Slice as i}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as a}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{OutputHighlight as o}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadLinearDepth as t}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadLinearDepth.glsl.js";import{EvaluateAmbientLighting as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js";import{EvaluateMainLighting as l}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateMainLighting.glsl.js";import{multipassTerrainTest as d}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{NormalUtils as s}from"../views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js";import{PBRMode as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadShadowMap as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{Water as m}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js";import{WaterDistortion as c}from"../views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js";import{symbolAlphaCutoff as p}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js";import{ColorConversion as u}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{glsl as h}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as w}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{VertexAttribute as f}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function b(b){const y=new w;return y.include(a,{linearDepth:!1}),y.attributes.add(f.POSITION,"vec3"),y.attributes.add(f.UV0,"vec2"),y.vertex.uniforms.add("proj","mat4").add("view","mat4").add("localOrigin","vec3"),y.vertex.uniforms.add("waterColor","vec4"),b.output!==r.Color&&b.output!==r.Alpha||(y.include(s,b),y.include(e,b),y.varyings.add("vuv","vec2"),y.varyings.add("vpos","vec3"),y.varyings.add("vnormal","vec3"),y.varyings.add("vtbnMatrix","mat3"),y.fragment.uniforms.add("localOrigin","vec3"),b.multipassTerrainEnabled&&y.varyings.add("depth","float"),y.vertex.code.add(h`
|
|
6
6
|
void main(void) {
|
|
7
7
|
if (waterColor.a < ${h.float(p)}) {
|
|
8
8
|
// Discard this vertex
|
|
@@ -28,7 +28,7 @@ import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/
|
|
|
28
28
|
|
|
29
29
|
gl_FragColor = vec4(waterColor.a);
|
|
30
30
|
}
|
|
31
|
-
`)),b.output===r.Color&&(y.include(l),y.include(n,{pbrMode:g.Disabled,lightingSphericalHarmonicsOrder:2}),y.include(
|
|
31
|
+
`)),b.output===r.Color&&(y.include(l),y.include(n,{pbrMode:g.Disabled,lightingSphericalHarmonicsOrder:2}),y.include(c,b),y.include(i,b),b.receiveShadows&&y.include(v,b),y.include(m,b),y.fragment.uniforms.add("waterColor","vec4").add("lightingMainDirection","vec3").add("lightingMainIntensity","vec3").add("cameraPosition","vec3").add("timeElapsed","float").add("view","mat4"),y.fragment.include(u),y.fragment.code.add(h`
|
|
32
32
|
void main() {
|
|
33
33
|
discardBySlice(vpos);
|
|
34
34
|
${b.multipassTerrainEnabled?"terrainDepthTest(gl_FragCoord, depth);":""}
|
|
@@ -38,7 +38,7 @@ import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/
|
|
|
38
38
|
|
|
39
39
|
// we rotate the normal according to the tangent-bitangent-normal-Matrix
|
|
40
40
|
vec3 n = normalize(vtbnMatrix * tangentNormalFoam.xyz);
|
|
41
|
-
vec3 v = -normalize(vpos -
|
|
41
|
+
vec3 v = -normalize(vpos - cameraPosition);
|
|
42
42
|
float shadow = ${b.receiveShadows?h`1.0 - readShadowMap(vpos, linearDepth)`:"1.0"};
|
|
43
43
|
vec4 vPosView = view*vec4(vpos, 1.0);
|
|
44
44
|
vec4 final = vec4(getSeaColor(n, v, lightingMainDirection, waterColor.rgb, lightingMainIntensity, localUp, shadow, tangentNormalFoam.w, vPosView.xyz, vpos + localOrigin), waterColor.w);
|
|
@@ -46,9 +46,9 @@ import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/
|
|
|
46
46
|
// gamma correction
|
|
47
47
|
gl_FragColor = delinearizeGamma(final);
|
|
48
48
|
gl_FragColor = highlightSlice(gl_FragColor, vpos);
|
|
49
|
-
${b.
|
|
49
|
+
${b.oitEnabled?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""}
|
|
50
50
|
}
|
|
51
|
-
`)),b.output===r.Normal&&(y.include(s,b),y.include(
|
|
51
|
+
`)),b.output===r.Normal&&(y.include(s,b),y.include(c,b),y.include(i,b),y.varyings.add("vpos","vec3"),y.varyings.add("vuv","vec2"),y.vertex.code.add(h`
|
|
52
52
|
void main(void) {
|
|
53
53
|
if (waterColor.a < ${h.float(p)}) {
|
|
54
54
|
// Discard this vertex
|
package/chunks/boundedPlane.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.23/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import"../core/has.js";import s from"../core/Logger.js";import{acosClamped as i}from"../core/mathUtils.js";import{ObjectStack as n}from"../core/ObjectStack.js";import{a as t,t as o,d as r}from"./mat4.js";import{c as a}from"./mat4f64.js";import{g as e,a as c,b as u,s as g,i as b,l as f,r as p,d as l,f as m,k as d,m as h,n as j,p as I}from"./vec3.js";import{f as y,a as P,c as N}from"./vec3f64.js";import{Axis as v}from"../geometry/support/Axis.js";import{create as w,projectPointClamp as M,distance2 as A}from"../geometry/support/lineSegment.js";import{create as S,wrap as T,copy as x,fromVectorsAndPoint as V,normal as _,fromValues as k,intersectRay as E,intersectLineSegment as O,intersectLineSegmentClamp as U,isPointInside as Y,projectPoint as q,setOffsetFromPoint as B}from"../geometry/support/plane.js";import{distance2 as F}from"../geometry/support/ray.js";import{projectPointSignedLength as R}from"../geometry/support/vector.js";import{sv3d as C}from"../geometry/support/vectorStacks.js";const L=s.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");class z{constructor(){this.plane=S(),this.origin=N(),this.basis1=N(),this.basis2=N()}}function G(s=Ns){return{plane:S(s.plane),origin:P(s.origin),basis1:P(s.basis1),basis2:P(s.basis2)}}function W(s,i,n){const t=As.get();return t.origin=s,t.basis1=i,t.basis2=n,t.plane=T(0,0,0,0),H(t),t}function X(s,i=G()){return D(s.origin,s.basis1,s.basis2,i)}function Z(s,i){e(i.origin,s.origin),e(i.basis1,s.basis1),e(i.basis2,s.basis2),x(
|
|
5
|
+
import"../core/has.js";import s from"../core/Logger.js";import{acosClamped as i}from"../core/mathUtils.js";import{ObjectStack as n}from"../core/ObjectStack.js";import{a as t,t as o,d as r}from"./mat4.js";import{c as a}from"./mat4f64.js";import{g as e,a as c,b as u,s as g,i as b,l as f,r as p,d as l,f as m,k as d,m as h,n as j,p as I}from"./vec3.js";import{f as y,a as P,c as N}from"./vec3f64.js";import{Axis as v}from"../geometry/support/Axis.js";import{create as w,projectPointClamp as M,distance2 as A}from"../geometry/support/lineSegment.js";import{create as S,wrap as T,copy as x,fromVectorsAndPoint as V,normal as _,fromValues as k,intersectRay as E,intersectLineSegment as O,intersectLineSegmentClamp as U,isPointInside as Y,projectPoint as q,setOffsetFromPoint as B}from"../geometry/support/plane.js";import{distance2 as F}from"../geometry/support/ray.js";import{projectPointSignedLength as R}from"../geometry/support/vector.js";import{sv3d as C}from"../geometry/support/vectorStacks.js";const L=s.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");class z{constructor(){this.plane=S(),this.origin=N(),this.basis1=N(),this.basis2=N()}}function G(s=Ns){return{plane:S(s.plane),origin:P(s.origin),basis1:P(s.basis1),basis2:P(s.basis2)}}function W(s,i,n){const t=As.get();return t.origin=s,t.basis1=i,t.basis2=n,t.plane=T(0,0,0,0),H(t),t}function X(s,i=G()){return D(s.origin,s.basis1,s.basis2,i)}function Z(s,i){e(i.origin,s.origin),e(i.basis1,s.basis1),e(i.basis2,s.basis2),x(i.plane,s.plane)}function D(s,i,n,t=G()){return e(t.origin,s),e(t.basis1,i),e(t.basis2,n),H(t),ys(t,"fromValues()"),t}function H(s){V(s.basis2,s.basis1,s.origin,s.plane)}function J(s,i,n){s!==n&&X(s,n);const t=c(C.get(),ms(s),i);return u(n.origin,n.origin,t),n.plane[3]-=i,n}function K(s,i,n){return Q(i,n),J(n,gs(s,s.origin),n),n}function Q(s,i=G()){const n=(s[2]-s[0])/2,t=(s[3]-s[1])/2;return g(i.origin,s[0]+n,s[1]+t,0),g(i.basis1,n,0,0),g(i.basis2,0,t,0),k(0,0,1,0,i.plane),i}function $(s,i,n){return!!E(s.plane,i,n)&&hs(s,n)}function ss(s,i,n){if($(s,i,n))return n;const t=is(s,i,C.get());return u(n,i.origin,c(C.get(),i.direction,b(i.origin,t)/f(i.direction))),n}function is(s,n,t){const o=vs.get();Ps(s,n,o,vs.get());let r=Number.POSITIVE_INFINITY;for(const a of Ss){const c=Is(s,a,ws.get()),u=C.get();if(O(o,c,u)){const s=p(C.get(),n.origin,u),o=Math.abs(i(l(n.direction,s)));o<r&&(r=o,e(t,u))}}return r===Number.POSITIVE_INFINITY?ns(s,n,t):t}function ns(s,i,n){if($(s,i,n))return n;const t=vs.get(),o=vs.get();Ps(s,i,t,o);let r=Number.POSITIVE_INFINITY;for(const a of Ss){const c=Is(s,a,ws.get()),u=C.get();if(U(t,c,u)){const s=F(i,u);if(!Y(o,u))continue;s<r&&(r=s,e(n,u))}}return rs(s,i.origin)<r&&ts(s,i.origin,n),n}function ts(s,i,n){const t=q(s.plane,i,C.get()),o=M(js(s,s.basis1),t,-1,1,C.get()),r=M(js(s,s.basis2),t,-1,1,C.get());return m(n,u(C.get(),o,r),s.origin),n}function os(s,i,n){const{origin:t,basis1:o,basis2:r}=s,a=m(C.get(),i,t),e=R(o,a),c=R(r,a),u=R(ms(s),a);return g(n,e,c,u)}function rs(s,i){const n=os(s,i,C.get()),{basis1:t,basis2:o}=s,r=f(t),a=f(o),e=Math.max(Math.abs(n[0])-r,0),c=Math.max(Math.abs(n[1])-a,0),u=n[2];return e*e+c*c+u*u}function as(s,i){return Math.sqrt(rs(s,i))}function es(s,i){let n=Number.NEGATIVE_INFINITY;for(const t of Ss){const o=Is(s,t,ws.get()),r=A(o,i);r>n&&(n=r)}return Math.sqrt(n)}function cs(s,i){return Y(s.plane,i)&&hs(s,i)}function us(s,i,n,t){return ds(s,n,t)}function gs(s,i){const n=-s.plane[3];return R(ms(s),i)-n}function bs(s,i,n,t){const o=gs(s,i),r=c(Ms,ms(s),n-o);return u(t,i,r),t}function fs(s,i){return d(s.basis1,i.basis1)&&d(s.basis2,i.basis2)&&d(s.origin,i.origin)}function ps(s,i,n){return s!==n&&X(s,n),t(Ts,i),o(Ts,Ts),h(n.basis1,s.basis1,Ts),h(n.basis2,s.basis2,Ts),h(_(n.plane),_(s.plane),Ts),h(n.origin,s.origin,i),B(n.plane,n.plane,n.origin),n}function ls(s,i,n,t){return s!==t&&X(s,t),r(xs,i,n),h(t.basis1,s.basis1,xs),h(t.basis2,s.basis2,xs),H(t),t}function ms(s){return _(s.plane)}function ds(s,i,n){switch(i){case v.X:e(n,s.basis1),j(n,n);break;case v.Y:e(n,s.basis2),j(n,n);break;case v.Z:e(n,ms(s))}return n}function hs(s,i){const n=m(C.get(),i,s.origin),t=I(s.basis1),o=I(s.basis2),r=l(s.basis1,n),a=l(s.basis2,n);return-r-t<0&&r-t<0&&-a-o<0&&a-o<0}function js(s,i){const n=ws.get();return e(n.origin,s.origin),e(n.vector,i),n}function Is(s,i,n){const{basis1:t,basis2:o,origin:r}=s,a=c(C.get(),t,i.origin[0]),e=c(C.get(),o,i.origin[1]);u(n.origin,a,e),u(n.origin,n.origin,r);const g=c(C.get(),t,i.direction[0]),b=c(C.get(),o,i.direction[1]);return c(n.vector,u(g,g,b),2),n}function ys(s,i){Math.abs(l(s.basis1,s.basis2)/(f(s.basis1)*f(s.basis2)))>1e-6&&L.warn(i,"Provided basis vectors are not perpendicular"),Math.abs(l(s.basis1,ms(s)))>1e-6&&L.warn(i,"Basis vectors and plane normal are not perpendicular"),Math.abs(-l(ms(s),s.origin)-s.plane[3])>1e-6&&L.warn(i,"Plane offset is not consistent with plane origin")}function Ps(s,i,n,t){const o=ms(s);V(o,i.direction,i.origin,n),V(_(n),o,i.origin,t)}const Ns={plane:S(),origin:y(0,0,0),basis1:y(1,0,0),basis2:y(0,1,0)},vs=new n(S),ws=new n(w),Ms=N(),As=new n((()=>({origin:null,basis1:null,basis2:null,plane:null}))),Ss=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],Ts=a(),xs=a(),Vs=Object.freeze({__proto__:null,BoundedPlaneClass:z,create:G,wrap:W,copy:X,copyWithoutVerify:Z,fromValues:D,updateUnboundedPlane:H,elevate:J,setExtent:K,fromAABoundingRect:Q,intersectRay:$,intersectRayClosestSilhouette:ss,closestPointOnSilhouette:is,closestPoint:ns,projectPoint:ts,projectPointLocal:os,distance2:rs,distance:as,distanceToSilhouette:es,extrusionContainsPoint:cs,axisAt:us,altitudeAt:gs,setAltitudeAt:bs,equals:fs,transform:ps,rotate:ls,normal:ms,UP:Ns});export{fs as A,z as B,Ns as U,X as a,Vs as b,G as c,Z as d,cs as e,D as f,as as g,Q as h,$ as i,J as j,ss as k,is as l,ns as m,ms as n,os as o,ts as p,rs as q,ls as r,K as s,ps as t,H as u,es as v,W as w,us as x,gs as y,bs as z};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.23/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../ArrayPool.js";import{equals as t}from"../lang.js";import{ReentrantObjectPool as r}from"../ReentrantObjectPool.js";import{schedule as o}from"../scheduling.js";import{someSet as l}from"../SetUtils.js";import{generateUID as n}from"../uid.js";import{valueOf as i}from"./get.js";import{reaction as s,reactionDeferred as u}from"./trackingUtils.js";import{once as
|
|
5
|
+
import e from"../ArrayPool.js";import{equals as t}from"../lang.js";import{ReentrantObjectPool as r}from"../ReentrantObjectPool.js";import{schedule as o}from"../scheduling.js";import{someSet as l}from"../SetUtils.js";import{generateUID as n}from"../uid.js";import{valueOf as i}from"./get.js";import{reaction as s,reactionDeferred as u}from"./trackingUtils.js";import{once as c,parse as a}from"./utils.js";var d;!function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"}(d||(d={}));class h{constructor(){this.uid=n(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(e,r,o,l,n){return this.pool.acquire(d.Untracked,e,r,o,l,n,t)}static acquireTracked(e,t,r,o){return this.pool.acquire(d.Tracked,e,t,r,null,null,o)}notify(e,t){this.type===d.Untracked?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t)}acquire(e,t,r,o,l,i,s){this.uid=n(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=o,this.target=l,this.path=i,this.equals=s}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=n(),this.removed=!0}}h.pool=new r(h);const f=new e,m=new Set;let p;function v(e){m.delete(e),m.add(e),p||(p=o(q))}function g(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function k(e){const t=Array.from(m);for(let r=0;r<t.length;r++){const o=t[r];o.target===e&&(g(o),m.delete(o))}}function _(e){for(const t of m.values())t.target===e&&(t.removed=!0)}function q(){let e=10;for(;p&&e--;){p=null;const e=j(),t=f.acquire();for(const r of e){const e=r.uid;g(r),e===r.uid&&r.removed&&t.push(r)}for(const r of m)r.removed&&(t.push(r),m.delete(r));for(const r of t)h.pool.release(r);f.release(t),f.release(e),y.forEach((e=>e()))}}function j(){const e=f.acquire();e.length=m.size;let t=0;for(const r of m)e[t]=r,++t;return m.clear(),e}const y=new Set;function V(e){return y.add(e),{remove(){y.delete(e)}}}function U(e,t,r){let o=a(e,t,r,((e,t,r)=>{let l,n,s=u((()=>i(e,t)),((i,s)=>{e.__accessor__.destroyed||l&&l.uid!==n?o.remove():(l||(l=h.acquireUntracked(i,r,s,e,t),n=l.uid),v(l))}));return{remove:c((()=>{s.remove(),l&&(l.uid!==n||l.removed||(l.removed=!0,v(l)),l=null),o=s=null}))}}));return o}function b(e,r,o){const l=a(e,r,o,((e,r,o)=>{let n=!1;return s((()=>i(e,r)),((i,s)=>{e.__accessor__.destroyed?l.remove():n||(n=!0,t(s,i)||o.call(e,i,s,r,e),n=!1)}))}));return l}function T(e,t,r,o=!1){return!e.__accessor__||e.__accessor__.destroyed?{remove(){}}:o?b(e,t,r):U(e,t,r)}function w(e,t,r){let o,l,n=u(e,((e,i)=>{o&&o.uid!==l?n.remove():(o||(o=h.acquireTracked(e,t,i,r),l=o.uid),v(o))}));return{remove:c((()=>{n.remove(),o&&(o.uid!==l||o.removed||(o.removed=!0,v(o)),o=null),n=null}))}}function S(e,t,r){let o=!1;return s(e,((e,l)=>{o||(o=!0,r(l,e)||t(e,l),o=!1)}))}function A(e,r,o=!1,l=t){return o?S(e,r,l):w(e,r,l)}function P(e){return l(m,(t=>t.oldValue===e))}export{V as afterDispatch,q as dispatch,k as dispatchTarget,P as isValueInUse,_ as removeTarget,S as syncWatchTracked,T as watch,A as watchTracked};
|
package/core/loadAll.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.23/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{map as o,result as
|
|
5
|
+
import{map as o,result as r}from"./asyncUtils.js";import a from"./Collection.js";import t from"./Loadable.js";import{isNone as l}from"./maybe.js";async function n(o,r){return await o.load(),i(o,r)}async function i(n,i){const c=[],f=(...o)=>{for(const r of o)l(r)||(Array.isArray(r)?f(...r):a.isCollection(r)?r.forEach((o=>f(o))):t.isLoadable(r)&&c.push(r))};i(f);let e=null;if(await o(c,(async o=>{!1!==(await r(s(o)?o.loadAll():o.load())).ok||e||(e=o)})),e)throw e.loadError;return n}function s(o){return"loadAll"in o&&"function"==typeof o.loadAll}export{n as loadAll,i as loadAllChildren};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.23/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{ObjectStack as T}from"../../core/ObjectStack.js";import{m as _,a as O}from"../../chunks/mat4.js";import{s as R}from"../../chunks/vec3.js";import{c as t}from"../../chunks/vec3f64.js";import{t as A}from"../../chunks/vec4.js";import{f as r}from"../../chunks/vec4f64.js";import{create as E,fromRay as F,fromLineSegmentAndDirection as n}from"./clipRay.js";import{create as o,copy as M,fromPoints as N,clipInfinite as f,signedDistance as c,isAABBFullyInside as e,clip as u}from"./plane.js";import{sm4d as B,sv4d as G}from"./vectorStacks.js";function H(T){return T?[o(T[0]),o(T[1]),o(T[2]),o(T[3]),o(T[4]),o(T[5])]:[o(),o(),o(),o(),o(),o()]}function I(){return[t(),t(),t(),t(),t(),t(),t(),t()]}function i(T,_
|
|
5
|
+
import{ObjectStack as T}from"../../core/ObjectStack.js";import{m as _,a as O}from"../../chunks/mat4.js";import{s as R}from"../../chunks/vec3.js";import{c as t}from"../../chunks/vec3f64.js";import{t as A}from"../../chunks/vec4.js";import{f as r}from"../../chunks/vec4f64.js";import{create as E,fromRay as F,fromLineSegmentAndDirection as n}from"./clipRay.js";import{create as o,copy as M,fromPoints as N,clipInfinite as f,signedDistance as c,isAABBFullyInside as e,clip as u}from"./plane.js";import{sm4d as B,sv4d as G}from"./vectorStacks.js";function H(T){return T?[o(T[0]),o(T[1]),o(T[2]),o(T[3]),o(T[4]),o(T[5])]:[o(),o(),o(),o(),o(),o()]}function I(){return[t(),t(),t(),t(),t(),t(),t(),t()]}function i(T,_){for(let O=0;O<g.NUM;O++)M(T[O],_[O])}function s(T,t,r,E=w){const F=_(B.get(),t,T);O(F,F);for(let _=0;_<b.NUM;++_){const T=A(G.get(),y[_],F);R(E[_],T[0]/T[3],T[1]/T[3],T[2]/T[3])}L(r,E)}function L(T,_){N(_[v.FAR_BOTTOM_LEFT],_[v.NEAR_BOTTOM_LEFT],_[v.NEAR_TOP_LEFT],T[k.LEFT]),N(_[v.NEAR_BOTTOM_RIGHT],_[v.FAR_BOTTOM_RIGHT],_[v.FAR_TOP_RIGHT],T[k.RIGHT]),N(_[v.FAR_BOTTOM_LEFT],_[v.FAR_BOTTOM_RIGHT],_[v.NEAR_BOTTOM_RIGHT],T[k.BOTTOM]),N(_[v.NEAR_TOP_LEFT],_[v.NEAR_TOP_RIGHT],_[v.FAR_TOP_RIGHT],T[k.TOP]),N(_[v.NEAR_BOTTOM_LEFT],_[v.NEAR_BOTTOM_RIGHT],_[v.NEAR_TOP_RIGHT],T[k.NEAR]),N(_[v.FAR_BOTTOM_RIGHT],_[v.FAR_BOTTOM_LEFT],_[v.FAR_TOP_LEFT],T[k.FAR])}function P(T,_){for(let O=0;O<g.NUM;O++){const R=T[O];if(R[0]*_[0]+R[1]*_[1]+R[2]*_[2]+R[3]>=_[3])return!1}return!0}function a(T,_){return l(T,F(_,S.get()))}function m(T,_){for(let O=0;O<g.NUM;O++){const R=T[O];if(!f(R,_))return!1}return!0}function p(T,_,O){return l(T,n(_,O,S.get()))}function U(T,_){for(let O=0;O<g.NUM;O++){if(c(T[O],_)>0)return!1}return!0}function j(T,_){for(let O=0;O<g.NUM;O++)if(e(T[O],_))return!1;return!0}function l(T,_){for(let O=0;O<g.NUM;O++)if(!u(T[O],_))return!1;return!0}var k,v;!function(T){T[T.LEFT=0]="LEFT",T[T.RIGHT=1]="RIGHT",T[T.BOTTOM=2]="BOTTOM",T[T.TOP=3]="TOP",T[T.NEAR=4]="NEAR",T[T.FAR=5]="FAR"}(k||(k={})),function(T){T[T.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",T[T.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",T[T.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",T[T.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",T[T.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",T[T.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",T[T.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",T[T.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(v||(v={}));const h={bottom:[v.FAR_BOTTOM_RIGHT,v.NEAR_BOTTOM_RIGHT,v.NEAR_BOTTOM_LEFT,v.FAR_BOTTOM_LEFT],near:[v.NEAR_BOTTOM_LEFT,v.NEAR_BOTTOM_RIGHT,v.NEAR_TOP_RIGHT,v.NEAR_TOP_LEFT],far:[v.FAR_BOTTOM_RIGHT,v.FAR_BOTTOM_LEFT,v.FAR_TOP_LEFT,v.FAR_TOP_RIGHT],right:[v.NEAR_BOTTOM_RIGHT,v.FAR_BOTTOM_RIGHT,v.FAR_TOP_RIGHT,v.NEAR_TOP_RIGHT],left:[v.FAR_BOTTOM_LEFT,v.NEAR_BOTTOM_LEFT,v.NEAR_TOP_LEFT,v.FAR_TOP_LEFT],top:[v.FAR_TOP_LEFT,v.NEAR_TOP_LEFT,v.NEAR_TOP_RIGHT,v.FAR_TOP_RIGHT]};var g,b;!function(T){T[T.NUM=6]="NUM"}(g||(g={})),function(T){T[T.NUM=8]="NUM"}(b||(b={}));const y=[r(-1,-1,-1,1),r(1,-1,-1,1),r(1,1,-1,1),r(-1,1,-1,1),r(-1,-1,1,1),r(1,-1,1,1),r(1,1,1,1),r(-1,1,1,1)],S=new T(E),w=I();export{g as NumPlanes,b as NumPoints,k as PlaneIndex,v as PointIndex,L as computePlanes,i as copy,H as create,I as createPoints,s as fromMatrix,m as intersectClipRay,j as intersectsAABB,p as intersectsLineSegment,U as intersectsPoint,a as intersectsRay,P as intersectsSphere,h as planePointIndices};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.23/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{clamp as n}from"../../core/mathUtils.js";import{isSome as t}from"../../core/maybe.js";import{g as r,k as c,f as o,n as e,d as u,c as i,a as f,b as s}from"../../chunks/vec3.js";import{c as a}from"../../chunks/vec3f64.js";import{g as I}from"../../chunks/sphere.js";import{sv4d as N,sv3d as M}from"./vectorStacks.js";function g(n=R){return[n[0],n[1],n[2],n[3]]}function m(n,t,r,c){return E(n,t,r,c,N.get())}function h(n,t
|
|
5
|
+
import{clamp as n}from"../../core/mathUtils.js";import{isSome as t}from"../../core/maybe.js";import{g as r,k as c,f as o,n as e,d as u,c as i,a as f,b as s}from"../../chunks/vec3.js";import{c as a}from"../../chunks/vec3f64.js";import{g as I}from"../../chunks/sphere.js";import{sv4d as N,sv3d as M}from"./vectorStacks.js";function g(n=R){return[n[0],n[1],n[2],n[3]]}function m(n,t,r,c){return E(n,t,r,c,N.get())}function h(n,t){return E(t[0],t[1],t[2],t[3],n)}function E(n,t,r,c,o=g()){return o[0]=n,o[1]=t,o[2]=r,o[3]=c,o}function A(n,t,c){return r(c,n),c[3]=t,c}function F(n,t,r){const c=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],o=Math.abs(c-1)>1e-5&&c>1e-12?1/Math.sqrt(c):1;return r[0]=t[0]*o,r[1]=t[1]*o,r[2]=t[2]*o,r[3]=-(r[0]*n[0]+r[1]*n[1]+r[2]*n[2]),r}function T(n,t,r,c=g()){const o=r[0]-t[0],e=r[1]-t[1],u=r[2]-t[2],i=n[0]-t[0],f=n[1]-t[1],s=n[2]-t[2],a=e*s-u*f,I=u*i-o*s,N=o*f-e*i,M=a*a+I*I+N*N,m=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;c[0]=a*m,c[1]=I*m,c[2]=N*m,c[3]=-(c[0]*n[0]+c[1]*n[1]+c[2]*n[2])}function _(n,t){return p(n,t,0,1,2)}function p(n,t,r,i,f){if(n.count<3)return!1;n.getVec(r,j);let s=i,a=!1;for(;s<n.count-1&&!a;)n.getVec(s,v),s++,a=!c(j,v);if(!a)return!1;for(s=Math.max(s,f),a=!1;s<n.count&&!a;)n.getVec(s,k),s++,o(y,j,v),e(y,y),o(X,v,k),e(X,X),a=!c(j,k)&&!c(v,k)&&Math.abs(u(y,X))<b;return a?(T(j,v,k,t),!0):(0!==r||1!==i||2!==f)&&p(n,t,0,1,2)}const b=.99619469809,j=a(),v=a(),k=a(),y=a(),X=a();function d(n,t,r){return t!==n&&h(n,t),n[3]=-u(Q(n),r),n}function C(n,t){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t}function L(n,t,r,c){return i(k,t,n),F(r,k,c)}function P(n,t,r,c){return K(n,t,o(M.get(),r,t),Y,c)}function l(n,r,c){return!!t(r)&&K(n,r.origin,r.direction,Z,c)}function O(n,t,r){return K(n,t.origin,t.vector,W.NONE,r)}function V(n,t,r){return K(n,t.origin,t.vector,W.CLAMP,r)}function q(n,t){return J(n,I(t))-t[3]>=0}function x(n,t){return J(n,I(t))+t[3]<0}function S(n,t){return J(n,t)>=0}function U(n,t){return J(n,t)<0}function w(n,t){const r=t[0],c=t[1],o=t[2],e=t[3],u=t[4],i=t[5];return n[0]*(n[0]>0?r:e)+n[1]*(n[1]>0?c:u)+n[2]*(n[2]>0?o:i)+n[3]>=0}function z(n,t){const r=u(Q(n),t.ray.direction),c=-J(n,t.ray.origin);if(c<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return c>0;if((c<0||r<0)&&!(c<0&&r<0))return!0;const o=c/r;return r>0?o<t.c1&&(t.c1=o):o>t.c0&&(t.c0=o),t.c0<=t.c1}function B(n,t){const r=u(Q(n),t.ray.direction),c=-J(n,t.ray.origin);if(r>-1e-6&&r<1e-6)return c>0;const o=c/r;return r>0?o<t.c1&&(t.c1=o):o>t.c0&&(t.c0=o),t.c0<=t.c1}function D(n,t,r){const c=f(M.get(),Q(n),-n[3]),e=G(n,o(M.get(),t,c),M.get());return s(r,e,c),r}function G(n,t,r){const c=f(M.get(),Q(n),u(Q(n),t));return o(r,t,c),r}function H(n,t){return Math.abs(J(n,t))}function J(n,t){return u(Q(n),t)+n[3]}function K(t,r,c,o,e){const i=u(Q(t),c);if(0===i)return!1;let a=-(u(Q(t),r)+t[3])/i;return o&W.CLAMP&&(a=n(a,0,1)),!(!(o&W.INFINITE_MIN)&&a<0||!(o&W.INFINITE_MAX)&&a>1)&&(s(e,r,f(e,c,a)),!0)}function Q(n){return n}const R=[0,0,1,0];var W;!function(n){n[n.NONE=0]="NONE",n[n.CLAMP=1]="CLAMP",n[n.INFINITE_MIN=4]="INFINITE_MIN",n[n.INFINITE_MAX=8]="INFINITE_MAX"}(W||(W={}));const Y=W.INFINITE_MIN|W.INFINITE_MAX,Z=W.INFINITE_MAX;export{R as UP,z as clip,B as clipInfinite,h as copy,g as create,H as distance,_ as fromManyPoints,p as fromManyPointsSampleAt,A as fromNormalAndOffset,T as fromPoints,F as fromPositionAndNormal,E as fromValues,L as fromVectorsAndPoint,P as intersectLine,O as intersectLineSegment,V as intersectLineSegmentClamp,l as intersectRay,w as isAABBFullyInside,S as isPointInside,U as isPointOutside,q as isSphereFullyInside,x as isSphereFullyOutside,C as negate,Q as normal,D as projectPoint,G as projectVector,d as setOffsetFromPoint,J as signedDistance,m as wrap};
|
package/interfaces.d.ts
CHANGED
|
@@ -3695,7 +3695,7 @@ declare namespace __esri {
|
|
|
3695
3695
|
*/
|
|
3696
3696
|
rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): Geometry;
|
|
3697
3697
|
/**
|
|
3698
|
-
* Performs the simplify operation on the geometry which alters the given geometries to make their definitions topologically legal with respect to their geometry type.
|
|
3698
|
+
* Performs the simplify operation on the geometry, which alters the given geometries to make their definitions topologically legal with respect to their geometry type.
|
|
3699
3699
|
*
|
|
3700
3700
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#simplify)
|
|
3701
3701
|
*/
|
|
@@ -4011,7 +4011,7 @@ declare namespace __esri {
|
|
|
4011
4011
|
*/
|
|
4012
4012
|
rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): Promise<Geometry>;
|
|
4013
4013
|
/**
|
|
4014
|
-
* Performs the simplify operation on the geometry which alters the given geometries to make their definitions topologically legal with respect to their geometry type.
|
|
4014
|
+
* Performs the simplify operation on the geometry, which alters the given geometries to make their definitions topologically legal with respect to their geometry type.
|
|
4015
4015
|
*
|
|
4016
4016
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#simplify)
|
|
4017
4017
|
*/
|
|
@@ -48486,6 +48486,129 @@ declare namespace __esri {
|
|
|
48486
48486
|
unit?: "years" | "months" | "days" | "hours" | "minutes" | "seconds";
|
|
48487
48487
|
}
|
|
48488
48488
|
|
|
48489
|
+
/**
|
|
48490
|
+
* Provides utility functions for generating [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) and SQL expressions intended for use in an [predominance renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html).
|
|
48491
|
+
*
|
|
48492
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html)
|
|
48493
|
+
*/
|
|
48494
|
+
interface predominanceUtils {
|
|
48495
|
+
/**
|
|
48496
|
+
* Returns [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) and SQL expressions used for visualizing the predominant category (or field) among a set of competing fields.
|
|
48497
|
+
*
|
|
48498
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#getPredominanceExpressions)
|
|
48499
|
+
*/
|
|
48500
|
+
getPredominanceExpressions(layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer, fieldNames: string[]): PredominantExpressions;
|
|
48501
|
+
}
|
|
48502
|
+
|
|
48503
|
+
export const predominanceUtils: predominanceUtils;
|
|
48504
|
+
|
|
48505
|
+
/**
|
|
48506
|
+
* Contains the Arcade and SQL expressions used to query feature services and client-side layers for the strength of the predominant category compared with all other categories.
|
|
48507
|
+
*
|
|
48508
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
|
|
48509
|
+
*/
|
|
48510
|
+
export interface OpacityExpressionInfo extends Object {
|
|
48511
|
+
/**
|
|
48512
|
+
* An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
|
|
48513
|
+
*
|
|
48514
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
|
|
48515
|
+
*/
|
|
48516
|
+
valueExpression: string;
|
|
48517
|
+
/**
|
|
48518
|
+
* The SQL expressions used for querying the percentage the predominant value comprises among of a set of fields.
|
|
48519
|
+
*
|
|
48520
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
|
|
48521
|
+
*/
|
|
48522
|
+
statisticsQuery: SQLExpressionInfo;
|
|
48523
|
+
/**
|
|
48524
|
+
* The SQL expressions used for querying the histogram using the percentage the predominant value comprises among of a set of fields.
|
|
48525
|
+
*
|
|
48526
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
|
|
48527
|
+
*/
|
|
48528
|
+
histogramQuery: SQLExpressionInfo;
|
|
48529
|
+
}
|
|
48530
|
+
|
|
48531
|
+
/**
|
|
48532
|
+
* The result object returned from the [getAgeExpressions()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#getAgeExpressions) method.
|
|
48533
|
+
*
|
|
48534
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
|
|
48535
|
+
*/
|
|
48536
|
+
export interface PredominantExpressions extends Object {
|
|
48537
|
+
/**
|
|
48538
|
+
* The Arcade expression used to get the predominant category among a set of fields.
|
|
48539
|
+
*
|
|
48540
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
|
|
48541
|
+
*/
|
|
48542
|
+
predominantCategory: PredominantExpressionsPredominantCategory;
|
|
48543
|
+
/**
|
|
48544
|
+
* The Arcade and SQL expressions used to query the server or client-side layer for statistics of the sum of all competing fields considered for the predominance visualization.
|
|
48545
|
+
*
|
|
48546
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
|
|
48547
|
+
*/
|
|
48548
|
+
size: SizeExpressionInfo;
|
|
48549
|
+
/**
|
|
48550
|
+
* The Arcade and SQL expressions used to query the server or client-side layer for statistics of the percentage among all competing fields comprised by the predominant category.
|
|
48551
|
+
*
|
|
48552
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
|
|
48553
|
+
*/
|
|
48554
|
+
opacity: OpacityExpressionInfo;
|
|
48555
|
+
}
|
|
48556
|
+
|
|
48557
|
+
/**
|
|
48558
|
+
* Contains the Arcade and SQL expressions used to query feature services and client-side layers for the sum of all values considered in a predominance visualization.
|
|
48559
|
+
*
|
|
48560
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
|
|
48561
|
+
*/
|
|
48562
|
+
export interface SizeExpressionInfo extends Object {
|
|
48563
|
+
/**
|
|
48564
|
+
* An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
|
|
48565
|
+
*
|
|
48566
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
|
|
48567
|
+
*/
|
|
48568
|
+
valueExpression: string;
|
|
48569
|
+
/**
|
|
48570
|
+
* The SQL expressions used for querying the sum of a set of fields.
|
|
48571
|
+
*
|
|
48572
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
|
|
48573
|
+
*/
|
|
48574
|
+
statisticsQuery: SQLExpressionInfo;
|
|
48575
|
+
/**
|
|
48576
|
+
* The SQL expressions used for querying the histogram for the sum of a set of fields.
|
|
48577
|
+
*
|
|
48578
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
|
|
48579
|
+
*/
|
|
48580
|
+
histogramQuery: SQLExpressionInfo;
|
|
48581
|
+
}
|
|
48582
|
+
|
|
48583
|
+
/**
|
|
48584
|
+
* SQL expressions used to query feature services for predominant values and related statistics given a set of fields.
|
|
48585
|
+
*
|
|
48586
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SQLExpressionInfo)
|
|
48587
|
+
*/
|
|
48588
|
+
export interface SQLExpressionInfo extends Object {
|
|
48589
|
+
/**
|
|
48590
|
+
* The SQL expression used for querying the predominant category given a set of fields.
|
|
48591
|
+
*
|
|
48592
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SQLExpressionInfo)
|
|
48593
|
+
*/
|
|
48594
|
+
sqlExpression: string;
|
|
48595
|
+
/**
|
|
48596
|
+
* The SQL where clause used to query the predominant value.
|
|
48597
|
+
*
|
|
48598
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SQLExpressionInfo)
|
|
48599
|
+
*/
|
|
48600
|
+
sqlWhere: string;
|
|
48601
|
+
}
|
|
48602
|
+
|
|
48603
|
+
export interface PredominantExpressionsPredominantCategory extends Object {
|
|
48604
|
+
/**
|
|
48605
|
+
* valueExpression - An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
|
|
48606
|
+
*
|
|
48607
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
|
|
48608
|
+
*/
|
|
48609
|
+
valueExpression: string;
|
|
48610
|
+
}
|
|
48611
|
+
|
|
48489
48612
|
/**
|
|
48490
48613
|
* A function that queries for unique values from a field in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
|
|
48491
48614
|
*
|
|
@@ -55220,11 +55343,11 @@ declare namespace __esri {
|
|
|
55220
55343
|
*/
|
|
55221
55344
|
node?: HTMLElement;
|
|
55222
55345
|
/**
|
|
55223
|
-
*
|
|
55346
|
+
* Use a number to set the size (in points) of the symbol preview for any symbol representing a point.
|
|
55224
55347
|
*
|
|
55225
55348
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
|
|
55226
55349
|
*/
|
|
55227
|
-
size?: number;
|
|
55350
|
+
size?: number | symbolUtilsRenderPreviewHTMLOptionsSize;
|
|
55228
55351
|
/**
|
|
55229
55352
|
* The maximum size of the symbol preview in points.
|
|
55230
55353
|
*
|
|
@@ -55256,7 +55379,7 @@ declare namespace __esri {
|
|
|
55256
55379
|
*
|
|
55257
55380
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
|
|
55258
55381
|
*/
|
|
55259
|
-
symbolConfig?:
|
|
55382
|
+
symbolConfig?: "tall" | symbolUtilsRenderPreviewHTMLOptionsSymbolConfig;
|
|
55260
55383
|
/**
|
|
55261
55384
|
* The rotation of the symbol.
|
|
55262
55385
|
*
|
|
@@ -55265,6 +55388,21 @@ declare namespace __esri {
|
|
|
55265
55388
|
rotation?: number;
|
|
55266
55389
|
}
|
|
55267
55390
|
|
|
55391
|
+
export interface symbolUtilsRenderPreviewHTMLOptionsSize extends Object {
|
|
55392
|
+
/**
|
|
55393
|
+
* The width of the SimpleLineSymbol or SimpleFillSymbol preview in points.
|
|
55394
|
+
*
|
|
55395
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
|
|
55396
|
+
*/
|
|
55397
|
+
width?: number;
|
|
55398
|
+
/**
|
|
55399
|
+
* The height of the SimpleLineSymbol or SimpleFillSymbol preview in points.
|
|
55400
|
+
*
|
|
55401
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
|
|
55402
|
+
*/
|
|
55403
|
+
height?: number;
|
|
55404
|
+
}
|
|
55405
|
+
|
|
55268
55406
|
export interface symbolUtilsRenderPreviewHTMLOptionsSymbolConfig extends Object {
|
|
55269
55407
|
/**
|
|
55270
55408
|
* Set to `true` for "tall" symbols in portrait view.
|
|
@@ -80987,6 +81125,12 @@ declare namespace __esri {
|
|
|
80987
81125
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#state)
|
|
80988
81126
|
*/
|
|
80989
81127
|
readonly state: "ready" | "loading" | "disabled";
|
|
81128
|
+
/**
|
|
81129
|
+
* Ensure that the result of a user-defined group-by function is an object, not a string.
|
|
81130
|
+
*
|
|
81131
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#_ensureGroupByObject)
|
|
81132
|
+
*/
|
|
81133
|
+
_ensureGroupByObject(groupByObjectOrLabel: void): void;
|
|
80990
81134
|
/**
|
|
80991
81135
|
* This method updates the [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) with the provided filter.
|
|
80992
81136
|
*
|
|
@@ -91055,19 +91199,19 @@ declare namespace __esri {
|
|
|
91055
91199
|
*/
|
|
91056
91200
|
draggableSegmentsEnabled: boolean;
|
|
91057
91201
|
/**
|
|
91058
|
-
*
|
|
91202
|
+
* When set, the user is restricted from moving slider thumbs to positions higher than this value.
|
|
91059
91203
|
*
|
|
91060
91204
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMax)
|
|
91061
91205
|
*/
|
|
91062
91206
|
effectiveMax: number;
|
|
91063
91207
|
/**
|
|
91064
|
-
*
|
|
91208
|
+
* When set, the user is restricted from moving slider thumbs to positions less than this value.
|
|
91065
91209
|
*
|
|
91066
91210
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMin)
|
|
91067
91211
|
*/
|
|
91068
91212
|
effectiveMin: number;
|
|
91069
91213
|
/**
|
|
91070
|
-
*
|
|
91214
|
+
* The HTML Element nodes representing the slider segment between the [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min) and [effectiveMin](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMin), and the segment between the [effectiveMax](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMax) and [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max).
|
|
91071
91215
|
*
|
|
91072
91216
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveSegmentElements)
|
|
91073
91217
|
*/
|
|
@@ -91296,13 +91440,13 @@ declare namespace __esri {
|
|
|
91296
91440
|
*/
|
|
91297
91441
|
draggableSegmentsEnabled?: boolean;
|
|
91298
91442
|
/**
|
|
91299
|
-
*
|
|
91443
|
+
* When set, the user is restricted from moving slider thumbs to positions higher than this value.
|
|
91300
91444
|
*
|
|
91301
91445
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMax)
|
|
91302
91446
|
*/
|
|
91303
91447
|
effectiveMax?: number;
|
|
91304
91448
|
/**
|
|
91305
|
-
*
|
|
91449
|
+
* When set, the user is restricted from moving slider thumbs to positions less than this value.
|
|
91306
91450
|
*
|
|
91307
91451
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMin)
|
|
91308
91452
|
*/
|
|
@@ -91444,6 +91588,18 @@ declare namespace __esri {
|
|
|
91444
91588
|
}
|
|
91445
91589
|
|
|
91446
91590
|
interface SliderViewModel extends Accessor, Evented {
|
|
91591
|
+
/**
|
|
91592
|
+
* When set, the user is restricted from moving slider thumbs to positions higher than this value.
|
|
91593
|
+
*
|
|
91594
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMax)
|
|
91595
|
+
*/
|
|
91596
|
+
effectiveMax: number;
|
|
91597
|
+
/**
|
|
91598
|
+
* When set, the user is restricted from moving slider thumbs to positions less than this value.
|
|
91599
|
+
*
|
|
91600
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMin)
|
|
91601
|
+
*/
|
|
91602
|
+
effectiveMin: number;
|
|
91447
91603
|
/**
|
|
91448
91604
|
* A function used to format user inputs.
|
|
91449
91605
|
*
|
|
@@ -91526,6 +91682,12 @@ declare namespace __esri {
|
|
|
91526
91682
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#defaultLabelFormatFunction)
|
|
91527
91683
|
*/
|
|
91528
91684
|
defaultLabelFormatFunction(value: number): string;
|
|
91685
|
+
/**
|
|
91686
|
+
* Returns the effective bounds of the slider.
|
|
91687
|
+
*
|
|
91688
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#getBounds)
|
|
91689
|
+
*/
|
|
91690
|
+
getBounds(): Bounds;
|
|
91529
91691
|
/**
|
|
91530
91692
|
* Returns the min and max bounds for a 'value' at the provided index.
|
|
91531
91693
|
*
|
|
@@ -91566,6 +91728,18 @@ declare namespace __esri {
|
|
|
91566
91728
|
export const SliderViewModel: SliderViewModelConstructor;
|
|
91567
91729
|
|
|
91568
91730
|
interface SliderViewModelProperties {
|
|
91731
|
+
/**
|
|
91732
|
+
* When set, the user is restricted from moving slider thumbs to positions higher than this value.
|
|
91733
|
+
*
|
|
91734
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMax)
|
|
91735
|
+
*/
|
|
91736
|
+
effectiveMax?: number;
|
|
91737
|
+
/**
|
|
91738
|
+
* When set, the user is restricted from moving slider thumbs to positions less than this value.
|
|
91739
|
+
*
|
|
91740
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMin)
|
|
91741
|
+
*/
|
|
91742
|
+
effectiveMin?: number;
|
|
91569
91743
|
/**
|
|
91570
91744
|
* A function used to format user inputs.
|
|
91571
91745
|
*
|
|
@@ -91632,6 +91806,26 @@ declare namespace __esri {
|
|
|
91632
91806
|
value: number;
|
|
91633
91807
|
}
|
|
91634
91808
|
|
|
91809
|
+
/**
|
|
91810
|
+
* Represents the effective bounds of the slider.
|
|
91811
|
+
*
|
|
91812
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#Bounds)
|
|
91813
|
+
*/
|
|
91814
|
+
export interface Bounds extends Object {
|
|
91815
|
+
/**
|
|
91816
|
+
* The effective min value of the slider, or the minimum value a user can set a thumb on the slider.
|
|
91817
|
+
*
|
|
91818
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#Bounds)
|
|
91819
|
+
*/
|
|
91820
|
+
min: number;
|
|
91821
|
+
/**
|
|
91822
|
+
* The effective max value of the slider, or the maximum value a user can set a thumb on the slider.
|
|
91823
|
+
*
|
|
91824
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#Bounds)
|
|
91825
|
+
*/
|
|
91826
|
+
max: number;
|
|
91827
|
+
}
|
|
91828
|
+
|
|
91635
91829
|
export type InputCreatedFunction = (inputElement: any, type: "max" | "min" | "thumb", thumbIndex?: number) => void;
|
|
91636
91830
|
export type InputParser = (
|
|
91637
91831
|
value: string,
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.23/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as e}from"../chunks/tslib.es6.js";import t from"../request.js";import r from"../core/Error.js";import{clone as o}from"../core/lang.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s,createTask as l}from"../core/promiseUtils.js";import{urlToObject as a,addQueryParameters as n,isProtocolRelative as p,normalize as y}from"../core/urlUtils.js";import{property as u}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{reader as c}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{writer as h}from"../core/accessorSupport/decorators/writer.js";import d from"../geometry/Extent.js";import
|
|
5
|
+
import{_ as e}from"../chunks/tslib.es6.js";import t from"../request.js";import r from"../core/Error.js";import{clone as o}from"../core/lang.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s,createTask as l}from"../core/promiseUtils.js";import{urlToObject as a,addQueryParameters as n,isProtocolRelative as p,normalize as y}from"../core/urlUtils.js";import{property as u}from"../core/accessorSupport/decorators/property.js";import"../core/accessorSupport/ensureType.js";import{reader as c}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{writer as h}from"../core/accessorSupport/decorators/writer.js";import d from"../geometry/Extent.js";import S from"../geometry/SpatialReference.js";import f from"./Layer.js";import{APIKeyMixin as v}from"./mixins/APIKeyMixin.js";import{ArcGISCachedService as g}from"./mixins/ArcGISCachedService.js";import{ArcGISService as _}from"./mixins/ArcGISService.js";import{BlendLayer as j}from"./mixins/BlendLayer.js";import{CustomParametersMixin as b}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as w}from"./mixins/OperationalLayer.js";import{PortalLayer as L}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as T}from"./mixins/ScaleRangeLayer.js";import{checkWebPSupport as I}from"./support/imageUtils.js";import x from"./support/SpriteSource.js";import U from"./support/TileInfo.js";import{loadMetadata as P}from"./support/vectorTileLayerLoader.js";import{createForItem as R}from"../portal/support/jsonContext.js";import{areSchemasOverlapping as O,unionTileInfos as M}from"../views/2d/engine/vectorTiles/tileInfoUtils.js";import V from"../views/2d/engine/vectorTiles/style/StyleRepository.js";import{getWebGL1Capabilities as D}from"../views/webgl/capabilities.js";let C=class extends(j(T(g(_(w(L(b(v(i(f)))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.style=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.type="vector-tile",this.url=null,this.symbolCollisionBoxesVisible=!1,this.path=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))null==e||e.destroy();this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const r=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(s).then((async()=>{if(!this.portalItem||!this.portalItem.id)return;const r=`${this.portalItem.itemUrl}/resources/styles/root.json`;(await t(r,{...e,query:{f:"json",...this.customParameters,token:this.apiKey}})).data&&this.read({url:r},R(this.portalItem))})).catch(s).then((()=>this._loadStyle(e)));return this.addResolvingPromise(r),Promise.resolve(this)}get attributionDataUrl(){const e=this.currentStyleInfo,t=e&&e.serviceUrl&&a(e.serviceUrl);if(!t)return null;const r=this._getDefaultAttribution(t.path);return r?n(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){var e;return(null==(e=this.primarySource)?void 0:e.fullExtent)||null}get parsedUrl(){return this.serviceUrl?a(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null}get spatialReference(){return this.tileInfo&&this.tileInfo.spatialReference||null}get styleUrl(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null}writeStyleUrl(e,t){e&&p(e)&&(e=`https:${e}`),t.styleUrl=e}get tileInfo(){var e;const t=[];for(const o in this.sourceNameToSource)t.push(this.sourceNameToSource[o]);let r=(null==(e=this.primarySource)?void 0:e.tileInfo)||new U;if(t.length>1)for(let o=0;o<t.length;o++)O(r,t[o].tileInfo)&&(r=M(r,t[o].tileInfo));return r}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){var r;const o=D().maxTextureSize,i=null!=(r=this.currentStyleInfo)&&r.spriteUrl?n(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,s=new x(i,e,o,this.currentStyleInfo.spriteFormat);await s.load(t),this._spriteSourceMap.set(e,s)}return Promise.resolve(this._spriteSourceMap.get(e))}async loadStyle(e,t){var r;const o=e||this.style||this.url;return this._loadingTask&&"string"==typeof o&&this.url===o||(null==(r=this._loadingTask)||r.abort(),this._loadingTask=l((e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(o,{signal:e}))),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return o(this.styleRepository.getPaintProperties(e))}setPaintProperties(e,t){const r=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const o=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:r||o})}getStyleLayer(e){return o(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return o(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return null!=t&&t.origin&&!this.styleUrl?(t.messages&&t.messages.push(new r("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,r){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const r=await P(e,{...t,query:{...this.customParameters,token:this.apiKey}});if("webp"===r.spriteFormat){await I("lossy")||(r.spriteFormat="png")}this._set("currentStyleInfo",{...r}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new V(r.style)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i),r=["OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2"];if(!t)return;const o=t[2]&&t[2].toLowerCase();if(!o)return;const i=t[1]||"";for(const s of r)if(s.toLowerCase().includes(o))return y(`//static.arcgis.com/attribution/Vector${i}/${s}`)}async _loadStyle(e){var t,r;return null!=(t=null==(r=this._loadingTask)?void 0:r.promise)?t:this.loadStyle(null,e)}};e([u({readOnly:!0})],C.prototype,"attributionDataUrl",null),e([u({type:["show","hide"]})],C.prototype,"listMode",void 0),e([u({readOnly:!0,json:{read:!1}})],C.prototype,"capabilities",null),e([u({readOnly:!0})],C.prototype,"currentStyleInfo",void 0),e([u({json:{read:!1},readOnly:!0,type:d})],C.prototype,"fullExtent",null),e([u()],C.prototype,"style",void 0),e([u({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],C.prototype,"isReference",void 0),e([u({type:["VectorTileLayer"]})],C.prototype,"operationalLayerType",void 0),e([u({readOnly:!0})],C.prototype,"parsedUrl",null),e([u({readOnly:!0})],C.prototype,"serviceUrl",null),e([u({type:S,readOnly:!0})],C.prototype,"spatialReference",null),e([u({readOnly:!0})],C.prototype,"styleRepository",void 0),e([u({readOnly:!0})],C.prototype,"sourceNameToSource",void 0),e([u({readOnly:!0})],C.prototype,"primarySource",void 0),e([u({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],C.prototype,"styleUrl",null),e([h(["portal-item","web-document"],"styleUrl")],C.prototype,"writeStyleUrl",null),e([u({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:U})],C.prototype,"tileInfo",null),e([u({json:{read:!1},readOnly:!0,value:"vector-tile"})],C.prototype,"type",void 0),e([u({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],C.prototype,"url",void 0),e([u({readOnly:!0})],C.prototype,"version",void 0),e([c("version",["version","currentVersion"])],C.prototype,"readVersion",null),e([u({type:Boolean})],C.prototype,"symbolCollisionBoxesVisible",void 0),e([u({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],C.prototype,"path",void 0),C=e([m("esri.layers.VectorTileLayer")],C);const N=C;export{N as default};
|