@arcgis/core 4.31.0-next.20240619 → 4.31.0-next.20240621

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.
Files changed (189) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{3a74d3fc690177a703f5.js → 019ce38b02e3bf517125.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{222807cfaa2e17d0efea.js → 6745cedf6f82c8917904.js} +1 -1
  4. package/assets/esri/core/workers/chunks/7b6cd976367a0dd297d6.js +1 -0
  5. package/assets/esri/core/workers/chunks/{d7c0728bdd9a7fd1d701.js → 9d677af08238d9e09e72.js} +36 -25
  6. package/assets/esri/core/workers/chunks/bedf60888f07b78b314d.js +1 -0
  7. package/assets/esri/core/workers/chunks/c39237c00c1d588dc107.js +1 -0
  8. package/assets/esri/core/workers/chunks/cf1530abe2842f3d8eb0.js +1 -0
  9. package/assets/esri/core/workers/chunks/de7fa31d86a65ccdffc1.js +1 -0
  10. package/assets/esri/core/workers/chunks/{8ee8f3c54b2cce217845.js → f13fb6b712e364bbf48c.js} +1 -1
  11. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ar.json +1 -1
  12. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_bg.json +1 -1
  13. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_bs.json +1 -1
  14. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ca.json +1 -1
  15. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_cs.json +1 -1
  16. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_da.json +1 -1
  17. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_de.json +1 -1
  18. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_el.json +1 -1
  19. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_es.json +1 -1
  20. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_et.json +1 -1
  21. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_fi.json +1 -1
  22. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_fr.json +1 -1
  23. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_he.json +1 -1
  24. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_hr.json +1 -1
  25. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_hu.json +1 -1
  26. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_id.json +1 -1
  27. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_it.json +1 -1
  28. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ja.json +1 -1
  29. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ko.json +1 -1
  30. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_lt.json +1 -1
  31. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_lv.json +1 -1
  32. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_nb.json +1 -1
  33. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_nl.json +1 -1
  34. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pl.json +1 -1
  35. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pt-BR.json +1 -1
  36. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pt-PT.json +1 -1
  37. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ro.json +1 -1
  38. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ru.json +1 -1
  39. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sk.json +1 -1
  40. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sl.json +1 -1
  41. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sr.json +1 -1
  42. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sv.json +1 -1
  43. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_th.json +1 -1
  44. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_tr.json +1 -1
  45. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_uk.json +1 -1
  46. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_vi.json +1 -1
  47. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-CN.json +1 -1
  48. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-HK.json +1 -1
  49. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-TW.json +1 -1
  50. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  51. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  52. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  53. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  54. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  55. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  56. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  57. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  58. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  59. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  60. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  61. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  62. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  63. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  64. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  65. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  66. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  67. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  68. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  69. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  70. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  71. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nb.json +1 -1
  72. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  73. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  74. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  75. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  76. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  77. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  78. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  79. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  80. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  81. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  82. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  83. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  84. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  85. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  86. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  87. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  88. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  89. package/chunks/CheckerBoard.glsl.js +9 -6
  90. package/chunks/ComponentShader.glsl.js +23 -23
  91. package/chunks/HUDMaterial.glsl.js +29 -33
  92. package/chunks/HighlightApply.glsl.js +150 -23
  93. package/chunks/HighlightDownsample.glsl.js +25 -12
  94. package/chunks/ImageMaterial.glsl.js +1 -2
  95. package/chunks/LineMarker.glsl.js +30 -30
  96. package/chunks/RibbonLine.glsl.js +42 -42
  97. package/chunks/ShadowHighlight.glsl.js +15 -6
  98. package/chunks/Terrain.glsl.js +6 -3
  99. package/interfaces.d.ts +50 -14
  100. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  101. package/layers/mixins/EditBusLayer.js +1 -1
  102. package/layers/mixins/FeatureLayerBase.js +1 -1
  103. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  104. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  105. package/layers/support/featureLayerUtils.js +1 -1
  106. package/package.json +1 -1
  107. package/portal/schemas/definitions.js +1 -1
  108. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
  109. package/support/revision.js +1 -1
  110. package/views/2d/layers/support/ExportStrategy.js +1 -1
  111. package/views/3d/layers/I3SMeshView3D.js +1 -1
  112. package/views/3d/layers/SceneLayerView3D.js +1 -1
  113. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  114. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  115. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  116. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  117. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  118. package/views/3d/layers/i3s/Highlights.js +1 -1
  119. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  120. package/views/3d/support/HighlightOptions.js +1 -1
  121. package/views/3d/support/HighlightOptionsBase.js +5 -0
  122. package/views/3d/terrain/OverlayRenderTargets.js +1 -1
  123. package/views/3d/terrain/TerrainRenderer.js +1 -1
  124. package/views/3d/webgl-engine/collections/Component/ComponentData.js +1 -1
  125. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  126. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  127. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +1 -2
  128. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  129. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  130. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +18 -7
  131. package/views/3d/webgl-engine/core/shaderModules/Integer2PassUniform.js +5 -0
  132. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  133. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  134. package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
  135. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  136. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  137. package/views/3d/webgl-engine/lib/Material.js +1 -1
  138. package/views/3d/webgl-engine/lib/Program.js +1 -1
  139. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  140. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  141. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  142. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  143. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  144. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  145. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  146. package/views/3d/webgl-engine/lib/edgeRendering/interfaces.js +1 -1
  147. package/views/3d/webgl-engine/lib/edgeRendering/util.js +1 -1
  148. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  149. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  150. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  151. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  152. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  153. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  154. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  155. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  156. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  157. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  158. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  159. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  160. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  161. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  162. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  163. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  164. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  165. package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +1 -1
  166. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  167. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  168. package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
  169. package/views/SceneView.js +1 -1
  170. package/views/SelectionManager.js +1 -1
  171. package/views/support/HighlightDefaults.js +1 -1
  172. package/views/webgl/BufferObject.js +1 -1
  173. package/views/webgl/RenderingContext.js +1 -1
  174. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  175. package/widgets/OrientedImageryViewer/adapters/OrientedImageryViewerViewModelAdapter2D.js +1 -1
  176. package/widgets/OrientedImageryViewer/utils.js +1 -1
  177. package/widgets/OrientedImageryViewer.js +1 -1
  178. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  179. package/widgets/PanoramicViewer/constants.js +1 -1
  180. package/widgets/PanoramicViewer/utils.js +1 -1
  181. package/widgets/Print.js +1 -1
  182. package/assets/esri/core/workers/chunks/24484bd0185ea0f79760.js +0 -1
  183. package/assets/esri/core/workers/chunks/4f2be9fd4ff5b3ad3110.js +0 -1
  184. package/assets/esri/core/workers/chunks/88c7d84a1fde246ca71f.js +0 -1
  185. package/assets/esri/core/workers/chunks/986520dd0de64105dbff.js +0 -1
  186. package/assets/esri/core/workers/chunks/ad0a87dba95785ad6171.js +0 -1
  187. package/chunks/HighlightBlur.glsl.js +0 -25
  188. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +0 -5
  189. package/views/3d/webgl-engine/shaders/HighlightBlur.glsl.js +0 -5
@@ -1 +1 @@
1
- {"widgetLabel":"要素表","header":"{title} (总数:{count} | 选择:{selected})","headerNoSelection":"{title} (总数:{count})","untitled":"无标题","relatedRecords":"相关记录","attachments":"附件","loading":"正在加载...","syncing":"正在同步...","errorData":"数据错误。","errorLayer":"图层错误。","errorUpdateFailed":"更新失败。","errorDomainType":"域类型不受支持。","show":"显示","hide":"隐藏","menu":"菜单","options":"选项","allColums":"所有列","sortAsc":"升序排列","sortDesc":"降序排列","toggleColumns":"显示/隐藏列","clearSelection":"清除选择内容","centerOnSelection":"所选内容居中显示","showSelected":"显示所选项","filter":"过滤器","addField":"添加字段","refreshData":"刷新数据","date":"日期","number":"数值","string":"字符串","showAllRecords":"显示全部","zoomToSelection":"缩放至所选项","deleteSelection":"删除所选项","deleteSelectionCount":"删除所选项:{count}","deleteRecordsRemoved":"这些记录将永久移除","keepRecords":"保留记录","recordsCount":"记录 ({count})","noLayer":"没有图层","exitRelatedRecords":"退出相关记录","showAllTables":"试_Show all tables________________验","selectALayer":"试_Select a layer_______________验"}
1
+ {"widgetLabel":"要素表","header":"{title} (总数:{count} | 选择:{selected})","headerNoSelection":"{title} (总数:{count})","untitled":"无标题","relatedRecords":"相关记录","attachments":"附件","loading":"正在加载...","syncing":"正在同步...","errorData":"数据错误。","errorLayer":"图层错误。","errorUpdateFailed":"更新失败。","errorDomainType":"域类型不受支持。","show":"显示","hide":"隐藏","menu":"菜单","options":"选项","allColums":"所有列","sortAsc":"升序排列","sortDesc":"降序排列","toggleColumns":"显示/隐藏列","clearSelection":"清除选择内容","centerOnSelection":"所选内容居中显示","showSelected":"显示所选项","filter":"过滤器","addField":"添加字段","refreshData":"刷新数据","date":"日期","number":"数值","string":"字符串","showAllRecords":"显示全部","zoomToSelection":"缩放至所选项","deleteSelection":"删除所选项","deleteSelectionCount":"删除所选项:{count}","deleteRecordsRemoved":"这些记录将永久移除","keepRecords":"保留记录","recordsCount":"记录 ({count})","noLayer":"没有图层","exitRelatedRecords":"退出相关记录","showAllTables":"显示所有表格","selectALayer":"选择图层"}
@@ -1 +1 @@
1
- {"widgetLabel":"圖徵表格","header":"{title} (總計: {count} | 選擇: {selected})","headerNoSelection":"{title} (總計: {count})","untitled":"無標題","relatedRecords":"相關記錄","attachments":"附件","loading":"正在載入...","syncing":"正在同步...","errorData":"資料錯誤。","errorLayer":"圖層錯誤。","errorUpdateFailed":"更新失敗.","errorDomainType":"網域類型不受支援。","show":"顯示","hide":"隱藏","menu":"功能表","options":"選項","allColums":"所有欄","sortAsc":"升冪排列","sortDesc":"降冪排列","toggleColumns":"顯示/隱藏欄","clearSelection":"清除所選內容","centerOnSelection":"置中選擇","showSelected":"顯示選擇","filter":"篩選器","addField":"新增欄位","refreshData":"重新整理資料","date":"日期","number":"數字","string":"字串","showAllRecords":"顯示全部","zoomToSelection":"縮放至選擇","deleteSelection":"刪除選擇","deleteSelectionCount":"刪除選擇: {count}","deleteRecordsRemoved":"將永久移除這些記錄","keepRecords":"保留記錄","recordsCount":"記錄 ({count})","noLayer":"無圖層","exitRelatedRecords":"結束相關記錄","showAllTables":"試_Show all tables________________驗","selectALayer":"試_Select a layer_______________驗"}
1
+ {"widgetLabel":"圖徵表格","header":"{title} (總計: {count} | 選擇: {selected})","headerNoSelection":"{title} (總計: {count})","untitled":"無標題","relatedRecords":"相關記錄","attachments":"附件","loading":"正在載入...","syncing":"正在同步...","errorData":"資料錯誤。","errorLayer":"圖層錯誤。","errorUpdateFailed":"更新失敗.","errorDomainType":"網域類型不受支援。","show":"顯示","hide":"隱藏","menu":"功能表","options":"選項","allColums":"所有欄","sortAsc":"升冪排列","sortDesc":"降冪排列","toggleColumns":"顯示/隱藏欄","clearSelection":"清除所選內容","centerOnSelection":"置中選擇","showSelected":"顯示選擇","filter":"篩選器","addField":"新增欄位","refreshData":"重新整理資料","date":"日期","number":"數字","string":"字串","showAllRecords":"顯示全部","zoomToSelection":"縮放至選擇","deleteSelection":"刪除選擇","deleteSelectionCount":"刪除選擇: {count}","deleteRecordsRemoved":"將永久移除這些記錄","keepRecords":"保留記錄","recordsCount":"記錄 ({count})","noLayer":"無圖層","exitRelatedRecords":"結束相關記錄","showAllTables":"顯示所有表格","selectALayer":"選擇圖層"}
@@ -1 +1 @@
1
- {"widgetLabel":"圖徵表格","header":"{title} (總計: {count} | 選擇: {selected})","headerNoSelection":"{title} (總計: {count})","untitled":"無標題","relatedRecords":"相關記錄","attachments":"附件","loading":"正在載入...","syncing":"正在同步...","errorData":"資料錯誤。","errorLayer":"圖層錯誤。","errorUpdateFailed":"更新失敗.","errorDomainType":"網域類型不受支援。","show":"顯示","hide":"隱藏","menu":"功能表","options":"選項","allColums":"所有欄","sortAsc":"升冪排列","sortDesc":"降冪排列","toggleColumns":"顯示/隱藏欄","clearSelection":"清除所選內容","centerOnSelection":"置中選擇","showSelected":"顯示選擇","filter":"篩選器","addField":"新增欄位","refreshData":"重新整理資料","date":"日期","number":"數字","string":"字串","showAllRecords":"顯示全部","zoomToSelection":"縮放至選擇","deleteSelection":"刪除選擇","deleteSelectionCount":"刪除選擇: {count}","deleteRecordsRemoved":"將永久移除這些記錄","keepRecords":"保留記錄","recordsCount":"記錄 ({count})","noLayer":"無圖層","exitRelatedRecords":"結束相關記錄","showAllTables":"試_Show all tables________________驗","selectALayer":"試_Select a layer_______________驗"}
1
+ {"widgetLabel":"圖徵表格","header":"{title} (總計: {count} | 選擇: {selected})","headerNoSelection":"{title} (總計: {count})","untitled":"無標題","relatedRecords":"相關記錄","attachments":"附件","loading":"正在載入...","syncing":"正在同步...","errorData":"資料錯誤。","errorLayer":"圖層錯誤。","errorUpdateFailed":"更新失敗.","errorDomainType":"網域類型不受支援。","show":"顯示","hide":"隱藏","menu":"功能表","options":"選項","allColums":"所有欄","sortAsc":"升冪排列","sortDesc":"降冪排列","toggleColumns":"顯示/隱藏欄","clearSelection":"清除所選內容","centerOnSelection":"置中選擇","showSelected":"顯示選擇","filter":"篩選器","addField":"新增欄位","refreshData":"重新整理資料","date":"日期","number":"數字","string":"字串","showAllRecords":"顯示全部","zoomToSelection":"縮放至選擇","deleteSelection":"刪除選擇","deleteSelectionCount":"刪除選擇: {count}","deleteRecordsRemoved":"將永久移除這些記錄","keepRecords":"保留記錄","recordsCount":"記錄 ({count})","noLayer":"無圖層","exitRelatedRecords":"結束相關記錄","showAllTables":"顯示所有表格","selectALayer":"選擇圖層"}
@@ -2,15 +2,15 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{multipassTerrainTest as e}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{ColorConversion as r}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as o}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4PassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as s}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as l}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{TransparencyPassType as d}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";import{VertexAttribute as t}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function n(n){const c=new l,{vertex:p,fragment:v}=c;return o(p,n),c.attributes.add(t.POSITION,"vec3"),c.attributes.add(t.UV0,"vec2"),c.varyings.add("vUV","vec2"),n.multipassEnabled&&c.varyings.add("depth","float"),p.code.add(s`
5
+ import{multipassTerrainTest as e}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{alphaCutoff as r}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{ColorConversion as o}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as a}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4PassUniform as s}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as l}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as d}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{TransparencyPassType as t}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";import{VertexAttribute as n}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function c(c){const f=new d,{vertex:p,fragment:u}=f;return a(p,c),f.attributes.add(n.POSITION,"vec3"),f.attributes.add(n.UV0,"vec2"),f.varyings.add("vUV","vec2"),c.multipassEnabled&&f.varyings.add("depth","float"),p.code.add(l`
6
6
  void main(void) {
7
7
  vUV = uv0;
8
- ${n.multipassEnabled?"depth = (view * vec4(position, 1.0)).z;":""}
8
+ ${c.multipassEnabled?"depth = (view * vec4(position, 1.0)).z;":""}
9
9
  gl_Position = proj * view * vec4(position, 1.0);
10
10
  }
