@arcgis/core 5.2.0-next.75 → 5.2.0-next.76
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/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/013c9cc198736a72f7f2.js +1 -0
- package/assets/esri/core/workers/chunks/0194244a3f437ad74045.js +1 -0
- package/assets/esri/core/workers/chunks/{4dcd4a052b40047a9230.js → 08cac27df6c216ae1995.js} +1 -1
- package/assets/esri/core/workers/chunks/08ec5461af74356e7570.js +1 -0
- package/assets/esri/core/workers/chunks/0909816f13d25cacf250.js +1 -0
- package/assets/esri/core/workers/chunks/0933203eee15ea50e123.js +1 -0
- package/assets/esri/core/workers/chunks/{5e1d84e97de0e662aaa9.js → 1142f8e9c80207d6bdae.js} +1 -1
- package/assets/esri/core/workers/chunks/16929524565a677db4dc.js +1 -0
- package/assets/esri/core/workers/chunks/16a04fc184728d66e6e1.js +1 -0
- package/assets/esri/core/workers/chunks/177c3b23c1cbd4737049.js +1 -0
- package/assets/esri/core/workers/chunks/1a467da4c0b33f655199.js +1 -0
- package/assets/esri/core/workers/chunks/1ef28d4457c8c943ad19.js +1 -0
- package/assets/esri/core/workers/chunks/{2b93888e61ca638490cf.js → 20b54e7872d967f3be32.js} +1 -1
- package/assets/esri/core/workers/chunks/{5f31b375971ab067121e.js → 21f763694a41968ac21a.js} +1 -1
- package/assets/esri/core/workers/chunks/230925079cee040a8d77.js +1 -0
- package/assets/esri/core/workers/chunks/257f1e8316877f611e11.js +1 -0
- package/assets/esri/core/workers/chunks/270ed3070d118edb3f37.js +1 -0
- package/assets/esri/core/workers/chunks/2e7c830b5b1fe406169f.js +1 -0
- package/assets/esri/core/workers/chunks/315031323e11a18154e3.js +1 -0
- package/assets/esri/core/workers/chunks/393f79843d5a78c1cc37.js +1 -0
- package/assets/esri/core/workers/chunks/3b5c5356353f1a2303a0.js +1 -0
- package/assets/esri/core/workers/chunks/{99e3aa4832ed87474ab4.js → 44857a76be2c0ac65bb9.js} +1 -1
- package/assets/esri/core/workers/chunks/{3e2b4e734aa20a308f3e.js → 46e56fac44e0fd26ba1d.js} +1 -1
- package/assets/esri/core/workers/chunks/{4491dc227c28e2ab4f8e.js → 484b251fbcbffcb58323.js} +1 -1
- package/assets/esri/core/workers/chunks/48e2d0bfb62e1f4f2ad9.js +1 -0
- package/assets/esri/core/workers/chunks/4945d6b0ca1812864185.js +1 -0
- package/assets/esri/core/workers/chunks/{7f2f2a92dce3f68e579b.js → 4b54444c04fbd6f42c18.js} +1 -1
- package/assets/esri/core/workers/chunks/4c82f5f23004f905a18f.js +1 -0
- package/assets/esri/core/workers/chunks/4f8ce5887102971bfa34.js +2 -0
- package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js → 532e3a59888e4cc13bd3.js} +2 -2
- package/assets/esri/core/workers/chunks/53eed0941a39b56cc034.js +1 -0
- package/assets/esri/core/workers/chunks/56e6d8c4a9ed893ce951.js +1 -0
- package/assets/esri/core/workers/chunks/57159bcac86d660dcceb.js +1 -0
- package/assets/esri/core/workers/chunks/58026fc30d8a0ded4102.js +1 -0
- package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +1 -0
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +1 -0
- package/assets/esri/core/workers/chunks/5fd2aa0be03dfb494efa.js +1 -0
- package/assets/esri/core/workers/chunks/619aa1381296172ff47b.js +1 -0
- package/assets/esri/core/workers/chunks/62f37d1075390a177ae9.js +1 -0
- package/assets/esri/core/workers/chunks/65d1e338612e59063eba.js +1 -0
- package/assets/esri/core/workers/chunks/680dd7b7638465eb33de.js +1 -0
- package/assets/esri/core/workers/chunks/6c740c411b085d2d08c4.js +1 -0
- package/assets/esri/core/workers/chunks/{b14961a9f1f40028f141.js → 6c982779d6d47ec99899.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eb35e09765fd74eb698.js → 6e45ecf359bce3417f5d.js} +1 -1
- package/assets/esri/core/workers/chunks/{a52c88e2d837b525ff6c.js → 71ee7c51d2c60a180f1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js → 755b2d883fba90c4e688.js} +2 -2
- package/assets/esri/core/workers/chunks/{6b783f440c4a5d36e879.js → 75fc0b1db8e2e3fd2458.js} +1 -1
- package/assets/esri/core/workers/chunks/79429c8be5da85713200.js +1 -0
- package/assets/esri/core/workers/chunks/7b470d6ad182548b9e95.js +1 -0
- package/assets/esri/core/workers/chunks/7d8eb4dbea1916320f74.js +1 -0
- package/assets/esri/core/workers/chunks/83e54166ba634ec2bd89.js +1717 -0
- package/assets/esri/core/workers/chunks/87eaed6fdabd482d142e.js +1 -0
- package/assets/esri/core/workers/chunks/88d5541679e77117bf03.js +1 -0
- package/assets/esri/core/workers/chunks/894ebc64b698e5d7604b.js +1 -0
- package/assets/esri/core/workers/chunks/{67f54586156d1ab80257.js → 8b980c6b92cc4ea68ede.js} +1 -1
- package/assets/esri/core/workers/chunks/{4046bd65d7d0677f4600.js → 8d9a7fa14489897780d3.js} +1 -1
- package/assets/esri/core/workers/chunks/8e225dd0319672103561.js +1 -0
- package/assets/esri/core/workers/chunks/9199300ffd225a1bbef1.js +1 -0
- package/assets/esri/core/workers/chunks/{5ba3a30b7cbfa9e3aa62.js → 94b9a61b4dbb83425a78.js} +1 -1
- package/assets/esri/core/workers/chunks/98613fded899c59f34a4.js +1 -0
- package/assets/esri/core/workers/chunks/{6743d726e45e7b660505.js → 9c3e6325dc60bcaf44d7.js} +1 -1
- package/assets/esri/core/workers/chunks/9e1392a0c608a13ab036.js +1 -0
- package/assets/esri/core/workers/chunks/{7a24cc0f3b4eff2bdb8e.js → 9e2e4d197a7a57c2a691.js} +1 -1
- package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js → a014c17fc210620da738.js} +2 -2
- package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js → a19be304219808268039.js} +2 -2
- package/assets/esri/core/workers/chunks/{53d165b4f30fd64e5d8a.js → a4e4fa4dd1a122bbf7cd.js} +1 -1
- package/assets/esri/core/workers/chunks/a5240c8a47842138f31f.js +1 -0
- package/assets/esri/core/workers/chunks/a69c10bfd632a5546b34.js +1 -0
- package/assets/esri/core/workers/chunks/a7727a2377470d586ff9.js +1 -0
- package/assets/esri/core/workers/chunks/a91c1d782346a9c7e1ef.js +1 -0
- package/assets/esri/core/workers/chunks/{6cd6d0cfd313f0475d98.js → ac59218847e5ef4c4160.js} +1 -1
- package/assets/esri/core/workers/chunks/ac87be2210f868524996.js +1 -0
- package/assets/esri/core/workers/chunks/aed16c3e26652960ad3f.js +1 -0
- package/assets/esri/core/workers/chunks/{43713bc6f7eea07259d0.js → b084829a3fd709dc47a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{05f6887805d92da03122.js → b24fc7eeda580ef020d2.js} +1 -1
- package/assets/esri/core/workers/chunks/b37a20c5c4a4686257d4.js +1 -0
- package/assets/esri/core/workers/chunks/{43a65cab888d43954564.js → b4abf82b8ac974a55ae1.js} +1 -1
- package/assets/esri/core/workers/chunks/b950ddafba8125c84a5b.js +1 -0
- package/assets/esri/core/workers/chunks/bab5f4b2424b487b87ac.js +1 -0
- package/assets/esri/core/workers/chunks/{0d3b2d9a19383bb63f0a.js → bad2c7219e95750906e1.js} +1 -1
- package/assets/esri/core/workers/chunks/bbc6b270d2032189107c.js +1 -0
- package/assets/esri/core/workers/chunks/bc6e488f5fbd50f9f3d0.js +1 -0
- package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +1 -0
- package/assets/esri/core/workers/chunks/{1c49c9472167a2e0c923.js → c17dda6fadb8bfad0d51.js} +1 -1
- package/assets/esri/core/workers/chunks/c1e5ffe9a251be5a0744.js +1 -0
- package/assets/esri/core/workers/chunks/ca6652c6304ad0e37e8f.js +1 -0
- package/assets/esri/core/workers/chunks/{762be5d3e6aeaea33f74.js → cef02ed3942c010da2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/d520d407043bc52e5410.js +1 -0
- package/assets/esri/core/workers/chunks/da0ef984509057ec8507.js +1 -0
- package/assets/esri/core/workers/chunks/dbdd96e558936955acdb.js +1 -0
- package/assets/esri/core/workers/chunks/de927b1460bc384f5b87.js +1 -0
- package/assets/esri/core/workers/chunks/de9a1cce70581920f248.js +1 -0
- package/assets/esri/core/workers/chunks/dff932682d6386a861ce.js +1 -0
- package/assets/esri/core/workers/chunks/{2c31648a4b95275516ee.js → e227eb44cd139fe2bc1b.js} +1 -1
- package/assets/esri/core/workers/chunks/e4e5a171a4874c5af4a4.js +1 -0
- package/assets/esri/core/workers/chunks/{ddb92c815d17c67a45e6.js → e5d114f2b57d2b8e2f1c.js} +1 -1
- package/assets/esri/core/workers/chunks/e89e6eea380ca2c13b64.js +1 -0
- package/assets/esri/core/workers/chunks/e9d352d030dcad1619a6.js +1 -0
- package/assets/esri/core/workers/chunks/{3de6e54b6ed0feae1940.js → eae51e827f629ab37207.js} +1 -1
- package/assets/esri/core/workers/chunks/eee1fd629619021ea279.js +1 -0
- package/assets/esri/core/workers/chunks/{b6cd165d0e58598f28a5.js → ef47a5da641cb0d33fdf.js} +1 -1
- package/assets/esri/core/workers/chunks/f35e749bb5be39880cbe.js +1 -0
- package/assets/esri/core/workers/chunks/{3dff36f6de181d9dcdc5.js → f40e4433e7608d0962a6.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1c7c877edc6948f3801.js → f4aa6e90200f61e623e5.js} +1 -1
- package/assets/esri/core/workers/chunks/{36ec5b84e551ab08b24a.js → ff578f0ca68d652fece5.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
- package/chunks/HeatmapDensity.glsl.js +5 -5
- package/chunks/bundle2.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/config.js +1 -1
- package/geometry/geometryEngine.js +1 -1
- package/geometry/support/centroid.js +1 -1
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/kernel.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectCircularSector.js +1 -1
- package/views/2d/engine/BitmapTile.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/styles/Particles.js +1 -1
- package/views/2d/engine/flow/styles/Streamlines.js +1 -1
- package/views/2d/engine/imagery/RasterTile.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +1 -1
- package/views/2d/engine/webgl/TileContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/animations/infos.js +1 -1
- package/views/2d/engine/webgl/animations/instructions.js +1 -1
- package/views/2d/engine/webgl/normalizedTileUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/flow/FlowTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/Tile.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileStencilShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/MagDirShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/ScalarShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderIcon.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderOutline.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderText.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/utility/DebugOverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/types.js +2 -0
- package/views/2d/engine/webgl/shaderGraph/uniformBufferUtils.js +2 -0
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/DisplayGL.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/DrapedZ.js +2 -0
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/PositionReader.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/UniformBufferLayout.js +1 -1
- package/views/webgl/UniformBufferObject.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +20 -6
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.d.ts +100 -0
- package/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/multipleChoiceInputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/assets/esri/core/workers/chunks/02dd79beb13eff6be85e.js +0 -1
- package/assets/esri/core/workers/chunks/0823961e5d0bdedbf8cf.js +0 -2
- package/assets/esri/core/workers/chunks/0aedeb837399d3f92e4a.js +0 -1
- package/assets/esri/core/workers/chunks/0bf644f93c180a2bc2f8.js +0 -705
- package/assets/esri/core/workers/chunks/0daaa89de339e8ea4b81.js +0 -1
- package/assets/esri/core/workers/chunks/1119a33245138e7b3914.js +0 -1
- package/assets/esri/core/workers/chunks/12234a63d3fa4bc25e7e.js +0 -1
- package/assets/esri/core/workers/chunks/1cf8fb704c48ac3d3b15.js +0 -1
- package/assets/esri/core/workers/chunks/2435ef7d11f8dbb920b7.js +0 -256
- package/assets/esri/core/workers/chunks/2791f3fe16ca5ee2f39a.js +0 -1
- package/assets/esri/core/workers/chunks/27f574acf52f2c8bc2c9.js +0 -1
- package/assets/esri/core/workers/chunks/2d45daacec0d5ed38782.js +0 -1
- package/assets/esri/core/workers/chunks/2ea3ca68cfa4d34e8f3b.js +0 -1
- package/assets/esri/core/workers/chunks/2f81047790c4890ae625.js +0 -1
- package/assets/esri/core/workers/chunks/3235e14fedb19dd94807.js +0 -1
- package/assets/esri/core/workers/chunks/32f5112c848efec6c33b.js +0 -1
- package/assets/esri/core/workers/chunks/3bc2943035391b44d4cf.js +0 -29
- package/assets/esri/core/workers/chunks/3c32471785bc8570e41c.js +0 -1
- package/assets/esri/core/workers/chunks/4295822fa6ef743c76f1.js +0 -1
- package/assets/esri/core/workers/chunks/42d5ed44111bea77ec71.js +0 -1462
- package/assets/esri/core/workers/chunks/46873badbd6ce8ff4e1e.js +0 -1
- package/assets/esri/core/workers/chunks/4710f21b138a2c9a0345.js +0 -1
- package/assets/esri/core/workers/chunks/4b5bd0c9a55ea2998601.js +0 -1
- package/assets/esri/core/workers/chunks/4c2794687aea172775a0.js +0 -1
- package/assets/esri/core/workers/chunks/4d9bde9f66817a92ceca.js +0 -1
- package/assets/esri/core/workers/chunks/4fe2cca405180af23364.js +0 -1
- package/assets/esri/core/workers/chunks/519af918050b47f93516.js +0 -1
- package/assets/esri/core/workers/chunks/5600fc334d20c4f0c83d.js +0 -1
- package/assets/esri/core/workers/chunks/5627f562dea8bae2f346.js +0 -1
- package/assets/esri/core/workers/chunks/5bf4ab72b9634b06cc5d.js +0 -1
- package/assets/esri/core/workers/chunks/5e3d5347223f0111f40f.js +0 -1
- package/assets/esri/core/workers/chunks/6f58cb9dffe8016397a2.js +0 -1
- package/assets/esri/core/workers/chunks/6fc3553c52af6ace926d.js +0 -1
- package/assets/esri/core/workers/chunks/7aaa051b51a8e34bbfb0.js +0 -1
- package/assets/esri/core/workers/chunks/7dc5aedc964eacd1be5a.js +0 -1
- package/assets/esri/core/workers/chunks/7f91e45156bbe88f9a62.js +0 -1
- package/assets/esri/core/workers/chunks/8a48a6760c33ed50b650.js +0 -1
- package/assets/esri/core/workers/chunks/8d21e2dabc5165f1c8ca.js +0 -1
- package/assets/esri/core/workers/chunks/903e1cd8b76eff19ebdf.js +0 -1
- package/assets/esri/core/workers/chunks/917c11cb40a7742d7f98.js +0 -1
- package/assets/esri/core/workers/chunks/91d133c04ca764d74934.js +0 -1
- package/assets/esri/core/workers/chunks/92c4464b67fce6cea134.js +0 -1
- package/assets/esri/core/workers/chunks/947f1ea4dbc3e3419ecc.js +0 -1
- package/assets/esri/core/workers/chunks/9482a6d7baa24bbf5693.js +0 -1
- package/assets/esri/core/workers/chunks/96cec8a02ca96175d602.js +0 -1
- package/assets/esri/core/workers/chunks/9902fcd2070c8eb6d043.js +0 -1
- package/assets/esri/core/workers/chunks/9b76c8974424a1908e86.js +0 -1
- package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +0 -1
- package/assets/esri/core/workers/chunks/9cff18e6f751d1b3085e.js +0 -1
- package/assets/esri/core/workers/chunks/a101152066dd56259619.js +0 -1
- package/assets/esri/core/workers/chunks/a2a2c7e274fb32fecffa.js +0 -1
- package/assets/esri/core/workers/chunks/a3bf8aa81ee398da5b52.js +0 -1
- package/assets/esri/core/workers/chunks/a7a7d3289d4ca95f545f.js +0 -1
- package/assets/esri/core/workers/chunks/abb6c76d5dba3559a68e.js +0 -1
- package/assets/esri/core/workers/chunks/afeeb11b39e140303b5a.js +0 -1
- package/assets/esri/core/workers/chunks/b1a175b3b2d1a7ddde8e.js +0 -1
- package/assets/esri/core/workers/chunks/b78f509fd8e95f728178.js +0 -1
- package/assets/esri/core/workers/chunks/b858adff7043683fe41c.js +0 -1
- package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +0 -1
- package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +0 -1
- package/assets/esri/core/workers/chunks/c1189316d24fb4cdb2a0.js +0 -1
- package/assets/esri/core/workers/chunks/c53b2be005721591e29b.js +0 -1
- package/assets/esri/core/workers/chunks/c82ab4f0908290e70ee9.js +0 -1
- package/assets/esri/core/workers/chunks/cc5ec6e99aa09342c704.js +0 -1
- package/assets/esri/core/workers/chunks/cd892c9603710d6130a9.js +0 -1
- package/assets/esri/core/workers/chunks/d021775cf747556660a5.js +0 -1
- package/assets/esri/core/workers/chunks/d633e98b0dfa0490e4de.js +0 -1
- package/assets/esri/core/workers/chunks/d79ce047afbc034f6008.js +0 -1
- package/assets/esri/core/workers/chunks/d8eca13c127b443141b7.js +0 -1
- package/assets/esri/core/workers/chunks/dbc9249dae41096d750d.js +0 -1
- package/assets/esri/core/workers/chunks/eb1a86159dbc098f06fe.js +0 -1
- package/assets/esri/core/workers/chunks/ec1841e6e498d54012eb.js +0 -1
- package/assets/esri/core/workers/chunks/ed1de8b7406269e217b9.js +0 -29
- package/assets/esri/core/workers/chunks/ee9eb381e675d2d01260.js +0 -1
- package/assets/esri/core/workers/chunks/f2ab8e49c7f17f488aa8.js +0 -1
- package/assets/esri/core/workers/chunks/f43a0edf58941e2ac78e.js +0 -1
- package/assets/esri/core/workers/chunks/f78acff510ca615d42e4.js +0 -1
- package/assets/esri/core/workers/chunks/f7a5c4d22a24e1ac433c.js +0 -1
- package/chunks/geometryEngineBase.js +0 -2
- package/geometry/geometryAdapters/json.js +0 -2
- package/geometry/geometryEngineJSON.js +0 -2
- /package/assets/esri/core/workers/chunks/{0823961e5d0bdedbf8cf.js.LICENSE.txt → 4f8ce5887102971bfa34.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{186bedc377cc97731ca2.js.LICENSE.txt → 532e3a59888e4cc13bd3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ad1d06a91121ebfe9162.js.LICENSE.txt → 755b2d883fba90c4e688.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d03e7be74c57c3dbf003.js.LICENSE.txt → a014c17fc210620da738.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{8302bffd28cc6720e0fe.js.LICENSE.txt → a19be304219808268039.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as i,option as o,uniform as s,texture as l,input as r,ComputeVertexInput as a}from"../../GraphShaderModule.js";import{Vec4 as n,Vec2 as p,Float as u,Sampler2D as d,Vec3 as m,min as h,max as y,Mat3 as c,ifElse as x,lessThan as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as i,option as o,uniform as s,texture as l,input as r,ComputeVertexInput as a}from"../../GraphShaderModule.js";import{Vec4 as n,Vec2 as p,Float as u,Sampler2D as d,Vec3 as m,min as h,max as y,Mat3 as c,ifElse as x,lessThan as f,equal as V,texture2D as w,clamp as v,abs as g,mix as S,distance as b,greaterThan as C,negate as z}from"../../graph/glsl.js";import{MarkerConstants as M}from"./markerConstants.js";import{FeatureVertexInput as _,AFeatureShader as R,FeatureFragmentInput as j}from"../shaders/AFeatureShader.js";import{c256ToRad as U,softEdgeRatio as F,trueHit as T,noHit as D}from"../shaders/constants.js";import{isRectHittest as I,hittestMarkerScreenRect as N,distPointTriangle as q,xyToBarycentric as O,inTriangle as k}from"../shaders/hittestUtils.js";import{MosaicInfo as A}from"../shaders/MosaicInfo.js";import{getBit as P,getBitBool as H,rgba2float as G}from"../shaders/utils.js";import{VisualVariableColor as L}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as B}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as E}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as J}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as K}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as Q}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as W}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as X,getVisualVariableColor as Y,getVisualVariableSize as Z,getVisualVariableRotation as $}from"../shaders/vvUtils.js";class tt extends _{}t([i(3,n)],tt.prototype,"color",void 0),t([i(4,n)],tt.prototype,"outlineColor",void 0),t([i(5,p)],tt.prototype,"offset",void 0),t([i(6,p)],tt.prototype,"textureUV",void 0),t([i(7,n)],tt.prototype,"sizing",void 0),t([i(8,u)],tt.prototype,"placementAngle",void 0),t([i(9,u)],tt.prototype,"sdfDecodeCoeff",void 0),t([i(10,p)],tt.prototype,"zoomRange",void 0);class et extends a{}t([i(11,p)],et.prototype,"offsetNextVertex1",void 0),t([i(12,p)],et.prototype,"offsetNextVertex2",void 0),t([i(13,p)],et.prototype,"textureUVNextVertex1",void 0),t([i(14,p)],et.prototype,"textureUVNextVertex2",void 0);class it extends j{}function ot(t,e,i,o){return e.multiply(t.x).add(i.multiply(t.y)).add(o.multiply(t.z))}function st(t){return t.multiply(t).divide(128)}class lt extends R{constructor(){super(...arguments),this.type="MarkerShader",this.computeAttributes={offset:["offsetNextVertex1","offsetNextVertex2"],textureUV:["textureUVNextVertex1","textureUVNextVertex2"]}}vertex(t,e){const i=st(t.sizing.x),o=st(t.sizing.y),s=st(t.sizing.z),l=t.placementAngle,r=P(t.bitset,M.bitset.isSDF),a=P(t.bitset,M.bitset.isMapAligned),p=P(t.bitset,M.bitset.scaleSymbolsProportionally),d=H(t.bitset,M.bitset.colorLocked),x=X(this,t.id),f=Y(this,t.id,t.color,d).multiply(x),V=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new m(t.pos.xy,1)),w=Z(this,t.id,s).divide(s),v=i.multiply(w),g=t.offset.xy.multiply(w);let S=o.multiply(p.multiply(w.subtract(1)).add(1));S=h(S,y(v.subtract(.99),new u(0)));const b=y(S,new u(1)),C=h(S,new u(1)),z=c.fromRotation(l.multiply(U)),_=$(this,t.id),R=this._getViewRotationMatrix(a).multiply(_).multiply(z).multiply(new m(g.xy,0)).multiply(this.tileInfo.scaleFactor),j=this.clip(t.id,t.zoomRange),F=new n(V.xy.add(R.xy),j,1),T=t.textureUV.divide(this.mosaicInfo.size),D=t.outlineColor.multiply(C),I=P(t.bitset,M.bitset.overrideOutlineColor),N=t.sdfDecodeCoeff.multiply(v);return{glPosition:F,color:f,textureUV:T,outlineColor:D,outlineSize:b,distanceToPx:N,isSDF:r,overrideOutlineColor:I,...this.maybeRunHittest(t,e,{pos:t.pos,size:v,sizeCorrection:w,scaleFactor:this.tileInfo.scaleFactor,isMapAligned:a,vvRotationMat3:_,placementMat3:z,outlineSize:b,distanceToPx:N,isSDF:r})}}fragment(t){const e=this._getColor(t.textureUV,t);return this.getFragmentOutput(e,t)}hittest(t,e,i){const{pos0:o,pos1:s,pos2:l}=this.computeHittestTriangle(t,e,i),r=I(this.hittestRequest);return x(r,()=>{const{tlbr:t}=this.hittestRequest;return N(o,s,l,t)},()=>x(f(i.size,this.hittestRequest.smallSymbolSizeThreshold),this._hittestSmallMarker(t,e,i),this._hittestMarker(t,e,i)))}_getViewRotationMatrix(t){const e=this.view.displayViewMat3,i=this.view.displayMat3,o=new u(1).subtract(t);return e.multiply(t).add(i.multiply(o))}_getViewScreenMatrix(t){const e=this.tile.getTileMat3(this.view,this.tileInfo),i=this.view.viewMat3.multiply(e),o=e,s=new u(1).subtract(t);return i.multiply(t).add(o.multiply(s))}_getColor(t,e){return x(V(e.isSDF,new u(1)),this._getSDFColor(t,e),this._getSpriteColor(t,e))}_getSpriteColor(t,e){return w(this.mosaicTexture,t).multiply(e.color)}_getSDFColor(t,e){const i=w(this.mosaicTexture,t),o=new u(.5).subtract(G(i)).multiply(e.distanceToPx).multiply(F),s=v(new u(.5).subtract(o),new u(0),new u(1)),l=e.color.multiply(s);let r=e.outlineSize;this.highlight&&(r=y(r,e.overrideOutlineColor.multiply(4)));const a=r.multiply(.5),n=g(o).subtract(a),p=v(new u(.5).subtract(n),new u(0),new u(1)),d=S(e.outlineColor,e.color,e.overrideOutlineColor).multiply(p);return new u(1).subtract(d.a).multiply(l).add(d)}_hittestSmallMarker(t,e,i){const{position:o,distance:s,smallSymbolDistance:l}=this.hittestRequest,r=s.subtract(l),a=this.tile.getViewScreenMat3(this.view,this.tileInfo).multiply(new m(i.pos,1)).xy,n=i.size.multiply(.5),p=b(a,o).subtract(n).add(r);return x(C(p,this.hittestRequest.distance),new u(D),new u(T))}_hittestMarker(t,e,i){const{pos0:o,pos1:s,pos2:l}=this.computeHittestTriangle(t,e,i),r=this.hittestRequest.position,a=this.hittestRequest.distance,n=q(r,o,s,l);return x(C(n,a),new u(D),this._hittestSamples(o,s,l,t,e,i))}computeHittestTriangle(t,e,i){const{pos:o,sizeCorrection:s,scaleFactor:l,isMapAligned:r}=i,a=new m(t.offset.multiply(s).multiply(l),0),n=new m(e.offsetNextVertex1.multiply(s).multiply(l),0),p=new m(e.offsetNextVertex2.multiply(s).multiply(l),0),u=this.tile.getViewScreenMat3(this.view,this.tileInfo).multiply(new m(o,1)),d=this._getViewScreenMatrix(r).multiply(i.vvRotationMat3).multiply(i.placementMat3);return{pos0:u.add(d.multiply(a)).xy,pos1:u.add(d.multiply(n)).xy,pos2:u.add(d.multiply(p)).xy}}_hittestSamples(t,e,i,o,s,l){const{outlineSize:r,isSDF:a,distanceToPx:d}=l,m=this.hittestRequest.position,h=this.hittestRequest.distance,y=O(m.add(new p(z(h),z(h))),t,e,i),c=O(m.add(new p(0,z(h))),t,e,i),f=O(m.add(new p(h,z(h))),t,e,i),V=O(m.add(new p(z(h),0)),t,e,i),w=O(m,t,e,i),v=O(m.add(new p(h,0)),t,e,i),g=O(m.add(new p(z(h),h)),t,e,i),S=O(m.add(new p(0,h)),t,e,i),b=O(m.add(new p(h,h)),t,e,i),M=o.textureUV.divide(this.mosaicInfo.size),_=s.textureUVNextVertex1.divide(this.mosaicInfo.size),R=s.textureUVNextVertex2.divide(this.mosaicInfo.size),j={color:new n(1),outlineColor:new n(1),overrideOutlineColor:new u(1),outlineSize:r,distanceToPx:d,isSDF:a};let U=new u(0);return U=U.add(k(y).multiply(this._getColor(ot(y,M,_,R),j).a)),U=U.add(k(c).multiply(this._getColor(ot(c,M,_,R),j).a)),U=U.add(k(f).multiply(this._getColor(ot(f,M,_,R),j).a)),U=U.add(k(V).multiply(this._getColor(ot(V,M,_,R),j).a)),U=U.add(k(w).multiply(this._getColor(ot(w,M,_,R),j).a)),U=U.add(k(v).multiply(this._getColor(ot(v,M,_,R),j).a)),U=U.add(k(g).multiply(this._getColor(ot(g,M,_,R),j).a)),U=U.add(k(S).multiply(this._getColor(ot(S,M,_,R),j).a)),U=U.add(k(b).multiply(this._getColor(ot(b,M,_,R),j).a)),x(C(U,new u(.05)),new u(T),new u(D))}}t([o(L)],lt.prototype,"visualVariableColor",void 0),t([o(B)],lt.prototype,"visualVariableOpacity",void 0),t([o(E)],lt.prototype,"visualVariableRotation",void 0),t([o(J)],lt.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(K)],lt.prototype,"visualVariableSizeScaleStops",void 0),t([o(Q)],lt.prototype,"visualVariableSizeStops",void 0),t([o(W)],lt.prototype,"visualVariableSizeUnitValue",void 0),t([s(A)],lt.prototype,"mosaicInfo",void 0),t([l(d)],lt.prototype,"mosaicTexture",void 0),t([e(0,r(tt)),e(1,r(et))],lt.prototype,"vertex",null),t([e(0,r(it))],lt.prototype,"fragment",null);export{it as MarkerFragmentInput,lt as MarkerShader,tt as MarkerVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{FeatureTechnique as e}from"../FeatureTechnique.js";import{isHittest as t,getSelectionDefines as r,getFeatureTextures as s,getFeatureUniforms as o,resolveDynamicUniforms as
|
|
2
|
+
import{FeatureTechnique as e}from"../FeatureTechnique.js";import{isHittest as t,getSelectionDefines as r,getFeatureTextures as s,getFeatureUniforms as o,resolveDynamicUniforms as i,getFeaturePipelineState as a}from"../featureTechniqueUtils.js";import{MarkerShader as n}from"./MarkerShader.js";class u extends e{constructor(){super(...arguments),this.type=23,this.shaders={geometry:new n},this.symbologyPlane=2}render(e,n){const{painter:u}=e,m=n.instance.getInput();u.setShader({shader:this.shaders.geometry,uniforms:{...i(e,n.target,m.uniforms),...o(e),mosaicInfo:u.textureManager.getMosaicInfo(e,n.textureKey,!0)},textures:{...s(e),mosaicTexture:u.textureManager.getMosaicTexture(e,n.textureKey,!0)},defines:{...r(e)},optionalAttributes:m.optionalAttributes,useComputeBuffer:t(e)}),u.setPipelineState(a(e)),u.submitDraw(e,n)}}export{u as MarkerTechnique};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{destroyMaybe as e}from"../../../../../../../core/maybe.js";import{Mesh as t}from"../../../meshing/Mesh.js";import{simplePipelineState as s}from"../../utils.js";import{Technique as i}from"../Technique.js";import{OverlayShader as r}from"../shaders/OverlayShader.js";import{
|
|
2
|
+
import{destroyMaybe as e}from"../../../../../../../core/maybe.js";import{Mesh as t}from"../../../meshing/Mesh.js";import{simplePipelineState as s}from"../../utils.js";import{Technique as i}from"../Technique.js";import{OverlayShader as r}from"../shaders/OverlayShader.js";import{PrimitiveType as n,DataType as o}from"../../../../../../webgl/enums.js";import{VertexElementDescriptor as a}from"../../../../../../webgl/VertexElementDescriptor.js";class u extends i{constructor(){super(...arguments),this.type=27,this._mesh=null,this.shaders={overlay:new r}}render(e,t){const{context:i,painter:r}=e,n=this._getMesh(e,t);r.setPipelineState(s);const{isWrapAround:o,wrapAroundShift:a,...u}=t.config,h={...u,wrapAroundShift:0},p={shader:this.shaders.overlay,uniforms:{config:h},textures:{texture:t.texture},defines:null,optionalAttributes:null,useComputeBuffer:!1};r.setPipelineState({...s,stencil:{write:!1,test:{compare:514,op:{fail:7680,zFail:7680,zPass:7681},mask:255}}}),r.submitDrawMeshUntyped(i,p,n,{stencilRef:0}),o&&(h.wrapAroundShift=a,r.submitDrawMeshUntyped(i,p,n,{stencilRef:0}))}shutdown(){e(this._mesh)}_getMesh(e,s){const{context:i}=e;if(this._mesh){const e=this._mesh.vertexBuffers.get("positions");if(!e)throw new Error("Buffer not found");e.setData(s.position)}else{const e=null!=s.index?s.index.length:s.position.length/2;this._mesh=new t(i,{vertex:{positions:{data:s.position,layout:[new a("pos",2,o.FLOAT,0,8)]},uvs:{data:s.tex,layout:[new a("uv",2,o.UNSIGNED_SHORT,0,4)]}},index:null!=s.index?{index:{data:s.index}}:void 0,groups:[{index:null!=s.index?"index":void 0,primitive:n.TRIANGLE_STRIP}],parts:[{group:0,start:0,count:e}]})}return this._mesh}}export{u as OverlayTechnique};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{uniform as r,location as o,option as i,input as s,UniformGroup as l}from"../../GraphShaderModule.js";import{Float as a,FixedArray as n,Vec4 as u,Vec2 as d,Vec3 as c,Int as h,ifElse as p,greaterThan as m,or as w,max as y,lessThan as S,and as g,greaterThanEqual as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{uniform as r,location as o,option as i,input as s,UniformGroup as l}from"../../GraphShaderModule.js";import{Float as a,FixedArray as n,Vec4 as u,Vec2 as d,Vec3 as c,Int as h,ifElse as p,greaterThan as m,or as w,max as y,lessThan as S,and as g,greaterThanEqual as f,equal as b,abs as x,length as V,smoothstep as v,mix as C,step as _,not as A,mod as z,atan2 as T,min as R,clamp as D,lessThanEqual as j,distance as I}from"../../graph/glsl.js";import{FeatureVertexInput as M,AFeatureShader as O,FeatureFragmentInput as F}from"../shaders/AFeatureShader.js";import{bitsetMarkerScaleSymbolsProportionally as q,bitsetMarkerAlignmentMap as W,noHit as U,trueHit as P,epsilon as G,cRadToDeg as H}from"../shaders/constants.js";import{hittestMarker as k,isRectHittest as B}from"../shaders/hittestUtils.js";import{getBit as E,isNan as J}from"../shaders/utils.js";import{VisualVariableOpacity as K}from"../shaders/VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as L}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as N}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as Q}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as X}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as Y,getVisualVariableSize as Z}from"../shaders/vvUtils.js";const $=10;class tt extends l{}t([r(a)],tt.prototype,"outlineWidth",void 0),t([r(n.ofType(u,$))],tt.prototype,"colors",void 0),t([r(u)],tt.prototype,"defaultColor",void 0),t([r(u)],tt.prototype,"othersColor",void 0),t([r(u)],tt.prototype,"outlineColor",void 0),t([r(a)],tt.prototype,"donutRatio",void 0),t([r(a)],tt.prototype,"sectorThreshold",void 0),t([r(a)],tt.prototype,"fieldCount",void 0);class et extends M{}t([o(3,d)],et.prototype,"offset",void 0),t([o(4,d)],et.prototype,"texCoords",void 0),t([o(5,a)],et.prototype,"referenceSize",void 0),t([o(6,d)],et.prototype,"zoomRange",void 0);class rt extends F{}class ot extends O{constructor(){super(...arguments),this.type="PieChartShader"}vertex(t){const e=Y(this,t.id),r=Z(this,t.id,t.referenceSize).divide(t.referenceSize),o=t.referenceSize.multiply(.5).multiply(r),i=t.offset.multiply(r),s=E(t.bitset,q),l=this.chart.outlineWidth.multiply(s.multiply(r.subtract(1)).add(1)),p=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new c(t.pos,1)),m=this._getViewRotationMatrix(E(t.bitset,W)).multiply(new c(i,0)),w=new u(p.xy.add(m.xy),this.clip(t.id,t.zoomRange),1),y=null==this.hittestRequest?this._getSectorData(t.id):{filteredSectorToColorId:new n(new d(0),$),numberOfFilteredSectors:new h(0),maxSectorAngle:new a(0)};return{glPosition:w,color:new u(0),offset:t.texCoords.multiply(2).subtract(1),size:o,outlineWidth:l,opacity:e,filteredSectorToColorId:y.filteredSectorToColorId,numberOfFilteredSectors:y.numberOfFilteredSectors,maxSectorAngle:y.maxSectorAngle,...this.maybeRunHittest(t,{},o)}}fragment(t){return this.getFragmentOutput(null!=this.hittestRequest?new u(0):this._getColor(t),t)}hittest(t,e,r){const o=this.tile.getViewScreenMat3(this.view,this.tileInfo).multiply(new c(t.pos,1)).xy;return p(B(this.hittestRequest),this._hittestScreenRect(o,r),p(m(k(o,r,this.hittestRequest.position),this.hittestRequest.distance),new a(U),new a(P)))}_getColor(t){const e=this._getAngle(t.offset),r=m(this.chart.sectorThreshold,new a(0));let o=p(w(m(t.maxSectorAngle,new a(0)),r),this.chart.othersColor,this.chart.defaultColor);const i=y(t.numberOfFilteredSectors.subtract(1),new h(0)),s=this._getSectorColor(t.filteredSectorToColorId,i),l=this._getSectorColor(t.filteredSectorToColorId,0),n=m(t.numberOfFilteredSectors,new h(0));let u=p(n,s,o),d=p(n,l,o),c=p(n,t.maxSectorAngle,new a(0)),_=p(n,new a(360),new a(0));const A=S(e,t.maxSectorAngle),z=g(r,S(t.maxSectorAngle.add(new a(G)),new a(360)));let T=new a(0);for(let w=0;w<$;w++){const r=t.filteredSectorToColorId.get(w).x,i=S(new h(w),t.numberOfFilteredSectors),l=g(A,g(i,g(m(r,e),f(e,T)))),n=w>0?this._getSectorColor(t.filteredSectorToColorId,w-1):s,y=p(S(new h(w+1),t.numberOfFilteredSectors),new h(w+1),new h(0)),V=this._getSectorColor(t.filteredSectorToColorId,y),v=p(g(z,b(new a(w),new a(0))),this.chart.othersColor,n),C=p(g(z,S(x(r.subtract(t.maxSectorAngle)),new a(G))),this.chart.othersColor,V);o=p(l,this._getSectorColor(t.filteredSectorToColorId,w),o),u=p(l,v,u),d=p(l,C,d),c=p(l,T,c),_=p(l,r,_),T=p(i,r,T)}const R=V(t.offset),D=R.multiply(t.size),j=new a(.75),I=e.subtract(c),M=_.subtract(e),O=v(j.multiply(-1),j,I.multiply(R)),F=v(j.multiply(-1),j,M.multiply(R));o=C(u,o,O).add(C(d,o,F)).subtract(o);const q=t.size.subtract(t.outlineWidth).subtract(j),W=this.chart.donutRatio.multiply(q),U=W.subtract(t.outlineWidth),P=p(m(U,j),v(U.subtract(j),U.add(j),D),new a(1)),H=new a(1).subtract(v(t.size.subtract(j.multiply(2)),t.size,D)),k=P.multiply(H),B=g(m(q,new a(0)),m(t.outlineWidth,new a(.25))),E=v(q.subtract(j),q.add(j),D),J=p(m(W,j),new a(1).subtract(v(W.subtract(j),W.add(j),D)),new a(0));return o=p(B,C(o,this.chart.outlineColor,J.add(E)),o),t.opacity.multiply(k).multiply(o)}_getSectorData(t){const e=this._getAttributeValues(t);let r=new a(0);for(let a=0;a<$;a++)r=r.add(e[a]);const o=this.chart.sectorThreshold.multiply(360);let i=new n(new d(0),$),s=new a(0),l=new h(0);for(let n=0;n<$;n++){const t=p(m(r,new a(0)),e[n].multiply(360).divide(r),new a(0)),u=p(m(t,o),new a(1),new a(0)),c=s.add(u.multiply(t)),w=new d(c,new a(n));i=i.set(l,w),s=c,l=l.add(new h(u))}return{filteredSectorToColorId:i,numberOfFilteredSectors:l,maxSectorAngle:s}}_getAttributeValues(t){const e=this.getAttributeDataCoords(t),r=this.storageTextures.getDataDrivenData0(e),o=this.storageTextures.getDataDrivenData1(e),i=this.storageTextures.getDataDrivenData2(e);return[this._getAttributeValue(r.x,0),this._getAttributeValue(r.y,1),this._getAttributeValue(r.z,2),this._getAttributeValue(r.w,3),this._getAttributeValue(o.x,4),this._getAttributeValue(o.y,5),this._getAttributeValue(o.z,6),this._getAttributeValue(o.w,7),this._getAttributeValue(i.x,8),this._getAttributeValue(i.y,9)]}_getAttributeValue(t,e){const r=_(new a(e+1),this.chart.fieldCount);return p(g(A(J(t)),m(t,new a(0))),t,new a(0)).multiply(r)}_getAngle(t){return z(new a(90).subtract(new a(H).multiply(T(t.y,t.x))),new a(360))}_getSectorColor(t,e){return this.chart.colors.get(new h(t.get(e).y))}_getViewRotationMatrix(t){const e=this.view.displayViewMat3,r=this.view.displayMat3,o=new a(1).subtract(t);return e.multiply(t).add(r.multiply(o))}_hittestScreenRect(t,e){const r=this.hittestRequest.tlbr.xy,o=this.hittestRequest.tlbr.zw,i=R(r.x,o.x),s=R(r.y,o.y),l=y(r.x,o.x),n=y(r.y,o.y),u=new d(D(t.x,i,l),D(t.y,s,n));return p(j(I(t,u),e),new a(1),new a(0))}}t([r(tt)],ot.prototype,"chart",void 0),t([i(K)],ot.prototype,"visualVariableOpacity",void 0),t([i(L)],ot.prototype,"visualVariableSizeMinMaxValue",void 0),t([i(N)],ot.prototype,"visualVariableSizeScaleStops",void 0),t([i(Q)],ot.prototype,"visualVariableSizeStops",void 0),t([i(X)],ot.prototype,"visualVariableSizeUnitValue",void 0),t([e(0,s(et))],ot.prototype,"vertex",null),t([e(0,s(rt))],ot.prototype,"fragment",null);export{ot as PieChartShader,et as PieChartVertexInput,$ as maxPieChartFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{FeatureTechnique as e}from"../FeatureTechnique.js";import{getFeatureUniforms as t,getSelectionDefines as r,isHittest as s,getFeatureTextures as i,resolveDynamicUniforms as o,getFeaturePipelineState as a}from"../featureTechniqueUtils.js";import{PieChartShader as n}from"./PieChartShader.js";class u extends e{constructor(){super(...arguments),this.type=30,this.shaders={geometry:new n},this.symbologyPlane=2}render(e,n){const{painter:u}=e,{instance:h
|
|
2
|
+
import{FeatureTechnique as e}from"../FeatureTechnique.js";import{getFeatureUniforms as t,getSelectionDefines as r,isHittest as s,getFeatureTextures as i,resolveDynamicUniforms as o,getFeaturePipelineState as a}from"../featureTechniqueUtils.js";import{PieChartShader as n}from"./PieChartShader.js";class u extends e{constructor(){super(...arguments),this.type=30,this.shaders={geometry:new n},this.symbologyPlane=2}render(e,n){const{painter:u}=e,{instance:h}=n,m=h.getInput(),p=t(e),d=r(e);u.setShader({shader:this.shaders.geometry,uniforms:{...o(e,n.target,m.uniforms.shader),...p},textures:i(e),defines:{...d},optionalAttributes:m.optionalAttributes,useComputeBuffer:s(e)}),u.setPipelineState(a(e)),u.submitDraw(e,n)}}export{u as PieChartTechnique};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import has from"../../../../../../../core/has.js";import{disposeMaybe as e}from"../../../../../../../core/maybe.js";import{Technique as t}from"../Technique.js";import{TextureStatisticsTechnique as i}from"../TextureStatisticsTechnique.js";import{getInterpolationDefines as r}from"./processor/textureUtils.js";import{
|
|
2
|
+
import has from"../../../../../../../core/has.js";import{disposeMaybe as e}from"../../../../../../../core/maybe.js";import{Technique as t}from"../Technique.js";import{TextureStatisticsTechnique as i}from"../TextureStatisticsTechnique.js";import{getInterpolationDefines as r}from"./processor/textureUtils.js";import{RasterColorizerLUTShader as s}from"../shaders/raster/RasterColorizerLUTShader.js";import{RasterColorizerShadedReliefShader as o}from"../shaders/raster/RasterColorizerShadedReliefShader.js";import{RasterColorizerStretchShader as n}from"../shaders/raster/RasterColorizerStretchShader.js";import{SizedPixelFormat as a,PixelType as u}from"../../../../../../webgl/enums.js";import{DisposableFramebufferObject as c}from"../../../../../../webgl/FramebufferObject.js";import m from"../../../../../../webgl/Texture.js";import{TextureDescriptor as l}from"../../../../../../webgl/TextureDescriptor.js";const p=160,h=new Set(["f32","f64","u16","s16","u32","s32"]);class d extends t{constructor(){super(...arguments),this.name="BrushRasterColorizer",this.type=0,this.shaders={lut:new s,stretch:new n,shadedRelief:new o},this._mosaicFbo=null,this._statisticsTechnique=null,this._draTimer=0}shutdown(t){super.shutdown(t),this._mosaicFbo=e(this._mosaicFbo),this._statisticsTechnique=e(this._statisticsTechnique)}render(t,i){const r=i.tiles.some(({bitmap:e})=>f(e));r||(this._mosaicFbo=e(this._mosaicFbo),this._statisticsTechnique=e(this._statisticsTechnique));const s=r?this._computeStatisticsTextures(t,i):void 0;for(const e of i.tiles){const{bitmap:i}=e;if(!i.source||i.suspended)continue;t.timeline.begin(this.name);const{painter:r}=t;r.setPipelineState({depth:!1,stencil:{test:{mask:255,compare:514,op:{fail:7680,zFail:7680,zPass:7680}},write:!1},color:{write:[!0,!0,!0,!0],blendMode:"composite"}}),i.updateTexture(t),i.updateProcessedTexture(),e.bindTile(t.context,t.tilingScheme);const{type:o}=i.symbolizerParameters,n="stretch"===o?this._getStretchOptions(e,s):"lut"===o?this._getLutOptions(e):this._getShadedReliefOptions(e);"bilinear"!==i.interpolation||t.context.capabilities.textureFloatLinear||(n.defines.bilinear=!0),r.submitDrawMesh(t.context,n,r.quadMesh,i),t.timeline.end(this.name)}}_computeStatisticsTextures(e,t){this._statisticsTechnique??=new i;const r=this._statisticsTechnique;let s=has("esri-2d-dra-delay");if(null==s){const e=t.tiles.find(({bitmap:e})=>f(e)).bitmap,{stretchType:i,bandCount:r}=e.symbolizerParameters,{pixelType:o}=e.source;"minMax"===i&&r>=3&&h.has(o)&&(s=p)}if(s){const i=performance.now();(i-this._draTimer>=s||e.stationary||!r.minValuesTexture)&&(this._mosaic(e,t),r.render(e,{fbo:this._mosaicFbo}),this._draTimer=i)}else this._mosaic(e,t),r.render(e,{fbo:this._mosaicFbo});return{minTexture:r.minValuesTexture,maxTexture:r.maxValuesTexture,meanTexture:r.meanValuesTexture,stddevTexture:r.stdDevValuesTexture}}_mosaic(e,t){const{context:i,painter:r}=e,s=i.boundFramebuffer;if(null==s)return;if(this._mosaicFbo)this._mosaicFbo.resize(s.width,s.height);else{const e=x(i,s.width,s.height);this._mosaicFbo=new c(i,e)}i.bindFramebuffer(this._mosaicFbo);const o="RasterColorizerMosaic";for(const n of t.tiles){const{bitmap:t}=n;if(!f(t))continue;e.timeline.begin(o),r.setPipelineState({depth:!1,stencil:{test:{mask:255,compare:514,op:{fail:7680,zFail:7680,zPass:7680}},write:!1},color:{write:[!0,!0,!0,!0],blendMode:"composite"}});const i=t.interpolation;t.interpolation="nearest",t.updateTexture(e),t.updateProcessedTexture(),n.bindTile(e.context,e.tilingScheme);const s=this._getStretchOptions(n,void 0,!0);s.defines.noOp=!0,r.submitDrawMesh(e.context,s,r.quadMesh,t),t.interpolation=i,e.timeline.end(o)}i.bindFramebuffer(s)}_getLutOptions(e){const{bitmap:t}=e,{config:i,projectionConfig:s,projectionTextures:o,colormapConfig:n,colormapTextures:a,textures:u,projectionDefines:c}=this._getCommonConfig(t),m=r(t);return{shader:this.shaders.lut,uniforms:{projectionConfig:s,config:i,colormapConfig:n},textures:{...u,projectionTextures:o,colormapTextures:a},defines:{...c,...m,applyPixelMask:!!u.pixelMaskTexture,applyPixelHighlights:!!u.highlightTexture},optionalAttributes:null,useComputeBuffer:!1}}_getStretchOptions(e,t,i=!1){const{bitmap:s}=e,o=s.symbolizerParameters,{config:n,projectionConfig:a,projectionTextures:u,colormapConfig:c,colormapTextures:m,textures:l,projectionDefines:p,textureUnit:h}=this._getCommonConfig(s),d=r(s),x=t?{numberOfStandardDeviations:o.numberOfStandardDeviations||2}:void 0,f=t?{minTexture:{texture:t.minTexture,unit:h},maxTexture:{texture:t.maxTexture,unit:h+1},meanTexture:{texture:t.meanTexture,unit:h+2},stddevTexture:{texture:t.stddevTexture,unit:h+3}}:void 0,g=t?"standardDeviation"===o.stretchType?2:1:0;return{shader:this.shaders.stretch,uniforms:{projectionConfig:a,config:n,stretchConfig:o,colormapConfig:c,statisticsConfig:x},textures:{...l,projectionTextures:u,colormapTextures:m,statisticsTextures:f},defines:{...p,...d,isMultiband:o.bandCount>1,applyColormap:!!c,useGamma:o.useGamma,noOp:s.isRenderedSource&&!s.processed,applyPixelMask:!!l.pixelMaskTexture,applyPixelHighlights:!i&&!!l.highlightTexture,draStretchType:g},optionalAttributes:null,useComputeBuffer:!1}}_getShadedReliefOptions(e){const{bitmap:t}=e,i=t.symbolizerParameters,{config:s,projectionConfig:o,projectionTextures:n,colormapConfig:a,colormapTextures:u,textures:c,projectionDefines:m}=this._getCommonConfig(t),l=r(t);return{shader:this.shaders.shadedRelief,uniforms:{projectionConfig:o,config:s,hillshadeConfig:i,colormapConfig:a},textures:{...c,projectionTextures:n,colormapTextures:u},defines:{...m,...l,isMultidirectional:i.hillshadeType>0,applyColormap:!!a,applyPixelMask:!!c.pixelMaskTexture,applyPixelHighlights:!!c.highlightTexture},optionalAttributes:null,useComputeBuffer:!1}}_getCommonConfig(e){const{coordScale:t,computedOpacity:i}=e,{names:r,textures:s}=e.getTextures({useProcessedTexture:e.processed}),o=s[r.indexOf("u_image")];let n=0;const a={coordScale:t,srcImageSize:e.getRasterTextureSize(),opacity:i},u={texture:{texture:o,unit:n++},pixelMaskTexture:null,highlightTexture:null},c=s[r.indexOf("u_transformGrid")],{transformGrid:m}=e,l=!(!c||!m),p=l?{targetImageSize:[e.width,e.height],transformSpacing:m.spacing,transformGridSize:m.size}:void 0,h=l?{transformTexture:{texture:c,unit:n++}}:void 0,d=s[r.indexOf("u_colormap")],{colormap:x,colormapOffset:f}=e.symbolizerParameters,g=d&&x?{colormapOffset:f??0,colormapMaxIndex:x.length/4-1}:void 0,T=d&&x?{colormapTexture:{texture:d,unit:n++}}:void 0,b=s[r.indexOf("u_mask")];b&&(u.pixelMaskTexture={texture:b,unit:n++});const{highlightTexture:_}=e;_&&(u.highlightTexture={texture:_,unit:n++});return{config:a,projectionConfig:p,projectionTextures:h,colormapConfig:g,colormapTextures:T,textures:u,projectionDefines:{applyProjection:l,lookupProjection:l&&1===m.spacing[0]},textureUnit:n}}}function x(e,t,i){const r=new l(t,i);return r.internalFormat=a.RGBA32F,r.samplingMode=9728,r.dataType=u.FLOAT,r.wrapMode=33071,new m(e,r)}function f(e){return!e.suspended&&null!=e.source&&!e.isRenderedSource&&"stretch"===e.symbolizerParameters.type&&!!e.symbolizerParameters.dynamicRangeAdjustment}export{d as RasterColorizerTechnique};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{RasterVFTile as e}from"../../../../imagery/RasterVFTile.js";import{Technique as t}from"../Technique.js";import{getRasterVFSamplingUniforms as r}from"./rasterVFUtils.js";import{
|
|
2
|
+
import{RasterVFTile as e}from"../../../../imagery/RasterVFTile.js";import{Technique as t}from"../Technique.js";import{getRasterVFSamplingUniforms as r}from"./rasterVFUtils.js";import{MagDirShader as a,magDirColorCount as s}from"../shaders/raster/MagDirShader.js";import{ScalarShader as o}from"../shaders/raster/ScalarShader.js";function i(e){const t=[];for(let r=0;r<s;r++){const a=4*r;t.push([e[a]??0,e[a+1]??0,e[a+2]??0,e[a+3]??0])}return t}const n=i([.27058823529411763,.4588235294117647,.7098039215686275,1,.396078431372549,.5372549019607843,.7215686274509804,1,.5176470588235295,.6196078431372549,.7294117647058823,1,.6352941176470588,.7058823529411765,.7411764705882353,1,.7529411764705882,.8,.7450980392156863,1,.8705882352941177,.8901960784313725,.7490196078431373,1,1,1,.7490196078431373,1,1,.8627450980392157,.6313725490196078,1,.9803921568627451,.7254901960784313,.5176470588235295,1,.9607843137254902,.596078431372549,.4117647058823529,1,.9294117647058824,.4588235294117647,.3176470588235294,1,.9098039215686274,.08235294117647059,.08235294117647059,1]),l=i([0,92/255,230/255,1]),c={beaufort_ft:n,beaufort_m:n,beaufort_km:n,beaufort_mi:n,beaufort_kn:i([.1568627450980392,.5725490196078431,.7803921568627451,1,.34901960784313724,.6352941176470588,.7294117647058823,1,.5058823529411764,.7019607843137254,.6705882352941176,1,.6274509803921569,.7607843137254902,.6078431372549019,1,.7490196078431373,.8313725490196079,.5411764705882353,1,.8549019607843137,.9019607843137255,.4666666666666667,1,.9803921568627451,.9803921568627451,.39215686274509803,1,.9882352941176471,.8352941176470589,.3254901960784314,1,.9882352941176471,.7019607843137254,.4,1,.9803921568627451,.5529411764705883,.20392156862745098,1,.9686274509803922,.43137254901960786,.16470588235294117,1,.9411764705882353,.2784313725490196,.11372549019607843,1]),classified_arrow:i([.2196078431372549,.6588235294117647,0,1,.5450980392156862,1.2117647058823529,0,1,1,1,0,1,1,.5019607843137255,0,1,1,0,0,1]),ocean_current_m:i([.3058823529411765,.10196078431372549,.6,1,.7019607843137254,.10588235294117647,.10196078431372549,1,.792156862745098,.5019607843137255,.10196078431372549,1,.6941176470588235,.6941176470588235,.6941176470588235,1]),ocean_current_kn:i([0,0,0,1,0,.1450980392156863,.39215686274509803,1,.3058823529411765,.10196078431372549,.6,1,.592156862745098,0,.39215686274509803,1,.7019607843137254,.10588235294117647,.10196078431372549,1,.6941176470588235,.3058823529411765,.10196078431372549,1,.792156862745098,.5019607843137255,.10196078431372549,1,.6941176470588235,.7019607843137254,.20392156862745098,1,.6941176470588235,.6941176470588235,.6941176470588235,1]),simple_scalar:l,single_arrow:l,wind_speed:i([0,0,0,1])},d=[0,20];class m extends t{constructor(){super(...arguments),this.type=3,this.shaders={magDir:new a,scalar:new o},this.drawPhase=1}shutdown(){}render(e,t){const{painter:r}=e;r.setPipelineState({depth:!1,color:{write:[!0,!0,!0,!0],blendMode:"composite"},stencil:{write:{mask:0},test:{compare:514,op:{fail:7680,zFail:7680,zPass:7681},mask:255}}});for(const a of t.tiles)this._renderItem(e,a)}_renderItem(e,t){const r=this._getTileData(t);if(null!=r.source&&0!==r.source.validPixelCount){if(f(t)&&t.bindTile(e.context,e.tilingScheme),e.timeline.begin("Vector field"),r.updateVectorFieldMesh(e),"scalar"===e.renderPass){const a=r.meshes.scalar;a&&this._drawScalars(e,t,a)}else{const a=r.meshes.magdir;a&&this._drawTriangles(e,t,a)}e.timeline.end("Vector field")}}_drawTriangles(e,t,r){const a=this._getTileData(t),{context:s,painter:o,requestRender:i,allowDelayedRender:n}=e,{symbolizerParameters:l}=a,c=!!l.dataRange,m="geographic"===l.rotationType;if(n&&null!=i)return void i();const{coordScale:u,opacity:h}=a,{style:g,dataRange:p,symbolPercentRange:_,rotation:y}=l,b=this._getTransformUniforms(t),S={shader:this.shaders.magDir,uniforms:{...b,config:{coordScale:u,opacity:h,colors:this._getColorUniforms(g),dataRange:p||d,rotation:y,symbolPercentRange:_,symbolSize:this._getSymbolSize(e,t)}},textures:{},defines:{tiled:f(t),rotationGeographic:m,dataRange:c},optionalAttributes:null,useComputeBuffer:!1};o.submitDrawMeshUntyped(s,S,r,{stencilRef:a.stencilRef})}_drawScalars(e,t,r){const a=this._getTileData(t),{context:s,painter:o,requestRender:i,allowDelayedRender:n}=e,{symbolizerParameters:l}=a,c="wind_speed"===l.style,m=!!l.dataRange;if(n&&null!=i)return void i();const{coordScale:u,opacity:h}=a,{dataRange:g,symbolPercentRange:p}=l,_=this._getTransformUniforms(t),y={shader:this.shaders.scalar,uniforms:{..._,config:{coordScale:u,opacity:h,dataRange:g||d,symbolPercentRange:p,symbolSize:this._getSymbolSize(e,t)}},textures:{},defines:{tiled:f(t),innerCircle:c,dataRange:m},optionalAttributes:null,useComputeBuffer:!1};o.submitDrawMeshUntyped(s,y,r,{stencilRef:a.stencilRef})}_getSymbolSize(e,t){const r=this._getTileData(t),a=f(t)?2**(e.displayLevel-t.key.level):r.resolution/e.state.resolution,{symbolTileSize:s}=r.symbolizerParameters;return[s/(Math.round((r.width-r.offset[0])/s)*s)/a,s/(Math.round((r.height-r.offset[1])/s)*s)/a]}_getColorUniforms(e){return c[e]}_getTransformUniforms(e){return f(e)?{tileInfo:!0,tile:!0,rasterVF:r(e),localTransform:null}:{tileInfo:null,tile:null,rasterVF:null,localTransform:{localToScreenMat3:e.transforms.localToScreenMat3}}}_getTileData(e){return f(e)?e.tileData:e}}function f(t){return t instanceof e}export{m as VectorFieldTechnique};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{maxHighlightReasons as e}from"../../../definitions.js";import{location as i,define as o,option as r,uniform as s,texture as l,VertexInput as a,ComputeVertexInput as
|
|
2
|
+
import{__decorate as t}from"tslib";import{maxHighlightReasons as e}from"../../../definitions.js";import{location as i,define as o,option as r,uniform as s,texture as l,VertexInput as a,ComputeVertexInput as h,GraphShaderModule as n,FragmentOutput as g,FragmentInput as u}from"../../GraphShaderModule.js";import{Vec3 as p,Float as d,Vec2 as m,float as c,step as y,Vec4 as w,equal as f,ifElse as b,or as x}from"../../graph/glsl.js";import{trueHit as v,candidateHit as V,noHit as C}from"./constants.js";import{EntityStorage as H,EntityStorageTextures as T}from"./EntityStorage.js";import{ShaderHighlight as D}from"./ShaderHighlight.js";import{ShaderHittest as j}from"./ShaderHittest.js";import{Tile as A}from"./Tile.js";import{TileInfo as _}from"./TileInfo.js";import{getFilterBit as R,getHighlightBit as S,getBit as F,uvToClip as I}from"./utils.js";import{ViewInfo as P}from"./ViewInfo.js";class k extends a{}t([i(0,p)],k.prototype,"id",void 0),t([i(1,d)],k.prototype,"bitset",void 0),t([i(2,m)],k.prototype,"pos",void 0);class O extends h{}t([i(14,m)],O.prototype,"nextPos1",void 0),t([i(15,m)],O.prototype,"nextPos2",void 0);class z extends u{}class q extends n{clip(t,e){let i=new d(0);const o=this.getFilterFlags(t);if(i=i.add(c(2).multiply(c(1).subtract(R(o,0)))),this.inside?i=i.add(c(2).multiply(c(1).subtract(R(o,1)))):this.outside?i=i.add(c(2).multiply(R(o,1))):this.highlight&&(i=i.add(c(2).multiply(c(1).subtract(this._checkHighlight(o))))),null!=e){const t=new d(1).subtract(y(e.x,this.tileInfo.currentZoom)),o=y(e.y,this.tileInfo.currentZoom);i=i.add(new d(2).multiply(t.add(o)))}return i}getFragmentOutput(t,e,i=new d(1/255)){const o=new g;return o.fragColor=this._maybeWriteHittest(e)??this._maybeHighlight(t,i)??t,o}_maybeHighlight(t,e){return this.highlight?new w(t.rgb,y(e,t.a)):null}_checkHighlight(t){let i=this._checkHighlightBit(t,0);for(let o=1;o<e;o++)i=i.add(this._checkHighlightBit(t,o));return y(new d(.1),i.add(this.highlight.highlightAll))}_checkHighlightBit(t,e){return S(t,e).multiply(F(this.highlight.activeReasons,e))}computeHittestTriangle(t,e,i){const o=this.tile.getViewScreenMat3(this.view,this.tileInfo),{nextPos1:r,nextPos2:s}=e;return{pos0:o.multiply(new p(t.pos,1)).xy,pos1:o.multiply(new p(r,1)).xy,pos2:o.multiply(new p(s,1)).xy}}maybeRunHittest(t,e,i){if(null==this.hittestRequest)return null;const o=this.hittest(t,e,i),r=f(o,new d(v)),s=f(o,new d(V)),l=b(s,()=>new w(new d(1/255),0,0,0),b(r,()=>new w(new d(2/255),0,0,0),new w(C)));let a=b(x(r,s),new d(0),new d(2));const h=this.getAttributeDataCoords(t.id),n=I(h);return a=a.add(this.clip(t.id,t.zoomRange)),{glPointSize:new d(1),glPosition:new w(n,a,1),color:l}}_maybeWriteHittest(t){return null!=this.hittestRequest?t.color:null}getAttributeDataCoords(t){return this.storage.getAttributeDataCoords(t)}getVVData(t){return this.storageTextures.getVVData(this.getAttributeDataCoords(t))}getFilterFlags(t){return this.storageTextures.getFilterFlags(this.getAttributeDataCoords(t))}getLocalTimeOrigin(t){return this.storageTextures.getLocalTimeOrigin(this.getAttributeDataCoords(t))}getSizeValue(t){return this.storageTextures.getSizeValue(this.getAttributeDataCoords(t))}getColorValue(t){return this.storageTextures.getColorValue(this.getAttributeDataCoords(t))}getOpacityValue(t){return this.storageTextures.getOpacityValue(this.getAttributeDataCoords(t))}getRotationValue(t){return this.storageTextures.getRotationValue(this.getAttributeDataCoords(t))}}t([o],q.prototype,"inside",void 0),t([o],q.prototype,"outside",void 0),t([r(D)],q.prototype,"highlight",void 0),t([s(H)],q.prototype,"storage",void 0),t([l(T)],q.prototype,"storageTextures",void 0),t([s(P)],q.prototype,"view",void 0),t([s(_)],q.prototype,"tileInfo",void 0),t([s(A)],q.prototype,"tile",void 0),t([r(j)],q.prototype,"hittestRequest",void 0);export{q as AFeatureShader,O as BaseHittestVertexInput,z as FeatureFragmentInput,k as FeatureVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as r,uniform as p,option as l,texture as s,define as
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as r,uniform as p,option as l,texture as s,define as c,input as n,VertexInput as a,UniformGroup as d,FragmentInput as m}from"../../GraphShaderModule.js";import{Vec3 as y,Vec4 as f,texture2D as h,Vec2 as u,Float as v,Mat3 as x,Sampler2D as g}from"../../graph/glsl.js";import{sampleBicubicBSpline as w}from"./bitmapUtils.js";import{Tile as S}from"./Tile.js";import{TileInfo as b}from"./TileInfo.js";import{ViewInfo as j}from"./ViewInfo.js";class T extends a{}t([r(0,u)],T.prototype,"position",void 0);class M extends m{}class I extends d{}t([p(u)],I.prototype,"coordScale",void 0),t([p(v)],I.prototype,"opacity",void 0);class V extends d{}t([p(x)],V.prototype,"localToScreenMat3",void 0);class B extends i{constructor(){super(...arguments),this.type="BitmapShader",this.tiled=!1}vertex(t){const o=new y(t.position.multiply(this.config.coordScale),1),i=this.tiled?this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(o):this.view.displayViewMat3.multiply(this.localTransform.localToScreenMat3.multiply(o));return{glPosition:new f(i,1),texcoord:t.position}}fragment(t){const o=new e;let i;return i=this.bicubic?w(this.texture,t.texcoord,this.config.coordScale):h(this.texture,t.texcoord),o.fragColor=new f(i.rgb.multiply(this.config.opacity),i.a.multiply(this.config.opacity)),o}}t([p(j)],B.prototype,"view",void 0),t([l(b)],B.prototype,"tileInfo",void 0),t([l(S)],B.prototype,"tile",void 0),t([l(V)],B.prototype,"localTransform",void 0),t([p(I)],B.prototype,"config",void 0),t([s(g)],B.prototype,"texture",void 0),t([c],B.prototype,"bicubic",void 0),t([c],B.prototype,"tiled",void 0),t([o(0,n(T))],B.prototype,"vertex",null),t([o(0,n(M))],B.prototype,"fragment",null);export{B as BitmapShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as l}from"tslib";import{location as e,uniform as r,define as n,texture as i,input as a,VertexInput as o,UniformGroup as u,GraphShaderModule as p,FragmentOutput as c,FragmentInput as s}from"../../GraphShaderModule.js";import{
|
|
2
|
+
import{__decorate as t,__param as l}from"tslib";import{location as e,uniform as r,define as n,texture as i,input as a,VertexInput as o,UniformGroup as u,GraphShaderModule as p,FragmentOutput as c,FragmentInput as s}from"../../GraphShaderModule.js";import{Float as d,Vec4 as y,texture2D as m,ifElse as w,equal as b,clamp as g,Vec3 as f,abs as k,max as C,min as v,greaterThan as h,step as x,cond as T,lessThanEqual as j,dot as F,lessThan as M,Vec2 as O,Sampler2D as S,sqrt as B}from"../../graph/glsl.js";import{uvToClip as G,oneMinus as P,minusScalar as q,minusOne as z}from"./utils.js";class A extends o{}t([e(0,O)],A.prototype,"position",void 0);class D extends s{}class E extends u{}t([r(d)],E.prototype,"opacity",void 0),t([r(d)],E.prototype,"inFadeOpacity",void 0);class H extends p{constructor(){super(...arguments),this.type="BlendShader"}vertex(t){return{uv:t.position,glPosition:new y(G(t.position),0,1)}}fragment(t){const l=new c,e=m(this.layerTexture,t.uv),r=m(this.backbufferTexture,t.uv),n=w(b(e.a,new d(0)),e.rgb,e.rgb.divide(e.a)),i=w(b(r.a,new d(0)),r.rgb,r.rgb.divide(r.a)),a=this.config.opacity.multiply(e.a),o=r.a;switch(this.blendMode){case"destination-over":l.fragColor=new y(n.multiply(a).multiply(P(o)).add(i.multiply(o)),a.add(o).subtract(a.multiply(o)));break;case"source-in":{const t=new y(n.multiply(a).multiply(o),a.multiply(o)),e=new y(i.multiply(o),o).multiply(P(this.config.opacity)).multiply(this.config.inFadeOpacity);l.fragColor=t.add(e)}break;case"destination-in":{const t=new y(i.multiply(o).multiply(a),o.multiply(a)),e=new y(i.multiply(o),o).multiply(new y(P(this.config.opacity).multiply(this.config.inFadeOpacity)));l.fragColor=t.add(e)}break;case"source-out":l.fragColor=new y(n.multiply(a).multiply(P(o)),a.multiply(P(o)));break;case"destination-out":l.fragColor=new y(i.multiply(o).multiply(P(a)),o.multiply(P(a)));break;case"source-atop":l.fragColor=new y(n.multiply(a).multiply(o).add(i.multiply(o.multiply(P(a)))),o);break;case"destination-atop":l.fragColor=new y(n.multiply(a.multiply(P(o))).add(i.multiply(o).multiply(a)),a);break;case"xor":l.fragColor=new y(n.multiply(a.multiply(P(o))).add(i.multiply(o.multiply(P(a)))),a.multiply(P(o)).add(o.multiply(P(a))));break;case"multiply":l.fragColor=new y(n.multiply(a).multiply(i.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"screen":l.fragColor=new y(n.add(i).subtract(n.multiply(i)).multiply(a.multiply(o)).add(n.multiply(a).multiply(P(o))).add(i.multiply(o).multiply(P(a))),a.add(o.multiply(P(a))));break;case"overlay":{const t=new f(J(i.r,n.r),J(i.g,n.g),J(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"darken":{const t=v(n,i);l.fragColor=I(t,n,i,a,o)}break;case"lighter":l.fragColor=new y(n.multiply(a).add(i.multiply(o)),a.add(o));break;case"lighten":{const t=C(n,i);l.fragColor=I(t,n,i,a,o)}break;case"color-dodge":{const t=g(new f(K(i.r,n.r),K(i.g,n.g),K(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;case"color-burn":{const t=new f(L(i.r,n.r),L(i.g,n.g),L(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"hard-light":{const t=new f(N(i.r,n.r),N(i.g,n.g),N(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"soft-light":{const t=new f(Q(i.r,n.r),Q(i.g,n.g),Q(i.b,n.b));l.fragColor=I(t,n,i,a,o)}break;case"difference":{const t=k(i.subtract(n));l.fragColor=I(t,n,i,a,o)}break;case"exclusion":{const t=n.add(i).subtract(new d(2).multiply(n).multiply(i));l.fragColor=I(t,n,i,a,o)}break;case"invert":l.fragColor=new y(new f(1).subtract(i).multiply(a).multiply(o).add(i.multiply(o).multiply(P(a))),o);break;case"vivid-light":{const t=new f(g(R(i.r,n.r),new d(0),new d(1)),g(R(i.g,n.g),new d(0),new d(1)),g(R(i.b,n.b),new d(0),new d(1)));l.fragColor=I(t,n,i,a,o)}break;case"hue":{const t=$(n,i,i);l.fragColor=I(t,n,i,a,o)}break;case"saturation":{const t=$(i,n,i);l.fragColor=I(t,n,i,a,o)}break;case"color":{const t=Z(n,i);l.fragColor=I(t,n,i,a,o)}break;case"luminosity":{const t=Z(i,n);l.fragColor=I(t,n,i,a,o)}break;case"plus":l.fragColor=g(new y(e.r.add(i.r),e.g.add(i.g),e.b.add(i.b),a.add(o)),new y(0),new y(1));break;case"minus":l.fragColor=new y(g(new f(i.r.subtract(e.r),i.g.subtract(e.g),i.b.subtract(e.b)),new f(0),new f(1)),o.multiply(a));break;case"average":{const t=i.add(n).divide(2);l.fragColor=I(t,n,i,a,o)}break;case"reflect":{const t=g(new f(_(i.r,n.r),_(i.g,n.g),_(i.b,n.b)),new f(0),new f(1));l.fragColor=I(t,n,i,a,o)}break;default:l.fragColor=e.multiply(this.config.opacity)}return l}}function I(t,l,e,r,n){return new y(t.multiply(r).multiply(n).add(l.multiply(r).multiply(P(n))).add(e.multiply(n).multiply(P(r))),r.add(n.multiply(P(r))))}function J(t,l){return new d(1).subtract(x(new d(.5),l)).multiply(P(new d(2).multiply(P(l).multiply(P(t))))).add(x(new d(.5),l).multiply(new d(2).multiply(l).multiply(t)))}function K(t,l){return w(b(t,new d(0)),new d(0),w(b(l,new d(1)),new d(1),v(new d(1),t.divide(new d(1).subtract(l)))))}function L(t,l){return w(b(t,new d(1)),new d(1),w(b(l,new d(0)),new d(0),P(v(new d(1),P(t).divide(l)))))}function N(t,l){return new d(1).subtract(x(new d(.5),l)).multiply(new d(2).multiply(l).multiply(t)).add(x(new d(.5),l).multiply(P(new d(2).multiply(P(l).multiply(P(t))))))}function Q(t,l){return T([j(l,new d(.5)),()=>{const e=new d(2).multiply(l),r=P(e),n=P(t);return t.subtract(r.multiply(t).multiply(n))}],[j(t,new d(.25)),()=>{const e=new d(2).multiply(l),r=z(e).multiply(t),n=new d(16).multiply(t).subtract(new d(12)).multiply(t).add(new d(3));return t.add(r.multiply(n))}],[!0,()=>{const e=new d(2).multiply(l),r=z(e),n=B(t).subtract(t);return t.add(r.multiply(n))}])}function R(t,l){const e=P(x(new d(.5),l)).multiply(L(t,new d(2).multiply(l))),r=x(new d(.5),l).multiply(K(t,new d(2).multiply(q(l,.5))));return e.add(r)}function U(t){return v(v(t.r,t.g),t.b)}function V(t){return C(C(t.r,t.g),t.b)}function W(t){return F(t,new f(.3,.59,.11))}function X(t){return V(t).subtract(U(t))}function Y(t){const l=W(t),e=U(t),r=V(t);return T([M(e,new d(0)),()=>{const r=t.subtract(l).multiply(l),n=l.subtract(e);return l.add(r.divide(n))}],[h(r,new d(1)),()=>{const e=t.subtract(l),n=P(l),i=e.multiply(n),a=r.subtract(l);return l.add(i.divide(a))}],[!0,t])}function Z(t,l){const e=W(t),r=W(l).subtract(e);return Y(t.add(new f(r)))}function $(t,l,e){const r=U(t),n=X(t),i=X(l);return Z(w(h(n,new d(0)),()=>t.subtract(r).multiply(i).divide(n),new f(0)),e)}function _(t,l){return w(b(l,new d(1)),l,()=>{const e=P(l),r=t.multiply(t).divide(e);return v(r,new d(1))})}t([n],H.prototype,"blendMode",void 0),t([r(E)],H.prototype,"config",void 0),t([i(S)],H.prototype,"layerTexture",void 0),t([i(S)],H.prototype,"backbufferTexture",void 0),t([l(0,a(A))],H.prototype,"vertex",null),t([l(0,a(D))],H.prototype,"fragment",null);export{H as BlendShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as o,uniform as i,texture as r,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as p,Vec2 as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as o,uniform as i,texture as r,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as p,Vec2 as d,Sampler2D as n,sin as a,cos as m,Vec3 as u,ifElse as f,mod as y,mix as c,texture2D as v,greaterThan as x,equal as h,float as g,mat3 as b,negate as w,vec2 as j}from"../../graph/glsl.js";import{BaseHittestVertexInput as O,FeatureFragmentInput as T}from"./AFeatureShader.js";import{c256ToRad as C,bitsetGenericConsiderAlphaOnly as F,bitsetFillRandomPatternOffset as A}from"./constants.js";import{FillVertexInput as I,FillShader as S}from"./FillShader.js";import{LocalTileOffset as z}from"./LocalTileOffset.js";import{MosaicInfo as M}from"./MosaicInfo.js";import{getBit as V,isNan as q,rgba2float as G,rand as L}from"./utils.js";class P extends I{}t([o(5,s)],P.prototype,"tlbr",void 0),t([o(6,p)],P.prototype,"width",void 0),t([o(7,p)],P.prototype,"height",void 0),t([o(8,d)],P.prototype,"offset",void 0),t([o(9,d)],P.prototype,"scale",void 0),t([o(10,p)],P.prototype,"angle",void 0);class R extends T{}function Z(t,e,o,i,r){const l=h(V(r,A),g(1)),p=G(new s(t,0));return f(l,b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,L(j(p,0)),L(j(0,p)),1),b(i.divide(e.x),o.divide(e.y),0,w(o.divide(e.x)),i.divide(e.y),0,0,0,1))}function k(t,e){const o=t.tile.getRequiredZoomFactor(t.tileInfo),i=new d(e.width,e.height),r=i.multiply(e.scale).multiply(o),l=e.angle.multiply(C),s=a(l),n=m(l),y=Z(e.id,r,s,n,e.bitset),c=t.localTileOffset.getPatternOffsetAtTileOrigin(i,s,n),v=o.multiply(e.scale).multiply(e.offset.subtract(c)).divide(r),x=new u(e.pos,1),h=y.multiply(x).xy.subtract(v),g=e.tlbr.divide(t.mosaicInfo.size.xyxy);let b=V(e.bitset,F);return null!=t.visualVariableColor&&(b=f(q(t.getColorValue(e.id)),new p(0),b)),{tileTextureCoord:h,tlbr:g,sampleAlphaOnly:b}}function B(t,e){const o=y(e.tileTextureCoord,new p(1)),i=c(e.tlbr.xy,e.tlbr.zw,o);let r=v(t.mosaicTexture,i);return r=f(x(e.sampleAlphaOnly,new p(.5)),r.aaaa,r),e.color.multiply(r)}class D extends S{constructor(){super(...arguments),this.type="ComplexFillShader"}vertex(t,e){return{...super.vertex(t,e),...k(this,t)}}fragment(t){const e=B(this,t);return this.getFragmentOutput(e,t,new p(0))}}t([i(M)],D.prototype,"mosaicInfo",void 0),t([r(n)],D.prototype,"mosaicTexture",void 0),t([i(z)],D.prototype,"localTileOffset",void 0),t([e(0,l(P)),e(1,l(O))],D.prototype,"vertex",null),t([e(0,l(R))],D.prototype,"fragment",null);export{R as ComplexFillFragmentInput,D as ComplexFillShader,P as ComplexFillVertexInput,B as getComplexFillFragmentColor,k as getComplexFillVertexData,Z as getPatternMatrix};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as o,option as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as o,option as s,input as i}from"../../GraphShaderModule.js";import{Vec4 as r,Vec2 as l,Vec3 as p,Float as n,ifElse as a,greaterThan as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as u,FeatureFragmentInput as h,FeatureVertexInput as c,AFeatureShader as y}from"./AFeatureShader.js";import{noHit as d,trueHit as f}from"./constants.js";import{isRectHittest as g,hittestFill as v,hittestScreenRect as x}from"./hittestUtils.js";import{VisualVariableColor as b}from"./VisualVariableColor.js";import{VisualVariableOpacity as j}from"./VisualVariableOpacity.js";import{getVisualVariableOpacity as w,getVisualVariableColor as V}from"./vvUtils.js";class R extends c{}t([o(3,r)],R.prototype,"color",void 0),t([o(4,l)],R.prototype,"zoomRange",void 0);class S extends y{constructor(){super(...arguments),this.type="FillShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,e){const o=w(this,t.id),s=V(this,t.id,t.color).multiply(o),i=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new p(t.pos.xy,1)),l=this.clip(t.id,t.zoomRange);return{glPosition:new r(i.xy,l,1),color:s,...this.maybeRunHittest(t,e,null)}}fragment(t){return this.getFragmentOutput(t.color,t,new n(0))}hittest(t,e){const{pos0:o,pos1:s,pos2:i}=this.computeHittestTriangle(t,e,null),r=g(this.hittestRequest);return a(r,()=>{const{tlbr:t}=this.hittestRequest;return x(o,s,i,t)},()=>{const o=v(this,t,e);return a(m(o,this.hittestRequest.distance),new n(d),new n(f))})}}t([s(b)],S.prototype,"visualVariableColor",void 0),t([s(j)],S.prototype,"visualVariableOpacity",void 0),t([e(0,i(R)),e(1,i(u))],S.prototype,"vertex",null),t([e(0,i(h))],S.prototype,"fragment",null);export{S as FillShader,R as FillVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as r,texture as o,input as s}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as n,Float as d,Sampler2D as l,ifElse as p,greaterThan as m,cond as c,equal as u,sqrt as v,dot as h,abs as x,max as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as r,texture as o,input as s}from"../../GraphShaderModule.js";import{Vec4 as a,Vec2 as n,Float as d,Sampler2D as l,ifElse as p,greaterThan as m,cond as c,equal as u,sqrt as v,dot as h,abs as x,max as f,clamp as g,mix as y,texture2D as w}from"../../graph/glsl.js";import{bitset as b,gradientFillMethods as S}from"../fill/gradientFillConstants.js";import{BaseHittestVertexInput as j,FeatureFragmentInput as z}from"./AFeatureShader.js";import{FillVertexInput as F,FillShader as M}from"./FillShader.js";import{MosaicInfo as D}from"./MosaicInfo.js";import{getBitBool as G,getBit as I,oneMinus as P}from"./utils.js";class A extends F{}t([i(5,a)],A.prototype,"tlbr",void 0),t([i(6,n)],A.prototype,"relativePosition",void 0),t([i(7,d)],A.prototype,"gradientMethod",void 0),t([i(8,n)],A.prototype,"relativeGradientSize",void 0);class T extends z{}class C extends M{constructor(){super(...arguments),this.type="GradientFillShader"}vertex(t,e){const{tlbr:i,relativePosition:r,gradientMethod:o,relativeGradientSize:s}=t,a=p(G(t.bitset,b.isAbsolute),this.tile.getDisplayZoomFactor(this.tileInfo),new d(1));return{...super.vertex(t,e),tlbr:i,relativePosition:r,gradientMethod:o,gradientSize:s.multiply(a),isDiscrete:I(t.bitset,b.isDiscrete)}}fragment(t){const{tlbr:e,relativePosition:i,gradientMethod:r,gradientSize:o,isDiscrete:s}=t,a=p(m(s,new d(.5)),o.subtract(1),new n(0)),l=c([u(r,new d(S.rectangular)),()=>{const t=x(i).add(a).divide(o);return P(f(t.x,t.y))}],[u(r,new d(S.circular)),P(v(h(i,i)).add(a.x).divide(o.x))],[!0,P(i.x.add(a.x).divide(o.x))]),b=new n(g(l,new d(0),new d(1)),.5),j=y(e.xy,e.zw,b).divide(this.mosaicInfo.size),z=w(this.mosaicTexture,j),F=t.color.a;return this.getFragmentOutput(z.multiply(F),t,new d(0))}}t([r(D)],C.prototype,"mosaicInfo",void 0),t([o(l)],C.prototype,"mosaicTexture",void 0),t([e(0,s(A)),e(1,s(j))],C.prototype,"vertex",null),t([e(0,s(T))],C.prototype,"fragment",null);export{T as GradientFillFragmentInput,C as GradientFillShader,A as GradientFillVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import has from"../../../../../../../core/has.js";import{location as i,uniform as o,texture as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import has from"../../../../../../../core/has.js";import{location as i,uniform as o,texture as s,input as r,UniformGroup as n}from"../../GraphShaderModule.js";import{Float as a,Vec2 as l,Vec4 as d,Sampler2D as p,ifElse as m,greaterThan as c,dot as u,min as h,length as y,mix as g,clamp as v,texture2D as f,step as w}from"../../graph/glsl.js";import{bitset as b}from"../line/gradientStrokeConstants.js";import{BaseHittestVertexInput as x}from"./AFeatureShader.js";import{LineVertexInput as S,LineShader as D,getLineVertexData as L,getLineAntialiasing as j,LineFragmentInput as A}from"./LineShader.js";import{MosaicInfo as z}from"./MosaicInfo.js";import{getBit as F,getBitBool as G,oneMinus as I}from"./utils.js";function P(t){return w(new a(0),t).multiply(2).subtract(1)}class C extends S{}t([i(9,a)],C.prototype,"accumulatedDistance",void 0),t([i(10,a)],C.prototype,"totalLength",void 0),t([i(11,a)],C.prototype,"gradientSize",void 0),t([i(12,l)],C.prototype,"segmentDirection",void 0),t([i(13,d)],C.prototype,"tlbr",void 0);class k extends A{}class q extends n{}t([o(a)],q.prototype,"isColorPass",void 0);class M extends D{constructor(){super(...arguments),this.type="GradientStrokeShader"}vertex(t,e){const{totalLength:i,gradientSize:o,segmentDirection:s,tlbr:r}=t,n=L(this,t),l=F(t.bitset,b.isAlongLine),d=i.divide(this.tile.getDisplayZoomFactor(this.tileInfo)),p=m(G(t.bitset,b.isAbsoluteSize),()=>{const t=m(c(l,new a(.5)),d,n.halfWidth);return o.divide(t)},o),h=t.accumulatedDistance.add(u(s,n.scaledOffset).divide(d)),y=r.divide(this.mosaicInfo.size.xyxy);return{...n,tlbr:y,relativePositionAlongLine:h,relativeGradientSize:p,isAlongLine:F(t.bitset,b.isAlongLine),isDiscrete:F(t.bitset,b.isDiscrete),...this.maybeRunHittest(t,e,n.halfWidth)}}fragment(t){const{isAlongLine:e,isDiscrete:i,relativePositionAlongLine:o,relativeGradientSize:s,normal:r,tlbr:n}=t,d=j(t,this.view.antialiasing),p=P(r.y).multiply(h(y(r),new a(1))),u=new a(.5).multiply(p).add(new a(.5)),b=m(c(e,new a(.5)),o,u),x=m(c(i,new a(.5)),s.subtract(1),new a(0));let S=b.add(x).divide(s);S=m(c(e,new a(.5)),S,I(S));const D=g(n.xy,n.zw,new l(v(S,new a(0),new a(1)),.5)),L=f(this.mosaicTexture,D),A=t.opacity.multiply(d),z=this.getFragmentOutput(L.multiply(A),t),F=w(new a(.5),this.technique.isColorPass).multiply(has("gradient-depth-epsilon")),G=w(new a(0),r.y).multiply(new a(has("gradient-depth-bias")).subtract(F));return z.glFragDepth=v(y(r).add(G),new a(0),new a(1)),z}}t([o(z)],M.prototype,"mosaicInfo",void 0),t([s(p)],M.prototype,"mosaicTexture",void 0),t([o(q)],M.prototype,"technique",void 0),t([e(0,r(C)),e(1,r(x))],M.prototype,"vertex",null);export{k as GradientStrokeFragmentInput,M as GradientStrokeShader,C as GradientStrokeVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as s,define as o,input as l,UniformGroup as r}from"../../GraphShaderModule.js";import{Vec2 as n,Float as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as s,define as o,input as l,UniformGroup as r}from"../../GraphShaderModule.js";import{Vec2 as n,Float as p,Vec3 as a,Vec4 as u,length as m,step as d,ifElse as h,greaterThan as c}from"../../graph/glsl.js";import{FeatureVertexInput as f,AFeatureShader as y,FeatureFragmentInput as w}from"./AFeatureShader.js";import{trueHit as v,noHit as g}from"./constants.js";import{getHeatmapCompressionFactor as x}from"./heatmapUtils.js";import{hittestMarker as F}from"./hittestUtils.js";class V extends f{}t([i(5,n)],V.prototype,"offset",void 0);class j extends w{}class H extends r{}t([s(p)],H.prototype,"radius",void 0),t([s(p)],H.prototype,"isFieldActive",void 0);class S extends y{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:i}=this.kernelControls,s=t.offset,o=i.multiply(this.getVVData(t.id).x).add(new p(1).subtract(i)),l=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new a(t.pos,1)).add(this.view.displayViewMat3.multiply(new a(s,0)).multiply(e)),r=this.clip(t.id);return{glPosition:new u(l.xy,r,1),offset:s,fieldValue:o,color:new u(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:i}=t,s=m(e),o=d(s,new p(1)),l=new p(1).subtract(s.multiply(s)),r=l.multiply(l),n=o.multiply(r).multiply(i).multiply(new p(x(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new u(n),t)}hittest(t){const e=this.tile.getViewScreenMat3(this.view,this.tileInfo).multiply(new a(t.pos,1)),i=F(e.xy,this.kernelControls.radius,this.hittestRequest.position);return h(c(i,this.hittestRequest.distance),new p(g),new p(v))}}t([o],S.prototype,"usesHalfFloatPrecision",void 0),t([s(H)],S.prototype,"kernelControls",void 0),t([e(0,l(V))],S.prototype,"vertex",null),t([e(0,l(j))],S.prototype,"fragment",null);export{j as HeatmapAccumulateFragmentInput,S as HeatmapAccumulateShader,V as HeatmapAccumulateVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as i}from"tslib";import{location as e,option as o,input as l}from"../../GraphShaderModule.js";import{Vec4 as r,Vec2 as a,Float as s,step as n,min as p,ifElse as u,greaterThan as m,max as d,Vec3 as c,length as y,clamp as f}from"../../graph/glsl.js";import{BaseHittestVertexInput as h,FeatureVertexInput as w,AFeatureShader as v,FeatureFragmentInput as V}from"./AFeatureShader.js";import{noHit as b,trueHit as S,epsilon as g,thinLineWidthFactor as j,thinLineHalfWidth as x}from"./constants.js";import{isRectHittest as z,distPointSegment as W,hittestScreenRect as M}from"./hittestUtils.js";import{VisualVariableColor as R}from"./VisualVariableColor.js";import{VisualVariableOpacity as H}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as
|
|
2
|
+
import{__decorate as t,__param as i}from"tslib";import{location as e,option as o,input as l}from"../../GraphShaderModule.js";import{Vec4 as r,Vec2 as a,Float as s,step as n,min as p,ifElse as u,greaterThan as m,max as d,Vec3 as c,length as y,clamp as f}from"../../graph/glsl.js";import{BaseHittestVertexInput as h,FeatureVertexInput as w,AFeatureShader as v,FeatureFragmentInput as V}from"./AFeatureShader.js";import{noHit as b,trueHit as S,epsilon as g,thinLineWidthFactor as j,thinLineHalfWidth as x}from"./constants.js";import{isRectHittest as z,distPointSegment as W,hittestScreenRect as M}from"./hittestUtils.js";import{VisualVariableColor as R}from"./VisualVariableColor.js";import{VisualVariableOpacity as H}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as O}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as U}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as q}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as F}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableColor as P,getVisualVariableOpacity as A,hasVisualVariableSize as C,getVisualVariableSize as D}from"./vvUtils.js";class I extends w{}t([e(3,r)],I.prototype,"color",void 0),t([e(4,a)],I.prototype,"offset",void 0),t([e(5,a)],I.prototype,"normal",void 0),t([e(6,s)],I.prototype,"halfWidth",void 0),t([e(7,s)],I.prototype,"referenceHalfWidth",void 0),t([e(8,a)],I.prototype,"zoomRange",void 0);class T extends V{}function G(t){return d(new s(j).multiply(n(t,new s(x))),new s(1))}function L(t,i){const{halfWidth:e,normal:o}=t,l=G(e),r=y(o).multiply(e);return f(l.multiply(e.subtract(r)).divide(i.add(l).subtract(new s(1))),new s(0),new s(1))}function k(t,i){const{id:e,halfWidth:o,referenceHalfWidth:l}=i;if(C(t)){const i=new s(2).multiply(l),r=D(t,e,i),a=new s(g),n=u(m(o,a),o.divide(d(l,a)),new s(1));return new s(.5).multiply(n).multiply(r)}return o}function B(t,i){const{id:e,offset:o,pos:l,normal:a,zoomRange:p}=i,{displayViewMat3:u}=t.view,m=t.tile.getDisplayViewScreenMat3(t.view,t.tileInfo),y=P(t,e,i.color),f=A(t,e),h=k(t,i),w=new s(.5).multiply(t.view.antialiasing),v=d(h.add(w),new s(.45)).add(new s(.1).multiply(w)),V=G(v).multiply(v).multiply(o).multiply(t.tileInfo.scaleFactor),b=u.multiply(new c(V,new s(0))),S=m.multiply(new c(l,new s(1))).add(b),g=new s(2).multiply(n(h,new s(0))).add(t.clip(e,p)),j=new r(S.xy,g,1);return{color:y,opacity:f,halfWidth:v,normal:a,scaledOffset:V,scaledHalfWidth:h,glPosition:new r(j.xy,g,1)}}function E(t,i){const{opacity:e,color:o}=t,l=L(t,i);return e.multiply(o).multiply(l)}class J extends v{constructor(){super(...arguments),this.type="LineShader",this.computeAttributes={pos:["nextPos1","nextPos2"]}}vertex(t,i){const e=B(this,t);return{...e,...this.maybeRunHittest(t,i,e.halfWidth)}}fragment(t){const i=E(t,this.view.antialiasing);return this.getFragmentOutput(i,t)}hittest(t,i,e){const{pos0:o,pos1:l,pos2:r}=this.computeHittestTriangle(t,i,null),a=z(this.hittestRequest),{distance:d,smallSymbolDistance:c,smallSymbolSizeThreshold:y,tlbr:f}=this.hittestRequest,h=n(e,y.multiply(.5)).multiply(d.subtract(c)),w=this.hittestRequest.position,v=p(W(w,o,l),W(w,o,r)).subtract(e).add(h);return u(a,M(o,l,r,f),u(m(v,d),new s(b),new s(S)))}}t([o(R)],J.prototype,"visualVariableColor",void 0),t([o(H)],J.prototype,"visualVariableOpacity",void 0),t([o(O)],J.prototype,"visualVariableSizeMinMaxValue",void 0),t([o(U)],J.prototype,"visualVariableSizeScaleStops",void 0),t([o(q)],J.prototype,"visualVariableSizeStops",void 0),t([o(F)],J.prototype,"visualVariableSizeUnitValue",void 0),t([i(0,l(I)),i(1,l(h))],J.prototype,"vertex",null),t([i(0,l(T))],J.prototype,"fragment",null);export{T as LineFragmentInput,J as LineShader,I as LineVertexInput,L as getLineAntialiasing,E as getLineFragmentColor,G as getLineThinFactor,B as getLineVertexData};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as o,option as i,input as r}from"../../GraphShaderModule.js";import{Vec2 as s,Vec4 as l,Float as a,greaterThan as p,ifElse as n,or as u,Vec3 as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as c,FeatureVertexInput as d,AFeatureShader as h}from"./AFeatureShader.js";import{noHit as f,trueHit as v,bitsetTypeFillOutline as y,bitsetOutlineUsesColorVV as V}from"./constants.js";import{isRectHittest as S,hittestFill as b,hittestScreenRect as j}from"./hittestUtils.js";import{getLineFragmentColor as w,LineFragmentInput as x,getLineVertexData as g}from"./LineShader.js";import{getBit as z,getBitBool as M}from"./utils.js";import{VisualVariableColor as O}from"./VisualVariableColor.js";import{VisualVariableOpacity as R}from"./VisualVariableOpacity.js";import{VisualVariableSizeMinMaxValue as P}from"./VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as U}from"./VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as W}from"./VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as q}from"./VisualVariableSizeUnitValue.js";import{getVisualVariableOpacity as F,getVisualVariableColor as H}from"./vvUtils.js";class A extends d{}t([o(3,s)],A.prototype,"offset",void 0),t([o(4,l)],A.prototype,"color",void 0),t([o(5,s)],A.prototype,"normal",void 0),t([o(6,a)],A.prototype,"halfWidth",void 0),t([o(7,a)],A.prototype,"referenceHalfWidth",void 0),t([o(8,s)],A.prototype,"zoomRange",void 0);class C extends x{}function D(t,e,o){const{id:i,bitset:r}=e,s=z(r,y),u=p(s,new a(.5)),c=g(t,e),d=n(u,c.halfWidth,new a(0)),h=F(t,i),f=H(t,i,e.color),v=n(u,n(M(r,V),f,e.color),f.multiply(h)),S=t.tile.getDisplayViewScreenMat3(t.view,t.tileInfo).multiply(new m(e.pos.xy,1)),b=t.clip(e.id),j=new l(S.xy,b,1),w=n(u,c.glPosition,j),x=o&&t.maybeRunHittest(e,o,u);return{isOutline:s,color:v,opacity:new a(1),halfWidth:d,normal:c.normal,glPosition:w,...x}}class G extends h{constructor(){super(...arguments),this.computeAttributes={pos:["nextPos1","nextPos2"]}}}t([i(O)],G.prototype,"visualVariableColor",void 0),t([i(R)],G.prototype,"visualVariableOpacity",void 0),t([i(P)],G.prototype,"visualVariableSizeMinMaxValue",void 0),t([i(U)],G.prototype,"visualVariableSizeScaleStops",void 0),t([i(W)],G.prototype,"visualVariableSizeStops",void 0),t([i(q)],G.prototype,"visualVariableSizeUnitValue",void 0);class I extends G{constructor(){super(...arguments),this.type="OutlineFillShader"}vertex(t,e){return D(this,t,e)}fragment(t){const{color:e,isOutline:o}=t,i=p(o,new a(.5)),r=w(t,this.view.antialiasing),s=n(i,r,e),l=n(i,new a(1/255),new a(0));return this.getFragmentOutput(s,t,l)}hittest(t,e,o){const{pos0:i,pos1:r,pos2:s}=this.computeHittestTriangle(t,e,null),l=S(this.hittestRequest);return n(l,()=>{const{tlbr:t}=this.hittestRequest;return j(i,r,s,t)},()=>{const i=b(this,t,e);return n(u(o,p(i,this.hittestRequest.distance)),new a(f),new a(v))})}}t([e(0,r(A)),e(1,r(c))],I.prototype,"vertex",null),t([e(0,r(C))],I.prototype,"fragment",null);export{G as AOutlineFillShader,C as OutlineFillFragmentInput,I as OutlineFillShader,A as OutlineFillVertexInput,D as getOutlineFillVertexData};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as r,uniform as o,texture as i,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as n,Sampler2D as a,Vec2 as p,Vec3 as u,mod as d,mix as c,texture2D as m,Mat3 as f,negate as y}from"../../graph/glsl.js";import{BaseHittestVertexInput as x,FeatureFragmentInput as v}from"./AFeatureShader.js";import{FillVertexInput as b,FillShader as h}from"./FillShader.js";import{LocalTileOffset as g}from"./LocalTileOffset.js";import{MosaicInfo as w}from"./MosaicInfo.js";class T extends b{}t([r(5,s)],T.prototype,"tlbr",void 0),t([r(6,n)],T.prototype,"inverseRasterizationScale",void 0);class j extends v{}function O(t){const e=new n(1),r=new n(0);return new f(e.divide(t.x),r.divide(t.y),0,y(r.divide(t.x)),e.divide(t.y),0,0,0,1)}function S(t,e){const r=e.tlbr.xy,o=e.tlbr.zw,i=o.x.subtract(r.x),l=r.y.subtract(o.y),s=new p(i,l).multiply(e.inverseRasterizationScale),n=s.multiply(t.tile.getRequiredZoomFactor(t.
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as r,uniform as o,texture as i,input as l}from"../../GraphShaderModule.js";import{Vec4 as s,Float as n,Sampler2D as a,Vec2 as p,Vec3 as u,mod as d,mix as c,texture2D as m,Mat3 as f,negate as y}from"../../graph/glsl.js";import{BaseHittestVertexInput as x,FeatureFragmentInput as v}from"./AFeatureShader.js";import{FillVertexInput as b,FillShader as h}from"./FillShader.js";import{LocalTileOffset as g}from"./LocalTileOffset.js";import{MosaicInfo as w}from"./MosaicInfo.js";class T extends b{}t([r(5,s)],T.prototype,"tlbr",void 0),t([r(6,n)],T.prototype,"inverseRasterizationScale",void 0);class j extends v{}function O(t){const e=new n(1),r=new n(0);return new f(e.divide(t.x),r.divide(t.y),0,y(r.divide(t.x)),e.divide(t.y),0,0,0,1)}function S(t,e){const r=e.tlbr.xy,o=e.tlbr.zw,i=o.x.subtract(r.x),l=r.y.subtract(o.y),s=new p(i,l).multiply(e.inverseRasterizationScale),n=s.multiply(t.tile.getRequiredZoomFactor(t.tileInfo)),a=O(n),d=t.localTileOffset.getPatternOffsetAtTileOrigin(s).divide(n),c=new u(e.pos,1);return{tileTextureCoord:a.multiply(c).xy.subtract(d),tlbr:e.tlbr.divide(t.mosaicInfo.size.xyxy)}}function z(t,e){const r=d(t.tileTextureCoord,new n(1)),o=c(t.tlbr.xy,t.tlbr.zw,r),i=m(e.mosaicTexture,o);return t.color.multiply(i)}class F extends h{constructor(){super(...arguments),this.type="PatternFillShader"}vertex(t,e){return{...super.vertex(t,e),...S(this,t)}}fragment(t){const e=z(t,this);return this.getFragmentOutput(e,t,new n(0))}}t([o(w)],F.prototype,"mosaicInfo",void 0),t([i(a)],F.prototype,"mosaicTexture",void 0),t([o(g)],F.prototype,"localTileOffset",void 0),t([e(0,l(T)),e(1,l(x))],F.prototype,"vertex",null),t([e(0,l(j))],F.prototype,"fragment",null);export{j as PatternFillFragmentInput,F as PatternFillShader,T as PatternFillVertexInput,z as getPatternFillFragmentColor,S as getPatternFillVertexData};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{pt2px as i}from"../../../../../../../core/screenUtils.js";import{dashSdfRasterizationScale as o,dashSdfDistanceNormalization as s}from"../../../../../../../symbols/cim/constants.js";import{location as a,uniform as r,texture as l,input as n}from"../../GraphShaderModule.js";import{Float as p,Vec2 as c,Vec4 as m,Sampler2D as u,max as d,fract as y,mix as h,texture2D as f,cond as w,equal as g,sqrt as x,pow as b,clamp as v,ifElse as D,greaterThan as S,dot as T}from"../../graph/glsl.js";import{BaseHittestVertexInput as j}from"./AFeatureShader.js";import{bitsetLineScaleDash as A,bitsetLineIsSdf as z,bitsetGenericConsiderAlphaOnly as F}from"./constants.js";import{LineVertexInput as L,LineShader as _,getLineVertexData as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{pt2px as i}from"../../../../../../../core/screenUtils.js";import{dashSdfRasterizationScale as o,dashSdfDistanceNormalization as s}from"../../../../../../../symbols/cim/constants.js";import{location as a,uniform as r,texture as l,input as n}from"../../GraphShaderModule.js";import{Float as p,Vec2 as c,Vec4 as m,Sampler2D as u,max as d,fract as y,mix as h,texture2D as f,cond as w,equal as g,sqrt as x,pow as b,clamp as v,ifElse as D,greaterThan as S,dot as T}from"../../graph/glsl.js";import{BaseHittestVertexInput as j}from"./AFeatureShader.js";import{bitsetLineScaleDash as A,bitsetLineIsSdf as z,bitsetGenericConsiderAlphaOnly as F}from"./constants.js";import{LineVertexInput as L,LineShader as _,getLineVertexData as I,getLineAntialiasing as O,LineFragmentInput as P}from"./LineShader.js";import{MosaicInfo as W}from"./MosaicInfo.js";import{getBit as C,rgba2float as R}from"./utils.js";class H extends L{}t([a(9,p)],H.prototype,"accumulatedDistance",void 0),t([a(10,c)],H.prototype,"segmentDirection",void 0),t([a(11,p)],H.prototype,"offsetAlongLine",void 0),t([a(12,p)],H.prototype,"capType",void 0),t([a(13,m)],H.prototype,"tlbr",void 0);class M extends P{}class G extends _{constructor(){super(...arguments),this.type="TexturedLineShader"}_getDistanceRatio(t,e){const o=C(t.bitset,A);return o.multiply(d(e,new p(.25)).multiply(new p(2))).add(new p(1).subtract(o).multiply(i(1)))}_getSDFAlpha(t){const{halfWidth:e,normal:i,tlbr:a,patternSize:r,accumulatedDistance:l,offsetAlongLine:n,dashToPx:u,capType:D}=t,S=r.x.divide(o).multiply(u),T=y(l.add(n).divide(S)),j=h(a.xy,a.zw,new c(T,.5)),A=R(f(this.mosaicTexture,j)).multiply(2).subtract(1).multiply(s).multiply(u),z=i.y.multiply(e),F=w([g(D,new p(1)),A.subtract(e)],[g(D,new p(2)),x(b(d(A,new p(0)),new p(2)).add(z.multiply(z))).subtract(e)],[!0,A]),L=v(new p(.25).subtract(F),new p(0),new p(1));return new m(L)}_getPatternColor(t){const{halfWidth:e,normal:i,color:o,accumulatedDistance:s,patternSize:a,sampleAlphaOnly:r,tlbr:l}=t,n=a.y.multiply(new p(2).multiply(e).divide(a.x)),u=y(s.divide(n)),d=new p(.5).multiply(i.y).add(new p(.5)),w=h(l.xy,l.zw,new c(d,u));let g=f(this.mosaicTexture,w);return null!=this.visualVariableColor&&(g=D(S(r,new p(.5)),new m(o.a),o)),g}vertex(t,e){const{segmentDirection:i,tlbr:o,bitset:s}=t,a=I(this,t),r=t.accumulatedDistance.divide(this.tile.getDisplayZoomFactor(this.tileInfo)).add(T(i,a.scaledOffset)),l=new c(o.z.subtract(o.x),o.w.subtract(o.y)),n=o.divide(this.mosaicInfo.size.xyxy),m=C(s,z),u=C(s,F),d=D(S(m,new p(.5)),this._getDistanceRatio(t,a.scaledHalfWidth),new p(1));return{...a,tlbr:n,patternSize:l,accumulatedDistance:r,isSDF:m,sampleAlphaOnly:u,dashToPx:d,offsetAlongLine:t.offsetAlongLine,capType:t.capType,...this.maybeRunHittest(t,e,a.halfWidth)}}fragment(t){const{color:e,opacity:i,isSDF:o}=t,s=O(t,this.view.antialiasing),a=D(S(o,new p(.5)),this._getSDFAlpha(t),this._getPatternColor(t)),r=e.multiply(i).multiply(s).multiply(a);return this.getFragmentOutput(r,t)}}t([r(W)],G.prototype,"mosaicInfo",void 0),t([l(u)],G.prototype,"mosaicTexture",void 0),t([e(0,n(H)),e(1,n(j))],G.prototype,"vertex",null);export{M as TexturedLineFragmentInput,G as TexturedLineShader,H as TexturedLineVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{normalizedTileWorldSize as i,getNormalizedTileOrigin as
|
|
2
|
+
import{__decorate as e}from"tslib";import{normalizedTileWorldSize as i,getNormalizedTileOrigin as t,toFloat32 as r}from"../../../normalizedTileUtils.js";import{uniform as o,createUniformBlockBinding as l,UniformGroup as n}from"../../GraphShaderModule.js";import{exp2 as a,Mat3 as d,Vec2 as s,abs as m,Float as p}from"../../graph/glsl.js";class u extends n{constructor(){super(...arguments),this.bindingPoint=2}getDisplayZoomFactor(e){return a(this.level.subtract(e.currentZoom))}getRequiredZoomFactor(e){return a(this.level.subtract(e.requiredLevel))}getZoomFactor(e,i){return a(i.currentZoom.subtract(this.level)).divide(e.pixelRatio)}getTileMat3(e,i){const t=this._getNormalizedOriginScreenDelta(i),r=this.localToMap.divide(e.resolution);return new d(r.x,0,0,0,r.y,0,t.x,t.y,1)}getViewScreenMat3(e,i){return e.viewMat3.multiply(this.getTileMat3(e,i))}getDisplayViewScreenMat3(e,i){return e.displayViewMat3.multiply(this.getTileMat3(e,i))}_getNormalizedOriginScreenDelta(e){const t=new s(this.normalizedWorldWrapId,0).subtract(e.normalizedTileWorldWrapId).multiply(i),r=this.normalizedOriginOffset.multiply(m(e.normalizedTileUnitsToPixels));return this.normalizedOrigin.add(t).subtract(e.normalizedTileOrigin).multiply(e.normalizedTileUnitsToPixels).add(e.normalizedTileOriginOffsetPixels).add(r)}}e([o(p)],u.prototype,"level",void 0),e([o(s)],u.prototype,"normalizedOrigin",void 0),e([o(s)],u.prototype,"normalizedOriginOffset",void 0),e([o(p)],u.prototype,"normalizedWorldWrapId",void 0),e([o(s)],u.prototype,"localToMap",void 0);const g=l("tile",u).binding;function c(e,i){const o=t(e,i),l=r(o);return{level:i.key.level,normalizedOrigin:l,normalizedOriginOffset:[o[0]-l[0],o[1]-l[1]],normalizedWorldWrapId:i.key.world,localToMap:[i.width/i.rangeX*i.resolution,i.height/i.rangeY*i.resolution]}}export{u as Tile,c as getTileUniforms,g as tileUniformBlockBinding};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as i,input as r,FragmentInput as p,texture as n,VertexInput as s,UniformGroup as l,GraphShaderModule as d,FragmentOutput as
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as i,input as r,FragmentInput as p,texture as n,VertexInput as s,UniformGroup as l,GraphShaderModule as d,FragmentOutput as y}from"../../GraphShaderModule.js";import{Vec2 as c,Float as a,Vec4 as f,Sampler2D as v,Vec3 as g,texture2D as u}from"../../graph/glsl.js";import{Tile as h}from"./Tile.js";import{TileInfo as m}from"./TileInfo.js";import{ViewInfo as x}from"./ViewInfo.js";class w extends s{}t([e(0,c)],w.prototype,"position",void 0);class I extends p{}class j extends l{}t([i(c)],j.prototype,"coordRange",void 0),t([i(a)],j.prototype,"depth",void 0),t([i(f)],j.prototype,"color",void 0);class S extends l{}t([i(a)],S.prototype,"depth",void 0),t([i(c)],S.prototype,"coordRatio",void 0),t([i(c)],S.prototype,"delta",void 0),t([i(c)],S.prototype,"dimensions",void 0);class b extends d{constructor(){super(...arguments),this.type="TileDebugInfoOutlineShader"}vertex(t){const o=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new g(t.position.multiply(this.config.coordRange),1));return{glPosition:new f(o.xy,this.config.depth,1)}}fragment(t){const o=new y;return o.fragColor=this.config.color,o}}t([i(x)],b.prototype,"view",void 0),t([i(m)],b.prototype,"tileInfo",void 0),t([i(h)],b.prototype,"tile",void 0),t([i(j)],b.prototype,"config",void 0),t([o(0,r(w))],b.prototype,"vertex",null),t([o(0,r(p))],b.prototype,"fragment",null);class D extends d{constructor(){super(...arguments),this.type="TileDebugInfoShader"}vertex(t){const o=this.config.coordRatio.multiply(this.config.delta.add(t.position.multiply(this.config.dimensions))),e=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new g(o,1));return{glPosition:new f(e.xy,this.config.depth,1),uv:t.position}}fragment(t){const o=new y,e=u(this.texture,t.uv);return o.fragColor=new f(e.rgb.multiply(e.a),e.a),o}}t([i(x)],D.prototype,"view",void 0),t([i(m)],D.prototype,"tileInfo",void 0),t([i(h)],D.prototype,"tile",void 0),t([i(S)],D.prototype,"config",void 0),t([n(v)],D.prototype,"texture",void 0),t([o(0,r(w))],D.prototype,"vertex",null),t([o(0,r(I))],D.prototype,"fragment",null);export{b as TileDebugInfoOutlineShader,D as TileDebugInfoShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as
|
|
2
|
+
import{__decorate as i}from"tslib";import{toFloat32 as e}from"../../../normalizedTileUtils.js";import{uniform as o,createUniformBlockBinding as r,UniformGroup as l}from"../../GraphShaderModule.js";import{Float as t,Vec2 as n}from"../../graph/glsl.js";class s extends l{constructor(){super(...arguments),this.bindingPoint=1}}i([o(t)],s.prototype,"currentZoom",void 0),i([o(t)],s.prototype,"requiredLevel",void 0),i([o(t)],s.prototype,"scaleFactor",void 0),i([o(n)],s.prototype,"normalizedTileOrigin",void 0),i([o(n)],s.prototype,"normalizedTileWorldWrapId",void 0),i([o(n)],s.prototype,"normalizedTileOriginOffsetPixels",void 0),i([o(t)],s.prototype,"normalizedTileUnitsToPixels",void 0);const d=r("tileInfo",s).binding;function p({displayLevel:i,normalizedTileView:o,referenceScale:r,requiredLevel:l,state:t}){const n=e(o.origin),s=[(n[0]-o.origin[0])*o.unitsToPixels,(n[1]-o.origin[1])*o.unitsToPixels];return{currentZoom:i,requiredLevel:l,scaleFactor:null!=r?r/t.scale:1,normalizedTileOrigin:n,normalizedTileWorldWrapId:o.worldWrapId,normalizedTileOriginOffsetPixels:s,normalizedTileUnitsToPixels:o.unitsToPixels}}export{s as TileInfo,p as getTileInfoUniforms,d as tileInfoUniformBlockBinding};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as r,define as i,option as s,input as p,FragmentInput as
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{location as e,uniform as r,define as i,option as s,input as p,FragmentInput as l,VertexInput as n,UniformGroup as a,GraphShaderModule as d,FragmentOutput as f}from"../../GraphShaderModule.js";import{Vec2 as m,Float as c,Vec4 as y,Vec3 as h}from"../../graph/glsl.js";import{Tile as g}from"./Tile.js";import{TileInfo as v}from"./TileInfo.js";import{ViewInfo as u}from"./ViewInfo.js";import{RasterVFSampling as V}from"./raster/RasterVFTransform.js";class w extends n{}t([e(0,m)],w.prototype,"position",void 0);class x extends a{}t([r(m)],x.prototype,"coordRange",void 0),t([r(c)],x.prototype,"depth",void 0),t([r(y)],x.prototype,"color",void 0);class j extends d{constructor(){super(...arguments),this.type="TileStencilShader",this.isRasterVF=!1}vertex(t){let o=t.position.multiply(this.config.coordRange);if(this.isRasterVF){const{samplingOffset:t,samplingScale:e}=this.rasterVF;o=o.multiply(e).add(t)}const e=this.tile.getDisplayViewScreenMat3(this.view,this.tileInfo).multiply(new h(o,1));return{glPosition:new y(e.xy,this.config.depth,1)}}fragment(t){const o=new f;return o.fragColor=this.config.color,o}}t([i],j.prototype,"isRasterVF",void 0),t([r(u)],j.prototype,"view",void 0),t([r(v)],j.prototype,"tileInfo",void 0),t([r(g)],j.prototype,"tile",void 0),t([r(x)],j.prototype,"config",void 0),t([s(V)],j.prototype,"rasterVF",void 0),t([o(0,p(w))],j.prototype,"vertex",null),t([o(0,p(l))],j.prototype,"fragment",null);export{j as TileStencilShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{getMetersPerUnitForSR as o}from"../../../../../../../core/units.js";import{uniform as i,UniformGroup as
|
|
2
|
+
import{__decorate as t}from"tslib";import{getMetersPerUnitForSR as o}from"../../../../../../../core/units.js";import{uniform as i,createUniformBlockBinding as e,UniformGroup as r}from"../../GraphShaderModule.js";import{Mat3 as a,Float as p}from"../../graph/glsl.js";class s extends r{constructor(){super(...arguments),this.bindingPoint=0}}t([i(a)],s.prototype,"displayViewMat3",void 0),t([i(a)],s.prototype,"displayMat3",void 0),t([i(a)],s.prototype,"viewMat3",void 0),t([i(p)],s.prototype,"currentScale",void 0),t([i(p)],s.prototype,"metersPerSRUnit",void 0),t([i(p)],s.prototype,"resolution",void 0),t([i(p)],s.prototype,"rotation",void 0),t([i(p)],s.prototype,"pixelRatio",void 0),t([i(p)],s.prototype,"antialiasing",void 0);const n=e("view",s).binding;function l({pixelRatio:t,state:i}){const e=1/t;return{displayMat3:i.displayMat3,displayViewMat3:i.displayViewMat3,viewMat3:i.viewMat3,currentScale:i.scale,metersPerSRUnit:o(i.spatialReference),resolution:i.resolution,rotation:i.rotation,pixelRatio:t,antialiasing:e}}export{s as ViewInfo,l as getViewUniforms,n as viewInfoUniformBlockBinding};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{and as t,greaterThanEqual as n,Float as e,Vec3 as y,ifElse as r,or as u,greaterThan as i,lessThan as s,cond as x,min as l,not as c,Vec2 as a,max as w,equal as o,clamp as d,length as b,distance as m,Mat3 as p,abs as f,step as g,lessThanEqual as I,dot as h,normalize as v}from"../../graph/glsl.js";import{noHit as
|
|
2
|
+
import{and as t,greaterThanEqual as n,Float as e,Vec3 as y,ifElse as r,or as u,greaterThan as i,lessThan as s,cond as x,min as l,not as c,Vec2 as a,max as w,equal as o,clamp as d,length as b,distance as m,Mat3 as p,abs as f,step as g,lessThanEqual as I,dot as h,normalize as v}from"../../graph/glsl.js";import{noHit as R,trueHit as S,epsilonHitTest as V,candidateHit as j}from"./constants.js";import{cross2 as z}from"./utils.js";function C(t,n){return h(t,v(n))}function T(t,n,y){const r=y.subtract(n),u=C(t.subtract(n),r),i=d(u.divide(b(r)),new e(0),new e(1));return m(t,n.add(i.multiply(y.subtract(n))))}function P(t){const n=f(t);return g(n.x.add(n.y).add(n.z),new e(1.05))}function q(t,n,r,u){const i=new p(r.x.multiply(u.y).subtract(u.x.multiply(r.y)),u.x.multiply(n.y).subtract(n.x.multiply(u.y)),n.x.multiply(r.y).subtract(r.x.multiply(n.y)),r.y.subtract(u.y),u.y.subtract(n.y),n.y.subtract(r.y),u.x.subtract(r.x),n.x.subtract(u.x),r.x.subtract(n.x)),s=n.x.multiply(r.y.subtract(u.y)),x=r.x.multiply(u.y.subtract(n.y)),l=u.x.multiply(n.y.subtract(r.y)),c=s.add(x).add(l);return new e(1).divide(c).multiply(i.multiply(new y(1,t)))}function M(t,n,y,r){return o(P(q(t,n,y,r)),new e(1))}function k(n,y,r,u){const a=r.subtract(y),w=u.subtract(y),o=z(a,w),d=t(s(o,new e(V)),i(o,new e(-V)));return x([t(c(d),M(n.xy,y,r,u)),new e(-1)],[!0,()=>{const t=T(n,y,r),e=T(n,r,u),i=T(n,u,y);return l(l(t,e),i)}])}function A(t,n,e){const r=t.tile.getViewScreenMat3(t.view,t.tileInfo),u=r.multiply(new y(n.pos,1)),i=r.multiply(new y(e.nextPos1,1)),s=r.multiply(new y(e.nextPos2,1));return k(t.hittestRequest.position,u.xy,i.xy,s.xy)}function B(t,n,e){return m(t,e).subtract(n)}function D(y,u,i,s){const x=y.x,l=y.y,a=u.x,w=u.y,d=i.x,b=i.y,m=s.x,p=s.y,f=m.subtract(d),g=x.subtract(d),h=a.subtract(x),v=p.subtract(b),R=l.subtract(b),S=w.subtract(l),V=v.multiply(h).subtract(f.multiply(S)),j=f.multiply(R).subtract(v.multiply(g)).divide(V),z=h.multiply(R).subtract(S.multiply(g)).divide(V),C=t(c(o(V,new e(0))),t(t(n(j,new e(0)),I(j,new e(1))),t(n(z,new e(0)),I(z,new e(1)))));return r(C,new e(1),new e(0))}function E(e,y,r,u,i){return t(t(n(e.x,y),n(e.y,r)),t(s(e.x,u),I(e.y,i)))}function F(n,y,r,s){const x=s.xy,c=s.zw,d=new a(c.x,x.y),b=new a(x.x,c.y),m=l(x.x,c.x),p=l(x.y,c.y),f=w(x.x,c.x),g=w(x.y,c.y),I=q(new a(m,p),n,y,r),h=q(new a(f,g),n,y,r),v=q(new a(m,g),n,y,r),R=q(new a(f,p),n,y,r),S=t(o(P(I),new e(1)),t(o(P(h),new e(1)),t(o(P(v),new e(1)),o(P(R),new e(1))))),V=D(x,d,n.xy,y.xy).add(D(d,c,n.xy,y.xy)).add(D(b,c,n.xy,y.xy)).add(D(b,x,n.xy,y.xy)),j=D(x,d,n.xy,r.xy).add(D(d,c,n.xy,r.xy)).add(D(b,c,n.xy,r.xy)).add(D(b,x,n.xy,r.xy)),z=D(x,d,y.xy,r.xy).add(D(d,c,y.xy,r.xy)).add(D(b,c,y.xy,r.xy)).add(D(b,x,y.xy,r.xy)),C=E(n.xy,m,p,f,g),T=E(y.xy,m,p,f,g),M=E(r.xy,m,p,f,g),k=t(C,t(T,M));return{hasIntersectingSegments:u(i(V,new e(0)),u(i(j,new e(0)),i(z,new e(0)))),allTriangleVerticesInside:k,triangleContainsRect:S}}function G(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:x,triangleContainsRect:l}=F(t,n,y,i);return r(s,new e(j),r(u(x,l),new e(S),new e(R)))}function H(t,n,y,i){const{hasIntersectingSegments:s,allTriangleVerticesInside:x,triangleContainsRect:l}=F(t,n,y,i);return r(u(s,u(x,l)),new e(S),new e(R))}function J(y){return t(n(y.tlbr.x,new e(0)),n(y.tlbr.y,new e(0)),n(y.tlbr.z,new e(0)),n(y.tlbr.w,new e(0)))}export{T as distPointSegment,k as distPointTriangle,A as hittestFill,B as hittestMarker,G as hittestMarkerScreenRect,H as hittestScreenRect,P as inTriangle,F as intersectsScreenRect,J as isRectHittest,E as pointInRect,C as projectScalar,D as segmentIntersects,q as xyToBarycentric};
|