@arcgis/core 5.1.0-next.78 → 5.1.0-next.79
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/analysis/ShadowCast/DiscreteOptions.d.ts +33 -6
- package/analysis/ShadowCast/DiscreteOptions.js +1 -1
- package/analysis/ShadowCast/MinDurationOptions.d.ts +6 -4
- package/analysis/ShadowCast/TotalDurationOptions.d.ts +33 -6
- package/analysis/ShadowCast/TotalDurationOptions.js +1 -1
- package/analysis/ShadowCast/colorStopsUtils.js +2 -0
- package/analysis/ShadowCastAnalysis.d.ts +24 -1
- package/analysis/ShadowCastAnalysis.js +1 -1
- package/analysis/Viewshed.d.ts +27 -0
- package/analysis/Viewshed.js +1 -1
- package/analysis/ViewshedAnalysis.js +1 -1
- package/arcade/FunctionWrapper.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/compilerUtils.js +1 -1
- package/arcade/debug.d.ts +139 -0
- package/arcade/debug.js +2 -0
- package/arcade/featureSetCollection.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/actions/OrderBy.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade.d.ts +46 -2
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{1c7183551f5269bdcf13.js → 01bd1b86ba899c6aa4c0.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f8ccf96069ac3a40c3d.js → 01ee18782a50279f907e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f81c6f6ccc201f584970.js → 022067e807905cabeaa1.js} +1 -1
- package/assets/esri/core/workers/chunks/{11ea4be441a26134ce1f.js → 052cdc7aaa803b5873f0.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7bb7072dbee978f3ca3.js → 056fd7847caaff2c9514.js} +1 -1
- package/assets/esri/core/workers/chunks/{8acee3fba488f202f82f.js → 05c3146d87d917606193.js} +1 -1
- package/assets/esri/core/workers/chunks/{a8ca5d8740cc7e39197b.js → 0aebcbf41cb193e76809.js} +5 -5
- package/assets/esri/core/workers/chunks/{54023458195549f66215.js → 0b77c124b743067e4155.js} +1 -1
- package/assets/esri/core/workers/chunks/10408183681fd6c7b4ed.js +2 -0
- package/assets/esri/core/workers/chunks/{7595ceba529ed01c7590.js → 2c87c3112a43db8624f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{13e60f19f436b8d683ae.js → 3c9482764c9e4f8bcbb0.js} +1 -1
- package/assets/esri/core/workers/chunks/{322c54081b25f1c53661.js → 3e37019eee1c49d2bf64.js} +1 -1
- package/assets/esri/core/workers/chunks/45c83eb7c2a06166e3b0.js +1 -0
- package/assets/esri/core/workers/chunks/48acd146bf0241d87647.js +1 -0
- package/assets/esri/core/workers/chunks/5818f1f526577068d6ca.js +2 -0
- package/assets/esri/core/workers/chunks/{34fe97bcacc0dfc5bce6.js → 5ccc325d83cec4f5ccdb.js} +1 -1
- package/assets/esri/core/workers/chunks/{30e710ec4d22c43d4e7e.js → 5cffc7b49966201eccdb.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a87e9bbd85ba29b1514.js → 5da2051f548c2942e01a.js} +1 -1
- package/assets/esri/core/workers/chunks/5ec66e39e53c11e75179.js +2 -0
- package/assets/esri/core/workers/chunks/{0b1454a77a6a682541dc.js.LICENSE.txt → 5ec66e39e53c11e75179.js.LICENSE.txt} +9 -1
- package/assets/esri/core/workers/chunks/5f6fd20a7f4e80eafa25.js +1 -0
- package/assets/esri/core/workers/chunks/{abc06d10c7ac8ba5b0e4.js → 67ec1694d6e18b7c234c.js} +1 -1
- package/assets/esri/core/workers/chunks/{32e22d6eee9fed1f70b0.js → 6d696beddcc5fbed5875.js} +1 -1
- package/assets/esri/core/workers/chunks/{f590b60fca607d66001a.js → 716a4d7e8b908b81870b.js} +1 -1
- package/assets/esri/core/workers/chunks/71fe127734f33d020a44.js +1 -0
- package/assets/esri/core/workers/chunks/7cdd0492b2191df95102.js +2 -0
- package/assets/esri/core/workers/chunks/7cea68257d24ffd205bb.js +1 -0
- package/assets/esri/core/workers/chunks/7e530e635325dba07864.js +1 -0
- package/assets/esri/core/workers/chunks/8f6f5dad52747d252aac.js +596 -0
- package/assets/esri/core/workers/chunks/{d950d5c2844206502ff0.js → 992cd87ba0ab6346f692.js} +1 -1
- package/assets/esri/core/workers/chunks/{73c87eb9bd8f0f848481.js → 9c11e1fe785e1385fdb1.js} +1 -1
- package/assets/esri/core/workers/chunks/{5ed8d8b5336c81fbcda3.js → 9d216e30d04ea21fc8a2.js} +1 -1
- package/assets/esri/core/workers/chunks/a54aa93b6012a2597f82.js +1 -0
- package/assets/esri/core/workers/chunks/{cf14b3a44705dacefac4.js → a9b5ce00323cd5574bf7.js} +1 -1
- package/assets/esri/core/workers/chunks/ae6b3dfe5f757df539d6.js +1 -0
- package/assets/esri/core/workers/chunks/b14c4c3f295970f731ab.js +1 -0
- package/assets/esri/core/workers/chunks/{c70df6ed190f9ebcf6aa.js → bf2c202dec5ab7bc770b.js} +1 -1
- package/assets/esri/core/workers/chunks/c1d4110aa494a1dba3c4.js +1 -0
- package/assets/esri/core/workers/chunks/{85d8c7cc7f8decbe975d.js → c442916805975744dd92.js} +1 -1
- package/assets/esri/core/workers/chunks/dacc2e5fa462495ed1cc.js +2 -0
- package/assets/esri/core/workers/chunks/f227b34cce6843df0fb6.js +1 -0
- package/assets/esri/core/workers/chunks/{dda2cb5c073d1e65f14f.js → f43d628d47eec7d530c7.js} +1 -1
- package/assets/esri/core/workers/chunks/f7531aa69a87814c60d1.js +1 -0
- package/assets/esri/core/workers/chunks/{4ccb56333de0247dcb6f.js → fb100935fd8948d779f5.js} +1 -1
- package/assets/esri/core/workers/chunks/{5ee4b630ad39c21d11db.js → fb9e3e7cd532ac4353f1.js} +12 -12
- package/assets/esri/core/workers/chunks/fc6ca7ffb9f1b875059c.js +1 -0
- package/assets/esri/core/workers/chunks/{3d9fcbe95dd22dbe730e.js → ffc4f3406ce383b9bd88.js} +1 -1
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +6 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
- package/chunks/ImageMaterial.glsl.js +7 -5
- package/chunks/SlicePlaneMaterial.glsl.js +21 -13
- package/chunks/arcade.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/MapUtils.js +1 -1
- package/core/arrayUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/IntegratedMeshLayer.d.ts +18 -14
- package/layers/SceneLayer.d.ts +35 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/scene/ModelFileInfo.d.ts +29 -0
- package/layers/scene/ModelFileInfo.js +2 -0
- package/layers/scene/ModelInfo.d.ts +38 -0
- package/layers/scene/ModelInfo.js +2 -0
- package/layers/scene/modelQuerySupport.js +2 -0
- package/layers/scene/types.d.ts +14 -0
- package/layers/support/infoFor3D.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/types.d.ts +13 -1
- package/package.json +3 -3
- package/popup/Features.d.ts +1 -6
- package/popup/Features.js +1 -1
- package/popup/actions.js +1 -1
- package/renderers/visualVariables/support/ColorStop.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.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/vectorTiles/Placement.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
- package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
- package/views/2d/engine/webgl/GlyphSource.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
- package/views/2d/engine/webgl/RenderingDevice.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.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/TechniqueProgramCache.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimationUniformInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bitmap/BitmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/blend/BlendTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/bloom/BloomTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/blur/BlurTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/clip/ClipTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.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/grid/GridTechnique.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/magnifier/MagnifierTechnique.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/opacity/OpacityTechnique.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/RasterHighlightTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/VectorFieldTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/AspectTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BandArithmeticTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/BaseRasterProcessorTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ColormapToRGBTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CompositeBandTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ComputeChangeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ContrastBrightnessTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ConvolutionTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/CurvatureTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ExtractBandTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/FocalStatisticsTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/GrayscaleTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/HillshadeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/LocalTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/MaskTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/NDVITechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/RemapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ReprojectTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/ShadedReliefTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SlopeTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/SpectralConversionTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/StretchTechnique.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/BlitShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/EntityStorage.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/HeatmapResolveShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MosaicInfo.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsDiffShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsSumOfSquaredDiffShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TileDebugInfoShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/VideoScreenShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowImageryShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/flow/FlowUtils.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/BaseRasterHighlightShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerLUTShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerShadedReliefShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterXYBandHighlightShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/lut.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/AspectShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/BaseRasterProcessorShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ColormapToRGBShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ConvolutionShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CurvatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/FocalStatisticsShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/HillshadeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MultiRasterMixin.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ShadedReliefShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/SlopeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/projection.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/stretch.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/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/VTLShaderText.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vvUtils.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/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/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/typed/TypedShaderProgram.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/StencilGeometry.js +2 -0
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedComputedData.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/focusAreaUtils.js +2 -0
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/focusAreaMaskUtils.js +2 -0
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/Compositor.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/Normals.js +1 -1
- package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +10 -10
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
- package/views/View2D.js +1 -1
- package/views/draw/support/GraphicMover.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/editingSessionUtils.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/GroupInput.d.ts +2 -1
- package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.d.ts +54 -0
- package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +2 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/types.d.ts +4 -3
- package/widgets/BatchAttributeForm/templates/AttachmentElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/RelationshipElementTemplate.js +2 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +21 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion/support/Format.js +1 -1
- package/widgets/CoordinateConversion/support/coordinateConversionUtils.js +1 -1
- package/widgets/CoordinateConversion.d.ts +21 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/support/ContingentValuesManager.js +1 -1
- package/widgets/types.d.ts +1 -1
- package/assets/esri/core/workers/chunks/07eff82916681fcff069.js +0 -1
- package/assets/esri/core/workers/chunks/0b1454a77a6a682541dc.js +0 -2
- package/assets/esri/core/workers/chunks/1c7fd0a229a8112b0539.js +0 -596
- package/assets/esri/core/workers/chunks/3697e51e1e4cf442f39a.js +0 -1
- package/assets/esri/core/workers/chunks/3cce9dad8ee0e4971d50.js +0 -1
- package/assets/esri/core/workers/chunks/3df8493b91aa3bce824d.js +0 -1
- package/assets/esri/core/workers/chunks/68a313155ddc29bd024d.js +0 -1
- package/assets/esri/core/workers/chunks/751609831b283903ba48.js +0 -1
- package/assets/esri/core/workers/chunks/7bacdd65a6cc4d284e0a.js +0 -2
- package/assets/esri/core/workers/chunks/7e97684e851274efd11f.js +0 -1
- package/assets/esri/core/workers/chunks/85aac8539996372f1ee8.js +0 -1
- package/assets/esri/core/workers/chunks/99d298d0039c536fcf3e.js +0 -1
- package/assets/esri/core/workers/chunks/9aaf78b831f8739bc127.js +0 -1
- package/assets/esri/core/workers/chunks/9b9916864b6575c42c8a.js +0 -1
- package/assets/esri/core/workers/chunks/bf7e019437a3b6036300.js +0 -2
- package/assets/esri/core/workers/chunks/d304343a781acfa3ff96.js +0 -1
- package/assets/esri/core/workers/chunks/dbb9bb28696ff9536678.js +0 -2
- package/assets/esri/core/workers/chunks/f09a41ad239d467d9438.js +0 -2
- package/assets/esri/core/workers/chunks/f6912532aae1638cbe8f.js +0 -1
- /package/assets/esri/core/workers/chunks/{7bacdd65a6cc4d284e0a.js.LICENSE.txt → 10408183681fd6c7b4ed.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{f09a41ad239d467d9438.js.LICENSE.txt → 5818f1f526577068d6ca.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{dbb9bb28696ff9536678.js.LICENSE.txt → 7cdd0492b2191df95102.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{bf7e019437a3b6036300.js.LICENSE.txt → dacc2e5fa462495ed1cc.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import has from"../../../../../../../core/has.js";import{
|
|
2
|
+
import{__decorate as t}from"tslib";import has from"../../../../../../../core/has.js";import{texture as a,uniform as e,TextureGroup as i,UniformGroup as r}from"../../GraphShaderModule.js";import{Sampler2D as s,Float as o,texture2D as l,ceil as g,float as u,int as n,mod as D,Vec2 as p}from"../../graph/glsl.js";import{unpackDisplayIdTexel as m}from"./utils.js";class v extends i{getVisualVariableData(t){return this._vvData||(this._vvData=l(this.visualVariableData,t).setDebugName("storage2")),this._vvData}getFilterData(t){return l(this.filterFlags,t).setDebugName("storage0")}getAnimationData(t){return l(this.animation,t).setDebugName("storage1")}getVVData(t){return this.getVisualVariableData(t)}getDataDrivenData0(t){return l(this.dataDriven0,t).setDebugName("storage30")}getDataDrivenData1(t){return l(this.dataDriven1,t).setDebugName("storage31")}getDataDrivenData2(t){return l(this.dataDriven2,t).setDebugName("storage32")}getGPGPUData(t){return l(this.gpgpu,t).setDebugName("storage4")}getLocalTimeOrigin(t){return l(this.localTimeOrigin,t).x.setDebugName("storage5")}getFilterFlags(t){return has("webgl-ignores-sampler-precision")?g(this.getFilterData(t).x.multiply(u(255))):this.getFilterData(t).x.multiply(u(255))}getLabelVisibility(t){const a=this.getFilterData(t).y.multiply(255);return new o(1).subtract(a)}getAnimationValue(t){return this.getAnimationData(t).x}getSizeValue(t){return this.getVisualVariableData(t).x}getColorValue(t){return this.getVisualVariableData(t).y}getOpacityValue(t){return this.getVisualVariableData(t).z}getRotationValue(t){return this.getVisualVariableData(t).w}}t([a(s)],v.prototype,"filterFlags",void 0),t([a(s)],v.prototype,"animation",void 0),t([a(s)],v.prototype,"gpgpu",void 0),t([a(s)],v.prototype,"localTimeOrigin",void 0),t([a(s)],v.prototype,"visualVariableData",void 0),t([a(s)],v.prototype,"dataDriven0",void 0),t([a(s)],v.prototype,"dataDriven1",void 0),t([a(s)],v.prototype,"dataDriven2",void 0);class d extends r{getAttributeDataCoords(t){if(!this._uv){const a=m(t),e=this.size,i=n(a.x),r=n(a.y).multiply(n(256)),s=n(a.z).multiply(n(256)).multiply(n(256)),o=u(i.add(r).add(s)),l=D(o,e),g=o.subtract(l).divide(e);this._uv=new p(l,g).add(.5).divide(e)}return this._uv}}t([e(o)],d.prototype,"size",void 0);export{d as EntityStorage,v as EntityStorageTextures};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as r,input 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{ifElse as a,Float as n,Vec2 as d,greaterThan as l,cond as p,equal as m,sqrt as c,dot as u,abs as v,max as x,clamp as h,mix as f,texture2D as g,Vec4 as y,Sampler2D as w}from"../../graph/glsl.js";import{gradientFillMethods as b,bitset as S}from"../fill/gradientFillConstants.js";import{BaseHittestVertexInput as j,FeatureFragmentInput as z}from"./AFeatureShader.js";import{FillShader as F,FillVertexInput as M}from"./FillShader.js";import{MosaicInfo as G}from"./MosaicInfo.js";import{getBitBool as P,getBit as D,oneMinus as I}from"./utils.js";class A extends M{}t([i(5,y)],A.prototype,"tlbr",void 0),t([i(6,d)],A.prototype,"relativePosition",void 0),t([i(7,n)],A.prototype,"gradientMethod",void 0),t([i(8,d)],A.prototype,"relativeGradientSize",void 0);class T extends z{}class C extends F{constructor(){super(...arguments),this.type="GradientFillShader"}vertex(t,e){const{tlbr:i,relativePosition:r,gradientMethod:o,relativeGradientSize:s}=t,d=a(P(t.bitset,S.isAbsolute),this.view.displayZoomFactor,new n(1));return{...super.vertex(t,e),tlbr:i,relativePosition:r,gradientMethod:o,gradientSize:s.multiply(d),isDiscrete:D(t.bitset,S.isDiscrete)}}fragment(t){const{tlbr:e,relativePosition:i,gradientMethod:r,gradientSize:o,isDiscrete:s}=t,y=a(l(s,new n(.5)),o.subtract(1),new d(0)),w=p([m(r,new n(b.rectangular)),()=>{const t=v(i).add(y).divide(o);return I(x(t.x,t.y))}],[m(r,new n(b.circular)),I(c(u(i,i)).add(y.x).divide(o.x))],[!0,I(i.x.add(y.x).divide(o.x))]),S=new d(h(w,new n(0),new n(1)),.5),j=f(e.xy,e.zw,S).divide(this.mosaicInfo.size),z=g(this.mosaicTexture,j),F=t.color.a;return this.getFragmentOutput(z.multiply(F),t,new n(0))}}t([r(G)],C.prototype,"mosaicInfo",void 0),t([o(w)],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.1/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,
|
|
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 r,input as s,UniformGroup as n}from"../../GraphShaderModule.js";import{ifElse as a,greaterThan as l,Float as d,dot as p,min as m,length as c,mix as u,Vec2 as h,clamp as y,texture2D as g,step as v,Vec4 as w,Sampler2D as f}from"../../graph/glsl.js";import{bitset as b}from"../line/gradientStrokeConstants.js";import{BaseHittestVertexInput as x}from"./AFeatureShader.js";import{LineShader as S,getLineVertexData as L,getLineAntialiasing as j,LineVertexInput as A,LineFragmentInput as D}from"./LineShader.js";import{MosaicInfo as z}from"./MosaicInfo.js";import{getBit as C,getBitBool as F,oneMinus as G}from"./utils.js";function P(t){return v(new d(0),t).multiply(2).subtract(1)}class I extends A{}t([i(9,d)],I.prototype,"accumulatedDistance",void 0),t([i(10,d)],I.prototype,"totalLength",void 0),t([i(11,d)],I.prototype,"gradientSize",void 0),t([i(12,h)],I.prototype,"segmentDirection",void 0),t([i(13,w)],I.prototype,"tlbr",void 0);class k extends D{}class q extends n{}t([o(d)],q.prototype,"isColorPass",void 0);class M extends S{constructor(){super(...arguments),this.type="GradientStrokeShader"}vertex(t,e){const{totalLength:i,gradientSize:o,segmentDirection:r,tlbr:s}=t,n=L(this,t),m=C(t.bitset,b.isAlongLine),c=i.divide(this.view.displayZoomFactor),u=a(F(t.bitset,b.isAbsoluteSize),()=>{const t=a(l(m,new d(.5)),c,n.halfWidth);return o.divide(t)},o),h=t.accumulatedDistance.add(p(r,n.scaledOffset).divide(c)),y=s.divide(this.mosaicInfo.size.xyxy);return{...n,tlbr:y,relativePositionAlongLine:h,relativeGradientSize:u,isAlongLine:C(t.bitset,b.isAlongLine),isDiscrete:C(t.bitset,b.isDiscrete),...this.maybeRunHittest(t,e,n.halfWidth)}}fragment(t){const{isAlongLine:e,isDiscrete:i,relativePositionAlongLine:o,relativeGradientSize:r,normal:s,tlbr:n}=t,p=j(t,this.antialiasingControls.blur),w=P(s.y).multiply(m(c(s),new d(1))),f=new d(.5).multiply(w).add(new d(.5)),b=a(l(e,new d(.5)),o,f),x=a(l(i,new d(.5)),r.subtract(1),new d(0));let S=b.add(x).divide(r);S=a(l(e,new d(.5)),S,G(S));const L=u(n.xy,n.zw,new h(y(S,new d(0),new d(1)),.5)),A=g(this.mosaicTexture,L),D=t.opacity.multiply(p),z=this.getFragmentOutput(A.multiply(D),t),C=v(new d(.5),this.technique.isColorPass).multiply(has("gradient-depth-epsilon")),F=v(new d(0),s.y).multiply(new d(has("gradient-depth-bias")).subtract(C));return z.glFragDepth=y(c(s).add(F),new d(0),new d(1)),z}}t([o(z)],M.prototype,"mosaicInfo",void 0),t([r(f)],M.prototype,"mosaicTexture",void 0),t([o(q)],M.prototype,"technique",void 0),t([e(0,s(I)),e(1,s(x))],M.prototype,"vertex",null);export{k as GradientStrokeFragmentInput,M as GradientStrokeShader,I as GradientStrokeVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as s,define as l,input as o,UniformGroup as r}from"../../GraphShaderModule.js";import{Float as p,Vec3 as a,Vec4 as n,length as u,step as m,Vec2 as d}from"../../graph/glsl.js";import{AFeatureShader as y,FeatureVertexInput as h,FeatureFragmentInput as c}from"./AFeatureShader.js";import{getHeatmapCompressionFactor as f}from"./heatmapUtils.js";import{hittestMarker as w}from"./hittestUtils.js";class v extends h{}t([i(5,d)],v.prototype,"offset",void 0);class x extends c{}class g extends r{}t([s(p)],g.prototype,"radius",void 0),t([s(p)],g.prototype,"isFieldActive",void 0);class F extends y{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:i}=this.kernelControls,s=t.offset,l=i.multiply(this.
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as i,uniform as s,define as l,input as o,UniformGroup as r}from"../../GraphShaderModule.js";import{Float as p,Vec3 as a,Vec4 as n,length as u,step as m,Vec2 as d}from"../../graph/glsl.js";import{AFeatureShader as y,FeatureVertexInput as h,FeatureFragmentInput as c}from"./AFeatureShader.js";import{getHeatmapCompressionFactor as f}from"./heatmapUtils.js";import{hittestMarker as w}from"./hittestUtils.js";class v extends h{}t([i(5,d)],v.prototype,"offset",void 0);class x extends c{}class g extends r{}t([s(p)],g.prototype,"radius",void 0),t([s(p)],g.prototype,"isFieldActive",void 0);class F extends y{constructor(){super(...arguments),this.type="HeatmapAccumulateShader",this.usesHalfFloatPrecision=!1}vertex(t){const{radius:e,isFieldActive:i}=this.kernelControls,s=t.offset,l=i.multiply(this.getVVData(t.id).x).add(new p(1).subtract(i)),o=this.view.displayViewScreenMat3.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 n(o.xy,r,1),offset:s,fieldValue:l,color:new n(0),...this.maybeRunHittest(t,{},null)}}fragment(t){const{offset:e,fieldValue:i}=t,s=u(e),l=m(s,new p(1)),o=new p(1).subtract(s.multiply(s)),r=o.multiply(o),a=l.multiply(r).multiply(i).multiply(new p(f(this.usesHalfFloatPrecision)));return this.getFragmentOutput(new n(a),t)}hittest(t){const{viewMat3:e,tileMat3:i}=this.view,s=e.multiply(i).multiply(new a(t.pos,1));return w(s.xy,this.kernelControls.radius,this.hittestRequest.position)}}t([l],F.prototype,"usesHalfFloatPrecision",void 0),t([s(g)],F.prototype,"kernelControls",void 0),t([e(0,o(v))],F.prototype,"vertex",null),t([e(0,o(x))],F.prototype,"fragment",null);export{x as HeatmapAccumulateFragmentInput,F as HeatmapAccumulateShader,v as HeatmapAccumulateVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as i,location as r,uniform as s,define as n,texture as a,input as p,VertexInput as l,UniformGroup as u,FragmentInput as d}from"../../GraphShaderModule.js";import{Vec4 as m,texture2D as y,Float as c,Vec2 as v,Sampler2D as g}from"../../graph/glsl.js";import{getHeatmapCompressionFactor as x}from"./heatmapUtils.js";class h extends l{}t([r(0,v)],h.prototype,"position",void 0);class f extends d{}class w extends u{}t([s(v)],w.prototype,"minAndInvRange",void 0),t([s(c)],w.prototype,"normalization",void 0);class b extends o{constructor(){super(...arguments),this.type="HeatmapResolveShader",this.usesHalfFloatPrecision=!1}vertex(t){return{glPosition:new m(t.position.multiply(2).subtract(1),1,1),uv:t.position}}fragment(t){const{accumulatedDensity:e}=this;let o=y(this.densityTexture,t.uv).r.divide(new c(x(this.usesHalfFloatPrecision)));o=o.multiply(e.normalization),o=o.subtract(e.minAndInvRange.x).multiply(e.minAndInvRange.y);const r=y(this.gradientTexture,new v(o,.5)),s=new i;return s.fragColor=new m(r.rgb.multiply(r.a),r.a),s}}t([n],b.prototype,"usesHalfFloatPrecision",void 0),t([s(w)],b.prototype,"accumulatedDensity",void 0),t([a(g)],b.prototype,"densityTexture",void 0),t([a(g)],b.prototype,"gradientTexture",void 0),t([e(0,p(h))],b.prototype,"vertex",null),t([e(0,p(f))],b.prototype,"fragment",null);export{w as AccumulatedDensity,f as HeatmapResolveFragmentInput,b as HeatmapResolveShader,h as HeatmapResolveVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as n,uniform as i,input as
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as n,uniform as s,texture as i,input as a,VertexInput as p,UniformGroup as d,FragmentInput as l}from"../../GraphShaderModule.js";import{Vec2 as u,Vec4 as c,texture2D as y,Float as m,ifElse as w,equal as x,atan as f,pow as g,length as v,cos as b,sin as h,Sampler2D as k}from"../../graph/glsl.js";import{magnifierBarrelFactor as T}from"./constants.js";class C extends p{}t([n(0,u)],C.prototype,"position",void 0);class E extends l{}class P extends d{}t([s(c)],P.prototype,"background",void 0),t([s(c)],P.prototype,"drawPos",void 0),t([s(m)],P.prototype,"maskEnabled",void 0),t([s(m)],P.prototype,"overlayEnabled",void 0);class j extends e{constructor(){super(...arguments),this.type="MagnifierShader"}vertex(t){const o=t.position,e=t.position.subtract(new u(.5)).multiply(this.config.drawPos.zw),r=this.config.drawPos.xy.add(e);return{glPosition:new c(r,0,1),texCoord:o}}fragment(t){let o=y(this.readbackTexture,M(t.texCoord));o=o.add(new m(1).subtract(o.a)).multiply(this.config.background);const e=w(x(this.config.maskEnabled,new m(1)),y(this.maskTexture,t.texCoord).a,new m(1));o=o.multiply(e);const n=w(x(this.config.overlayEnabled,new m(1)),y(this.overlayTexture,t.texCoord),new c(0)),s=new r;return s.fragColor=n.add(new m(1).subtract(n.a).multiply(o)),s}}function M(t){const o=t.multiply(new u(2)).subtract(1);return w(x(o.x,new m(0)).and(x(o.y,new m(0))),new u(.5),()=>{const t=f(o.y,o.x),e=g(v(o),new m(T)),r=new u(b(t),h(t));return e.multiply(r).multiply(new u(.5)).add(new m(.5))})}t([s(P)],j.prototype,"config",void 0),t([i(k)],j.prototype,"readbackTexture",void 0),t([i(k)],j.prototype,"maskTexture",void 0),t([i(k)],j.prototype,"overlayTexture",void 0),t([o(0,a(C))],j.prototype,"vertex",null),t([o(0,a(E))],j.prototype,"fragment",null);export{j as MagnifierShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as o}from"tslib";import{uniform as r,UniformGroup as
|
|
2
|
+
import{__decorate as o}from"tslib";import{uniform as r,UniformGroup as p}from"../../GraphShaderModule.js";import{Vec2 as s}from"../../graph/glsl.js";class t extends p{}o([r(s)],t.prototype,"size",void 0);export{t as MosaicInfo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as i,input as
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as s,texture as i,input as n,VertexInput as l,UniformGroup as a,FragmentInput as u}from"../../GraphShaderModule.js";import{Vec4 as y,Vec2 as c,texture2D as d,Float as m,Sampler2D as x}from"../../graph/glsl.js";class f extends l{}t([p(0,c)],f.prototype,"position",void 0);class g extends u{}class v extends a{}t([s(m)],v.prototype,"opacity",void 0);class h extends e{constructor(){super(...arguments),this.type="OpacityShader"}vertex(t){return{uv:t.position,glPosition:new y(t.position.subtract(new c(.5)).multiply(2),0,1)}}fragment(t){const o=new r;return o.fragColor=d(this.layerTexture,t.uv).multiply(this.config.opacity),o}}t([s(v)],h.prototype,"config",void 0),t([i(x)],h.prototype,"layerTexture",void 0),t([o(0,n(f))],h.prototype,"vertex",null),t([o(0,n(g))],h.prototype,"fragment",null);export{h as OpacityShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as i,
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as i,texture as s,input as n,VertexInput as d,UniformGroup as l,FragmentInput as v}from"../../GraphShaderModule.js";import{Float as a,dot as y,Vec3 as c,Vec2 as u,Vec4 as f,texture2D as h,Mat3 as m,Sampler2D as x}from"../../graph/glsl.js";class g extends d{}t([p(0,u)],g.prototype,"pos",void 0),t([p(1,u)],g.prototype,"uv",void 0);class w extends v{}class S extends l{}t([i(m)],S.prototype,"dvs",void 0);class j extends l{}t([i(u)],j.prototype,"perspective",void 0),t([i(u)],j.prototype,"texSize",void 0),t([i(a)],j.prototype,"wrapAroundShift",void 0),t([i(a)],j.prototype,"opacity",void 0);class z extends e{constructor(){super(...arguments),this.type="OverlayShader"}vertex(t){const o=t.uv.divide(this.config.texSize),e=new a(1).add(y(o,this.config.perspective)),r=new c(t.pos.add(new u(this.config.wrapAroundShift,0)),1),p=this.transform.dvs.multiply(r);return{uv:o,glPosition:new f(p.xy.multiply(e),0,e)}}fragment(t){const o=h(this.texture,t.uv).multiply(this.config.opacity),e=new r;return e.fragColor=o,e}}t([i(S)],z.prototype,"transform",void 0),t([i(j)],z.prototype,"config",void 0),t([s(x)],z.prototype,"texture",void 0),t([o(0,n(g))],z.prototype,"vertex",null),t([o(0,n(w))],z.prototype,"fragment",null);export{z as OverlayShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{location as r,uniform as o,input as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{location as r,uniform as o,texture as i,input as s}from"../../GraphShaderModule.js";import{Float as l,Vec2 as n,Vec3 as a,mod as p,mix as u,texture2D as d,Mat3 as c,negate as m,Vec4 as f,Sampler2D as y}from"../../graph/glsl.js";import{BaseHittestVertexInput as x,FeatureFragmentInput as v}from"./AFeatureShader.js";import{FillShader as b,FillVertexInput as h}from"./FillShader.js";import{LocalTileOffset as w}from"./LocalTileOffset.js";import{MosaicInfo as g}from"./MosaicInfo.js";class T extends h{}t([r(5,f)],T.prototype,"tlbr",void 0),t([r(6,l)],T.prototype,"inverseRasterizationScale",void 0);class j extends v{}function O(t){const e=new l(1),r=new l(0);return new c(e.divide(t.x),r.divide(t.y),0,m(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),s=r.y.subtract(o.y),l=new n(i,s).multiply(e.inverseRasterizationScale),p=l.multiply(t.view.requiredZoomFactor),u=O(p),d=t.localTileOffset.getPatternOffsetAtTileOrigin(l).divide(p),c=new a(e.pos,1);return{tileTextureCoord:u.multiply(c).xy.subtract(d),tlbr:e.tlbr.divide(t.mosaicInfo.size.xyxy)}}function z(t,e){const r=p(t.tileTextureCoord,new l(1)),o=u(t.tlbr.xy,t.tlbr.zw,r),i=d(e.mosaicTexture,o);return t.color.multiply(i)}class F extends b{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 l(0))}}t([o(g)],F.prototype,"mosaicInfo",void 0),t([i(y)],F.prototype,"mosaicTexture",void 0),t([o(w)],F.prototype,"localTileOffset",void 0),t([e(0,s(T)),e(1,s(x))],F.prototype,"vertex",null),t([e(0,s(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.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as r}from"tslib";import{location as e,uniform as o,input as
|
|
2
|
+
import{__decorate as t,__param as r}from"tslib";import{location as e,uniform as o,texture as i,input as s}from"../../GraphShaderModule.js";import{greaterThan as l,Float as p,ifElse as a,Vec4 as n,Sampler2D as m}from"../../graph/glsl.js";import{BaseHittestVertexInput as f}from"./AFeatureShader.js";import{getLineFragmentColor as d}from"./LineShader.js";import{LocalTileOffset as u}from"./LocalTileOffset.js";import{MosaicInfo as h}from"./MosaicInfo.js";import{OutlineFillShader as c,getOutlineFillVertexData as j,OutlineFillVertexInput as v,OutlineFillFragmentInput as y}from"./OutlineFillShader.js";import{getPatternFillVertexData as g,getPatternFillFragmentColor as x}from"./PatternFillShader.js";class S extends v{}t([e(9,n)],S.prototype,"tlbr",void 0),t([e(10,p)],S.prototype,"inverseRasterizationScale",void 0);class O extends y{}class F extends c{constructor(){super(...arguments),this.type="PatternOutlineFillShader"}vertex(t,r){return{...j(this,t,r),...g(this,t)}}fragment(t){const{isOutline:r}=t,e=l(r,new p(.5)),o=d(t,this.antialiasingControls.blur),i=x(t,this),s=a(e,o,i),n=a(e,new p(1/255),new p(0));return this.getFragmentOutput(s,t,n)}}t([o(h)],F.prototype,"mosaicInfo",void 0),t([i(m)],F.prototype,"mosaicTexture",void 0),t([o(u)],F.prototype,"localTileOffset",void 0),t([r(0,s(S)),r(1,s(f))],F.prototype,"vertex",null),t([r(0,s(O))],F.prototype,"fragment",null);export{O as PatternOutlineFillFragmentInput,F as PatternOutlineFillShader,S as PatternOutlineFillVertexInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as r,location as s,uniform as i,
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as r,location as s,uniform as i,texture as n,input as p,VertexInput as u,UniformGroup as l,FragmentInput as a}from"../../GraphShaderModule.js";import{Vec4 as m,texture2D as x,texelFetch as d,Int as c,IVec2 as f,step as v,Float as y,Vec2 as h,Sampler2D as T}from"../../graph/glsl.js";import{uvToClip as g}from"./utils.js";class w extends u{}t([s(0,h)],w.prototype,"position",void 0);class b extends a{}class j extends l{}t([i(y)],j.prototype,"numTexels",void 0);class D extends o{constructor(){super(...arguments),this.type="TextureStatisticsDiffShader"}vertex(t){const e=t.position;return{uv:e,glPosition:new m(g(e),0,1)}}fragment(t){const e=new r,o=x(this.inputTexture,t.uv),s=d(this.sumTexture,new f(0,0),new c(0)),i=d(this.numOfNoDataTexture,new f(0,0),new c(0)).r,n=this.config.numTexels.subtract(i),p=s.divide(n),u=v(o.a,new y(0)),l=new y(1).subtract(u).multiply(o.subtract(p));return e.fragColor=l.multiply(l),e}}t([i(j)],D.prototype,"config",void 0),t([n(T)],D.prototype,"inputTexture",void 0),t([n(T)],D.prototype,"sumTexture",void 0),t([n(T)],D.prototype,"numOfNoDataTexture",void 0),t([e(0,p(w))],D.prototype,"vertex",null),t([e(0,p(b))],D.prototype,"fragment",null);export{D as TextureStatisticsDiffShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as r,FragmentOutput as n,location as o,uniform as i,texture as s,input as a,VertexInput as u,UniformGroup as d,FragmentInput as p}from"../../GraphShaderModule.js";import{Vec4 as m,IVec2 as x,Int as l,texelFetch as w,Float as h,step as c,min as f,max as y,Vec2 as T,Sampler2D as g}from"../../graph/glsl.js";import{maxRepresentableInt as v}from"./constants.js";import{uvToClip as D,sum4 as b}from"./utils.js";class N extends u{}t([o(0,T)],N.prototype,"position",void 0);class O extends p{}class j extends d{}t([i(l)],j.prototype,"width",void 0),t([i(l)],j.prototype,"height",void 0),t([i(l)],j.prototype,"isFirstPass",void 0);class S extends r{constructor(){super(...arguments),this.type="TextureStatisticsMinMaxSumShader"}vertex(t){const e=t.position;return{uv:e,glPosition:new m(D(e),0,1)}}fragment(t){const e=new n,r=t.glFragCoord.xy,o=new x(r.multiply(2)),i=new l(0),s=w(this.minTexture,o,i),a=w(this.minTexture,o.add(new x(-1,0)),i),u=w(this.minTexture,o.add(new x(0,-1)),i),d=w(this.minTexture,o.add(new x(-1,-1)),i),p=F(F(s,F(a,new m(v))),F(u,F(d,new m(v)))),c=w(this.maxTexture,o,i),f=w(this.maxTexture,o.add(new x(-1,0)),i),y=w(this.maxTexture,o.add(new x(0,-1)),i),T=w(this.maxTexture,o.add(new x(-1,-1)),i),g=M(M(c,M(f,new m(-v))),M(y,M(T,new m(-v)))),D=w(this.sumTexture,o,i),N=w(this.sumTexture,o.add(new x(-1,0)),i),O=w(this.sumTexture,o.add(new x(0,-1)),i),j=w(this.sumTexture,o.add(new x(-1,-1)),i),S=b(P(D),P(N),P(O),P(j)),G=w(this.numOfNoDataTexture,o,i),k=w(this.numOfNoDataTexture,o.add(new x(-1,0)),i),q=w(this.numOfNoDataTexture,o.add(new x(0,-1)),i),z=w(this.numOfNoDataTexture,o.add(new x(-1,-1)),i),A=new h(this.config.isFirstPass),B=b(C(G,A),C(k,A),C(q,A),C(z,A));return e.fragData0=p,e.fragData1=g,e.fragData2=S,e.fragData3=B,e}}function F(t,e){const r=c(t.a,new h(0));return f(t,e).multiply(new h(1).subtract(r)).add(e.multiply(r))}function M(t,e){const r=c(t.a,new h(0));return y(t,e).multiply(new h(1).subtract(r)).add(e.multiply(r))}function P(t){const e=c(t.a,new h(0)),r=new h(1).subtract(e);return t.multiply(r)}function C(t,e){const r=c(t.a,new h(0)),n=new h(1).subtract(e);return e.multiply(r).multiply(new m(1)).add(n.multiply(t))}t([i(j)],S.prototype,"config",void 0),t([s(g)],S.prototype,"minTexture",void 0),t([s(g)],S.prototype,"maxTexture",void 0),t([s(g)],S.prototype,"sumTexture",void 0),t([s(g)],S.prototype,"numOfNoDataTexture",void 0),t([e(0,a(N))],S.prototype,"vertex",null),t([e(0,a(O))],S.prototype,"fragment",null);export{S as TextureStatisticsMinMaxSumShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as r,location as i,uniform as s,
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as r,location as i,uniform as s,texture as a,input as p,VertexInput as n,UniformGroup as u,FragmentInput as d}from"../../GraphShaderModule.js";import{Vec4 as x,IVec2 as m,Int as f,texelFetch as l,sqrt as v,Vec2 as g,Float as T,Sampler2D as c}from"../../graph/glsl.js";import{uvToClip as y}from"./utils.js";class h extends n{}t([i(0,g)],h.prototype,"position",void 0);class D extends d{}class S extends u{}t([s(T)],S.prototype,"numTexels",void 0);class w extends o{constructor(){super(...arguments),this.type="TextureStatisticsStdDevShader"}vertex(t){const e=t.position;return{uv:e,glPosition:new x(y(e),0,1)}}fragment(t){const e=new r,o=t.glFragCoord.xy,i=new m(o),s=new f(0),a=l(this.minTexture,i,s),p=l(this.maxTexture,i,s),n=l(this.sumTexture,i,s),u=l(this.numOfNoDataTexture,i,s).r,d=l(this.diffSqTexture,i,s),x=this.config.numTexels.subtract(u),g=n.divide(x),T=d.divide(x),c=v(T);return e.fragData0=a,e.fragData1=p,e.fragData2=g,e.fragData3=c,e}}t([s(S)],w.prototype,"config",void 0),t([a(c)],w.prototype,"minTexture",void 0),t([a(c)],w.prototype,"maxTexture",void 0),t([a(c)],w.prototype,"sumTexture",void 0),t([a(c)],w.prototype,"numOfNoDataTexture",void 0),t([a(c)],w.prototype,"diffSqTexture",void 0),t([e(0,p(h))],w.prototype,"vertex",null),t([e(0,p(D))],w.prototype,"fragment",null);export{w as TextureStatisticsStdDevShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as r,FragmentOutput as o,location as s,uniform as i,texture as a,input as n,VertexInput as p,UniformGroup as u,FragmentInput as d}from"../../GraphShaderModule.js";import{Vec4 as l,IVec2 as m,Int as f,texelFetch as x,Vec2 as g,Sampler2D as h}from"../../graph/glsl.js";import{uvToClip as w,sum4 as c}from"./utils.js";class y extends p{}t([s(0,g)],y.prototype,"position",void 0);class v extends d{}class T extends u{}t([i(f)],T.prototype,"width",void 0),t([i(f)],T.prototype,"height",void 0);class D extends r{constructor(){super(...arguments),this.type="TextureStatisticsSumOfSquaredDiffShader"}vertex(t){const e=t.position;return{uv:e,glPosition:new l(w(e),0,1)}}fragment(t){const e=new o,r=t.glFragCoord.xy,s=new m(r.multiply(2)),i=new f(0),a=x(this.sumTexture,s,i),n=x(this.sumTexture,s.add(new m(-1,0)),i),p=x(this.sumTexture,s.add(new m(0,-1)),i),u=x(this.sumTexture,s.add(new m(-1,-1)),i),d=c(a,n,p,u);return e.fragData0=d,e.fragData1=new l(0),e.fragData2=new l(0),e.fragData3=new l(0),e}}t([i(T)],D.prototype,"config",void 0),t([a(h)],D.prototype,"sumTexture",void 0),t([e(0,n(y))],D.prototype,"vertex",null),t([e(0,n(v))],D.prototype,"fragment",null);export{D as TextureStatisticsSumOfSquaredDiffShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/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 r,uniform as a,input 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 r,uniform as a,texture as l,input as n}from"../../GraphShaderModule.js";import{max as p,Float as c,fract as m,mix as u,Vec2 as d,texture2D as y,cond as h,equal as f,sqrt as w,pow as b,clamp as x,Vec4 as g,ifElse as v,greaterThan as D,dot as S,Sampler2D 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{LineShader as L,getLineVertexData as _,getLineAntialiasing as C,LineVertexInput as O,LineFragmentInput as P}from"./LineShader.js";import{MosaicInfo as W}from"./MosaicInfo.js";import{getBit as I,rgba2float as R}from"./utils.js";class H extends O{}t([r(9,c)],H.prototype,"accumulatedDistance",void 0),t([r(10,d)],H.prototype,"segmentDirection",void 0),t([r(11,c)],H.prototype,"offsetAlongLine",void 0),t([r(12,c)],H.prototype,"capType",void 0),t([r(13,g)],H.prototype,"tlbr",void 0);class M extends P{}class G extends L{constructor(){super(...arguments),this.type="TexturedLineShader"}_getDistanceRatio(t,e){const o=I(t.bitset,A);return o.multiply(p(e,new c(.25)).multiply(new c(2))).add(new c(1).subtract(o).multiply(i(1)))}_getSDFAlpha(t){const{halfWidth:e,normal:i,tlbr:r,patternSize:a,accumulatedDistance:l,offsetAlongLine:n,dashToPx:v,capType:D}=t,S=a.x.divide(o).multiply(v),T=m(l.add(n).divide(S)),j=u(r.xy,r.zw,new d(T,.5)),A=R(y(this.mosaicTexture,j)).multiply(2).subtract(1).multiply(s).multiply(v),z=i.y.multiply(e),F=h([f(D,new c(1)),A.subtract(e)],[f(D,new c(2)),w(b(p(A,new c(0)),new c(2)).add(z.multiply(z))).subtract(e)],[!0,A]),L=x(new c(.25).subtract(F),new c(0),new c(1));return new g(L)}_getPatternColor(t){const{halfWidth:e,normal:i,color:o,accumulatedDistance:s,patternSize:r,sampleAlphaOnly:a,tlbr:l}=t,n=r.y.multiply(new c(2).multiply(e).divide(r.x)),p=m(s.divide(n)),h=new c(.5).multiply(i.y).add(new c(.5)),f=u(l.xy,l.zw,new d(h,p));let w=y(this.mosaicTexture,f);return null!=this.visualVariableColor&&(w=v(D(a,new c(.5)),new g(o.a),o)),w}vertex(t,e){const{segmentDirection:i,tlbr:o,bitset:s}=t,r=_(this,t),a=t.accumulatedDistance.divide(this.view.displayZoomFactor).add(S(i,r.scaledOffset)),l=new d(o.z.subtract(o.x),o.w.subtract(o.y)),n=o.divide(this.mosaicInfo.size.xyxy),p=I(s,z),m=I(s,F),u=v(D(p,new c(.5)),this._getDistanceRatio(t,r.scaledHalfWidth),new c(1));return{...r,tlbr:n,patternSize:l,accumulatedDistance:a,isSDF:p,sampleAlphaOnly:m,dashToPx:u,offsetAlongLine:t.offsetAlongLine,capType:t.capType,...this.maybeRunHittest(t,e,r.halfWidth)}}fragment(t){const{color:e,opacity:i,isSDF:o}=t,s=C(t,this.antialiasingControls.blur),r=v(D(o,new c(.5)),this._getSDFAlpha(t),this._getPatternColor(t)),a=e.multiply(i).multiply(s).multiply(r);return this.getFragmentOutput(a,t)}}t([a(W)],G.prototype,"mosaicInfo",void 0),t([l(T)],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.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as
|
|
2
|
+
import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as i,location as r,uniform as p,input as n,FragmentInput as s,texture as d,VertexInput as l,UniformGroup as c}from"../../GraphShaderModule.js";import{Vec3 as a,Vec4 as y,texture2D as g,Vec2 as u,Mat3 as v,Float as f,Sampler2D as h}from"../../graph/glsl.js";class m extends l{}o([r(0,u)],m.prototype,"position",void 0);class x extends s{}class w extends c{}o([p(v)],w.prototype,"dvsMat3",void 0),o([p(u)],w.prototype,"coordRange",void 0),o([p(f)],w.prototype,"depth",void 0),o([p(y)],w.prototype,"color",void 0);class M extends c{}o([p(v)],M.prototype,"dvsMat3",void 0),o([p(f)],M.prototype,"depth",void 0),o([p(u)],M.prototype,"coordRatio",void 0),o([p(u)],M.prototype,"delta",void 0),o([p(u)],M.prototype,"dimensions",void 0);class b extends e{constructor(){super(...arguments),this.type="TileDebugInfoOutlineShader"}vertex(o){const t=this.config.dvsMat3.multiply(new a(o.position.multiply(this.config.coordRange),1));return{glPosition:new y(t.xy,this.config.depth,1)}}fragment(o){const t=new i;return t.fragColor=this.config.color,t}}o([p(w)],b.prototype,"config",void 0),o([t(0,n(m))],b.prototype,"vertex",null),o([t(0,n(s))],b.prototype,"fragment",null);class R extends e{constructor(){super(...arguments),this.type="TileDebugInfoShader"}vertex(o){const t=this.config.coordRatio.multiply(this.config.delta.add(o.position.multiply(this.config.dimensions))),e=this.config.dvsMat3.multiply(new a(t,1));return{glPosition:new y(e.xy,this.config.depth,1),uv:o.position}}fragment(o){const t=new i,e=g(this.texture,o.uv);return t.fragColor=new y(e.rgb.multiply(e.a),e.a),t}}o([p(M)],R.prototype,"config",void 0),o([d(h)],R.prototype,"texture",void 0),o([t(0,n(m))],R.prototype,"vertex",null),o([t(0,n(x))],R.prototype,"fragment",null);export{b as TileDebugInfoOutlineShader,R as TileDebugInfoShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as i,input as
|
|
2
|
+
import{__decorate as o,__param as t}from"tslib";import{GraphShaderModule as e,FragmentOutput as r,location as p,uniform as s,texture as i,input as n,VertexInput as d,UniformGroup as c,FragmentInput as l}from"../../GraphShaderModule.js";import{Vec4 as a,texture2D as x,Vec2 as y,Float as u,Sampler2D as m}from"../../graph/glsl.js";class f extends d{}o([p(0,y)],f.prototype,"position",void 0),o([p(1,y)],f.prototype,"texcoord",void 0),o([p(2,u)],f.prototype,"w",void 0);class g extends l{}class v extends c{}o([s(u)],v.prototype,"opacity",void 0);class h extends e{constructor(){super(...arguments),this.type="VideoScreenShader"}vertex(o){const{position:t,texcoord:e,w:r}=o;return{glPosition:new a(t,0,r),texcoord:e}}fragment(o){const t=new r;return t.fragColor=x(this.texture,o.texcoord).multiply(this.config.opacity),t}}o([s(v)],h.prototype,"config",void 0),o([i(m)],h.prototype,"texture",void 0),o([t(0,n(f))],h.prototype,"vertex",null),o([t(0,n(g))],h.prototype,"fragment",null);export{h as VideoScreenShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as r,FragmentOutput as
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as r,FragmentOutput as e,location as i,define as p,uniform as s,texture as l,input as a,VertexInput as n,FragmentInput as v}from"../../../GraphShaderModule.js";import{Vec3 as c,Vec4 as y,texture2D as d,Vec2 as m,Sampler2D as u}from"../../../graph/glsl.js";import{getFlowPremultipliedColor as h,FlowAnimationState as x,FlowImageryConfig as g,FlowColorValue as f,FlowFloatValue as w}from"./FlowUtils.js";class C extends n{}t([i(0,m)],C.prototype,"position",void 0),t([i(1,m)],C.prototype,"texcoord",void 0);class j extends v{}class O extends r{constructor(){super(...arguments),this.type="FlowImageryShader",this.vvColor=null,this.vvOpacity=null}vertex(t){const o=this.state.dvsMat3.multiply(new c(t.position,1)).xy;return{glPosition:new y(o,0,1),texcoord:t.texcoord}}fragment(t){const o=d(this.texture,t.texcoord),r=this.config.min.add(o.r.multiply(this.config.max.subtract(this.config.min))),i=this.color.getValue(r,this.vvColor),p=i.a.multiply(this.opacity.getValue(o.r,this.vvOpacity)).multiply(o.a),s=new e;return s.fragColor=h(i,p),s}}t([p],O.prototype,"vvColor",void 0),t([p],O.prototype,"vvOpacity",void 0),t([s(x)],O.prototype,"state",void 0),t([s(g)],O.prototype,"config",void 0),t([l(u)],O.prototype,"texture",void 0),t([s(f)],O.prototype,"color",void 0),t([s(w)],O.prototype,"opacity",void 0),t([o(0,a(C))],O.prototype,"vertex",null),t([o(0,a(j))],O.prototype,"fragment",null);export{O as FlowImageryShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{uniform as e,UniformGroup as o}from"../../../GraphShaderModule.js";import{Float as s,Vec3 as i,Vec4 as p,mod as r,mix as n,exp as u,clamp as d,ifElse as a,greaterThan as l,Mat3 as y,
|
|
2
|
+
import{__decorate as t}from"tslib";import{uniform as e,UniformGroup as o}from"../../../GraphShaderModule.js";import{Float as s,Vec3 as i,Vec4 as p,mod as r,mix as n,exp as u,clamp as d,ifElse as a,greaterThan as l,Mat3 as y,FixedArray as c,Int as v,cond as h,greaterThanEqual as f,lessThanEqual as m}from"../../../graph/glsl.js";class g extends o{}t([e(s)],g.prototype,"time",void 0),t([e(y)],g.prototype,"dvsMat3",void 0),t([e(y)],g.prototype,"displayViewMat3",void 0),t([e(s)],g.prototype,"displayOpacity",void 0),t([e(s)],g.prototype,"startTime",void 0),t([e(s)],g.prototype,"endTime",void 0);class b extends o{}t([e(s)],b.prototype,"trailLength",void 0),t([e(s)],b.prototype,"flowSpeed",void 0),t([e(s)],b.prototype,"featheringSize",void 0),t([e(s)],b.prototype,"featheringOffset",void 0),t([e(s)],b.prototype,"introFade",void 0),t([e(s)],b.prototype,"fadeToZero",void 0),t([e(s)],b.prototype,"decayRate",void 0);class w extends o{}t([e(s)],w.prototype,"min",void 0),t([e(s)],w.prototype,"max",void 0);class x extends o{getValue(t,e){return e?h([m(t,this.stops.first()),this.values.first()],[f(t,this.stops.get(this.count.subtract(1))),this.values.get(this.count.subtract(1))],[!0,()=>{const e=this.stops.findIndex(e=>l(e,t)),o=this.stops.get(e),s=e.subtract(1),i=this.stops.get(s),p=t.subtract(i).divide(o.subtract(i));return n(this.values.get(s),this.values.get(e),p)}]):this.constant}}t([e(p)],x.prototype,"constant",void 0),t([e(c.ofType(s,8))],x.prototype,"stops",void 0),t([e(c.ofType(p,8))],x.prototype,"values",void 0),t([e(v)],x.prototype,"count",void 0);class T extends o{getValue(t,e){return e?h([m(t,this.stops.first()),this.values.first()],[f(t,this.stops.get(this.count.subtract(1))),this.values.get(this.count.subtract(1))],[!0,()=>{const e=this.stops.findIndex(e=>l(e,t)),o=this.stops.get(e),s=e.subtract(1),i=this.stops.get(s),p=t.subtract(i).divide(o.subtract(i));return n(this.values.get(s),this.values.get(e),p)}]):this.constant}}function M(t,e,o){return t.add(e.multiply(new s(2)).multiply(o))}function V(t,e,o,s){return t.dvsMat3.multiply(new i(e,1)).add(t.displayViewMat3.multiply(new i(o.multiply(s),0))).xy}function S(t,e,o){const i=n(new s(0),u(e.multiply(new s(-1))),o);return u(e.multiply(t).multiply(new s(-1))).subtract(i).divide(new s(1).subtract(i))}function j(t,e,o,i){const p=d(new s(.5).subtract(i.divide(o)),new s(0),new s(.5)),r=a(l(e,p),new s(1).subtract(e.subtract(p).divide(new s(.5).subtract(p))),new s(1));return t.multiply(r)}function I(t,e){return new p(t.rgb.multiply(e),e)}function O(t,e){return r(t.multiply(3.634).add(e.multiply(5.153)).add(7.381),new s(1))}t([e(s)],T.prototype,"constant",void 0),t([e(c.ofType(s,8))],T.prototype,"stops",void 0),t([e(c.ofType(s,8))],T.prototype,"values",void 0),t([e(v)],T.prototype,"count",void 0);export{g as FlowAnimationState,x as FlowColorValue,T as FlowFloatValue,w as FlowImageryConfig,b as FlowLineConfig,S as getFadeOpacity,V as getFlowExtrudedPosition,I as getFlowPremultipliedColor,M as getFlowSize,j as getFragmentColor,O as getTimeSeed};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterColorizerShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as p,uniform as r,define as s,option as l,
|
|
2
|
+
import{__decorate as t,__param as o}from"tslib";import{GraphShaderModule as i,FragmentOutput as e,location as p,uniform as r,define as s,option as l,texture as n,input as a,VertexInput as c,UniformGroup as h,FragmentInput as g}from"../../../GraphShaderModule.js";import{Vec3 as y,Vec4 as u,ifElse as d,texture2D as v,sign as x,mix as P,Vec2 as m,Mat3 as j,Float as b,Sampler2D as f}from"../../../graph/glsl.js";import{getPixelLocation as k,isOutside as M,getPixel as S,ProjectionConfig as T,ProjectionTextures as _}from"./projection.js";class w extends c{}t([p(0,m)],w.prototype,"position",void 0);class z extends g{}class E extends h{}t([r(j)],E.prototype,"dvsMat3",void 0),t([r(m)],E.prototype,"coordScale",void 0),t([r(m)],E.prototype,"srcImageSize",void 0),t([r(b)],E.prototype,"opacity",void 0);class O extends i{constructor(){super(...arguments),this.applyProjection=!0,this.lookupProjection=!1,this.bilinear=!1,this.bicubic=!1,this.nearestOnEdge=!1,this.applyPixelMask=!1,this.applyPixelHighlights=!1}vertex(t){const o=t.position,{dvsMat3:i,coordScale:e}=this.config,p=i.multiply(new y(o.multiply(e),1));return{uv:o,glPosition:new u(p,1)}}fragment(t){const o=new e,i=k(t.uv,this.applyProjection?this.projectionConfig:void 0,this.applyProjection?this.projectionTextures:void 0,this.lookupProjection);let p=this._colorize(i,t.uv);this.applyPixelHighlights&&(p=this._highlightPixels(t.uv,p));const r=d(M(i),new u(0),p);let s=r.a.multiply(this.config.opacity);if(this.applyPixelMask){const o=this._getPixelMask(t.uv);s=s.multiply(o)}return o.fragColor=new u(r.rgb,1).multiply(s),o}_getPixel(t){const{config:o,bicubic:i,bilinear:e,nearestOnEdge:p}=this;return S(t,{texture:this.texture,srcImageSize:o.srcImageSize},{bicubic:i,bilinear:e,nearestOnEdge:p})}_getPixelMask(t){const o=v(this.pixelMaskTexture,t);return x(o.a)}_highlightPixels(t,o){const i=v(this.highlightTexture,t),e=x(i.a);return P(o,i,e)}}t([s],O.prototype,"applyProjection",void 0),t([s],O.prototype,"lookupProjection",void 0),t([s],O.prototype,"bilinear",void 0),t([s],O.prototype,"bicubic",void 0),t([s],O.prototype,"nearestOnEdge",void 0),t([s],O.prototype,"applyPixelMask",void 0),t([s],O.prototype,"applyPixelHighlights",void 0),t([r(E)],O.prototype,"config",void 0),t([l(T)],O.prototype,"projectionConfig",void 0),t([n(f)],O.prototype,"texture",void 0),t([n(_)],O.prototype,"projectionTextures",void 0),t([n(f)],O.prototype,"pixelMaskTexture",void 0),t([n(f)],O.prototype,"highlightTexture",void 0),t([o(0,a(w))],O.prototype,"vertex",null),t([o(0,a(z))],O.prototype,"fragment",null);export{O as BaseRasterColorizerShader,z as RasterColorizerFragmentInput,E as RasterConfig};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterHighlightShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as
|
|
2
|
+
import{__decorate as t}from"tslib";import{define as i}from"../../../GraphShaderModule.js";import{mix as r,Vec4 as s,texture2D as o}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as h}from"./BaseRasterColorizerShader.js";class e extends h{constructor(){super(...arguments),this.hasExistingHighlights=!1}_computeHighlightedColor(t,i,h){const e=r(new s(0),i,t);if(this.hasExistingHighlights){const i=o(this.highlightTexture,h);return r(i,e,t)}return e}}t([i],e.prototype,"hasExistingHighlights",void 0);export{e as BaseRasterHighlightShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerLUTShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as
|
|
2
|
+
import{__decorate as o}from"tslib";import{uniform as r,texture as t}from"../../../GraphShaderModule.js";import{Float as e}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as s}from"./BaseRasterColorizerShader.js";import{lookupColor as i,ColormapConfig as p,ColormapTextures as l}from"./lut.js";class m extends s{constructor(){super(...arguments),this.type="RasterColorizerLUTShader"}_colorize(o){const r=this._getPixel(o);return i(r,new e(1),this.colormapConfig,this.colormapTextures,!1)}}o([r(p)],m.prototype,"colormapConfig",void 0),o([t(l)],m.prototype,"colormapTextures",void 0);export{m as RasterColorizerLUTShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as o}from"tslib";import{define as
|
|
2
|
+
import{__decorate as o}from"tslib";import{define as r,uniform as i,option as t,texture as e}from"../../../GraphShaderModule.js";import{Vec4 as s,clamp as l,Float as a,Vec3 as p}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as m}from"./BaseRasterColorizerShader.js";import{rgb2hsv as n,hsv2rgb as h}from"./colorConversion.js";import{lookupColor as d,ColormapConfig as c,ColormapTextures as u}from"./lut.js";import{getSurfaceValues as f,hillshade as x,HillshadeConfig as y}from"./surface.js";class C extends m{constructor(){super(...arguments),this.type="RasterColorizerShadedReliefShader",this.applyColormap=!1,this.isMultidirectional=!1}_colorize(o){const r=f(this.texture,o,this.config.srcImageSize),i=x(r,this.hillshadeConfig,this.isMultidirectional);if(!this.applyColormap)return new s(i.x,i.x,i.x,i.a);const{minValue:t,maxValue:e}=this.hillshadeConfig,m=this._getPixel(o),c=e.subtract(t),u=m.r.subtract(t),y=l(u.divide(c),new a(0),new a(1)),C=d(new s(y,y,y,1),new a(255),this.colormapConfig,this.colormapTextures),g=n(C.xyz),v=h(new p(g.xy,i.x));return new s(v,C.a.multiply(i.a))}}o([r],C.prototype,"applyColormap",void 0),o([r],C.prototype,"isMultidirectional",void 0),o([i(y)],C.prototype,"hillshadeConfig",void 0),o([t(c)],C.prototype,"colormapConfig",void 0),o([e(u)],C.prototype,"colormapTextures",void 0);export{C as RasterColorizerShadedReliefShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{define as o,uniform as r,option as i}from"../../../GraphShaderModule.js";import{Vec4 as
|
|
2
|
+
import{__decorate as t}from"tslib";import{define as o,uniform as r,option as i,texture as s}from"../../../GraphShaderModule.js";import{Vec4 as e,Float as p}from"../../../graph/glsl.js";import{BaseRasterColorizerShader as a}from"./BaseRasterColorizerShader.js";import{lookupColor as m,ColormapConfig as h,ColormapTextures as l}from"./lut.js";import{stretch as c,stretchWithStatisticsTexture as n,StretchConfig as d,StatisticsConfig as u,StatisticsTextures as y}from"./stretch.js";class f extends a{constructor(){super(...arguments),this.type="RasterColorizerStretchShader",this.isMultiband=!0,this.applyColormap=!1,this.useGamma=!1,this.noOp=!1,this.draStretchType=0}_colorize(t){const o=this._getPixel(t);if(this.noOp)return o;const{draStretchType:r,stretchConfig:i,useGamma:s,statisticsConfig:a,statisticsTextures:h}=this;let l=0===r?c(o,i,s):n(o,i,a,h,s,2===r);if(this.isMultiband)return l;if(l=new e(l.rrr,l.a),this.applyColormap){const t=this.useGamma?255:1;l=m(l,new p(t),this.colormapConfig,this.colormapTextures)}return l}}t([o],f.prototype,"isMultiband",void 0),t([o],f.prototype,"applyColormap",void 0),t([o],f.prototype,"useGamma",void 0),t([o],f.prototype,"noOp",void 0),t([o],f.prototype,"draStretchType",void 0),t([r(d)],f.prototype,"stretchConfig",void 0),t([i(h)],f.prototype,"colormapConfig",void 0),t([s(l)],f.prototype,"colormapTextures",void 0),t([i(u)],f.prototype,"statisticsConfig",void 0),t([s(y)],f.prototype,"statisticsTextures",void 0);export{f as RasterColorizerStretchShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterXYBandHighlightShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{uniform as o,define as e,
|
|
2
|
+
import{__decorate as t}from"tslib";import{uniform as o,define as e,texture as i,UniformGroup as r}from"../../../GraphShaderModule.js";import{sign as s,clamp as a,Float as p,texture2D as h,Vec2 as l,Mat3 as g,Vec4 as n,Sampler2D as y}from"../../../graph/glsl.js";import{BaseRasterHighlightShader as d}from"./BaseRasterHighlightShader.js";import{getRangeClipFactor as u}from"./processor/math.js";class m extends r{}t([o(l)],m.prototype,"xRange",void 0),t([o(l)],m.prototype,"yRange",void 0),t([o(g)],m.prototype,"bandSwap",void 0),t([o(n)],m.prototype,"color",void 0);class x extends d{constructor(){super(...arguments),this.type="RasterXYBandHighlightShader",this.useMask=!1}_colorize(t,o){const e=this._getPixel(t),{xRange:i,yRange:r,color:g,bandSwap:n}=this.xyRangeHighlightConfig,{x:y,y:d}=n.multiply(e.rgb);let m=u(y,i).multiply(u(d,r)).multiply(s(e.a));if(this.useMask){const t=a(y.subtract(i.x).divide(i.y.subtract(i.x)),new p(0),new p(1)),o=a(r.y.subtract(d).divide(r.y.subtract(r.x)),new p(0),new p(1)),e=h(this.xyMaskHighlightTexture,new l(t,o)).r;m=m.multiply(e)}return this._computeHighlightedColor(m,g,o)}}t([e],x.prototype,"useMask",void 0),t([o(m)],x.prototype,"xyRangeHighlightConfig",void 0),t([i(y)],x.prototype,"xyMaskHighlightTexture",void 0);export{x as RasterXYBandHighlightShader,m as XYRangeHighlightConfig};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as o}from"tslib";import{uniform as r,UniformGroup as
|
|
2
|
+
import{__decorate as o}from"tslib";import{uniform as r,texture as t,UniformGroup as e,TextureGroup as p}from"../../../GraphShaderModule.js";import{clamp as l,Float as a,Vec2 as m,texture2D as d,Vec4 as i,step as n,Sampler2D as s}from"../../../graph/glsl.js";class c extends e{}o([r(a)],c.prototype,"colormapOffset",void 0),o([r(a)],c.prototype,"colormapMaxIndex",void 0);class u extends p{}function x(o,r,t,e,p=!0){const{colormapOffset:s,colormapMaxIndex:c}=t,{colormapTexture:u}=e,x=o.r.multiply(r).subtract(s),f=l(x,new a(0),c),y=new m(f.add(.5).divide(c.add(1)),0),v=d(u,y),w=new i(v.rgb,v.a.multiply(o.a));if(p)return w;const M=n(new a(0),x).multiply(n(x,t.colormapMaxIndex));return w.multiply(M)}o([t(s)],u.prototype,"colormapTexture",void 0);export{c as ColormapConfig,u as ColormapTextures,x as lookupColor};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/AspectShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{uniform as t,UniformGroup as i}from"../../../../GraphShaderModule.js";import{Vec2 as r,negate as s,sign as l,abs as o,Float as p,step as m,mod as d,atan as a,mix as c,Vec4 as
|
|
2
|
+
import{__decorate as e}from"tslib";import{uniform as t,UniformGroup as i}from"../../../../GraphShaderModule.js";import{Vec2 as r,negate as s,sign as l,abs as o,Float as p,step as m,mod as d,atan as a,mix as c,Vec4 as u}from"../../../../graph/glsl.js";import{getSurfaceValues as n,computeDeltaZ as y}from"../surface.js";import{BaseRasterProcessorShader as f}from"./BaseRasterProcessorShader.js";class h extends i{}e([t(r)],h.prototype,"cellSize",void 0);class g extends f{constructor(){super(...arguments),this.type="AspectShader"}_process(e){const t=n(this.texture,e,this.config.srcImageSize),i=new r(1).divide(this.aspectConfig.cellSize.multiply(8)),{x:f,y:h}=y(t,i),g=s(h),w=t[9].multiply(l(o(f).add(o(g)))),S=o(l(f)),x=new p(3.14159265359),j=new p(0),v=m(j,g).multiply(.5).multiply(x).add(m(g,j).multiply(1.5).multiply(x)),z=d(new p(2.5).multiply(x).add(a(g,s(f))),new p(2).multiply(x)),C=c(v,z,S).multiply(180).divide(x);return new u(C,C,C,w)}}e([t(h)],g.prototype,"aspectConfig",void 0);export{g as AspectShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as
|
|
2
|
+
import{__decorate as t,__param as e}from"tslib";import{GraphShaderModule as o,FragmentOutput as r,location as s,uniform as i,texture as p,input as n,VertexInput as l,UniformGroup as m,FragmentInput as a}from"../../../../GraphShaderModule.js";import{Vec4 as g,Vec2 as u,Sampler2D as c}from"../../../../graph/glsl.js";import{uvToClip as x}from"../../utils.js";import{getPixelLocation as d,getPixel as f}from"../projection.js";class v extends l{}t([s(0,u)],v.prototype,"position",void 0);class y extends a{}class h extends m{}t([i(u)],h.prototype,"srcImageSize",void 0);class j extends o{vertex(t){return{uv:t.position,glPosition:new g(x(t.position),0,1)}}fragment(t){const e=new r,o=d(t.uv),s=this._process(o);return e.fragColor=new g(s.rgb,1).multiply(s.a),e}_getPixel(t){return f(t,{texture:this.texture,srcImageSize:this.config.srcImageSize})}}t([i(h)],j.prototype,"config",void 0),t([p(c)],j.prototype,"texture",void 0),t([e(0,n(v))],j.prototype,"vertex",null),t([e(0,n(y))],j.prototype,"fragment",null);export{j as BaseRasterProcessorShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ColormapToRGBShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as o}from"tslib";import{uniform as r}from"../../../../GraphShaderModule.js";import{Float as
|
|
2
|
+
import{__decorate as o}from"tslib";import{uniform as r,texture as t}from"../../../../GraphShaderModule.js";import{Float as e,Vec4 as s}from"../../../../graph/glsl.js";import{lookupColor as p,ColormapConfig as i,ColormapTextures as m}from"../lut.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class l extends a{constructor(){super(...arguments),this.type="ColormapToRGBShader"}_process(o){const r=this._getPixel(o),t=p(r,new e(1),this.colormapConfig,this.colormapTextures,!1);return new s(t.xyz.multiply(255),t.a)}}o([r(i)],l.prototype,"colormapConfig",void 0),o([t(m)],l.prototype,"colormapTextures",void 0);export{l as ColormapToRGBShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ConvolutionShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as o}from"tslib";import{uniform as t,define as e,UniformGroup as r}from"../../../../GraphShaderModule.js";import{Vec2 as s,Float as i,reduce2D as n,Vec4 as l,clamp as a,FixedArray2D as p,texture2D as c}from"../../../../graph/glsl.js";import{mirror as d}from"../surface.js";import{BaseRasterProcessorShader as m}from"./BaseRasterProcessorShader.js";class u extends r{}o([t(p.ofType(i,5,5,!0))],u.prototype,"kernel",void 0),o([t(s)],u.prototype,"clampRange",void 0);class
|
|
2
|
+
import{__decorate as o}from"tslib";import{uniform as t,define as e,UniformGroup as r}from"../../../../GraphShaderModule.js";import{Vec2 as s,Float as i,reduce2D as n,Vec4 as l,clamp as a,FixedArray2D as p,texture2D as c}from"../../../../graph/glsl.js";import{mirror as d}from"../surface.js";import{BaseRasterProcessorShader as m}from"./BaseRasterProcessorShader.js";class u extends r{}o([t(p.ofType(i,5,5,!0))],u.prototype,"kernel",void 0),o([t(s)],u.prototype,"clampRange",void 0);class h extends m{constructor(){super(...arguments),this.type="ConvolutionShader",this.rows=3,this.cols=3}_process(o){const{rows:t,cols:e}=this,r=new s(Math.floor(t/2),Math.floor(e/2)),p=new i(1).divide(this.config.srcImageSize),{kernel:m}=this.convolutionConfig,u=n(m,{initialValue:new l(0,0,0,1),xRange:[0,t],yRange:[0,e],callback:(t,e,n,a)=>{const m=new s(new i(n),new i(a)).subtract(r).multiply(p),u=c(this.texture,d(o.add(m))),h=u.rgb.multiply(e).add(t.rgb),g=u.a.multiply(t.a);return new l(h,g)}}),{clampRange:h}=this.convolutionConfig;return new l(a(u.rgb,h.x,h.y),1).multiply(u.a)}}o([e],h.prototype,"rows",void 0),o([e],h.prototype,"cols",void 0),o([t(u)],h.prototype,"convolutionConfig",void 0);export{h as ConvolutionShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CurvatureShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{uniform as r,define as e,UniformGroup as
|
|
2
|
+
import{__decorate as t}from"tslib";import{uniform as r,define as e,UniformGroup as s}from"../../../../GraphShaderModule.js";import{negate as i,dot as o,Vec3 as a,Vec4 as u,Float as d}from"../../../../graph/glsl.js";import{getSurfaceValues as p}from"../surface.js";import{BaseRasterProcessorShader as l}from"./BaseRasterProcessorShader.js";class c extends s{}t([r(d)],c.prototype,"zlFactor",void 0);class m extends l{constructor(){super(...arguments),this.type="CurvatureShader"}_process(t){const r=p(this.texture,t,this.config.srcImageSize),e=r[3].add(r[5]).multiply(.5).subtract(r[4]),s=r[1].add(r[7]).multiply(.5).subtract(r[4]),{zlFactor:d}=this.curvatureConfig,{curvatureType:l}=this;let c;if("standard"===l)c=i(d).multiply(e.add(s));else{const t=r[2].subtract(r[0]).add(r[6]).subtract(r[8]).divide(4),u=r[5].subtract(r[3]).divide(2),p=r[1].subtract(r[7]).divide(2),m=u.multiply(u),n=p.multiply(p),y=u.multiply(p),v=d.divide(m.add(n));c="profile"===l?o(new a(e,s,t),new a(m,n,y)).multiply(v):o(new a(e,s,i(t)),new a(n,m,y)).multiply(i(v))}return new u(c,c,c,r[9])}}t([e],m.prototype,"curvatureType",void 0),t([r(c)],m.prototype,"curvatureConfig",void 0);export{m as CurvatureShader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{uniform as e,define as r,UniformGroup as
|
|
2
|
+
import{__decorate as t}from"tslib";import{uniform as e,define as r,UniformGroup as s}from"../../../../GraphShaderModule.js";import{step as a,Float as i,mix as o,Vec4 as n,clamp as l,Vec2 as u,texture2D as c,sqrt as p,max as m,min as d,Int as w,block as b}from"../../../../graph/glsl.js";import{mirror as h}from"../surface.js";import{BaseRasterProcessorShader as g}from"./BaseRasterProcessorShader.js";import{invertValue as y}from"./math.js";class f extends s{}t([e(u)],f.prototype,"clampRange",void 0);class _ extends g{constructor(){super(...arguments),this.type="FocalStatisticsShader",this.rows=3,this.cols=3,this.fill=!1}_process(t){const e=this._process1(t),r=a(new i(1),e.a);if(!this.fill)return this._clamp(e.rgb,r);const s=this._getPixel(t),n=o(e.rgb,s.rgb,s.a);return this._clamp(n,r)}_clamp(t,e){const{clampRange:r}=this.focalStatisticsConfig;return new n(l(t,r.x,r.y),1).multiply(e)}_process1(t){const{rows:e,cols:r}=this,s=new u(Math.floor(e/2),Math.floor(r/2)),a=new i(1).divide(this.config.srcImageSize),o=this._getPixel(t),{statisticsType:l}=this,w="min"===l||"max"===l?new n(o.rgb,0):new n(0,0,0,0);switch(l){case"min":return this._stat(e,r,w,(e,r,o)=>{const l=new u(new i(r),new i(o)).subtract(s).multiply(a),p=c(this.texture,h(t.add(l))),m=d(e.rgb,p.rgb);return new n(m,e.a.add(p.a))});case"max":return this._stat(e,r,w,(e,r,o)=>{const l=new u(new i(r),new i(o)).subtract(s).multiply(a),p=c(this.texture,h(t.add(l))),d=m(e.rgb,p.rgb);return new n(d,e.a.add(p.a))});case"mean":{const o=this._stat(e,r,w,(e,r,o)=>{const l=new u(new i(r),new i(o)).subtract(s).multiply(a),p=c(this.texture,h(t.add(l))),m=e.rgb.add(p.rgb.multiply(p.a));return new n(m,e.a.add(p.a))}),l=o.rgb.multiply(y(o.a));return new n(l,o.a)}case"stddev":{const o=this._stat(e,r,w,(e,r,o)=>{const l=new u(new i(r),new i(o)).subtract(s).multiply(a),p=c(this.texture,h(t.add(l))),m=e.rgb.add(p.rgb.multiply(p.a));return new n(m,e.a.add(p.a))}),l=this._stat(e,r,w,(e,r,o)=>{const l=new u(new i(r),new i(o)).subtract(s).multiply(a),p=c(this.texture,h(t.add(l))),m=e.rgb.add(p.a.multiply(p.rgb).multiply(p.rgb));return new n(m,e.a.add(p.a))}),m=y(l.a),d=p(l.subtract(o.multiply(o).multiply(m)).multiply(m));return new n(d.rgb,o.a)}default:return o}}_stat(t=3,e=3,r,s){const a=new w(0).setMutable().setDebugName("StatColIterator"),i=new w(0).setMutable().setDebugName("StatRowIterator"),o=r.setMutable().setDebugName("StatAccumulator"),l=s(o,a,i).setDebugName("StatPredicate"),u=b({iterX:a,iterY:i,accumulator:o},n,l,({out:r,iterX:s,iterY:a,accumulator:i,subgraph:o})=>`\n for (${a} = 0; ${a} < ${t}; ${a}++) {\n for (${s} = 0; ${s} < ${e}; ${s}++) {\n \n ${o.body}\n \n ${i} = ${o.varName};\n }\n }\n ${r} = ${i};\n `).setDebugName("statBody");return u}}t([r],_.prototype,"rows",void 0),t([r],_.prototype,"cols",void 0),t([r],_.prototype,"statisticsType",void 0),t([r],_.prototype,"fill",void 0),t([e(f)],_.prototype,"focalStatisticsConfig",void 0);export{_ as FocalStatisticsShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/HillshadeShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as i}from"tslib";import{define as r,uniform as t}from"../../../../GraphShaderModule.js";import{Vec4 as s}from"../../../../graph/glsl.js";import{getSurfaceValues as o,hillshade as e,HillshadeConfig as l}from"../surface.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class h extends a{constructor(){super(...arguments),this.type="HillshadeShader",this.isMultidirectional=!1}_process(i){const
|
|
2
|
+
import{__decorate as i}from"tslib";import{define as r,uniform as t}from"../../../../GraphShaderModule.js";import{Vec4 as s}from"../../../../graph/glsl.js";import{getSurfaceValues as o,hillshade as e,HillshadeConfig as l}from"../surface.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class h extends a{constructor(){super(...arguments),this.type="HillshadeShader",this.isMultidirectional=!1}_process(i){const r=o(this.texture,i,this.config.srcImageSize),t=e(r,this.hillshadeConfig,this.isMultidirectional);return new s(t.rgb.multiply(255),t.a)}}i([r],h.prototype,"isMultidirectional",void 0),i([t(l)],h.prototype,"hillshadeConfig",void 0);export{h as HillshadeShader};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MultiRasterMixin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{define as
|
|
2
|
+
import{__decorate as t}from"tslib";import{define as e,option as o,texture as a,uniform as r,UniformGroup as s,TextureGroup as i}from"../../../../GraphShaderModule.js";import{texture2D as n,Vec3 as p,Float as u,Mat3 as h,Sampler2D as l}from"../../../../graph/glsl.js";class m extends s{}t([r(u)],m.prototype,"image1Const",void 0),t([r(h)],m.prototype,"imageSwap",void 0);class g extends s{}t([r(u)],g.prototype,"image1Const",void 0),t([r(u)],g.prototype,"image2Const",void 0),t([r(h)],g.prototype,"imageSwap",void 0);class c extends i{}t([a(l)],c.prototype,"image1",void 0);class y extends i{}t([a(l)],y.prototype,"image1",void 0),t([a(l)],y.prototype,"image2",void 0);const d=r=>{const s=r;class i extends s{constructor(){super(...arguments),this.constantCount=0,this.imageCount=1}_getRasterValues(t){const{imageCount:e}=this;if(1===e){const e=n(this.texture,t);return{a:e.r,b:e.g,c:e.b,alpha:e.a}}if(2===e){const e=this._getTwoValues(t);return{a:e.a,b:e.b,c:e.b,alpha:e.alpha}}return this._getThreeValues(t)}_getTwoValues(t){const e=n(this.texture,t);if(1===this.constantCount){const{imageSwap:t,image1Const:o}=this.twoRasterConfig,a=t.multiply(new p(e.r,o,0));return{a:a.x,b:a.y,alpha:e.a}}const o=n(this.twoRasterTextures.image1,t);return{a:e.r,b:o.r,alpha:e.a.multiply(o.a)}}_getThreeValues(t){const e=n(this.texture,t),{imageSwap:o,image1Const:a,image2Const:r}=this.threeRasterConfig;if(2===this.constantCount){const t=o.multiply(new p(e.r,a,r));return{a:t.x,b:t.y,c:t.z,alpha:e.a}}if(1===this.constantCount){const r=n(this.threeRasterTextures.image1,t),s=o.multiply(new p(e.r,r.r,a));return{a:s.x,b:s.y,c:s.z,alpha:e.a.multiply(r.a)}}const s=n(this.threeRasterTextures.image1,t),i=n(this.threeRasterTextures.image2,t);return{a:e.r,b:s.r,c:i.r,alpha:e.a.multiply(s.a).multiply(i.a)}}}return t([e],i.prototype,"constantCount",void 0),t([e],i.prototype,"imageCount",void 0),t([o(m)],i.prototype,"twoRasterConfig",void 0),t([o(g)],i.prototype,"threeRasterConfig",void 0),t([a(c)],i.prototype,"twoRasterTextures",void 0),t([a(y)],i.prototype,"threeRasterTextures",void 0),i};export{d as MultiRasterMixin,y as ThreeRasterTextures,c as TwoRasterTextures};
|
package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ShadedReliefShader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as
|
|
2
|
+
import{__decorate as o}from"tslib";import{uniform as r,texture as e}from"../../../../GraphShaderModule.js";import{clamp as t,Float as s,Vec4 as i,Vec3 as p}from"../../../../graph/glsl.js";import{rgb2hsv as l,hsv2rgb as a}from"../colorConversion.js";import{lookupColor as m,ColormapConfig as n,ColormapTextures as d}from"../lut.js";import{HillshadeShader as h}from"./HillshadeShader.js";class u extends h{constructor(){super(...arguments),this.type="ShadedReliefShader"}_process(o){const r=super._process(o),{minValue:e,maxValue:n}=this.hillshadeConfig,d=this._getPixel(o),h=n.subtract(e),u=d.r.subtract(e),c=t(u.divide(h),new s(0),new s(1)),f=m(new i(c,c,c,1),new s(255),this.colormapConfig,this.colormapTextures),x=l(f.xyz),y=a(new p(x.xy,r.x.divide(255))).multiply(255);return new i(y,f.a.multiply(r.a))}}o([r(n)],u.prototype,"colormapConfig",void 0),o([e(d)],u.prototype,"colormapTextures",void 0);export{u as ShadedReliefShader};
|