11
- `),c.include(e,n),v.uniforms.add(new a("size",(e=>e.size))),v.uniforms.add(new i("color1",(e=>e.color1))),v.uniforms.add(new i("color2",(e=>e.color2))),v.include(r),n.transparencyPassType===d.ColorAlpha&&(c.outputs.add("fragColor","vec4",0),c.outputs.add("fragAlpha","float",1)),v.code.add(s`
11
+ `),f.include(e,c),u.uniforms.add(new i("size",(e=>e.size))),u.uniforms.add(new s("color1",(e=>e.color1))),u.uniforms.add(new s("color2",(e=>e.color2))),u.include(o),c.transparencyPassType===t.ColorAlpha&&(f.outputs.add("fragColor","vec4",0),f.outputs.add("fragAlpha","float",1)),u.code.add(l`
12
12
  void main() {
13
- ${n.multipassEnabled?"terrainDepthTest(depth);":""}
13
+ ${c.multipassEnabled?"terrainDepthTest(depth);":""}
14
14
  vec2 uvScaled = vUV / (2.0 * size);
15
15
 
16
16
  vec2 uv = fract(uvScaled - 0.25);
@@ -19,8 +19,11 @@ import{multipassTerrainTest as e}from"../views/3d/webgl-engine/core/shaderLibrar
19
19
  float t = mix(abs(ab.x + ab.y), 0.5, fade);
20
20
 
21
21
  fragColor = mix(color2, color1, t);
22
- ${n.transparencyPassType===d.ColorAlpha?s`
22
+ if( fragColor.a < ${l.float(r)})
23
+ discard;
24
+
25
+ ${c.transparencyPassType===t.ColorAlpha?l`
23
26
  fragColor = premultiplyAlpha(fragColor);
24
27
  fragAlpha = fragColor.a;`:""}
25
28
  }
26
- `),c}const c=Object.freeze(Object.defineProperty({__proto__:null,build:n},Symbol.toStringTag,{value:"Module"}));export{c as C,n as b};
29
+ `),f}const f=Object.freeze(Object.defineProperty({__proto__:null,build:c},Symbol.toStringTag,{value:"Module"}));export{f as C,c as b};
@@ -2,7 +2,7 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";import{OverlayContent as a}from"../views/3d/terrain/OverlayContent.js";import{IntegratedMeshMode as i}from"../views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js";import{ComponentData as l,ComponentDataType as t}from"../views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js";import{VertexDiscardByOpacity as d}from"../views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardByOpacity.glsl.js";import{ForwardLinearDepth as n}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{ShaderOutput as s}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SlicePass as c}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{NormalType as m}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttribute as g}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{VertexColor as u}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{VertexNormal as v}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js";import{VertexPosition as h}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js";import{OutputDepth as p}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as w}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadLinearDepth as C}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{ComputeMaterialColor as b}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js";import{ComputeNormalTexture as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js";import{ComputeShadingNormal as y}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js";import{EvaluateSceneLighting as x,addLightingGlobalFactor as L}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightIntensity as j}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{multipassTerrainTest as S}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{PBRMode as M,PhysicallyBasedRenderingParameters as N}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadBaseColorTexture as O}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js";import{ReadShadowMapPass as T}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{OverlayIM as A,getIMColorTexture as W}from"../views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js";import{alphaCutoff as P}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{DiscardOrAdjustAlphaDraw as B}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js";import{EllipsoidMode as R}from"../views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js";import{glsl as D}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as $}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as z}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{TransparencyPassType as E}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";function V(V){const I=new $;I.include(h,V),I.include(v,V),I.include(u,V),I.include(g,V),I.include(n,V),I.include(l,V),I.include(B,V),I.include(c,V),I.include(O,V),I.include(d,V);const{vertex:_,fragment:G}=I;V.pbrMode!==M.Normal&&V.pbrMode!==M.Schematic||(I.include(N,V),V.hasNormalTexture&&I.include(f,V));const F=V.output===s.Shadow||V.output===s.ShadowHighlight||V.output===s.ShadowExcludeHighlight;F&&V.componentData===t.Varying?_.code.add(D`#define discardShadows(castShadows) { if(!castShadows) { gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`):_.code.add(D`#define discardShadows(castShadows) {}`);const H=V.integratedMeshMode===i.ColorOverlay||V.integratedMeshMode===i.ColorOverlayWithWater,k=H&&V.output===s.Color&&V.pbrMode===M.WaterOnIntegratedMesh;H&&(I.include(x,V),I.include(A,V),V.spherical?_.code.add(D`
5
+ import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";import{OverlayContent as a}from"../views/3d/terrain/OverlayContent.js";import{IntegratedMeshMode as i}from"../views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js";import{ComponentData as l,ComponentDataType as t}from"../views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js";import{VertexDiscardByOpacity as d}from"../views/3d/webgl-engine/collections/Component/Material/shader/VertexDiscardByOpacity.glsl.js";import{ForwardLinearDepth as n}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{ShaderOutput as s}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SlicePass as c}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{NormalType as m}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{TextureCoordinateAttribute as g}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{VertexColor as u}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{VertexNormal as v}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js";import{VertexPosition as h}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js";import{OutputDepth as p}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js";import{OutputHighlight as w}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{ReadLinearDepth as C}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{ComputeMaterialColor as b}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js";import{ComputeNormalTexture as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js";import{ComputeShadingNormal as y}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js";import{EvaluateSceneLighting as x,addLightingGlobalFactor as L}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{addMainLightIntensity as j}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js";import{multipassTerrainTest as S}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{PBRMode as M,PhysicallyBasedRenderingParameters as N}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadBaseColorTexture as T}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js";import{ReadShadowMapPass as O}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{OverlayIM as W,getIMColorTexture as A}from"../views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js";import{alphaCutoff as P}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{DiscardOrAdjustAlphaDraw as B}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js";import{EllipsoidMode as R}from"../views/3d/webgl-engine/core/shaderLibrary/util/EllipsoidMode.js";import{glsl as D}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as $}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as z}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{TransparencyPassType as E}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";function V(V){const I=new $;I.include(h,V),I.include(v,V),I.include(u,V),I.include(g,V),I.include(n,V),I.include(l,V),I.include(B,V),I.include(c,V),I.include(T,V),I.include(d,V);const{vertex:_,fragment:H}=I;V.pbrMode!==M.Normal&&V.pbrMode!==M.Schematic||(I.include(N,V),V.hasNormalTexture&&I.include(f,V));const G=V.output===s.Shadow||V.output===s.ShadowHighlight||V.output===s.ShadowExcludeHighlight;G&&V.componentData===t.Varying?_.code.add(D`#define discardShadows(castShadows) { if(!castShadows) { gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`):_.code.add(D`#define discardShadows(castShadows) {}`);const F=V.integratedMeshMode===i.ColorOverlay||V.integratedMeshMode===i.ColorOverlayWithWater,k=F&&V.output===s.Color&&V.pbrMode===M.WaterOnIntegratedMesh;F&&(I.include(x,V),I.include(W,V),V.spherical?_.code.add(D`
6
6
  const float invEllipsoidRadius = ${D.float(1/(V.ellipsoidMode===R.Earth?e.radius:V.ellipsoidMode===R.Mars?o.radius:r.radius))};
