@arcgis/core 4.32.0-next.20250129 → 4.32.0-next.20250131

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 (1122) hide show
  1. package/WebScene.js +1 -1
  2. package/applications/Components/SelectionOperation.d.ts +1 -2
  3. package/applications/Components/SketchTooltipControls.d.ts +1 -2
  4. package/applications/Components/basemapUtils.d.ts +1 -2
  5. package/applications/Components/drawUtils.d.ts +1 -2
  6. package/applications/Components/fontUtils.d.ts +1 -2
  7. package/applications/Components/getDefaultUnits.d.ts +1 -2
  8. package/applications/Components/gfxUtils.d.ts +1 -2
  9. package/applications/Components/layerOriginUtils.d.ts +4 -2
  10. package/applications/Components/layersEffectsJsonUtils.d.ts +1 -2
  11. package/applications/Components/previewSymbol2D.d.ts +1 -2
  12. package/applications/Components/reactiveUtils.d.ts +1 -2
  13. package/applications/Components/styleUtils.d.ts +1 -2
  14. package/applications/Components/svgUtils.d.ts +3 -2
  15. package/applications/Components/webStyleSymbolUtils.d.ts +1 -2
  16. package/applications/Excalibur/videoViewUtils.d.ts +1 -2
  17. package/applications/ExperienceBuilder/sketchUtils.d.ts +3 -2
  18. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +2 -2
  19. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +3 -2
  20. package/applications/KnowledgeStudio/resourceSerializationUtils.d.ts +4 -2
  21. package/applications/MapViewer/mediaUtils.d.ts +2 -2
  22. package/applications/MapViewer/templateUtils.d.ts +4 -2
  23. package/applications/SceneViewer/colorUtils.d.ts +1 -2
  24. package/applications/SceneViewer/devEnvironmentUtils.d.ts +3 -2
  25. package/applications/SceneViewer/layerUtils.d.ts +2 -2
  26. package/applications/SceneViewer/sceneViewerUtils.d.ts +15 -2
  27. package/applications/SceneViewer/symbolUtils.d.ts +1 -2
  28. package/applications/Urban/meshUtils.d.ts +1 -2
  29. package/applications/WebEditor/sketchUtils.d.ts +2 -2
  30. package/arcade.d.ts +2 -2
  31. package/assets/components/assets/icon/hammerCoin16.json +1 -0
  32. package/assets/components/assets/icon/hammerCoin24.json +1 -0
  33. package/assets/components/assets/icon/hammerCoin32.json +1 -0
  34. package/assets/components/assets/icon/hammerLock16.json +1 -0
  35. package/assets/components/assets/icon/hammerLock24.json +1 -0
  36. package/assets/components/assets/icon/hammerLock32.json +1 -0
  37. package/assets/esri/core/workers/RemoteClient.js +1 -1
  38. package/assets/esri/core/workers/chunks/{474c4f4c3b8649a807d9.js → 07c5f3fc475c57f5a7a7.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{41f7287832d407f13ce5.js → 09b77f82c22530b44daa.js} +1 -1
  40. package/assets/esri/core/workers/chunks/22e11a8abc70b6571a2b.js +1 -0
  41. package/assets/esri/core/workers/chunks/{6eb829a7959df2269b0e.js → 24c94f97a76646d415ae.js} +1 -1
  42. package/assets/esri/core/workers/chunks/25c8cc30faade043c8dc.js.LICENSE.txt +1 -1
  43. package/assets/esri/core/workers/chunks/2ff63a71213f618377d6.js +1 -0
  44. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  45. package/assets/esri/core/workers/chunks/34d464dacee52739c98c.js +1 -0
  46. package/assets/esri/core/workers/chunks/380d37ceb8cf52bad190.js +1 -0
  47. package/assets/esri/core/workers/chunks/39e38aab86dcee3f79be.js +1 -0
  48. package/assets/esri/core/workers/chunks/{1e17b693f2d974c3de2d.js → 3ec51b75d1a86dad6cb1.js} +1 -1
  49. package/assets/esri/core/workers/chunks/4263eee3247aaf4e64bf.js +1 -0
  50. package/assets/esri/core/workers/chunks/{b6440ddc595ba2ba8f8e.js → 448ee44c7f594e5b2551.js} +1 -1
  51. package/assets/esri/core/workers/chunks/476205ee4414ed80666a.js +1 -0
  52. package/assets/esri/core/workers/chunks/4b56c0c109e10d7409b8.js +1 -0
  53. package/assets/esri/core/workers/chunks/4da62cfe5e97fbc99306.js +1 -0
  54. package/assets/esri/core/workers/chunks/{1e1306527fb38c5894eb.js → 5a536de1ecae424bad05.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{b65dcdf5818ee04aa7e0.js → 5adeb979f178944b9ce5.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{f09c95c3d79205ee5a84.js → 5e9bf6d0db82526b8a8c.js} +5 -5
  57. package/assets/esri/core/workers/chunks/{429d19f4b59d9d265c2c.js → 6e25742ceedea7fb1b97.js} +1 -1
  58. package/assets/esri/core/workers/chunks/6e8905f20101c1f4509d.js.LICENSE.txt +1 -1
  59. package/assets/esri/core/workers/chunks/{a6e96d0d9ac3224c8f00.js → 6ef2514a6b7bbfb8e37d.js} +1 -1
  60. package/assets/esri/core/workers/chunks/72cf9192292e5c85c6df.js.LICENSE.txt +1 -1
  61. package/assets/esri/core/workers/chunks/{a591906154e12eb4fa43.js → 7810579a5a780933cdc9.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{fa0d968733d581bc2e4d.js → 7d120f8b01fe719eb257.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{09a897c342a45ef9125c.js → 7d3a441d2eb18d709ef9.js} +2 -2
  64. package/assets/esri/core/workers/chunks/{09a897c342a45ef9125c.js.LICENSE.txt → 7d3a441d2eb18d709ef9.js.LICENSE.txt} +1 -1
  65. package/assets/esri/core/workers/chunks/{d81fea1d36e7c2fbdffd.js → 881ddbdeb40336208e90.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{ec9d5af8887854e821c8.js → 88cbaa91c495d86f4bb0.js} +1 -1
  67. package/assets/esri/core/workers/chunks/af2a70d33afb12bb536f.js +972 -0
  68. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  69. package/assets/esri/core/workers/chunks/{4253b2802abb84afc428.js → b68bddd0c4ca91493543.js} +1 -1
  70. package/assets/esri/core/workers/chunks/bf9bc52a3c559108c19a.js +2 -0
  71. package/assets/esri/core/workers/chunks/{9b687465cc3863e14b29.js.LICENSE.txt → bf9bc52a3c559108c19a.js.LICENSE.txt} +1 -1
  72. package/assets/esri/core/workers/chunks/c249ad935f54d3b49ae3.js +1 -0
  73. package/assets/esri/core/workers/chunks/c4b0e3f7dcad6c7ea620.js +314 -0
  74. package/assets/esri/core/workers/chunks/c94ec324ecad77c53a87.js +1 -0
  75. package/assets/esri/core/workers/chunks/d1678945cf6a58f76863.js +1 -0
  76. package/assets/esri/core/workers/chunks/{9ed1691eab19dfb1cf04.js → d1718ad93e3271b0525e.js} +1 -1
  77. package/assets/esri/core/workers/chunks/d599ba865da87b487b1b.js +1 -0
  78. package/assets/esri/core/workers/chunks/dd46ec81cebe1a0a7b9c.js +1 -0
  79. package/assets/esri/core/workers/chunks/debfb75a94b66b58cbbc.js +1 -0
  80. package/assets/esri/core/workers/chunks/{c6135d2548d4a31298eb.js → e0de91eacf3a3b7eda55.js} +4 -4
  81. package/assets/esri/core/workers/chunks/e444ec05a8a1dfbd21a8.js +1 -0
  82. package/assets/esri/core/workers/chunks/{b84c28fe94b3cd7b480d.js → e4651d577d297386268e.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{c80507443f896dbfaba6.js → e4b80c8f4c45fd78bde1.js} +1 -1
  84. package/assets/esri/core/workers/chunks/f8367c21fa91435c7c53.js +1 -0
  85. package/assets/esri/core/workers/chunks/{d4760e583dfac95dc8a1.js → ffa2b9d70830aed03a8f.js} +1 -1
  86. package/assets/esri/themes/base/_Ui.scss +6 -0
  87. package/assets/esri/themes/base/_core.scss +4 -0
  88. package/assets/esri/themes/base/_mixins.scss +0 -7
  89. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +0 -4
  90. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -2
  91. package/assets/esri/themes/base/widgets/_Bookmarks.scss +0 -4
  92. package/assets/esri/themes/base/widgets/_CatalogLayerList.scss +0 -4
  93. package/assets/esri/themes/base/widgets/_Features.scss +0 -4
  94. package/assets/esri/themes/base/widgets/_FilterBuilder.scss +24 -0
  95. package/assets/esri/themes/base/widgets/_FilterCondition.scss +12 -0
  96. package/assets/esri/themes/base/widgets/_LayerList.scss +0 -4
  97. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +1 -1
  98. package/assets/esri/themes/base/widgets/_TableList.scss +0 -4
  99. package/assets/esri/themes/dark/main.css +1 -1
  100. package/assets/esri/themes/light/main.css +1 -1
  101. package/assets/esri/themes/light/view.css +1 -1
  102. package/assets/esri/views/interactive/tooltip/t9n/Tooltip.json +1 -1
  103. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ar.json +1 -1
  104. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bg.json +1 -1
  105. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bs.json +1 -1
  106. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ca.json +1 -1
  107. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_cs.json +1 -1
  108. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_da.json +1 -1
  109. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_de.json +1 -1
  110. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_el.json +1 -1
  111. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_en.json +1 -1
  112. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_es.json +1 -1
  113. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_et.json +1 -1
  114. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fi.json +1 -1
  115. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fr.json +1 -1
  116. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_he.json +1 -1
  117. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hr.json +1 -1
  118. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hu.json +1 -1
  119. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_id.json +1 -1
  120. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_it.json +1 -1
  121. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ja.json +1 -1
  122. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ko.json +1 -1
  123. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lt.json +1 -1
  124. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lv.json +1 -1
  125. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_nl.json +1 -1
  126. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_no.json +1 -1
  127. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pl.json +1 -1
  128. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-BR.json +1 -1
  129. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-PT.json +1 -1
  130. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ro.json +1 -1
  131. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ru.json +1 -1
  132. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sk.json +1 -1
  133. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sl.json +1 -1
  134. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sr.json +1 -1
  135. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sv.json +1 -1
  136. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_th.json +1 -1
  137. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_tr.json +1 -1
  138. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_uk.json +1 -1
  139. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_vi.json +1 -1
  140. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-CN.json +1 -1
  141. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-HK.json +1 -1
  142. package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-TW.json +1 -1
  143. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
  144. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
  145. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
  146. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
  147. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
  148. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
  149. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
  150. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
  151. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
  152. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
  153. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
  154. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
  155. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
  156. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
  157. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
  158. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
  159. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
  160. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
  161. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
  162. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
  163. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
  164. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
  165. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
  166. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
  167. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
  168. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
  169. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
  170. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
  171. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
  172. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
  173. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
  174. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
  175. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
  176. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
  177. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
  178. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
  179. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
  180. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
  181. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
  182. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
  183. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
  184. package/assets/esri/widgets/Directions/t9n/Directions.json +1 -1
  185. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  186. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  187. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  188. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  189. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  190. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  191. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  192. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  193. package/assets/esri/widgets/Directions/t9n/Directions_en.json +1 -1
  194. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  195. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  196. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  197. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  198. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  199. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  200. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  201. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  202. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  203. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  204. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  205. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  206. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  207. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  208. package/assets/esri/widgets/Directions/t9n/Directions_no.json +1 -1
  209. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  210. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  211. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  212. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  213. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  214. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  215. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  216. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  217. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  218. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  219. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  220. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  221. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  222. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  223. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  224. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  225. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  226. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  227. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  228. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  229. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  230. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  231. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  232. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  233. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  234. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  235. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  236. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  237. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  238. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  239. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  240. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  241. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  242. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  243. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  244. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  245. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  246. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  247. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  248. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  249. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  250. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  251. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  252. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  253. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  254. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  255. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  256. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  257. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  258. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  259. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  260. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  261. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  262. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  263. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  264. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  265. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  266. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm.json +1 -1
  267. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
  268. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
  269. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
  270. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
  271. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
  272. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
  273. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
  274. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
  275. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_en.json +1 -1
  276. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
  277. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
  278. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
  279. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
  280. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
  281. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
  282. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
  283. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
  284. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
  285. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
  286. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
  287. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
  288. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
  289. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
  290. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_no.json +1 -1
  291. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
  292. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
  293. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
  294. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
  295. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
  296. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
  297. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
  298. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
  299. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
  300. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
  301. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
  302. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
  303. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
  304. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
  305. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
  306. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
  307. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  308. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  309. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  310. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  311. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  312. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  313. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  314. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  315. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  316. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  317. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  318. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  319. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  320. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  321. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  322. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  323. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  324. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  325. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  326. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  327. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  328. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  329. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  330. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  331. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  332. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  333. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  334. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  335. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  336. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  337. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  338. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  339. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  340. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  341. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  342. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  343. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  344. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  345. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  346. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  347. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  348. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder.json +1 -0
  349. package/assets/esri/widgets/support/FilterBuilder/t9n/FilterBuilder_en.json +1 -0
  350. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition.json +1 -0
  351. package/assets/esri/widgets/support/FilterCondition/t9n/FilterCondition_en.json +1 -0
  352. package/chunks/AtmosphereCompositing.glsl.js +2 -2
  353. package/chunks/BlendLayers.glsl.js +1 -1
  354. package/chunks/BlendWeights.glsl.js +1 -1
  355. package/chunks/BloomBlur.glsl.js +23 -23
  356. package/chunks/BloomComposition.glsl.js +3 -3
  357. package/chunks/BloomDepthAdjust.glsl.js +2 -2
  358. package/chunks/Blur.glsl.js +1 -1
  359. package/chunks/ChapmanAtmosphere.glsl.js +2 -2
  360. package/chunks/CheckerBoard.glsl.js +2 -2
  361. package/chunks/Clouds.glsl.js +14 -14
  362. package/chunks/CloudsComposition.glsl.js +1 -1
  363. package/chunks/ColorMaterial.glsl.js +1 -1
  364. package/chunks/ComponentShader.glsl.js +4 -4
  365. package/chunks/Compositing.glsl.js +2 -2
  366. package/chunks/DefaultMaterial.glsl.js +16 -15
  367. package/chunks/EdgeDetect.glsl.js +2 -2
  368. package/chunks/EdgeShader.glsl.js +2 -2
  369. package/chunks/FocusAreaColor.glsl.js +2 -2
  370. package/chunks/FocusAreaMask.glsl.js +1 -1
  371. package/chunks/Fog.glsl.js +3 -3
  372. package/chunks/HUDCompositing.glsl.js +1 -1
  373. package/chunks/HUDMaterial.glsl.js +24 -24
  374. package/chunks/Haze.glsl.js +3 -3
  375. package/chunks/HazeCompositing.glsl.js +2 -2
  376. package/chunks/Heatmap.glsl.js +1 -1
  377. package/chunks/HeatmapDensity.glsl.js +5 -5
  378. package/chunks/HighlightApply.glsl.js +2 -2
  379. package/chunks/HighlightDownsample.glsl.js +2 -2
  380. package/chunks/HighlightToSingle.glsl.js +2 -2
  381. package/chunks/ImageMaterial.glsl.js +4 -4
  382. package/chunks/LaserlinePath.glsl.js +1 -1
  383. package/chunks/Laserlines.glsl.js +1 -1
  384. package/chunks/LineCallout.glsl.js +1 -1
  385. package/chunks/LineMarker.glsl.js +8 -8
  386. package/chunks/Magnifier.glsl.js +4 -4
  387. package/chunks/MeasurementArrow.glsl.js +2 -2
  388. package/chunks/NativeLine.glsl.js +4 -4
  389. package/chunks/NoiseTextureAtlas.glsl.js +34 -34
  390. package/chunks/OITBlend.glsl.js +3 -3
  391. package/chunks/OverlayCompositing.glsl.js +1 -1
  392. package/chunks/Path.glsl.js +9 -9
  393. package/chunks/Pattern.glsl.js +3 -3
  394. package/chunks/PointRenderer.glsl.js +1 -1
  395. package/chunks/Precipitation.glsl.js +1 -1
  396. package/chunks/RasterColorizer.glsl.js +9 -9
  397. package/chunks/RealisticTree.glsl.js +3 -3
  398. package/chunks/RibbonLine.glsl.js +32 -32
  399. package/chunks/SSAO.glsl.js +2 -2
  400. package/chunks/SSAOBlur.glsl.js +1 -1
  401. package/chunks/ShadedColorMaterial.glsl.js +3 -3
  402. package/chunks/ShadowCastAccumulate.glsl.js +2 -2
  403. package/chunks/ShadowCastVisualize.glsl.js +4 -4
  404. package/chunks/ShadowHighlight.glsl.js +2 -2
  405. package/chunks/SimpleAtmosphere.glsl.js +8 -8
  406. package/chunks/SingleHighlightApply.glsl.js +1 -1
  407. package/chunks/SingleHighlightBlur.glsl.js +6 -7
  408. package/chunks/SlicePlaneMaterial.glsl.js +2 -2
  409. package/chunks/Stars.glsl.js +2 -2
  410. package/chunks/Terrain.glsl.js +2 -2
  411. package/chunks/TextureOnly.glsl.js +2 -2
  412. package/chunks/Viewshed.glsl.js +2 -2
  413. package/chunks/WaterSurface.glsl.js +7 -7
  414. package/core/accessorSupport/decorators.d.ts +4 -2
  415. package/core/jsonMap.js +1 -1
  416. package/core/lang.d.ts +1 -2
  417. package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
  418. package/core/promiseUtils.d.ts +5 -2
  419. package/core/quantity.d.ts +3 -2
  420. package/core/reactiveUtils.d.ts +5 -2
  421. package/core/scheduling.d.ts +2 -2
  422. package/core/sql.d.ts +1 -2
  423. package/core/units.d.ts +9 -2
  424. package/core/urlUtils.d.ts +5 -2
  425. package/core/workers.d.ts +1 -2
  426. package/editing/templateUtils.js +1 -1
  427. package/form/elements/inputs.d.ts +21 -2
  428. package/form/elements.d.ts +13 -2
  429. package/geometry/coordinateFormatter.d.ts +11 -2
  430. package/geometry/geometryEngine.d.ts +37 -2
  431. package/geometry/geometryEngineAsync.d.ts +37 -2
  432. package/geometry/operators/affineTransformOperator.d.ts +3 -2
  433. package/geometry/operators/alphaShapeOperator.d.ts +3 -2
  434. package/geometry/operators/areaOperator.d.ts +2 -2
  435. package/geometry/operators/autoCompleteOperator.d.ts +2 -2
  436. package/geometry/operators/boundaryOperator.d.ts +3 -2
  437. package/geometry/operators/bufferOperator.d.ts +3 -2
  438. package/geometry/operators/centroidOperator.d.ts +2 -2
  439. package/geometry/operators/clipOperator.d.ts +3 -2
  440. package/geometry/operators/containsOperator.d.ts +3 -2
  441. package/geometry/operators/convexHullOperator.d.ts +4 -2
  442. package/geometry/operators/crossesOperator.d.ts +3 -2
  443. package/geometry/operators/cutOperator.d.ts +2 -2
  444. package/geometry/operators/densifyOperator.d.ts +3 -2
  445. package/geometry/operators/differenceOperator.d.ts +3 -2
  446. package/geometry/operators/disjointOperator.d.ts +3 -2
  447. package/geometry/operators/distanceOperator.d.ts +2 -2
  448. package/geometry/operators/equalsOperator.d.ts +3 -2
  449. package/geometry/operators/extendOperator.d.ts +2 -2
  450. package/geometry/operators/generalizeOperator.d.ts +3 -2
  451. package/geometry/operators/geodesicBufferOperator.d.ts +5 -2
  452. package/geometry/operators/geodesicProximityOperator.d.ts +6 -2
  453. package/geometry/operators/geodeticAreaOperator.d.ts +4 -2
  454. package/geometry/operators/geodeticDensifyOperator.d.ts +5 -2
  455. package/geometry/operators/geodeticDistanceOperator.d.ts +4 -2
  456. package/geometry/operators/geodeticLengthOperator.d.ts +4 -2
  457. package/geometry/operators/graphicBufferOperator.d.ts +2 -2
  458. package/geometry/operators/integrateOperator.d.ts +2 -2
  459. package/geometry/operators/intersectionOperator.d.ts +4 -2
  460. package/geometry/operators/intersectsOperator.d.ts +3 -2
  461. package/geometry/operators/isNearOperator.d.ts +2 -2
  462. package/geometry/operators/labelPointOperator.d.ts +3 -2
  463. package/geometry/operators/lengthOperator.d.ts +2 -2
  464. package/geometry/operators/linesToPolygonsOperator.d.ts +2 -2
  465. package/geometry/operators/locateBetweenOperator.d.ts +2 -2
  466. package/geometry/operators/minimumBoundingCircleOperator.d.ts +3 -2
  467. package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
  468. package/geometry/operators/offsetOperator.d.ts +3 -2
  469. package/geometry/operators/overlapsOperator.d.ts +3 -2
  470. package/geometry/operators/polygonOverlayOperator.d.ts +2 -2
  471. package/geometry/operators/polygonSlicerOperator.d.ts +4 -2
  472. package/geometry/operators/projectOperator.d.ts +5 -2
  473. package/geometry/operators/proximityOperator.d.ts +4 -2
  474. package/geometry/operators/relateOperator.d.ts +4 -2
  475. package/geometry/operators/reshapeOperator.d.ts +2 -2
  476. package/geometry/operators/shapePreservingProjectOperator.d.ts +5 -2
  477. package/geometry/operators/simplifyOperator.d.ts +4 -2
  478. package/geometry/operators/support/geographicTransformationUtils.d.ts +4 -2
  479. package/geometry/operators/symmetricDifferenceOperator.d.ts +3 -2
  480. package/geometry/operators/touchesOperator.d.ts +3 -2
  481. package/geometry/operators/unionOperator.d.ts +3 -2
  482. package/geometry/operators/withinOperator.d.ts +3 -2
  483. package/geometry/projection.d.ts +5 -2
  484. package/geometry/support/geodesicUtils.d.ts +5 -2
  485. package/geometry/support/jsonUtils.d.ts +2 -2
  486. package/geometry/support/meshUtils.d.ts +6 -2
  487. package/geometry/support/normalizeUtils.d.ts +2 -2
  488. package/geometry/support/typeUtils.js +1 -1
  489. package/geometry/support/webMercatorUtils.d.ts +6 -2
  490. package/geometry.d.ts +13 -2
  491. package/interfaces.d.ts +292 -126
  492. package/intl.d.ts +16 -2
  493. package/kernel.d.ts +2 -2
  494. package/layers/FeatureLayer.js +1 -1
  495. package/layers/LinkChartLayer.js +1 -1
  496. package/layers/catalog/catalogUtils.d.ts +2 -2
  497. package/layers/graphics/OptimizedGeometry.js +1 -1
  498. package/layers/graphics/dehydratedFeatures.js +1 -1
  499. package/layers/graphics/sources/ParquetSource.js +1 -1
  500. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  501. package/layers/knowledgeGraph/cypherUtils.d.ts +1 -2
  502. package/layers/knowledgeGraph/layerUtils.js +1 -1
  503. package/layers/knowledgeGraph/supportUtils.d.ts +4 -2
  504. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  505. package/layers/mixins/ArcGISCachedService.d.ts +1 -1
  506. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  507. package/layers/mixins/ArcGISMapService.d.ts +1 -1
  508. package/layers/mixins/BlendLayer.d.ts +1 -1
  509. package/layers/mixins/CustomParametersMixin.d.ts +1 -1
  510. package/layers/mixins/DisplayFilteredLayer.d.ts +1 -1
  511. package/layers/mixins/FeatureEffectLayer.d.ts +1 -1
  512. package/layers/mixins/FeatureLayerBase.d.ts +1 -1
  513. package/layers/mixins/FeatureReductionLayer.d.ts +1 -1
  514. package/layers/mixins/ImageryTileMixin.d.ts +1 -1
  515. package/layers/mixins/OperationalLayer.d.ts +1 -1
  516. package/layers/mixins/OrderedLayer.d.ts +1 -1
  517. package/layers/mixins/PortalLayer.d.ts +1 -1
  518. package/layers/mixins/PublishableLayer.d.ts +1 -1
  519. package/layers/mixins/RasterPresetRendererMixin.d.ts +1 -1
  520. package/layers/mixins/RefreshableLayer.d.ts +1 -1
  521. package/layers/mixins/ScaleRangeLayer.d.ts +1 -1
  522. package/layers/mixins/SceneService.d.ts +1 -1
  523. package/layers/mixins/SublayersOwner.d.ts +1 -1
  524. package/layers/mixins/TemporalLayer.d.ts +1 -1
  525. package/layers/mixins/TemporalSceneLayer.d.ts +1 -1
  526. package/layers/ogc/wcsUtils.d.ts +1 -2
  527. package/layers/ogc/wfsUtils.d.ts +2 -2
  528. package/layers/orientedImagery/transformations/imageToWorld.d.ts +1 -2
  529. package/layers/orientedImagery/transformations/utils.js +1 -1
  530. package/layers/orientedImagery/transformations/worldToImage.d.ts +1 -2
  531. package/layers/support/Sublayer.js +1 -1
  532. package/layers/support/arcadeUtils.d.ts +1 -2
  533. package/layers/support/csvUtils.d.ts +1 -2
  534. package/layers/support/domainUtils.js +1 -1
  535. package/layers/support/fieldUtils.d.ts +8 -2
  536. package/layers/support/parquetLayerUtils.js +1 -1
  537. package/layers/support/rasterFunctionConstants.d.ts +15 -2
  538. package/layers/support/rasterFunctionUtils.d.ts +105 -2
  539. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  540. package/package.json +3 -3
  541. package/pointCloudRenderers.d.ts +9 -2
  542. package/popup/content.d.ts +17 -2
  543. package/popup/support/UtilityNetworkAssociationType.js +1 -1
  544. package/rasterRenderers.d.ts +14 -2
  545. package/renderers/mixins/VisualVariablesMixin.d.ts +1 -1
  546. package/renderers/support/jsonUtils.d.ts +1 -2
  547. package/renderers/support/utils.d.ts +2 -2
  548. package/renderers.d.ts +16 -2
  549. package/rest/closestFacility.d.ts +1 -2
  550. package/rest/featureService/utils.d.ts +1 -2
  551. package/rest/find.d.ts +1 -2
  552. package/rest/geometryService.d.ts +21 -2
  553. package/rest/geoprocessor.d.ts +2 -2
  554. package/rest/identify.d.ts +1 -2
  555. package/rest/imageService.d.ts +19 -2
  556. package/rest/knowledgeGraphService.d.ts +11 -2
  557. package/rest/locator.d.ts +4 -2
  558. package/rest/networkService.d.ts +1 -2
  559. package/rest/networks/queryAssociations.d.ts +1 -2
  560. package/rest/networks/synthesizeAssociationGeometries.d.ts +1 -2
  561. package/rest/networks/trace.d.ts +1 -2
  562. package/rest/places.d.ts +3 -2
  563. package/rest/print.d.ts +2 -2
  564. package/rest/query.d.ts +11 -2
  565. package/rest/route.d.ts +1 -2
  566. package/rest/serviceArea.d.ts +1 -2
  567. package/rest/symbolService.d.ts +1 -2
  568. package/smartMapping/labels/bins.d.ts +1 -2
  569. package/smartMapping/labels/clusters.d.ts +1 -2
  570. package/smartMapping/popup/clusters.d.ts +1 -2
  571. package/smartMapping/popup/templates.d.ts +1 -2
  572. package/smartMapping/raster/renderers/classBreaks.d.ts +1 -2
  573. package/smartMapping/raster/renderers/colormap.d.ts +1 -2
  574. package/smartMapping/raster/renderers/flow.d.ts +1 -2
  575. package/smartMapping/raster/renderers/rgb.d.ts +1 -2
  576. package/smartMapping/raster/renderers/shadedRelief.d.ts +1 -2
  577. package/smartMapping/raster/renderers/stretch.d.ts +1 -2
  578. package/smartMapping/raster/renderers/uniqueValue.d.ts +1 -2
  579. package/smartMapping/raster/renderers/vectorField.d.ts +1 -2
  580. package/smartMapping/raster/support/colorRamps.d.ts +5 -2
  581. package/smartMapping/raster/support/utils.d.ts +2 -2
  582. package/smartMapping/renderers/color.d.ts +6 -2
  583. package/smartMapping/renderers/dotDensity.d.ts +1 -2
  584. package/smartMapping/renderers/dotDensity.js +1 -1
  585. package/smartMapping/renderers/heatmap.d.ts +2 -2
  586. package/smartMapping/renderers/heatmap.js +1 -1
  587. package/smartMapping/renderers/location.d.ts +1 -2
  588. package/smartMapping/renderers/opacity.d.ts +1 -2
  589. package/smartMapping/renderers/pieChart.d.ts +2 -2
  590. package/smartMapping/renderers/predominance.d.ts +1 -2
  591. package/smartMapping/renderers/relationship.d.ts +2 -2
  592. package/smartMapping/renderers/size.d.ts +5 -2
  593. package/smartMapping/renderers/support/rendererUtils.d.ts +1 -2
  594. package/smartMapping/renderers/type.d.ts +2 -2
  595. package/smartMapping/renderers/univariateColorSize.d.ts +2 -2
  596. package/smartMapping/statistics/heatmapStatistics.js +1 -1
  597. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  598. package/smartMapping/statistics/support/ageUtils.d.ts +1 -2
  599. package/smartMapping/statistics/support/predominanceUtils.d.ts +1 -2
  600. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  601. package/smartMapping/support/adapters/support/layerUtils.js +1 -1
  602. package/smartMapping/support/adapters/support/utils.js +1 -1
  603. package/smartMapping/support/utils.js +1 -1
  604. package/smartMapping/symbology/color.d.ts +7 -2
  605. package/smartMapping/symbology/dotDensity.d.ts +4 -2
  606. package/smartMapping/symbology/flow.d.ts +5 -2
  607. package/smartMapping/symbology/heatmap.d.ts +5 -2
  608. package/smartMapping/symbology/location.d.ts +3 -2
  609. package/smartMapping/symbology/pieChart.d.ts +5 -2
  610. package/smartMapping/symbology/predominance.d.ts +5 -2
  611. package/smartMapping/symbology/relationship.d.ts +5 -2
  612. package/smartMapping/symbology/size.d.ts +3 -2
  613. package/smartMapping/symbology/support/colorRamps.d.ts +4 -2
  614. package/smartMapping/symbology/type.d.ts +5 -2
  615. package/support/LayersMixin.d.ts +1 -1
  616. package/support/TablesMixin.d.ts +1 -1
  617. package/support/basemapDefinitions.js +1 -1
  618. package/support/featureFlags.js +1 -1
  619. package/support/popupUtils.d.ts +4 -2
  620. package/support/revision.js +1 -1
  621. package/support/timeUtils.d.ts +3 -2
  622. package/symbols/support/cimConversionUtils.d.ts +1 -2
  623. package/symbols/support/cimSymbolUtils.d.ts +6 -2
  624. package/symbols/support/jsonUtils.d.ts +1 -2
  625. package/symbols/support/symbolUtils.d.ts +7 -2
  626. package/symbols.d.ts +51 -2
  627. package/tables/elements.d.ts +9 -2
  628. package/unionTypes.d.ts +12 -2
  629. package/versionManagement/utils.d.ts +2 -2
  630. package/versionManagement/versionAdapters/utils.d.ts +2 -2
  631. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  632. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
  633. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
  634. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
  635. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  636. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
  637. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
  638. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
  639. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
  640. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
  641. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
  642. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
  643. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TestShader.js +1 -1
  644. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  645. package/views/2d/layers/MediaLayerView2D.js +1 -1
  646. package/views/2d/layers/TileLayerView2D.js +1 -1
  647. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  648. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  649. package/views/2d/layers/features/layerAdapters/geometryUtils.js +1 -1
  650. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  651. package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
  652. package/views/2d/layers/features/sources/strategies/DrillDownTileLoadStrategy.js +1 -1
  653. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +1 -1
  654. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  655. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  656. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  657. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  658. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  659. package/views/3d/environment/ChapmanApproximation.glsl.js +3 -3
  660. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  661. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  662. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  663. package/views/3d/environment/ChapmanRaymarching.glsl.js +4 -4
  664. package/views/3d/environment/Clouds.glsl.js +1 -1
  665. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  666. package/views/3d/environment/CloudsComposition.js +1 -1
  667. package/views/3d/environment/CloudsCompositionTechnique.js +1 -1
  668. package/views/3d/environment/CloudsRenderer.js +1 -1
  669. package/views/3d/environment/CloudsTechnique.js +1 -1
  670. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  671. package/views/3d/environment/Fog.glsl.js +1 -1
  672. package/views/3d/environment/Fog.js +1 -1
  673. package/views/3d/environment/FogTechnique.js +1 -1
  674. package/views/3d/environment/LocalAtmosphere.js +1 -1
  675. package/views/3d/environment/MarsAtmosphere.js +1 -1
  676. package/views/3d/environment/NoiseTextureAtlas.glsl.js +1 -1
  677. package/views/3d/environment/NoiseTextureAtlas.js +1 -1
  678. package/views/3d/environment/NoiseTextureAtlasTechnique.js +1 -1
  679. package/views/3d/environment/Precipitation.glsl.js +1 -1
  680. package/views/3d/environment/Precipitation.js +1 -1
  681. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  682. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  683. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  684. package/views/3d/interactive/editingTools/media/ControlPointOperations.js +1 -1
  685. package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
  686. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  687. package/views/3d/layers/SceneLayerWorker.js +1 -1
  688. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  689. package/views/3d/layers/graphics/Labeler.js +1 -1
  690. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  691. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  692. package/views/3d/layers/graphics/pipeline/Tile.js +1 -1
  693. package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
  694. package/views/3d/layers/graphics/pipeline/featureData/FeatureData.js +1 -1
  695. package/views/3d/layers/graphics/pipeline/featureData/FeatureDataStore.js +1 -1
  696. package/views/3d/layers/graphics/pipeline/featureSet/PBFPointFeatureSetView.js +1 -1
  697. package/views/3d/layers/graphics/pipeline/featureSet/TiledFeatureStore.js +1 -1
  698. package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
  699. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  700. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  701. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  702. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  703. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  704. package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
  705. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  706. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  707. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  708. package/views/3d/support/PBFDecoder.js +1 -1
  709. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  710. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  711. package/views/3d/terrain/OverlayRenderer.js +1 -1
  712. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  713. package/views/3d/terrain/TerrainRenderer.js +1 -1
  714. package/views/3d/terrain/TileCompositor.js +1 -1
  715. package/views/3d/webgl/RenderNode.js +1 -1
  716. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  717. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  718. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  719. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  720. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  721. package/views/3d/webgl-engine/collections/Component/Material/shader/DecodeSymbolColor.glsl.js +2 -2
  722. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  723. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  724. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  725. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +1 -1
  726. package/views/3d/webgl-engine/core/shaderLibrary/HighlightCellGridScreenSpacePass.glsl.js +1 -1
  727. package/views/3d/webgl-engine/core/shaderLibrary/HighlightReadBitmap.glsl.js +2 -2
  728. package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +3 -3
  729. package/views/3d/webgl-engine/core/shaderLibrary/NormalFromDepth.glsl.js +1 -1
  730. package/views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js +2 -2
  731. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +1 -1
  732. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js +2 -2
  733. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +3 -3
  734. package/views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js +1 -1
  735. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +9 -9
  736. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +1 -1
  737. package/views/3d/webgl-engine/core/shaderLibrary/attributes/ObjectAndLayerIdColor.glsl.js +1 -1
  738. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  739. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  740. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  741. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +2 -2
  742. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +1 -1
  743. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  744. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +1 -1
  745. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +2 -2
  746. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTangent.glsl.js +1 -1
  747. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +2 -2
  748. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +2 -2
  749. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
  750. package/views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js +3 -3
  751. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +2 -2
  752. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +1 -1
  753. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDVisibility.glsl.js +1 -1
  754. package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +3 -3
  755. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +1 -1
  756. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +3 -3
  757. package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +2 -2
  758. package/views/3d/webgl-engine/core/shaderLibrary/raster/Colormap.glsl.js +1 -1
  759. package/views/3d/webgl-engine/core/shaderLibrary/raster/Common.glsl.js +2 -2
  760. package/views/3d/webgl-engine/core/shaderLibrary/raster/Projection.glsl.js +1 -1
  761. package/views/3d/webgl-engine/core/shaderLibrary/raster/RasterColorizer.glsl.js +1 -1
  762. package/views/3d/webgl-engine/core/shaderLibrary/shading/AnalyticalSkyModel.glsl.js +1 -1
  763. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeFragmentNormals.glsl.js +1 -1
  764. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +1 -1
  765. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  766. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +4 -4
  767. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js +1 -1
  768. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
  769. package/views/3d/webgl-engine/core/shaderLibrary/shading/FoamRendering.glsl.js +1 -1
  770. package/views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js +4 -4
  771. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +1 -1
  772. package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +2 -2
  773. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +1 -1
  774. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +1 -1
  775. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -1
  776. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +1 -1
  777. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +1 -1
  778. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +7 -7
  779. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +2 -2
  780. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +1 -1
  781. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +1 -1
  782. package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +2 -2
  783. package/views/3d/webgl-engine/core/shaderLibrary/shading/TextureTransformUV.glsl.js +1 -1
  784. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  785. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +1 -1
  786. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +1 -1
  787. package/views/3d/webgl-engine/core/shaderLibrary/terrain/BackgroundGrid.glsl.js +1 -1
  788. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +3 -3
  789. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +1 -1
  790. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +6 -6
  791. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +1 -1
  792. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  793. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
  794. package/views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js +2 -2
  795. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +3 -3
  796. package/views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js +1 -1
  797. package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +1 -1
  798. package/views/3d/webgl-engine/core/shaderLibrary/util/DoublePrecision.glsl.js +1 -1
  799. package/views/3d/webgl-engine/core/shaderLibrary/util/IsNaN.glsl.js +2 -2
  800. package/views/3d/webgl-engine/core/shaderLibrary/util/LocalFromScreenSpace.glsl.js +2 -2
  801. package/views/3d/webgl-engine/core/shaderLibrary/util/MixExternalColor.glsl.js +1 -1
  802. package/views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloat16Encoding.glsl.js +1 -1
  803. package/views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js +1 -1
  804. package/views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js +1 -1
  805. package/views/3d/webgl-engine/core/shaderLibrary/util/TextureAtlasLookup.glsl.js +1 -1
  806. package/views/3d/webgl-engine/core/shaderLibrary/util/TextureOnly.glsl.js +1 -1
  807. package/views/3d/webgl-engine/core/shaderModules/BooleanBindUniform.js +1 -1
  808. package/views/3d/webgl-engine/core/shaderModules/BooleanPassUniform.js +1 -1
  809. package/views/3d/webgl-engine/core/shaderModules/Float2BindUniform.js +1 -1
  810. package/views/3d/webgl-engine/core/shaderModules/Float2DrawUniform.js +1 -1
  811. package/views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js +1 -1
  812. package/views/3d/webgl-engine/core/shaderModules/Float3BindUniform.js +1 -1
  813. package/views/3d/webgl-engine/core/shaderModules/Float3DrawUniform.js +1 -1
  814. package/views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js +1 -1
  815. package/views/3d/webgl-engine/core/shaderModules/Float4BindUniform.js +1 -1
  816. package/views/3d/webgl-engine/core/shaderModules/Float4DrawUniform.js +1 -1
  817. package/views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js +1 -1
  818. package/views/3d/webgl-engine/core/shaderModules/Float4sPassUniform.js +1 -1
  819. package/views/3d/webgl-engine/core/shaderModules/FloatBindUniform.js +1 -1
  820. package/views/3d/webgl-engine/core/shaderModules/FloatDrawUniform.js +1 -1
  821. package/views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js +1 -1
  822. package/views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js +1 -1
  823. package/views/3d/webgl-engine/core/shaderModules/Integer2BindUniform.js +1 -1
  824. package/views/3d/webgl-engine/core/shaderModules/Integer2PassUniform.js +1 -1
  825. package/views/3d/webgl-engine/core/shaderModules/IntegerBindUniform.js +1 -1
  826. package/views/3d/webgl-engine/core/shaderModules/IntegerDrawUniform.js +1 -1
  827. package/views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js +1 -1
  828. package/views/3d/webgl-engine/core/shaderModules/Matrix3DrawUniform.js +1 -1
  829. package/views/3d/webgl-engine/core/shaderModules/Matrix3PassUniform.js +1 -1
  830. package/views/3d/webgl-engine/core/shaderModules/Matrix4BindUniform.js +1 -1
  831. package/views/3d/webgl-engine/core/shaderModules/Matrix4DrawUniform.js +1 -1
  832. package/views/3d/webgl-engine/core/shaderModules/Matrix4PassUniform.js +1 -1
  833. package/views/3d/webgl-engine/core/shaderModules/Matrix4sDrawUniform.js +1 -1
  834. package/views/3d/webgl-engine/core/shaderModules/Matrix4sPassUniform.js +1 -1
  835. package/views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js +1 -1
  836. package/views/3d/webgl-engine/core/shaderModules/Texture2DDrawUniform.js +1 -1
  837. package/views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js +1 -1
  838. package/views/3d/webgl-engine/core/shaderModules/TextureCubeBindUniform.js +1 -1
  839. package/views/3d/webgl-engine/core/shaderModules/glsl.js +5 -0
  840. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  841. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js +1 -1
  842. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  843. package/views/3d/webgl-engine/effects/OpaqueEnvironment.js +1 -1
  844. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  845. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  846. package/views/3d/webgl-engine/effects/TransparentEnvironment.js +1 -1
  847. package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
  848. package/views/3d/webgl-engine/effects/bloom/BloomBlur.glsl.js +1 -1
  849. package/views/3d/webgl-engine/effects/bloom/BloomBlurTechnique.js +1 -1
  850. package/views/3d/webgl-engine/effects/bloom/BloomComposition.glsl.js +1 -1
  851. package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechnique.js +1 -1
  852. package/views/3d/webgl-engine/effects/bloom/BloomDepthAdjust.glsl.js +1 -1
  853. package/views/3d/webgl-engine/effects/bloom/BloomDepthAdjustTechnique.js +1 -1
  854. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  855. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  856. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +5 -0
  857. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  858. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +5 -0
  859. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  860. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  861. package/views/3d/webgl-engine/effects/haze/Haze.glsl.js +1 -1
  862. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  863. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  864. package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +1 -1
  865. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  866. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  867. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  868. package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
  869. package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
  870. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  871. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  872. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
  873. package/views/3d/webgl-engine/effects/highlight/SingleHighlightApplyTechnique.js +1 -1
  874. package/views/3d/webgl-engine/effects/highlight/SingleHighlightBlurTechnique.js +1 -1
  875. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  876. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  877. package/views/3d/webgl-engine/effects/laserlines/LaserlineTechnique.js +1 -1
  878. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  879. package/views/3d/webgl-engine/effects/magnifier/MagnifierTechnique.js +1 -1
  880. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  881. package/views/3d/webgl-engine/effects/smaa/SMAABlendWeightsTechnique.js +1 -1
  882. package/views/3d/webgl-engine/effects/smaa/SMAABlurTechnique.js +1 -1
  883. package/views/3d/webgl-engine/effects/smaa/SMAAEdgeDetectTechnique.js +1 -1
  884. package/views/3d/webgl-engine/effects/smaa/SMAAPassParameters.js +1 -1
  885. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  886. package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
  887. package/views/3d/webgl-engine/effects/ssao/SSAOParameters.js +1 -1
  888. package/views/3d/webgl-engine/effects/ssao/SSAOTechnique.js +1 -1
  889. package/views/3d/webgl-engine/effects/stars/Stars.glsl.js +1 -1
  890. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  891. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  892. package/views/3d/webgl-engine/effects/transparency/OITBlend.glsl.js +1 -1
  893. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  894. package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
  895. package/views/3d/webgl-engine/lib/CompositingHelper.js +1 -1
  896. package/views/3d/webgl-engine/lib/DrapedHeatmapRenderer.js +1 -1
  897. package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
  898. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  899. package/views/3d/webgl-engine/lib/Material.js +1 -1
  900. package/views/3d/webgl-engine/lib/Program.js +1 -1
  901. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  902. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  903. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  904. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  905. package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +1 -1
  906. package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +1 -1
  907. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  908. package/views/3d/webgl-engine/lib/TextureTechnique.js +1 -1
  909. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  910. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  911. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  912. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  913. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  914. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  915. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  916. package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
  917. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  918. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  919. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  920. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  921. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  922. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  923. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  924. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  925. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  926. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  927. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  928. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  929. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  930. package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
  931. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  932. package/views/3d/webgl-engine/materials/internal/WaterTextureRepository.js +1 -1
  933. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  934. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  935. package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
  936. package/views/3d/webgl-engine/shaders/BlendWeights.glsl.js +1 -1
  937. package/views/3d/webgl-engine/shaders/Blur.glsl.js +1 -1
  938. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  939. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  940. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  941. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  942. package/views/3d/webgl-engine/shaders/Compositing.glsl.js +1 -1
  943. package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
  944. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  945. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  946. package/views/3d/webgl-engine/shaders/EdgeDetect.glsl.js +1 -1
  947. package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +1 -1
  948. package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +1 -1
  949. package/views/3d/webgl-engine/shaders/HUDCompositing.glsl.js +1 -1
  950. package/views/3d/webgl-engine/shaders/HUDCompositingTechnique.js +1 -1
  951. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  952. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  953. package/views/3d/webgl-engine/shaders/Heatmap.glsl.js +1 -1
  954. package/views/3d/webgl-engine/shaders/HeatmapDensity.glsl.js +1 -1
  955. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  956. package/views/3d/webgl-engine/shaders/HeatmapTechnique.js +1 -1
  957. package/views/3d/webgl-engine/shaders/HighlightApply.glsl.js +1 -1
  958. package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +1 -1
  959. package/views/3d/webgl-engine/shaders/HighlightToSingle.glsl.js +1 -1
  960. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  961. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  962. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  963. package/views/3d/webgl-engine/shaders/Laserlines.glsl.js +1 -1
  964. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  965. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  966. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  967. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  968. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  969. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  970. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  971. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  972. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  973. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +7 -7
  974. package/views/3d/webgl-engine/shaders/OverlayCompositing.glsl.js +1 -1
  975. package/views/3d/webgl-engine/shaders/OverlayCompositingTechnique.js +1 -1
  976. package/views/3d/webgl-engine/shaders/Path.glsl.js +1 -1
  977. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  978. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  979. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  980. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  981. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  982. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  983. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  984. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  985. package/views/3d/webgl-engine/shaders/SSAO.glsl.js +1 -1
  986. package/views/3d/webgl-engine/shaders/SSAOBlur.glsl.js +1 -1
  987. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -1
  988. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  989. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  990. package/views/3d/webgl-engine/shaders/ShadowCastAccumulate.glsl.js +1 -1
  991. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  992. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  993. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  994. package/views/3d/webgl-engine/shaders/ShadowHighlight.glsl.js +1 -1
  995. package/views/3d/webgl-engine/shaders/SingleHighlightApply.glsl.js +1 -1
  996. package/views/3d/webgl-engine/shaders/SingleHighlightBlur.glsl.js +1 -1
  997. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  998. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  999. package/views/3d/webgl-engine/shaders/SphereIntersect.glsl.js +2 -2
  1000. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  1001. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  1002. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +1 -1
  1003. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  1004. package/views/3d/webgl-engine/shaders/ViewshedTechnique.js +1 -1
  1005. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  1006. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +2 -2
  1007. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardNonSilhouetteEdges.glsl.js +4 -4
  1008. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DistanceFalloff.glsl.js +2 -2
  1009. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShader.glsl.js +1 -1
  1010. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +1 -1
  1011. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +3 -3
  1012. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +7 -7
  1013. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +7 -7
  1014. package/views/3d/webgl.d.ts +3 -2
  1015. package/views/3d/webgl.js +1 -1
  1016. package/views/BreakpointsOwner.d.ts +1 -1
  1017. package/views/DOMContainer.d.ts +1 -1
  1018. package/views/FocusAreas.js +1 -1
  1019. package/views/PopupView.d.ts +1 -1
  1020. package/views/draw/DrawGraphicTool.js +1 -1
  1021. package/views/draw/DrawOperation.js +1 -1
  1022. package/views/draw/support/Box.js +1 -1
  1023. package/views/draw/support/helpMessageUtils.js +1 -1
  1024. package/views/draw/support/tooltipUtils.js +1 -1
  1025. package/views/interactive/keybindings.js +1 -1
  1026. package/views/interactive/tooltip/content/tooltipContentFactory.js +1 -1
  1027. package/views/interactive/tooltip/infos/DrawCircleTooltipInfo.js +1 -1
  1028. package/views/interactive/tooltip/infos/DrawMultipointTooltipInfo.js +5 -0
  1029. package/views/interactive/tooltip/infos/DrawRectangleTooltipInfo.js +1 -1
  1030. package/views/layers/FeatureLayerView.js +1 -1
  1031. package/views/layers/MediaLayerView.js +1 -1
  1032. package/views/support/colorUtils.d.ts +2 -2
  1033. package/views/webgl/NoParameters.js +5 -0
  1034. package/views/webgl/ShaderBuilder.js +5 -0
  1035. package/views/webgl/Texture.js +1 -1
  1036. package/views/webgl/Uniform.js +5 -0
  1037. package/views/webgl/testAppleAmdDrawArrays.js +1 -1
  1038. package/widgets/Attachments/AttachmentsViewModel.js +1 -1
  1039. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  1040. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  1041. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  1042. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  1043. package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
  1044. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  1045. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  1046. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  1047. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  1048. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  1049. package/widgets/BatchAttributeForm/templates/BatchFormTemplate.js +1 -1
  1050. package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
  1051. package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
  1052. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  1053. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  1054. package/widgets/BatchAttributeForm.js +1 -1
  1055. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  1056. package/widgets/Editor/EditorViewModel.js +1 -1
  1057. package/widgets/Editor/UpdateWorkflow.js +1 -1
  1058. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  1059. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  1060. package/widgets/Editor.js +1 -1
  1061. package/widgets/Feature.js +1 -1
  1062. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/AssociationDetails.js +5 -0
  1063. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  1064. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationSettings.js +1 -1
  1065. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  1066. package/widgets/FeatureForm/FieldInput.js +1 -1
  1067. package/widgets/FeatureForm/UtilityNetworkAssociationInput.js +1 -1
  1068. package/widgets/FeatureForm.js +1 -1
  1069. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  1070. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.d.ts +4 -0
  1071. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.js +1 -1
  1072. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  1073. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  1074. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +5 -0
  1075. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  1076. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  1077. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  1078. package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
  1079. package/widgets/OrientedImageryViewer.js +1 -1
  1080. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  1081. package/widgets/Print.js +1 -1
  1082. package/widgets/Search.js +1 -1
  1083. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  1084. package/widgets/Swipe/SwipeViewModel.js +1 -1
  1085. package/widgets/UtilityNetworkTrace.js +1 -1
  1086. package/widgets/smartMapping/support/utils.d.ts +3 -2
  1087. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +5 -0
  1088. package/widgets/support/FilterBuilder.js +5 -0
  1089. package/widgets/support/FilterCondition/FilterConditionViewModel.js +5 -0
  1090. package/widgets/support/FilterCondition/conditionUtils.js +5 -0
  1091. package/widgets/support/FilterCondition.js +5 -0
  1092. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  1093. package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
  1094. package/widgets/support/widget.d.ts +8 -2
  1095. package/assets/esri/core/workers/chunks/1557446aa4525705a5b2.js +0 -1
  1096. package/assets/esri/core/workers/chunks/2cf8677005dd2127f5eb.js +0 -1
  1097. package/assets/esri/core/workers/chunks/31b9faaa539fdc639a0a.js +0 -1
  1098. package/assets/esri/core/workers/chunks/349f31a1fb489fbfe60d.js +0 -1
  1099. package/assets/esri/core/workers/chunks/34b31091e172e910d750.js +0 -1
  1100. package/assets/esri/core/workers/chunks/4020c753fcbbb9f1c731.js +0 -1
  1101. package/assets/esri/core/workers/chunks/48a1b63291c62bc78a41.js +0 -1
  1102. package/assets/esri/core/workers/chunks/48e6f5571042aaffe543.js +0 -314
  1103. package/assets/esri/core/workers/chunks/5bb175106aee21025bc2.js +0 -1
  1104. package/assets/esri/core/workers/chunks/5c57aa9fdc4e1bab61ac.js +0 -1
  1105. package/assets/esri/core/workers/chunks/7719fe672ea74cdc87be.js +0 -1
  1106. package/assets/esri/core/workers/chunks/7ae1f26ded268099f429.js +0 -1
  1107. package/assets/esri/core/workers/chunks/99c0b133c97abf4c2eec.js +0 -1
  1108. package/assets/esri/core/workers/chunks/9a30ad773c22bde61c64.js +0 -1
  1109. package/assets/esri/core/workers/chunks/9b687465cc3863e14b29.js +0 -2
  1110. package/assets/esri/core/workers/chunks/b5ee6c203f536bdb6708.js +0 -1
  1111. package/assets/esri/core/workers/chunks/c12bdf6fd7f631e3f79e.js +0 -971
  1112. package/assets/esri/core/workers/chunks/c58f559eb68035ebe3da.js +0 -1
  1113. package/assets/esri/core/workers/chunks/d2403fc8f4c723301144.js +0 -1
  1114. package/assets/esri/core/workers/chunks/e7913ec1b4f9da490ba3.js +0 -1
  1115. package/views/2d/engine/webgl/shaderGraph/ShaderBuilder2D.js +0 -5
  1116. package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +0 -5
  1117. package/views/3d/webgl-engine/core/shaderModules/Uniform.js +0 -5
  1118. package/views/3d/webgl-engine/core/shaderModules/interfaces.js +0 -5
  1119. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNode.js +0 -5
  1120. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeColorEffects.js +0 -5
  1121. package/views/3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeGeometryMasking.js +0 -5
  1122. /package/views/{3d/webgl-engine/core/shaderTechnique → webgl}/BindType.js +0 -0
@@ -2,7 +2,7 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{maxElevationOffset as o}from"../../../collections/Component/Material/shader/ComponentData.glsl.js";import{NormalAttribute as e}from"../../../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{DoublePrecision as r}from"../../../core/shaderLibrary/util/DoublePrecision.glsl.js";import{RgbaFloatEncoding as t}from"../../../core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{Float3DrawUniform as a}from"../../../core/shaderModules/Float3DrawUniform.js";import{Float3PassUniform as l}from"../../../core/shaderModules/Float3PassUniform.js";import{glsl as n}from"../../../core/shaderModules/interfaces.js";import{Matrix3DrawUniform as d}from"../../../core/shaderModules/Matrix3DrawUniform.js";import{Matrix3PassUniform as m}from"../../../core/shaderModules/Matrix3PassUniform.js";import{Matrix4BindUniform as i}from"../../../core/shaderModules/Matrix4BindUniform.js";import{Texture2DDrawUniform as s}from"../../../core/shaderModules/Texture2DDrawUniform.js";import{VertexAttribute as c}from"../../../lib/VertexAttribute.js";function f(f,v){const u=f.vertex;u.include(t),f.include(e,v);const{silhouette:x,legacy:p,spherical:w}=v;u.uniforms.add(new s("componentDataTex",(o=>o.componentDataTexture))),f.attributes.add(c.COMPONENTINDEX,"float");const M=0,F=1,T=2,h=3,P=8,V=128;u.constants.add("lineWidthFractionFactor","float",8),u.constants.add("extensionLengthOffset","float",128),u.code.add(n`
5
+ import{maxElevationOffset as o}from"../../../collections/Component/Material/shader/ComponentData.glsl.js";import{NormalAttribute as e}from"../../../core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{DoublePrecision as r}from"../../../core/shaderLibrary/util/DoublePrecision.glsl.js";import{RgbaFloatEncoding as t}from"../../../core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{Float3DrawUniform as a}from"../../../core/shaderModules/Float3DrawUniform.js";import{Float3PassUniform as l}from"../../../core/shaderModules/Float3PassUniform.js";import{glsl as n}from"../../../core/shaderModules/glsl.js";import{Matrix3DrawUniform as d}from"../../../core/shaderModules/Matrix3DrawUniform.js";import{Matrix3PassUniform as m}from"../../../core/shaderModules/Matrix3PassUniform.js";import{Matrix4BindUniform as i}from"../../../core/shaderModules/Matrix4BindUniform.js";import{Texture2DDrawUniform as s}from"../../../core/shaderModules/Texture2DDrawUniform.js";import{VertexAttribute as c}from"../../../lib/VertexAttribute.js";function f(f,v){const u=f.vertex;u.include(t),f.include(e,v);const{silhouette:x,legacy:p,spherical:w}=v;u.uniforms.add(new s("componentDataTex",(o=>o.componentDataTexture))),f.attributes.add(c.COMPONENTINDEX,"float");const M=0,F=1,T=2,h=3,P=8,V=128;u.constants.add("lineWidthFractionFactor","float",8),u.constants.add("extensionLengthOffset","float",128),u.code.add(n`
6
6
  vec2 _componentTextureCoords(float componentIndex, float fieldOffset) {
7
7
  float fieldIndex = ${n.float(h)} * componentIndex + fieldOffset;
8
8
  float texSize = float(textureSize(componentDataTex, 0).x);
@@ -2,11 +2,11 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{neverReached as e}from"../../../../../../core/compilerUtils.js";import{FloatDrawUniform as t}from"../../../core/shaderModules/FloatDrawUniform.js";import{glsl as r}from"../../../core/shaderModules/interfaces.js";import{EdgeType as s}from"./EdgeUtil.glsl.js";import{UnpackAttributes as a}from"./UnpackAttributes.glsl.js";function d(d,i){const o=d.vertex;switch(d.include(a,i),i.type){case s.Solid:o.code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
5
+ import{neverReached as e}from"../../../../../../core/compilerUtils.js";import{FloatDrawUniform as t}from"../../../core/shaderModules/FloatDrawUniform.js";import{glsl as r}from"../../../core/shaderModules/glsl.js";import{EdgeType as s}from"./EdgeUtil.glsl.js";import{UnpackAttributes as a}from"./UnpackAttributes.glsl.js";function d(d,i){const o=d.vertex;switch(d.include(a,i),i.type){case s.Solid:o.code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
6
6
  return 0.0;
7
- }`);break;case s.Sketch:o.uniforms.add(new t("strokesAmplitude",(e=>e.strokesTexture.amplitude))),o.code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
7
+ }`);break;case s.Sketch:o.uniforms.add(new t("strokesAmplitude",(e=>e.strokesTexture.amplitude))).code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
8
8
  return strokesAmplitude;
9
- }`);break;case s.Mixed:o.uniforms.add(new t("strokesAmplitude",(e=>e.strokesTexture.amplitude))),o.code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
9
+ }`);break;case s.Mixed:o.uniforms.add(new t("strokesAmplitude",(e=>e.strokesTexture.amplitude))).code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
10
10
  float type = unpackedAttributes.type;
11
11
  if (type <= 0.0) {
12
12
  return strokesAmplitude;
@@ -2,37 +2,37 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{neverReached as e}from"../../../../../../core/compilerUtils.js";import{RgbaFloatEncoding as t}from"../../../core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{FloatDrawUniform as r}from"../../../core/shaderModules/FloatDrawUniform.js";import{NoParameters as a,glsl as s}from"../../../core/shaderModules/interfaces.js";import{Texture2DDrawUniform as o}from"../../../core/shaderModules/Texture2DDrawUniform.js";import{usesSketchLogic as u,EdgeType as l}from"./EdgeUtil.glsl.js";import{UnpackAttributes as c}from"./UnpackAttributes.glsl.js";class i extends a{}function n(a,i){a.include(c,i);const{vertex:n,fragment:d}=a;switch(u(i.type)&&(n.uniforms.add(new o("strokesTexture",(e=>e.strokesTexture.texture))),n.uniforms.add(new r("strokesLog2Resolution",(e=>Math.log2(e.strokesTexture.resolution))),new r("strokeVariants",(e=>e.strokesTexture.variants))),a.varyings.add("vStrokeUV","vec2"),d.uniforms.add(new o("strokesTexture",(e=>e.strokesTexture.texture)),new r("strokesNormalizationScale",(e=>e.strokesTexture.normalizationScale))),n.code.add(s`void calculateStyleOutputsSketch(float lineLength, UnpackedAttributes unpackedAttributes) {
5
+ import{neverReached as e}from"../../../../../../core/compilerUtils.js";import{RgbaFloatEncoding as t}from"../../../core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{FloatDrawUniform as r}from"../../../core/shaderModules/FloatDrawUniform.js";import{glsl as a}from"../../../core/shaderModules/glsl.js";import{Texture2DDrawUniform as s}from"../../../core/shaderModules/Texture2DDrawUniform.js";import{usesSketchLogic as o,EdgeType as l}from"./EdgeUtil.glsl.js";import{UnpackAttributes as u}from"./UnpackAttributes.glsl.js";import{NoParameters as c}from"../../../../../webgl/NoParameters.js";class i extends c{}function n(c,i){c.include(u,i);const{vertex:n,fragment:d}=c;switch(o(i.type)&&(c.varyings.add("vStrokeUV","vec2"),n.uniforms.add(new s("strokesTexture",(e=>e.strokesTexture.texture)),new r("strokesLog2Resolution",(e=>Math.log2(e.strokesTexture.resolution))),new r("strokeVariants",(e=>e.strokesTexture.variants))).code.add(a`void calculateStyleOutputsSketch(float lineLength, UnpackedAttributes unpackedAttributes) {
6
6
  vec2 sidenessNorm = unpackedAttributes.sidenessNorm;
7
7
  float lineIndex = clamp(ceil(log2(lineLength)), 0.0, strokesLog2Resolution);
8
8
  vStrokeUV = vec2(exp2(lineIndex) * sidenessNorm.y, lineIndex * strokeVariants + variantStroke + 0.5) / vec2(textureSize(strokesTexture, 0));
9
9
  vStrokeUV.x += variantOffset;
10
- }`),a.fragment.include(t),d.code.add(s`float calculateLineOffsetSketch() {
10
+ }`),c.fragment.include(t),d.uniforms.add(new s("strokesTexture",(e=>e.strokesTexture.texture)),new r("strokesNormalizationScale",(e=>e.strokesTexture.normalizationScale))).code.add(a`float calculateLineOffsetSketch() {
11
11
  float offsetNorm = rgbaTofloat(texture(strokesTexture, vStrokeUV));
12
12
  return (offsetNorm - 0.5) * strokesNormalizationScale;
13
13
  }
14
14
  float calculateLinePressureSketch() {
15
15
  return rgbaTofloat(texture(strokesTexture, vStrokeUV + vec2(0.0, 0.5)));
16
- }`)),i.type){case l.Solid:n.code.add(s`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes) {}`),d.code.add(s`float calculateLineOffset() {
16
+ }`)),i.type){case l.Solid:n.code.add(a`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes) {}`),d.code.add(a`float calculateLineOffset() {
17
17
  return 0.0;
18
18
  }
19
19
  float calculateLinePressure() {
20
20
  return 1.0;
21
- }`);break;case l.Sketch:n.code.add(s`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes)
21
+ }`);break;case l.Sketch:n.code.add(a`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes)
22
22
  {
23
23
  calculateStyleOutputsSketch(vLineLengthPixels, unpackedAttributes);
24
- }`),d.code.add(s`float calculateLineOffset() {
24
+ }`),d.code.add(a`float calculateLineOffset() {
25
25
  return calculateLineOffsetSketch();
26
26
  }
27
27
  float calculateLinePressure() {
28
28
  return calculateLinePressureSketch();
29
- }`);break;case l.Mixed:a.varyings.add("vType","float"),n.code.add(s`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes)
29
+ }`);break;case l.Mixed:c.varyings.add("vType","float"),n.code.add(a`void calculateStyleOutputs(UnpackedAttributes unpackedAttributes)
30
30
  {
31
31
  vType = unpackedAttributes.type;
32
32
  if (unpackedAttributes.type <= 0.0) {
33
33
  calculateStyleOutputsSketch(vLineLengthPixels, unpackedAttributes);
34
34
  }
35
- }`),d.code.add(s`float calculateLineOffset() {
35
+ }`),d.code.add(a`float calculateLineOffset() {
36
36
  if (vType <= 0.0) {
37
37
  return calculateLineOffsetSketch();
38
38
  }
@@ -2,23 +2,23 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{glsl as e,If as t}from"../../../core/shaderModules/interfaces.js";import{VertexAttribute as n}from"../../../lib/VertexAttribute.js";import{EdgeType as s}from"./EdgeUtil.glsl.js";function i(i,o){const d=i.vertex;i.attributes.add(n.SIDENESS,"vec2");const r=o.type===s.Mixed,c=o.type===s.Solid;d.code.add(e`
5
+ import{glsl as e,If as t}from"../../../core/shaderModules/glsl.js";import{VertexAttribute as n}from"../../../lib/VertexAttribute.js";import{EdgeType as s}from"./EdgeUtil.glsl.js";function i(i,o){const d=o.type===s.Mixed,r=o.type===s.Solid;i.attributes.add(n.SIDENESS,"vec2"),i.vertex.code.add(e`
6
6
  struct UnpackedAttributes {
7
7
  vec2 sideness;
8
8
  vec2 sidenessNorm;
9
9
  float lineWidthPixels;
10
10
  float extensionLengthPixels;
11
- ${t(r,"float type;")}
11
+ ${t(d,"float type;")}
12
12
  };
13
- `),d.code.add(e`
13
+ `).code.add(e`
14
14
  UnpackedAttributes unpackAttributes(ComponentData component) {
15
15
  vec2 sidenessNorm = sideness;
16
16
  vec2 sideness = sidenessNorm * 2.0 - 1.0;
17
17
  float extensionLengthPixels = component.extensionLength;
18
18
  float lineWidth = component.lineWidth;
19
- ${t(r,"if (component.type <= 0.0) {")}
20
- ${t(!c,"extensionLengthPixels *= variantExtension * 2.0 - 1.0;")}
21
- ${t(r,"}")}
22
- return UnpackedAttributes(sideness, sidenessNorm, lineWidth, extensionLengthPixels ${t(r,", component.type")});
19
+ ${t(d,"if (component.type <= 0.0) {")}
20
+ ${t(!r,"extensionLengthPixels *= variantExtension * 2.0 - 1.0;")}
21
+ ${t(d,"}")}
22
+ return UnpackedAttributes(sideness, sidenessNorm, lineWidth, extensionLengthPixels ${t(d,", component.type")});
23
23
  }
24
24
  `)}export{i as UnpackAttributes};
@@ -1,4 +1,5 @@
1
1
  import "../../interfaces";
2
2
 
3
- import webgl = __esri.webgl;
4
- export = webgl;
3
+ export const fromRenderCoordinates: __esri.webgl["fromRenderCoordinates"];
4
+ export const renderCoordinateTransformAt: __esri.webgl["renderCoordinateTransformAt"];
5
+ export const toRenderCoordinates: __esri.webgl["toRenderCoordinates"];
package/views/3d/webgl.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{create as e}from"../../core/libs/gl-matrix-2/factories/mat4f64.js";import{computeTranslationToOriginAndRotation as o}from"../../geometry/projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as r}from"../../geometry/projection/projectBuffer.js";var n,t;function l(e,o,n,t,l,i,c){return t=t||e.spatialReference,r(o,t,n,l,e.renderCoordsHelper.spatialReference,i,c)?l:null}function i(e,o,n,t,l,i,c){return i=i||e.spatialReference,r(o,e.renderCoordsHelper.spatialReference,n,t,i,l,c)?t:null}function c(r,n,t,l){return l||(l=e()),t=t||r.spatialReference,o(t,n,l,r.renderCoordsHelper.spatialReference)?l:null}!function(e){e.OPAQUE="opaque-color",e.TRANSPARENT="transparent-color",e.COMPOSITE="composite-color",e.FINAL="final-color"}(n||(n={})),function(e){e.SSAO="ssao",e.LASERLINES="laserline-color",e.ANTIALIASING="aa-color",e.HIGHLIGHTS="highlight-color",e.MAGNIFIER="magnifier-color",e.OCCLUDED="occluded-color",e.VIEWSHED="viewshed-color",e.OPAQUE_ENVIRONMENT="opaque-environment-color",e.TRANSPARENT_ENVIRONMENT="transparent-environment-color"}(t||(t={}));export{t as InternalRenderCategory,n as RenderCategory,i as fromRenderCoordinates,c as renderCoordinateTransformAt,l as toRenderCoordinates};
5
+ import{create as e}from"../../core/libs/gl-matrix-2/factories/mat4f64.js";import{computeTranslationToOriginAndRotation as o}from"../../geometry/projection/computeTranslationToOriginAndRotation.js";import{projectBuffer as r}from"../../geometry/projection/projectBuffer.js";var n,t;function l(e,o,n,t,l,a,c){return t=t||e.spatialReference,r(o,t,n,l,e.renderCoordsHelper.spatialReference,a,c)?l:null}function a(e,o,n,t,l,a,c){return a=a||e.spatialReference,r(o,e.renderCoordsHelper.spatialReference,n,t,a,l,c)?t:null}function c(r,n,t,l){return l||(l=e()),t=t||r.spatialReference,o(t,n,l,r.renderCoordsHelper.spatialReference)?l:null}!function(e){e.OPAQUE="opaque-color",e.TRANSPARENT="transparent-color",e.COMPOSITE="composite-color",e.FINAL="final-color"}(n||(n={})),function(e){e.SSAO="ssao",e.LASERLINES="laserline-color",e.ANTIALIASING="aa-color",e.HIGHLIGHTS="highlight-color",e.MAGNIFIER="magnifier-color",e.OCCLUDED="occluded-color",e.VIEWSHED="viewshed-color",e.OPAQUE_ENVIRONMENT="opaque-environment-color",e.TRANSPARENT_ENVIRONMENT="transparent-environment-color",e.FOCUSAREA="focus-area"}(t||(t={}));export{t as InternalRenderCategory,n as RenderCategory,a as fromRenderCoordinates,c as renderCoordinateTransformAt,l as toRenderCoordinates};
@@ -1,4 +1,4 @@
1
1
  import "../interfaces";
2
2
 
3
3
  import BreakpointsOwner = __esri.BreakpointsOwner;
4
- export = BreakpointsOwner;
4
+ export { BreakpointsOwner };
@@ -1,4 +1,4 @@
1
1
  import "../interfaces";
2
2
 
3
3
  import DOMContainer = __esri.DOMContainer;
4
- export = DOMContainer;
4
+ export { DOMContainer };
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import o from"../core/Accessor.js";import r from"../core/Collection.js";import{destroyMaybe as t}from"../core/maybe.js";import{watch as s,syncAndInitial as i}from"../core/reactiveUtils.js";import{property as n}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as a}from"../core/accessorSupport/decorators/subclass.js";import{e as c}from"../chunks/earcut.js";import{create as d}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{n as m}from"../chunks/vec32.js";import{create as p}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import l from"../geometry/Point.js";import{computeTranslationToOriginAndRotation as h}from"../geometry/projection/computeTranslationToOriginAndRotation.js";import{newDoubleArray as f}from"../geometry/support/DoubleArray.js";import{newIndexArray as u}from"../geometry/support/Indices.js";import{t as g}from"../chunks/vec3.js";import{ViewingMode as y}from"./ViewingMode.js";import{ElevationContext as v}from"./3d/layers/graphics/ElevationContext.js";import{extrudePolygon as _}from"./3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js";import{computeCentroid as w}from"./3d/layers/graphics/graphicUtils.js";import{geometryToRenderInfo as j}from"./3d/support/renderInfoUtils/polygon.js";import{effectsMapping as A,FocusAreaRenderNodeColorEffects as C}from"./3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeColorEffects.js";import{FocusAreaGeometry as G,FocusAreaRenderNodeGeometryMasking as N}from"./3d/webgl-engine/effects/focusArea/FocusAreaRenderNodeGeometryMasking.js";const b=0,k=5e6,M=.42,R=.32;function x(e,o){if(e){if("bright"===o){const o=(e[0]+e[1]+e[2])/3;return[o*R+(1-R),o*R+(1-R),o*R+(1-R),e[3]*R]}return"dark"===o?[e[0]*M,e[1]*M,e[2]*M,e[3]*M]:e}}let P=class extends o{constructor(e){super(e),this.style="dark",this._geometries=new Array,this._areas=new r,this._elevationContext=new v}initialize(){this.addHandles([s((()=>this.style),(()=>this._updateRenderNodeColoring()),i)])}get activePolygons(){const e=new r;for(const o of this.areas)if(o.enabled)for(const r of o.geometries)e.push(r);return e}add(e){this.areas.add(e),this._updateFocusAreaGeometries()}addMany(e){this.areas.addMany(e),this._updateFocusAreaGeometries()}remove(e){this.areas.remove(e),this._updateFocusAreaGeometries()}removeMany(e){this.areas.removeMany(e),this._updateFocusAreaGeometries()}removeAll(){this.areas.removeAll(),this._updateFocusAreaGeometries()}containsGeometry(e){let o=!0;const r=new l(e);return o=this.areas.some((e=>!!e.enabled&&(!!e?.geometries.length&&e.geometries.some((e=>e.contains(r)))))),o}get areas(){return this._areas}_updateFocusAreaGeometries(){this.activePolygons.length>0?(this._extrudePolygons(),this._updateRenderNodes()):(this._renderNodeGeometryMasking=t(this._renderNodeGeometryMasking),this._renderNodeColorEffect=t(this._renderNodeColorEffect))}_extrudePolygons(){if(!this.view.renderCoordsHelper)return;this._geometries=[];const e=k-b,o=p(),r=this.view.renderCoordsHelper.viewingMode===y.Global;r||this.view.renderCoordsHelper.worldUpAtPosition([0,0,0],o);for(const t of this.areas)if(t.enabled)for(const s of t.geometries){const i=w(s);if(null==i)return;const n=d();h(s.spatialReference,[i.x,i.y,0],n,this.view.renderCoordsHelper.spatialReference);const a=m(F,[n[12]-b*o[0],n[13]-b*o[1],n[14]-b*o[2]]),p=d();p[12]=-n[12],p[13]=-n[13],p[14]=-n[14];const l=j(s,this.view.elevationProvider,this.view.renderCoordsHelper,this._elevationContext),{polygons:y,mapPositions:v,position:A}=l;for(const s of y){const i=s.count,d=c(s.mapPositions,s.holeIndices,3);if(0===d.length)continue;const m=d.length,l=6*i,h=u(l+m),y=u(m),w=f(3*l),j=f(3*l),C=f(3*l),N=f(l);_(A,v,d,s,w,C,j,N,h,y,e,o,r),g(w,w,p);const k=new G(w,y,h,e,[n[12]+b*a[0],n[13]+b*a[1],n[14]+b*a[2]],t.outline?.color);this._geometries.push(k)}}}_updateRenderNodes(){this._updateRenderNodeGeometryMasking(),this._updateRenderNodeColoring()}_updateRenderNodeGeometryMasking(){this.view._stage&&(this._renderNodeGeometryMasking??=new N({view:this.view,techniques:this.view._stage.renderView.techniques,focusAreaGeometries:this._geometries,effect:A[this.style]}),this._renderNodeGeometryMasking.setExtrudedVolume())}_updateRenderNodeColoring(){this.view._stage&&(this._renderNodeColorEffect??=new C({view:this.view,techniques:this.view._stage.renderView.techniques,effect:A[this.style]}),this._renderNodeColorEffect.effect=A[this.style])}};e([n()],P.prototype,"activePolygons",null),e([n()],P.prototype,"style",void 0),e([n()],P.prototype,"_geometries",void 0),e([n({constructOnly:!0})],P.prototype,"view",void 0),e([n()],P.prototype,"_areas",void 0),P=e([a("esri.views.FocusAreas")],P);const F=p();export{P as FocusAreas,x as focusAreaHUDColor};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import o from"../core/Accessor.js";import s from"../core/Collection.js";import{destroyMaybe as r}from"../core/maybe.js";import{watch as t,syncAndInitial as i}from"../core/reactiveUtils.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import{e as c}from"../chunks/earcut.js";import{create as m}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{n as d}from"../chunks/vec32.js";import{create as p}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import l from"../geometry/Point.js";import{computeTranslationToOriginAndRotation as h}from"../geometry/projection/computeTranslationToOriginAndRotation.js";import{newDoubleArray as u}from"../geometry/support/DoubleArray.js";import{newIndexArray as f}from"../geometry/support/Indices.js";import{t as g}from"../chunks/vec3.js";import{ViewingMode as y}from"./ViewingMode.js";import{ElevationContext as v}from"./3d/layers/graphics/ElevationContext.js";import{extrudePolygon as j}from"./3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js";import{computeCentroid as _}from"./3d/layers/graphics/graphicUtils.js";import{geometryToRenderInfo as w}from"./3d/support/renderInfoUtils/polygon.js";import{FocusAreaColorNode as A}from"./3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js";import{FocusAreaGeometry as b,FocusAreaMaskNode as R}from"./3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js";const G=0,N=5e6,k=.42,x=.32;function C(e,o){if(e){if("bright"===o){const o=(e[0]+e[1]+e[2])/3;return[o*x+(1-x),o*x+(1-x),o*x+(1-x),e[3]*x]}return"dark"===o?[e[0]*k,e[1]*k,e[2]*k,e[3]*k]:e}}let F=class extends o{constructor(e){super(e),this.style="dark",this.geometries=new Array,this._areas=new s,this._elevationContext=new v}initialize(){this.addHandles([t((()=>this.style),(()=>this._updateRenderNodes()),i)]),this.addHandles([t((()=>this.activePolygons),(()=>this._updateFocusAreaGeometries()),i)])}get activePolygons(){const e=new s;for(const o of this.areas)if(o.enabled)for(const s of o.geometries)e.push(s);return e}add(e){this.areas.add(e),this._updateFocusAreaGeometries()}addMany(e){this.areas.addMany(e),this._updateFocusAreaGeometries()}remove(e){this.areas.remove(e),this._updateFocusAreaGeometries()}removeMany(e){this.areas.removeMany(e),this._updateFocusAreaGeometries()}removeAll(){this.areas.removeAll(),this._updateFocusAreaGeometries()}containsGeometry(e){let o=!0;const s=new l(e);return o=this.areas.some((e=>!!e.enabled&&(!!e?.geometries.length&&e.geometries.some((e=>e.contains(s)))))),o}get areas(){return this._areas}_updateFocusAreaGeometries(){this._extrudePolygons(),this._updateRenderNodes()}_extrudePolygons(){if(!this.view.renderCoordsHelper)return;this.geometries.length=0;const e=N-G,o=p(),s=this.view.renderCoordsHelper.viewingMode===y.Global,r=m(),t=m();s||this.view.renderCoordsHelper.worldUpAtPosition([0,0,0],o);for(const i of this.areas)if(i.enabled)for(const a of i.geometries){const n=_(a);if(null==n)continue;h(a.spatialReference,[n.x,n.y,0],r,this.view.renderCoordsHelper.spatialReference);const m=d(P,[r[12]-G*o[0],r[13]-G*o[1],r[14]-G*o[2]]);t[12]=-r[12],t[13]=-r[13],t[14]=-r[14];const p=w(a,this.view.elevationProvider,this.view.renderCoordsHelper,this._elevationContext),{polygons:l,mapPositions:y,position:v}=p;for(const a of l){const n=a.count,d=c(a.mapPositions,a.holeIndices,3);if(0===d.length)continue;const p=d.length,l=6*n,h=f(l+p),_=f(p),w=u(3*l),A=u(3*l),R=u(3*l),N=u(l);j(v,y,d,a,w,R,A,N,h,_,e,o,s),g(w,w,t);const k=new b(w,_,h,e,[r[12]+G*m[0],r[13]+G*m[1],r[14]+G*m[2]],i.outline?.color);this.geometries.push(k)}}this._maskRenderNode?.updateGeometries()}_updateRenderNodes(){this.view._stage&&("none"===this.style||0===this.geometries.length?(this._maskRenderNode=r(this._maskRenderNode),this._colorRenderNode=r(this._colorRenderNode)):(this._maskRenderNode??=new R({focusAreas:this}),this._colorRenderNode??=new A({focusAreas:this})))}};e([a()],F.prototype,"activePolygons",null),e([a()],F.prototype,"style",void 0),e([a()],F.prototype,"geometries",void 0),e([a({constructOnly:!0})],F.prototype,"view",void 0),e([a()],F.prototype,"_areas",void 0),F=e([n("esri.views.FocusAreas")],F);const P=p();export{F as FocusAreas,C as focusAreaHUDColor};
@@ -1,4 +1,4 @@
1
1
  import "../interfaces";
2
2
 
3
3
  import PopupView = __esri.PopupView;
4
- export = PopupView;
4
+ export { PopupView };
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../chunks/tslib.es6.js";import e from"../../Graphic.js";import{UndoRedo as o}from"../../UndoRedo.js";import{createTask as r}from"../../core/asyncUtils.js";import i from"../../core/Evented.js";import{makeHandle as s}from"../../core/handleUtils.js";import{destroyMaybe as n}from"../../core/maybe.js";import{watch as a,syncAndInitial as p,sync as l}from"../../core/reactiveUtils.js";import{property as c}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as h}from"../../core/accessorSupport/decorators/subclass.js";import{load as d}from"../../geometry/coordinateFormatter.js";import u from"../../layers/GraphicsLayer.js";import{pointEquals as m}from"../../layers/graphics/dehydratedFeatureComparison.js";import{CreateOperationGeometry as y}from"./support/CreateOperationGeometry.js";import{createCircle as g,createEllipse as v,createSquare as f,createRectangle as _,createPolygon as O,createPolyline as w,createMultipoint as C}from"./support/createUtils.js";import{createViewAlignedCoordinateSystem as G}from"./support/surfaceCoordinateSystems.js";import{createTooltipInfos as x,initializeConstraints as V,unlockConstraintsOnVertexAddOrRemove as b,lockElevationOnVertexAdd as S,getActiveTooltipInfo as U,updateTooltipInfo as j,getConstraintZ as T}from"./support/tooltipUtils.js";import{InteractiveToolBase as k}from"../interactive/InteractiveToolBase.js";import H from"../interactive/sketch/SketchOptions.js";import{makeTooltip as R,pasteLocation as L,enterInputModeIfAvailable as z}from"../interactive/tooltip/tooltipCommonUtils.js";import{autorun as E}from"../../core/accessorSupport/trackingUtils.js";let I=class extends(i.EventedMixin(k)){constructor(t){super(t),this._graphic=null,this._coordinateFormatterLoadTask=null,this._createOperationGeometry=null,this.defaultZ=0,this.directionOptions=null,this.geometryType=null,this.hasZ=!0,this.geometryToPlace=null,this.snappingManager=null,this.snapToScene=!1,this.sketchOptions=new H}initialize(){const{view:t}=this;this.internalGraphicsLayer=new u({listMode:"hide",internal:!0}),this.view.map.layers.add(this.internalGraphicsLayer);const e=this.drawOperation=this.makeDrawOperation();this.tooltipInfos=x(t.type,this.sketchOptions);const o=R((()=>({view:t,options:this.sketchOptions.tooltips})));this.tooltip=o,V(this._tooltipsContext),this._coordinateFormatterLoadTask=r((()=>d())),this.addHandles([e.on("vertex-add",(t=>this.onVertexAdd(t))),e.on("vertex-remove",(t=>this.onVertexRemove(t))),e.on("vertex-update",(t=>this.onVertexUpdate(t))),e.on("cursor-update",(t=>this.onCursorUpdate(t))),e.on("cursor-remove",(()=>this._updateGraphic())),e.on("complete",(t=>this.onComplete(t))),this._coordinateFormatterLoadTask,o.on("paste",(t=>L(t,this.activeTooltipInfo))),a((()=>this.cursor),(t=>{e.cursor=t}),p),E((()=>{const{activeTooltipInfo:t,sketchOptions:e}=this;j(t,this._tooltipsContext),o.info=e.tooltips.effectiveEnabled?t:null})),E((()=>{e.constraintZ=T(this._tooltipsContext)}),l)]),this.finishToolCreation()}destroy(){this.drawOperation=n(this.drawOperation),this.tooltip=n(this.tooltip),this._destroyAllVisualizations(),this.view.map.remove(this.internalGraphicsLayer),this.internalGraphicsLayer=n(this.internalGraphicsLayer),this._set("view",null)}get _drawSpatialReference(){return this.drawOperation.coordinateHelper.spatialReference}get _tooltipsContext(){return{createOperationGeometry:this._createOperationGeometry,defaultZ:this.defaultZ,directionOptions:this.directionOptions,drawOperation:this.drawOperation,forceUniformSize:this.forceUniformSize,geometryType:this.geometryType,graphic:this.graphic,sketchOptions:this.sketchOptions,tooltipInfos:this.tooltipInfos,view:this.view}}get canRedo(){return this.drawOperation.canRedo}get canUndo(){return this.drawOperation.canUndo}set centered(t){this._set("centered",t),this._updateGraphic()}get cursor(){return this._get("cursor")}set cursor(t){this._set("cursor",t)}set enabled(t){this.drawOperation.interactive=t,this._set("enabled",t)}set forceUniformSize(t){this._set("forceUniformSize",t),this._updateGraphic()}get graphic(){return this._graphic}set graphicSymbol(t){this._set("graphicSymbol",t),null!=this._graphic&&(this._graphic.symbol=t)}set mode(t){const e=this.drawOperation;e&&(e.drawingMode=t),this._set("mode",t)}get updating(){return this.drawOperation?.updating??!1}get undoRedo(){const{view:{type:t,map:e}}=this;return"2d"===t&&e&&"undoRedo"in e&&e.undoRedo instanceof o?e.undoRedo:null}set undoRedo(t){this._override("undoRedo",t)}completeCreateOperation(){this.drawOperation.complete()}onInputEvent(t){this.destroyed||z(t,this.tooltip)||this.drawOperation.onInputEvent(t)}redo(){this.drawOperation.redo()}reset(){}undo(){this.drawOperation.undo(),0===this.drawOperation.numCommittedVertices&&V(this._tooltipsContext)}_destroyAllVisualizations(){this.removeHandles(F.outline),this.removeHandles(F.regularVertices),this.removeHandles(F.activeVertex),this.removeHandles(F.activeEdge),this.removeHandles(A)}_createOrUpdateGraphic(t){if(null!=this._graphic)return this.updateGraphicGeometry(t),this._graphic;const o=new e({...this.graphicProperties,symbol:this.graphicSymbol});return this._graphic=o,this.updateGraphicGeometry(t),this.internalGraphicsLayer.add(o),this.addHandles(this.initializeGraphic(o)),this.notifyChange("graphic"),this.addHandles(s((()=>{this.internalGraphicsLayer.remove(o),this._graphic===o&&(this._graphic=null)})),A),o}updateGraphicGeometry(t){this._graphic.geometry=t}_getCreateOperationGeometry(t={operationComplete:!1}){if(null==this.drawOperation)return;const{coordinateHelper:e,view:o,visualizationCursorVertex:r,lastVertex:i,committedVertices:s,geometryIncludingUncommittedVertices:n,numCommittedVertices:a}=this.drawOperation;if(!(a>0||null!=r))return;const p=t.operationComplete?s:n,l=p.length,c=null!=r?e.pointToArray(r):null,h=this._drawSpatialReference,d="3d"===o.type&&"global"===o.viewingMode,u=new y;u.committedVertices=s,u.cursorVertex=c;const{geometryType:x}=this;switch(x){case"point":case"mesh":u.full=e.arrayToPoint(p[0]);break;case"multipoint":u.full=l>0?C(p,h):null;break;case"polyline":case"polygon":l>0&&(u.full="polygon"===x?O([p],h,d,!0):w([p],h,d),u.cursorEdge=null!=c&&i&&!m(r,i)?w([[c,e.pointToArray(i)]],h,d):null,u.outline=l>1?u.full:null);break;case"circle":case"rectangle":{if(u.committedVertices=u.cursorVertex=null,!l)break;const e=G(o,p[0]),r=p[0],i=e.makeMapPoint(r[0]+Z*o.resolution,r[1]);"circle"===x?1===l&&t.operationComplete?u.circle=g([r,i],e,!0):2===l&&(this.forceUniformSize?u.circle=g(p,e,this.centered):u.rectangle=v(p,e,this.centered)):1===l&&t.operationComplete?u.rectangle=f([r,i],e,!0):2===l&&(u.rectangle=this.forceUniformSize?f(p,e,this.centered):_(p,e,this.centered)),u.full=null!=u.circle?u.circle.geometry:u.rectangle?.geometry,u.outline="polygon"===u.full?.type?u.full:null;break}default:return null}return u}initializeGraphic(t){return s()}onComplete(t){if(!this.drawOperation)return;this._updateGraphic();let e=null;if(this.drawOperation.isCompleted){const t=this._getCreateOperationGeometry({operationComplete:!0});null!=t&&(e=this._createOrUpdateGraphic(t.full))}this._createOperationGeometry=null,this.emit("complete",{graphic:e,...t})}onCursorUpdate(t){this._updateGraphic(),this.emit("cursor-update",t)}onDeactivate(){const{drawOperation:t}=this;t&&(t.isCompleted||t.cancel())}onOutlineChanged(t){return s()}onCursorEdgeChanged(t){return s()}onVertexAdd(t){b(this._tooltipsContext),this._updateGraphic(),S(t.vertices.at(0)?.coordinates,this._tooltipsContext),this.emit("vertex-add",t)}onVertexRemove(t){b(this._tooltipsContext),this._updateGraphic(),this.emit("vertex-remove",t)}onVertexUpdate(t){this._updateGraphic(),this.emit("vertex-update",t)}_updateGraphic(){const t=this._getCreateOperationGeometry();this._createOperationGeometry=t,null!=t?(null!=t.cursorEdge?this.addHandles(this.onCursorEdgeChanged(t.cursorEdge),F.activeEdge):this.removeHandles(F.activeEdge),null!=t.outline?this.addHandles(this.onOutlineChanged(t.outline),F.outline):this.removeHandles(F.outline),null!=t.committedVertices?this.addHandles(this.onRegularVerticesChanged(t.committedVertices),F.regularVertices):this.removeHandles(F.regularVertices),null!=t.cursorVertex?this.addHandles(this.onActiveVertexChanged(t.cursorVertex),F.activeVertex):this.removeHandles(F.activeVertex),null!=t.full?this._createOrUpdateGraphic(t.full):this.removeHandles(A)):this._destroyAllVisualizations()}get activeTooltipInfo(){return this._coordinateFormatterLoadTask?.finished?U(this._tooltipsContext):null}};t([c()],I.prototype,"_coordinateFormatterLoadTask",void 0),t([c()],I.prototype,"_createOperationGeometry",void 0),t([c()],I.prototype,"_tooltipsContext",null),t([c({value:!0})],I.prototype,"centered",null),t([c()],I.prototype,"cursor",null),t([c({nonNullable:!0})],I.prototype,"defaultZ",void 0),t([c({constructOnly:!0})],I.prototype,"directionOptions",void 0),t([c()],I.prototype,"drawOperation",void 0),t([c({value:!0})],I.prototype,"enabled",null),t([c({value:!0})],I.prototype,"forceUniformSize",null),t([c({constructOnly:!0})],I.prototype,"geometryType",void 0),t([c()],I.prototype,"graphic",null),t([c({constructOnly:!0})],I.prototype,"graphicProperties",void 0),t([c()],I.prototype,"graphicSymbol",null),t([c({constructOnly:!0})],I.prototype,"hasZ",void 0),t([c({constructOnly:!0})],I.prototype,"geometryToPlace",void 0),t([c()],I.prototype,"mode",null),t([c()],I.prototype,"snappingManager",void 0),t([c()],I.prototype,"snapToScene",void 0),t([c()],I.prototype,"tooltip",void 0),t([c()],I.prototype,"tooltipInfos",void 0),t([c({constructOnly:!0,type:H})],I.prototype,"sketchOptions",void 0),t([c()],I.prototype,"updating",null),t([c({constructOnly:!0,nonNullable:!0})],I.prototype,"view",void 0),t([c({constructOnly:!0})],I.prototype,"undoRedo",null),t([c()],I.prototype,"activeTooltipInfo",null),I=t([h("esri.views.draw.DrawGraphicTool")],I);const A=Symbol("create-operation-graphic"),F={outline:Symbol("outline-visual"),regularVertices:Symbol("regular-vertices-visual"),activeVertex:Symbol("active-vertex-visual"),activeEdge:Symbol("active-edge-visual")};function M(t){switch(t){case"point":case"polyline":case"polygon":case"multipoint":return t;case"circle":case"rectangle":return"segment";case"mesh":return"point"}}const Z=48;export{I as DrawGraphicTool,M as geometryTypeToDrawOperationGeometryType};
5
+ import{_ as t}from"../../chunks/tslib.es6.js";import e from"../../Graphic.js";import{UndoRedo as o}from"../../UndoRedo.js";import{createTask as r}from"../../core/asyncUtils.js";import i from"../../core/Evented.js";import{makeHandle as s}from"../../core/handleUtils.js";import{destroyMaybe as n}from"../../core/maybe.js";import{watch as a,syncAndInitial as l,sync as p}from"../../core/reactiveUtils.js";import{property as c}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as h}from"../../core/accessorSupport/decorators/subclass.js";import{load as d}from"../../geometry/coordinateFormatter.js";import u from"../../layers/GraphicsLayer.js";import{pointEquals as m}from"../../layers/graphics/dehydratedFeatureComparison.js";import{CreateOperationGeometry as y}from"./support/CreateOperationGeometry.js";import{createCircle as g,createEllipse as v,createSquare as f,createRectangle as O,createPolygon as _,createPolyline as w,createMultipoint as C}from"./support/createUtils.js";import{createViewAlignedCoordinateSystem as G}from"./support/surfaceCoordinateSystems.js";import{createTooltipInfos as x,initializeConstraints as V,unlockConstraintsOnVertexAddOrRemove as b,lockElevationOnVertexAdd as k,getActiveTooltipInfo as S,updateTooltipInfo as U,getConstraintZ as j}from"./support/tooltipUtils.js";import{InteractiveToolBase as T}from"../interactive/InteractiveToolBase.js";import H from"../interactive/sketch/SketchOptions.js";import{makeTooltip as L,pasteLocation as R,enterInputModeIfAvailable as z}from"../interactive/tooltip/tooltipCommonUtils.js";import{autorun as E}from"../../core/accessorSupport/trackingUtils.js";let I=class extends(i.EventedMixin(T)){constructor(t){super(t),this._graphic=null,this._coordinateFormatterLoadTask=null,this._createOperationGeometry=null,this.defaultZ=0,this.directionOptions=null,this.elevationLockOnVertexAddDisabled=!1,this.geometryType=null,this.hasZ=!0,this.geometryToPlace=null,this.snappingManager=null,this.snapToScene=!1,this.sketchOptions=new H}initialize(){const{view:t}=this;this.internalGraphicsLayer=new u({listMode:"hide",internal:!0}),this.view.map.layers.add(this.internalGraphicsLayer);const e=this.drawOperation=this.makeDrawOperation();this.tooltipInfos=x(t.type,this.sketchOptions);const o=L((()=>({view:t,options:this.sketchOptions.tooltips})));this.tooltip=o,V(this._tooltipsContext),this._coordinateFormatterLoadTask=r((()=>d())),this.addHandles([e.on("vertex-add",(t=>this.onVertexAdd(t))),e.on("vertex-remove",(t=>this.onVertexRemove(t))),e.on("vertex-update",(t=>this.onVertexUpdate(t))),e.on("cursor-update",(t=>this.onCursorUpdate(t))),e.on("cursor-remove",(()=>this._updateGraphic())),e.on("complete",(t=>this.onComplete(t))),this._coordinateFormatterLoadTask,o.on("paste",(t=>R(t,this.activeTooltipInfo))),a((()=>this.cursor),(t=>{e.cursor=t}),l),E((()=>{const{activeTooltipInfo:t,sketchOptions:e}=this;U(t,this._tooltipsContext),o.info=e.tooltips.effectiveEnabled?t:null})),E((()=>{e.constraintZ=j(this._tooltipsContext)}),p)]),this.finishToolCreation()}destroy(){this.drawOperation=n(this.drawOperation),this.tooltip=n(this.tooltip),this._destroyAllVisualizations(),this.view.map.remove(this.internalGraphicsLayer),this.internalGraphicsLayer=n(this.internalGraphicsLayer),this._set("view",null)}get _drawSpatialReference(){return this.drawOperation.coordinateHelper.spatialReference}get _tooltipsContext(){return{createOperationGeometry:this._createOperationGeometry,defaultZ:this.defaultZ,directionOptions:this.directionOptions,drawOperation:this.drawOperation,forceUniformSize:this.forceUniformSize,geometryType:this.geometryType,graphic:this.graphic,sketchOptions:this.sketchOptions,tooltipInfos:this.tooltipInfos,view:this.view}}get canRedo(){return this.drawOperation.canRedo}get canUndo(){return this.drawOperation.canUndo}set centered(t){this._set("centered",t),this._updateGraphic()}get cursor(){return this._get("cursor")}set cursor(t){this._set("cursor",t)}set enabled(t){this.drawOperation.interactive=t,this._set("enabled",t)}set forceUniformSize(t){this._set("forceUniformSize",t),this._updateGraphic()}get graphic(){return this._graphic}set graphicSymbol(t){this._set("graphicSymbol",t),null!=this._graphic&&(this._graphic.symbol=t)}set mode(t){const e=this.drawOperation;e&&(e.drawingMode=t),this._set("mode",t)}get updating(){return this.drawOperation?.updating??!1}get undoRedo(){const{view:{type:t,map:e}}=this;return"2d"===t&&e&&"undoRedo"in e&&e.undoRedo instanceof o?e.undoRedo:null}set undoRedo(t){this._override("undoRedo",t)}completeCreateOperation(){this.drawOperation.complete()}onInputEvent(t){this.destroyed||z(t,this.tooltip)||this.drawOperation.onInputEvent(t)}redo(){this.drawOperation.redo()}reset(){}undo(){this.drawOperation.undo(),0===this.drawOperation.numCommittedVertices&&V(this._tooltipsContext)}_destroyAllVisualizations(){this.removeHandles(F.outline),this.removeHandles(F.regularVertices),this.removeHandles(F.activeVertex),this.removeHandles(F.activeEdge),this.removeHandles(A)}_createOrUpdateGraphic(t){if(null!=this._graphic)return this.updateGraphicGeometry(t),this._graphic;const o=new e({...this.graphicProperties,symbol:this.graphicSymbol});return this._graphic=o,this.updateGraphicGeometry(t),this.internalGraphicsLayer.add(o),this.addHandles(this.initializeGraphic(o)),this.notifyChange("graphic"),this.addHandles(s((()=>{this.internalGraphicsLayer.remove(o),this._graphic===o&&(this._graphic=null)})),A),o}updateGraphicGeometry(t){this._graphic.geometry=t}_getCreateOperationGeometry(t={operationComplete:!1}){if(null==this.drawOperation)return;const{coordinateHelper:e,view:o,visualizationCursorVertex:r,lastVertex:i,committedVertices:s,geometryIncludingUncommittedVertices:n,numCommittedVertices:a}=this.drawOperation;if(!(a>0||null!=r))return;const l=t.operationComplete?s:n,p=l.length,c=null!=r?e.pointToArray(r):null,h=this._drawSpatialReference,d="3d"===o.type&&"global"===o.viewingMode,u=new y;u.committedVertices=s,u.cursorVertex=c;const{geometryType:x}=this;switch(x){case"point":case"mesh":u.full=e.arrayToPoint(l[0]);break;case"multipoint":u.full=p>0?C(l,h):null;break;case"polyline":case"polygon":p>0&&(u.full="polygon"===x?_([l],h,d,!0):w([l],h,d),u.cursorEdge=null!=c&&i&&!m(r,i)?w([[c,e.pointToArray(i)]],h,d):null,u.outline=p>1?u.full:null);break;case"circle":case"rectangle":{if(u.committedVertices=u.cursorVertex=null,!p)break;const e=G(o,l[0]),r=l[0],i=e.makeMapPoint(r[0]+Z*o.resolution,r[1]);"circle"===x?1===p&&t.operationComplete?u.circle=g([r,i],e,!0):2===p&&(this.forceUniformSize?u.circle=g(l,e,this.centered):u.rectangle=v(l,e,this.centered)):1===p&&t.operationComplete?u.rectangle=f([r,i],e,!0):2===p&&(u.rectangle=this.forceUniformSize?f(l,e,this.centered):O(l,e,this.centered)),u.full=null!=u.circle?u.circle.geometry:u.rectangle?.geometry,u.outline="polygon"===u.full?.type?u.full:null;break}default:return null}return u}initializeGraphic(t){return s()}onComplete(t){if(!this.drawOperation)return;this._updateGraphic();let e=null;if(this.drawOperation.isCompleted){const t=this._getCreateOperationGeometry({operationComplete:!0});null!=t&&(e=this._createOrUpdateGraphic(t.full))}this._createOperationGeometry=null,this.emit("complete",{graphic:e,...t})}onCursorUpdate(t){this._updateGraphic(),this.emit("cursor-update",t)}onDeactivate(){const{drawOperation:t}=this;t&&(t.isCompleted||t.cancel())}onOutlineChanged(t){return s()}onCursorEdgeChanged(t){return s()}onVertexAdd(t){b(this._tooltipsContext),this._updateGraphic(),this.elevationLockOnVertexAddDisabled||k(t.vertices.at(0)?.coordinates,this._tooltipsContext),this.emit("vertex-add",t)}onVertexRemove(t){b(this._tooltipsContext),this._updateGraphic(),this.emit("vertex-remove",t)}onVertexUpdate(t){this._updateGraphic(),this.emit("vertex-update",t)}_updateGraphic(){const t=this._getCreateOperationGeometry();this._createOperationGeometry=t,null!=t?(null!=t.cursorEdge?this.addHandles(this.onCursorEdgeChanged(t.cursorEdge),F.activeEdge):this.removeHandles(F.activeEdge),null!=t.outline?this.addHandles(this.onOutlineChanged(t.outline),F.outline):this.removeHandles(F.outline),null!=t.committedVertices?this.addHandles(this.onRegularVerticesChanged(t.committedVertices),F.regularVertices):this.removeHandles(F.regularVertices),null!=t.cursorVertex?this.addHandles(this.onActiveVertexChanged(t.cursorVertex),F.activeVertex):this.removeHandles(F.activeVertex),null!=t.full?this._createOrUpdateGraphic(t.full):this.removeHandles(A)):this._destroyAllVisualizations()}get activeTooltipInfo(){return this._coordinateFormatterLoadTask?.finished?S(this._tooltipsContext):null}};t([c()],I.prototype,"_coordinateFormatterLoadTask",void 0),t([c()],I.prototype,"_createOperationGeometry",void 0),t([c()],I.prototype,"_tooltipsContext",null),t([c({value:!0})],I.prototype,"centered",null),t([c()],I.prototype,"cursor",null),t([c({nonNullable:!0})],I.prototype,"defaultZ",void 0),t([c({constructOnly:!0})],I.prototype,"directionOptions",void 0),t([c()],I.prototype,"drawOperation",void 0),t([c()],I.prototype,"elevationLockOnVertexAddDisabled",void 0),t([c({value:!0})],I.prototype,"enabled",null),t([c({value:!0})],I.prototype,"forceUniformSize",null),t([c({constructOnly:!0})],I.prototype,"geometryType",void 0),t([c()],I.prototype,"graphic",null),t([c({constructOnly:!0})],I.prototype,"graphicProperties",void 0),t([c()],I.prototype,"graphicSymbol",null),t([c({constructOnly:!0})],I.prototype,"hasZ",void 0),t([c({constructOnly:!0})],I.prototype,"geometryToPlace",void 0),t([c()],I.prototype,"mode",null),t([c()],I.prototype,"snappingManager",void 0),t([c()],I.prototype,"snapToScene",void 0),t([c()],I.prototype,"tooltip",void 0),t([c()],I.prototype,"tooltipInfos",void 0),t([c({constructOnly:!0,type:H})],I.prototype,"sketchOptions",void 0),t([c()],I.prototype,"updating",null),t([c({constructOnly:!0,nonNullable:!0})],I.prototype,"view",void 0),t([c({constructOnly:!0})],I.prototype,"undoRedo",null),t([c()],I.prototype,"activeTooltipInfo",null),I=t([h("esri.views.draw.DrawGraphicTool")],I);const A=Symbol("create-operation-graphic"),F={outline:Symbol("outline-visual"),regularVertices:Symbol("regular-vertices-visual"),activeVertex:Symbol("active-vertex-visual"),activeEdge:Symbol("active-edge-visual")};function M(t){switch(t){case"point":case"polyline":case"polygon":case"multipoint":return t;case"circle":case"rectangle":return"segment";case"mesh":return"point"}}const Z=48;export{I as DrawGraphicTool,M as geometryTypeToDrawOperationGeometryType};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../chunks/tslib.es6.js";import e from"../../core/Accessor.js";import i from"../../core/Evented.js";import{clone as n}from"../../core/lang.js";import{destroyMaybe as o,equalsMaybe as r}from"../../core/maybe.js";import{memoize as s}from"../../core/memoize.js";import{ignoreAbortErrors as a}from"../../core/promiseUtils.js";import p from"../../core/ReactiveSet.js";import{watch as c,syncAndInitial as l}from"../../core/reactiveUtils.js";import{createScreenPoint as d}from"../../core/screenUtils.js";import{property as h}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import{diff as m}from"../../core/accessorSupport/diffUtils.js";import{UpdatingHandles as g}from"../../core/support/UpdatingHandles.js";import{pointEquals as y,pointNear as _}from"../../layers/graphics/dehydratedFeatureComparison.js";import{getEffectiveElevationInfo as v}from"../../support/elevationInfoUtils.js";import{ViewingMode as f}from"../ViewingMode.js";import{defaultDrawingMode as x}from"./DrawingMode.js";import{DrawManipulator as C}from"./DrawManipulator.js";import{createCoordinateHelper as b}from"../interactive/coordinateHelper.js";import{createManipulatorDragEventPipeline as T,sceneSnappingAtLocation as S}from"../interactive/dragEventPipeline.js";import{EditGeometry as P,Component as V}from"../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as w}from"../interactive/editGeometry/EditGeometryOperations.js";import{isPoint as O}from"../interactive/sketch/constraints.js";import{pointToConstraintSpace as M,constraintSpaceToPoint as D,getPointConstraint as E,getPolylineOrPolygonConstraint as I}from"../interactive/sketch/constraintUtils.js";import H from"../interactive/sketch/SketchLabelOptions.js";import{SnappingContext as j}from"../interactive/snapping/SnappingContext.js";import{createSnapDragEventPipelineStep as G}from"../interactive/snapping/SnappingDragPipelineStep.js";import{SnappingOperation as k}from"../interactive/snapping/SnappingOperation.js";import{setupSnappingToggleHandles as Z}from"../interactive/snapping/snappingUtils.js";const A="crosshair",L="progress",U=Symbol(),z=Symbol();let F=class extends(i.EventedMixin(e)){constructor(t){super(t),this._createOperationCompleted=!1,this._hideDefaultCursor=!1,this._pointerDownStates=new p,this._stagedScreenPoint=null,this._stagedPointerType=null,this._updatingHandles=new g,this._stagedPointerId=null,this.constraintsEnabled=!1,this.constraints=void 0,this._getPointConstraint=s(E),this._getPolylineOrPolygonConstraint=s(I),this.constraintZ=null,this.defaultZ=null,this.isDraped=!0,this.labelOptions=new H,this.cursor=null,this.loading=!1,this.snapToSceneEnabled=null,this.firstVertex=null,this.lastVertex=null,this.secondToLastVertex=null,null==t.elevationInfo&&(this.elevationInfo=v(!!t.hasZ))}initialize(){const{geometryType:t,view:e}=this,i=e.spatialReference,n="viewingMode"in e.state?e.state.viewingMode:f.Local,o="segment"===t||"multipoint"===t?"polyline":t;this.coordinateHelper=b(this.hasZ,this.hasM,i),this._editGeometryOperations=new w(new P(o,this.coordinateHelper),n),this._snappingOperation=new k({view:e}),this.addHandles([c((()=>({stagedPoint:this._snappingOperation.stagedPoint,constraint:this._constraint})),(({stagedPoint:t,constraint:e},i)=>{const{snappingOptions:n}=this;n&&(n.forceDisabled=null!=e&&O(e));if(null!=i&&t===i.stagedPoint&&e!==i.constraint)return this._onKeyboardBasedChange();this._processCursor(t??this._screenToMap(this._stagedScreenPoint))}),{equals:(t,e)=>t.stagedPoint===e.stagedPoint&&r(t.constraint,e.constraint)}),c((()=>this.view.viewpoint),((t,e)=>{t&&e&&m(t,e)&&this._onKeyboardBasedChange()}))]),this._activeComponent=new V(i,n),this._editGeometryOperations.data.components.push(this._activeComponent);const s=this.segmentLabels;null!=s&&(s.context={view:e,editGeometryOperations:this._editGeometryOperations,elevationInfo:this.elevationInfo,labelOptions:this.labelOptions},this.addHandles(c((()=>this.labelOptions.enabled),(t=>{s.visible=t}),l))),this.addHandles(this._editGeometryOperations.on(["vertex-add","vertex-update","vertex-remove"],(t=>{const e=t.vertices.map((t=>({componentIndex:0,vertexIndex:t.index,coordinates:this.coordinateHelper.vectorToArray(t.pos)}))),i=e.map((t=>t.coordinates)),n=this.coordinateHelper.vectorToDehydratedPoint(this._activeComponent.getFirstVertex()?.pos)??null;y(n,this.firstVertex)||(this.firstVertex=n);const o=this.coordinateHelper.vectorToDehydratedPoint(this._activeComponent.getLastVertex()?.pos)??null;y(o,this.lastVertex)||(this.lastVertex=o);const r=this.coordinateHelper.vectorToDehydratedPoint(this._activeComponent.edges.at(-1)?.leftVertex?.pos)??null;switch(y(r,this.secondToLastVertex)||(this.secondToLastVertex=r),this._processCursor(this.cursorVertex),t.type){case"vertex-add":this.emit(t.type,{...t,added:i,vertices:e});break;case"vertex-update":this.emit(t.type,{...t,updated:i,vertices:e});break;case"vertex-remove":this.emit(t.type,{...t,removed:i,vertices:e})}})));const p=this._manipulator=new C({consumesClicks:!1,grabbableForEvent:t=>"click"!==this.drawingMode||"touch"===t.pointerType&&this._snappingEnabled&&1===this._pointerDownStates.size});this.manipulators.add(p),p.grabbable="point"!==t,this.addHandles([p.events.on("immediate-click",(t=>this._onImmediateClick(t))),p.events.on("immediate-double-click",(t=>this._onImmediateDoubleClick(t))),c((()=>this.drawingMode),(()=>{this.removeHandles(U),this.addHandles(this._createManipulatorDragPipeline(p),U)}),l),c((()=>({effectiveCursor:this.effectiveCursor})),(({effectiveCursor:t})=>{p.cursor=t}),l)]),Z(this,(()=>{const t=this.view.inputManager.latestPointerType??"mouse",e=this._getSnappingContext(t);if(null!=this.snappingManager){const t=this._snappingOperation.snapAgainNearPreviousMapPoint(this.snappingManager,e);this._updatingHandles.addPromise(a(t))}}))}destroy(){o(this.segmentLabels),o(this._snappingOperation),this._editGeometryOperations=o(this._editGeometryOperations),this._updatingHandles.destroy()}get _isDragging(){const{_stagedPointerId:t,_manipulator:e}=this;return null!=t&&this._pointerDownStates.has(t)||e.grabbing||!e.interactive}get _snappingEnabled(){return null!=this.snappingManager&&this.snappingManager.options.effectiveEnabled}get _requiresScenePoint(){const t=this._updateAndGetEffectiveDrawSurface();return"3d"===this.view.type&&this.drawSurface!==t}get canRedo(){return this._editGeometryOperations.canRedo}get canUndo(){return this._editGeometryOperations.canUndo}get committedVertices(){return this._activeComponent.vertices.map((t=>this.coordinateHelper.vectorToArray(t.pos)))}get _constraint(){const{constraints:t,constraintsEnabled:e}=this;if(t&&e)switch(this.geometryType){case"point":return this._getPointConstraint(t);case"polygon":case"polyline":return this._getPolylineOrPolygonConstraint(this.lastVertex,this.secondToLastVertex,t)}}set drawingMode(t){this._set("drawingMode",t??x)}get effectiveCursor(){return this.loading?L:this._hideDefaultCursor?null:this.cursor||A}get interactive(){return this._manipulator.interactive}set interactive(t){this._manipulator.interactive=t}get isCompleted(){return this._createOperationCompleted}get numCommittedVertices(){return this._activeComponent.vertices.length}get snappingOptions(){return null!=this.snappingManager?this.snappingManager.options:null}get cursorVertex(){return this._get("cursorVertex")}get visualizationCursorVertex(){return"mouse"===this._stagedPointerType?this.cursorVertex:null}get committableVertex(){const{cursorVertex:t,lastVertex:e,firstVertex:i,geometryType:n}=this;return"polygon"===n&&_(t,i)||_(t,e)?null:t}get updating(){return this._updatingHandles.updating}get geometryIncludingUncommittedVertices(){const{committedVertices:t,committableVertex:e,coordinateHelper:i}=this,n=t.slice();return null!=e&&n.push(i.pointToArray(e)),n}cancel(){this.complete({aborted:!0})}commitStagedVertex(){this._snappingOperation.abort();const{committableVertex:t}=this;null!=t&&this._editGeometryOperations.appendVertex(this.coordinateHelper.pointToVector(t))}complete(t){const e=t?.aborted||!1;this._snappingOperation.abort(),this.snappingManager?.doneSnapping();const{geometryType:i,numCommittedVertices:n}=this,o="multipoint"===i&&0===n||"polyline"===i&&n<2||"polygon"===i&&n<3;"segment"!==i&&"point"!==i||this.commitStagedVertex(),this._createOperationCompleted=!o,(this.isCompleted||e)&&(this._stagedScreenPoint=null,this._stagedPointerId=null,this._stagedPointerType=null,this._processCursor(null),this.emit("complete",{vertices:this.committedVertices.map(((t,e)=>({componentIndex:0,vertexIndex:e,coordinates:t}))),aborted:e,type:"complete"}))}onInputEvent(t){switch(t.type){case"pointer-down":this._pointerDownStates.add(t.pointerId);break;case"pointer-up":this._pointerDownStates.delete(t.pointerId)}switch(t.type){case"pointer-move":return this._onPointerMove(t);case"hold":return this._onHold(t)}}redo(){this._editGeometryOperations.redo()}undo(){null!=this.snappingManager&&this.snappingManager.doneSnapping(),this._editGeometryOperations.undo()}_processCursor(t){const e=n(this.cursorVertex),i=n(t),o=i&&(this._updateAndGetEffectiveDrawSurface()?.constrainZ(i)??i),r=this._snapToClosingVertex(o),s=this._applyConstraints(r);_(e,s)||(this._set("cursorVertex",s),this.segmentLabels?.set("stagedVertex",null!=s?this.coordinateHelper.pointToVector(s):null),null==s||"mouse"!==this._stagedPointerType?this.emit("cursor-remove"):this.emit("cursor-update",{updated:null,vertices:[{componentIndex:0,vertexIndex:this._activeComponent.vertices.length,coordinates:this.coordinateHelper.pointToArray(s)}],operation:"apply",type:"vertex-update"}))}_snapToClosingVertex(t){if(null==t||this._isDragging||"polygon"!==this.geometryType||this.numCommittedVertices<=2)return t;const e=this._mapToScreen(t);if(!e)return t;const i=this._activeComponent;return this._vertexWithinPointerDistance(i.vertices[0].pos,e)?this.firstVertex:this._vertexWithinPointerDistance(i.vertices.at(-1).pos,e)?this.lastVertex:t}_createManipulatorDragPipeline(t){switch(this.drawingMode){case"click":return this._createManipulatorDragPipelineClick(t);case"freehand":return this._createManipulatorDragPipelineFreehand(t);case"hybrid":return this._createManipulatorDragPipelineHybrid(t)}}_createManipulatorDragPipelineClick(t){return T(t,((t,e,i,n)=>{const o="touch"===n&&this._snappingEnabled;if(this.isCompleted||!o)return;const{snappingStep:r,cancelSnapping:s}=G({predicate:()=>o,snappingManager:this.snappingManager,snappingContext:new j({editGeometryOperations:this._editGeometryOperations,elevationInfo:this.elevationInfo,feature:this.graphic,pointer:n,visualizer:this.snappingVisualizer,drawConstraints:this.constraints}),updatingHandles:this._updatingHandles,useZ:!this._requiresScenePoint});i=i.next((t=>(o&&null!=this.snappingManager&&this.snappingManager.doneSnapping(),t))).next(s),e.next(this._screenToMapDragEventStep()).next((t=>("start"===t.action&&(this._processCursor(t.mapStart),("segment"===this.geometryType||o&&!this.numCommittedVertices)&&this.commitStagedVertex()),t))).next(S(this.view,this.elevationInfo)).next(...r).next((t=>(o&&(this._processCursor(t.mapEnd),"end"===t.action&&this.commitStagedVertex()),t))).next((t=>("end"===t.action&&("mouse"!==this._stagedPointerType&&this._snappingOperation.abort(),"segment"!==this.geometryType&&"point"!==this.geometryType||this.complete()),t)))}))}_createManipulatorDragPipelineFreehand(t){return T(t,((t,e)=>{this.isCompleted||e.next(this._screenToMapDragEventStep()).next((t=>("start"===t.action&&(this._snappingOperation.abort(),null==this.committableVertex&&this._processCursor(t.mapStart),"segment"===this.geometryType&&this.commitStagedVertex()),t))).next((t=>{switch(t.action){case"start":case"update":this._processCursor(t.mapEnd),"polygon"!==this.geometryType&&"polyline"!==this.geometryType||this.commitStagedVertex();break;case"end":this.complete()}return t}))}))}_createManipulatorDragPipelineHybrid(t){return T(t,((t,e)=>{this.isCompleted||e.next(this._screenToMapDragEventStep()).next((t=>("start"===t.action&&(this._snappingOperation.abort(),this.addHandles(this._editGeometryOperations.createUndoGroup(),z),this._processCursor(t.mapStart),this.commitStagedVertex()),t))).next((t=>{switch(t.action){case"start":case"update":this._processCursor(t.mapEnd),"polygon"!==this.geometryType&&"polyline"!==this.geometryType||this.commitStagedVertex();break;case"end":"mouse"!==this._stagedPointerType&&this._snappingOperation.abort(),this.removeHandles(z),"segment"!==this.geometryType&&"point"!==this.geometryType||this.complete()}return t}))}))}get _drawAtFixedElevation(){const{constraintsEnabled:t,constraintZ:e,geometryType:i,numCommittedVertices:n}=this;return t?null!=e||"segment"===i&&n>0:("segment"===i||"polygon"===i)&&n>0}_updateAndGetEffectiveDrawSurface(){const{constraintsEnabled:t,coordinateHelper:e,drawSurface:i,elevationDrawSurface:n,snapToSceneEnabled:o}=this;if(null==n)return i;if(!this.hasZ)return n.defaultZ=null,n;const r=this.elevationInfo?.mode;let s=this.defaultZ,a=t||"absolute-height"===r;if(null!=o&&(a=o),"on-the-ground"===r&&(a=!1),this._drawAtFixedElevation){s=(t?this.constraintZ:null)??e.getZ(this._activeComponent.vertices[0].pos),a=!1}return a?i:(n.defaultZ=s,n)}_mapToScreen(t){return this._updateAndGetEffectiveDrawSurface()?.mapToScreen(t)}_onHold(t){this._snappingOperation.abort(),"click"===this.drawingMode&&"touch"===t.pointerType&&this._snappingEnabled&&this._processCursor(t.mapPoint),t.stopPropagation()}_onImmediateClick(t){if(!("mouse"===t.pointerType&&2===t.button||this._manipulator.dragging))try{const{drawingMode:e,geometryType:i}=this;this._stagedPointerType=t.pointerType,this._stagedScreenPoint=t.screenPoint;const n=this._screenToMap(t.screenPoint);if(null==n)return;if(null==n||"freehand"===e&&"point"!==i)return;if(this._snappingEnabled&&null!=this.cursorVertex||this._processCursor(n),null==this.committableVertex)return void this.complete();this.commitStagedVertex(),"mouse"!==t.pointerType&&this._processCursor(null),("freehand"===e||"point"===i||"segment"===i&&2===this.numCommittedVertices||"segment"===i&&"hybrid"===e&&1===this.numCommittedVertices)&&this.complete()}finally{t.stopPropagation()}}_onImmediateDoubleClick(t){this._manipulator.dragging||"point"===this.geometryType||(this.complete(),t.stopPropagation())}_onPointerMove(t){const e=d(t.x,t.y);this._stagedScreenPoint=e,this._stagedPointerType=t.pointerType,this._stagedPointerId=t.pointerId,this._isDragging?this._snappingOperation.abort():(t.stopPropagation(),this._processCursorMovementRelativeToSurface(e,t.pointerType))}_onKeyboardBasedChange(){"mouse"===this._stagedPointerType&&this._stagedScreenPoint&&null!=this._stagedPointerId&&!this._isDragging?this._processCursorMovementRelativeToSurface(this._stagedScreenPoint,this._stagedPointerType):this._snappingOperation.abort()}_processCursorMovementRelativeToSurface(t,e){const i=this._snappingOperation,n=this._screenToMap(t),o=this._requiresScenePoint?this.drawSurface?.screenToMap(t):null;if(null==n)return this._hideDefaultCursor=!0,this._processCursor(null),void i.abort();this._hideDefaultCursor=!1;const r=this.snappingManager;if(null==r)return this._processCursor(n),void i.abort();const s=this._getSnappingContext(e);this._updatingHandles.addPromise(a(i.snap({point:n,scenePoint:o},r,s)))}_applyConstraints(t){const{_constraint:e,constraints:i}=this;if(!t||!i||!e)return t;const{context:n}=i,o=M(t,n),r=o?e.closestTo(o):void 0;if(!r)return t;const s=D(r,t,n),a="2d"===this.view.type||"absolute-height"!==n.elevationInfo.mode;return null!=s&&a&&null!=this.constraintZ&&this.hasZ&&(s.z=this.constraintZ),s}_screenToMap(t){return t?this._updateAndGetEffectiveDrawSurface()?.screenToMap(t):null}_screenToMapDragEventStep(){let t=null;return e=>{if("start"===e.action&&(t=this._screenToMap(e.screenStart)),null==t)return null;const i=this._screenToMap(e.screenEnd);return null!=i?{...e,mapStart:t,mapEnd:i}:null}}_vertexWithinPointerDistance(t,e){const i=25,n=this._mapToScreen(this.coordinateHelper.vectorToDehydratedPoint(t));return null!=n&&R(n,e,i)}_getSnappingContext(t){const e=this._drawAtFixedElevation?this.elevationDrawSurface?.defaultZ:null;return new j({editGeometryOperations:this._editGeometryOperations,elevationInfo:this.elevationInfo,pointer:t,feature:this.graphic,visualizer:this.snappingVisualizer,selfSnappingZ:null!=e?{value:e,elevationInfo:this.elevationInfo}:null,drawConstraints:this.constraints})}};function R(t,e,i){const n=t.x-e.x,o=t.y-e.y;return n*n+o*o<=i}t([h()],F.prototype,"_hideDefaultCursor",void 0),t([h()],F.prototype,"_stagedPointerId",void 0),t([h()],F.prototype,"_isDragging",null),t([h()],F.prototype,"_snappingOperation",void 0),t([h()],F.prototype,"_snappingEnabled",null),t([h({constructOnly:!0})],F.prototype,"graphic",void 0),t([h()],F.prototype,"constraintsEnabled",void 0),t([h()],F.prototype,"constraints",void 0),t([h()],F.prototype,"_constraint",null),t([h()],F.prototype,"constraintZ",void 0),t([h()],F.prototype,"defaultZ",void 0),t([h()],F.prototype,"isDraped",void 0),t([h({value:x})],F.prototype,"drawingMode",null),t([h({constructOnly:!0})],F.prototype,"elevationDrawSurface",void 0),t([h({constructOnly:!0})],F.prototype,"elevationInfo",void 0),t([h({constructOnly:!0,type:H})],F.prototype,"labelOptions",void 0),t([h({constructOnly:!0})],F.prototype,"geometryType",void 0),t([h({constructOnly:!0})],F.prototype,"hasM",void 0),t([h({constructOnly:!0})],F.prototype,"hasZ",void 0),t([h()],F.prototype,"cursor",void 0),t([h()],F.prototype,"effectiveCursor",null),t([h()],F.prototype,"loading",void 0),t([h({constructOnly:!0})],F.prototype,"manipulators",void 0),t([h({constructOnly:!0})],F.prototype,"drawSurface",void 0),t([h({constructOnly:!0})],F.prototype,"segmentLabels",void 0),t([h({constructOnly:!0})],F.prototype,"snappingManager",void 0),t([h({constructOnly:!0})],F.prototype,"snappingVisualizer",void 0),t([h()],F.prototype,"snapToSceneEnabled",void 0),t([h({readOnly:!0})],F.prototype,"cursorVertex",null),t([h({readOnly:!0})],F.prototype,"visualizationCursorVertex",null),t([h()],F.prototype,"committableVertex",null),t([h()],F.prototype,"firstVertex",void 0),t([h()],F.prototype,"lastVertex",void 0),t([h()],F.prototype,"secondToLastVertex",void 0),t([h()],F.prototype,"updating",null),t([h({constructOnly:!0})],F.prototype,"view",void 0),F=t([u("esri.views.draw.DrawOperation")],F);export{F as DrawOperation,A as defaultCursor,L as defaultLoadingCursor};
5
+ import{_ as t}from"../../chunks/tslib.es6.js";import e from"../../core/Accessor.js";import i from"../../core/Evented.js";import{clone as n}from"../../core/lang.js";import{destroyMaybe as o,equalsMaybe as r}from"../../core/maybe.js";import{memoize as s}from"../../core/memoize.js";import{ignoreAbortErrors as a}from"../../core/promiseUtils.js";import p from"../../core/ReactiveSet.js";import{watch as c,syncAndInitial as l}from"../../core/reactiveUtils.js";import{createScreenPoint as d}from"../../core/screenUtils.js";import{property as h}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import{diff as m}from"../../core/accessorSupport/diffUtils.js";import{UpdatingHandles as g}from"../../core/support/UpdatingHandles.js";import{pointEquals as y,pointNear as _}from"../../layers/graphics/dehydratedFeatureComparison.js";import{getEffectiveElevationInfo as v}from"../../support/elevationInfoUtils.js";import{ViewingMode as f}from"../ViewingMode.js";import{defaultDrawingMode as x}from"./DrawingMode.js";import{DrawManipulator as C}from"./DrawManipulator.js";import{createCoordinateHelper as b}from"../interactive/coordinateHelper.js";import{createManipulatorDragEventPipeline as T,sceneSnappingAtLocation as S}from"../interactive/dragEventPipeline.js";import{EditGeometry as P,Component as V}from"../interactive/editGeometry/EditGeometry.js";import{EditGeometryOperations as w}from"../interactive/editGeometry/EditGeometryOperations.js";import{isPoint as O}from"../interactive/sketch/constraints.js";import{pointToConstraintSpace as M,constraintSpaceToPoint as D,getPointConstraint as E,getPolylineOrPolygonConstraint as I}from"../interactive/sketch/constraintUtils.js";import H from"../interactive/sketch/SketchLabelOptions.js";import{SnappingContext as j}from"../interactive/snapping/SnappingContext.js";import{createSnapDragEventPipelineStep as G}from"../interactive/snapping/SnappingDragPipelineStep.js";import{SnappingOperation as k}from"../interactive/snapping/SnappingOperation.js";import{setupSnappingToggleHandles as Z}from"../interactive/snapping/snappingUtils.js";const A="crosshair",L="progress",U=Symbol(),z=Symbol();let F=class extends(i.EventedMixin(e)){constructor(t){super(t),this._createOperationCompleted=!1,this._hideDefaultCursor=!1,this._pointerDownStates=new p,this._stagedScreenPoint=null,this._stagedPointerType=null,this._updatingHandles=new g,this._stagedPointerId=null,this.constraintsEnabled=!1,this.constraints=void 0,this._getPointConstraint=s(E),this._getPolylineOrPolygonConstraint=s(I),this.constraintZ=null,this.defaultZ=null,this.isDraped=!0,this.labelOptions=new H,this.cursor=null,this.loading=!1,this.snapToSceneEnabled=null,this.firstVertex=null,this.lastVertex=null,this.secondToLastVertex=null,null==t.elevationInfo&&(this.elevationInfo=v(!!t.hasZ))}initialize(){const{geometryType:t,view:e}=this,i=e.spatialReference,n="viewingMode"in e.state?e.state.viewingMode:f.Local,o="segment"===t||"multipoint"===t?"polyline":t;this.coordinateHelper=b(this.hasZ,this.hasM,i),this._editGeometryOperations=new w(new P(o,this.coordinateHelper),n),this._snappingOperation=new k({view:e}),this.addHandles([c((()=>({stagedPoint:this._snappingOperation.stagedPoint,constraint:this._constraint})),(({stagedPoint:t,constraint:e},i)=>{const{snappingOptions:n}=this;n&&(n.forceDisabled=null!=e&&O(e));if(null!=i&&t===i.stagedPoint&&e!==i.constraint)return this._onKeyboardBasedChange();this._processCursor(t??this._screenToMap(this._stagedScreenPoint))}),{equals:(t,e)=>t.stagedPoint===e.stagedPoint&&r(t.constraint,e.constraint)}),c((()=>this.view.viewpoint),((t,e)=>{t&&e&&m(t,e)&&this._onKeyboardBasedChange()}))]),this._activeComponent=new V(i,n),this._editGeometryOperations.data.components.push(this._activeComponent);const s=this.segmentLabels;null!=s&&(s.context={view:e,editGeometryOperations:this._editGeometryOperations,elevationInfo:this.elevationInfo,labelOptions:this.labelOptions},this.addHandles(c((()=>this.labelOptions.enabled),(t=>{s.visible=t}),l))),this.addHandles(this._editGeometryOperations.on(["vertex-add","vertex-update","vertex-remove"],(t=>{const e=t.vertices.map((t=>({componentIndex:0,vertexIndex:t.index,coordinates:this.coordinateHelper.vectorToArray(t.pos)}))),i=e.map((t=>t.coordinates)),n=this.coordinateHelper.vectorToDehydratedPoint(this._activeComponent.getFirstVertex()?.pos)??null;y(n,this.firstVertex)||(this.firstVertex=n);const o=this.coordinateHelper.vectorToDehydratedPoint(this._activeComponent.getLastVertex()?.pos)??null;y(o,this.lastVertex)||(this.lastVertex=o);const r=this.coordinateHelper.vectorToDehydratedPoint(this._activeComponent.edges.at(-1)?.leftVertex?.pos)??null;switch(y(r,this.secondToLastVertex)||(this.secondToLastVertex=r),this._processCursor(this.cursorVertex),t.type){case"vertex-add":this.emit(t.type,{...t,added:i,vertices:e});break;case"vertex-update":this.emit(t.type,{...t,updated:i,vertices:e});break;case"vertex-remove":this.emit(t.type,{...t,removed:i,vertices:e})}})));const p=this._manipulator=new C({consumesClicks:!1,grabbableForEvent:t=>"click"!==this.drawingMode||"touch"===t.pointerType&&this._snappingEnabled&&1===this._pointerDownStates.size});this.manipulators.add(p),p.grabbable="point"!==t&&"multipoint"!==t,this.addHandles([p.events.on("immediate-click",(t=>this._onImmediateClick(t))),p.events.on("immediate-double-click",(t=>this._onImmediateDoubleClick(t))),c((()=>this.drawingMode),(()=>{this.removeHandles(U),this.addHandles(this._createManipulatorDragPipeline(p),U)}),l),c((()=>({effectiveCursor:this.effectiveCursor})),(({effectiveCursor:t})=>{p.cursor=t}),l)]),Z(this,(()=>{const t=this.view.inputManager.latestPointerType??"mouse",e=this._getSnappingContext(t);if(null!=this.snappingManager){const t=this._snappingOperation.snapAgainNearPreviousMapPoint(this.snappingManager,e);this._updatingHandles.addPromise(a(t))}}))}destroy(){o(this.segmentLabels),o(this._snappingOperation),this._editGeometryOperations=o(this._editGeometryOperations),this._updatingHandles.destroy()}get _isDragging(){const{_stagedPointerId:t,_manipulator:e}=this;return null!=t&&this._pointerDownStates.has(t)||e.grabbing||!e.interactive}get _snappingEnabled(){return null!=this.snappingManager&&this.snappingManager.options.effectiveEnabled}get _requiresScenePoint(){const t=this._updateAndGetEffectiveDrawSurface();return"3d"===this.view.type&&this.drawSurface!==t}get canRedo(){return this._editGeometryOperations.canRedo}get canUndo(){return this._editGeometryOperations.canUndo}get committedVertices(){return this._activeComponent.vertices.map((t=>this.coordinateHelper.vectorToArray(t.pos)))}get _constraint(){const{constraints:t,constraintsEnabled:e}=this;if(t&&e)switch(this.geometryType){case"point":case"multipoint":return this._getPointConstraint(t);case"polygon":case"polyline":return this._getPolylineOrPolygonConstraint(this.lastVertex,this.secondToLastVertex,t)}}set drawingMode(t){this._set("drawingMode",t??x)}get effectiveCursor(){return this.loading?L:this._hideDefaultCursor?null:this.cursor||A}get interactive(){return this._manipulator.interactive}set interactive(t){this._manipulator.interactive=t}get isCompleted(){return this._createOperationCompleted}get numCommittedVertices(){return this._activeComponent.vertices.length}get snappingOptions(){return null!=this.snappingManager?this.snappingManager.options:null}get cursorVertex(){return this._get("cursorVertex")}get visualizationCursorVertex(){return"mouse"===this._stagedPointerType?this.cursorVertex:null}get committableVertex(){const{cursorVertex:t,lastVertex:e,firstVertex:i,geometryType:n}=this;return"polygon"===n&&_(t,i)||_(t,e)?null:t}get updating(){return this._updatingHandles.updating}get geometryIncludingUncommittedVertices(){const{committedVertices:t,committableVertex:e,coordinateHelper:i}=this,n=t.slice();return null!=e&&n.push(i.pointToArray(e)),n}cancel(){this.complete({aborted:!0})}commitStagedVertex(){this._snappingOperation.abort();const{committableVertex:t}=this;null!=t&&this._editGeometryOperations.appendVertex(this.coordinateHelper.pointToVector(t))}complete(t){const e=t?.aborted||!1;this._snappingOperation.abort(),this.snappingManager?.doneSnapping();const{geometryType:i,numCommittedVertices:n}=this,o="multipoint"===i&&0===n||"polyline"===i&&n<2||"polygon"===i&&n<3;"segment"!==i&&"point"!==i||this.commitStagedVertex(),this._createOperationCompleted=!o,(this.isCompleted||e)&&(this._stagedScreenPoint=null,this._stagedPointerId=null,this._stagedPointerType=null,this._processCursor(null),this.emit("complete",{vertices:this.committedVertices.map(((t,e)=>({componentIndex:0,vertexIndex:e,coordinates:t}))),aborted:e,type:"complete"}))}onInputEvent(t){switch(t.type){case"pointer-down":this._pointerDownStates.add(t.pointerId);break;case"pointer-up":this._pointerDownStates.delete(t.pointerId)}switch(t.type){case"pointer-move":return this._onPointerMove(t);case"hold":return this._onHold(t)}}redo(){this._editGeometryOperations.redo()}undo(){null!=this.snappingManager&&this.snappingManager.doneSnapping(),this._editGeometryOperations.undo()}_processCursor(t){const e=n(this.cursorVertex),i=n(t),o=i&&(this._updateAndGetEffectiveDrawSurface()?.constrainZ(i)??i),r=this._snapToClosingVertex(o),s=this._applyConstraints(r);_(e,s)||(this._set("cursorVertex",s),this.segmentLabels?.set("stagedVertex",null!=s?this.coordinateHelper.pointToVector(s):null),null==s||"mouse"!==this._stagedPointerType?this.emit("cursor-remove"):this.emit("cursor-update",{updated:null,vertices:[{componentIndex:0,vertexIndex:this._activeComponent.vertices.length,coordinates:this.coordinateHelper.pointToArray(s)}],operation:"apply",type:"vertex-update"}))}_snapToClosingVertex(t){if(null==t||this._isDragging||"polygon"!==this.geometryType||this.numCommittedVertices<=2)return t;const e=this._mapToScreen(t);if(!e)return t;const i=this._activeComponent;return this._vertexWithinPointerDistance(i.vertices[0].pos,e)?this.firstVertex:this._vertexWithinPointerDistance(i.vertices.at(-1).pos,e)?this.lastVertex:t}_createManipulatorDragPipeline(t){switch(this.drawingMode){case"click":return this._createManipulatorDragPipelineClick(t);case"freehand":return this._createManipulatorDragPipelineFreehand(t);case"hybrid":return this._createManipulatorDragPipelineHybrid(t)}}_createManipulatorDragPipelineClick(t){return T(t,((t,e,i,n)=>{const o="touch"===n&&this._snappingEnabled;if(this.isCompleted||!o)return;const{snappingStep:r,cancelSnapping:s}=G({predicate:()=>o,snappingManager:this.snappingManager,snappingContext:new j({editGeometryOperations:this._editGeometryOperations,elevationInfo:this.elevationInfo,feature:this.graphic,pointer:n,visualizer:this.snappingVisualizer,drawConstraints:this.constraints}),updatingHandles:this._updatingHandles,useZ:!this._requiresScenePoint});i=i.next((t=>(o&&null!=this.snappingManager&&this.snappingManager.doneSnapping(),t))).next(s),e.next(this._screenToMapDragEventStep()).next((t=>("start"===t.action&&(this._processCursor(t.mapStart),("segment"===this.geometryType||o&&!this.numCommittedVertices)&&this.commitStagedVertex()),t))).next(S(this.view,this.elevationInfo)).next(...r).next((t=>(o&&(this._processCursor(t.mapEnd),"end"===t.action&&this.commitStagedVertex()),t))).next((t=>("end"===t.action&&("mouse"!==this._stagedPointerType&&this._snappingOperation.abort(),"segment"!==this.geometryType&&"point"!==this.geometryType||this.complete()),t)))}))}_createManipulatorDragPipelineFreehand(t){return T(t,((t,e)=>{this.isCompleted||e.next(this._screenToMapDragEventStep()).next((t=>("start"===t.action&&(this._snappingOperation.abort(),null==this.committableVertex&&this._processCursor(t.mapStart),"segment"===this.geometryType&&this.commitStagedVertex()),t))).next((t=>{switch(t.action){case"start":case"update":this._processCursor(t.mapEnd),"polygon"!==this.geometryType&&"polyline"!==this.geometryType||this.commitStagedVertex();break;case"end":this.complete()}return t}))}))}_createManipulatorDragPipelineHybrid(t){return T(t,((t,e)=>{this.isCompleted||e.next(this._screenToMapDragEventStep()).next((t=>("start"===t.action&&(this._snappingOperation.abort(),this.addHandles(this._editGeometryOperations.createUndoGroup(),z),this._processCursor(t.mapStart),this.commitStagedVertex()),t))).next((t=>{switch(t.action){case"start":case"update":this._processCursor(t.mapEnd),"polygon"!==this.geometryType&&"polyline"!==this.geometryType||this.commitStagedVertex();break;case"end":"mouse"!==this._stagedPointerType&&this._snappingOperation.abort(),this.removeHandles(z),"segment"!==this.geometryType&&"point"!==this.geometryType||this.complete()}return t}))}))}get _drawAtFixedElevation(){const{constraintsEnabled:t,constraintZ:e,geometryType:i,numCommittedVertices:n}=this;return t?null!=e||"segment"===i&&n>0:("segment"===i||"polygon"===i)&&n>0}_updateAndGetEffectiveDrawSurface(){const{constraintsEnabled:t,coordinateHelper:e,drawSurface:i,elevationDrawSurface:n,snapToSceneEnabled:o}=this;if(null==n)return i;if(!this.hasZ)return n.defaultZ=null,n;const r=this.elevationInfo?.mode;let s=this.defaultZ,a=t||"absolute-height"===r;if(null!=o&&(a=o),"on-the-ground"===r&&(a=!1),this._drawAtFixedElevation){s=(t?this.constraintZ:null)??e.getZ(this._activeComponent.vertices[0].pos),a=!1}return a?i:(n.defaultZ=s,n)}_mapToScreen(t){return this._updateAndGetEffectiveDrawSurface()?.mapToScreen(t)}_onHold(t){this._snappingOperation.abort(),"click"===this.drawingMode&&"touch"===t.pointerType&&this._snappingEnabled&&this._processCursor(t.mapPoint),t.stopPropagation()}_onImmediateClick(t){if(!("mouse"===t.pointerType&&2===t.button||this._manipulator.dragging))try{const{drawingMode:e,geometryType:i}=this;this._stagedPointerType=t.pointerType,this._stagedScreenPoint=t.screenPoint;const n=this._screenToMap(t.screenPoint);if(null==n)return;if(null==n||"freehand"===e&&"point"!==i&&"multipoint"!==i)return;if(this._snappingEnabled&&null!=this.cursorVertex||this._processCursor(n),null==this.committableVertex)return void this.complete();this.commitStagedVertex(),"mouse"!==t.pointerType&&this._processCursor(null),("freehand"===e&&"multipoint"!==this.geometryType||"point"===i||"segment"===i&&2===this.numCommittedVertices||"segment"===i&&"hybrid"===e&&1===this.numCommittedVertices)&&this.complete()}finally{t.stopPropagation()}}_onImmediateDoubleClick(t){this._manipulator.dragging||"point"===this.geometryType||(this.complete(),t.stopPropagation())}_onPointerMove(t){const e=d(t.x,t.y);this._stagedScreenPoint=e,this._stagedPointerType=t.pointerType,this._stagedPointerId=t.pointerId,this._isDragging?this._snappingOperation.abort():(t.stopPropagation(),this._processCursorMovementRelativeToSurface(e,t.pointerType))}_onKeyboardBasedChange(){"mouse"===this._stagedPointerType&&this._stagedScreenPoint&&null!=this._stagedPointerId&&!this._isDragging?this._processCursorMovementRelativeToSurface(this._stagedScreenPoint,this._stagedPointerType):this._snappingOperation.abort()}_processCursorMovementRelativeToSurface(t,e){const i=this._snappingOperation,n=this._screenToMap(t),o=this._requiresScenePoint?this.drawSurface?.screenToMap(t):null;if(null==n)return this._hideDefaultCursor=!0,this._processCursor(null),void i.abort();this._hideDefaultCursor=!1;const r=this.snappingManager;if(null==r)return this._processCursor(n),void i.abort();const s=this._getSnappingContext(e);this._updatingHandles.addPromise(a(i.snap({point:n,scenePoint:o},r,s)))}_applyConstraints(t){const{_constraint:e,constraints:i}=this;if(!t||!i||!e)return t;const{context:n}=i,o=M(t,n),r=o?e.closestTo(o):void 0;if(!r)return t;const s=D(r,t,n),a="2d"===this.view.type||"absolute-height"!==n.elevationInfo.mode;return null!=s&&a&&null!=this.constraintZ&&this.hasZ&&(s.z=this.constraintZ),s}_screenToMap(t){return t?this._updateAndGetEffectiveDrawSurface()?.screenToMap(t):null}_screenToMapDragEventStep(){let t=null;return e=>{if("start"===e.action&&(t=this._screenToMap(e.screenStart)),null==t)return null;const i=this._screenToMap(e.screenEnd);return null!=i?{...e,mapStart:t,mapEnd:i}:null}}_vertexWithinPointerDistance(t,e){const i=25,n=this._mapToScreen(this.coordinateHelper.vectorToDehydratedPoint(t));return null!=n&&R(n,e,i)}_getSnappingContext(t){const e=this._drawAtFixedElevation?this.elevationDrawSurface?.defaultZ:null;return new j({editGeometryOperations:this._editGeometryOperations,elevationInfo:this.elevationInfo,pointer:t,feature:this.graphic,visualizer:this.snappingVisualizer,selfSnappingZ:null!=e?{value:e,elevationInfo:this.elevationInfo}:null,drawConstraints:this.constraints})}};function R(t,e,i){const n=t.x-e.x,o=t.y-e.y;return n*n+o*o<=i}t([h()],F.prototype,"_hideDefaultCursor",void 0),t([h()],F.prototype,"_stagedPointerId",void 0),t([h()],F.prototype,"_isDragging",null),t([h()],F.prototype,"_snappingOperation",void 0),t([h()],F.prototype,"_snappingEnabled",null),t([h({constructOnly:!0})],F.prototype,"graphic",void 0),t([h()],F.prototype,"constraintsEnabled",void 0),t([h()],F.prototype,"constraints",void 0),t([h()],F.prototype,"_constraint",null),t([h()],F.prototype,"constraintZ",void 0),t([h()],F.prototype,"defaultZ",void 0),t([h()],F.prototype,"isDraped",void 0),t([h({value:x})],F.prototype,"drawingMode",null),t([h({constructOnly:!0})],F.prototype,"elevationDrawSurface",void 0),t([h({constructOnly:!0})],F.prototype,"elevationInfo",void 0),t([h({constructOnly:!0,type:H})],F.prototype,"labelOptions",void 0),t([h({constructOnly:!0})],F.prototype,"geometryType",void 0),t([h({constructOnly:!0})],F.prototype,"hasM",void 0),t([h({constructOnly:!0})],F.prototype,"hasZ",void 0),t([h()],F.prototype,"cursor",void 0),t([h()],F.prototype,"effectiveCursor",null),t([h()],F.prototype,"loading",void 0),t([h({constructOnly:!0})],F.prototype,"manipulators",void 0),t([h({constructOnly:!0})],F.prototype,"drawSurface",void 0),t([h({constructOnly:!0})],F.prototype,"segmentLabels",void 0),t([h({constructOnly:!0})],F.prototype,"snappingManager",void 0),t([h({constructOnly:!0})],F.prototype,"snappingVisualizer",void 0),t([h()],F.prototype,"snapToSceneEnabled",void 0),t([h({readOnly:!0})],F.prototype,"cursorVertex",null),t([h({readOnly:!0})],F.prototype,"visualizationCursorVertex",null),t([h()],F.prototype,"committableVertex",null),t([h()],F.prototype,"firstVertex",void 0),t([h()],F.prototype,"lastVertex",void 0),t([h()],F.prototype,"secondToLastVertex",void 0),t([h()],F.prototype,"updating",null),t([h({constructOnly:!0})],F.prototype,"view",void 0),F=t([u("esri.views.draw.DrawOperation")],F);export{F as DrawOperation,A as defaultCursor,L as defaultLoadingCursor};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../chunks/tslib.es6.js";import e from"../../../Graphic.js";import i from"../../../core/Evented.js";import{destroyMaybe as s}from"../../../core/maybe.js";import{zeroMeters as o}from"../../../core/quantityUtils.js";import{when as r,watch as a,syncAndInitial as h,initial as c}from"../../../core/reactiveUtils.js";import{property as n}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as l}from"../../../core/accessorSupport/decorators/subclass.js";import p from"../../../geometry/Point.js";import _ from"../../../geometry/Polygon.js";import d from"../../../geometry/Polyline.js";import{create as m}from"../../../geometry/support/aaBoundingRect.js";import{getRingsOrPathsBounds as u}from"../../../geometry/support/boundsUtils.js";import{geometryToCoordinates as g}from"../../../geometry/support/coordsUtils.js";import y from"../../../geometry/support/rotate.js";import v from"../../../symbols/SimpleFillSymbol.js";import f from"../../../symbols/SimpleLineSymbol.js";import G from"../../../symbols/SimpleMarkerSymbol.js";import{cloneMove as b,scale as x,getRotationAngle as w,getScaleRatio as S}from"./drawUtils.js";import k from"./GraphicMover.js";import R from"./HighlightHelper.js";import{addUniqueLayer as M}from"./layerUtils.js";import{settings as I}from"./settings.js";import C from"../../interactive/sketch/SketchOptions.js";import{makeTooltip as H}from"../../interactive/tooltip/tooltipCommonUtils.js";import{ExtentRotateTooltipInfo as O}from"../../interactive/tooltip/infos/ExtentRotateTooltipInfo.js";import{ExtentScaleTooltipInfo as j}from"../../interactive/tooltip/infos/ExtentScaleTooltipInfo.js";import{TranslateTooltipInfo as T}from"../../interactive/tooltip/infos/TranslateTooltipInfo.js";import{autoDistanceBetweenPoints2D as E}from"../../support/automaticLengthMeasurementUtils.js";import{autoSize2D as L}from"../../support/extentUtils.js";class z{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.dx=i,this.dy=s,this.type="move-start"}}class B{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.dx=i,this.dy=s,this.type="move"}}class Y{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.dx=i,this.dy=s,this.type="move-stop"}}class N{constructor(t,e,i){this.graphics=t,this.mover=e,this.angle=i,this.type="rotate-start"}}class U{constructor(t,e,i){this.graphics=t,this.mover=e,this.angle=i,this.type="rotate"}}class A{constructor(t,e,i){this.graphics=t,this.mover=e,this.angle=i,this.type="rotate-stop"}}class P{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.xScale=i,this.yScale=s,this.type="scale-start"}}class X{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.xScale=i,this.yScale=s,this.type="scale"}}class F{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.xScale=i,this.yScale=s,this.type="scale-stop"}}const D=I.transformGraphics,V={centerIndicator:new G({style:"cross",size:D.center.size,color:D.center.color}),fill:{default:new v({color:D.fill.color,outline:{color:D.fill.outlineColor,join:"round",width:1}}),active:new v({color:D.fill.stagedColor,outline:{color:D.fill.outlineColor,join:"round",style:"dash",width:1}})},handles:{default:new G({style:"square",size:D.vertex.size,color:D.vertex.color,outline:{color:D.vertex.outlineColor,width:1}}),hover:new G({style:"square",size:D.vertex.hoverSize,color:D.vertex.hoverColor,outline:{color:D.vertex.hoverOutlineColor,width:1}})},rotator:{default:new G({style:"circle",size:D.vertex.size,color:D.vertex.color,outline:{color:D.vertex.outlineColor,width:1}}),hover:new G({style:"circle",size:D.vertex.hoverSize,color:D.vertex.hoverColor,outline:{color:D.vertex.hoverOutlineColor,width:1}})},rotatorLine:new f({color:D.line.color,width:1})};let q=class extends i.EventedAccessor{constructor(t){super(t),this._activeHandleGraphic=null,this._graphicAttributes={esriSketchTool:"box"},this._mover=null,this._centerGraphic=null,this._backgroundGraphic=null,this._vertexGraphics=[],this._rotateHandleGraphic=null,this._rotateGraphicOffset=20,this._angleOfRotation=0,this._rotateLineGraphic=null,this._startInfo=null,this._totalDx=0,this._totalDy=0,this._xScale=1,this._yScale=1,this.tooltip=null,this.type="box",this.callbacks={onMoveStart(){},onMove(){},onMoveStop(){},onScaleStart(){},onScale(){},onScaleStop(){},onRotateStart(){},onRotate(){},onRotateStop(){},onGraphicClick(){}},this.enableMovement=!0,this.enableRotation=!0,this.enableScaling=!0,this.graphics=[],this.highlightsEnabled=!0,this.layer=null,this.preserveAspectRatio=!1,this.showCenterGraphic=!0,this.symbols=V,this.sketchOptions=new C,this.view=null,this._getBounds=(()=>{const t=m();return(e,i)=>{e[0]=Number.POSITIVE_INFINITY,e[1]=Number.POSITIVE_INFINITY,e[2]=Number.NEGATIVE_INFINITY,e[3]=Number.NEGATIVE_INFINITY;for(const s of i){if(!s)continue;let i,o,r,a;if("point"===s.type)i=r=s.x,o=a=s.y;else if("multipoint"===s.type){const e=g(s);[i,o,r,a]=u(t,[e])}else if("extent"===s.type)[i,o,r,a]=[s.xmin,s.ymin,s.xmax,s.ymax];else{const e=g(s);[i,o,r,a]=u(t,e)}e[0]=Math.min(i,e[0]),e[1]=Math.min(o,e[1]),e[2]=Math.max(r,e[2]),e[3]=Math.max(a,e[3])}return e}})()}initialize(){const t=this.view;this._highlightHelper=new R({view:t}),this._setup(),this.addHandles([r((()=>t?.ready),(()=>{const{layer:t,view:e}=this;M(e,t)}),{once:!0,initial:!0}),a((()=>this.preserveAspectRatio),(()=>{this._activeHandleGraphic&&(this._scaleGraphic(this._activeHandleGraphic),this._updateGraphics(),this._updateTooltip(this._activeHandleGraphic))})),a((()=>t?.scale),(()=>{this._updateRotateGraphic(),this._updateRotateLineGraphic()})),a((()=>this.graphics),(()=>this.refresh())),a((()=>this.layer),((t,e)=>{e&&this._resetGraphics(e),this.refresh()})),a((()=>this.highlightsEnabled),(()=>{this._highlightHelper?.removeAll(),this._setUpHighlights()})),a((()=>this.sketchOptions.tooltips.effectiveEnabled),(e=>{this.tooltip=e?H((()=>({view:t,options:this.sketchOptions.tooltips}))):s(this.tooltip)}),h),a((()=>this.view.effectiveTheme.accentColor),(()=>this._updateSymbolsForTheme()),c),this.on("move-start",(t=>this.callbacks?.onMoveStart?.(t))),this.on("move",(t=>this.callbacks?.onMove?.(t))),this.on("move-stop",(t=>this.callbacks?.onMoveStop?.(t))),this.on("rotate-start",(t=>this.callbacks?.onRotateStart?.(t))),this.on("rotate",(t=>this.callbacks?.onRotate?.(t))),this.on("rotate-stop",(t=>this.callbacks?.onRotateStop?.(t))),this.on("scale-start",(t=>this.callbacks?.onScaleStart?.(t))),this.on("scale",(t=>this.callbacks?.onScale?.(t))),this.on("scale-stop",(t=>this.callbacks?.onScaleStop?.(t)))])}destroy(){this._reset(),this.tooltip=s(this.tooltip)}get state(){const t=this.view?.ready??!1,e=this.graphics.length&&this.layer;return t&&e?"active":t?"ready":"disabled"}isUIGraphic(t){return this._vertexGraphics.includes(t)||t===this._backgroundGraphic||t===this._centerGraphic||t===this._rotateHandleGraphic||t===this._rotateLineGraphic}move(t,e){if(this._mover&&this.graphics.length){for(const i of this.graphics){const s=i.geometry,o=b(s,t,e,this.view);i.geometry=o}this.refresh(),this.emit("move-stop",new Y(this.graphics,null,t,e))}}scale(t,e){if(this._mover&&this.graphics.length){for(const i of this.graphics){const s=i.geometry,o=x(s,t,e);i.geometry=o}this.refresh(),this.emit("scale-stop",new F(this.graphics,null,t,e))}}rotate(t,e){if(this._mover&&this.graphics.length){if(!e){const t=this._vertexGraphics[1].geometry.x,i=this._vertexGraphics[3].geometry.y;e=new p(t,i,this.view.spatialReference)}for(const i of this.graphics){const s=i.geometry,o=y(s,t,e);i.geometry=o}this.refresh(),this.emit("rotate-stop",new A(this.graphics,null,t))}}refresh(){this._reset(),this._setup()}reset(){this.graphics=[]}_setup(){"active"===this.state&&(this._setUpHighlights(),this._setupGraphics(),this._setupMover(),this._updateGraphics())}_reset(){this._highlightHelper?.removeAll(),this._resetGraphicStateVars(),this._resetGraphics(),this._updateTooltip(),this._mover&&this._mover.destroy(),this._mover=null,this.view.cursor="default"}_resetGraphicStateVars(){this._startInfo=null,this._activeHandleGraphic=null,this._totalDx=0,this._totalDy=0,this._xScale=1,this._yScale=1,this._angleOfRotation=0}_resetGraphics(t){(t=t||this.layer)&&(t.removeMany(this._vertexGraphics),t.remove(this._backgroundGraphic),t.remove(this._centerGraphic),t.remove(this._rotateHandleGraphic),t.remove(this._rotateLineGraphic)),this._vertexGraphics.forEach((t=>!t.destroyed&&t.destroy())),!this._backgroundGraphic.destroyed&&this._backgroundGraphic.destroy(),!this._centerGraphic.destroyed&&this._centerGraphic.destroy(),!this._rotateHandleGraphic.destroyed&&this._rotateHandleGraphic.destroy(),!this._rotateLineGraphic.destroyed&&this._rotateLineGraphic.destroy(),this._vertexGraphics=[],this._backgroundGraphic=null,this._centerGraphic=null,this._rotateHandleGraphic=null,this._rotateLineGraphic=null}_setupMover(){let t=[];this.enableScaling&&(t=t.concat(this._vertexGraphics)),this.enableMovement&&(t=t.concat(this.graphics,this._backgroundGraphic)),this.enableRotation&&t.push(this._rotateHandleGraphic),this.showCenterGraphic&&t.push(this._centerGraphic),this._mover=new k({enableMoveAllGraphics:!1,highlightsEnabled:!1,indicatorsEnabled:!1,view:this.view,graphics:t,callbacks:{onGraphicClick:t=>this._onGraphicClickCallback(t),onGraphicMoveStart:t=>this._onGraphicMoveStartCallback(t),onGraphicMove:t=>this._onGraphicMoveCallback(t),onGraphicMoveStop:t=>this._onGraphicMoveStopCallback(t),onGraphicPointerOver:t=>this._onGraphicPointerOverCallback(t),onGraphicPointerOut:t=>this._onGraphicPointerOutCallback(t)}})}_getStartInfo(t){const[e,i,s,o]=this._getBoxBounds(m()),r=Math.abs(s-e),a=Math.abs(o-i),h=(s+e)/2,c=(o+i)/2,{x:n,y:l}=t.geometry;return{width:r,height:a,centerX:h,centerY:c,startX:n,startY:l,graphicInfos:this._getGraphicInfos(),box:this._backgroundGraphic.geometry,rotate:this._rotateHandleGraphic.geometry}}_getGraphicInfos(){return this.graphics.map((t=>this._getGraphicInfo(t)))}_getGraphicInfo(t){const e=t.geometry,[i,s,o,r]=this._getBounds(m(),[e]);return{width:Math.abs(o-i),height:Math.abs(r-s),centerX:(o+i)/2,centerY:(r+s)/2,geometry:e}}_onGraphicClickCallback(t){t.viewEvent.stopPropagation(),this.emit("graphic-click",t),this.callbacks.onGraphicClick&&this.callbacks.onGraphicClick(t)}_onGraphicMoveStartCallback(t){const{_angleOfRotation:e,_xScale:i,_yScale:s,_backgroundGraphic:o,_vertexGraphics:r,_rotateHandleGraphic:a,symbols:h}=this,c=t.graphic;this._resetGraphicStateVars(),this._hideGraphicsBeforeUpdate(),o.symbol=h.fill.active,this._startInfo=this._getStartInfo(c),this._updateTooltip(c,t.viewEvent),c===a?(this.view.cursor="grabbing",this.emit("rotate-start",new N(this.graphics,c,e))):r.includes(c)?(this._activeHandleGraphic=c,this.emit("scale-start",new P(this.graphics,c,i,s))):this.emit("move-start",new z(this.graphics,c,t.dx,t.dy))}_onGraphicMoveCallback(t){const e=t.graphic;if(this._startInfo)if(this._vertexGraphics.includes(e))this._scaleGraphic(e),this._updateTooltip(e,t.viewEvent),this.emit("scale",new X(this.graphics,e,this._xScale,this._yScale));else if(e===this._rotateHandleGraphic)this._rotateGraphic(e),this._updateTooltip(e,t.viewEvent),this.emit("rotate",new U(this.graphics,e,this._angleOfRotation));else{const{dx:i,dy:s}=t;this._totalDx+=i,this._totalDy+=s,this._moveGraphic(e,i,s),this._updateTooltip(e,t.viewEvent),this.emit("move",new B(this.graphics,e,i,s))}}_onGraphicMoveStopCallback(t){const e=t.graphic;if(!this._startInfo)return void this.refresh();const{_angleOfRotation:i,_totalDx:s,_totalDy:o,_xScale:r,_yScale:a,_vertexGraphics:h,_rotateHandleGraphic:c}=this;this.refresh(),e===c?(this.view.cursor="pointer",this.emit("rotate-stop",new A(this.graphics,e,i))):h.includes(e)?this.emit("scale-stop",new F(this.graphics,e,r,a)):this.emit("move-stop",new Y(this.graphics,e,s,o))}_onGraphicPointerOverCallback(t){const{_backgroundGraphic:e,_vertexGraphics:i,graphics:s,_rotateHandleGraphic:o,symbols:r,view:a}=this,h=t.graphic;if(this._hoveredGraphic=h,h===o)return o.symbol=r.rotator.hover,a.cursor="pointer",void this._updateTooltip(h);if(s.includes(h)||h===e)return void(a.cursor="move");if(!i.includes(h))return void(a.cursor="pointer");this._updateTooltip(h),t.graphic.symbol=r.handles.hover;const c=a.rotation;let n,l=t.index;switch(l<8&&(c>=0&&c<45?l%=8:l=c>=45&&c<90?(l+1)%8:c>=90&&c<135?(l+2)%8:c>=135&&c<180?(l+3)%8:c>=180&&c<225?(l+4)%8:c>=225&&c<270?(l+5)%8:c>=270&&c<315?(l+6)%8:(l+7)%8),l){case 0:case 4:n="nwse-resize";break;case 1:case 5:n="ns-resize";break;case 2:case 6:n="nesw-resize";break;case 3:case 7:n="ew-resize";break;default:n="pointer"}a.cursor=n}_onGraphicPointerOutCallback(t){const{_vertexGraphics:e,_rotateHandleGraphic:i,symbols:s,view:o}=this;this._hoveredGraphic=null,t.graphic===i?i.symbol=s.rotator.default:e.includes(t.graphic)&&(t.graphic.symbol=s.handles.default),o.cursor="default",this._updateTooltip()}_scaleGraphic(t){const{_startInfo:e,_vertexGraphics:i,preserveAspectRatio:s,view:o}=this,{centerX:r,centerY:a,graphicInfos:h,height:c,startX:n,startY:l,width:_}=e,{resolution:d,transform:m}=o.state,u=i.indexOf(t);1!==u&&5!==u||this._updateX(t,r),3!==u&&7!==u||this._updateY(t,a);const{x:g,y}=t.geometry,v=m[0]*g+m[2]*y+m[4],f=m[1]*g+m[3]*y+m[5],G=h?.map((t=>t.geometry))??[],w=G.every((t=>"point"===t.type));if((0===_||0===c)&&w){const t=J((g-n)/d),i=J((l-y)/d);for(let e=0;e<G.length;e++)this.graphics[e].geometry=b(G[e],t,i,o,!0);return this._centerGraphic.geometry=new p(g,y,o.spatialReference),void(this._backgroundGraphic.geometry=b(e.box,t,i,o,!0))}if(s){const t=J(m[0]*r+m[2]*a+m[4],2),e=J(m[1]*r+m[3]*a+m[5],2),i=J(m[0]*n+m[2]*l+m[4],2),s=J(m[1]*n+m[3]*l+m[5],2);let o=S(t,e,i,s,v,f);0!==o&&Math.abs(o)!==1/0||(o=1),this._xScale=this._yScale=o;for(const h of G){const t=G.indexOf(h);this.graphics[t].geometry=x(h,this._xScale,this._yScale,[r,a])}this._updateBackgroundGraphic()}else{let t=g-n,i=l-y;if(1===u||5===u?t=0:3!==u&&7!==u||(i=0),0===t&&0===i)return;const s=r+t/2,h=a+i/2;let m=(_+(n>r?t:-1*t))/_,v=(c+(l<a?i:-1*i))/c;1!==u&&5!==u&&0!==m&&Math.abs(m)!==1/0||(m=1),3!==u&&7!==u&&0!==v&&Math.abs(v)!==1/0||(v=1),this._xScale=m,this._yScale=v;const f=(s-r)/d,w=(h-a)/d,S=x(e.box,this._xScale,this._yScale);this._backgroundGraphic.geometry=b(S,f,w,o,!0);const{centerX:k,centerY:R}=this._getGraphicInfo(this._backgroundGraphic),M=(k-r)/d,I=-1*(R-a)/d;for(const e of G){const t=G.indexOf(e),i=x(e,this._xScale,this._yScale,[r,a]);this.graphics[t].geometry=b(i,M,I,o,!0)}this._centerGraphic.geometry=new p(k,R,o.spatialReference)}}_rotateGraphic(t){const{centerX:e,centerY:i,startX:s,startY:o,box:r,rotate:a}=this._startInfo,h=this.view.spatialReference,c=new p(s,o,h),n=new p(e,i,h),l=t.geometry;this._angleOfRotation=w(c,l,n);const _=this._startInfo.graphicInfos?.map((t=>t.geometry))??[];for(const p of _){const t=_.indexOf(p),e=y(p,this._angleOfRotation,n);this.graphics[t].geometry=e}this._backgroundGraphic.geometry=y(r,this._angleOfRotation,n),this._rotateHandleGraphic.geometry=y(a,this._angleOfRotation,n)}_moveGraphic(t,e,i){if(this.graphics.includes(t)){const s=this._backgroundGraphic.geometry;this._backgroundGraphic.geometry=b(s,e,i,this.view);for(const o of this.graphics)o!==t&&(o.geometry=b(o.geometry,e,i,this.view))}else if(t===this._centerGraphic){const t=this._backgroundGraphic.geometry;this._backgroundGraphic.geometry=b(t,e,i,this.view)}if(t===this._backgroundGraphic||t===this._centerGraphic)for(const s of this.graphics)s.geometry=b(s.geometry,e,i,this.view)}_setUpHighlights(){this.highlightsEnabled&&this.graphics.length&&this._highlightHelper?.add(this.graphics)}_setupGraphics(){const{_graphicAttributes:t,symbols:i}=this;this._centerGraphic=new e({symbol:i.centerIndicator,attributes:t}),this.showCenterGraphic&&this.layer.add(this._centerGraphic),this._backgroundGraphic=new e({symbol:i.fill.default,attributes:t}),this.layer.add(this._backgroundGraphic),this._rotateLineGraphic=new e({symbol:i.rotatorLine,attributes:t}),this._rotateHandleGraphic=new e({symbol:i.rotator.default,attributes:t}),this.enableRotation&&!this._hasExtentGraphic()&&this.layer.addMany([this._rotateLineGraphic,this._rotateHandleGraphic]);for(let s=0;s<8;s++)this._vertexGraphics.push(new e({symbol:i.handles.default,attributes:t}));this.enableScaling&&this.layer.addMany(this._vertexGraphics)}_updateSymbolsForTheme(){const t=this.view.effectiveTheme.accentColor;this.symbols={...this.symbols,fill:{active:this.symbols.fill.active?.clone().set("outline.color",t),default:this.symbols.fill.default?.clone().set("outline.color",t)},handles:{...this.symbols.handles,default:this.symbols.handles.default.clone().set("outline.color",t)},rotator:{...this.symbols.rotator,default:this.symbols.rotator.default.clone().set("outline.color",t)},rotatorLine:this.symbols.rotatorLine.clone().set("color",t)};for(const e of this._vertexGraphics)e.symbol=e===this._hoveredGraphic?this.symbols.handles.hover:this.symbols.handles.default;this._backgroundGraphic.symbol=this.symbols.fill.default,this._rotateHandleGraphic.symbol=this._rotateHandleGraphic===this._hoveredGraphic?this.symbols.rotator.hover:this.symbols.rotator.default,this._rotateLineGraphic.symbol=this.symbols.rotatorLine}_updateGraphics(){this._updateBackgroundGraphic(),this._updateHandleGraphics(),this._updateCenterGraphic(),this._updateRotateGraphic(),this._updateRotateLineGraphic()}_hideGraphicsBeforeUpdate(){this._centerGraphic.visible=!1,this._rotateHandleGraphic.visible=!1,this._rotateLineGraphic.visible=!1,this._vertexGraphics.forEach((t=>t.visible=!1))}_updateHandleGraphics(){const t=this._getCoordinates(!0);this._vertexGraphics.forEach(((e,i)=>{const[s,o]=t[i];this._updateXY(e,s,o)}))}_updateBackgroundGraphic(){const t=this._getCoordinates().map((([t,e])=>[t,e]));this._backgroundGraphic.geometry=new _({rings:[t],spatialReference:this.view.spatialReference})}_updateCenterGraphic(){const[t,e,i,s]=this._getBoxBounds(m()),o=(i+t)/2,r=(s+e)/2;this._centerGraphic.geometry=new p(o,r,this.view.spatialReference)}_updateRotateGraphic(){if(!this._vertexGraphics.length)return;const{x:t,y:e}=this._vertexGraphics[1].geometry,i=e+this.view.state.resolution*this._rotateGraphicOffset;this._rotateHandleGraphic.geometry=new p(t,i,this.view.spatialReference)}_updateRotateLineGraphic(){if(!this._vertexGraphics.length||!this._rotateHandleGraphic?.geometry)return;const t=this._vertexGraphics[1].geometry,e=this._rotateHandleGraphic.geometry;this._rotateLineGraphic.geometry=new d({paths:[[[t.x,t.y],[e.x,e.y]]],spatialReference:this.view.spatialReference})}_updateXY(t,e,i){t.geometry=new p(e,i,this.view.spatialReference)}_updateX(t,e){const i=t.geometry.y;t.geometry=new p(e,i,this.view.spatialReference)}_updateY(t,e){const i=t.geometry.x;t.geometry=new p(i,e,this.view.spatialReference)}_hasExtentGraphic(){return this.graphics.some((t=>null!=t?.geometry&&"extent"===t.geometry.type))}_getBoxBounds(t){const e=this.graphics.map((t=>t.geometry));return this._getBounds(t,e)}_getCoordinates(t){const[e,i,s,o]=this._getBoxBounds(m());if(t){const t=(e+s)/2,r=(o+i)/2;return[[e,o],[t,o],[s,o],[s,r],[s,i],[t,i],[e,i],[e,r]]}return[[e,o],[s,o],[s,i],[e,i]]}_updateTooltip(t,e){if(null==this.tooltip)return;if(!t)return void this.tooltip.clear();const{_backgroundGraphic:i,graphics:s,_vertexGraphics:o,_rotateHandleGraphic:r}=this;t===r?this._updateRotateTooltip():o.includes(t)?this._updateScaleTooltip():(s.includes(t)||t===i)&&this._updateMoveTooltip(e)}_updateRotateTooltip(){null!=this.tooltip&&(this.tooltip.info=new O({sketchOptions:this.sketchOptions,angle:-this._angleOfRotation}))}_updateScaleTooltip(){const{tooltip:t,_xScale:e,_yScale:i,sketchOptions:s,view:o}=this;if(null==t)return;const r=this._getCoordinates(),a=L({topLeft:r[0],topRight:r[1],bottomRight:r[2],bottomLeft:r[3],spatialReference:o.spatialReference});if(null==a)return;const{xSize:h,ySize:c}=a,n=Math.abs(e),l=Math.abs(i);t.info=new j({sketchOptions:s,xScale:n,yScale:l,xSize:h,ySize:c})}_updateMoveTooltip(t){const{tooltip:e,sketchOptions:i,view:s}=this;if(null==e)return;const r=new T({sketchOptions:i});if(t){const{x:e,y:i}=t.origin,a=s.toMap(t),h=s.toMap({x:e,y:i}),c=E(h,a);r.distance=null!=c?c:o}e.info=r}};function J(t,e=2){return Number.parseFloat(t.toFixed(e))}t([n()],q.prototype,"tooltip",void 0),t([n({readOnly:!0})],q.prototype,"type",void 0),t([n()],q.prototype,"callbacks",void 0),t([n()],q.prototype,"enableMovement",void 0),t([n()],q.prototype,"enableRotation",void 0),t([n()],q.prototype,"enableScaling",void 0),t([n()],q.prototype,"graphics",void 0),t([n()],q.prototype,"highlightsEnabled",void 0),t([n()],q.prototype,"layer",void 0),t([n()],q.prototype,"preserveAspectRatio",void 0),t([n()],q.prototype,"showCenterGraphic",void 0),t([n({readOnly:!0})],q.prototype,"state",null),t([n()],q.prototype,"symbols",void 0),t([n({type:C})],q.prototype,"sketchOptions",void 0),t([n({constructOnly:!0})],q.prototype,"view",void 0),q=t([l("esri.views.draw.support.Box")],q);const K=q;export{K as default};
5
+ import{_ as t}from"../../../chunks/tslib.es6.js";import e from"../../../Graphic.js";import i from"../../../core/Evented.js";import{destroyMaybe as s}from"../../../core/maybe.js";import{zeroMeters as o}from"../../../core/quantityUtils.js";import{when as r,watch as a,syncAndInitial as h,initial as c}from"../../../core/reactiveUtils.js";import{property as n}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as l}from"../../../core/accessorSupport/decorators/subclass.js";import p from"../../../geometry/Point.js";import _ from"../../../geometry/Polygon.js";import d from"../../../geometry/Polyline.js";import{create as m}from"../../../geometry/support/aaBoundingRect.js";import{getRingsOrPathsBounds as u}from"../../../geometry/support/boundsUtils.js";import{geometryToCoordinates as g}from"../../../geometry/support/coordsUtils.js";import y from"../../../geometry/support/rotate.js";import v from"../../../symbols/SimpleFillSymbol.js";import f from"../../../symbols/SimpleLineSymbol.js";import G from"../../../symbols/SimpleMarkerSymbol.js";import{cloneMove as b,scale as x,getRotationAngle as w,getScaleRatio as S}from"./drawUtils.js";import k from"./GraphicMover.js";import R from"./HighlightHelper.js";import{addUniqueLayer as M}from"./layerUtils.js";import{settings as I}from"./settings.js";import C from"../../interactive/sketch/SketchOptions.js";import{makeTooltip as H}from"../../interactive/tooltip/tooltipCommonUtils.js";import{ExtentRotateTooltipInfo as O}from"../../interactive/tooltip/infos/ExtentRotateTooltipInfo.js";import{ExtentScaleTooltipInfo as j}from"../../interactive/tooltip/infos/ExtentScaleTooltipInfo.js";import{TranslateTooltipInfo as T}from"../../interactive/tooltip/infos/TranslateTooltipInfo.js";import{autoDistanceBetweenPoints2D as E}from"../../support/automaticLengthMeasurementUtils.js";import{autoSize2D as L}from"../../support/extentUtils.js";class z{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.dx=i,this.dy=s,this.type="move-start"}}class B{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.dx=i,this.dy=s,this.type="move"}}class Y{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.dx=i,this.dy=s,this.type="move-stop"}}class N{constructor(t,e,i){this.graphics=t,this.mover=e,this.angle=i,this.type="rotate-start"}}class U{constructor(t,e,i){this.graphics=t,this.mover=e,this.angle=i,this.type="rotate"}}class A{constructor(t,e,i){this.graphics=t,this.mover=e,this.angle=i,this.type="rotate-stop"}}class P{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.xScale=i,this.yScale=s,this.type="scale-start"}}class X{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.xScale=i,this.yScale=s,this.type="scale"}}class F{constructor(t,e,i,s){this.graphics=t,this.mover=e,this.xScale=i,this.yScale=s,this.type="scale-stop"}}const D=I.transformGraphics,V={centerIndicator:new G({style:"cross",size:D.center.size,color:D.center.color}),fill:{default:new v({color:D.fill.color,outline:{color:D.fill.outlineColor,join:"round",width:1}}),active:new v({color:D.fill.stagedColor,outline:{color:D.fill.outlineColor,join:"round",style:"dash",width:1}})},handles:{default:new G({style:"square",size:D.vertex.size,color:D.vertex.color,outline:{color:D.vertex.outlineColor,width:1}}),hover:new G({style:"square",size:D.vertex.hoverSize,color:D.vertex.hoverColor,outline:{color:D.vertex.hoverOutlineColor,width:1}})},rotator:{default:new G({style:"circle",size:D.vertex.size,color:D.vertex.color,outline:{color:D.vertex.outlineColor,width:1}}),hover:new G({style:"circle",size:D.vertex.hoverSize,color:D.vertex.hoverColor,outline:{color:D.vertex.hoverOutlineColor,width:1}})},rotatorLine:new f({color:D.line.color,width:1})};let q=class extends i.EventedAccessor{constructor(t){super(t),this._activeHandleGraphic=null,this._graphicAttributes={esriSketchTool:"box"},this._mover=null,this._centerGraphic=null,this._backgroundGraphic=null,this._vertexGraphics=[],this._rotateHandleGraphic=null,this._rotateGraphicOffset=20,this._angleOfRotation=0,this._rotateLineGraphic=null,this._startInfo=null,this._totalDx=0,this._totalDy=0,this._xScale=1,this._yScale=1,this.tooltip=null,this.type="box",this.callbacks={onMoveStart(){},onMove(){},onMoveStop(){},onScaleStart(){},onScale(){},onScaleStop(){},onRotateStart(){},onRotate(){},onRotateStop(){},onGraphicClick(){}},this.enableMovement=!0,this.enableRotation=!0,this.enableScaling=!0,this.graphics=[],this.highlightsEnabled=!0,this.layer=null,this.preserveAspectRatio=!1,this.showCenterGraphic=!0,this.symbols=V,this.sketchOptions=new C,this.view=null,this._getBounds=(()=>{const t=m();return(e,i)=>{e[0]=Number.POSITIVE_INFINITY,e[1]=Number.POSITIVE_INFINITY,e[2]=Number.NEGATIVE_INFINITY,e[3]=Number.NEGATIVE_INFINITY;for(const s of i){if(!s)continue;let i,o,r,a;if("point"===s.type)i=r=s.x,o=a=s.y;else if("multipoint"===s.type){const e=g(s);[i,o,r,a]=u(t,[e])}else if("extent"===s.type)[i,o,r,a]=[s.xmin,s.ymin,s.xmax,s.ymax];else{const e=g(s);[i,o,r,a]=u(t,e)}e[0]=Math.min(i,e[0]),e[1]=Math.min(o,e[1]),e[2]=Math.max(r,e[2]),e[3]=Math.max(a,e[3])}return e}})()}initialize(){const t=this.view;this._highlightHelper=new R({view:t}),this._setup(),this.addHandles([r((()=>t?.ready),(()=>{const{layer:t,view:e}=this;M(e,t)}),{once:!0,initial:!0}),a((()=>this.preserveAspectRatio),(()=>{this._activeHandleGraphic&&(this._scaleGraphic(this._activeHandleGraphic),this._updateGraphics(),this._updateTooltip(this._activeHandleGraphic))})),a((()=>t?.scale),(()=>{this._updateRotateGraphic(),this._updateRotateLineGraphic()})),a((()=>this.graphics),(()=>this.refresh())),a((()=>this.layer),((t,e)=>{e&&this._resetGraphics(e),this.refresh()})),a((()=>this.highlightsEnabled),(()=>{this._highlightHelper?.removeAll(),this._setUpHighlights()})),a((()=>this.sketchOptions.tooltips.effectiveEnabled),(e=>{this.tooltip=e?H((()=>({view:t,options:this.sketchOptions.tooltips}))):s(this.tooltip)}),h),a((()=>this.view.effectiveTheme.accentColor),(()=>this._updateSymbolsForTheme()),c),this.on("move-start",(t=>this.callbacks?.onMoveStart?.(t))),this.on("move",(t=>this.callbacks?.onMove?.(t))),this.on("move-stop",(t=>this.callbacks?.onMoveStop?.(t))),this.on("rotate-start",(t=>this.callbacks?.onRotateStart?.(t))),this.on("rotate",(t=>this.callbacks?.onRotate?.(t))),this.on("rotate-stop",(t=>this.callbacks?.onRotateStop?.(t))),this.on("scale-start",(t=>this.callbacks?.onScaleStart?.(t))),this.on("scale",(t=>this.callbacks?.onScale?.(t))),this.on("scale-stop",(t=>this.callbacks?.onScaleStop?.(t)))])}destroy(){this._reset(),this.tooltip=s(this.tooltip)}get state(){const t=this.view?.ready??!1,e=this.graphics.length&&this.layer;return t&&e?"active":t?"ready":"disabled"}isUIGraphic(t){return this._vertexGraphics.includes(t)||t===this._backgroundGraphic||t===this._centerGraphic||t===this._rotateHandleGraphic||t===this._rotateLineGraphic}move(t,e){if(this._mover&&this.graphics.length){for(const i of this.graphics){const s=i.geometry,o=b(s,t,e,this.view);i.geometry=o}this.refresh(),this.emit("move-stop",new Y(this.graphics,null,t,e))}}scale(t,e){if(this._mover&&this.graphics.length){for(const i of this.graphics){const s=i.geometry,o=x(s,t,e);i.geometry=o}this.refresh(),this.emit("scale-stop",new F(this.graphics,null,t,e))}}rotate(t,e){if(this._mover&&this.graphics.length){if(!e){const t=this._vertexGraphics[1].geometry.x,i=this._vertexGraphics[3].geometry.y;e=new p(t,i,this.view.spatialReference)}for(const i of this.graphics){const s=i.geometry,o=y(s,t,e);i.geometry=o}this.refresh(),this.emit("rotate-stop",new A(this.graphics,null,t))}}refresh(){this._reset(),this._setup()}reset(){this.graphics=[]}_setup(){"active"===this.state&&(this._setUpHighlights(),this._setupGraphics(),this._setupMover(),this._updateGraphics())}_reset(){this._highlightHelper?.removeAll(),this._resetGraphicStateVars(),this._resetGraphics(),this._updateTooltip(),this._mover&&this._mover.destroy(),this._mover=null,this.view.cursor="default"}_resetGraphicStateVars(){this._startInfo=null,this._activeHandleGraphic=null,this._totalDx=0,this._totalDy=0,this._xScale=1,this._yScale=1,this._angleOfRotation=0}_resetGraphics(t){(t=t||this.layer)&&(t.removeMany(this._vertexGraphics),t.remove(this._backgroundGraphic),t.remove(this._centerGraphic),t.remove(this._rotateHandleGraphic),t.remove(this._rotateLineGraphic)),this._vertexGraphics.forEach((t=>!t.destroyed&&t.destroy())),!this._backgroundGraphic.destroyed&&this._backgroundGraphic.destroy(),!this._centerGraphic.destroyed&&this._centerGraphic.destroy(),!this._rotateHandleGraphic.destroyed&&this._rotateHandleGraphic.destroy(),!this._rotateLineGraphic.destroyed&&this._rotateLineGraphic.destroy(),this._vertexGraphics=[],this._backgroundGraphic=null,this._centerGraphic=null,this._rotateHandleGraphic=null,this._rotateLineGraphic=null}_setupMover(){let t=[];this.enableScaling&&(t=t.concat(this._vertexGraphics)),this.enableRotation&&t.push(this._rotateHandleGraphic),this.enableMovement&&(t=t.concat(this.graphics,this._backgroundGraphic)),this.showCenterGraphic&&t.push(this._centerGraphic),this._mover=new k({enableMoveAllGraphics:!1,highlightsEnabled:!1,indicatorsEnabled:!1,view:this.view,graphics:t,callbacks:{onGraphicClick:t=>this._onGraphicClickCallback(t),onGraphicMoveStart:t=>this._onGraphicMoveStartCallback(t),onGraphicMove:t=>this._onGraphicMoveCallback(t),onGraphicMoveStop:t=>this._onGraphicMoveStopCallback(t),onGraphicPointerOver:t=>this._onGraphicPointerOverCallback(t),onGraphicPointerOut:t=>this._onGraphicPointerOutCallback(t)}})}_getStartInfo(t){const[e,i,s,o]=this._getBoxBounds(m()),r=Math.abs(s-e),a=Math.abs(o-i),h=(s+e)/2,c=(o+i)/2,{x:n,y:l}=t.geometry;return{width:r,height:a,centerX:h,centerY:c,startX:n,startY:l,graphicInfos:this._getGraphicInfos(),box:this._backgroundGraphic.geometry,rotate:this._rotateHandleGraphic.geometry}}_getGraphicInfos(){return this.graphics.map((t=>this._getGraphicInfo(t)))}_getGraphicInfo(t){const e=t.geometry,[i,s,o,r]=this._getBounds(m(),[e]);return{width:Math.abs(o-i),height:Math.abs(r-s),centerX:(o+i)/2,centerY:(r+s)/2,geometry:e}}_onGraphicClickCallback(t){t.viewEvent.stopPropagation(),this.emit("graphic-click",t),this.callbacks.onGraphicClick&&this.callbacks.onGraphicClick(t)}_onGraphicMoveStartCallback(t){const{_angleOfRotation:e,_xScale:i,_yScale:s,_backgroundGraphic:o,_vertexGraphics:r,_rotateHandleGraphic:a,symbols:h}=this,c=t.graphic;this._resetGraphicStateVars(),this._hideGraphicsBeforeUpdate(),o.symbol=h.fill.active,this._startInfo=this._getStartInfo(c),this._updateTooltip(c,t.viewEvent),c===a?(this.view.cursor="grabbing",this.emit("rotate-start",new N(this.graphics,c,e))):r.includes(c)?(this._activeHandleGraphic=c,this.emit("scale-start",new P(this.graphics,c,i,s))):this.emit("move-start",new z(this.graphics,c,t.dx,t.dy))}_onGraphicMoveCallback(t){const e=t.graphic;if(this._startInfo)if(this._vertexGraphics.includes(e))this._scaleGraphic(e),this._updateTooltip(e,t.viewEvent),this.emit("scale",new X(this.graphics,e,this._xScale,this._yScale));else if(e===this._rotateHandleGraphic)this._rotateGraphic(e),this._updateTooltip(e,t.viewEvent),this.emit("rotate",new U(this.graphics,e,this._angleOfRotation));else{const{dx:i,dy:s}=t;this._totalDx+=i,this._totalDy+=s,this._moveGraphic(e,i,s),this._updateTooltip(e,t.viewEvent),this.emit("move",new B(this.graphics,e,i,s))}}_onGraphicMoveStopCallback(t){const e=t.graphic;if(!this._startInfo)return void this.refresh();const{_angleOfRotation:i,_totalDx:s,_totalDy:o,_xScale:r,_yScale:a,_vertexGraphics:h,_rotateHandleGraphic:c}=this;this.refresh(),e===c?(this.view.cursor="pointer",this.emit("rotate-stop",new A(this.graphics,e,i))):h.includes(e)?this.emit("scale-stop",new F(this.graphics,e,r,a)):this.emit("move-stop",new Y(this.graphics,e,s,o))}_onGraphicPointerOverCallback(t){const{_backgroundGraphic:e,_vertexGraphics:i,graphics:s,_rotateHandleGraphic:o,symbols:r,view:a}=this,h=t.graphic;if(this._hoveredGraphic=h,h===o)return o.symbol=r.rotator.hover,a.cursor="pointer",void this._updateTooltip(h);if(s.includes(h)||h===e)return void(a.cursor="move");if(!i.includes(h))return void(a.cursor="pointer");this._updateTooltip(h),t.graphic.symbol=r.handles.hover;const c=a.rotation;let n,l=t.index;switch(l<8&&(c>=0&&c<45?l%=8:l=c>=45&&c<90?(l+1)%8:c>=90&&c<135?(l+2)%8:c>=135&&c<180?(l+3)%8:c>=180&&c<225?(l+4)%8:c>=225&&c<270?(l+5)%8:c>=270&&c<315?(l+6)%8:(l+7)%8),l){case 0:case 4:n="nwse-resize";break;case 1:case 5:n="ns-resize";break;case 2:case 6:n="nesw-resize";break;case 3:case 7:n="ew-resize";break;default:n="pointer"}a.cursor=n}_onGraphicPointerOutCallback(t){const{_vertexGraphics:e,_rotateHandleGraphic:i,symbols:s,view:o}=this;this._hoveredGraphic=null,t.graphic===i?i.symbol=s.rotator.default:e.includes(t.graphic)&&(t.graphic.symbol=s.handles.default),o.cursor="default",this._updateTooltip()}_scaleGraphic(t){const{_startInfo:e,_vertexGraphics:i,preserveAspectRatio:s,view:o}=this,{centerX:r,centerY:a,graphicInfos:h,height:c,startX:n,startY:l,width:_}=e,{resolution:d,transform:m}=o.state,u=i.indexOf(t);1!==u&&5!==u||this._updateX(t,r),3!==u&&7!==u||this._updateY(t,a);const{x:g,y}=t.geometry,v=m[0]*g+m[2]*y+m[4],f=m[1]*g+m[3]*y+m[5],G=h?.map((t=>t.geometry))??[],w=G.every((t=>"point"===t.type));if((0===_||0===c)&&w){const t=J((g-n)/d),i=J((l-y)/d);for(let e=0;e<G.length;e++)this.graphics[e].geometry=b(G[e],t,i,o,!0);return this._centerGraphic.geometry=new p(g,y,o.spatialReference),void(this._backgroundGraphic.geometry=b(e.box,t,i,o,!0))}if(s){const t=J(m[0]*r+m[2]*a+m[4],2),e=J(m[1]*r+m[3]*a+m[5],2),i=J(m[0]*n+m[2]*l+m[4],2),s=J(m[1]*n+m[3]*l+m[5],2);let o=S(t,e,i,s,v,f);0!==o&&Math.abs(o)!==1/0||(o=1),this._xScale=this._yScale=o;for(const h of G){const t=G.indexOf(h);this.graphics[t].geometry=x(h,this._xScale,this._yScale,[r,a])}this._updateBackgroundGraphic()}else{let t=g-n,i=l-y;if(1===u||5===u?t=0:3!==u&&7!==u||(i=0),0===t&&0===i)return;const s=r+t/2,h=a+i/2;let m=(_+(n>r?t:-1*t))/_,v=(c+(l<a?i:-1*i))/c;1!==u&&5!==u&&0!==m&&Math.abs(m)!==1/0||(m=1),3!==u&&7!==u&&0!==v&&Math.abs(v)!==1/0||(v=1),this._xScale=m,this._yScale=v;const f=(s-r)/d,w=(h-a)/d,S=x(e.box,this._xScale,this._yScale);this._backgroundGraphic.geometry=b(S,f,w,o,!0);const{centerX:k,centerY:R}=this._getGraphicInfo(this._backgroundGraphic),M=(k-r)/d,I=-1*(R-a)/d;for(const e of G){const t=G.indexOf(e),i=x(e,this._xScale,this._yScale,[r,a]);this.graphics[t].geometry=b(i,M,I,o,!0)}this._centerGraphic.geometry=new p(k,R,o.spatialReference)}}_rotateGraphic(t){const{centerX:e,centerY:i,startX:s,startY:o,box:r,rotate:a}=this._startInfo,h=this.view.spatialReference,c=new p(s,o,h),n=new p(e,i,h),l=t.geometry;this._angleOfRotation=w(c,l,n);const _=this._startInfo.graphicInfos?.map((t=>t.geometry))??[];for(const p of _){const t=_.indexOf(p),e=y(p,this._angleOfRotation,n);this.graphics[t].geometry=e}this._backgroundGraphic.geometry=y(r,this._angleOfRotation,n),this._rotateHandleGraphic.geometry=y(a,this._angleOfRotation,n)}_moveGraphic(t,e,i){if(this.graphics.includes(t)){const s=this._backgroundGraphic.geometry;this._backgroundGraphic.geometry=b(s,e,i,this.view);for(const o of this.graphics)o!==t&&(o.geometry=b(o.geometry,e,i,this.view))}else if(t===this._centerGraphic){const t=this._backgroundGraphic.geometry;this._backgroundGraphic.geometry=b(t,e,i,this.view)}if(t===this._backgroundGraphic||t===this._centerGraphic)for(const s of this.graphics)s.geometry=b(s.geometry,e,i,this.view)}_setUpHighlights(){this.highlightsEnabled&&this.graphics.length&&this._highlightHelper?.add(this.graphics)}_setupGraphics(){const{_graphicAttributes:t,symbols:i}=this;this._centerGraphic=new e({symbol:i.centerIndicator,attributes:t}),this.showCenterGraphic&&this.layer.add(this._centerGraphic),this._backgroundGraphic=new e({symbol:i.fill.default,attributes:t}),this.layer.add(this._backgroundGraphic),this._rotateLineGraphic=new e({symbol:i.rotatorLine,attributes:t}),this._rotateHandleGraphic=new e({symbol:i.rotator.default,attributes:t}),this.enableRotation&&!this._hasExtentGraphic()&&this.layer.addMany([this._rotateLineGraphic,this._rotateHandleGraphic]);for(let s=0;s<8;s++)this._vertexGraphics.push(new e({symbol:i.handles.default,attributes:t}));this.enableScaling&&this.layer.addMany(this._vertexGraphics)}_updateSymbolsForTheme(){const t=this.view.effectiveTheme.accentColor;this.symbols={...this.symbols,fill:{active:this.symbols.fill.active?.clone().set("outline.color",t),default:this.symbols.fill.default?.clone().set("outline.color",t)},handles:{...this.symbols.handles,default:this.symbols.handles.default.clone().set("outline.color",t)},rotator:{...this.symbols.rotator,default:this.symbols.rotator.default.clone().set("outline.color",t)},rotatorLine:this.symbols.rotatorLine.clone().set("color",t)};for(const e of this._vertexGraphics)e.symbol=e===this._hoveredGraphic?this.symbols.handles.hover:this.symbols.handles.default;this._backgroundGraphic.symbol=this.symbols.fill.default,this._rotateHandleGraphic.symbol=this._rotateHandleGraphic===this._hoveredGraphic?this.symbols.rotator.hover:this.symbols.rotator.default,this._rotateLineGraphic.symbol=this.symbols.rotatorLine}_updateGraphics(){this._updateBackgroundGraphic(),this._updateHandleGraphics(),this._updateCenterGraphic(),this._updateRotateGraphic(),this._updateRotateLineGraphic()}_hideGraphicsBeforeUpdate(){this._centerGraphic.visible=!1,this._rotateHandleGraphic.visible=!1,this._rotateLineGraphic.visible=!1,this._vertexGraphics.forEach((t=>t.visible=!1))}_updateHandleGraphics(){const t=this._getCoordinates(!0);this._vertexGraphics.forEach(((e,i)=>{const[s,o]=t[i];this._updateXY(e,s,o)}))}_updateBackgroundGraphic(){const t=this._getCoordinates().map((([t,e])=>[t,e]));this._backgroundGraphic.geometry=new _({rings:[t],spatialReference:this.view.spatialReference})}_updateCenterGraphic(){const[t,e,i,s]=this._getBoxBounds(m()),o=(i+t)/2,r=(s+e)/2;this._centerGraphic.geometry=new p(o,r,this.view.spatialReference)}_updateRotateGraphic(){if(!this._vertexGraphics.length)return;const{x:t,y:e}=this._vertexGraphics[1].geometry,i=e+this.view.state.resolution*this._rotateGraphicOffset;this._rotateHandleGraphic.geometry=new p(t,i,this.view.spatialReference)}_updateRotateLineGraphic(){if(!this._vertexGraphics.length||!this._rotateHandleGraphic?.geometry)return;const t=this._vertexGraphics[1].geometry,e=this._rotateHandleGraphic.geometry;this._rotateLineGraphic.geometry=new d({paths:[[[t.x,t.y],[e.x,e.y]]],spatialReference:this.view.spatialReference})}_updateXY(t,e,i){t.geometry=new p(e,i,this.view.spatialReference)}_updateX(t,e){const i=t.geometry.y;t.geometry=new p(e,i,this.view.spatialReference)}_updateY(t,e){const i=t.geometry.x;t.geometry=new p(i,e,this.view.spatialReference)}_hasExtentGraphic(){return this.graphics.some((t=>null!=t?.geometry&&"extent"===t.geometry.type))}_getBoxBounds(t){const e=this.graphics.map((t=>t.geometry));return this._getBounds(t,e)}_getCoordinates(t){const[e,i,s,o]=this._getBoxBounds(m());if(t){const t=(e+s)/2,r=(o+i)/2;return[[e,o],[t,o],[s,o],[s,r],[s,i],[t,i],[e,i],[e,r]]}return[[e,o],[s,o],[s,i],[e,i]]}_updateTooltip(t,e){if(null==this.tooltip)return;if(!t)return void this.tooltip.clear();const{_backgroundGraphic:i,graphics:s,_vertexGraphics:o,_rotateHandleGraphic:r}=this;t===r?this._updateRotateTooltip():o.includes(t)?this._updateScaleTooltip():(s.includes(t)||t===i)&&this._updateMoveTooltip(e)}_updateRotateTooltip(){null!=this.tooltip&&(this.tooltip.info=new O({sketchOptions:this.sketchOptions,angle:-this._angleOfRotation}))}_updateScaleTooltip(){const{tooltip:t,_xScale:e,_yScale:i,sketchOptions:s,view:o}=this;if(null==t)return;const r=this._getCoordinates(),a=L({topLeft:r[0],topRight:r[1],bottomRight:r[2],bottomLeft:r[3],spatialReference:o.spatialReference});if(null==a)return;const{xSize:h,ySize:c}=a,n=Math.abs(e),l=Math.abs(i);t.info=new j({sketchOptions:s,xScale:n,yScale:l,xSize:h,ySize:c})}_updateMoveTooltip(t){const{tooltip:e,sketchOptions:i,view:s}=this;if(null==e)return;const r=new T({sketchOptions:i});if(t){const{x:e,y:i}=t.origin,a=s.toMap(t),h=s.toMap({x:e,y:i}),c=E(h,a);r.distance=null!=c?c:o}e.info=r}};function J(t,e=2){return Number.parseFloat(t.toFixed(e))}t([n()],q.prototype,"tooltip",void 0),t([n({readOnly:!0})],q.prototype,"type",void 0),t([n()],q.prototype,"callbacks",void 0),t([n()],q.prototype,"enableMovement",void 0),t([n()],q.prototype,"enableRotation",void 0),t([n()],q.prototype,"enableScaling",void 0),t([n()],q.prototype,"graphics",void 0),t([n()],q.prototype,"highlightsEnabled",void 0),t([n()],q.prototype,"layer",void 0),t([n()],q.prototype,"preserveAspectRatio",void 0),t([n()],q.prototype,"showCenterGraphic",void 0),t([n({readOnly:!0})],q.prototype,"state",null),t([n()],q.prototype,"symbols",void 0),t([n({type:C})],q.prototype,"sketchOptions",void 0),t([n({constructOnly:!0})],q.prototype,"view",void 0),q=t([l("esri.views.draw.support.Box")],q);const K=q;export{K as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- function e(e,l){switch(e){case"point":case"multipoint":return n();case"polyline":return t(l);case"polygon":return o(l);default:return}}function n(e){return"point"}function t(e){return(null!=e&&"polyline"===e.type&&e.paths.length?e.paths[0].length:0)<2?"polylineZeroVertices":"polylineOneVertex"}function o(e){const n=null!=e&&"polygon"===e.type&&e.rings.length?e.rings[0].length:0;return n<3?"polylineZeroVertices":n<4?"polygonOneVertex":"polygonTwoVertices"}export{e as getDrawHelpMessage};
5
+ function e(e,i,a){if(null==e)return"noTool";switch(e){case"point":return n();case"multipoint":return"multipoint";case"polyline":return r(i,a);case"polygon":return t(i,a);case"rectangle":case"circle":return l(i,a);default:return}}function n(e){return"point"}function r(e,n){const r=null!=e&&"polyline"===e.type&&e.paths.length?e.paths[0].length:0;return"freehand"===n?r<2?"freehandStart":"freehandEnd":r<2?"polylineZeroVertices":"polylineOneVertex"}function t(e,n){const r=null!=e&&"polygon"===e.type&&e.rings.length?e.rings[0].length:0;if(r<3)switch(n){case"freehand":return"freehandStart";case"hybrid":return"polygonZeroVerticesHybrid";default:return"polygonZeroVertices"}else if(r<4)return"freehand"===n?"freehandEnd":"polygonOneVertex";return"polygonTwoVertices"}function l(e,n){if((null!=e&&"polygon"===e.type&&e.rings.length?e.rings[0].length:0)<3)switch(n){case"freehand":return"freehandStart";case"click":return"shapeStartClick";default:return"shapeStartHybrid"}switch(n){case"freehand":return"freehandEnd";case"click":return"shapeEndClick";default:return"shapeEndHybrid"}}export{e as getDrawHelpMessage};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{zeroMeters as e,zeroSquareMeters as t,zeroDegreesGeographic as o,valueInUnit as n,createLength as i}from"../../../core/quantityUtils.js";import{getMetersPerVerticalUnitForSR as r}from"../../../core/unitUtils.js";import{getConvertedElevationFromXYZ as c,absoluteHeightElevationInfo as l}from"../../../support/elevationInfoUtils.js";import{getDrawHelpMessage as s}from"./helpMessageUtils.js";import{getDrawMeshHelpMessage as a}from"./helpMessageUtils3d.js";import{getConstraintContext as p}from"../../interactive/sketch/constraintUtils.js";import{updateTooltipInfoFromMeshTransform as u}from"../../interactive/tooltip/tooltipCommonUtils.js";import{DrawCircleTooltipInfo as m}from"../../interactive/tooltip/infos/DrawCircleTooltipInfo.js";import{DrawMeshTooltipInfo as d}from"../../interactive/tooltip/infos/DrawMeshTooltipInfo.js";import{DrawPointTooltipInfo as f}from"../../interactive/tooltip/infos/DrawPointTooltipInfo.js";import{DrawPolygonTooltipInfo as y}from"../../interactive/tooltip/infos/DrawPolygonTooltipInfo.js";import{DrawPolylineTooltipInfo as g}from"../../interactive/tooltip/infos/DrawPolylineTooltipInfo.js";import{DrawRectangleTooltipInfo as h}from"../../interactive/tooltip/infos/DrawRectangleTooltipInfo.js";import{directionForVertices as v}from"../../support/angularMeasurementUtils.js";import{autoArea2D as w}from"../../support/automaticAreaMeasurementUtils.js";import{autoLength2D as O,autoDistanceBetweenPoints2D as k}from"../../support/automaticLengthMeasurementUtils.js";import{elevationFromPoint as x,elevationFromZ as j}from"../../support/euclideanLengthMeasurementUtils.js";function M(e,t){return{point:new f({sketchOptions:t,viewType:e}),polyline:new g({sketchOptions:t,viewType:e}),polygon:new y({sketchOptions:t,viewType:e}),mesh:new d({sketchOptions:t,viewType:e}),rectangle:new h({sketchOptions:t}),circle:new m({sketchOptions:t})}}function T(e){const{directionOptions:t,geometryType:o,sketchOptions:n,tooltipInfos:i}=e,r=t=>{const o=J(e).mode,n=i[t].elevation;"relative-to-ground"===o||"relative-to-scene"===o||"on-the-ground"===o?n.lock(N(e)):n.unlock()},c=e=>{if(t){const o=i[e].direction;o.committed=t.angle,o.unlockOnVertexPlacement=!1,n.values.directionMode=t.mode}};switch(o){case"polygon":case"polyline":r(o),c(o);break;case"point":case"mesh":r(o)}}function b(e,t){const{drawOperation:o,view:n}=t,i=I(t),r=J(t);if("2d"===n.type||!e||"absolute-height"!==r.mode||1!==o?.numCommittedVertices||!i||"draw-polyline"!==i.type&&"draw-polygon"!==i.type||i.elevation.locked)return;const[c,l,s]=e,a=B(c,l,s,r,t);null!=a&&i.elevation.lock(a)}function U(e){I(e)?.allFields.forEach((e=>{e.unlockOnVertexPlacement&&e.unlock()}))}function I({geometryType:e,graphic:t,tooltipInfos:o}){return"multipoint"===e||t?.geometry?.type!==V[e]?null:o[e]}const V={point:"point",mesh:"mesh",polyline:"polyline",polygon:"polygon",circle:"polygon",rectangle:"polygon"};function D(e,t){switch(e?.type){case"draw-point":P(e,t);break;case"draw-polyline":z(e,t);break;case"draw-polygon":S(e,t);break;case"draw-rectangle":F(e,t);break;case"draw-circle":A(e,t);break;case"draw-mesh":G(e,t)}}function P(e,t){const o=t.graphic?.geometry;"point"===o?.type&&(L(e,o,t),e.helpMessage=s("point",o))}function G(e,t){const{graphic:o,view:n}=t,i=o?.geometry;"3d"!==n.type||i&&"mesh"!==i.type||(L(e,i?.origin,t),i&&u(e,i),e.helpMessage=a(o,n))}function L(e,t,o){const{drawOperation:n,view:i,sketchOptions:r}=o,{cursorVertex:c}=n;if(e.sketchOptions=r,e.viewType=i.type,e.setLocationFromPoint(t,K(o)),H(e.elevation,o),!c)return void(n.constraints=void 0);const l=c;n.constraints={context:Q(l,o),x:e.x.committed,y:e.y.committed,longitude:e.longitude.committed,latitude:e.latitude.committed,elevation:e.elevation.committed,distance:null,direction:null}}function z(t,o){const{createOperationGeometry:n,drawOperation:i}=o,r=null!=n?n.full:null;r&&"polyline"!==r.type||(Z(t,o),t.totalLength.actual=i.lastVertex?(r?O(r):null)??e:null,t.helpMessage=s("polyline",r))}function S(e,o){const{createOperationGeometry:n,drawOperation:i}=o,r=null!=n?n.full:null;r&&"polygon"!==r.type||(Z(e,o),e.area.actual=i.lastVertex?(r?w(r):null)??t:null,e.helpMessage=s("polygon",r))}function Z(t,n){const{drawOperation:i,sketchOptions:r,view:c}=n,{cursorVertex:l,lastVertex:s,secondToLastVertex:a}=i,p=r.values.effectiveDirectionMode;t.sketchOptions=r,t.viewType=c.type;const u=s&&l?k(s,l)??e:null;if(t.distance.actual=u,t.distance.readOnly=null==s,t.direction.actual=null,t.direction.readOnly=!0,s&&l&&("absolute"===p||a)){const e=v(a,s,l,p);t.direction.actual=e??o,t.direction.readOnly=!1}t.setLocationFromPoint(l,K(n)),H(t.elevation,n);const m=C(s,n);t.xyMode=m,t.direction.visible="direction-distance"===m,t.distance.visible="direction-distance"===m,t.effectiveX.visible="coordinates"===m,t.effectiveY.visible="coordinates"===m;const d=l??s;i.constraints=d?{context:Q(d,n),x:t.x.committed,y:t.y.committed,longitude:t.longitude.committed,latitude:t.latitude.committed,elevation:t.elevation.committed,distance:t.distance.committed,direction:t.direction.committed}:void 0}function C(e,{sketchOptions:t}){const o=t.tooltips.xyMode;return"auto"===o?e?"direction-distance":"coordinates":o}function F(e,t){e.sketchOptions=t.sketchOptions,e.xSize=q(t),e.ySize=E(t),e.area=R(t)}function A(e,t){const{forceUniformSize:o,sketchOptions:n}=t;e.sketchOptions=n,e.radius=o?X(t):null,e.xSize=o?null:q(t),e.ySize=o?null:E(t),e.area=R(t)}function H(e,t){const{drawOperation:o}=t,n=o?.cursorVertex??o?.lastVertex;e.actual=x(n)??N(t),e.visible=o.hasZ,e.readOnly=!1,e.showAsZ=!0}function R(e){const o=e.createOperationGeometry?.full;return"polygon"!==o?.type?t:w(o)??t}function q(t){const o=t.createOperationGeometry?.rectangle?.midpoints;return(null!=o?k(o.left,o.right):null)??e}function E(t){const o=t.createOperationGeometry?.rectangle?.midpoints;return(null!=o?k(o.top,o.bottom):null)??e}function X({createOperationGeometry:t}){return(null!=t?.circle?.center&&null!=t.circle.edge?k(t.circle.center,t.circle.edge):null)??e}function Y(e){const{geometryType:t,tooltipInfos:o}=e;switch(t){case"point":case"mesh":case"polyline":case"polygon":{const i=o[t].elevation.committed;if(!i)return;return n(i,"meters")/r(K(e))}default:return}}function B(e,t,o,n,i){const{view:r,drawOperation:l}=i;if("3d"!==r.type||!l)return;o??=0;const s=K(i),a=J(i),p=c(r,e,t,o,s,a,n);return j(p,s)??N(i)}function J(e){return e.drawOperation.elevationInfo??l}function K(e){return e.drawOperation.coordinateHelper.spatialReference}function N(e){const t=r(K(e));return i(e.defaultZ*t,"meters")}function Q(e,t){return p(e,t.view,K(t),J(t),t.drawOperation.coordinateHelper.hasZ(),t.sketchOptions.values.effectiveDirectionMode)}export{M as createTooltipInfos,I as getActiveTooltipInfo,Y as getConstraintZ,T as initializeConstraints,b as lockElevationOnVertexAdd,U as unlockConstraintsOnVertexAddOrRemove,D as updateTooltipInfo};
5
+ import{zeroMeters as e,zeroSquareMeters as t,zeroDegreesGeographic as o,valueInUnit as n,createLength as i}from"../../../core/quantityUtils.js";import{getMetersPerVerticalUnitForSR as r}from"../../../core/unitUtils.js";import{getConvertedElevationFromXYZ as l,absoluteHeightElevationInfo as c}from"../../../support/elevationInfoUtils.js";import{getDrawHelpMessage as a}from"./helpMessageUtils.js";import{getDrawMeshHelpMessage as s}from"./helpMessageUtils3d.js";import{getConstraintContext as p}from"../../interactive/sketch/constraintUtils.js";import{updateTooltipInfoFromMeshTransform as u}from"../../interactive/tooltip/tooltipCommonUtils.js";import{DrawCircleTooltipInfo as d}from"../../interactive/tooltip/infos/DrawCircleTooltipInfo.js";import{DrawMeshTooltipInfo as m}from"../../interactive/tooltip/infos/DrawMeshTooltipInfo.js";import{DrawMultipointTooltipInfo as f}from"../../interactive/tooltip/infos/DrawMultipointTooltipInfo.js";import{DrawPointTooltipInfo as y}from"../../interactive/tooltip/infos/DrawPointTooltipInfo.js";import{DrawPolygonTooltipInfo as g}from"../../interactive/tooltip/infos/DrawPolygonTooltipInfo.js";import{DrawPolylineTooltipInfo as w}from"../../interactive/tooltip/infos/DrawPolylineTooltipInfo.js";import{DrawRectangleTooltipInfo as h}from"../../interactive/tooltip/infos/DrawRectangleTooltipInfo.js";import{directionForVertices as v}from"../../support/angularMeasurementUtils.js";import{autoArea2D as O}from"../../support/automaticAreaMeasurementUtils.js";import{autoLength2D as k,autoDistanceBetweenPoints2D as M}from"../../support/automaticLengthMeasurementUtils.js";import{elevationFromPoint as x,elevationFromZ as j}from"../../support/euclideanLengthMeasurementUtils.js";function T(e,t){return{point:new y({sketchOptions:t,viewType:e}),multipoint:new f({sketchOptions:t,viewType:e}),polyline:new w({sketchOptions:t,viewType:e}),polygon:new g({sketchOptions:t,viewType:e}),mesh:new m({sketchOptions:t,viewType:e}),rectangle:new h({sketchOptions:t}),circle:new d({sketchOptions:t})}}function b(e){const{directionOptions:t,geometryType:o,sketchOptions:n,tooltipInfos:i}=e,r=t=>{const o=N(e).mode,n=i[t].elevation;"relative-to-ground"===o||"relative-to-scene"===o||"on-the-ground"===o?n.lock(W(e)):n.unlock()},l=e=>{if(t){const o=i[e].direction;o.committed=t.angle,o.unlockOnVertexPlacement=!1,n.values.directionMode=t.mode}};switch(o){case"polygon":case"polyline":r(o),l(o);break;case"point":case"mesh":r(o)}}function I(e,t){const{drawOperation:o,view:n}=t,i=V(t),r=N(t);if("2d"===n.type||!e||"absolute-height"!==r.mode||1!==o?.numCommittedVertices||!i||"draw-polyline"!==i.type&&"draw-polygon"!==i.type||i.elevation.locked)return;const[l,c,a]=e,s=K(l,c,a,r,t);null!=s&&i.elevation.lock(s)}function U(e){V(e)?.allFields.forEach((e=>{e.unlockOnVertexPlacement&&e.unlock()}))}function V({geometryType:e,graphic:t,tooltipInfos:o}){return t?.geometry?.type!==P[e]?"circle"===e||"rectangle"===e?o[e]:null:o[e]}const P={point:"point",multipoint:"multipoint",mesh:"mesh",polyline:"polyline",polygon:"polygon",circle:"polygon",rectangle:"polygon",freehandPolygon:"polygon",freehandPolyline:"polyline"};function D(e,t){switch(e?.type){case"draw-point":G(e,t);break;case"draw-multipoint":L(e,t);break;case"draw-polyline":Z(e,t);break;case"draw-polygon":C(e,t);break;case"draw-rectangle":H(e,t);break;case"draw-circle":R(e,t);break;case"draw-mesh":z(e,t)}}function G(e,t){const o=t.graphic?.geometry;"point"===o?.type&&(S(e,o,t),e.helpMessage=a("point",o,t.drawOperation.drawingMode))}function L(e,t){const o=t.graphic?.geometry;"multipoint"===o?.type&&(S(e,o,t),e.helpMessage=a("multipoint",o,t.drawOperation.drawingMode))}function z(e,t){const{graphic:o,view:n}=t,i=o?.geometry;"3d"!==n.type||i&&"mesh"!==i.type||(S(e,i?.origin,t),i&&u(e,i),e.helpMessage=s(o,n))}function S(e,t,o){const{drawOperation:n,view:i,sketchOptions:r}=o,{cursorVertex:l}=n;e.sketchOptions=r,e.viewType=i.type;const c="multipoint"===t?.type?t.getPoint(t.points.length-1):t;if(e.setLocationFromPoint(c,Q(o)),q(e.elevation,o),!l)return void(n.constraints=void 0);const a=l;n.constraints={context:$(a,o),x:e.x.committed,y:e.y.committed,longitude:e.longitude.committed,latitude:e.latitude.committed,elevation:e.elevation.committed,distance:null,direction:null}}function Z(t,o){const{createOperationGeometry:n,drawOperation:i}=o,r=null!=n?n.full:null;r&&"polyline"!==r.type||(F(t,o),t.totalLength.actual=i.lastVertex?(r?k(r):null)??e:null,t.helpMessage=a("polyline",r,o.drawOperation.drawingMode))}function C(e,o){const{createOperationGeometry:n,drawOperation:i}=o,r=null!=n?n.full:null;r&&"polygon"!==r.type||(F(e,o),e.area.actual=i.lastVertex?(r?O(r):null)??t:null,e.helpMessage=a("polygon",r,o.drawOperation.drawingMode))}function F(t,n){const{drawOperation:i,sketchOptions:r,view:l}=n,{cursorVertex:c,lastVertex:a,secondToLastVertex:s}=i,p=r.values.effectiveDirectionMode;t.sketchOptions=r,t.viewType=l.type;const u=a&&c?M(a,c)??e:null;if(t.distance.actual=u,t.distance.readOnly=null==a,t.direction.actual=null,t.direction.readOnly=!0,a&&c&&("absolute"===p||s)){const e=v(s,a,c,p);t.direction.actual=e??o,t.direction.readOnly=!1}t.setLocationFromPoint(c,Q(n)),q(t.elevation,n);const d=A(a,n);t.xyMode=d,t.direction.visible="direction-distance"===d,t.distance.visible="direction-distance"===d,t.effectiveX.visible="coordinates"===d,t.effectiveY.visible="coordinates"===d;const m=c??a;i.constraints=m?{context:$(m,n),x:t.x.committed,y:t.y.committed,longitude:t.longitude.committed,latitude:t.latitude.committed,elevation:t.elevation.committed,distance:t.distance.committed,direction:t.direction.committed}:void 0}function A(e,{sketchOptions:t}){const o=t.tooltips.xyMode;return"auto"===o?e?"direction-distance":"coordinates":o}function H(e,t){e.sketchOptions=t.sketchOptions,e.xSize=X(t),e.ySize=Y(t),e.area=E(t),e.helpMessage=a("rectangle",t.graphic?.geometry,t.drawOperation.drawingMode)}function R(e,t){const{forceUniformSize:o,sketchOptions:n}=t;e.sketchOptions=n,e.radius=o?B(t):null,e.xSize=o?null:X(t),e.ySize=o?null:Y(t),e.area=E(t),e.helpMessage=a("circle",t.graphic?.geometry,t.drawOperation.drawingMode)}function q(e,t){const{drawOperation:o}=t,n=o?.cursorVertex??o?.lastVertex;e.actual=x(n)??W(t),e.visible=o.hasZ,e.readOnly=!1,e.showAsZ=!0}function E(e){const o=e.createOperationGeometry?.full;return"polygon"!==o?.type?t:O(o)??t}function X(t){const o=t.createOperationGeometry?.rectangle?.midpoints;return(null!=o?M(o.left,o.right):null)??e}function Y(t){const o=t.createOperationGeometry?.rectangle?.midpoints;return(null!=o?M(o.top,o.bottom):null)??e}function B({createOperationGeometry:t}){return(null!=t?.circle?.center&&null!=t.circle.edge?M(t.circle.center,t.circle.edge):null)??e}function J(e){const{geometryType:t,tooltipInfos:o}=e;switch(t){case"point":case"multipoint":case"mesh":case"polyline":case"polygon":{const i=o[t].elevation.committed;if(!i)return;return n(i,"meters")/r(Q(e))}default:return}}function K(e,t,o,n,i){const{view:r,drawOperation:c}=i;if("3d"!==r.type||!c)return;o??=0;const a=Q(i),s=N(i),p=l(r,e,t,o,a,s,n);return j(p,a)??W(i)}function N(e){return e.drawOperation.elevationInfo??c}function Q(e){return e.drawOperation.coordinateHelper.spatialReference}function W(e){const t=r(Q(e));return i(e.defaultZ*t,"meters")}function $(e,t){return p(e,t.view,Q(t),N(t),t.drawOperation.coordinateHelper.hasZ(),t.sketchOptions.values.effectiveDirectionMode)}export{T as createTooltipInfos,V as getActiveTooltipInfo,J as getConstraintZ,b as initializeConstraints,I as lockElevationOnVertexAdd,U as unlockConstraintsOnVertexAddOrRemove,D as updateTooltipInfo};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{remove as e}from"../../core/arrayUtils.js";import{makeHandle as t,handlesGroup as i}from"../../core/handleUtils.js";import{getOrCreateMapValue as o}from"../../core/MapUtils.js";import{ViewEventPriorities as r}from"../input/InputManager.js";import{primaryKey as n}from"../input/keys.js";const s="z",a="r",p={redo:a,undo:s,center:"Alt",constraint:"Shift",cancel:"Escape",delete:["Backspace","Delete"],complete:"Enter",vertexAdd:"f",pan:" "},c={toggle:"Control"},f={enterInputMode:"Tab",commit:"Enter",discard:"Escape",next:"Tab"},d={moveUp:{key:"ArrowUp",modifier:"Shift",repeats:!0},moveDown:{key:"ArrowDown",modifier:"Shift",repeats:!0},moveLeft:{key:"ArrowLeft",modifier:"Shift",repeats:!0},moveRight:{key:"ArrowRight",modifier:"Shift",repeats:!0},scaleUp:{key:"+",modifier:"Shift"},scaleDown:{key:"-",modifier:"Shift"},factorModifier:{key:n,continuePropagation:!0},toggleOpacity:"t",preserveAspectRatio:{key:"Shift",continuePropagation:!0},rotateIncrements:{key:"Shift",continuePropagation:!0},modifySourcePoints:{key:"Alt",continuePropagation:!0},undo:s,redo:a};class h{constructor(){this._bindings=new Map}add(e,t){return this.addToggle(e,(e=>{"key-down"===e.type&&t(e)}))}addToggle(i,r){const n=m.fromDefinition(i,r),s=o(this._bindings,n.key,(()=>[]));return s.push(n),t((()=>e(s,n)))}register(e,t=r.WIDGET){return i([e.on("key-down",(t=>this.dispatch(e.inputManager,t)),t),e.on("key-up",(t=>this.dispatch(e.inputManager,t)),t)])}dispatch(e,t){const i=t.key,o=this._bindings.get(i);if(o)for(const r of o)r.process(e,t)}}class m{constructor(e,t,i,o,r){this.key=e,this.modifiers=t,this.repeats=i,this.continuePropagation=o,this.callback=r}process(e,t){if(!(t.key!==this.key||"repeat"in t&&t.repeat&&!this.repeats)){for(const t of this.modifiers)if(!e.isModifierKeyDown(t))return;this.continuePropagation||t.stopPropagation(),this.callback(t)}}static fromDefinition(e,t){if("string"==typeof e)return new m(e,[],!1,!1,t);const{key:i,modifier:o,repeats:r,continuePropagation:n}=e;return new m(i,o?Array.isArray(o)?o:[o]:[],!!r,!!n,t)}}export{h as KeyBindings,d as mediaKeys,p as sketchKeys,c as snappingKeys,f as tooltipKeys};
5
+ import{remove as e}from"../../core/arrayUtils.js";import{makeHandle as t,handlesGroup as i}from"../../core/handleUtils.js";import{getOrCreateMapValue as o}from"../../core/MapUtils.js";import{ViewEventPriorities as r}from"../input/InputManager.js";import{primaryKey as n}from"../input/keys.js";const s="z",a="r",p={redo:a,undo:s,center:"Alt",constraint:"Shift",cancel:"Escape",delete:["Backspace","Delete"],complete:"Enter",vertexAdd:"f",pan:" "},c={toggle:"Control"},f={enterInputMode:"Tab",commit:"Enter",discard:"Escape",next:"Tab"},d={moveUp:{key:"ArrowUp",modifier:"Shift",repeats:!0},moveDown:{key:"ArrowDown",modifier:"Shift",repeats:!0},moveLeft:{key:"ArrowLeft",modifier:"Shift",repeats:!0},moveRight:{key:"ArrowRight",modifier:"Shift",repeats:!0},scaleUp:{key:"+",modifier:"Shift"},scaleDown:{key:"-",modifier:"Shift"},factorModifier:{key:n,continuePropagation:!0},toggleOpacity:"t",preserveAspectRatio:{key:"Shift",continuePropagation:!0},rotateIncrements:{key:"Shift",continuePropagation:!0},editSourcePoints:{key:"Alt",continuePropagation:!0},undo:s,redo:a};class h{constructor(){this._bindings=new Map}add(e,t){return this.addToggle(e,(e=>{"key-down"===e.type&&t(e)}))}addToggle(i,r){const n=m.fromDefinition(i,r),s=o(this._bindings,n.key,(()=>[]));return s.push(n),t((()=>e(s,n)))}register(e,t=r.WIDGET){return i([e.on("key-down",(t=>this.dispatch(e.inputManager,t)),t),e.on("key-up",(t=>this.dispatch(e.inputManager,t)),t)])}dispatch(e,t){const i=t.key,o=this._bindings.get(i);if(o)for(const r of o)r.process(e,t)}}class m{constructor(e,t,i,o,r){this.key=e,this.modifiers=t,this.repeats=i,this.continuePropagation=o,this.callback=r}process(e,t){if(!(t.key!==this.key||"repeat"in t&&t.repeat&&!this.repeats)){for(const t of this.modifiers)if(!e.isModifierKeyDown(t))return;this.continuePropagation||t.stopPropagation(),this.callback(t)}}static fromDefinition(e,t){if("string"==typeof e)return new m(e,[],!1,!1,t);const{key:i,modifier:o,repeats:r,continuePropagation:n}=e;return new m(i,o?Array.isArray(o)?o:[o]:[],!!r,!!n,t)}}export{h as KeyBindings,d as mediaKeys,p as sketchKeys,c as snappingKeys,f as tooltipKeys};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{TooltipContentDrawCircle as t}from"./TooltipContentDrawCircle.js";import{TooltipContentDrawMesh as o}from"./TooltipContentDrawMesh.js";import{TooltipContentDrawPoint as n}from"./TooltipContentDrawPoint.js";import{TooltipContentDrawPolygon as e}from"./TooltipContentDrawPolygon.js";import{TooltipContentDrawPolyline as r}from"./TooltipContentDrawPolyline.js";import{TooltipContentDrawRectangle as i}from"./TooltipContentDrawRectangle.js";import{TooltipContentExtentRotate as a}from"./TooltipContentExtentRotate.js";import{TooltipContentExtentScale as l}from"./TooltipContentExtentScale.js";import{TooltipContentMovePoint as p}from"./TooltipContentMovePoint.js";import{TooltipContentReshapeEdgeOffset as s}from"./TooltipContentReshapeEdgeOffset.js";import{TooltipContentSelectedVertex as c}from"./TooltipContentSelectedVertex.js";import{TooltipContentTransformMesh as f}from"./TooltipContentTransformMesh.js";import{TooltipContentTransformPoint as m}from"./TooltipContentTransformPoint.js";import{TooltipContentTranslate as w}from"./TooltipContentTranslate.js";import{TooltipContentTranslateVertex as T}from"./TooltipContentTranslateVertex.js";import{TooltipContentTranslateXY as u}from"./TooltipContentTranslateXY.js";import{TooltipContentTranslateZ as C}from"./TooltipContentTranslateZ.js";function j(j,d){if(null==d)return null;const x=document.createElement("div");switch(d.type){case"draw-point":return new n({tooltip:j,info:d,container:x});case"draw-polygon":return new e({tooltip:j,info:d,container:x});case"draw-polyline":return new r({tooltip:j,info:d,container:x});case"draw-mesh":return new o({tooltip:j,info:d,container:x});case"draw-rectangle":return new i({tooltip:j,info:d,container:x});case"draw-circle":return new t({tooltip:j,info:d,container:x});case"extent-rotate":return new a({tooltip:j,info:d,container:x});case"extent-scale":return new l({tooltip:j,info:d,container:x});case"move-point":return new p({tooltip:j,info:d,container:x});case"selected-vertex":return new c({tooltip:j,info:d,container:x});case"transform-point":return new m({tooltip:j,info:d,container:x});case"transform-mesh":return new f({tooltip:j,info:d,container:x});case"translate":return new w({tooltip:j,info:d,container:x});case"translate-vertex":return new T({tooltip:j,info:d,container:x});case"translate-z":return new C({tooltip:j,info:d,container:x});case"translate-xy":return new u({tooltip:j,info:d,container:x});case"reshape-edge-offset":return new s({tooltip:j,info:d,container:x})}}export{j as tooltipContentFactory};
5
+ import{TooltipContentDrawCircle as t}from"./TooltipContentDrawCircle.js";import{TooltipContentDrawMesh as o}from"./TooltipContentDrawMesh.js";import{TooltipContentDrawPoint as n}from"./TooltipContentDrawPoint.js";import{TooltipContentDrawPolygon as e}from"./TooltipContentDrawPolygon.js";import{TooltipContentDrawPolyline as r}from"./TooltipContentDrawPolyline.js";import{TooltipContentDrawRectangle as i}from"./TooltipContentDrawRectangle.js";import{TooltipContentExtentRotate as a}from"./TooltipContentExtentRotate.js";import{TooltipContentExtentScale as l}from"./TooltipContentExtentScale.js";import{TooltipContentMovePoint as p}from"./TooltipContentMovePoint.js";import{TooltipContentReshapeEdgeOffset as s}from"./TooltipContentReshapeEdgeOffset.js";import{TooltipContentSelectedVertex as c}from"./TooltipContentSelectedVertex.js";import{TooltipContentTransformMesh as f}from"./TooltipContentTransformMesh.js";import{TooltipContentTransformPoint as m}from"./TooltipContentTransformPoint.js";import{TooltipContentTranslate as w}from"./TooltipContentTranslate.js";import{TooltipContentTranslateVertex as u}from"./TooltipContentTranslateVertex.js";import{TooltipContentTranslateXY as T}from"./TooltipContentTranslateXY.js";import{TooltipContentTranslateZ as C}from"./TooltipContentTranslateZ.js";function j(j,d){if(null==d)return null;const x=document.createElement("div");switch(d.type){case"draw-point":case"draw-multipoint":return new n({tooltip:j,info:d,container:x});case"draw-polygon":return new e({tooltip:j,info:d,container:x});case"draw-polyline":return new r({tooltip:j,info:d,container:x});case"draw-mesh":return new o({tooltip:j,info:d,container:x});case"draw-rectangle":return new i({tooltip:j,info:d,container:x});case"draw-circle":return new t({tooltip:j,info:d,container:x});case"extent-rotate":return new a({tooltip:j,info:d,container:x});case"extent-scale":return new l({tooltip:j,info:d,container:x});case"move-point":return new p({tooltip:j,info:d,container:x});case"selected-vertex":return new c({tooltip:j,info:d,container:x});case"transform-point":return new m({tooltip:j,info:d,container:x});case"transform-mesh":return new f({tooltip:j,info:d,container:x});case"translate":return new w({tooltip:j,info:d,container:x});case"translate-vertex":return new u({tooltip:j,info:d,container:x});case"translate-z":return new C({tooltip:j,info:d,container:x});case"translate-xy":return new T({tooltip:j,info:d,container:x});case"reshape-edge-offset":return new s({tooltip:j,info:d,container:x})}}export{j as tooltipContentFactory};