7
7
  vec2 projectOverlay(vec3 pos) {
8
8
  return pos.xy / (1.0 + invEllipsoidRadius * pos.z);
@@ -28,7 +28,7 @@ import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";imp
28
28
  forwardTextureCoordinates();
29
29
  forwardVertexColor();
30
30
  forwardLinearDepth();
31
- ${V.output===s.ObjectAndLayerIdColor?D`forwardObjectAndLayerIdColor();`:""}
31
+ forwardObjectAndLayerIdColor();
32
32
  ${k?V.spherical?D`
33
33
  groundNormal = normalize(positionWorld());
34
34
  tbnTangent = normalize(cross(vec3(0.0, 0.0, 1.0), groundNormal));
@@ -36,11 +36,11 @@ import{earth as e,mars as o,moon as r}from"../geometry/support/Ellipsoid.js";imp
36
36
  groundNormal = vec3(0.0, 0.0, 1.0);
37
37
  tbnTangent = vec3(1.0, 0.0, 0.0);
38
38
  tbnBiTangent = vec3(0.0, 1.0, 0.0);`:""}
39
- ${H?D`setOverlayVTC(projectOverlay(position));`:""}
39
+ ${F?D`setOverlayVTC(projectOverlay(position));`:""}
40
40
  }
41
- `),V.output===s.Color&&(G.include(C),I.include(S,V),I.include(b,V),I.include(y,V),I.include(x,V),V.transparencyPassType===E.ColorAlpha&&(I.outputs.add("fragColor","vec4",0),I.outputs.add("fragAlpha","float",1)),V.receiveShadows?(I.include(T,V),G.code.add(D`float evaluateShadow() {
41
+ `),V.output===s.Color&&(H.include(C),I.include(S,V),I.include(b,V),I.include(y,V),I.include(x,V),V.transparencyPassType===E.ColorAlpha&&(I.outputs.add("fragColor","vec4",0),I.outputs.add("fragAlpha","float",1)),V.receiveShadows?(I.include(O,V),H.code.add(D`float evaluateShadow() {
42
42
  return readShadowMap(vPositionWorldCameraRelative, linearDepth);
43
- }`)):G.code.add(D`float evaluateShadow() { return 0.0; }`),H&&G.uniforms.add(new z("ovColorTex",((e,o)=>W(e,o)))),G.code.add(D`
43
+ }`)):H.code.add(D`float evaluateShadow() { return 0.0; }`),F&&H.uniforms.add(new z("ovColorTex",((e,o)=>A(e,o)))),H.code.add(D`
44
44
  void main() {
45
45
  discardBySlice(vPositionWorldCameraRelative);
46
46
  ${V.multipassEnabled?D`terrainDepthTest(vPosition_view.z);`:""}
@@ -57,8 +57,8 @@ return readShadowMap(vPositionWorldCameraRelative, linearDepth);
57
57
  externalColor,
58
58
  externalColorMixMode
59
59
  );
60
- ${H?D`vec4 overlayColor = getOverlayColor(ovColorTex, vtcOverlay);`:""}
61
- `),V.pbrMode===M.Normal||V.pbrMode===M.Schematic?(j(G),G.code.add(D`
60
+ ${F?D`vec4 overlayColor = getOverlayColor(ovColorTex, vtcOverlay);`:""}
61
+ `),V.pbrMode===M.Normal||V.pbrMode===M.Schematic?(j(H),H.code.add(D`
62
62
  ${V.pbrMode===M.Normal?D`
63
63
  applyPBRFactors();
64
64
  if (int(externalColorMixMode) == 3) {
@@ -66,9 +66,9 @@ return readShadowMap(vPositionWorldCameraRelative, linearDepth);
66
66
  }`:""}
67
67
  vec3 normalVertex = shadingNormalWorld();
68
68
  float additionalIrradiance = 0.02 * mainLightIntensity[2];
69
- `),V.hasNormalTexture?G.code.add(D`mat3 tangentSpace = computeTangentSpace(normalVertex, vPositionWorldCameraRelative, vuv0);
70
- vec3 shadingNormal = computeTextureNormal(tangentSpace, vuv0);`):G.code.add(D`vec3 shadingNormal = normalVertex;`),G.code.add(D`${V.spherical?D`vec3 normalGround = normalize(positionWorld());`:D`vec3 normalGround = vec3(0.0, 0.0, 1.0);`}
71
- `),G.code.add(D`
69
+ `),V.hasNormalTexture?H.code.add(D`mat3 tangentSpace = computeTangentSpace(normalVertex, vPositionWorldCameraRelative, vuv0);
70
+ vec3 shadingNormal = computeTextureNormal(tangentSpace, vuv0);`):H.code.add(D`vec3 shadingNormal = normalVertex;`),H.code.add(D`${V.spherical?D`vec3 normalGround = normalize(positionWorld());`:D`vec3 normalGround = vec3(0.0, 0.0, 1.0);`}
71
+ `),H.code.add(D`
72
72
  vec3 viewDir = normalize(vPositionWorldCameraRelative);
73
73
  float ssao = 1.0 - occlusion * evaluateAmbientOcclusionInverse();
74
74
  ${V.snowCover?D`
@@ -78,18 +78,18 @@ vec3 shadingNormal = computeTextureNormal(tangentSpace, vuv0);`):G.code.add(D`ve
78
78
  ssao = mix(ssao, 0.5 * ssao, snow);
79
79
  shadingNormal = mix(shadingNormal, surfaceNormal, snow);`:""}
80
80
 
81
- ${H?D` materialColor = materialColor * (1.0 - overlayColor.a) + overlayColor;`:""}
81
+ ${F?D` materialColor = materialColor * (1.0 - overlayColor.a) + overlayColor;`:""}
82
82
 
83
83
  vec3 additionalLight = evaluateAdditionalLighting(ssao, positionWorld());
84
84
  vec4 shadedColor = vec4(evaluateSceneLightingPBR(shadingNormal, materialColor.rgb, evaluateShadow(), ssao, additionalLight, viewDir, normalGround, mrr, emission, additionalIrradiance), materialColor.a);
85
- `)):(V.receiveShadows?G.code.add(D`float shadow = evaluateShadow();`):V.spherical?(L(G),G.code.add(D`float additionalAmbientScale = additionalDirectedAmbientLight(positionWorld());
86
- float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);`)):G.code.add(D`float shadow = 0.0;`),k&&G.uniforms.add(new z("ovNormalTex",((e,o)=>o.overlay?.getTexture(a.WaterNormal)))),V.snowCover&&G.code.add(D`vec3 surfaceNormal = normalize(cross(dFdx(vPositionWorldCameraRelative), dFdy(vPositionWorldCameraRelative)));
85
+ `)):(V.receiveShadows?H.code.add(D`float shadow = evaluateShadow();`):V.spherical?(L(H),H.code.add(D`float additionalAmbientScale = additionalDirectedAmbientLight(positionWorld());
86
+ float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);`)):H.code.add(D`float shadow = 0.0;`),k&&H.uniforms.add(new z("ovNormalTex",((e,o)=>o.overlay?.getTexture(a.WaterNormal)))),V.snowCover&&H.code.add(D`vec3 surfaceNormal = normalize(cross(dFdx(vPositionWorldCameraRelative), dFdy(vPositionWorldCameraRelative)));
87
87
  float snow = smoothstep(0.5, 0.55, dot(surfaceNormal, normalize(positionWorld())));
88
- materialColor.rgb = mix(materialColor.rgb, vec3(1), snow);`),G.code.add(D`
88
+ materialColor.rgb = mix(materialColor.rgb, vec3(1), snow);`),H.code.add(D`
89
89
  float ambientOcclusion = evaluateAmbientOcclusion();
90
90
  vec3 additionalLight = evaluateAdditionalLighting(ambientOcclusion, positionWorld());
91
91
 
92
- ${H?D` materialColor = materialColor * (1.0 - overlayColor.a) + overlayColor;`:""}
92
+ ${F?D` materialColor = materialColor * (1.0 - overlayColor.a) + overlayColor;`:""}
93
93
 
94
94
  vec4 shadedColor = vec4(evaluateSceneLighting(shadingNormalWorld(), materialColor.rgb, shadow, ambientOcclusion, additionalLight), materialColor.a);
95
95
  ${k?D`
@@ -102,13 +102,13 @@ materialColor.rgb = mix(materialColor.rgb, vec3(1), snow);`),G.code.add(D`
102
102
  // un-gamma the ground color to mix in linear space
103
103
  shadedColor = mix(shadedColor, waterColorNonLinear, waterColorLinear.w);
104
104
  }`:""}
105
- `)),G.code.add(D`
105
+ `)),H.code.add(D`
106
106
  fragColor = highlightSlice(shadedColor, vPositionWorldCameraRelative);
107
107
  ${V.transparencyPassType===E.ColorAlpha?D`
108
108
  fragColor = premultiplyAlpha(fragColor);
109
109
  fragAlpha = fragColor.a;`:""}
110
110
  }
111
- `));const q=V.output===s.Depth;return(q||F||V.output===s.ViewshedShadow)&&(q||I.include(p,V),G.code.add(D`
111
+ `));const q=V.output===s.Depth;return(q||G||V.output===s.ViewshedShadow)&&(q||I.include(p,V),H.code.add(D`
112
112
  void main() {
113
113
  discardBySlice(vPositionWorldCameraRelative);
114
114
 
@@ -117,7 +117,7 @@ materialColor.rgb = mix(materialColor.rgb, vec3(1), snow);`),G.code.add(D`
117
117
 
118
118
  ${q?"":D`outputDepth(linearDepth);`}
119
119
  }
120
- `)),V.output===s.Normal&&(I.include(y,V),G.code.add(D`
120
+ `)),V.output===s.Normal&&(I.include(y,V),H.code.add(D`
121
121
  void main() {
122
122
  discardBySlice(vPositionWorldCameraRelative);
123
123
 
@@ -136,18 +136,18 @@ materialColor.rgb = mix(materialColor.rgb, vec3(1), snow);`),G.code.add(D`
136
136
  vec4 textureColor = readBaseColorTexture();
137
137
  discardOrAdjustAlpha(textureColor);
138
138
 
139
- ${H?D`fragColor = getOverlayColorTexel(vtcOverlay);`:"outputObjectAndLayerIdColor();"}
139
+ ${F?D`fragColor = getOverlayColorTexel(vtcOverlay);`:"outputObjectAndLayerIdColor();"}
140
140
  }
141
- `),V.output===s.Highlight&&(I.include(w),G.code.add(D`
141
+ `),V.output===s.Highlight&&(I.include(w),H.code.add(D`
142
142
  void main() {
143
143
  discardBySlice(vPositionWorldCameraRelative);
144
144
 
145
145
  vec4 textureColor = readBaseColorTexture();
146
146
  discardOrAdjustAlpha(textureColor);
147
147
 
148
- ${H?D`
149
- vec4 overlayColor = getCombinedOverlayColor();
150
- if (overlayColor.a == 0.0) {
148
+ ${F?D`
149
+ vec4 overlayHighlightBits = getCombinedOverlayColor();
150
+ if (overlayHighlightBits == vec4(0.0)) {
151
151
  fragColor = vec4(0.0);
152
152
  return;
153
153
  }`:""}
@@ -2,7 +2,7 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{set as e,copy as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as r}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{ZEROS as i}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{ShaderOutput as l}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as t}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{ObjectAndLayerIdColor as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{AlignPixel as s}from"../views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js";import{HUD as n}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js";import{HUDOcclusionPass as c}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js";import{HUDVisibility as d}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js";import{occludedHighlightFlag as u,unoccludedHighlightFlag as p}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{VisualVariables as g}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{alphaCutoff as f}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{ColorConversion as v}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{RgbaFloatEncoding as m}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{ScreenSizePerspective as b,addScreenSizePerspective as h,addScreenSizePerspectiveAlignment as w}from"../views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import{addPixelRatio as x}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4PassUniform as P}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as S}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as j}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as z}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as y}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{TransparencyPassType as A}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";import{VertexAttribute as O}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function $(o){const r=new z,$=o.signedDistanceFieldEnabled;if(r.include(n,o),r.include(t,o),o.occlusionPass)return r.include(c,o),r;const{vertex:D,fragment:T}=r;r.include(b),T.include(m),T.include(v),r.include(g,o),r.include(a,o),r.include(d),r.varyings.add("vcolor","vec4"),r.varyings.add("vtc","vec2"),r.varyings.add("vsize","vec2"),r.varyings.add("voccluded","float"),D.uniforms.add(new P("viewport",((e,o)=>o.camera.fullViewport)),new C("screenOffset",((o,r)=>e(B,2*o.screenOffset[0]*r.camera.pixelRatio,2*o.screenOffset[1]*r.camera.pixelRatio))),new C("anchorPosition",(e=>L(e))),new P("materialColor",(e=>e.color))),x(D),$&&(D.uniforms.add(new P("outlineColor",(e=>e.outlineColor))),T.uniforms.add(new P("outlineColor",(e=>F(e)?e.outlineColor:i)),new S("outlineSize",(e=>F(e)?e.outlineSize:0)))),o.pixelSnappingEnabled&&D.include(s),o.hasScreenSizePerspective&&(h(D),w(D)),o.debugDrawLabelBorder&&r.varyings.add("debugBorderCoords","vec4"),r.attributes.add(O.UV0,"vec2"),r.attributes.add(O.COLOR,"vec4"),r.attributes.add(O.SIZE,"vec2"),r.attributes.add(O.FEATUREATTRIBUTE,"vec4"),D.code.add(j`
5
+ import{set as e,copy as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as r}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{ZEROS as i}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{ShaderOutput as l}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js";import{SliceDraw as t}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{ObjectAndLayerIdColor as a}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js";import{AlignPixel as s}from"../views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js";import{HUD as n}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js";import{HUDOcclusionPass as c}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js";import{HUDVisibility as d}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js";import{OutputHighlight as u}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{VisualVariables as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{alphaCutoff as f}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaCutoff.js";import{ColorConversion as g}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{RgbaFloatEncoding as v}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{ScreenSizePerspective as m,addScreenSizePerspective as b,addScreenSizePerspectiveAlignment as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import{addPixelRatio as w}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float2PassUniform as x}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4PassUniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as P}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as S}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as j}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as z}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{TransparencyPassType as y}from"../views/3d/webgl-engine/lib/TransparencyPassType.js";import{VertexAttribute as A}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function $(o){const r=new j,$=o.signedDistanceFieldEnabled;if(r.include(n,o),r.include(t,o),o.occlusionPass)return r.include(c,o),r;const{vertex:D,fragment:B}=r;r.include(m),B.include(v),B.include(g),r.include(p,o),r.include(a,o),r.include(d),r.varyings.add("vcolor","vec4"),r.varyings.add("vtc","vec2"),r.varyings.add("vsize","vec2"),r.varyings.add("voccluded","float"),D.uniforms.add(new C("viewport",((e,o)=>o.camera.fullViewport)),new x("screenOffset",((o,r)=>e(F,2*o.screenOffset[0]*r.camera.pixelRatio,2*o.screenOffset[1]*r.camera.pixelRatio))),new x("anchorPosition",(e=>L(e))),new C("materialColor",(e=>e.color))),w(D),$&&(D.uniforms.add(new C("outlineColor",(e=>e.outlineColor))),B.uniforms.add(new C("outlineColor",(e=>O(e)?e.outlineColor:i)),new P("outlineSize",(e=>O(e)?e.outlineSize:0)))),o.pixelSnappingEnabled&&D.include(s),o.hasScreenSizePerspective&&(b(D),h(D)),o.debugDrawLabelBorder&&r.varyings.add("debugBorderCoords","vec4"),r.attributes.add(A.UV0,"vec2"),r.attributes.add(A.COLOR,"vec4"),r.attributes.add(A.SIZE,"vec2"),r.attributes.add(A.FEATUREATTRIBUTE,"vec4"),D.code.add(S`
6
6
  void main(void) {
7
7
  ProjectHUDAux projectAux;
8
8
  vec4 posProj = projectPositionHUD(projectAux);
@@ -14,10 +14,10 @@ import{set as e,copy as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{cre
14
14
  return;
15
15
  }
16
16
  vec2 inputSize;
17
- ${o.hasScreenSizePerspective?j`
17
+ ${o.hasScreenSizePerspective?S`
18
18
  inputSize = screenSizePerspectiveScaleVec2(size, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspective);
19
19
  vec2 screenOffsetScaled = screenSizePerspectiveScaleVec2(screenOffset, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspectiveAlignment);
20
- `:j`
20
+ `:S`
21
21
  inputSize = size;
22
22
  vec2 screenOffsetScaled = screenOffset;`}
23
23
 
@@ -27,20 +27,20 @@ import{set as e,copy as o}from"../core/libs/gl-matrix-2/math/vec2.js";import{cre
27
27
  vec4 quadOffset = vec4(0.0);
28
28
  bool visible = testHUDVisibility(posProj);
29
29
  voccluded = visible ? 0.0 : 1.0;
30
- `);const H=j`vec2 uv01 = floor(uv0);
30
+ `);const T=S`vec2 uv01 = floor(uv0);
31
31
  vec2 uv = uv0 - uv01;
32
- quadOffset.xy = ((uv01 - anchorPosition) * 2.0 * combinedSize + screenOffsetScaled) / viewport.zw * posProj.w;`,U=o.pixelSnappingEnabled?$?j`posProj = alignToPixelOrigin(posProj, viewport.zw) + quadOffset;`:j`posProj += quadOffset;
32
+ quadOffset.xy = ((uv01 - anchorPosition) * 2.0 * combinedSize + screenOffsetScaled) / viewport.zw * posProj.w;`,U=o.pixelSnappingEnabled?$?S`posProj = alignToPixelOrigin(posProj, viewport.zw) + quadOffset;`:S`posProj += quadOffset;
33
33
  if (inputSize.x == size.x) {
34
34
  posProj = alignToPixelOrigin(posProj, viewport.zw);
35
- }`:j`posProj += quadOffset;`;D.code.add(j`
35
+ }`:S`posProj += quadOffset;`;D.code.add(S`
36
36
  ${o.occlusionTestEnabled?"if (visible) {":""}
37
- ${H}
37
+ ${T}
38
38
  ${o.vvColor?"vcolor = interpolateVVColor(featureAttribute.y) * materialColor;":"vcolor = color / 255.0 * materialColor;"}
39
39
 
40
- ${o.output===l.ObjectAndLayerIdColor?j`vcolor.a = 1.0;`:""}
40
+ ${o.output===l.ObjectAndLayerIdColor?S`vcolor.a = 1.0;`:""}
41
41
 
42
- bool alphaDiscard = vcolor.a < ${j.float(f)};
43
- ${$?`alphaDiscard = alphaDiscard && outlineColor.a < ${j.float(f)};`:""}
42
+ bool alphaDiscard = vcolor.a < ${S.float(f)};
43
+ ${$?`alphaDiscard = alphaDiscard && outlineColor.a < ${S.float(f)};`:""}
44
44
  if (alphaDiscard) {
45
45
  // "early discard" if both symbol color (= fill) and outline color (if applicable) are transparent
46
46
  gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
@@ -54,14 +54,14 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
54
54
 
55
55
  ${o.debugDrawLabelBorder?"debugBorderCoords = vec4(uv01, 1.5 / combinedSize);":""}
56
56
  vsize = inputSize;
57
- ${o.occlusionTestEnabled?j`} else { vtc = vec2(0.0);
57
+ ${o.occlusionTestEnabled?S`} else { vtc = vec2(0.0);
58
58
  ${o.debugDrawLabelBorder?"debugBorderCoords = vec4(0.5, 0.5, 1.5 / combinedSize);}":"}"}`:""}
59
59
  }
60
- `),T.uniforms.add(new y("tex",(e=>e.texture)));const V=o.debugDrawLabelBorder?j`(isBorder > 0.0 ? 0.0 : ${j.float(f)})`:j.float(f),E=j`
61
- ${o.debugDrawLabelBorder?j`
60
+ `),B.uniforms.add(new z("tex",(e=>e.texture)));const V=o.debugDrawLabelBorder?S`(isBorder > 0.0 ? 0.0 : ${S.float(f)})`:S.float(f),H=o.output===l.Highlight,E=S`
61
+ ${o.debugDrawLabelBorder?S`
62
62
  float isBorder = float(any(lessThan(debugBorderCoords.xy, debugBorderCoords.zw)) || any(greaterThan(debugBorderCoords.xy, 1.0 - debugBorderCoords.zw)));`:""}
63
63
 
64
- ${o.sampleSignedDistanceFieldTexelCenter?j`
64
+ ${o.sampleSignedDistanceFieldTexelCenter?S`
65
65
  // Attempt to sample texel centers to avoid that thin cross outlines
66
66
  // disappear with large symbol sizes.
67
67
  // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/7058#issuecomment-603041
@@ -71,11 +71,11 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
71
71
  // Calculate how much we have to add/subtract to/from each texel to reach the size of an onscreen pixel
72
72
  vec2 scaleFactor = (vsize - txSize) * texelSize;
73
73
  vec2 samplePos = vtc + (vec2(1.0, -1.0) * texelSize) * scaleFactor;
74
- `:j`
74
+ `:S`
75
75
  vec2 samplePos = vtc;
76
76
  `}
77
77
 
78
- ${$?j`
78
+ ${$?S`
79
79
  vec4 fillPixelColor = vcolor;
80
80
 
81
81
  // Get distance and map it into [-0.5, 0.5]
@@ -98,7 +98,7 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
98
98
 
99
99
  if (
100
100
  outlineAlphaFactor + fillAlphaFactor < ${V} ||
101
- fillPixelColor.a + outlinePixelColor.a < ${j.float(f)}
101
+ fillPixelColor.a + outlinePixelColor.a < ${S.float(f)}
102
102
  ) {
103
103
  discard;
104
104
  }
@@ -108,42 +108,38 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
108
108
  vec3 compositeColor = vec3(outlinePixelColor) * outlinePixelColor.a +
109
109
  vec3(fillPixelColor) * fillPixelColor.a * (1.0 - outlinePixelColor.a);
110
110
 
111
- fragColor = vec4(compositeColor, compositeAlpha);
111
+ ${H?"":"fragColor = vec4(compositeColor, compositeAlpha);"}
112
112
  } else {
113
113
  if (fillAlphaFactor < ${V}) {
114
114
  discard;
115
115
  }
116
116
 
117
- fragColor = premultiplyAlpha(fillPixelColor);
117
+ ${H?"":"fragColor = premultiplyAlpha(fillPixelColor);"}
118
118
  }
119
119
 
120
120
  // visualize SDF:
121
121
  // fragColor = vec4(clamp(-dist/vsize.x*2.0, 0.0, 1.0), clamp(dist/vsize.x*2.0, 0.0, 1.0), 0.0, 1.0);
122
- `:j`
122
+ `:S`
123
123
  vec4 texColor = texture(tex, vtc, -0.5);
124
124
  if (texColor.a < ${V}) {
125
125
  discard;
126
126
  }
127
- fragColor = texColor * premultiplyAlpha(vcolor);
127
+ ${H?"":"fragColor = texColor * premultiplyAlpha(vcolor);"}
128
128
  `}
129
129
 
130
130
  // Draw debug border with transparency, so that original texels along border are still partially visible
131
- ${o.debugDrawLabelBorder?j`fragColor = mix(fragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);`:""}
132
- `;switch(o.output){case l.Color:o.transparencyPassType===A.ColorAlpha&&(r.outputs.add("fragColor","vec4",0),r.outputs.add("fragAlpha","float",1)),T.code.add(j`
131
+ ${!H&&o.debugDrawLabelBorder?S`fragColor = mix(fragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);`:""}
132
+ `;switch(o.output){case l.Color:o.transparencyPassType===y.ColorAlpha&&(r.outputs.add("fragColor","vec4",0),r.outputs.add("fragAlpha","float",1)),B.code.add(S`
133
133
  void main() {
134
134
  ${E}
135
- ${o.transparencyPassType===A.FrontFace?"fragColor.rgb /= fragColor.a;":""}
136
- ${o.transparencyPassType===A.ColorAlpha?"fragAlpha = fragColor.a;":""}
137
- }`);break;case l.ObjectAndLayerIdColor:T.code.add(j`
135
+ ${o.transparencyPassType===y.FrontFace?"fragColor.rgb /= fragColor.a;":""}
136
+ ${o.transparencyPassType===y.ColorAlpha?"fragAlpha = fragColor.a;":""}
137
+ }`);break;case l.ObjectAndLayerIdColor:B.code.add(S`
138
138
  void main() {
139
139
  ${E}
140
140
  outputObjectAndLayerIdColor();
141
- }`);break;case l.Highlight:T.constants.add("occludedHighlightFlag","vec4",u),T.constants.add("unoccludedHighlightFlag","vec4",p),T.code.add(j`
141
+ }`);break;case l.Highlight:r.include(u,o),B.code.add(S`
142
142
  void main() {
143
143
  ${E}
144
- if (voccluded == 1.0) {
145
- fragColor = occludedHighlightFlag;
146
- } else {
147
- fragColor = unoccludedHighlightFlag;
148
- }
149
- }`)}return r}function F(e){return e.outlineColor[3]>0&&e.outlineSize>0}function L(e,r=B){return e.textureIsSignedDistanceField?D(e.anchorPosition,e.distanceFieldBoundingBox,r):o(r,e.anchorPosition),r}function D(o,r,i){null!=r?e(i,o[0]*(r[2]-r[0])+r[0],o[1]*(r[3]-r[1])+r[1]):e(i,0,0)}const B=r(),T=Object.freeze(Object.defineProperty({__proto__:null,build:$,calculateAnchorPosForRendering:L},Symbol.toStringTag,{value:"Module"}));export{T as H,$ as b,L as c};
144
+ outputHighlightNet(voccluded == 1.0);
145
+ }`)}return r}function O(e){return e.outlineColor[3]>0&&e.outlineSize>0}function L(e,r=F){return e.textureIsSignedDistanceField?D(e.anchorPosition,e.distanceFieldBoundingBox,r):o(r,e.anchorPosition),r}function D(o,r,i){null!=r?e(i,o[0]*(r[2]-r[0])+r[0],o[1]*(r[3]-r[1])+r[1]):e(i,0,0)}const F=r(),B=Object.freeze(Object.defineProperty({__proto__:null,build:$,calculateAnchorPosForRendering:L},Symbol.toStringTag,{value:"Module"}));export{B as H,$ as b,L as c};
@@ -2,33 +2,160 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
4
  */
5
- import{s as e}from"./vec42.js";import{create as o}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{Float2PassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float4PassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as r}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as l}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as n}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{VertexAttribute as a}from"../views/3d/webgl-engine/lib/VertexAttribute.js";import{o as s,b as c}from"./HighlightDownsample.glsl.js";function g(){const o=new l,{vertex:g,fragment:d}=o,f=g.code,h=d.code;return o.attributes.add(a.POSITION,"vec2"),o.varyings.add("uv","vec2"),o.attributes.add(a.UV0,"vec2"),g.uniforms.add(new n("coverageTex",(e=>e.coverageTexture)),new i("coverageRounding",(e=>e.coverageRounding))),f.add(r`void main() {
5
+ import{Float2PassUniform as e}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{FloatPassUniform as o}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{Integer2PassUniform as l}from"../views/3d/webgl-engine/core/shaderModules/Integer2PassUniform.js";import{IntegerPassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{glsl as i}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as n}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{b as a,o as c}from"./HighlightDownsample.glsl.js";function d(){const d=new n,{vertex:f,fragment:u}=d,s=f.code,v=u.code;return f.uniforms.add(new r("coverageTex",(e=>e.coverageTexture)),new e("coverageRounding",(e=>e.coverageRounding)),new l("highlightRenderCellCount",(e=>[e.verticalCellCount+1,e.horizontalCellCount+1]))),d.varyings.add("uv","vec2"),d.varyings.add("uv2","vec2"),s.add(i`void main() {
6
+ int vid = gl_VertexID & 3;
7
+ int cellIndex = gl_InstanceID;
8
+ int renderCellCountHorizontal = highlightRenderCellCount[0];
9
+ int renderCellCountVertical = highlightRenderCellCount[1];
10
+ int hi = cellIndex % renderCellCountHorizontal;
11
+ int vi = (cellIndex - hi) / renderCellCountHorizontal;
12
+ float iH = 1.0 / float(renderCellCountHorizontal-1);
13
+ float iV = 1.0 / float(renderCellCountVertical-1);
14
+ vec2 uv0 = vec2(float(hi)*iH, float(vi)*iV);
6
15
  vec4 cov = texture(coverageTex, uv0 * coverageRounding);
7
16
  if (cov.r == 0.0) {
8
17
  gl_Position = vec4(0.0);
9
18
  return;
10
19
  }
11
- gl_Position = vec4(position, 0.0, 1.0);
12
- uv = position.xy * 0.5 + vec2(0.5);
13
- }`),d.uniforms.add(new n("tex",(e=>e.blurTexture)),new n("highlightTexture",(e=>e.highlightTexture)),new t("uColor",(e=>e.color)),new t("haloColor",(e=>e.haloColor)),new t("opacities",(o=>e(u,o.haloOpacity,o.haloOpacityOccluded,o.fillOpacity,o.fillOpacityOccluded)))),d.constants.add("inner","float",1-(s-c)/s),h.add(r`void main() {
14
- vec4 blurredHighlightValue = texture(tex, uv);
15
- float highlightIntensity = blurredHighlightValue.a;
16
- if (highlightIntensity == 0.0) {
20
+ float xSign = (vid == 0 || vid == 2) ? -1.0 : 1.0;
21
+ float ySign = (vid == 0 || vid == 1) ? -1.0 : 1.0;
22
+ float posX = uv0.x * 2.0 + xSign * iH - 1.0;
23
+ float posY = uv0.y * 2.0 + ySign * iV - 1.0;
24
+ vec2 pos = vec2(posX,posY);
25
+ gl_Position = vec4(pos, 0.0, 1.0);
26
+ uv = pos * 0.5 + vec2(0.5);
27
+ uv2 = uv0;
28
+ }`),u.uniforms.add(new r("highlightTexture",(e=>e.highlightTexture)),new r("coverageTex",(e=>e.coverageTexture)),new e("coverageRounding",(e=>e.coverageRounding)),new r("highlightOptionsTexture",(e=>e.highlightOptionsTexture)),new o("pixelRatio",(e=>e.pixelRatio)),new o("occludedIntensityFactor",(e=>e.occludedFactor)),new t("maxHighlightLevel",(e=>e.maxHighlightLevel))),u.constants.add("inner","float",a/c),v.add(i`const float pascal9[5] = float[5](70.0, 56.0, 28.0, 8.0, 1.0);
29
+ const float denom9 = 256.0;
30
+ const float pascal11[6] = float[6](252.0, 210.0, 120.0, 45.0, 10.0, 1.0);
31
+ const float denom11 = 1024.0;
32
+ const float pascal13[7] = float[7](924.0, 792.0, 495.0, 220.0, 66.0, 12.0, 1.0);
33
+ const float denom13 = 4096.0;
34
+ const float pascal15[8] = float[8](3432.0, 3003.0, 2002.0, 1001.0, 364.0, 91.0, 14.0, 1.0);
35
+ const float denom15 = 16384.0;
36
+ const float pascal17[9] = float[9](12870.0, 11440.0, 8008.0, 4368.0, 1820.0, 560.0, 120.0, 16.0, 1.0);
37
+ const float denom17 = 65536.0;
38
+ const float pixelSampleScale = 1.0;
39
+ float colorWeight[16] = float[16](0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
40
+ float colorOcclusion[16] = float[16](0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
41
+ void applyTexel(vec4 texel, float pf) {
42
+ if (texel != vec4(0.0)){
43
+ for (int colorIndex = 0; colorIndex <= maxHighlightLevel; ++colorIndex){
44
+ int v = int(texel[colorIndex >> 2] * 255.0);
45
+ if (v != 0){
46
+ int vj = (v >> ((colorIndex&3)<<1)) & 3;
47
+ if ((vj & 1) == 1){
48
+ colorWeight[colorIndex] += pf;
49
+ if ((vj & 2) == 2){
50
+ colorOcclusion[colorIndex] += pf;
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ void readAndApplyTexel(ivec2 iuv, int du, int dv, float pf) {
58
+ vec4 texel = texelFetch(highlightTexture, iuv + ivec2(du, dv), 0);
59
+ applyTexel(texel,pf);
60
+ }
61
+ void readAndApply2TexelsU(ivec2 iuv, int du, int dv, float pf) {
62
+ vec4 texel1 = texelFetch(highlightTexture, iuv + ivec2(-du, dv), 0);
63
+ applyTexel(texel1,pf);
64
+ vec4 texel2 = texelFetch(highlightTexture, iuv + ivec2(+du, dv), 0);
65
+ applyTexel(texel2,pf);
66
+ }
67
+ float getWeight(int pixelDistance) {
68
+ float scaledDistance = float(pixelDistance) * pixelSampleScale / pixelRatio;
69
+ float d0f = floor(scaledDistance);
70
+ int d0 = int(d0f);
71
+ if (d0 >= 8){
72
+ return 0.0;
73
+ }
74
+ float w0 = pascal17[d0];
75
+ float w1 = d0 > 8 ? 0.0 : pascal17[d0+1];
76
+ float f = d0f - d0f;
77
+ return mix(w0, w1, f);
78
+ }
79
+ void main() {
80
+ vec2 highlightTextureSize = vec2(textureSize(highlightTexture,0));
81
+ ivec2 iuv = ivec2(uv * highlightTextureSize);
82
+ vec4 center = texelFetch(highlightTexture, iuv, 0);
83
+ vec4 accumulatedColor = vec4(0.0);
84
+ vec4 cov = texture(coverageTex, uv2 * coverageRounding);
85
+ bool potentialOutline = cov.g < 1.0;
86
+ if (potentialOutline) {
87
+ int maxPixelDistance = clamp(int(8.0 * pixelRatio / pixelSampleScale),2,16);
88
+ int fs = maxPixelDistance;
89
+ float denom = 0.0;
90
+ for(int y = 0; y <= fs; y += 1) {
91
+ float w = getWeight(y);
92
+ denom += w * (y == 0 ? 1.0 : 2.0);
93
+ }
94
+ for(int y = 0; y <= fs; y += 1) {
95
+ float yFactor = getWeight(y);
96
+ {
97
+ float xFactor = getWeight(0);
98
+ float pf = xFactor * yFactor / (denom*denom);
99
+ if (pf > 0.0) {
100
+ readAndApplyTexel(iuv, 0, +y, pf);
101
+ if (y!=0){
102
+ readAndApplyTexel(iuv, 0, -y, pf);
103
+ }
104
+ }
105
+ }
106
+ for(int x = 1; x <= fs; x += 1) {
107
+ float xFactor = getWeight(x);
108
+ float pf = xFactor * yFactor / (denom*denom);
109
+ if (pf > 0.0) {
110
+ readAndApply2TexelsU(iuv, x, +y, pf);
111
+ if (y!=0){
112
+ readAndApply2TexelsU(iuv, x, -y, pf);
113
+ }
114
+ }
115
+ }
116
+ }
117
+ } else {
118
+ applyTexel(center, 1.0);
119
+ }
120
+ int frontColorIndex = 999;
121
+ int maxColorIndex = 0;
122
+ for (int i=0; i<maxHighlightLevel; ++i){
123
+ if (colorWeight[i] > 0.0){
124
+ frontColorIndex = min(frontColorIndex,i);
125
+ maxColorIndex = max(maxColorIndex,i);
126
+ }
127
+ }
128
+ if (frontColorIndex == 999){
129
+ discard;
130
+ }
131
+ for (int curColorIndex=maxColorIndex; curColorIndex>=frontColorIndex; --curColorIndex){
132
+ float curColorWeight = colorWeight[curColorIndex];
133
+ if (curColorWeight <= 0.01){
134
+ continue;
135
+ }
136
+ int lic = (curColorIndex >> 2) & 3;
137
+ int llc = curColorIndex & 3;
138
+ int vc = (int(center[lic] * 255.0) >> (llc*2)) & 3;
139
+ bool centerFilled = (vc & 1) == 1;
140
+ bool centerOccluded = centerFilled && ((vc & 2) == 2);
141
+ float curColorOcclusion = colorOcclusion[curColorIndex];
142
+ bool occluded = centerFilled ? centerOccluded : curColorOcclusion > 0.5 * curColorWeight;
143
+ int colorChannel = centerFilled ? 0 : 1;
144
+ vec4 colorBase = texelFetch(highlightOptionsTexture,ivec2(curColorIndex,colorChannel),0);
145
+ float occlusionFactor = occluded ? occludedIntensityFactor : 1.0;
146
+ float outlineFactor = centerFilled ? 1.0 : smoothstep(0.0, 0.03, curColorWeight);
147
+ float intensity = colorBase.a * occlusionFactor * outlineFactor;
148
+ vec3 currentColor = colorBase.rgb;
149
+ float a0 = accumulatedColor.a;
150
+ float a1 = intensity;
151
+ float alpha = clamp(a0 + a1 - a0 * a1,0.0,1.0);
152
+ if (alpha > 0.001){
153
+ vec3 blendedColor = ((1.0 - a1) * a0 * accumulatedColor.rgb + a1 * currentColor) / alpha;
154
+ accumulatedColor = vec4(blendedColor, alpha);
155
+ }
156
+ }
157
+ if (accumulatedColor.a < 0.01){
17
158
  discard;
18
159
  }
19
- vec4 origin_color = texture(highlightTexture, uv);
20
- float outlineIntensity;
21
- float fillIntensity;
22
- if (blurredHighlightValue.g > blurredHighlightValue.b) {
23
- outlineIntensity = haloColor.w * opacities[1];
24
- fillIntensity = uColor.w * opacities[3];
25
- }
26
- else {
27
- outlineIntensity = haloColor.w * opacities[0];
28
- fillIntensity = uColor.w * opacities[2];
29
- }
30
- float outlineFactor = smoothstep(0.0, inner, highlightIntensity);
31
- float fillFactor = any(notEqual(origin_color, vec4(0.0, 0.0, 0.0, 0.0))) ? 1.0 : 0.0;
32
- float intensity = outlineIntensity * outlineFactor * (1.0 - fillFactor) + fillIntensity * fillFactor;
33
- fragColor = vec4(mix(haloColor.rgb, uColor.rgb, fillFactor), intensity);
34
- }`),o}const u=o(),d=Object.freeze(Object.defineProperty({__proto__:null,build:g},Symbol.toStringTag,{value:"Module"}));export{d as H,g as b};
160
+ fragColor = accumulatedColor;
161
+ }`),d}const f=Object.freeze(Object.defineProperty({__proto__:null,build:d},Symbol.toStringTag,{value:"Module"}));export{f as H,d as b};