@arcgis/core 5.2.0-next.137 → 5.2.0-next.138

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 (466) hide show
  1. package/analysis/LineOfSightAnalysisObserver.d.ts +12 -0
  2. package/analysis/LineOfSightAnalysisObserver.js +1 -1
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +12 -0
  4. package/analysis/LineOfSightAnalysisTarget.js +1 -1
  5. package/arcade/featureset/sources/FeatureLayerParquet.js +1 -1
  6. package/arcgisGlobal.d.ts +4 -0
  7. package/assets/components/assets/icon/blockHeightMedium16.json +1 -0
  8. package/assets/components/assets/icon/blockHeightMedium24.json +1 -0
  9. package/assets/components/assets/icon/blockHeightMedium32.json +1 -0
  10. package/assets/components/assets/icon/blockHeightShort16.json +1 -0
  11. package/assets/components/assets/icon/blockHeightShort24.json +1 -0
  12. package/assets/components/assets/icon/blockHeightShort32.json +1 -0
  13. package/assets/components/assets/icon/blockHeightTall16.json +1 -0
  14. package/assets/components/assets/icon/blockHeightTall24.json +1 -0
  15. package/assets/components/assets/icon/blockHeightTall32.json +1 -0
  16. package/assets/components/assets/icon/cursorCircle16.json +1 -0
  17. package/assets/components/assets/icon/cursorCircle24.json +1 -0
  18. package/assets/components/assets/icon/cursorCircle32.json +1 -0
  19. package/assets/components/assets/icon/dictionary16.json +1 -0
  20. package/assets/components/assets/icon/dictionary24.json +1 -0
  21. package/assets/components/assets/icon/dictionary32.json +1 -0
  22. package/assets/components/assets/icon/jobDependency16.json +1 -0
  23. package/assets/components/assets/icon/jobDependency24.json +1 -0
  24. package/assets/components/assets/icon/jobDependency32.json +1 -0
  25. package/assets/components/assets/icon/referenceChip16.json +1 -0
  26. package/assets/components/assets/icon/referenceChip24.json +1 -0
  27. package/assets/components/assets/icon/referenceChip32.json +1 -0
  28. package/assets/esri/core/workers/RemoteClient.js +1 -1
  29. package/assets/esri/core/workers/chunks/{4e6f95d8c624d513849a.js → 05963f57cbe5a5249496.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{0b8681ca4a83e97f1f71.js → 067de1910190da228291.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{3c0fd1c6cda44e9f40ab.js → 070684943698fa43c2b4.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{bc1cb4b9a02e6c78deb7.js → 076e8d2e08ff2a013736.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{c10e040368065411506a.js → 10445313d0d57b34511b.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{d537c59b46cdaaf66034.js → 1188d0a136fffc009643.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{20af3f085f60c32c6c53.js → 178083d8ed7707b45ca2.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{f5efe3e800c6e23efcf3.js → 1819c45655c836b9a8d7.js} +1 -1
  37. package/assets/esri/core/workers/chunks/1b946714ca4a1a7359d4.js +2 -0
  38. package/assets/esri/core/workers/chunks/{d8d8b38ac8a91d9e45fc.js → 1cc744ab5eee5ee3bed8.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{05e39b4de7f62c5b22cc.js → 20f75cc777af13fa249b.js} +1 -1
  40. package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +2 -0
  41. package/assets/esri/core/workers/chunks/34570e6bbf559f18c1a5.js +1 -0
  42. package/assets/esri/core/workers/chunks/{60f6d5da9480dd36e877.js → 3dddae78286d05eb10fc.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{9efd30bbd02ec0d1031b.js → 3ec3589f6e74d7cb87cf.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{0bec054fca104f3bf141.js → 3f776d9fd2ab68b21fca.js} +1 -1
  45. package/assets/esri/core/workers/chunks/402a82c77420254831bc.js +1 -0
  46. package/assets/esri/core/workers/chunks/{e2ebf0ea3af2e6907987.js → 406f24ec13eb30d43405.js} +1 -1
  47. package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +1 -0
  48. package/assets/esri/core/workers/chunks/{ddedc414bb478b376221.js → 46b2d4addfc73f9183a4.js} +1 -1
  49. package/assets/esri/core/workers/chunks/498d6dfd3bb0d3490548.js +1 -0
  50. package/assets/esri/core/workers/chunks/{36ef86701883a20dd6f6.js → 4a640548032355e57acd.js} +1 -1
  51. package/assets/esri/core/workers/chunks/5566f14afb63065e438f.js +1 -0
  52. package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js → 590e6c70206122e4cc3c.js} +2 -2
  53. package/assets/esri/core/workers/chunks/{54860dd53a46cf4c47f3.js → 59295b99bdff4045a0e7.js} +1 -1
  54. package/assets/esri/core/workers/chunks/5aeb5e18514644fe2cf9.js +1 -0
  55. package/assets/esri/core/workers/chunks/{5da86409d70098fc6a10.js → 5b3cfe95314a75a735c1.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a54678bfa0f1807b61cd.js → 5c855af73ee3c3e764fb.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{a8b7e6198c2d0c37c9a0.js → 5e90c1b49f2b7e21d05a.js} +4 -4
  58. package/assets/esri/core/workers/chunks/{30f808cac8a34f95ea6e.js → 6079d27f4ab319fb8f0c.js} +1 -1
  59. package/assets/esri/core/workers/chunks/66c2a28a851130b87c04.js +1 -0
  60. package/assets/esri/core/workers/chunks/{dac90b3631f7f7158f68.js → 67f15538c51838201fc7.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js → 68d8ae42ab71d01a70a5.js} +2 -2
  62. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +1 -0
  63. package/assets/esri/core/workers/chunks/{864e7030c4ddbfcf0114.js → 6ccf9535013fe672c93b.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{ba7f0cf7e495d3ec2d55.js → 6e62581d933e7298d1f6.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{83b5dd4029e00abd80bf.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{f9fea72cc222a30ef2f9.js → 72399062767abdfb0bee.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{2a7fbfd77002a24bf737.js → 747461bb6a1bc2f0a64d.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{c333f6ed42985bb2b11f.js → 7851aef196eea5d6c94e.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{f0b6bd6fab5320c3082f.js → 7a05b18f655c1167ce0a.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{04296b75d0f81fbd1bb5.js → 864194927d05ebc4cc31.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{3c4a13a9f0b305394a26.js → 876f7633c15f1e31078d.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{62298dba3f6cbdc3f4ae.js → 879b2f0ff1977bca9376.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{b547b3bce729c9dac90d.js → 898359be6996fd9763b8.js} +1 -1
  74. package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +1 -0
  75. package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +2 -0
  76. package/assets/esri/core/workers/chunks/{625f02db93d7fbf175ca.js → 9001e9a1e81bce175ddd.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{9ffa6c8d93d3443834c6.js → 912080c90b5cc2e817cf.js} +1 -1
  78. package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +2 -0
  79. package/assets/esri/core/workers/chunks/{13e4379441499599c3b5.js → 9cbde13e536676767900.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{408db4f32850b77264ae.js → 9cd3fcb5fca6f9dbbcd8.js} +1 -1
  81. package/assets/esri/core/workers/chunks/a054da6cbd8ee4774a57.js +1 -0
  82. package/assets/esri/core/workers/chunks/{468fa166608ffc9108d9.js → a05790444115e4cf1bcc.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{d1f2685782b423ef87a6.js → a556dd4e9e6d35e33a2c.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{00d576d355599c88931e.js → bc38def1983089514e4b.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{0725e515f3004bdd5c56.js → ca2adcbcf44454484fd5.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{f3507b9e831ffd7a6bf8.js → cca8bd07bcd1d267a2e8.js} +1 -1
  87. package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +1 -0
  88. package/assets/esri/core/workers/chunks/{1d6b2a64f4e40e5cc13d.js → d201fbf3ceff946d2bd6.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{4439078780d9ba49fd26.js → d51bb11baadc741c46bc.js} +1 -1
  90. package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +1 -0
  91. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +1 -0
  92. package/assets/esri/core/workers/chunks/e630f3c56c077cb2bd8e.js +1 -0
  93. package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +1 -0
  94. package/assets/esri/core/workers/chunks/{2025288bed125594ceda.js → f6e62d2d279a328cbed7.js} +1 -1
  95. package/assets/esri/core/workers/chunks/{47c19778fcee7154ca38.js → f8bc474434fd365ab174.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{9a20dc26cb9c7b2087cf.js → f95a1f878c9c1146180e.js} +1 -1
  97. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  112. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  113. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  114. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  115. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  116. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  117. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  118. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  119. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  120. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  121. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  122. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  123. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  124. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  125. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  126. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  127. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  128. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  129. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  130. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  131. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  132. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  133. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  134. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  135. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  136. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  137. package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
  138. package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
  139. package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
  140. package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
  141. package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
  142. package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
  143. package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
  144. package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
  145. package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
  146. package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
  147. package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
  148. package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
  149. package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
  150. package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
  151. package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
  152. package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
  153. package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
  154. package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
  155. package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
  156. package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
  157. package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
  158. package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
  159. package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
  160. package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
  161. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
  162. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
  163. package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
  164. package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
  165. package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
  166. package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
  167. package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
  168. package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
  169. package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
  170. package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
  171. package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
  172. package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
  173. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
  174. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
  175. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
  176. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
  177. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
  178. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
  179. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
  180. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
  181. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
  182. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
  183. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
  184. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
  185. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
  186. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
  187. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
  188. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
  189. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
  190. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
  191. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
  192. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
  193. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
  194. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
  195. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
  196. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
  197. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
  198. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
  199. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
  200. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
  201. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
  202. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
  203. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
  204. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
  205. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
  206. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
  207. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
  208. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
  209. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
  210. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
  211. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
  212. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
  213. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
  214. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
  215. package/chunks/Bufferer-CclWhXVb.js +1 -1
  216. package/chunks/Component.glsl.js +3 -3
  217. package/chunks/DefaultMaterial.glsl.js +2 -2
  218. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  219. package/chunks/Envelope.js +1 -1
  220. package/chunks/Envelope2D.js +1 -1
  221. package/chunks/FocusArea.glsl.js +8 -10
  222. package/chunks/GaussianSplat.glsl.js +2 -2
  223. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  224. package/chunks/GeodeticUtils.js +1 -1
  225. package/chunks/Geometry.js +1 -1
  226. package/chunks/GeometryCleaner-CIE8Wfmb.js +1 -1
  227. package/chunks/LineMarker.glsl.js +35 -42
  228. package/chunks/MultiPathImpl.js +1 -1
  229. package/chunks/OperatorAffineTransform.js +1 -1
  230. package/chunks/OperatorClip.js +1 -1
  231. package/chunks/OperatorDensify.js +1 -1
  232. package/chunks/OperatorDistance.js +1 -1
  233. package/chunks/OperatorGeneralize.js +1 -1
  234. package/chunks/OperatorGeodesicBuffer.js +1 -1
  235. package/chunks/OperatorGeodeticArea.js +1 -1
  236. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  237. package/chunks/OperatorGeodeticDistance.js +1 -1
  238. package/chunks/OperatorGeodeticLength.js +1 -1
  239. package/chunks/OperatorGraphicBuffer.js +1 -1
  240. package/chunks/OperatorIntegrate.js +1 -1
  241. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  242. package/chunks/OperatorProximity.js +1 -1
  243. package/chunks/OperatorProximityGeodesic.js +1 -1
  244. package/chunks/OperatorShapePreservingLength.js +1 -1
  245. package/chunks/OperatorShapePreservingProject.js +1 -1
  246. package/chunks/OperatorSimplifyOGC.js +1 -1
  247. package/chunks/Path.glsl.js +2 -2
  248. package/chunks/Point2D.js +1 -1
  249. package/chunks/RealisticTree.glsl.js +2 -2
  250. package/chunks/RibbonLine.glsl.js +50 -56
  251. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  252. package/chunks/Terrain.glsl.js +2 -2
  253. package/chunks/Transformation2D.js +1 -1
  254. package/chunks/UnitFactory.js +1 -1
  255. package/config.js +1 -1
  256. package/core/workers/RemoteClient.js +1 -1
  257. package/core/workers/workerFactory.js +1 -1
  258. package/editing/fieldUtils.d.ts +12 -0
  259. package/geometry/operators/extendOperator.js +1 -1
  260. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  261. package/geometry/operators/gx/operatorBoundary.js +1 -1
  262. package/geometry/operators/gx/operatorBuffer.js +1 -1
  263. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  264. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  265. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  266. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  267. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  268. package/geometry/operators/gx/operatorOffset.js +1 -1
  269. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  270. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  271. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  272. package/geometry/operators/isNearOperator.js +1 -1
  273. package/geometry/operators/reshapeOperator.js +1 -1
  274. package/geometry/operators/support/jsonConverter.js +1 -1
  275. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  276. package/interfaces.d.ts +15 -18
  277. package/kernel.js +1 -1
  278. package/layers/LinkChartLayer.js +1 -1
  279. package/layers/ParquetLayer.js +1 -1
  280. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  281. package/layers/list/LayerItemCollection.d.ts +1 -0
  282. package/layers/list/types.d.ts +5 -1
  283. package/layers/support/TimeSeriesCalculation.d.ts +1 -1
  284. package/layers/support/TimeSeriesCalculation.js +1 -1
  285. package/layers/support/dataSeriesUtils.d.ts +10 -0
  286. package/layers/support/timeSeriesUtils.js +17 -6
  287. package/libs/lyr3d/Lyr3DModule.js +1 -1
  288. package/networks/UtilityNetwork.d.ts +15 -0
  289. package/networks/UtilityNetwork.js +1 -1
  290. package/package.json +4 -4
  291. package/popup/FeatureContent.d.ts +14 -1
  292. package/popup/FeatureContent.js +1 -1
  293. package/popup/FeatureContentCollection.d.ts +4 -10
  294. package/popup/FeatureContentCollection.js +1 -1
  295. package/popup/actions.js +1 -1
  296. package/popup/support/featureUtils.js +1 -1
  297. package/renderers/support/RenderingInfo.js +1 -1
  298. package/renderers/support/renderingInfoUtils.js +1 -1
  299. package/renderers/visualVariables/SizeVariable.d.ts +16 -20
  300. package/renderers/visualVariables/support/SizeStop.d.ts +6 -2
  301. package/rest/networks/support/TraceLocation.js +1 -1
  302. package/rest/networks/support/TraceResult.d.ts +7 -0
  303. package/rest/networks/support/TraceResult.js +1 -1
  304. package/smartMapping/renderers/color.js +1 -1
  305. package/smartMapping/renderers/opacity.js +1 -1
  306. package/smartMapping/renderers/size.js +1 -1
  307. package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
  308. package/smartMapping/statistics/histogramForTimeSeries.d.ts +11 -0
  309. package/smartMapping/statistics/histogramForTimeSeries.js +2 -0
  310. package/smartMapping/statistics/summaryStatisticsForTimeSeries.d.ts +11 -0
  311. package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +2 -0
  312. package/smartMapping/statistics/support/timeSeriesUtils.js +24 -0
  313. package/smartMapping/statistics/types.d.ts +50 -0
  314. package/symbols/cim/CIMPlacements.js +1 -1
  315. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  316. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  317. package/views/2d/engine/webgl/definitions.js +1 -1
  318. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  319. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  320. package/views/2d/engine/webgl/shaderGraph/techniques/animated/ComputedAnimatedParams.js +1 -1
  321. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextParams.js +1 -1
  322. package/views/2d/layers/SketchLayerView2D.js +1 -1
  323. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  324. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  325. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  326. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  327. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  328. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  329. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  330. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  331. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  332. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  333. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  334. package/views/2d/layers/features/schema/ExceedsLimitCache.js +1 -1
  335. package/views/2d/layers/features/schema/TimeSchema.js +2 -0
  336. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  337. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  338. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  339. package/views/2d/types.d.ts +2 -1
  340. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  341. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  342. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  343. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +24 -0
  344. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  345. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  346. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  347. package/views/3d/camera/constraintUtils.js +1 -1
  348. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  349. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  350. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  351. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  352. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  353. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  354. package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
  355. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  356. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  357. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  358. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  359. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +2 -2
  360. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +12 -0
  361. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  362. package/views/3d/webgl-engine/effects/focusArea/FocusArea.glsl.js +1 -1
  363. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  364. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  365. package/views/SelectionManager.d.ts +3 -3
  366. package/views/draw/support/Reshape.js +1 -1
  367. package/views/interactive/options/bindViewToolOptions.js +1 -1
  368. package/views/interactive/sketch/SketchLabelOptions.d.ts +3 -0
  369. package/views/interactive/sketch/SketchLabelOptions.js +1 -1
  370. package/views/interactive/sketch/SketchTooltipOptions.d.ts +3 -0
  371. package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
  372. package/views/interactive/sketch/SketchValueOptions.d.ts +3 -0
  373. package/views/interactive/sketch/SketchValueOptions.js +1 -1
  374. package/views/interactive/snapping/SnappingOptions.d.ts +3 -0
  375. package/views/interactive/snapping/SnappingOptions.js +1 -1
  376. package/views/interactive/snapping/snappingUtils.js +1 -1
  377. package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
  378. package/views/layers/SketchLayerView.d.ts +34 -0
  379. package/views/layers/SketchLayerView.js +2 -0
  380. package/views/layers/types.d.ts +3 -2
  381. package/views/selection/types.d.ts +15 -4
  382. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  383. package/widgets/BasemapGallery.js +1 -1
  384. package/widgets/Bookmarks/BookmarksViewModel.d.ts +4 -0
  385. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +5 -1
  386. package/widgets/Bookmarks/types.d.ts +2 -0
  387. package/widgets/Editor/EditorViewModel.d.ts +31 -30
  388. package/widgets/Editor/EditorViewModel.js +1 -1
  389. package/widgets/Editor/components/Settings.js +1 -1
  390. package/widgets/Editor/types.d.ts +44 -0
  391. package/widgets/Editor.d.ts +30 -27
  392. package/widgets/Editor.js +1 -1
  393. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
  394. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  395. package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -1
  396. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  397. package/widgets/FeatureTable.d.ts +6 -0
  398. package/widgets/FeatureTable.js +1 -1
  399. package/widgets/Histogram/types.d.ts +10 -2
  400. package/widgets/HistogramRangeSlider/types.d.ts +4 -1
  401. package/widgets/LayerList/LayerListViewModel.d.ts +2 -1
  402. package/widgets/Legend/LegendViewModel.d.ts +2 -0
  403. package/widgets/Legend/styles/card/CardView.d.ts +2 -0
  404. package/widgets/Legend/styles/classic/ClassicView.d.ts +4 -1
  405. package/widgets/Legend.d.ts +3 -0
  406. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +7 -0
  407. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  408. package/widgets/OrientedImageryViewer/types.d.ts +9 -0
  409. package/widgets/OrientedImageryViewer.d.ts +7 -0
  410. package/widgets/OrientedImageryViewer.js +2 -2
  411. package/widgets/PanoramicVideoViewer.js +1 -1
  412. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  413. package/widgets/ScaleRangeSlider/types.d.ts +9 -2
  414. package/widgets/Sketch/SketchViewModel.d.ts +32 -1
  415. package/widgets/Sketch/SketchViewModel.js +1 -1
  416. package/widgets/Sketch.d.ts +27 -1
  417. package/widgets/Sketch.js +1 -1
  418. package/widgets/Slider/types.d.ts +58 -13
  419. package/widgets/Slider.d.ts +6 -0
  420. package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +2 -0
  421. package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +2 -0
  422. package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +2 -0
  423. package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +2 -0
  424. package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +2 -0
  425. package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -0
  426. package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +2 -0
  427. package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +3 -0
  428. package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -0
  429. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +2 -0
  430. package/widgets/smartMapping/types.d.ts +30 -7
  431. package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +21 -11
  432. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
  433. package/widgets/support/FilterBuilder/types.d.ts +28 -0
  434. package/widgets/support/FilterBuilder.js +1 -1
  435. package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +24 -0
  436. package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
  437. package/widgets/support/FilterCondition/types.d.ts +16 -1
  438. package/widgets/support/FilterCondition.js +1 -1
  439. package/widgets/support/SnappingControls/snappingLayerListUtils.js +1 -1
  440. package/widgets/support/iconUtils.js +1 -1
  441. package/assets/esri/core/workers/chunks/0606ab6fdfc1dfea3856.js +0 -1
  442. package/assets/esri/core/workers/chunks/1289204f8ca96032c17a.js +0 -1
  443. package/assets/esri/core/workers/chunks/12b5a645c0987a0efe54.js +0 -2
  444. package/assets/esri/core/workers/chunks/17b938ba49fb1e7ab8c4.js +0 -1
  445. package/assets/esri/core/workers/chunks/1dbb3e25e005a8220779.js +0 -2
  446. package/assets/esri/core/workers/chunks/3d6fef25af7e1a51e1bd.js +0 -1
  447. package/assets/esri/core/workers/chunks/55ae00f33f5240a73a50.js +0 -1
  448. package/assets/esri/core/workers/chunks/74211d096cc3296e0968.js +0 -1
  449. package/assets/esri/core/workers/chunks/7926faab76a721a2e1c4.js +0 -1
  450. package/assets/esri/core/workers/chunks/96c3900685cfb2a8ca12.js +0 -1
  451. package/assets/esri/core/workers/chunks/ad28486bc6afaa346de5.js +0 -1
  452. package/assets/esri/core/workers/chunks/ad29c729e90b5866713c.js +0 -1
  453. package/assets/esri/core/workers/chunks/b72a2514aa4cc4ae7d1b.js +0 -1
  454. package/assets/esri/core/workers/chunks/be761749f8d77fbd9df5.js +0 -1
  455. package/assets/esri/core/workers/chunks/d4f55e2b1ace7867a3b8.js +0 -1
  456. package/assets/esri/core/workers/chunks/dbfd25aa0d19aed5890c.js +0 -1
  457. package/assets/esri/core/workers/chunks/de28a86775235bd5d3c4.js +0 -2
  458. package/assets/esri/core/workers/chunks/f6cfc901267a229de7a1.js +0 -2
  459. package/assets/esri/core/workers/chunks/fb147097149a89e671ff.js +0 -1
  460. package/support/revision.js +0 -2
  461. /package/assets/esri/core/workers/chunks/{1dbb3e25e005a8220779.js.LICENSE.txt → 1b946714ca4a1a7359d4.js.LICENSE.txt} +0 -0
  462. /package/assets/esri/core/workers/chunks/{f6cfc901267a229de7a1.js.LICENSE.txt → 2a1ec30f9ad305763f81.js.LICENSE.txt} +0 -0
  463. /package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js.LICENSE.txt → 590e6c70206122e4cc3c.js.LICENSE.txt} +0 -0
  464. /package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js.LICENSE.txt → 68d8ae42ab71d01a70a5.js.LICENSE.txt} +0 -0
  465. /package/assets/esri/core/workers/chunks/{de28a86775235bd5d3c4.js.LICENSE.txt → 8dc1c3042267618fd710.js.LICENSE.txt} +0 -0
  466. /package/assets/esri/core/workers/chunks/{12b5a645c0987a0efe54.js.LICENSE.txt → 96c50a0dda0f1503ef92.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{animationDebugFlags as t}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{generateVirtualMachineSource as n}from"../../../animations/instructions.js";import{location as r,uniform as i,texture as a,option as o}from"../../GraphShaderModule.js";import{Vec2 as s,Vec4 as c,Float as l,Sampler2D as u,cond as d,equal as f,negate as p,step as m,sin as h,cos as g,Mat3 as _,Vec3 as v,lessThanEqual as y,ifElse as b,texture2D as x,clamp as S,abs as C,block as w}from"../../graph/glsl.js";import{AnimationUniformInfo as T}from"./AnimationUniformInfo.js";import{MarkerConstants as E}from"../markers/markerConstants.js";import{FeatureVertexInput as D,AFeatureShader as O,FeatureFragmentInput as k}from"../shaders/AFeatureShader.js";import{softEdgeRatio as A}from"../shaders/constants.js";import{LocalTileOffset as j}from"../shaders/LocalTileOffset.js";import{MosaicInfo as M}from"../shaders/MosaicInfo.js";import{getBit as N,rgba2float as P}from"../shaders/utils.js";import{VisualVariableColor as F}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as I}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as L}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as R}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as z}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as B}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as V}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as H,getVisualVariableAngle as U}from"../shaders/vvUtils.js";class W extends D{}e([r(3,s)],W.prototype,`offset`,void 0),e([r(4,c)],W.prototype,`sizing`,void 0),e([r(5,c)],W.prototype,`value1Position2Value2`,void 0),e([r(6,c)],W.prototype,`animationPointerAndBaseSizeAndReferenceSize`,void 0),e([r(7,s)],W.prototype,`zoomRange`,void 0),e([r(8,l)],W.prototype,`lineLength`,void 0);class G extends k{}class K extends O{_vertexPreamble(e,t,n,r){let{animationPointerAndBaseSizeAndReferenceSize:i,sizing:a}=e,o=r??e.offset,s=this.getFeatureId(e.id,e.bitset),c=i.xy,u=i.z,h=i.w,g=a.xy,_=d([f(N(e.bitset,E.bitset.isMapAligned),new l(1)),this.view.getRotation().divide(180).multiply(Math.PI)],[!0,new l(0)]),v=p(_.add(t)),y=this._getEvalParams(e,g,n,v),b,x;if(!e.value1Position2Value2)x=e.pos,b=new l(0);else{let t;t=this.hittestRequest?new l(0):q(c,6,y).a.multiply(this.tile.getDisplayZoomFactor(this.tileInfo));let n=e.pos,r=e.value1Position2Value2.yz,i=e.value1Position2Value2.x,a=e.value1Position2Value2.w,o=t.subtract(i).divide(a.subtract(i));x=n.add(r.subtract(n).multiply(o)),b=m(new l(1),o).add(m(new l(0),p(o)))}x=this.getLabelPosition(x,e.id,e.bitset);let S=a.z,C=N(e.bitset,E.bitset.isStroke),w=a.w,T=N(e.bitset,E.bitset.scaleSymbolsProportionally),D=q(c,0,y),O=D.xy,k=D.z,A=D.w,j=N(e.bitset,E.bitset.isSDF),M=H(this,s,new l(h)).divide(new l(h));return{baseSize:u,animationPointer:c,strokeWidth:S,isOutline:C,unscaledDistanceToPx:w,scaleSymbolsProportionally:T,isSDF:j,position:this._getScreenPosition({id:s,pos:x,offset:o,referenceSize:h,translation:O,rotation:k,scale:A,vvScale:M}),evalParams:y,vvScale:M,scale:A,clip:b}}_getScreenPosition(e){let{pos:t,translation:n,rotation:r,scale:i,offset:a,id:o,vvScale:s}=e,c=U(this,o).multiply(Math.PI/180),u=n.x.multiply(4/3),d=n.y.multiply(-1).multiply(4/3),f=h(c),m=g(c),y=m.multiply(u).add(p(f).multiply(d)),b=f.multiply(u).add(m.multiply(d)),x=h(r.subtract(c)),S=g(r.subtract(c)),C=new l(0),w=new l(1),T=new _(w,C,C,C,w,C,y,b,w),E=new _(S,x.multiply(-1),C,x,S,C,0,0,w),D=i.multiply(s).multiply(4/3),O=E.multiply(D),k=this.tile.getViewScreenMat3(this.view).multiply(new v(t,1)),A=T.multiply(k).xy,j=O.multiply(new v(a,0)).xy;return A.add(j)}_clip(e,n,r){let i=super.clip(e,n,r),a=y(this._getLocalTimeOrigin(e),new l(0));return t.forceGlobalTimeOrigin||(i=i.add(d([a,()=>new l(2)],[!0,()=>new l(0)]))),i}_getLocalTimeOrigin(e){return this.getLocalTimeOrigin(e)}_toNdc(e){return this.view.displayMat3.multiply(new v(e,1)).xy}_getEvalParams(e,t,n,r){let{globalTime:i,animationTextureSize:a}=this.animationInfo;return{globalTime:i,localTimeOrigin:this._getLocalTimeOrigin(this.getFeatureId(e.id,e.bitset)),animationTextureSize:a,animationTexture:this.animationTexture,pixelDimensions:t,lineLength:n,globalRotation:r}}_getColor(e,t){return b(f(t.isSDF,new l(1)),this._getSDFColor(e,t),this._getSpriteColor(e,t))}_getSpriteColor(e,t){return x(this.mosaicTexture,e).multiply(t.color)}_getSDFColor(e,t){let n=x(this.mosaicTexture,e),r=new l(.5).subtract(P(n)).multiply(t.distanceToPx).multiply(A),i=S(new l(.5).subtract(r),new l(0),new l(1)),a=t.color.multiply(i),o=t.outlineSize.multiply(.5),s=C(r).subtract(o),c=S(new l(.5).subtract(s),new l(0),new l(1)),u=t.outlineColor.multiply(c);return new l(1).subtract(u.a).multiply(a).add(u)}}e([i(M)],K.prototype,`mosaicInfo`,void 0),e([i(T)],K.prototype,`animationInfo`,void 0),e([i(j)],K.prototype,`localTileOffset`,void 0),e([a(u)],K.prototype,`mosaicTexture`,void 0),e([o(F)],K.prototype,`visualVariableColor`,void 0),e([o(I)],K.prototype,`visualVariableOpacity`,void 0),e([o(R)],K.prototype,`visualVariableSizeMinMaxValue`,void 0),e([o(z)],K.prototype,`visualVariableSizeScaleStops`,void 0),e([o(B)],K.prototype,`visualVariableSizeStops`,void 0),e([o(V)],K.prototype,`visualVariableSizeUnitValue`,void 0),e([o(L)],K.prototype,`visualVariableRotation`,void 0),e([a(u)],K.prototype,`animationTexture`,void 0);function q(e,t,r){let i=e.add(new s(t,0)),a=x(r.animationTexture,i.add(.5).divide(r.animationTextureSize)).xy;return e=e.add(a),w({animationPointer:e,...r},c,null,e=>{let{out:t}=e;if(!t)throw Error(`out is null`);return n({...e,out:t})})}export{G as AAnimatedFragmentInput,K as AAnimatedShader,W as AAnimatedVertexInput,q as getValue};
2
+ import{__decorate as e}from"tslib";import{animationDebugFlags as t}from"../../../../../../../symbols/cim/animationDebugFlags.js";import{generateVirtualMachineSource as n}from"../../../animations/instructions.js";import{location as r,uniform as i,texture as a,option as o}from"../../GraphShaderModule.js";import{Vec2 as s,Vec4 as c,Float as l,Sampler2D as u,cond as d,equal as f,negate as p,step as m,sin as h,cos as g,Mat3 as _,Vec3 as v,lessThanEqual as y,ifElse as b,texture2D as x,clamp as S,abs as C,block as w}from"../../graph/glsl.js";import{AnimationUniformInfo as T}from"./AnimationUniformInfo.js";import{MarkerConstants as E}from"../markers/markerConstants.js";import{FeatureVertexInput as D,AFeatureShader as O,FeatureFragmentInput as k}from"../shaders/AFeatureShader.js";import{softEdgeRatio as A}from"../shaders/constants.js";import{LocalTileOffset as j}from"../shaders/LocalTileOffset.js";import{MosaicInfo as M}from"../shaders/MosaicInfo.js";import{getBit as N,rgba2float as P}from"../shaders/utils.js";import{VisualVariableColor as F}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as I}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as L}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as R}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as z}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as B}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as V}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as H,getVisualVariableAngle as U}from"../shaders/vvUtils.js";class W extends D{}e([r(3,s)],W.prototype,`offset`,void 0),e([r(4,c)],W.prototype,`sizing`,void 0),e([r(5,c)],W.prototype,`value1Position2Value2`,void 0),e([r(6,c)],W.prototype,`animationPointerAndBaseSizeAndReferenceSize`,void 0),e([r(7,s)],W.prototype,`zoomRange`,void 0),e([r(8,l)],W.prototype,`lineLength`,void 0);class G extends k{}class K extends O{_vertexPreamble(e,t,n,r){let{animationPointerAndBaseSizeAndReferenceSize:i,sizing:a}=e,o=r??e.offset,s=this.getFeatureId(e.id,e.bitset),c=i.xy,u=i.z,h=i.w,g=a.xy,_=d([f(N(e.bitset,E.bitset.isMapAligned),new l(1)),this.view.getRotation().divide(180).multiply(Math.PI)],[!0,new l(0)]),v=p(_.add(t)),y=this._getEvalParams(e,g,n,v),b,x;if(!e.value1Position2Value2)x=e.pos,b=new l(0);else{let t;t=this.hittestRequest?new l(0):q(c,6,y).a.multiply(this.tile.getDisplayZoomFactor(this.tileInfo));let n=e.pos,r=e.value1Position2Value2.yz,i=e.value1Position2Value2.x,a=e.value1Position2Value2.w,o=t.subtract(i).divide(a.subtract(i));x=n.add(r.subtract(n).multiply(o)),b=m(new l(1),o).add(m(new l(0),p(o)))}x=this.getLabelPosition(x,e.id,e.bitset);let S=a.z,C=N(e.bitset,E.bitset.isStroke),w=a.w,T=N(e.bitset,E.bitset.scaleSymbolsProportionally),D=q(c,0,y),O=D.xy,k=D.z,A=D.w,j=N(e.bitset,E.bitset.isSDF),M=H(this,s,new l(h)).divide(new l(h));return{baseSize:u,animationPointer:c,strokeWidth:S,isOutline:C,unscaledDistanceToPx:w,scaleSymbolsProportionally:T,isSDF:j,position:this._getScreenPosition({id:s,pos:x,offset:o,referenceSize:h,translation:O,rotation:k,scale:A,vvScale:M}),evalParams:y,vvScale:M,scale:A,clip:b}}_getScreenPosition(e){let{pos:t,translation:n,rotation:r,scale:i,offset:a,id:o,vvScale:s}=e,c=U(this,o).multiply(Math.PI/180),u=n.x.multiply(4/3),d=n.y.multiply(-1).multiply(4/3),f=h(c),m=g(c),y=m.multiply(u).add(p(f).multiply(d)),b=f.multiply(u).add(m.multiply(d)),x=h(r.subtract(c)),S=g(r.subtract(c)),C=new l(0),w=new l(1),T=new _(w,C,C,C,w,C,y,b,w),E=new _(S,x.multiply(-1),C,x,S,C,0,0,w),D=i.multiply(s).multiply(4/3),O=E.multiply(D),k=this.tile.getViewScreenMat3(this.view).multiply(new v(t,1)),A=T.multiply(k).xy,j=O.multiply(new v(a,0)).xy;return A.add(j)}_clip(e,n,r){let i=super.clip(e,n,r),a=y(this._getLocalTimeOrigin(e),new l(0));return t.forceGlobalTimeOrigin||(i=i.add(d([a,()=>new l(2)],[!0,()=>new l(0)]))),i}_getLocalTimeOrigin(e){return this.getLocalTimeOrigin(e)}_toNdc(e){return this.view.displayMat3.multiply(new v(e,1)).xy}_getEvalParams(e,t,n,r){let{globalTime:i,animationTextureSize:a}=this.animationInfo;return{globalTime:i,localTimeOrigin:this._getLocalTimeOrigin(this.getFeatureId(e.id,e.bitset)),animationTextureSize:a,animationTexture:this.animationTexture,pixelDimensions:t,lineLength:n.divide(this.tile.getDisplayZoomFactor(this.tileInfo)),globalRotation:r}}_getColor(e,t){return b(f(t.isSDF,new l(1)),this._getSDFColor(e,t),this._getSpriteColor(e,t))}_getSpriteColor(e,t){return x(this.mosaicTexture,e).multiply(t.color)}_getSDFColor(e,t){let n=x(this.mosaicTexture,e),r=new l(.5).subtract(P(n)).multiply(t.distanceToPx).multiply(A),i=S(new l(.5).subtract(r),new l(0),new l(1)),a=t.color.multiply(i),o=t.outlineSize.multiply(.5),s=C(r).subtract(o),c=S(new l(.5).subtract(s),new l(0),new l(1)),u=t.outlineColor.multiply(c);return new l(1).subtract(u.a).multiply(a).add(u)}}e([i(M)],K.prototype,`mosaicInfo`,void 0),e([i(T)],K.prototype,`animationInfo`,void 0),e([i(j)],K.prototype,`localTileOffset`,void 0),e([a(u)],K.prototype,`mosaicTexture`,void 0),e([o(F)],K.prototype,`visualVariableColor`,void 0),e([o(I)],K.prototype,`visualVariableOpacity`,void 0),e([o(R)],K.prototype,`visualVariableSizeMinMaxValue`,void 0),e([o(z)],K.prototype,`visualVariableSizeScaleStops`,void 0),e([o(B)],K.prototype,`visualVariableSizeStops`,void 0),e([o(V)],K.prototype,`visualVariableSizeUnitValue`,void 0),e([o(L)],K.prototype,`visualVariableRotation`,void 0),e([a(u)],K.prototype,`animationTexture`,void 0);function q(e,t,r){let i=e.add(new s(t,0)),a=x(r.animationTexture,i.add(.5).divide(r.animationTextureSize)).xy;return e=e.add(a),w({animationPointer:e,...r},c,null,e=>{let{out:t}=e;if(!t)throw Error(`out is null`);return n({...e,out:t})})}export{G as AAnimatedFragmentInput,K as AAnimatedShader,W as AAnimatedVertexInput,q as getValue};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{pt2px as e}from"../../../../../../../core/screenUtils.js";import{GeometryCursor as t}from"../../../../../../../geometry/GeometryCursor.js";import{triangulateF32 as n}from"../../../../../../../geometry/libtess.js";import{LineTessellation as r}from"../../../TurboLine.js";import{clipLinesMarshall as i,triangulateEarcut as a,clipMarshall as o}from"../../../mesh/templates/templateUtils.js";import{AAnimatedMeshWriter as s}from"./AnimatedMeshWriter.js";import{noPatternAngle as c,lineLength as l,noTiming as u,zoomRange as d,segmentDirection as f,normal as p,accumulatedDistance as m,sizing as h,animationPointerAndBaseSizeAndReferenceSize as g,tlbr as _,offset as v,pos as y,bitset as b,id as x,patternAngle as S,noLineLength as C}from"./attributes.js";import{createComputedAnimatedMeshParams as w}from"./ComputedAnimatedParams.js";import{processLineCapInput as T,processLineJoinInput as E}from"../fill/meshWriterUtils.js";import{LineTessellationParams as D}from"../line/LineMeshWriter.js";class O extends s{_write(e,{target:n,effect:r}){let i=r?.geometry??t.fromFeatureSetReaderCIM(n);if(!i)return;let{textureBinding:a}=this.evaluatedMeshParams.sprite;e.recordStart(this.instanceId,this.attributeLayout,a);let o=n.getDisplayId();this._writePoly(e,o,i.asOptimized()),e.recordEnd()}}class k extends O{constructor(){super(...arguments),this.vertexSpec={createComputedParams:w,attributes:{id:x,bitset:b,pos:y,offset:v.fill,tlbr:_,animationPointerAndBaseSizeAndReferenceSize:g,sizing:h},optionalAttributes:{zoomRange:d,value1Position2Value2:u,lineLength:C,angle:S}}}_writePoly(e,t,r){let i=this._clip(r);if(!i)return;r=i;let o=[],s=e.vertexCount(),c;if(a(o,r)){if(o.length===0)return;c=0;for(let n of o){let i=r.coords[n*2],a=r.coords[n*2+1];this._writeVertex(e,t,i,a),c++}}else{let{coords:i,lengths:a}=r,o=n(i,a);c=o.vertexCount;for(let n=0;n<o.buffer.length/2;n++){let r=o.buffer[n*2],i=o.buffer[n*2+1];this._writeVertex(e,t,r,i)}}if(c>0){e.indexEnsureSize(c);for(let t=0;t<c;t++)e.indexWrite(t+s)}}_clip(e){let t=this.hasEffects?256:8;return o(e,t)}}class A{constructor(){this.id=0,this.bitset=0,this.indexCount=0,this.vertexCount=0,this.vertexFrom=0,this.vertexBounds=0,this.pathLength=0}}const j=65535;class M extends O{constructor(){super(...arguments),this.vertexSpec={createComputedParams:w,attributes:{id:x,bitset:b,pos:y,offset:v.line,tlbr:_,animationPointerAndBaseSizeAndReferenceSize:g,sizing:h,accumulatedDistance:m,normal:p,segmentDirection:f},optionalAttributes:{zoomRange:d,value1Position2Value2:u,lineLength:l,angle:c}},this._tessParams=new D,this._currentWrite=new A,this._tessellationOptions={halfWidth:0,pixelCoordRatio:1,offset:0,wrapDistance:j,textured:!1},this._lineLength=0,this._lineTessellator=new r((e,t,n,r,i,a,o,s,c,l,u)=>this._writeTesselatedVertex(e,t,n,r,i,a,o,s,c,l,u,this._lineLength),this._writeTriangle.bind(this),!1)}_writePoly(n,r,a){let o=i(t.fromOptimized(a,`esriGeometryPolyline`),64);if(o==null)return;let{_currentWrite:s,_tessellationOptions:c}=this,{baseSize:l,capType:u,joinType:d,miterLimit:f}=this.evaluatedMeshParams;c.halfWidth=e(.5*l),c.capType=T(u||`Round`),c.joinType=E(d||`Round`),c.miterLimit=f||2,s.out=n,s.id=r,s.vertexCount=0,s.indexCount=0,s.vertexFrom=n.vertexCount(),s.vertexBounds=1;for(let{line:e,start:t,pathLength:n}of o){c.initialDistance=t%j,s.pathLength=n,this._lineLength=0;for(let t=1;t<e.length;t++){let n=e[t].x-e[t-1].x,r=e[t].y-e[t-1].y;this._lineLength+=Math.sqrt(n*n+r*r)}this._lineTessellator.tessellate(e,c,!1)}}_writeTesselatedVertex(e,t,n,r,i,a,o,s,c,l,u,d){let{out:f,id:p,vertexBounds:m,pathLength:h}=this._currentWrite;return this.hasEffects&&f.recordBounds(e,t,m,m),this._tessParams.extrusionOffsetX=o,this._tessParams.extrusionOffsetY=s,this._tessParams.normalX=c,this._tessParams.normalY=l,this._tessParams.directionX=i,this._tessParams.directionY=a,this._tessParams.distance=u,this._tessParams.pathLength=h,this._tessParams.lineLength=d,this._writeVertex(f,p,e,t,this._tessParams),this._currentWrite.vertexFrom+this._currentWrite.vertexCount++}_writeTriangle(e,t,n){let{out:r}=this._currentWrite;r.indexEnsureSize(3),r.indexWrite(e),r.indexWrite(t),r.indexWrite(n),this._currentWrite.indexCount+=3}}export{O as AAnimatedPolyMeshWriter,k as AnimatedFillMeshWriter,M as AnimatedLineMeshWriter};
2
+ import{pt2px as e}from"../../../../../../../core/screenUtils.js";import{GeometryCursor as t}from"../../../../../../../geometry/GeometryCursor.js";import{triangulateF32 as n}from"../../../../../../../geometry/libtess.js";import{LineTessellation as r}from"../../../TurboLine.js";import{clipLinesMarshall as i,triangulateEarcut as a,clipMarshall as o}from"../../../mesh/templates/templateUtils.js";import{AAnimatedMeshWriter as s}from"./AnimatedMeshWriter.js";import{noPatternAngle as c,lineLength as l,noTiming as u,zoomRange as d,segmentDirection as f,normal as p,accumulatedDistance as m,sizing as h,animationPointerAndBaseSizeAndReferenceSize as g,tlbr as _,offset as v,pos as y,bitset as b,id as x,patternAngle as S,noLineLength as C}from"./attributes.js";import{createComputedAnimatedLineMeshParams as w,createComputedAnimatedMeshParams as T}from"./ComputedAnimatedParams.js";import{processLineCapInput as E,processLineJoinInput as D}from"../fill/meshWriterUtils.js";import{LineTessellationParams as O}from"../line/LineMeshWriter.js";class k extends s{_write(e,{target:n,effect:r}){let i=r?.geometry??t.fromFeatureSetReaderCIM(n);if(!i)return;let{textureBinding:a}=this.evaluatedMeshParams.sprite;e.recordStart(this.instanceId,this.attributeLayout,a);let o=n.getDisplayId();this._writePoly(e,o,i.asOptimized()),e.recordEnd()}}class A extends k{constructor(){super(...arguments),this.vertexSpec={createComputedParams:T,attributes:{id:x,bitset:b,pos:y,offset:v.fill,tlbr:_,animationPointerAndBaseSizeAndReferenceSize:g,sizing:h},optionalAttributes:{zoomRange:d,value1Position2Value2:u,lineLength:C,angle:S}}}_writePoly(e,t,r){r=r.justXY();let i=this._clip(r);if(!i)return;r=i;let o=[],s=e.vertexCount(),c;if(a(o,r)){if(o.length===0)return;c=0;for(let n of o){let i=r.coords[n*2],a=r.coords[n*2+1];this._writeVertex(e,t,i,a),c++}}else{let{coords:i,lengths:a}=r,o=n(i,a);c=o.vertexCount;for(let n=0;n<o.buffer.length/2;n++){let r=o.buffer[n*2],i=o.buffer[n*2+1];this._writeVertex(e,t,r,i)}}if(c>0){e.indexEnsureSize(c);for(let t=0;t<c;t++)e.indexWrite(t+s)}}_clip(e){let t=this.hasEffects?256:8;return o(e,t)}}class j{constructor(){this.id=0,this.bitset=0,this.indexCount=0,this.vertexCount=0,this.vertexFrom=0,this.vertexBounds=0,this.pathLength=0}}const M=65535;class N extends k{constructor(){super(...arguments),this.vertexSpec={createComputedParams:w,attributes:{id:x,bitset:b,pos:y,offset:v.line,tlbr:_,animationPointerAndBaseSizeAndReferenceSize:g,sizing:h,accumulatedDistance:m,normal:p,segmentDirection:f},optionalAttributes:{zoomRange:d,value1Position2Value2:u,lineLength:l,angle:c}},this._tessParams=new O,this._currentWrite=new j,this._tessellationOptions={halfWidth:0,pixelCoordRatio:1,offset:0,wrapDistance:M,textured:!1},this._lineLength=0,this._lineTessellator=new r((e,t,n,r,i,a,o,s,c,l,u)=>this._writeTesselatedVertex(e,t,n,r,i,a,o,s,c,l,u,this._lineLength),this._writeTriangle.bind(this),!1)}_writePoly(n,r,a){a=a.justXY();let o=i(t.fromOptimized(a,`esriGeometryPolyline`),64);if(o==null)return;let{_currentWrite:s,_tessellationOptions:c}=this,{baseSize:l,capType:u,joinType:d,miterLimit:f}=this.evaluatedMeshParams;c.halfWidth=e(.5*l),c.capType=E(u||`Round`),c.joinType=D(d||`Round`),c.miterLimit=f||2,s.out=n,s.id=r,s.vertexCount=0,s.indexCount=0,s.vertexFrom=n.vertexCount(),s.vertexBounds=1;for(let{line:e,start:t,pathLength:n}of o){c.initialDistance=t%M,s.pathLength=n,this._lineLength=0;for(let t=1;t<e.length;t++){let n=e[t].x-e[t-1].x,r=e[t].y-e[t-1].y;this._lineLength+=Math.sqrt(n*n+r*r)}this._lineTessellator.tessellate(e,c,!1)}}_writeTesselatedVertex(e,t,n,r,i,a,o,s,c,l,u,d){let{out:f,id:p,vertexBounds:m,pathLength:h}=this._currentWrite;return this.hasEffects&&f.recordBounds(e,t,m,m),this._tessParams.extrusionOffsetX=o,this._tessParams.extrusionOffsetY=s,this._tessParams.normalX=c,this._tessParams.normalY=l,this._tessParams.directionX=i,this._tessParams.directionY=a,this._tessParams.distance=u,this._tessParams.pathLength=h,this._tessParams.lineLength=d,this._writeVertex(f,p,e,t,this._tessParams),this._currentWrite.vertexFrom+this._currentWrite.vertexCount++}_writeTriangle(e,t,n){let{out:r}=this._currentWrite;r.indexEnsureSize(3),r.indexWrite(e),r.indexWrite(t),r.indexWrite(n),this._currentWrite.indexCount+=3}}export{k as AAnimatedPolyMeshWriter,A as AnimatedFillMeshWriter,N as AnimatedLineMeshWriter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{pt2px as e}from"../../../../../../../core/screenUtils.js";function t(t){let{pixelDimensions:n,texelDimensions:r,baseSize:i,referenceSize:a,strokeWidth:o,sizeRatio:s}=t;if(n||=t.sprite.sdf?[0,0]:[t.sprite.width,t.sprite.height],r||=t.sprite.sdf?[0,0]:n,t.patternHeight!=null){let e=t.patternHeight/n[1];n[1]*=e,n[0]*=e}i===-1&&(i=n[1]),i=e(i),a=e(a),o=e(o);let c=(t.sprite.sdfDecodeCoeff??1)*s;return{...t,pixelDimensions:n,texelDimensions:r,baseSize:i,referenceSize:a,strokeWidth:o,sdfDecodeCoeff:c}}export{t as createComputedAnimatedMeshParams};
2
+ import{pt2px as e}from"../../../../../../../core/screenUtils.js";import{dashSdfRasterizationScale as t}from"../../../../../../../symbols/cim/constants.js";function n(e){return r({...e,pixelDimensions:e.pixelDimensions??[e.sprite.width/(e.sprite.sdf?t:1),e.sprite.height]})}function r(t){let{pixelDimensions:n,texelDimensions:r,baseSize:i,referenceSize:a,strokeWidth:o,sizeRatio:s}=t;if(n||=t.sprite.sdf?[0,0]:[t.sprite.width,t.sprite.height],r||=t.sprite.sdf?[0,0]:n,t.patternHeight!=null){let e=t.patternHeight/n[1];n[1]*=e,n[0]*=e}i===-1&&(i=n[1]),i=e(i),a=e(a),o=e(o);let c=(t.sprite.sdfDecodeCoeff??1)*s;return{...t,pixelDimensions:n,texelDimensions:r,baseSize:i,referenceSize:a,strokeWidth:o,sdfDecodeCoeff:c}}export{n as createComputedAnimatedLineMeshParams,r as createComputedAnimatedMeshParams};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{applyParentTransform as e}from"../../../../../../../symbols/cim/utils.js";class t{constructor(t){let{offsetX:n,offsetY:r,postAngle:i,fontSize:a,haloSize:o,outlineSize:s,scaleFactor:c,transforms:l}=t;if(this.offsetX=n,this.offsetY=r,this.postAngle=i,this.fontSize=Math.min(a,96),this.haloSize=o??0,this.outlineSize=s??0,this.transforms=l,l&&l.infos.length>1){let t=e(a,i,!1,n,r,l,!1);this.fontSize=Math.min(t.size,96);let o=t.size/a;this.haloSize*=o,this.outlineSize*=o,this.postAngle=t.rotation,this.offsetX=t.offsetX,this.offsetY=t.offsetY}c&&(this.fontSize*=c,this.offsetX*=c,this.offsetY*=c)}}export{t as TextMeshTransformProps};
2
+ import{applyParentTransform as e}from"../../../../../../../symbols/cim/utils.js";class t{constructor(t){let{offsetX:n,offsetY:r,postAngle:i,fontSize:a,haloSize:o,outlineSize:s,scaleFactor:c,transforms:l}=t;if(this.offsetX=n,this.offsetY=r,this.postAngle=i,this.fontSize=Math.min(a,500),this.haloSize=o??0,this.outlineSize=s??0,this.transforms=l,l&&l.infos.length>1){let t=e(a,i,!1,n,r,l,!1);this.fontSize=Math.min(t.size,500);let o=t.size/a;this.haloSize*=o,this.outlineSize*=o,this.postAngle=t.rotation,this.offsetX=t.offsetX,this.offsetY=t.offsetY}c&&(this.fontSize*=c,this.offsetX*=c,this.offsetY*=c)}}export{t as TextMeshTransformProps};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../Graphic.js";import{isSome as n}from"../../../core/arrayUtils.js";import r from"../../../core/Collection.js";import{makeHandle as i}from"../../../core/handleUtils.js";import{watch as a,initial as o}from"../../../core/reactiveUtils.js";import{isScreenRect as s}from"../../../core/screenUtils.js";import{subclass as c}from"../../../core/accessorSupport/decorators.js";import l from"../../../layers/support/FeatureFilter.js";import{LayerView2D as u}from"./LayerView2D.js";import d from"./graphics/GraphicContainer.js";import f from"./graphics/GraphicsView2D.js";import p from"../../layers/LayerView.js";import{getHighlightName as m}from"../../support/highlightOptionsUtils.js";const h=`layerView`;let g=class extends u(p){*graphicsViews(){if(this._graphicsViewsFeatureCollectionMap!=null){yield*this._graphicsViewsFeatureCollectionMap.keys();return}if(this._graphicsViews!=null){yield*this._graphicsViews;return}yield*[]}async hitTest(e,t){return Array.from(this.graphicsViews(),e=>{let n=e.hitTest(this.view,t);if(this._graphicsViewsFeatureCollectionMap!=null){let t=this._graphicsViewsFeatureCollectionMap.get(e);for(let e of n)!e.popupTemplate&&t.popupTemplate&&(e.popupTemplate=t.popupTemplate),e.sourceLayer=e.layer=this.layer}return n}).flat().map(n=>({type:`graphic`,graphic:n,layer:this.layer,mapPoint:s(t)?null:e}))}highlight(e,a){let o;typeof e==`number`?o=[e]:e instanceof t?o=[e.uid]:Array.isArray(e)&&e.length>0?o=typeof e[0]==`number`?e:e.map(e=>e&&e.uid):r.isCollection(e)&&(o=e.map(e=>e&&e.uid).toArray());let s=o?.filter(n);if(!s?.length)return i();let c=m(a),u=this._addHighlightFilter(new l({objectIds:s}),c);return i(()=>this._removeHighlight(u))}update(e){for(let t of this.graphicsViews())t.processUpdate(e)}attach(){let e=this.view,t=()=>this.requestUpdate(),n=this.layer.featureCollections;if(n!=null&&n.length){this._graphicsViewsFeatureCollectionMap=new Map;for(let r of n){let n=new d(this.view.featuresTilingScheme),i=new f({view:e,graphics:r.source,renderer:r.renderer,requestUpdateCallback:t,container:n});this._graphicsViewsFeatureCollectionMap.set(i,r),this.container.addChild(i.container),this.addHandles([a(()=>r.visible,e=>i.container.visible=e,o),a(()=>i.updating,()=>this.notifyChange(`updating`),o)],h)}this._onHighlightChange()}else this._createGraphicsViews()}detach(){this._destroyGraphicsViews()}moveEnd(){}viewChange(){for(let e of this.graphicsViews())e.viewChange()}isUpdating(){for(let e of this.graphicsViews())if(e.updating)return!0;return!1}_destroyGraphicsViews(){this.container.removeAllChildren(),this.removeHandles(h);for(let e of this.graphicsViews())e.destroy();this._graphicsViews=null,this._graphicsViewsFeatureCollectionMap=null}_createGraphicsViews(){this._destroyGraphicsViews();let e=this.view,t=()=>this.requestUpdate(),n=new d(this.view.featuresTilingScheme);n.fadeTransitionEnabled=!0;let r=new f({view:e,graphics:this.layer.graphics,requestUpdateCallback:t,container:n,layerId:this.layer.id});this.addHandles([this.layer.on(`graphic-update`,r.graphicUpdateHandler),a(()=>this.layer.visible,t=>{r.container.visible=t,t&&(r.update({state:e.state}),r.pushUpdate())},o),a(()=>r.updating,()=>this.notifyChange(`updating`),o)],h),this.container.addChild(r.container),this._graphicsViews=[r],this._onHighlightChange()}_onHighlightChange(){let e=this._getHighlightFilterGroups();for(let t of this._graphicsViews||[])t.setHighlightFilters(e);this._graphicsViewsFeatureCollectionMap?.forEach((t,n)=>{n.setHighlightFilters(e)})}};g=e([c(`esri.views.2d.layers.SketchLayerView2D`)],g);const _=g;export{_ as default};
2
+ import{__decorate as e}from"tslib";import t from"../../../Graphic.js";import{isSome as n}from"../../../core/arrayUtils.js";import r from"../../../core/Collection.js";import{makeHandle as i}from"../../../core/handleUtils.js";import{watch as a,initial as o}from"../../../core/reactiveUtils.js";import{isScreenRect as s}from"../../../core/screenUtils.js";import{subclass as c}from"../../../core/accessorSupport/decorators.js";import l from"../../../layers/support/FeatureFilter.js";import{LayerView2D as u}from"./LayerView2D.js";import d from"./graphics/GraphicContainer.js";import f from"./graphics/GraphicsView2D.js";import p from"../../layers/SketchLayerView.js";import{getHighlightName as m}from"../../support/highlightOptionsUtils.js";const h=`layerView`;let g=class extends u(p){*graphicsViews(){if(this._graphicsViewsFeatureCollectionMap!=null){yield*this._graphicsViewsFeatureCollectionMap.keys();return}if(this._graphicsViews!=null){yield*this._graphicsViews;return}yield*[]}queryGraphics(){if(this._graphicsViewsFeatureCollectionMap!=null){let e=new r;for(let t of this.graphicsViews())e.addMany(t.graphics);return Promise.resolve(e)}return Promise.resolve(this.layer.graphics)}async hitTest(e,t){return Array.from(this.graphicsViews(),e=>{let n=e.hitTest(this.view,t);if(this._graphicsViewsFeatureCollectionMap!=null){let t=this._graphicsViewsFeatureCollectionMap.get(e);for(let e of n)!e.popupTemplate&&t.popupTemplate&&(e.popupTemplate=t.popupTemplate),e.sourceLayer=e.layer=this.layer}return n}).flat().map(n=>({type:`graphic`,graphic:n,layer:this.layer,mapPoint:s(t)?null:e}))}highlight(e,a){let o;typeof e==`number`?o=[e]:e instanceof t?o=[e.uid]:Array.isArray(e)&&e.length>0?o=typeof e[0]==`number`?e:e.map(e=>e&&e.uid):r.isCollection(e)&&(o=e.map(e=>e&&e.uid).toArray());let s=o?.filter(n);if(!s?.length)return i();let c=m(a),u=this._addHighlightFilter(new l({objectIds:s}),c);return i(()=>this._removeHighlight(u))}update(e){for(let t of this.graphicsViews())t.processUpdate(e)}attach(){let e=this.view,t=()=>this.requestUpdate(),n=this.layer.featureCollections;if(n!=null&&n.length){this._graphicsViewsFeatureCollectionMap=new Map;for(let r of n){let n=new d(this.view.featuresTilingScheme),i=new f({view:e,graphics:r.source,renderer:r.renderer,requestUpdateCallback:t,container:n});this._graphicsViewsFeatureCollectionMap.set(i,r),this.container.addChild(i.container),this.addHandles([a(()=>r.visible,e=>i.container.visible=e,o),a(()=>i.updating,()=>this.notifyChange(`updating`),o)],h)}this._onHighlightChange()}else this._createGraphicsViews()}detach(){this._destroyGraphicsViews()}moveEnd(){}viewChange(){for(let e of this.graphicsViews())e.viewChange()}isUpdating(){for(let e of this.graphicsViews())if(e.updating)return!0;return!1}_destroyGraphicsViews(){this.container.removeAllChildren(),this.removeHandles(h);for(let e of this.graphicsViews())e.destroy();this._graphicsViews=null,this._graphicsViewsFeatureCollectionMap=null}_createGraphicsViews(){this._destroyGraphicsViews();let e=this.view,t=()=>this.requestUpdate(),n=new d(this.view.featuresTilingScheme);n.fadeTransitionEnabled=!0;let r=new f({view:e,graphics:this.layer.graphics,requestUpdateCallback:t,container:n,layerId:this.layer.id});this.addHandles([this.layer.on(`graphic-update`,r.graphicUpdateHandler),a(()=>this.layer.visible,t=>{r.container.visible=t,t&&(r.update({state:e.state}),r.pushUpdate())},o),a(()=>r.updating,()=>this.notifyChange(`updating`),o)],h),this.container.addChild(r.container),this._graphicsViews=[r],this._onHighlightChange()}_onHighlightChange(){let e=this._getHighlightFilterGroups();for(let t of this._graphicsViews||[])t.setHighlightFilters(e);this._graphicsViewsFeatureCollectionMap?.forEach((t,n)=>{n.setHighlightFilters(e)})}};g=e([c(`esri.views.2d.layers.SketchLayerView2D`)],g);const _=g;export{_ as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as e}from"../../../../../core/lang.js";import{floatEqualAbsolute as t}from"../../../../../core/mathUtils.js";import{sqlAnd as n,sqlNotIn as r}from"../../../../../core/sql.js";import{isHostedAgolService as i}from"../../../../../layers/support/arcgisLayerUrl.js";import a from"../../../../../layers/support/FeatureFilter.js";import{createFeatureIdInfo as o}from"./featureServiceUtils.js";import{addFloorFilter as s,hasFloorFilter as c}from"./floorFilterUtils.js";import{getServiceGeometryType as l}from"./geometryUtils.js";import{ExceedsLimitCache as u}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as d,createFeatureSourceSchema as f}from"../schema/SourceSchema.js";import{getSortKey as p}from"../schema/processor/SimpleProcessorSchema.js";import{createStorageSchema as m}from"../schema/processor/StorageSchema.js";import{getAnnotationMatcherSchema as h}from"../../support/annodime/annotationSchema.js";class g{constructor(e){this.layer=e,this._cache=new u}getLabelingDeconflictionInfo(){return[]}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=this.layer.editingInfo?.lastEditDate!=null,i=this.layer.refreshInterval>0,a=!r&&i,o=d(`isSourceHosted`in n&&n.isSourceHosted,a,this.layer.capabilities,n.metadata.geometryType,e.extent,this.layer.fullExtent);return f(n,o,{definitionExpression:this.layer.definitionExpression,queryScaleRanges:this.layer.sublayers.items.map(e=>({subtypeCode:e.subtypeCode,minScale:e.minScale,maxScale:e.maxScale})),displayFilterEnabled:!1,displayFilterInfo:null,customParameters:this.layer.customParameters,gdbVersion:this.layer.gdbVersion,historicMoment:this.layer.historicMoment,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null,returnM:!1,returnZ:!1})}async createProcessorSchema(e,t,n){let{objectIdField:r,symbolCollection:i,referenceScale:a}=this.layer,o=await h(i,{cimAnalyzer:e.cimAnalyzer,cimResourceManager:e.cimResourceManager,store:e.store,scaleExpression:null,viewRotation:e.viewRotation}),s=p(null,null,r);return{storage:m(null,t.filters),mesh:{properties:{sortKey:s,timeZone:t.timeZone,returnMeshObjectId:!1,displayRefreshVersion:n,currentUser:t.currentUser},strategy:{type:`feature`},factory:{symbology:o,labels:{type:`label`,classes:[]},referenceScale:a}},expressionProperties:{timeExtent:null}}}get hasRequiredSupport(){return!0}get timeOptions(){return this.layer}addFilters(e,t){e=s(this.layer,e,t),this.layer.unplacedAnnotationsVisible||(e??=new a,e.where=n(e?.where,`${this.layer.statusField} = 0`));let i=this.layer.sublayers.filter(e=>!_(e,t)).map(e=>e.subtypeCode);if(!i.length)return e;e??=new a;let o=r(this.layer.subtypeField,i.toArray());return e.where=n(e.where,o),e}getUpdateHashProperties(e){return this.layer.destroyed?[]:[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>this.layer.unplacedAnnotationsVisible,()=>c(this.layer,e)?e.floors:null,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>this.layer.outFields,()=>this.layer.sublayers.map(({visible:e,minScale:t,maxScale:n})=>({visible:e,minScale:t,maxScale:n}))]}getRenderer(){return null}setGraphicOrigin(e){let t=this.layer.findSublayerForFeature(e);e.layer=e.sourceLayer=this.layer,e.origin=t?.graphicOrigin??this.layer.graphicOrigin}_createServiceInfo(t){let n=this.layer,{capabilities:r,editingInfo:a,globalIdField:s,datesInUnknownTimezone:c,dateFieldsTimeZone:u,subtypeField:d}=n,f=l(n),p=n.timeInfo?.toJSON(),m=n.spatialReference.toJSON(),h=e(this.layer.parsedUrl),g=this.layer.objectIdField,_=i(h.path),v=t.spatialReference.toJSON();return{type:`feature-service`,source:h,isSourceHosted:_,orderByFields:g,outSpatialReference:v,metadata:{timeReferenceUnknownClient:c,dateFieldsTimeZone:u,subtypeField:d,globalIdField:s,fieldsIndex:n.fieldsIndex.toJSON(),geometryType:f,featureIdInfo:o(n),timeInfo:p,spatialReference:m,outSpatialReference:v,attributeSpatialReference:this.layer.attributeSpatialReference?.toJSON(),subtypes:this.layer.subtypes?.map(e=>e.toJSON()),typeIdField:null,types:null,layerType:n.type,hasM:!1,hasZ:!1},queryMetadata:{supportsFormatPBF:r.query.supportsFormatPBF,supportsQuantization:!1,maxRecordCount:r.query.maxRecordCount,tileMaxRecordCount:r.query.tileMaxRecordCount,supportsCompactGeometry:r.query.supportsCompactGeometry,supportsDefaultSpatialReference:r.query.supportsDefaultSpatialReference,supportsMaxRecordCountFactor:r.query.supportsMaxRecordCountFactor,supportsCentroidOnDegeneratedQuantizedGeometry:r.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:r.query.supportsDegeneratedQuantizedGeometry,lastEditDate:a?.lastEditDate?.getTime(),supportsReturnExceededLimitGeometries:r.query.supportsReturnExceededLimitGeometries}}}}function _(e,n){return e.visible&&(e.minScale===0||t(n.scale,e.minScale)||n.scale<e.minScale)&&(e.maxScale===0||t(n.scale,e.maxScale)||n.scale>e.maxScale)}export{g as AnnotationLayerAdapter};
2
+ import{clone as e}from"../../../../../core/lang.js";import{floatEqualAbsolute as t}from"../../../../../core/mathUtils.js";import{sqlAnd as n,sqlNotIn as r}from"../../../../../core/sql.js";import{isHostedAgolService as i}from"../../../../../layers/support/arcgisLayerUrl.js";import a from"../../../../../layers/support/FeatureFilter.js";import{createFeatureIdInfo as o}from"./featureServiceUtils.js";import{addFloorFilter as s,hasFloorFilter as c}from"./floorFilterUtils.js";import{getServiceGeometryType as l}from"./geometryUtils.js";import{ExceedsLimitCache as u}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as d,createFeatureSourceSchema as f}from"../schema/SourceSchema.js";import{createServiceTimeSchema as p}from"../schema/TimeSchema.js";import{getSortKey as m}from"../schema/processor/SimpleProcessorSchema.js";import{createStorageSchema as h}from"../schema/processor/StorageSchema.js";import{getAnnotationMatcherSchema as g}from"../../support/annodime/annotationSchema.js";class _{constructor(e){this.layer=e,this._cache=new u}getLabelingDeconflictionInfo(){return[]}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=this.layer.editingInfo?.lastEditDate!=null,i=this.layer.refreshInterval>0,a=!r&&i,o=d(`isSourceHosted`in n&&n.isSourceHosted,a,this.layer.capabilities,n.metadata.geometryType,e.extent,this.layer.fullExtent);return f(n,o,{definitionExpression:this.layer.definitionExpression,queryScaleRanges:this.layer.sublayers.items.map(e=>({subtypeCode:e.subtypeCode,minScale:e.minScale,maxScale:e.maxScale})),displayFilterEnabled:!1,displayFilterInfo:null,customParameters:this.layer.customParameters,gdbVersion:this.layer.gdbVersion,historicMoment:this.layer.historicMoment,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null,returnM:!1,returnZ:!1})}async createProcessorSchema(e,t,n){let{objectIdField:r,symbolCollection:i,referenceScale:a}=this.layer,o=await g(i,{cimAnalyzer:e.cimAnalyzer,cimResourceManager:e.cimResourceManager,store:e.store,scaleExpression:null,viewRotation:e.viewRotation}),s=m(null,null,r);return{storage:h(null,t.filters),mesh:{properties:{sortKey:s,timeZone:t.timeZone,returnMeshObjectId:!1,displayRefreshVersion:n,currentUser:t.currentUser},strategy:{type:`feature`},factory:{symbology:o,labels:{type:`label`,classes:[]},referenceScale:a}},expressionProperties:{timeExtent:null}}}get hasRequiredSupport(){return!0}get timeOptions(){return this.layer}addFilters(e,t){e=s(this.layer,e,t),this.layer.unplacedAnnotationsVisible||(e??=new a,e.where=n(e?.where,`${this.layer.statusField} = 0`));let i=this.layer.sublayers.filter(e=>!v(e,t)).map(e=>e.subtypeCode);if(!i.length)return e;e??=new a;let o=r(this.layer.subtypeField,i.toArray());return e.where=n(e.where,o),e}getUpdateHashProperties(e){return this.layer.destroyed?[]:[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>this.layer.unplacedAnnotationsVisible,()=>c(this.layer,e)?e.floors:null,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>this.layer.outFields,()=>this.layer.sublayers.map(({visible:e,minScale:t,maxScale:n})=>({visible:e,minScale:t,maxScale:n}))]}getRenderer(){return null}setGraphicOrigin(e){let t=this.layer.findSublayerForFeature(e);e.layer=e.sourceLayer=this.layer,e.origin=t?.graphicOrigin??this.layer.graphicOrigin}_createServiceInfo(t){let n=this.layer,{capabilities:r,editingInfo:a,globalIdField:s,datesInUnknownTimezone:c,dateFieldsTimeZone:u,subtypeField:d}=n,f=l(n),m=p(n.timeInfo),h=n.spatialReference.toJSON(),g=e(this.layer.parsedUrl),_=this.layer.objectIdField,v=i(g.path),y=t.spatialReference.toJSON();return{type:`feature-service`,source:g,isSourceHosted:v,orderByFields:_,outSpatialReference:y,metadata:{timeReferenceUnknownClient:c,dateFieldsTimeZone:u,subtypeField:d,globalIdField:s,fieldsIndex:n.fieldsIndex.toJSON(),geometryType:f,featureIdInfo:o(n),timeInfo:m,spatialReference:h,outSpatialReference:y,attributeSpatialReference:this.layer.attributeSpatialReference?.toJSON(),subtypes:this.layer.subtypes?.map(e=>e.toJSON()),typeIdField:null,types:null,layerType:n.type,hasM:!1,hasZ:!1},queryMetadata:{supportsCacheHint:r.query.supportsCacheHint,supportsFormatPBF:r.query.supportsFormatPBF,supportsQuantization:!1,maxRecordCount:r.query.maxRecordCount,tileMaxRecordCount:r.query.tileMaxRecordCount,supportsCompactGeometry:r.query.supportsCompactGeometry,supportsDefaultSpatialReference:r.query.supportsDefaultSpatialReference,supportsMaxRecordCountFactor:r.query.supportsMaxRecordCountFactor,supportsCentroidOnDegeneratedQuantizedGeometry:r.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:r.query.supportsDegeneratedQuantizedGeometry,lastEditDate:a?.lastEditDate?.getTime(),supportsReturnExceededLimitGeometries:r.query.supportsReturnExceededLimitGeometries}}}}function v(e,n){return e.visible&&(e.minScale===0||t(n.scale,e.minScale)||n.scale<e.minScale)&&(e.maxScale===0||t(n.scale,e.maxScale)||n.scale>e.maxScale)}export{_ as AnnotationLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as e}from"../../../../../core/lang.js";import{isHostedAgolService as t}from"../../../../../layers/support/arcgisLayerUrl.js";import{getServiceGeometryType as n}from"./geometryUtils.js";import{createLabelVVEvaluator as r}from"./labelingUtils.js";import{ExceedsLimitCache as i}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as a}from"../schema/SourceSchema.js";import{createSimpleProcessorSchema as o}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as s}from"../support/rendererUtils.js";class c{constructor(e){this.layer=e,this._cache=new i}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:r(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return a(n,null,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:this.layer.customParameters,gdbVersion:null,historicMoment:null,postQueryFilter:null,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache})}createProcessorSchema(e,t,n){let{fields:r,geometryType:i,orderBy:a,objectIdField:s,renderer:c,labelingInfo:l,labelsVisible:u}=this.layer,d={featureReduction:null,labelingInfoSource:this.layer.id,fields:r.map(e=>e.toJSON()),geometryType:i,labelingInfo:l,labelsVisible:u,objectIdField:s,orderBy:a??`default`,renderer:c?.clone()};return o(e,t,d,n)}get hasRequiredSupport(){return s(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>this.layer.outFields,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>this.layer.orderBy]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}_createServiceInfo(r){let i=this.layer,{capabilities:a,editingInfo:o,objectIdField:s,globalIdField:c,datesInUnknownTimezone:l,dateFieldsTimeZone:u,orderBy:d,parsedUrl:f,hasZ:p,hasM:m}=i,h=i.fieldsIndex.toJSON(),g=n(i),_=i.timeInfo?.toJSON(),v=i.spatialReference.toJSON(),y=e(f),b=s;if(d?.length){let e=!d[0].valueExpression&&d[0].field;e&&(b=e)}let x=t(y.path),S=r.spatialReference.toJSON();return{type:`feature-service`,source:y,isSourceHosted:x,orderByFields:b,outSpatialReference:S,metadata:{timeReferenceUnknownClient:l,dateFieldsTimeZone:u,globalIdField:c,fieldsIndex:h,geometryType:g,hasZ:p??!1,hasM:m??!1,featureIdInfo:{type:`object-id`,fieldName:s},timeInfo:_,spatialReference:v,outSpatialReference:S,attributeSpatialReference:null,subtypeField:null,subtypes:null,typeIdField:null,types:null},queryMetadata:{maxRecordCount:a.query.maxRecordCount,tileMaxRecordCount:a.query.tileMaxRecordCount,supportsCompactGeometry:a.query.supportsCompactGeometry,supportsDefaultSpatialReference:a.query.supportsDefaultSpatialReference,supportsFormatPBF:a.query.supportsFormatPBF,supportsMaxRecordCountFactor:a.query.supportsMaxRecordCountFactor,supportsQuantization:a.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:a.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:a.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:a.query.supportsReturnExceededLimitGeometries,lastEditDate:o?.lastEditDate?.getTime()}}}}export{c as CatalogFootprintLayerAdapter};
2
+ import{clone as e}from"../../../../../core/lang.js";import{isHostedAgolService as t}from"../../../../../layers/support/arcgisLayerUrl.js";import{getServiceGeometryType as n}from"./geometryUtils.js";import{createLabelVVEvaluator as r}from"./labelingUtils.js";import{ExceedsLimitCache as i}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as a}from"../schema/SourceSchema.js";import{createServiceTimeSchema as o}from"../schema/TimeSchema.js";import{createSimpleProcessorSchema as s}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as c}from"../support/rendererUtils.js";class l{constructor(e){this.layer=e,this._cache=new i}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:r(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return a(n,null,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:this.layer.customParameters,gdbVersion:null,historicMoment:null,postQueryFilter:null,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache})}createProcessorSchema(e,t,n){let{fields:r,geometryType:i,orderBy:a,objectIdField:o,renderer:c,labelingInfo:l,labelsVisible:u}=this.layer,d={featureReduction:null,labelingInfoSource:this.layer.id,fields:r.map(e=>e.toJSON()),geometryType:i,labelingInfo:l,labelsVisible:u,objectIdField:o,orderBy:a??`default`,renderer:c?.clone()};return s(e,t,d,n)}get hasRequiredSupport(){return c(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>this.layer.outFields,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>this.layer.orderBy]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}_createServiceInfo(r){let i=this.layer,{capabilities:a,editingInfo:s,objectIdField:c,globalIdField:l,datesInUnknownTimezone:u,dateFieldsTimeZone:d,orderBy:f,parsedUrl:p,hasZ:m,hasM:h}=i,g=i.fieldsIndex.toJSON(),_=n(i),v=o(i.timeInfo),y=i.spatialReference.toJSON(),b=e(p),x=c;if(f?.length){let e=!f[0].valueExpression&&f[0].field;e&&(x=e)}let S=t(b.path),C=r.spatialReference.toJSON();return{type:`feature-service`,source:b,isSourceHosted:S,orderByFields:x,outSpatialReference:C,metadata:{timeReferenceUnknownClient:u,dateFieldsTimeZone:d,globalIdField:l,fieldsIndex:g,geometryType:_,hasZ:m??!1,hasM:h??!1,featureIdInfo:{type:`object-id`,fieldName:c},timeInfo:v,spatialReference:y,outSpatialReference:C,attributeSpatialReference:null,subtypeField:null,subtypes:null,typeIdField:null,types:null},queryMetadata:{supportsCacheHint:a.query.supportsCacheHint,maxRecordCount:a.query.maxRecordCount,tileMaxRecordCount:a.query.tileMaxRecordCount,supportsCompactGeometry:a.query.supportsCompactGeometry,supportsDefaultSpatialReference:a.query.supportsDefaultSpatialReference,supportsFormatPBF:a.query.supportsFormatPBF,supportsMaxRecordCountFactor:a.query.supportsMaxRecordCountFactor,supportsQuantization:a.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:a.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:a.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:a.query.supportsReturnExceededLimitGeometries,lastEditDate:s?.lastEditDate?.getTime()}}}}export{l as CatalogFootprintLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as e}from"../../../../../core/lang.js";import{isHostedAgolService as t}from"../../../../../layers/support/arcgisLayerUrl.js";import{createFeatureIdInfo as n}from"./featureServiceUtils.js";import{getServiceGeometryType as r}from"./geometryUtils.js";import{ExceedsLimitCache as i}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as a,createFeatureSourceSchema as o}from"../schema/SourceSchema.js";import{getSortKey as s}from"../schema/processor/SimpleProcessorSchema.js";import{createStorageSchema as c}from"../schema/processor/StorageSchema.js";import{getDimensionMatcherSchema as l}from"../../support/annodime/dimensionSchema.js";class u{constructor(e){this.layer=e,this._cache=new i}getLabelingDeconflictionInfo(){return[]}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=this.layer.editingInfo?.lastEditDate!=null,i=this.layer.refreshInterval>0,s=!r&&i,c=a(`isSourceHosted`in n&&n.isSourceHosted,s,this.layer.capabilities,n.metadata.geometryType,e.extent,this.layer.fullExtent);return o(n,c,{definitionExpression:this.layer.definitionExpression,queryScaleRanges:[],displayFilterEnabled:!1,displayFilterInfo:null,customParameters:this.layer.customParameters,gdbVersion:this.layer.gdbVersion,historicMoment:this.layer.historicMoment,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null,returnM:!1,returnZ:!1})}async createProcessorSchema(e,t,n){let{objectIdField:r,referenceScale:i,styleCollection:a}=this.layer,o=await l(a,{cimAnalyzer:e.cimAnalyzer,cimResourceManager:e.cimResourceManager,store:e.store,scaleExpression:null,viewRotation:e.viewRotation}),u=s(null,null,r);return{storage:c(null,t.filters),mesh:{properties:{sortKey:u,timeZone:t.timeZone,returnMeshObjectId:!1,displayRefreshVersion:n,currentUser:t.currentUser},strategy:{type:`feature`},factory:{symbology:o,labels:{type:`label`,classes:[]},referenceScale:i}},expressionProperties:{timeExtent:null}}}get hasRequiredSupport(){return!0}get timeOptions(){return this.layer}addFilters(e){return e}getUpdateHashProperties(){return this.layer.destroyed?[]:[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>this.layer.outFields]}getRenderer(){return null}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}_createServiceInfo(i){let a=this.layer,{capabilities:o,editingInfo:s,globalIdField:c,datesInUnknownTimezone:l,dateFieldsTimeZone:u,subtypeField:d}=a,f=r(a),p=a.timeInfo?.toJSON(),m=a.spatialReference.toJSON(),h=e(this.layer.parsedUrl),g=this.layer.objectIdField,_=t(h.path),v=i.spatialReference.toJSON();return{type:`feature-service`,source:h,isSourceHosted:_,orderByFields:g,outSpatialReference:v,metadata:{timeReferenceUnknownClient:l,dateFieldsTimeZone:u,subtypeField:d,globalIdField:c,fieldsIndex:a.fieldsIndex.toJSON(),geometryType:f,featureIdInfo:n(a),timeInfo:p,spatialReference:m,outSpatialReference:v,attributeSpatialReference:this.layer.attributeSpatialReference?.toJSON(),subtypes:this.layer.subtypes?.map(e=>e.toJSON()),typeIdField:null,types:null,layerType:a.type,hasM:!1,hasZ:!1},queryMetadata:{supportsFormatPBF:o.query.supportsFormatPBF,supportsQuantization:!1,maxRecordCount:o.query.maxRecordCount,tileMaxRecordCount:o.query.tileMaxRecordCount,supportsCompactGeometry:o.query.supportsCompactGeometry,supportsDefaultSpatialReference:o.query.supportsDefaultSpatialReference,supportsMaxRecordCountFactor:o.query.supportsMaxRecordCountFactor,supportsCentroidOnDegeneratedQuantizedGeometry:o.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:o.query.supportsDegeneratedQuantizedGeometry,lastEditDate:s?.lastEditDate?.getTime(),supportsReturnExceededLimitGeometries:o.query.supportsReturnExceededLimitGeometries}}}}export{u as DimensionLayerAdapter};
2
+ import{clone as e}from"../../../../../core/lang.js";import{isHostedAgolService as t}from"../../../../../layers/support/arcgisLayerUrl.js";import{createFeatureIdInfo as n}from"./featureServiceUtils.js";import{getServiceGeometryType as r}from"./geometryUtils.js";import{ExceedsLimitCache as i}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as a,createFeatureSourceSchema as o}from"../schema/SourceSchema.js";import{createServiceTimeSchema as s}from"../schema/TimeSchema.js";import{getSortKey as c}from"../schema/processor/SimpleProcessorSchema.js";import{createStorageSchema as l}from"../schema/processor/StorageSchema.js";import{getDimensionMatcherSchema as u}from"../../support/annodime/dimensionSchema.js";class d{constructor(e){this.layer=e,this._cache=new i}getLabelingDeconflictionInfo(){return[]}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=this.layer.editingInfo?.lastEditDate!=null,i=this.layer.refreshInterval>0,s=!r&&i,c=a(`isSourceHosted`in n&&n.isSourceHosted,s,this.layer.capabilities,n.metadata.geometryType,e.extent,this.layer.fullExtent);return o(n,c,{definitionExpression:this.layer.definitionExpression,queryScaleRanges:[],displayFilterEnabled:!1,displayFilterInfo:null,customParameters:this.layer.customParameters,gdbVersion:this.layer.gdbVersion,historicMoment:this.layer.historicMoment,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null,returnM:!1,returnZ:!1})}async createProcessorSchema(e,t,n){let{objectIdField:r,referenceScale:i,styleCollection:a}=this.layer,o=await u(a,{cimAnalyzer:e.cimAnalyzer,cimResourceManager:e.cimResourceManager,store:e.store,scaleExpression:null,viewRotation:e.viewRotation}),s=c(null,null,r);return{storage:l(null,t.filters),mesh:{properties:{sortKey:s,timeZone:t.timeZone,returnMeshObjectId:!1,displayRefreshVersion:n,currentUser:t.currentUser},strategy:{type:`feature`},factory:{symbology:o,labels:{type:`label`,classes:[]},referenceScale:i}},expressionProperties:{timeExtent:null}}}get hasRequiredSupport(){return!0}get timeOptions(){return this.layer}addFilters(e){return e}getUpdateHashProperties(){return this.layer.destroyed?[]:[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>this.layer.outFields]}getRenderer(){return null}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}_createServiceInfo(i){let a=this.layer,{capabilities:o,editingInfo:c,globalIdField:l,datesInUnknownTimezone:u,dateFieldsTimeZone:d,subtypeField:f}=a,p=r(a),m=s(a.timeInfo),h=a.spatialReference.toJSON(),g=e(this.layer.parsedUrl),_=this.layer.objectIdField,v=t(g.path),y=i.spatialReference.toJSON();return{type:`feature-service`,source:g,isSourceHosted:v,orderByFields:_,outSpatialReference:y,metadata:{timeReferenceUnknownClient:u,dateFieldsTimeZone:d,subtypeField:f,globalIdField:l,fieldsIndex:a.fieldsIndex.toJSON(),geometryType:p,featureIdInfo:n(a),timeInfo:m,spatialReference:h,outSpatialReference:y,attributeSpatialReference:this.layer.attributeSpatialReference?.toJSON(),subtypes:this.layer.subtypes?.map(e=>e.toJSON()),typeIdField:null,types:null,layerType:a.type,hasM:!1,hasZ:!1},queryMetadata:{supportsCacheHint:o.query.supportsCacheHint,supportsFormatPBF:o.query.supportsFormatPBF,supportsQuantization:!1,maxRecordCount:o.query.maxRecordCount,tileMaxRecordCount:o.query.tileMaxRecordCount,supportsCompactGeometry:o.query.supportsCompactGeometry,supportsDefaultSpatialReference:o.query.supportsDefaultSpatialReference,supportsMaxRecordCountFactor:o.query.supportsMaxRecordCountFactor,supportsCentroidOnDegeneratedQuantizedGeometry:o.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:o.query.supportsDegeneratedQuantizedGeometry,lastEditDate:c?.lastEditDate?.getTime(),supportsReturnExceededLimitGeometries:o.query.supportsReturnExceededLimitGeometries}}}}export{d as DimensionLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as e}from"../../../../../core/lang.js";import{sqlAnd as t}from"../../../../../core/sql.js";import{isHostedAgolService as n}from"../../../../../layers/support/arcgisLayerUrl.js";import{canConvertSqlRelativeTime as r,sqlRelativeTimeToAbsolute as i}from"../../../../../layers/support/relativeTimeQueryUtils.js";import{getUtilityNetworkFields as a}from"../../../../../networks/support/networkFieldUtils.js";import{getEffectiveFeatureReduction as o}from"./featureReductionUtils.js";import{createFeatureIdInfo as s}from"./featureServiceUtils.js";import{addFloorFilter as c,hasFloorFilter as l}from"./floorFilterUtils.js";import{getServiceGeometryType as u}from"./geometryUtils.js";import{createLabelVVEvaluator as d}from"./labelingUtils.js";import{ExceedsLimitCache as f}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as p,createFeatureSourceSchema as m}from"../schema/SourceSchema.js";import{createSimpleProcessorSchema as h}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as g}from"../support/rendererUtils.js";class _{constructor(e){this.layer=e,this._cache=new f}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:d(this.layer.renderer)}}]}async createSourceSchema(e,n){let a=this._createServiceInfo(e),o=this.layer.editingInfo?.lastEditDate!=null,s=this.layer.refreshInterval>0,c=!o&&s,l=p(a.isSourceHosted,c,this.layer.capabilities,a.metadata.geometryType,e.extent,this.layer.fullExtent),u=this.layer.subtypeCode==null?null:`${this.layer.subtypeField} = ${this.layer.subtypeCode}`,d=t(this.layer.definitionExpression,u),f=r(d)?await i(this.layer.fieldsIndex,d,this.layer.capabilities.query.relativeTimeBinWindow):d,h=d===f?null:{where:d},{gdbVersion:g,apiKey:_,historicMoment:v,timeExtent:y,customParameters:b,displayFilterInfo:x}=this.layer;return m(a,l,{definitionExpression:f,returnZ:e.returnZ,returnM:e.returnM,postQueryFilter:h,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:x,customParameters:b,gdbVersion:g,historicMoment:v,timeExtent:y,apiKey:_,sourceRefreshVersion:n,availableFields:e.availableFields,cache:this._cache})}createProcessorSchema(e,t,n){let{fields:r,renderer:i,geometryType:a,labelingInfo:s,labelsVisible:c,orderBy:l,objectIdField:u,trackInfo:d,symbolLayerDrawing:f}=this.layer,p={fields:r.map(e=>e.toJSON()),renderer:i?.clone(),labelingInfoSource:this.layer.id,featureReduction:o(this.layer,t),geometryType:a,labelingInfo:s,labelsVisible:c,objectIdField:u,orderBy:l??`default`,trackInfo:d,symbolLayerDrawing:f};return h(e,t,p,n)}get hasRequiredSupport(){return g(this.layer.renderer)}get timeOptions(){return this.layer}addFilters(e,t){return c(this.layer,e,t)}getUpdateHashProperties(e){return this.layer.destroyed?[]:[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>o(this.layer,e),()=>l(this.layer,e)?e.floors:null,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>this.layer.orderBy,()=>this.layer.outFields,()=>this.layer.renderer,()=>this.layer.subtypeCode,()=>this.layer.trackInfo,()=>this.layer.symbolLayerDrawing?.drawOrder,()=>this.layer.symbolLayerDrawing?.enabled,()=>e?.requiredFieldsOptions?.featureTitleFields&&this.layer.featureTitleFields,()=>e?.requiredFieldsOptions?.utilityNetworkFields&&a(e,this.layer)]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(t){let r=this.layer,{capabilities:i,editingInfo:a,typeIdField:o,globalIdField:c,datesInUnknownTimezone:l,dateFieldsTimeZone:d,orderBy:f,subtypeField:p}=r,m=r.fieldsIndex.toJSON(),h=u(r),{hasZ:g,hasM:_}=r,v=r.timeInfo?.toJSON(),y=r.spatialReference.toJSON(),b=r.types?.map(e=>e.toJSON()),x=e(this.layer.parsedUrl);this.layer.dynamicDataSource&&(x.query={layer:JSON.stringify({source:this.layer.dynamicDataSource})});let S=this.layer.objectIdField;if(f?.length){let e=!f[0].valueExpression&&f[0].field;e&&(S=e)}let C=n(x.path),w=t.spatialReference.toJSON();return{type:`feature-service`,source:x,isSourceHosted:C,orderByFields:S,outSpatialReference:w,metadata:{typeIdField:o??void 0,types:b,timeReferenceUnknownClient:l,dateFieldsTimeZone:d,subtypeField:p,globalIdField:c,fieldsIndex:m,geometryType:h,hasZ:g,hasM:_,featureIdInfo:s(r),timeInfo:v,spatialReference:y,outSpatialReference:w,attributeSpatialReference:null,subtypes:this.layer.subtypes?.map(e=>e.toJSON())},queryMetadata:{maxRecordCount:i.query.maxRecordCount,tileMaxRecordCount:i.query.tileMaxRecordCount,supportsCompactGeometry:i.query.supportsCompactGeometry,supportsDefaultSpatialReference:i.query.supportsDefaultSpatialReference,supportsFormatPBF:i.query.supportsFormatPBF,supportsMaxRecordCountFactor:i.query.supportsMaxRecordCountFactor,supportsQuantization:i.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:i.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:i.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:i.query.supportsReturnExceededLimitGeometries,lastEditDate:a?.lastEditDate?.getTime()}}}}export{_ as FeatureLayerAdapter};
2
+ import{clone as e}from"../../../../../core/lang.js";import{sqlAnd as t}from"../../../../../core/sql.js";import{isHostedAgolService as n}from"../../../../../layers/support/arcgisLayerUrl.js";import{canConvertSqlRelativeTime as r,sqlRelativeTimeToAbsolute as i}from"../../../../../layers/support/relativeTimeQueryUtils.js";import{getUtilityNetworkFields as a}from"../../../../../networks/support/networkFieldUtils.js";import{getEffectiveFeatureReduction as o}from"./featureReductionUtils.js";import{createFeatureIdInfo as s}from"./featureServiceUtils.js";import{addFloorFilter as c,hasFloorFilter as l}from"./floorFilterUtils.js";import{getServiceGeometryType as u}from"./geometryUtils.js";import{createLabelVVEvaluator as d}from"./labelingUtils.js";import{ExceedsLimitCache as f}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as p,createFeatureSourceSchema as m}from"../schema/SourceSchema.js";import{createServiceTimeSchema as h}from"../schema/TimeSchema.js";import{createSimpleProcessorSchema as g}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as _}from"../support/rendererUtils.js";class v{constructor(e){this.layer=e,this._cache=new f}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:d(this.layer.renderer)}}]}async createSourceSchema(e,n){let a=this._createServiceInfo(e),o=this.layer.editingInfo?.lastEditDate!=null,s=this.layer.refreshInterval>0,c=!o&&s,l=p(a.isSourceHosted,c,this.layer.capabilities,a.metadata.geometryType,e.extent,this.layer.fullExtent),u=this.layer.subtypeCode==null?null:`${this.layer.subtypeField} = ${this.layer.subtypeCode}`,d=t(this.layer.definitionExpression,u),f=r(d)?await i(this.layer.fieldsIndex,d,this.layer.capabilities.query.relativeTimeBinWindow):d,h=d===f?null:{where:d},{gdbVersion:g,apiKey:_,historicMoment:v,timeExtent:y,customParameters:b,displayFilterInfo:x}=this.layer;return m(a,l,{definitionExpression:f,returnZ:e.returnZ,returnM:e.returnM,postQueryFilter:h,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:x,customParameters:b,gdbVersion:g,historicMoment:v,timeExtent:y,apiKey:_,sourceRefreshVersion:n,availableFields:e.availableFields,cache:this._cache})}createProcessorSchema(e,t,n){let{fields:r,renderer:i,geometryType:a,labelingInfo:s,labelsVisible:c,orderBy:l,objectIdField:u,trackInfo:d,symbolLayerDrawing:f}=this.layer,p={fields:r.map(e=>e.toJSON()),renderer:i?.clone(),labelingInfoSource:this.layer.id,featureReduction:o(this.layer,t),geometryType:a,labelingInfo:s,labelsVisible:c,objectIdField:u,orderBy:l??`default`,trackInfo:d,symbolLayerDrawing:f};return g(e,t,p,n)}get hasRequiredSupport(){return _(this.layer.renderer)}get timeOptions(){return this.layer}addFilters(e,t){return c(this.layer,e,t)}getUpdateHashProperties(e){return this.layer.destroyed?[]:[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>o(this.layer,e),()=>l(this.layer,e)?e.floors:null,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>this.layer.orderBy,()=>this.layer.outFields,()=>this.layer.renderer,()=>this.layer.subtypeCode,()=>this.layer.trackInfo,()=>this.layer.symbolLayerDrawing?.drawOrder,()=>this.layer.symbolLayerDrawing?.enabled,()=>e?.requiredFieldsOptions?.featureTitleFields&&this.layer.featureTitleFields,()=>e?.requiredFieldsOptions?.utilityNetworkFields&&a(e,this.layer)]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(t){let r=this.layer,{capabilities:i,editingInfo:a,typeIdField:o,globalIdField:c,datesInUnknownTimezone:l,dateFieldsTimeZone:d,orderBy:f,subtypeField:p}=r,m=r.fieldsIndex.toJSON(),g=u(r),{hasZ:_,hasM:v}=r,y=h(r.timeInfo),b=r.spatialReference.toJSON(),x=r.types?.map(e=>e.toJSON()),S=e(this.layer.parsedUrl);this.layer.dynamicDataSource&&(S.query={layer:JSON.stringify({source:this.layer.dynamicDataSource})});let C=this.layer.objectIdField;if(f?.length){let e=!f[0].valueExpression&&f[0].field;e&&(C=e)}let w=n(S.path),T=t.spatialReference.toJSON();return{type:`feature-service`,source:S,isSourceHosted:w,orderByFields:C,outSpatialReference:T,metadata:{typeIdField:o??void 0,types:x,timeReferenceUnknownClient:l,dateFieldsTimeZone:d,subtypeField:p,globalIdField:c,fieldsIndex:m,geometryType:g,hasZ:_,hasM:v,featureIdInfo:s(r),timeInfo:y,spatialReference:b,outSpatialReference:T,attributeSpatialReference:null,subtypes:this.layer.subtypes?.map(e=>e.toJSON())},queryMetadata:{supportsCacheHint:i.query.supportsCacheHint,maxRecordCount:i.query.maxRecordCount,tileMaxRecordCount:i.query.tileMaxRecordCount,supportsCompactGeometry:i.query.supportsCompactGeometry,supportsDefaultSpatialReference:i.query.supportsDefaultSpatialReference,supportsFormatPBF:i.query.supportsFormatPBF,supportsMaxRecordCountFactor:i.query.supportsMaxRecordCountFactor,supportsQuantization:i.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:i.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:i.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:i.query.supportsReturnExceededLimitGeometries,lastEditDate:a?.lastEditDate?.getTime()}}}}export{v as FeatureLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../../../../core/Error.js";import{hasTimeOptions as t}from"../../../../../layers/support/timeSupport.js";import{getEffectiveFeatureReduction as n}from"./featureReductionUtils.js";import{createFeatureIdInfo as r}from"./featureServiceUtils.js";import{getServiceGeometryType as i}from"./geometryUtils.js";import{createLabelVVEvaluator as a}from"./labelingUtils.js";import{ExceedsLimitCache as o}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as s}from"../schema/SourceSchema.js";import{createSimpleProcessorSchema as c}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as l}from"../support/rendererUtils.js";function u(t){if(!(`openPorts`in t))throw new e(`featurelayer:source-not-supported`,`source is not supported`)}class d{constructor(e){this.layer=e,this._cache=new o}openMessagePorts(){return u(this.layer.source),this.layer.source.openPorts()}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:a(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return s(n,null,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:this.layer.customParameters,gdbVersion:null,historicMoment:null,timeExtent:`timeExtent`in this.layer?this.layer.timeExtent:null,apiKey:null,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,t,r){let{fields:i,renderer:a,geometryType:o,labelingInfo:s,labelsVisible:l,orderBy:u,objectIdField:d}=this.layer,f=`trackInfo`in this.layer?this.layer.trackInfo:null,p={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:n(this.layer,t),geometryType:o,labelingInfo:s,labelsVisible:l,objectIdField:d,orderBy:u??`default`,trackInfo:f};return c(e,t,p,r)}get hasRequiredSupport(){return l(this.layer.renderer)}get timeOptions(){return t(this.layer)?this.layer:null}getUpdateHashProperties(e){return[()=>this.layer.definitionExpression,()=>this.layer.displayFilterInfo,()=>this.layer.orderBy,()=>`outFields`in this.layer?this.layer.outFields:null,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>n(this.layer,e),()=>`trackInfo`in this.layer?this.layer.trackInfo:null]}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){`trackGraphicOrigin`in this.layer&&(e.origin=this.layer.trackGraphicOrigin)}getRenderer(){return this.layer.renderer}_createServiceInfo(e){let t=this.layer,{capabilities:n,objectIdField:a}=t,o=t.fieldsIndex.toJSON(),s=i(t),c=`timeInfo`in t?t.timeInfo?.toJSON():null,l=t.spatialReference.toJSON();u(t.source);let d=a,f=e.spatialReference.toJSON();return{type:`memory`,orderByFields:d,outSpatialReference:f,metadata:{fieldsIndex:o,geometryType:s,featureIdInfo:r(t),hasZ:`hasZ`in t&&t.hasZ,hasM:`hasM`in t&&t.hasM,timeInfo:c,spatialReference:l,outSpatialReference:f,attributeSpatialReference:null,subtypes:null,subtypeField:null,globalIdField:null,typeIdField:null,types:null,timeReferenceUnknownClient:`datesInUnknownTimezone`in t?t.datesInUnknownTimezone:null,dateFieldsTimeZone:`dateFieldsTimeZone`in t?t.dateFieldsTimeZone:null},queryMetadata:{maxRecordCount:n.query.maxRecordCount,tileMaxRecordCount:n.query.tileMaxRecordCount,supportsCompactGeometry:n.query.supportsCompactGeometry,supportsDefaultSpatialReference:n.query.supportsDefaultSpatialReference,supportsFormatPBF:n.query.supportsFormatPBF,supportsMaxRecordCountFactor:n.query.supportsMaxRecordCountFactor,supportsQuantization:n.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:n.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:n.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:n.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}export{d as InMemoryLayerAdapter};
2
+ import e from"../../../../../core/Error.js";import{hasTimeOptions as t}from"../../../../../layers/support/timeSupport.js";import{getEffectiveFeatureReduction as n}from"./featureReductionUtils.js";import{createFeatureIdInfo as r}from"./featureServiceUtils.js";import{getServiceGeometryType as i}from"./geometryUtils.js";import{createLabelVVEvaluator as a}from"./labelingUtils.js";import{ExceedsLimitCache as o}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as s}from"../schema/SourceSchema.js";import{createServiceTimeSchema as c}from"../schema/TimeSchema.js";import{createSimpleProcessorSchema as l}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as u}from"../support/rendererUtils.js";function d(t){if(!(`openPorts`in t))throw new e(`featurelayer:source-not-supported`,`source is not supported`)}class f{constructor(e){this.layer=e,this._cache=new o}openMessagePorts(){return d(this.layer.source),this.layer.source.openPorts()}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:a(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return s(n,null,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:this.layer.customParameters,gdbVersion:null,historicMoment:null,timeExtent:`timeExtent`in this.layer?this.layer.timeExtent:null,apiKey:null,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,t,r){let{fields:i,renderer:a,geometryType:o,labelingInfo:s,labelsVisible:c,orderBy:u,objectIdField:d}=this.layer,f=`trackInfo`in this.layer?this.layer.trackInfo:null,p={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:n(this.layer,t),geometryType:o,labelingInfo:s,labelsVisible:c,objectIdField:d,orderBy:u??`default`,trackInfo:f};return l(e,t,p,r)}get hasRequiredSupport(){return u(this.layer.renderer)}get timeOptions(){return t(this.layer)?this.layer:null}getUpdateHashProperties(e){return[()=>this.layer.definitionExpression,()=>this.layer.displayFilterInfo,()=>this.layer.orderBy,()=>`outFields`in this.layer?this.layer.outFields:null,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>n(this.layer,e),()=>`trackInfo`in this.layer?this.layer.trackInfo:null]}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){`trackGraphicOrigin`in this.layer&&(e.origin=this.layer.trackGraphicOrigin)}getRenderer(){return this.layer.renderer}_createServiceInfo(e){let t=this.layer,{capabilities:n,objectIdField:a}=t,o=t.fieldsIndex.toJSON(),s=i(t),l=`timeInfo`in t?c(t.timeInfo):null,u=t.spatialReference.toJSON();d(t.source);let f=a,p=e.spatialReference.toJSON();return{type:`memory`,orderByFields:f,outSpatialReference:p,metadata:{fieldsIndex:o,geometryType:s,featureIdInfo:r(t),hasZ:`hasZ`in t&&t.hasZ,hasM:`hasM`in t&&t.hasM,timeInfo:l,spatialReference:u,outSpatialReference:p,attributeSpatialReference:null,subtypes:null,subtypeField:null,globalIdField:null,typeIdField:null,types:null,timeReferenceUnknownClient:`datesInUnknownTimezone`in t?t.datesInUnknownTimezone:null,dateFieldsTimeZone:`dateFieldsTimeZone`in t?t.dateFieldsTimeZone:null},queryMetadata:{supportsCacheHint:n.query.supportsCacheHint,maxRecordCount:n.query.maxRecordCount,tileMaxRecordCount:n.query.tileMaxRecordCount,supportsCompactGeometry:n.query.supportsCompactGeometry,supportsDefaultSpatialReference:n.query.supportsDefaultSpatialReference,supportsFormatPBF:n.query.supportsFormatPBF,supportsMaxRecordCountFactor:n.query.supportsMaxRecordCountFactor,supportsQuantization:n.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:n.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:n.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:n.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}export{f as InMemoryLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{sqlAnd as e}from"../../../../../core/sql.js";import{systemIsSpatialFieldName as t}from"../../../../../layers/knowledgeGraph/constants.js";import n from"../../../../../layers/support/FeatureFilter.js";import{getEffectiveFeatureReduction as r}from"./featureReductionUtils.js";import{getServiceGeometryType as i}from"./geometryUtils.js";import{createLabelVVEvaluator as a}from"./labelingUtils.js";import{ExceedsLimitCache as o}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as s}from"../schema/SourceSchema.js";import{createSimpleProcessorSchema as c}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as l}from"../support/rendererUtils.js";class u{constructor(e){this.layer=e,this._cache=new o}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:a(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return s(n,null,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:null,gdbVersion:null,historicMoment:null,timeExtent:this.layer.timeExtent,apiKey:null,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,t,n){let{fields:i,renderer:a,geometryType:o,labelingInfo:s,labelsVisible:l,objectIdField:u}=this.layer,d={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:r(this.layer,t),geometryType:o,labelingInfo:s,labelsVisible:l,objectIdField:u,orderBy:`default`};return c(e,t,d,n)}get hasRequiredSupport(){return l(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.definitionExpression,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>r(this.layer,e),()=>this.layer.parentCompositeLayer!=null&&d(this.layer.parentCompositeLayer)]}getRenderer(){return this.layer.renderer}hasFilters(e){return this.layer.parentCompositeLayer!=null&&d(this.layer.parentCompositeLayer)}addFilters(r,i){if(this.layer.parentCompositeLayer!=null&&d(this.layer.parentCompositeLayer)){let i=e(r?.where,`${t}=1`);if(!i)return r;r??=new n,r.where=i}return r}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}openMessagePorts(){return this.layer.source.openPorts()}_createServiceInfo(e){let t=this.layer,{capabilities:n,objectIdField:r}=t,a=t.fieldsIndex.toJSON(),o=i(t),s=t.spatialReference.toJSON(),c=r,l=e.spatialReference.toJSON();return{type:`memory`,orderByFields:c,outSpatialReference:l,metadata:{fieldsIndex:a,geometryType:o,hasZ:this.layer.hasZ,hasM:this.layer.hasM,featureIdInfo:{type:`object-id`,fieldName:t.objectIdField},spatialReference:s,outSpatialReference:l,attributeSpatialReference:null,globalIdField:null,subtypeField:null,subtypes:null,timeInfo:t.timeInfo?.toJSON(),timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,types:null},queryMetadata:{maxRecordCount:n.query.maxRecordCount,tileMaxRecordCount:n.query.tileMaxRecordCount,supportsCompactGeometry:n.query.supportsCompactGeometry,supportsDefaultSpatialReference:n.query.supportsDefaultSpatialReference,supportsFormatPBF:n.query.supportsFormatPBF,supportsMaxRecordCountFactor:n.query.supportsMaxRecordCountFactor,supportsQuantization:n.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:n.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:n.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:n.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}function d(e){return e.type===`link-chart`&&e.linkChart?.linkChartProperties.nonspatialDataDisplay?.mode===`hidden`}export{u as KnowledgeGraphSublayerAdapter};
2
+ import{sqlAnd as e}from"../../../../../core/sql.js";import{systemIsSpatialFieldName as t}from"../../../../../layers/knowledgeGraph/constants.js";import n from"../../../../../layers/support/FeatureFilter.js";import{getEffectiveFeatureReduction as r}from"./featureReductionUtils.js";import{getServiceGeometryType as i}from"./geometryUtils.js";import{createLabelVVEvaluator as a}from"./labelingUtils.js";import{ExceedsLimitCache as o}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as s}from"../schema/SourceSchema.js";import{createServiceTimeSchema as c}from"../schema/TimeSchema.js";import{createSimpleProcessorSchema as l}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as u}from"../support/rendererUtils.js";class d{constructor(e){this.layer=e,this._cache=new o}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:a(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return s(n,null,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:null,gdbVersion:null,historicMoment:null,timeExtent:this.layer.timeExtent,apiKey:null,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,t,n){let{fields:i,renderer:a,geometryType:o,labelingInfo:s,labelsVisible:c,objectIdField:u}=this.layer,d={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:r(this.layer,t),geometryType:o,labelingInfo:s,labelsVisible:c,objectIdField:u,orderBy:`default`};return l(e,t,d,n)}get hasRequiredSupport(){return u(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.definitionExpression,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>r(this.layer,e),()=>this.layer.parentCompositeLayer!=null&&f(this.layer.parentCompositeLayer)]}getRenderer(){return this.layer.renderer}hasFilters(e){return this.layer.parentCompositeLayer!=null&&f(this.layer.parentCompositeLayer)}addFilters(r,i){if(this.layer.parentCompositeLayer!=null&&f(this.layer.parentCompositeLayer)){let i=e(r?.where,`${t}=1`);if(!i)return r;r??=new n,r.where=i}return r}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}openMessagePorts(){return this.layer.source.openPorts()}_createServiceInfo(e){let t=this.layer,{capabilities:n,objectIdField:r}=t,a=t.fieldsIndex.toJSON(),o=i(t),s=t.spatialReference.toJSON(),l=r,u=e.spatialReference.toJSON();return{type:`memory`,orderByFields:l,outSpatialReference:u,metadata:{fieldsIndex:a,geometryType:o,hasZ:this.layer.hasZ,hasM:this.layer.hasM,featureIdInfo:{type:`object-id`,fieldName:t.objectIdField},spatialReference:s,outSpatialReference:u,attributeSpatialReference:null,globalIdField:null,subtypeField:null,subtypes:null,timeInfo:c(t.timeInfo),timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,types:null},queryMetadata:{supportsCacheHint:n.query.supportsCacheHint,maxRecordCount:n.query.maxRecordCount,tileMaxRecordCount:n.query.tileMaxRecordCount,supportsCompactGeometry:n.query.supportsCompactGeometry,supportsDefaultSpatialReference:n.query.supportsDefaultSpatialReference,supportsFormatPBF:n.query.supportsFormatPBF,supportsMaxRecordCountFactor:n.query.supportsMaxRecordCountFactor,supportsQuantization:n.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:n.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:n.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:n.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}function f(e){return e.type===`link-chart`&&e.linkChart?.linkChartProperties.nonspatialDataDisplay?.mode===`hidden`}export{d as KnowledgeGraphSublayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as e}from"../../../../../core/lang.js";import{getEffectiveFeatureReduction as t}from"./featureReductionUtils.js";import{getServiceGeometryType as n}from"./geometryUtils.js";import{createLabelVVEvaluator as r}from"./labelingUtils.js";import{ExceedsLimitCache as i}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as a}from"../schema/SourceSchema.js";import{createSimpleProcessorSchema as o}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as s}from"../support/rendererUtils.js";class c{constructor(e){this.layer=e,this._cache=new i}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:r(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return a(n,null,{definitionExpression:null,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:null,customParameters:this.layer.customParameters,gdbVersion:null,historicMoment:null,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,n,r){let{fields:i,renderer:a,geometryType:s,labelingInfo:c,labelsVisible:l,orderBy:u,objectIdField:d}=this.layer,f={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:t(this.layer,n),geometryType:s,labelingInfo:c,labelsVisible:l,objectIdField:d,orderBy:u??`default`};return o(e,n,f,r)}get hasRequiredSupport(){return s(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>t(this.layer,e),()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>this.layer.orderBy,()=>this.layer.renderer]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(t){let r=this.layer,{capabilities:i}=r,a=r.fieldsIndex.toJSON(),o=n(r),s=r.timeInfo?.toJSON(),c=r.spatialReference.toJSON(),l=r.source.getSource(),u=this.layer.objectIdField,d=e(i);d.query.maxRecordCount=l.maxRecordCount;let f=t.spatialReference.toJSON();return{type:`ogc`,source:l,orderByFields:u,outSpatialReference:f,metadata:{fieldsIndex:a,geometryType:o,hasZ:this.layer.hasZ??!1,hasM:!1,featureIdInfo:{type:`object-id`,fieldName:r.objectIdField},timeInfo:s,spatialReference:c,outSpatialReference:f,attributeSpatialReference:null,globalIdField:null,subtypeField:null,subtypes:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,types:null},queryMetadata:{maxRecordCount:d.query.maxRecordCount,tileMaxRecordCount:d.query.tileMaxRecordCount,supportsCompactGeometry:d.query.supportsCompactGeometry,supportsDefaultSpatialReference:d.query.supportsDefaultSpatialReference,supportsFormatPBF:d.query.supportsFormatPBF,supportsMaxRecordCountFactor:d.query.supportsMaxRecordCountFactor,supportsQuantization:d.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:d.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:d.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:d.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}export{c as OGCFeatureLayerAdapter};
2
+ import{clone as e}from"../../../../../core/lang.js";import{getEffectiveFeatureReduction as t}from"./featureReductionUtils.js";import{getServiceGeometryType as n}from"./geometryUtils.js";import{createLabelVVEvaluator as r}from"./labelingUtils.js";import{ExceedsLimitCache as i}from"../schema/ExceedsLimitCache.js";import{createFeatureSourceSchema as a}from"../schema/SourceSchema.js";import{createServiceTimeSchema as o}from"../schema/TimeSchema.js";import{createSimpleProcessorSchema as s}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as c}from"../support/rendererUtils.js";class l{constructor(e){this.layer=e,this._cache=new i}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:r(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e);return a(n,null,{definitionExpression:null,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:null,customParameters:this.layer.customParameters,gdbVersion:null,historicMoment:null,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,n,r){let{fields:i,renderer:a,geometryType:o,labelingInfo:c,labelsVisible:l,orderBy:u,objectIdField:d}=this.layer,f={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:t(this.layer,n),geometryType:o,labelingInfo:c,labelsVisible:l,objectIdField:d,orderBy:u??`default`};return s(e,n,f,r)}get hasRequiredSupport(){return c(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>t(this.layer,e),()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>this.layer.orderBy,()=>this.layer.renderer]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(t){let r=this.layer,{capabilities:i}=r,a=r.fieldsIndex.toJSON(),s=n(r),c=o(r.timeInfo),l=r.spatialReference.toJSON(),u=r.source.getSource(),d=this.layer.objectIdField,f=e(i);f.query.maxRecordCount=u.maxRecordCount;let p=t.spatialReference.toJSON();return{type:`ogc`,source:u,orderByFields:d,outSpatialReference:p,metadata:{fieldsIndex:a,geometryType:s,hasZ:this.layer.hasZ??!1,hasM:!1,featureIdInfo:{type:`object-id`,fieldName:r.objectIdField},timeInfo:c,spatialReference:l,outSpatialReference:p,attributeSpatialReference:null,globalIdField:null,subtypeField:null,subtypes:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,types:null},queryMetadata:{supportsCacheHint:f.query.supportsCacheHint,maxRecordCount:f.query.maxRecordCount,tileMaxRecordCount:f.query.tileMaxRecordCount,supportsCompactGeometry:f.query.supportsCompactGeometry,supportsDefaultSpatialReference:f.query.supportsDefaultSpatialReference,supportsFormatPBF:f.query.supportsFormatPBF,supportsMaxRecordCountFactor:f.query.supportsMaxRecordCountFactor,supportsQuantization:f.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:f.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:f.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:f.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}export{l as OGCFeatureLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as e}from"../../../../../core/lang.js";import{isHostedAgolService as t}from"../../../../../layers/support/arcgisLayerUrl.js";import{getEffectiveFeatureReduction as n}from"./featureReductionUtils.js";import{addFloorFilter as r,hasFloorFilter as i}from"./floorFilterUtils.js";import{getServiceGeometryType as a}from"./geometryUtils.js";import{createLabelVVEvaluator as o}from"./labelingUtils.js";import{ExceedsLimitCache as s}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as c,createFeatureSourceSchema as l}from"../schema/SourceSchema.js";import{createSimpleProcessorSchema as u}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as d}from"../support/rendererUtils.js";class f{constructor(e){this.layer=e,this._cache=new s}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:o(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=this.layer.editingInfo?.lastEditDate!=null,i=this.layer.refreshInterval>0,a=!r&&i,o=c(n.isSourceHosted,a,this.layer.capabilities,n.metadata.geometryType,e.extent,this.layer.fullExtent);return l(n,o,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:this.layer.customParameters,gdbVersion:this.layer.gdbVersion,historicMoment:this.layer.historicMoment,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,t,r){let{fields:i,renderer:a,geometryType:o,labelingInfo:s,labelsVisible:c,orderBy:l,objectIdField:d}=this.layer,f={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:n(this.layer,t),geometryType:o,labelingInfo:s,labelsVisible:c,objectIdField:d,orderBy:l??`default`};return u(e,t,f,r)}get hasRequiredSupport(){return d(this.layer.renderer)}get timeOptions(){return this.layer}addFilters(e,t){return r(this.layer,e,t)}getUpdateHashProperties(e){return[()=>this.layer.outFields,()=>this.layer.orderBy,()=>this.layer.definitionExpression,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>n(this.layer,e),()=>this.layer.customParameters,()=>i(this.layer,e)?e.floors:null]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(n){let r=this.layer,{capabilities:i,globalIdField:o,orderBy:s}=r,c=r.fieldsIndex.toJSON(),l=a(r),u=r.timeInfo?.toJSON(),d=r.spatialReference.toJSON(),f=e(this.layer.parsedUrl),p=this.layer.objectIdField;if(s?.length){let e=!s[0].valueExpression&&s[0].field;e&&(p=e)}let m=t(f.path),h=n.spatialReference.toJSON();return{type:`feature-service`,source:f,isSourceHosted:m,orderByFields:p,outSpatialReference:h,metadata:{globalIdField:o,fieldsIndex:c,geometryType:l,hasZ:this.layer.hasZ,hasM:this.layer.hasM,featureIdInfo:{type:`object-id`,fieldName:r.objectIdField},timeInfo:u,spatialReference:d,outSpatialReference:h,attributeSpatialReference:null,timeReferenceUnknownClient:r.datesInUnknownTimezone,dateFieldsTimeZone:r.dateFieldsTimeZone,subtypeField:null,subtypes:null,typeIdField:null,types:null},queryMetadata:{maxRecordCount:i.query.maxRecordCount,tileMaxRecordCount:i.query.tileMaxRecordCount,supportsCompactGeometry:i.query.supportsCompactGeometry,supportsDefaultSpatialReference:i.query.supportsDefaultSpatialReference,supportsFormatPBF:i.query.supportsFormatPBF,supportsMaxRecordCountFactor:i.query.supportsMaxRecordCountFactor,supportsQuantization:i.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:i.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:i.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:i.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}export{f as OrientedImageryLayerAdapter};
2
+ import{clone as e}from"../../../../../core/lang.js";import{isHostedAgolService as t}from"../../../../../layers/support/arcgisLayerUrl.js";import{getEffectiveFeatureReduction as n}from"./featureReductionUtils.js";import{addFloorFilter as r,hasFloorFilter as i}from"./floorFilterUtils.js";import{getServiceGeometryType as a}from"./geometryUtils.js";import{createLabelVVEvaluator as o}from"./labelingUtils.js";import{ExceedsLimitCache as s}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as c,createFeatureSourceSchema as l}from"../schema/SourceSchema.js";import{createServiceTimeSchema as u}from"../schema/TimeSchema.js";import{createSimpleProcessorSchema as d}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as f}from"../support/rendererUtils.js";class p{constructor(e){this.layer=e,this._cache=new s}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:o(this.layer.renderer)}}]}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=this.layer.editingInfo?.lastEditDate!=null,i=this.layer.refreshInterval>0,a=!r&&i,o=c(n.isSourceHosted,a,this.layer.capabilities,n.metadata.geometryType,e.extent,this.layer.fullExtent);return l(n,o,{definitionExpression:this.layer.definitionExpression,returnZ:e.returnZ,returnM:e.returnM,queryScaleRanges:[],displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:this.layer.displayFilterInfo,customParameters:this.layer.customParameters,gdbVersion:this.layer.gdbVersion,historicMoment:this.layer.historicMoment,timeExtent:this.layer.timeExtent,apiKey:this.layer.apiKey,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache,postQueryFilter:null})}createProcessorSchema(e,t,r){let{fields:i,renderer:a,geometryType:o,labelingInfo:s,labelsVisible:c,orderBy:l,objectIdField:u}=this.layer,f={fields:i.map(e=>e.toJSON()),renderer:a?.clone(),labelingInfoSource:this.layer.id,featureReduction:n(this.layer,t),geometryType:o,labelingInfo:s,labelsVisible:c,objectIdField:u,orderBy:l??`default`};return d(e,t,f,r)}get hasRequiredSupport(){return f(this.layer.renderer)}get timeOptions(){return this.layer}addFilters(e,t){return r(this.layer,e,t)}getUpdateHashProperties(e){return[()=>this.layer.outFields,()=>this.layer.orderBy,()=>this.layer.definitionExpression,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>n(this.layer,e),()=>this.layer.customParameters,()=>i(this.layer,e)?e.floors:null]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(n){let r=this.layer,{capabilities:i,globalIdField:o,orderBy:s}=r,c=r.fieldsIndex.toJSON(),l=a(r),d=u(r.timeInfo),f=r.spatialReference.toJSON(),p=e(this.layer.parsedUrl),m=this.layer.objectIdField;if(s?.length){let e=!s[0].valueExpression&&s[0].field;e&&(m=e)}let h=t(p.path),g=n.spatialReference.toJSON();return{type:`feature-service`,source:p,isSourceHosted:h,orderByFields:m,outSpatialReference:g,metadata:{globalIdField:o,fieldsIndex:c,geometryType:l,hasZ:this.layer.hasZ,hasM:this.layer.hasM,featureIdInfo:{type:`object-id`,fieldName:r.objectIdField},timeInfo:d,spatialReference:f,outSpatialReference:g,attributeSpatialReference:null,timeReferenceUnknownClient:r.datesInUnknownTimezone,dateFieldsTimeZone:r.dateFieldsTimeZone,subtypeField:null,subtypes:null,typeIdField:null,types:null},queryMetadata:{supportsCacheHint:i.query.supportsCacheHint,maxRecordCount:i.query.maxRecordCount,tileMaxRecordCount:i.query.tileMaxRecordCount,supportsCompactGeometry:i.query.supportsCompactGeometry,supportsDefaultSpatialReference:i.query.supportsDefaultSpatialReference,supportsFormatPBF:i.query.supportsFormatPBF,supportsMaxRecordCountFactor:i.query.supportsMaxRecordCountFactor,supportsQuantization:i.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:i.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:i.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:i.query.supportsReturnExceededLimitGeometries,lastEditDate:null}}}}export{p as OrientedImageryLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"../../../../../core/Error.js";import{toParquetJSONGeometryType as t}from"../../../../../layers/support/parquetUtils.js";import{getEffectiveFeatureReduction as n}from"./featureReductionUtils.js";import{getServiceGeometryType as r}from"./geometryUtils.js";import{createLabelVVEvaluator as i}from"./labelingUtils.js";import{createSimpleProcessorSchema as a}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as o}from"../support/rendererUtils.js";class s{constructor(e){this.layer=e}get hasRequiredSupport(){return o(this.layer.renderer)}get timeOptions(){return null}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:i(this.layer.renderer)}}]}getUpdateHashProperties(e){return[()=>this.layer.data,()=>this.layer.outFields,()=>this.layer.definitionExpression,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>n(this.layer,e),()=>this.layer.customParameters,()=>this.layer.orderBy,()=>this.layer.returnZ,()=>this.layer.returnM,()=>this.layer.renderer,()=>this.layer.popupTemplate]}openMessagePorts(){return this.layer.source.openPorts()}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=e.availableFields.includes(`*`)?this.layer.fields.map(e=>e.name):e.availableFields,i={partial:{dataSourceHash:this.layer.data?JSON.stringify(this.layer.data.toJSON()):null,availableFields:r},full:{definitionExpression:this.layer.definitionExpression??null,sourceRefreshVersion:t,customParameters:this.layer.customParameters??null,returnZ:e.returnZ&&n.metadata.hasZ,returnM:e.returnM&&n.metadata.hasM}};return{type:`parquet`,service:n,strategy:this._createStrategy(n,i)}}_createStrategy(e,t){return e.geometryInfo.displayOptimization?{type:`xz`,...t}:{type:`snapshot`,...t}}createProcessorSchema(e,t,r){let i={fields:this.layer.fields.map(e=>e.toJSON()),renderer:this.layer.renderer?.clone(),labelingInfoSource:this.layer.id,featureReduction:n(this.layer,t),geometryType:this.layer.geometryType,labelingInfo:this.layer.labelingInfo,labelsVisible:this.layer.labelsVisible,objectIdField:this.layer.objectIdField,orderBy:this.layer.orderBy};return a(e,t,i,r)}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}_createServiceInfo(n){let i=r(this.layer),a=n.spatialReference.toJSON(),o=this.layer.geometryEncoding,s=this.layer.capabilities?.data?.supportsZ===!0,c=this.layer.capabilities?.data?.supportsM===!0;if(o==null&&this.layer.displayOptimization==null)throw new e(`parquet-layer:unsupported`,`creating a parquet layer view requires an encoding`,{layer:this.layer});return{type:`parquet`,outSpatialReference:a,geometryInfo:{geometry:o?{geometryType:t(this.layer.geometryType),spatialReference:this.layer.spatialReference.toJSON(),encoding:o.toJSON()}:null,displayOptimization:this.layer.displayOptimization},metadata:{spatialReference:this.layer.spatialReference.toJSON(),outSpatialReference:a,attributeSpatialReference:null,fieldsIndex:this.layer.fieldsIndex.toJSON(),featureIdInfo:{type:`object-id`,fieldName:this.layer.objectIdField},geometryType:i,hasZ:s,hasM:c,types:null,subtypes:null,timeInfo:null,typeIdField:null,subtypeField:null,globalIdField:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}}}}export{s as ParquetLayerAdapter};
2
+ import e from"../../../../../core/Error.js";import{toParquetJSONGeometryType as t}from"../../../../../layers/support/parquetUtils.js";import{getEffectiveFeatureReduction as n}from"./featureReductionUtils.js";import{getServiceGeometryType as r}from"./geometryUtils.js";import{createLabelVVEvaluator as i}from"./labelingUtils.js";import{createSimpleProcessorSchema as a}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as o}from"../support/rendererUtils.js";class s{constructor(e){this.layer=e}get hasRequiredSupport(){return o(this.layer.renderer)}get timeOptions(){return null}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:i(this.layer.renderer)}}]}getUpdateHashProperties(e){return[()=>this.layer.data,()=>this.layer.outFields,()=>this.layer.definitionExpression,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>n(this.layer,e),()=>this.layer.customParameters,()=>this.layer.orderBy,()=>this.layer.returnZ,()=>this.layer.returnM,()=>this.layer.renderer,()=>this.layer.popupTemplate]}openMessagePorts(){return this.layer.source.openPorts()}async createSourceSchema(e,t){let n=this._createServiceInfo(e),r=e.availableFields.includes(`*`)?this.layer.fields.map(e=>e.name):e.availableFields,i={partial:{dataSourceHash:this.layer.data?JSON.stringify(this.layer.data.toJSON()):null,availableFields:r},full:{definitionExpression:this.layer.definitionExpression??null,sourceRefreshVersion:t,customParameters:this.layer.customParameters??null,returnZ:e.returnZ&&n.metadata.hasZ,returnM:e.returnM&&n.metadata.hasM}};return{type:`parquet`,service:n,strategy:this._createStrategy(n,i)}}_createStrategy(e,t){return e.geometryInfo.displayOptimization?{type:`xz`,...t}:{type:`snapshot`,...t}}createProcessorSchema(e,t,r){let i={fields:this.layer.fields.map(e=>e.toJSON()),renderer:this.layer.renderer?.clone(),labelingInfoSource:this.layer.id,featureReduction:n(this.layer,t),geometryType:this.layer.geometryType,labelingInfo:this.layer.labelingInfo,labelsVisible:this.layer.labelsVisible,objectIdField:this.layer.objectIdField,orderBy:this.layer.orderBy};return a(e,t,i,r)}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}_createServiceInfo(n){let i=r(this.layer),a=n.spatialReference.toJSON(),o=this.layer.geometryEncoding,s=this.layer.capabilities?.data?.supportsZ===!0,c=this.layer.capabilities?.data?.supportsM===!0;if(o==null&&this.layer.displayOptimization==null)throw new e(`parquet-layer:unsupported`,`creating a parquet layer view requires an encoding`,{layer:this.layer});return{type:`parquet`,outSpatialReference:a,geometryInfo:{geometry:o?{geometryType:t(this.layer.geometryType),spatialReference:this.layer.spatialReference.toJSON(),encoding:o.toJSON()}:null,displayOptimization:this.layer.displayOptimization},metadata:{spatialReference:this.layer.spatialReference.toJSON(),outSpatialReference:a,attributeSpatialReference:null,fieldsIndex:this.layer.fieldsIndex.toJSON(),featureIdInfo:{type:`object-id`,fieldName:this.layer.objectIdField},geometryType:i,hasZ:s,hasM:c,types:null,subtypes:null,timeInfo:null,typeIdField:null,subtypeField:null,globalIdField:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:this.layer.dateFieldsTimeZone}}}}export{s as ParquetLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{getEffectiveFeatureReduction as e}from"./featureReductionUtils.js";import{getServiceGeometryType as t}from"./geometryUtils.js";import{createLabelVVEvaluator as n}from"./labelingUtils.js";import{createSimpleProcessorSchema as r}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as i}from"../support/rendererUtils.js";class a{constructor(e){this.layer=e}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:n(this.layer.renderer)}}]}async createSourceSchema(e,t){return{type:`stream`,service:this._createServiceInfo(e),strategy:{type:`stream`,partial:{sourceRefreshVersion:t},full:{availableFields:e.availableFields,geometryDefinition:this.layer.geometryDefinition?.toJSON(),definitionExpression:this.layer.definitionExpression,customParameters:this.layer.customParameters,maxReconnectionAttempts:this.layer.maxReconnectionAttempts,maxReconnectionInterval:this.layer.maxReconnectionInterval,purgeOptions:this.layer.purgeOptions.toJSON()}}}}createProcessorSchema(t,n,i){let{fields:a,renderer:o,geometryType:s,labelingInfo:c,labelsVisible:l,objectIdField:u,trackInfo:d}=this.layer,f={fields:a.map(e=>e.toJSON()),renderer:o?.clone(),labelingInfoSource:this.layer.id,featureReduction:e(this.layer,n),geometryType:s,labelingInfo:c,labelsVisible:l,objectIdField:u,orderBy:`default`,trackInfo:d};return r(t,n,f,i)}get hasRequiredSupport(){return i(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(t){return[()=>this.layer.definitionExpression,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>e(this.layer,t),()=>this.layer.customParameters,()=>this.layer.geometryDefinition,()=>this.layer.definitionExpression,()=>this.layer.trackInfo,()=>this.layer?.source?.refreshInterval]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(e){let n=t(this.layer),r=this.layer.timeInfo?.toJSON()||null,i=this.layer.spatialReference?this.layer.spatialReference.toJSON():null,a=e.spatialReference.toJSON();return{type:`stream`,source:this.layer.getStreamConnectionSource(),outSpatialReference:a,metadata:{fieldsIndex:this.layer.fieldsIndex.toJSON(),geometryType:n,hasZ:!1,hasM:!1,featureIdInfo:{type:`object-id`,fieldName:this.layer.objectIdField},timeInfo:r,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,spatialReference:i,outSpatialReference:a,attributeSpatialReference:null,subtypeField:null,subtypes:null,globalIdField:null,typeIdField:null,types:null}}}}export{a as StreamLayerAdapter};
2
+ import{getEffectiveFeatureReduction as e}from"./featureReductionUtils.js";import{getServiceGeometryType as t}from"./geometryUtils.js";import{createLabelVVEvaluator as n}from"./labelingUtils.js";import{createServiceTimeSchema as r}from"../schema/TimeSchema.js";import{createSimpleProcessorSchema as i}from"../schema/processor/SimpleProcessorSchema.js";import{isRendererSupported as a}from"../support/rendererUtils.js";class o{constructor(e){this.layer=e}getLabelingDeconflictionInfo(){return[{vvEvaluators:{0:n(this.layer.renderer)}}]}async createSourceSchema(e,t){return{type:`stream`,service:this._createServiceInfo(e),strategy:{type:`stream`,partial:{sourceRefreshVersion:t},full:{availableFields:e.availableFields,geometryDefinition:this.layer.geometryDefinition?.toJSON(),definitionExpression:this.layer.definitionExpression,customParameters:this.layer.customParameters,maxReconnectionAttempts:this.layer.maxReconnectionAttempts,maxReconnectionInterval:this.layer.maxReconnectionInterval,purgeOptions:this.layer.purgeOptions.toJSON()}}}}createProcessorSchema(t,n,r){let{fields:a,renderer:o,geometryType:s,labelingInfo:c,labelsVisible:l,objectIdField:u,trackInfo:d}=this.layer,f={fields:a.map(e=>e.toJSON()),renderer:o?.clone(),labelingInfoSource:this.layer.id,featureReduction:e(this.layer,n),geometryType:s,labelingInfo:c,labelsVisible:l,objectIdField:u,orderBy:`default`,trackInfo:d};return i(t,n,f,r)}get hasRequiredSupport(){return a(this.layer.renderer)}get timeOptions(){return this.layer}getUpdateHashProperties(t){return[()=>this.layer.definitionExpression,()=>this.layer.renderer,()=>this.layer.labelsVisible?this.layer.labelingInfo:null,()=>e(this.layer,t),()=>this.layer.customParameters,()=>this.layer.geometryDefinition,()=>this.layer.definitionExpression,()=>this.layer.trackInfo,()=>this.layer?.source?.refreshInterval]}getRenderer(){return this.layer.renderer}setGraphicOrigin(e){e.origin=this.layer.graphicOrigin}setAggregateGraphicOrigin(e){e.origin=this.layer.aggregateGraphicOrigin}setTrackGraphicOrigin(e){e.origin=this.layer.trackGraphicOrigin}_createServiceInfo(e){let n=t(this.layer),i=r(this.layer.timeInfo)??null,a=this.layer.spatialReference?this.layer.spatialReference.toJSON():null,o=e.spatialReference.toJSON();return{type:`stream`,source:this.layer.getStreamConnectionSource(),outSpatialReference:o,metadata:{fieldsIndex:this.layer.fieldsIndex.toJSON(),geometryType:n,hasZ:!1,hasM:!1,featureIdInfo:{type:`object-id`,fieldName:this.layer.objectIdField},timeInfo:i,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,spatialReference:a,outSpatialReference:o,attributeSpatialReference:null,subtypeField:null,subtypes:null,globalIdField:null,typeIdField:null,types:null}}}}export{o as StreamLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{clone as e}from"../../../../../core/lang.js";import{floatEqualAbsolute as t}from"../../../../../core/mathUtils.js";import{sqlAnd as n}from"../../../../../core/sql.js";import{isHostedAgolService as r}from"../../../../../layers/support/arcgisLayerUrl.js";import i from"../../../../../layers/support/FeatureFilter.js";import{canConvertSqlRelativeTime as a,sqlRelativeTimeToAbsolute as o}from"../../../../../layers/support/relativeTimeQueryUtils.js";import{getUtilityNetworkFields as s}from"../../../../../networks/support/networkFieldUtils.js";import{createFeatureIdInfo as c}from"./featureServiceUtils.js";import{addFloorFilter as l,hasFloorFilter as u}from"./floorFilterUtils.js";import{getServiceGeometryType as d}from"./geometryUtils.js";import{ExceedsLimitCache as f}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as p,createFeatureSourceSchema as m}from"../schema/SourceSchema.js";import{createSubtypeProcessorSchema as h}from"../schema/processor/SubtypeProcessorSchema.js";class g{constructor(e){this.layer=e,this._cache=new f}getLabelingDeconflictionInfo(){return[{vvEvaluators:{}}]}async createSourceSchema(e,t){let{definitionExpression:n,customParameters:r,gdbVersion:i,historicMoment:s,timeExtent:c,apiKey:l,displayFilterInfo:u}=this.layer,d=this._createServiceInfo(e),f=this.layer.editingInfo?.lastEditDate!=null,h=this.layer.refreshInterval>0,g=!f&&h,_=p(d.isSourceHosted,g,this.layer.capabilities,d.metadata.geometryType,e.extent,this.layer.fullExtent),v=a(n)?await o(this.layer.fieldsIndex,n,this.layer.capabilities.query.relativeTimeBinWindow):n,y=n===v?null:{where:n};return m(d,_,{definitionExpression:v,returnZ:e.returnZ,returnM:e.returnM,postQueryFilter:y,queryScaleRanges:this.layer.sublayers.items.map(e=>({subtypeCode:e.subtypeCode,minScale:e.minScale,maxScale:e.maxScale})),displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:u,customParameters:r,gdbVersion:i,historicMoment:s,timeExtent:c,apiKey:l,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache})}createProcessorSchema(e,t,n){let r={labelingInfoSource:this.layer.id,subtypeField:this.layer.subtypeField,sublayers:Array.from(this.layer.sublayers,(e,t)=>({featureReduction:null,geometryType:this.layer.geometryType,labelingInfoSource:this.layer.id+`-${t}`,labelingInfo:e.labelingInfo,labelsVisible:e.labelsVisible,renderer:e.renderer,subtypeCode:e.subtypeCode,orderBy:null}))};return h(e,t,r,n)}addFilters(e,t){e=l(this.layer,e,t);let r=this.layer.sublayers.filter(e=>!_(e,t)).map(e=>e.subtypeCode);if(!r.length)return e;e??=new i;let a=`NOT ${this.layer.subtypeField} IN (${r.join(`,`)})`;return e.where=n(e.where,a),e}get hasRequiredSupport(){return!0}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>u(this.layer,e)?e.floors:null,()=>this.layer.outFields,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>e?.requiredFieldsOptions?.featureTitleFields&&this.layer.featureTitleFields,()=>e?.requiredFieldsOptions?.utilityNetworkFields&&s(e,this.layer),()=>this.layer.sublayers.map(({renderer:e,labelsVisible:t,labelingInfo:n,visible:r,minScale:i,maxScale:a})=>({renderer:e,labelsVisible:t,labelingInfo:n,visible:r,minScale:i,maxScale:a}))]}setGraphicOrigin(e){let t=this.layer.findSublayerForFeature(e);e.layer=e.sourceLayer=t,e.origin=t?.graphicOrigin}getRenderer(e){return this.layer.findSublayerForFeature(e)?.renderer}_createServiceInfo(t){let{capabilities:n,datesInUnknownTimezone:i,dateFieldsTimeZone:a,editingInfo:o,globalIdField:s,objectIdField:l,subtypeField:u}=this.layer,f=this.layer.fieldsIndex.toJSON(),p=d(this.layer),m=this.layer.timeInfo?.toJSON(),h=this.layer.spatialReference.toJSON(),g=e(this.layer.parsedUrl),_=l,v=r(g.path),y=t.spatialReference.toJSON();return{type:`feature-service`,source:g,isSourceHosted:v,orderByFields:_,outSpatialReference:y,metadata:{timeReferenceUnknownClient:i,dateFieldsTimeZone:a,subtypeField:u,globalIdField:s,fieldsIndex:f,geometryType:p,hasZ:this.layer.hasZ,hasM:this.layer.hasM,featureIdInfo:c(this.layer),timeInfo:m,spatialReference:h,outSpatialReference:y,attributeSpatialReference:null,subtypes:this.layer.subtypes?.map(e=>e.toJSON()),typeIdField:null,types:null},queryMetadata:{maxRecordCount:n.query.maxRecordCount,tileMaxRecordCount:n.query.tileMaxRecordCount,supportsCompactGeometry:n.query.supportsCompactGeometry,supportsDefaultSpatialReference:n.query.supportsDefaultSpatialReference,supportsFormatPBF:n.query.supportsFormatPBF,supportsMaxRecordCountFactor:n.query.supportsMaxRecordCountFactor,supportsQuantization:n.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:n.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:n.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:n.query.supportsReturnExceededLimitGeometries,lastEditDate:o?.lastEditDate?.getTime()}}}}function _(e,n){return e.visible&&(e.minScale===0||t(n.scale,e.minScale)||n.scale<e.minScale)&&(e.maxScale===0||t(n.scale,e.maxScale)||n.scale>e.maxScale)}export{g as SubtypeGroupLayerAdapter};
2
+ import{clone as e}from"../../../../../core/lang.js";import{floatEqualAbsolute as t}from"../../../../../core/mathUtils.js";import{sqlAnd as n}from"../../../../../core/sql.js";import{isHostedAgolService as r}from"../../../../../layers/support/arcgisLayerUrl.js";import i from"../../../../../layers/support/FeatureFilter.js";import{canConvertSqlRelativeTime as a,sqlRelativeTimeToAbsolute as o}from"../../../../../layers/support/relativeTimeQueryUtils.js";import{getUtilityNetworkFields as s}from"../../../../../networks/support/networkFieldUtils.js";import{createFeatureIdInfo as c}from"./featureServiceUtils.js";import{addFloorFilter as l,hasFloorFilter as u}from"./floorFilterUtils.js";import{getServiceGeometryType as d}from"./geometryUtils.js";import{ExceedsLimitCache as f}from"../schema/ExceedsLimitCache.js";import{createSnapshotInfo as p,createFeatureSourceSchema as m}from"../schema/SourceSchema.js";import{createServiceTimeSchema as h}from"../schema/TimeSchema.js";import{createSubtypeProcessorSchema as g}from"../schema/processor/SubtypeProcessorSchema.js";class _{constructor(e){this.layer=e,this._cache=new f}getLabelingDeconflictionInfo(){return[{vvEvaluators:{}}]}async createSourceSchema(e,t){let{definitionExpression:n,customParameters:r,gdbVersion:i,historicMoment:s,timeExtent:c,apiKey:l,displayFilterInfo:u}=this.layer,d=this._createServiceInfo(e),f=this.layer.editingInfo?.lastEditDate!=null,h=this.layer.refreshInterval>0,g=!f&&h,_=p(d.isSourceHosted,g,this.layer.capabilities,d.metadata.geometryType,e.extent,this.layer.fullExtent),v=a(n)?await o(this.layer.fieldsIndex,n,this.layer.capabilities.query.relativeTimeBinWindow):n,y=n===v?null:{where:n};return m(d,_,{definitionExpression:v,returnZ:e.returnZ,returnM:e.returnM,postQueryFilter:y,queryScaleRanges:this.layer.sublayers.items.map(e=>({subtypeCode:e.subtypeCode,minScale:e.minScale,maxScale:e.maxScale})),displayFilterEnabled:e.displayFilterEnabled,displayFilterInfo:u,customParameters:r,gdbVersion:i,historicMoment:s,timeExtent:c,apiKey:l,sourceRefreshVersion:t,availableFields:e.availableFields,cache:this._cache})}createProcessorSchema(e,t,n){let r={labelingInfoSource:this.layer.id,subtypeField:this.layer.subtypeField,sublayers:Array.from(this.layer.sublayers,(e,t)=>({featureReduction:null,geometryType:this.layer.geometryType,labelingInfoSource:this.layer.id+`-${t}`,labelingInfo:e.labelingInfo,labelsVisible:e.labelsVisible,renderer:e.renderer,subtypeCode:e.subtypeCode,orderBy:null}))};return g(e,t,r,n)}addFilters(e,t){e=l(this.layer,e,t);let r=this.layer.sublayers.filter(e=>!v(e,t)).map(e=>e.subtypeCode);if(!r.length)return e;e??=new i;let a=`NOT ${this.layer.subtypeField} IN (${r.join(`,`)})`;return e.where=n(e.where,a),e}get hasRequiredSupport(){return!0}get timeOptions(){return this.layer}getUpdateHashProperties(e){return[()=>this.layer.apiKey,()=>this.layer.customParameters,()=>this.layer.definitionExpression,()=>u(this.layer,e)?e.floors:null,()=>this.layer.outFields,()=>this.layer.gdbVersion,()=>this.layer.historicMoment,()=>e?.requiredFieldsOptions?.featureTitleFields&&this.layer.featureTitleFields,()=>e?.requiredFieldsOptions?.utilityNetworkFields&&s(e,this.layer),()=>this.layer.sublayers.map(({renderer:e,labelsVisible:t,labelingInfo:n,visible:r,minScale:i,maxScale:a})=>({renderer:e,labelsVisible:t,labelingInfo:n,visible:r,minScale:i,maxScale:a}))]}setGraphicOrigin(e){let t=this.layer.findSublayerForFeature(e);e.layer=e.sourceLayer=t,e.origin=t?.graphicOrigin}getRenderer(e){return this.layer.findSublayerForFeature(e)?.renderer}_createServiceInfo(t){let{capabilities:n,datesInUnknownTimezone:i,dateFieldsTimeZone:a,editingInfo:o,globalIdField:s,objectIdField:l,subtypeField:u}=this.layer,f=this.layer.fieldsIndex.toJSON(),p=d(this.layer),m=h(this.layer.timeInfo),g=this.layer.spatialReference.toJSON(),_=e(this.layer.parsedUrl),v=l,y=r(_.path),b=t.spatialReference.toJSON();return{type:`feature-service`,source:_,isSourceHosted:y,orderByFields:v,outSpatialReference:b,metadata:{timeReferenceUnknownClient:i,dateFieldsTimeZone:a,subtypeField:u,globalIdField:s,fieldsIndex:f,geometryType:p,hasZ:this.layer.hasZ,hasM:this.layer.hasM,featureIdInfo:c(this.layer),timeInfo:m,spatialReference:g,outSpatialReference:b,attributeSpatialReference:null,subtypes:this.layer.subtypes?.map(e=>e.toJSON()),typeIdField:null,types:null},queryMetadata:{supportsCacheHint:n.query.supportsCacheHint,maxRecordCount:n.query.maxRecordCount,tileMaxRecordCount:n.query.tileMaxRecordCount,supportsCompactGeometry:n.query.supportsCompactGeometry,supportsDefaultSpatialReference:n.query.supportsDefaultSpatialReference,supportsFormatPBF:n.query.supportsFormatPBF,supportsMaxRecordCountFactor:n.query.supportsMaxRecordCountFactor,supportsQuantization:n.query.supportsQuantization,supportsCentroidOnDegeneratedQuantizedGeometry:n.query.supportsCentroidOnDegeneratedQuantizedGeometry,supportsDegeneratedQuantizedGeometry:n.query.supportsDegeneratedQuantizedGeometry,supportsReturnExceededLimitGeometries:n.query.supportsReturnExceededLimitGeometries,lastEditDate:o?.lastEditDate?.getTime()}}}}function v(e,n){return e.visible&&(e.minScale===0||t(n.scale,e.minScale)||n.scale<e.minScale)&&(e.maxScale===0||t(n.scale,e.maxScale)||n.scale>e.maxScale)}export{_ as SubtypeGroupLayerAdapter};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"../../../../../core/has.js";import{executeQuery as e,executeQueryForCount as t}from"../../../../../rest/query/operations/query.js";import n from"../../../../../rest/support/StatisticDefinition.js";import{FeatureSourceQueryInfo as r}from"../sources/FeatureSourceQueryInfo.js";import{FeatureMetadata as i}from"../support/FeatureMetadata.js";class a{constructor(){this._cache=new Map}async executeExceedsLimitQuery(e,t,n){let a=i.createFeature(e.metadata),s=r.create(e,t,a).createQuery();s.inner.orderByFields=[],s.inner.returnGeometry=!1,s.inner.cacheHint=!0;let c=e.metadata.geometryType!==`esriGeometryPoint`,l=JSON.stringify({source:e.source,query:s.inner.toJSON(),customParameters:s.customParameters,snapshotInfo:n,isPoints:c}),u=this._cache.get(l);return u??(u=await o(e.source,c,s,n),this._cache.set(l,u)),u}}async function o(t,r,i,a){if(!a.supportsExceedsLimit)return s(t,r,i,a);try{let r=i.inner.clone(),o=new n;return o.statisticType=`exceedslimit`,o.maxPointCount=a.maxFeatureCount,o.maxRecordCount=a.maxFeatureCount,o.outStatisticFieldName=`exceedslimit`,a.maxVertexCount&&(o.maxVertexCount=a.maxVertexCount),r.outStatistics=[o],(await e(t,r,void 0,{query:i.customParameters})).features[0]?.attributes.exceedslimit!==0}catch{return s(t,r,i,a)}}async function s(e,n,r,i){if(n)return!0;let a=r.inner.clone();try{return await t(e,a,{query:r.customParameters})>i.maxFeatureCount}catch{return!0}}export{a as ExceedsLimitCache};
2
+ import"../../../../../core/has.js";import{executeQuery as e,executeQueryForCount as t}from"../../../../../rest/query/operations/query.js";import n from"../../../../../rest/support/StatisticDefinition.js";import{FeatureSourceQueryInfo as r}from"../sources/FeatureSourceQueryInfo.js";import{FeatureMetadata as i}from"../support/FeatureMetadata.js";class a{constructor(){this._cache=new Map}async executeExceedsLimitQuery(e,t,n){let a=i.createFeature(e.metadata),s=r.create(e,t,a).createQuery();s.inner.orderByFields=[],s.inner.returnGeometry=!1,s.inner.cacheHint=e.queryMetadata.supportsCacheHint?!0:void 0;let c=e.metadata.geometryType!==`esriGeometryPoint`,l=JSON.stringify({source:e.source,query:s.inner.toJSON(),customParameters:s.customParameters,snapshotInfo:n,isPoints:c}),u=this._cache.get(l);return u??(u=await o(e.source,c,s,n),this._cache.set(l,u)),u}}async function o(t,r,i,a){if(!a.supportsExceedsLimit)return s(t,r,i,a);try{let r=i.inner.clone(),o=new n;return o.statisticType=`exceedslimit`,o.maxPointCount=a.maxFeatureCount,o.maxRecordCount=a.maxFeatureCount,o.outStatisticFieldName=`exceedslimit`,a.maxVertexCount&&(o.maxVertexCount=a.maxVertexCount),r.outStatistics=[o],(await e(t,r,void 0,{query:i.customParameters})).features[0]?.attributes.exceedslimit!==0}catch{return s(t,r,i,a)}}async function s(e,n,r,i){if(n)return!0;let a=r.inner.clone();try{return await t(e,a,{query:r.customParameters})>i.maxFeatureCount}catch{return!0}}export{a as ExceedsLimitCache};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ function e(e){if(e)return{startTimeField:e.startField,endTimeField:e.endField,trackIdField:e.trackIdField}}export{e as createServiceTimeSchema};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import has from"../../../../../core/has.js";import{sqlAnd as e}from"../../../../../core/sql.js";import t from"../../../../../geometry/SpatialReference.js";import{getClauseForScaleRange as n}from"../../../../../layers/support/displayFilterUtils.js";import r from"../../../../../rest/support/Query.js";import i from"../../../../../time/TimeExtent.js";function a(e){switch(e.type){case`object-id`:return`${e.fieldName} ASC`;case`unique-id-simple`:return`${e.fieldName} ASC`;case`unique-id-composite`:return`${e.fieldNames.join(`,`)} ASC`}}function o(e,n,r){let o=a(r.featureIdInfo);return{returnCentroid:r.serviceGeometryType===`esriGeometryPolygon`&&!e.queryMetadata.supportsCentroidOnDegeneratedQuantizedGeometry&&!e.queryMetadata.supportsDegeneratedQuantizedGeometry,returnGeometry:!0,returnZ:n.returnZ,returnM:n.returnM,timeReferenceUnknownClient:r.timeReferenceUnknownClient??void 0,outSpatialReference:t.fromJSON(e.outSpatialReference),orderByFields:e.type===`memory`?[]:[o],where:n.definitionExpression??`1=1`,outFields:n.availableFields,multipatchOption:r.serviceGeometryType===`esriGeometryMultiPatch`?`xyFootprint`:null,gdbVersion:n.gdbVersion,historicMoment:n.historicMoment?new Date(n.historicMoment):null,timeExtent:n.timeExtent?i.fromJSON(n.timeExtent):null}}class s{static create(e,t,n){let r=t.queryScaleRanges,i=t.displayFilterInfo;return new s(o(e,t,n),i,r,n.subtypeField,t.customParameters,n.geometryType,e.queryMetadata)}constructor(e,t,n,r,i,a,o){this._queryParams=e,this._displayFilter=t,this._queryScaleRanges=n,this._subtypeField=r,this._customParameters=i,this._geometryType=a,this._queryMetadata=o}getPageSize(e){if(this._queryMetadata==null)throw Error(`InternalError: Service does not support paged queries`);let t=this._queryMetadata.supportsMaxRecordCountFactor?4:null,n=((e?this._queryMetadata.tileMaxRecordCount:this._queryMetadata.maxRecordCount)??this._queryMetadata.maxRecordCount??2e3)*(t??1),r=has(`featurelayer-query-max-page-size`)??8e3;return Math.min(r,n)}get objectIdsQueryPageSize(){return this._queryMetadata?.maxRecordCount??2e3}updateHistoricMoment(e){this._queryParams.historicMoment=e}updateFields(e){this._queryParams.outFields=e}createPatchFieldsQuery(e,t,n){if(!t.getSize())return null;let r=e.clone();if(this._queryParams.outFields[0]===`*`){if((r.outFields??[])[0]===`*`)return null;r.outFields=this._queryParams.outFields}else{let e=new Set(this._queryParams.outFields),n=[];for(let r of e)t.hasField(r)||n.push(r);if(n.length===0)return null;r.outFields=n}r.returnGeometry=!1,r.returnCentroid=!1,r.quantizationParameters=null,r.cacheHint=!0;let i={inner:r,customParameters:this._customParameters};if(has(`esri-tiles-debug`)&&n!=null){let e=n.chunkId.toString().replaceAll(`/`,`.`);i.customParameters=i.customParameters?{...i.customParameters,chunkId:e}:{chunkId:e}}return i}createQuery(e={}){if(!this._queryParams)throw Error(`InternalError: queryInfo should be defined`);return{inner:new r({...this._queryParams,...e}),customParameters:this._customParameters}}createTileQuery(t,r){if(this._queryMetadata==null)throw Error(`InternalError: Service does not support tile queries`);let i=this.createQuery(r),a=i.inner;if(this._queryScaleRanges?.length){let n=this._queryScaleRanges.filter(e=>(!e.minScale||e.minScale>=t.maxScale)&&(!e.maxScale||e.maxScale<=t.minScale)).map(e=>e.subtypeCode);if(!n.length)return null;let r=`${this._subtypeField} IN (${n})`;a.where=e(a.where,r)}if(this._displayFilter&&(a.where=e(a.where,n(this._displayFilter,t.minScale,t.maxScale))),a.quantizationParameters=r.quantizationParameters??t.getQuantizationParameters(),a.resultType=`tile`,a.geometry=t.hydratedExtent,this._queryMetadata.supportsQuantization?this._geometryType===`esriGeometryPolyline`&&(a.maxAllowableOffset=t.resolution*has(`feature-polyline-generalization-factor`)):(this._geometryType===`esriGeometryPolyline`||this._geometryType===`esriGeometryPolygon`)&&(a.maxAllowableOffset=t.resolution,this._geometryType===`esriGeometryPolyline`&&(a.maxAllowableOffset*=has(`feature-polyline-generalization-factor`))),a.defaultSpatialReferenceEnabled=this._queryMetadata.supportsDefaultSpatialReference,a.compactGeometryEnabled=this._queryMetadata.supportsCompactGeometry,this._queryMetadata.supportsMaxRecordCountFactor&&(a.maxRecordCountFactor=4),has(`esri-tiles-debug`)){let e=t.id.replaceAll(`/`,`.`);i.customParameters=i.customParameters?{...i.customParameters,tileId:e}:{tileId:e}}return i}createPagedTileQuery(e,t){let n=this.getPageSize(!0);return this.createTileQuery(e,{start:n*t,num:n,returnExceededLimitFeatures:!0})}createPagedQuery(e,t){let n=this.getPageSize(!1);return this.createQuery({start:n*e,num:n,returnExceededLimitFeatures:!0,maxRecordCountFactor:4,quantizationParameters:t,cacheHint:!0})}createObjectIdsQuery(e){return this.createQuery({objectIds:e,outFields:[`*`]})}}export{s as FeatureSourceQueryInfo};
2
+ import has from"../../../../../core/has.js";import{sqlAnd as e}from"../../../../../core/sql.js";import t from"../../../../../geometry/SpatialReference.js";import{getClauseForScaleRange as n}from"../../../../../layers/support/displayFilterUtils.js";import r from"../../../../../rest/support/Query.js";import i from"../../../../../time/TimeExtent.js";function a(e){switch(e.type){case`object-id`:return`${e.fieldName} ASC`;case`unique-id-simple`:return`${e.fieldName} ASC`;case`unique-id-composite`:return`${e.fieldNames.join(`,`)} ASC`}}function o(e,n,r){let o=a(r.featureIdInfo);return{returnCentroid:r.serviceGeometryType===`esriGeometryPolygon`&&!e.queryMetadata.supportsCentroidOnDegeneratedQuantizedGeometry&&!e.queryMetadata.supportsDegeneratedQuantizedGeometry,returnGeometry:!0,returnZ:n.returnZ,returnM:n.returnM,timeReferenceUnknownClient:r.timeReferenceUnknownClient??void 0,outSpatialReference:t.fromJSON(e.outSpatialReference),orderByFields:e.type===`memory`?[]:[o],where:n.definitionExpression??`1=1`,outFields:n.availableFields,multipatchOption:r.serviceGeometryType===`esriGeometryMultiPatch`?`xyFootprint`:null,gdbVersion:n.gdbVersion,historicMoment:n.historicMoment?new Date(n.historicMoment):null,timeExtent:n.timeExtent?i.fromJSON(n.timeExtent):null}}class s{static create(e,t,n){let r=t.queryScaleRanges,i=t.displayFilterInfo;return new s(o(e,t,n),i,r,n.subtypeField,t.customParameters,n.geometryType,e.queryMetadata)}constructor(e,t,n,r,i,a,o){this._queryParams=e,this._displayFilter=t,this._queryScaleRanges=n,this._subtypeField=r,this._customParameters=i,this._geometryType=a,this._queryMetadata=o}getPageSize(e){if(this._queryMetadata==null)throw Error(`InternalError: Service does not support paged queries`);let t=this._queryMetadata.supportsMaxRecordCountFactor?4:null,n=((e?this._queryMetadata.tileMaxRecordCount:this._queryMetadata.maxRecordCount)??this._queryMetadata.maxRecordCount??2e3)*(t??1),r=has(`featurelayer-query-max-page-size`)??8e3;return Math.min(r,n)}get objectIdsQueryPageSize(){return this._queryMetadata?.maxRecordCount??2e3}updateHistoricMoment(e){this._queryParams.historicMoment=e}updateFields(e){this._queryParams.outFields=e}createPatchFieldsQuery(e,t,n){if(!t.getSize())return null;let r=e.clone();if(this._queryParams.outFields[0]===`*`){if((r.outFields??[])[0]===`*`)return null;r.outFields=this._queryParams.outFields}else{let e=new Set(this._queryParams.outFields),n=[];for(let r of e)t.hasField(r)||n.push(r);if(n.length===0)return null;r.outFields=n}r.returnGeometry=!1,r.returnCentroid=!1,r.quantizationParameters=null,r.cacheHint=this._queryMetadata?.supportsCacheHint?!0:void 0;let i={inner:r,customParameters:this._customParameters};if(has(`esri-tiles-debug`)&&n!=null){let e=n.chunkId.toString().replaceAll(`/`,`.`);i.customParameters=i.customParameters?{...i.customParameters,chunkId:e}:{chunkId:e}}return i}createQuery(e={}){if(!this._queryParams)throw Error(`InternalError: queryInfo should be defined`);return{inner:new r({...this._queryParams,...e}),customParameters:this._customParameters}}createTileQuery(t,r){if(this._queryMetadata==null)throw Error(`InternalError: Service does not support tile queries`);let i=this.createQuery(r),a=i.inner;if(this._queryScaleRanges?.length){let n=this._queryScaleRanges.filter(e=>(!e.minScale||e.minScale>=t.maxScale)&&(!e.maxScale||e.maxScale<=t.minScale)).map(e=>e.subtypeCode);if(!n.length)return null;let r=`${this._subtypeField} IN (${n})`;a.where=e(a.where,r)}if(this._displayFilter&&(a.where=e(a.where,n(this._displayFilter,t.minScale,t.maxScale))),a.quantizationParameters=r.quantizationParameters??t.getQuantizationParameters(),a.resultType=`tile`,a.geometry=t.hydratedExtent,this._queryMetadata.supportsQuantization?this._geometryType===`esriGeometryPolyline`&&(a.maxAllowableOffset=t.resolution*has(`feature-polyline-generalization-factor`)):(this._geometryType===`esriGeometryPolyline`||this._geometryType===`esriGeometryPolygon`)&&(a.maxAllowableOffset=t.resolution,this._geometryType===`esriGeometryPolyline`&&(a.maxAllowableOffset*=has(`feature-polyline-generalization-factor`))),a.defaultSpatialReferenceEnabled=this._queryMetadata.supportsDefaultSpatialReference,a.compactGeometryEnabled=this._queryMetadata.supportsCompactGeometry,this._queryMetadata.supportsMaxRecordCountFactor&&(a.maxRecordCountFactor=4),has(`esri-tiles-debug`)){let e=t.id.replaceAll(`/`,`.`);i.customParameters=i.customParameters?{...i.customParameters,tileId:e}:{tileId:e}}return i}createPagedTileQuery(e,t){let n=this.getPageSize(!0);return this.createTileQuery(e,{start:n*t,num:n,returnExceededLimitFeatures:!0})}createPagedQuery(e,t){let n=this.getPageSize(!1);return this.createQuery({start:n*e,num:n,returnExceededLimitFeatures:!0,maxRecordCountFactor:4,quantizationParameters:t,cacheHint:this._queryMetadata?.supportsCacheHint?!0:void 0})}createObjectIdsQuery(e){return this.createQuery({objectIds:e,outFields:[`*`]})}}export{s as FeatureSourceQueryInfo};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{handlesGroup as e}from"../../../../../../core/handleUtils.js";import"../../../../../../core/has.js";import{getOrCreateMapValue as t}from"../../../../../../core/MapUtils.js";import{notDeepEqual as n}from"../../../../../../core/object.js";import{throwIfAborted as r,onAbort as i}from"../../../../../../core/promiseUtils.js";import{QueueProcessor as a}from"../../../../../../core/QueueProcessor.js";import{difference as o}from"../../../../../../core/SetUtils.js";import{openWithPorts as s}from"../../../../../../core/workers/workers.js";import{isFileProviderChangedError as c}from"../../../../../../layers/graphics/sources/parquet/fileProviderChangedError.js";import{loadParquetModule as l}from"../../../../../../libs/librust-parquet/loadParquetModule.js";import{ALoadStrategy as u}from"./ALoadStrategy.js";import{fetchQueueConcurrency as d}from"./constants.js";import{ParquetSourceChunk as f}from"./chunks/ParquetSourceChunk.js";import{FeatureSetReaderParquet as p}from"../../support/FeatureSetReaderParquet.js";class m{constructor(t,n){this.subscription=t,this.chunks=[],this.ids=[],this._controller=new AbortController,this._handles=e([i(t.signal,()=>this._controller.abort()),i(n,()=>this._controller.abort())])}destroy(){this._controller.abort(),this._handles.remove()}get options(){return{signal:this._controller.signal}}addBinaryData(e){this.chunks.push(e)}addSourceChunkId(e){this.ids.push(e)}}class h extends u{constructor(e,t,n,r){if(super(e.metadata,t,n),this._service=e,this._loadStates=new Map,this._queue=new a({concurrency:d,process:e=>this._loadTile(e)}),!e.geometryInfo.displayOptimization)throw Error(`InternalError: ParquetTileLoadStrategy only supports XZ-enabled parquet files`);this._loaded=this._load(r)}destroy(){super.destroy(),this._loaded.finally(()=>{this._client.close(),this._client=null;for(let e of this._ports)e.close()}).catch(()=>{})}get about(){return{willQueryAllFeatures:!0,willQueryFullResolutionGeometry:!0}}get availableFields(){return this._schema.partial.availableFields}get definitionExpression(){return this._schema.full.definitionExpression}async tryUpdate(e,t){await this._loaded;let r=!0;return n(this.availableFields,t.availableFields)&&await this._updateFields(t.availableFields),this._schema.partial.dataSourceHash!==t.dataSourceHash&&(r=!1),this._schema.partial=t,r}async load(e){try{return await this._loaded,t(this._loadStates,e.key.id,()=>new m(e,this._options)),await this._queue.push(e)}catch(e){if(!g(e))throw e}}unload(e){let t=this._loadStates.get(e.tile.id);if(t!=null){for(let e of t.ids)this.store.removeById(e);t.destroy(),this._loadStates.delete(e.tile.id)}}async _load(e){this._ports=await e.layerView.openMemoryPorts(),this._client=await s(this._ports,{maxNumberOfConcurrentJobs:20}),this._proxy=this._client.createInvokeProxy(),this._indexMap=await this._proxy.getIndexMap()}_onOverride(){}async _updateFields(e){let t=new Set(e),n=o(t,new Set(this.availableFields));if(this._service.metadata.fieldsIndex!=null&&n.size){let e=Array.from(this.store.insertedChunks()).map(e=>e.updateFields(this._proxy,Array.from(n),this._options));await Promise.all(e)}}async _loadTile(e){let t=e.tile,n=e.signal,i=this._loadStates.get(t.id);await this._downloadTileData(e),r(n);let a=new f(this.metadata,null,t,null,0,!0);i.addSourceChunkId(a.chunkId),this.store.insert(a)}async _downloadTileData(e){let t=await l(),n=e.tile,i=e.signal,a=this._loadStates.get(n.id),o=await this._proxy.queryStream({type:`tile`,extent:n.extent,transform:n.normalizedTransform,outFields:Array.from(this.availableFields),returnGeometry:!0,returnZ:this._schema.full.returnZ,returnM:this._schema.full.returnM,outSpatialReference:this.metadata.outSpatialReference.toJSON(),resolution:n.resolution,where:this.definitionExpression},{signal:i}),s=0;for(;;){let e=await this._proxy.getStreamNext(o,{signal:i});if(r(i),e==null)break;let{fileId:c,buffer:l}=e,u=t.ParquetChunk.deserialize(new Uint8Array(l)),d=new p(this.metadata,this._indexMap,u,c,n.transform),m=new f(this.metadata,d,n,c,s++,!1);a.addBinaryData({data:u,fileId:c}),a.addSourceChunkId(m.chunkId),this.store.insert(m)}}}function g(e){return c(e)||_(e)}function _(e){return typeof e==`object`&&!!e&&`message`in e&&e.message===`Protocol Violation: transport error`}export{h as ParquetTileLoadStrategy};
2
+ import{handlesGroup as e}from"../../../../../../core/handleUtils.js";import"../../../../../../core/has.js";import{getOrCreateMapValue as t}from"../../../../../../core/MapUtils.js";import{notDeepEqual as n}from"../../../../../../core/object.js";import{throwIfAborted as r,onAbort as i}from"../../../../../../core/promiseUtils.js";import{QueueProcessor as a}from"../../../../../../core/QueueProcessor.js";import{difference as o}from"../../../../../../core/SetUtils.js";import{openWithPorts as s}from"../../../../../../core/workers/workers.js";import{isFileProviderChangedError as c}from"../../../../../../layers/graphics/sources/parquet/fileProviderChangedError.js";import{loadParquetModule as l}from"../../../../../../libs/librust-parquet/loadParquetModule.js";import{ALoadStrategy as u}from"./ALoadStrategy.js";import{fetchQueueConcurrency as d}from"./constants.js";import{ParquetSourceChunk as f}from"./chunks/ParquetSourceChunk.js";import{FeatureSetReaderParquet as p}from"../../support/FeatureSetReaderParquet.js";class m{constructor(t,n){this.subscription=t,this.chunks=[],this.ids=[],this._controller=new AbortController,this._handles=e([i(t.signal,()=>this._controller.abort()),i(n,()=>this._controller.abort())])}destroy(){this._controller.abort(),this._handles.remove()}get options(){return{signal:this._controller.signal}}addBinaryData(e){this.chunks.push(e)}addSourceChunkId(e){this.ids.push(e)}}class h extends u{constructor(e,t,n,r){if(super(e.metadata,t,n),this._service=e,this._loadStates=new Map,this._queue=new a({concurrency:d,process:e=>this._loadTile(e)}),!e.geometryInfo.displayOptimization)throw Error(`InternalError: ParquetTileLoadStrategy only supports XZ-enabled parquet files`);this._loaded=this._load(r)}destroy(){super.destroy(),this._loaded.finally(()=>{this._client.close(),this._client=null;for(let e of this._ports)e.close()}).catch(()=>{})}get about(){return{willQueryAllFeatures:!1,willQueryFullResolutionGeometry:!1}}get availableFields(){return this._schema.partial.availableFields}get definitionExpression(){return this._schema.full.definitionExpression}async tryUpdate(e,t){await this._loaded;let r=!0;return n(this.availableFields,t.availableFields)&&await this._updateFields(t.availableFields),this._schema.partial.dataSourceHash!==t.dataSourceHash&&(r=!1),this._schema.partial=t,r}async load(e){try{return await this._loaded,t(this._loadStates,e.key.id,()=>new m(e,this._options)),await this._queue.push(e)}catch(e){if(!g(e))throw e}}unload(e){let t=this._loadStates.get(e.tile.id);if(t!=null){for(let e of t.ids)this.store.removeById(e);t.destroy(),this._loadStates.delete(e.tile.id)}}async _load(e){this._ports=await e.layerView.openMemoryPorts(),this._client=await s(this._ports,{maxNumberOfConcurrentJobs:20}),this._proxy=this._client.createInvokeProxy(),this._indexMap=await this._proxy.getIndexMap()}_onOverride(){}async _updateFields(e){let t=new Set(e),n=o(t,new Set(this.availableFields));if(this._service.metadata.fieldsIndex!=null&&n.size){let e=Array.from(this.store.insertedChunks()).map(e=>e.updateFields(this._proxy,Array.from(n),this._options));await Promise.all(e)}}async _loadTile(e){let t=e.tile,n=e.signal,i=this._loadStates.get(t.id);await this._downloadTileData(e),r(n);let a=new f(this.metadata,null,t,null,0,!0);i.addSourceChunkId(a.chunkId),this.store.insert(a)}async _downloadTileData(e){let t=await l(),n=e.tile,i=e.signal,a=this._loadStates.get(n.id),o=await this._proxy.queryStream({type:`tile`,extent:n.extent,transform:n.normalizedTransform,outFields:Array.from(this.availableFields),returnGeometry:!0,returnZ:this._schema.full.returnZ,returnM:this._schema.full.returnM,outSpatialReference:this.metadata.outSpatialReference.toJSON(),resolution:n.resolution,where:this.definitionExpression},{signal:i}),s=0;for(;;){let e=await this._proxy.getStreamNext(o,{signal:i});if(r(i),e==null)break;let{fileId:c,buffer:l}=e,u=t.ParquetChunk.deserialize(new Uint8Array(l)),d=new p(this.metadata,this._indexMap,u,c,n.transform),m=new f(this.metadata,d,n,c,s++,!1);a.addBinaryData({data:u,fileId:c}),a.addSourceChunkId(m.chunkId),this.store.insert(m)}}}function g(e){return c(e)||_(e)}function _(e){return typeof e==`object`&&!!e&&`message`in e&&e.message===`Protocol Violation: transport error`}export{h as ParquetTileLoadStrategy};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{nonPointFeatureFields as e,featureFields as t}from"./virtualFields.js";function n(n,r){let i,a,o=[];if(r===`line`){n={...n,angle:0},i=`CIMLineSymbol`;let t;switch(n.horizontalAlignment){case`Center`:t=.5;break;case`Left`:t=0;break;case`Right`:t=1;break;case`Justify`:t=.5;break;default:t=.5}a={type:`CIMMarkerPlacementAtRatioPositions`,angleToLine:!0,placePerPart:!1,keepUpright:!1,positionArray:[t],flipFirst:!1},o=e}else r===`multipoint`?(i=`CIMLineSymbol`,a={type:`PrivatePlacementMultipoint`},o=e):(i=`CIMPointSymbol`,a=void 0,o=t);let s={type:`CIMSymbolReference`,primitiveOverrides:[],symbol:{type:i,symbolLayers:[{type:`CIMVectorMarker`,markerPlacement:a,enable:!0,size:40,colorLocked:!1,anchorPointUnits:`Relative`,frame:{xmin:-20,ymin:-20,xmax:20,ymax:20},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{x:0,y:0},symbol:n}],scaleSymbolsProportionally:!0,respectFrame:!0}]}};for(let e of o)e.addPrimitiveOverride(s);return{data:s}}function r(e){return{point:n(e,`point`),line:n(e,`line`),multipoint:n(e,`multipoint`)}}function i(e){let t={};for(let n of e){let e=n.iD??0,{symbol:i}=n;t[e]=r(i)}return t}export{n as getCIMSymbol,i as getCIMSymbols,r as getTrio};
2
+ import{nonPointFeatureFields as e,featureFields as t}from"./virtualFields.js";function n(n,r){let i,a,o=[];if(n={...n,lineWidth:5e3},r===`line`){n={...n,angle:0},i=`CIMLineSymbol`;let t;switch(n.horizontalAlignment){case`Center`:t=.5;break;case`Left`:t=0;break;case`Right`:t=1;break;case`Justify`:t=.5;break;default:t=.5}a={type:`CIMMarkerPlacementAtRatioPositions`,angleToLine:!0,placePerPart:!1,keepUpright:!1,positionArray:[t],flipFirst:!1},o=e}else r===`multipoint`?(i=`CIMLineSymbol`,a={type:`PrivatePlacementMultipoint`},o=e):(i=`CIMPointSymbol`,a=void 0,o=t);let s={type:`CIMSymbolReference`,primitiveOverrides:[],symbol:{type:i,symbolLayers:[{type:`CIMVectorMarker`,markerPlacement:a,enable:!0,size:40,colorLocked:!1,anchorPointUnits:`Relative`,frame:{xmin:-20,ymin:-20,xmax:20,ymax:20},markerGraphics:[{type:`CIMMarkerGraphic`,geometry:{x:0,y:0},symbol:n}],scaleSymbolsProportionally:!0,respectFrame:!0}]}};for(let e of o)e.addPrimitiveOverride(s);return{data:s}}function r(e){return{point:n(e,`point`),line:n(e,`line`),multipoint:n(e,`multipoint`)}}function i(e){let t={};for(let n of e){let e=n.iD??0,{symbol:i}=n;t[e]=r(i)}return t}export{n as getCIMSymbol,i as getCIMSymbols,r as getTrio};
@@ -14,6 +14,7 @@ import type MediaLayerView from "../layers/MediaLayerView.js";
14
14
  import type OGCFeatureLayerView from "../layers/OGCFeatureLayerView.js";
15
15
  import type OrientedImageryLayerView from "../layers/OrientedImageryLayerView.js";
16
16
  import type ParquetLayerView from "../layers/ParquetLayerView.js";
17
+ import type SketchLayerView from "../layers/SketchLayerView.js";
17
18
  import type StreamLayerView from "../layers/StreamLayerView.js";
18
19
  import type VectorTileLayerView from "../layers/VectorTileLayerView.js";
19
20
  import type WFSLayerView from "../layers/WFSLayerView.js";
@@ -65,7 +66,7 @@ export interface LayerView2DMap {
65
66
  /** @since 5.0 */
66
67
  "map-notes": never;
67
68
  /** @since 5.2 */
68
- sketch: never;
69
+ sketch: SketchLayerView;
69
70
  /** @since 5.0 */
70
71
  media: MediaLayerView;
71
72
  /** @since 5.0 */
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{watch as n,syncAndInitial as r}from"../../../../core/reactiveUtils.js";import{property as i,subclass as a}from"../../../../core/accessorSupport/decorators.js";import{snapshotLineOfSightTargetState as o,restoreLineOfSightTargetState as s}from"./LineOfSightAuthoringUtils.js";import{LineOfSightItemManipulatedObject3D as c}from"./LineOfSightItemManipulatedObject3D.js";import{LineOfSightItemTool as l}from"./LineOfSightItemTool.js";import{discRadiusSmall as u}from"../../interactive/editingTools/manipulations/config.js";import{MoveTool3D as d}from"../../interactive/editingTools/move/MoveTool3D.js";import{bindViewToolOptions as f}from"../../../interactive/options/bindViewToolOptions.js";import p from"../../../interactive/options/InteractiveToolOptions.js";let m=class extends t{get visible(){return this._get(`visible`)??!0}set visible(e){this._set(`visible`,e),this._itemTool.visible=e,this._moveTool.visible=e}get manipulatorsInteractive(){return this._get(`manipulatorsInteractive`)??!0}set manipulatorsInteractive(e){this._set(`manipulatorsInteractive`,e),this._itemTool.manipulatorsInteractive=e}constructor(e){super(e),this._selectedItem=null,this._objectByItem=new Map,this._undoStack=[],this._redoStack=[],this._itemTool=new l({analysisViewData:e.analysisViewData,snappingManager:e.snappingManager,view:e.view}),this._moveTool=new d({enableVisualElements:!1,manipulatorRadius:u,snappingManager:e.snappingManager,toolOptions:new p,view:e.view})}initialize(){this.view.tools.add(this._itemTool),this.view.tools.add(this._moveTool),this._itemTool.visible=this.visible,this._moveTool.visible=this.visible,this._itemTool.manipulatorsInteractive=this.manipulatorsInteractive;let e=e=>{let t=e.at(0);t!=null&&this._itemTool.showInteractionVisuals(t)},t=()=>this._itemTool.hideInteractionVisuals();this.addHandles([f(this._moveTool.toolOptions,()=>this.view.options),n(()=>({observer:this.analysis.observer,targets:this.analysis.targets.toArray()}),({observer:e,targets:t})=>this._syncObjects(e,t),r),this._itemTool.events.on(`select-item`,({item:e})=>this._setSelectedItem(e)),this._itemTool.events.on(`selection-cleared`,()=>{if(this._moveTool.hasFocusedManipulators){let e=this._selectedItem==null?null:this._objectByItem.get(this._selectedItem);this._itemTool.selectObject(e)}else this._setSelectedItem(null)}),this._itemTool.events.on(`delete-item`,({target:e})=>this._deleteTarget(e)),this._itemTool.events.on(`record-undo`,({record:e})=>this._recordHistory(h([e]))),this._moveTool.events.on(`record-undo`,({updates:e})=>this._recordHistory(h(e))),this._moveTool.events.on(`hold`,({objects:t})=>e(t)),this._moveTool.events.on(`move-start`,({objects:t})=>e(t)),this._moveTool.events.on(`move-stop`,t),n(()=>this._moveTool.firstGrabbedManipulator,e=>{e??t()})])}destroy(){this.stop(),this.view.tools.remove(this._itemTool),this.view.tools.remove(this._moveTool),this._itemTool.destroy(),this._moveTool.destroy();for(let e of this._objectByItem.values())this.removeHandles(e),e.destroy();this._objectByItem.clear(),this._undoStack.length=0,this._redoStack.length=0}get active(){return this._itemTool.active||this._moveTool.active}get canRedo(){return this._redoStack.length>0}get canUndo(){return this._undoStack.length>0}get hasSelection(){return this._selectedItem!=null}get selectedItem(){return this._selectedItem}get updating(){return this._itemTool.updating||this._moveTool.updating}get laserLineVisualElement(){return this._itemTool.laserLineVisualElement}get verticalLineVisualElement(){return this._itemTool.verticalLineVisualElement}selectItem(e){return this._objectByItem.has(e)?(this._setSelectedItem(e),!0):!1}clearSelection(){return this.hasSelection?(this._setSelectedItem(null),!0):!1}deleteSelectedItem(){let e=this._selectedItem;if(e==null)return!1;let t=this.analysis.targets.find(t=>t===e);return t!=null&&this._deleteTarget(t)}getObserverManipulator(){let e=this.analysis.observer,t=e==null?null:this._itemTool.getManipulator(e);return t!=null&&g(t)?t:null}getTargetManipulator(e){let t=this._itemTool.getManipulator(e);return t!=null&&_(t)?t:null}hasManipulatorAt(e,t){return this._itemTool.hasManipulatorAt(e,t)}redo(){let e=this._redoStack.pop();e!=null&&(e.redo()?(this._undoStack.push(e),this._notifyHistoryChanged()):this._redoStack.push(e))}setEditableFlag(e,t){this._itemTool.setEditableFlag(e,t),this._moveTool.setEditableFlag(e,t)}stop(){(this.view.activeTool===this._itemTool||this.view.activeTool===this._moveTool)&&(this.view.activeTool=null),this._itemTool.hideInteractionVisuals(),this.snappingManager.doneSnapping(),this.clearSelection()}undo(){let e=this._undoStack.pop();e!=null&&(e.undo(),this._redoStack.push(e),this._notifyHistoryChanged())}_syncObjects(e,t){let n=new Set(e==null?t:[e,...t]);for(let[e,t]of this._objectByItem)n.has(e)||(this._selectedItem===e&&this._setSelectedItem(null),this.removeHandles(t),this._itemTool.removeObject(t),this._objectByItem.delete(e),t.destroy());e!=null&&this._ensureObject(e,`observer`);for(let e of t)this._ensureObject(e,`target`);this._setSelectedItem(this._selectedItem)}_ensureObject(e,t){if(this._objectByItem.has(e))return;let n=new c({analysisViewData:this.analysisViewData,intersector:this.intersector,item:e,itemType:t,view:this.view});this._objectByItem.set(e,n),this._itemTool.addObject(n),this.addHandles(n.on(`modified-externally`,()=>{this._selectedItem===e&&this._setSelectedItem(e)}),n)}_setSelectedItem(e){let t=e==null?null:this._objectByItem.get(e);this._selectedItem=t==null?null:e,this._itemTool.selectObject(t),this._moveTool.objects.removeAll(),t!=null&&this._moveTool.objects.add(t),this._itemTool.interacting=this._selectedItem!=null}_deleteTarget(e){if(this.analysis.targets.length<=1)return!1;let t=this.analysis.targets.indexOf(e);if(t<0)return!1;let n=o(e),r=this._selectedItem===e;return this.analysis.targets.remove(e),this._recordHistory({undo:()=>{s(n,e),this.analysis.targets.add(e,Math.min(t,this.analysis.targets.length)),r&&this._setSelectedItem(e)},redo:()=>this.analysis.targets.includes(e)&&this.analysis.targets.length<=1?!1:(this.analysis.targets.remove(e),this._selectedItem===e&&this._setSelectedItem(null),!0)}),!0}_recordHistory(e){this._undoStack.push(e),this._redoStack.length=0,this._notifyHistoryChanged()}_notifyHistoryChanged(){this.notifyChange(`canUndo`),this.notifyChange(`canRedo`)}get testInfo(){return{moveTooltip:this._moveTool.tooltip}}};e([i({constructOnly:!0})],m.prototype,`analysisViewData`,void 0),e([i({constructOnly:!0})],m.prototype,`analysis`,void 0),e([i({constructOnly:!0})],m.prototype,`intersector`,void 0),e([i({constructOnly:!0})],m.prototype,`snappingManager`,void 0),e([i({constructOnly:!0})],m.prototype,`view`,void 0),e([i()],m.prototype,`visible`,null),e([i()],m.prototype,`manipulatorsInteractive`,null),e([i()],m.prototype,`_selectedItem`,void 0),e([i()],m.prototype,`active`,null),e([i()],m.prototype,`canRedo`,null),e([i()],m.prototype,`canUndo`,null),e([i()],m.prototype,`selectedItem`,null),e([i()],m.prototype,`updating`,null),m=e([a(`esri.views.3d.analysis.LineOfSight.LineOfSightEditTool`)],m);function h(e){return{undo:()=>{for(let t=e.length-1;t>=0;t--)e[t].undo(null)},redo:()=>{for(let t of e)t.redo(null);return!0}}}function g(e){return e.metadata.type===`observer`}function _(e){return e.metadata.type===`target`}export{m as LineOfSightEditTool};
2
+ import{__decorate as e}from"tslib";import t from"../../../../core/Accessor.js";import{watch as n,syncAndInitial as r}from"../../../../core/reactiveUtils.js";import{property as i,subclass as a}from"../../../../core/accessorSupport/decorators.js";import{snapshotLineOfSightTargetState as o,restoreLineOfSightTargetState as s}from"./LineOfSightAuthoringUtils.js";import{LineOfSightItemManipulatedObject3D as c}from"./LineOfSightItemManipulatedObject3D.js";import{LineOfSightItemTool as l}from"./LineOfSightItemTool.js";import{discRadiusSmall as u}from"../../interactive/editingTools/manipulations/config.js";import{MoveTool3D as d}from"../../interactive/editingTools/move/MoveTool3D.js";import{bindViewToolOptions as f}from"../../../interactive/options/bindViewToolOptions.js";import p from"../../../interactive/options/InteractiveToolOptions.js";const m=Symbol(`inactiveMoveManipulatorDisplay`);let h=class extends t{get visible(){return this._get(`visible`)??!0}set visible(e){this._set(`visible`,e),this._itemTool.visible=e,this._moveTool.visible=e}get manipulatorsInteractive(){return this._get(`manipulatorsInteractive`)??!0}set manipulatorsInteractive(e){this._set(`manipulatorsInteractive`,e),this._itemTool.manipulatorsInteractive=e}constructor(e){super(e),this._selectedItem=null,this._objectByItem=new Map,this._undoStack=[],this._redoStack=[],this._itemTool=new l({analysisViewData:e.analysisViewData,snappingManager:e.snappingManager,view:e.view}),this._moveTool=new d({enableVisualElements:!1,manipulatorRadius:u,snappingManager:e.snappingManager,toolOptions:new p,view:e.view})}initialize(){this.view.tools.add(this._itemTool),this.view.tools.add(this._moveTool),this._itemTool.visible=this.visible,this._moveTool.visible=this.visible,this._itemTool.manipulatorsInteractive=this.manipulatorsInteractive;let e=e=>{let t=e.at(0);t!=null&&this._itemTool.showInteractionVisuals(t)},t=()=>this._itemTool.hideInteractionVisuals();this.addHandles([f(this._moveTool.toolOptions,()=>this.view.options),n(()=>({observer:this.analysis.observer,targets:this.analysis.targets.toArray()}),({observer:e,targets:t})=>this._syncObjects(e,t),r),this._itemTool.events.on(`select-item`,({item:e})=>this._setSelectedItem(e)),this._itemTool.events.on(`selection-cleared`,()=>{if(this._moveTool.hasFocusedManipulators){let e=this._selectedItem==null?null:this._objectByItem.get(this._selectedItem);this._itemTool.selectObject(e)}else this._setSelectedItem(null)}),this._itemTool.events.on(`delete-item`,({target:e})=>this._deleteTarget(e)),this._itemTool.events.on(`record-undo`,({record:e})=>this._recordHistory(g([e]))),this._moveTool.events.on(`record-undo`,({updates:e})=>this._recordHistory(g(e))),this._moveTool.events.on(`hold`,({objects:t})=>e(t)),this._moveTool.events.on(`move-start`,({objects:t})=>e(t)),this._moveTool.events.on(`move-stop`,t),n(()=>({sphereGrabbed:this._itemTool.hasGrabbedManipulators,manipulators:this._moveTool.manipulators.toArray()}),({sphereGrabbed:e})=>{let t=[];e&&this._moveTool.manipulators.forEach(({manipulator:e})=>{t.push(e.disableDisplay())}),this.removeHandles(m),this.addHandles(t,m)},r),n(()=>this._moveTool.firstGrabbedManipulator,e=>{e??t()})])}destroy(){this.removeHandles(m),this.stop(),this.view.tools.remove(this._itemTool),this.view.tools.remove(this._moveTool),this._itemTool.destroy(),this._moveTool.destroy();for(let e of this._objectByItem.values())this.removeHandles(e),e.destroy();this._objectByItem.clear(),this._undoStack.length=0,this._redoStack.length=0}get active(){return this._itemTool.active||this._moveTool.active}get canRedo(){return this._redoStack.length>0}get canUndo(){return this._undoStack.length>0}get hasSelection(){return this._selectedItem!=null}get selectedItem(){return this._selectedItem}get updating(){return this._itemTool.updating||this._moveTool.updating}get laserLineVisualElement(){return this._itemTool.laserLineVisualElement}get verticalLineVisualElement(){return this._itemTool.verticalLineVisualElement}selectItem(e){return this._objectByItem.has(e)?(this._setSelectedItem(e),!0):!1}clearSelection(){return this.hasSelection?(this._setSelectedItem(null),!0):!1}deleteSelectedItem(){let e=this._selectedItem;if(e==null)return!1;let t=this.analysis.targets.find(t=>t===e);return t!=null&&this._deleteTarget(t)}getObserverManipulator(){let e=this.analysis.observer,t=e==null?null:this._itemTool.getManipulator(e);return t!=null&&_(t)?t:null}getTargetManipulator(e){let t=this._itemTool.getManipulator(e);return t!=null&&v(t)?t:null}hasManipulatorAt(e,t){return this._itemTool.hasManipulatorAt(e,t)}redo(){let e=this._redoStack.pop();e!=null&&(e.redo()?(this._undoStack.push(e),this._notifyHistoryChanged()):this._redoStack.push(e))}setEditableFlag(e,t){this._itemTool.setEditableFlag(e,t),this._moveTool.setEditableFlag(e,t)}stop(){(this.view.activeTool===this._itemTool||this.view.activeTool===this._moveTool)&&(this.view.activeTool=null),this._itemTool.hideInteractionVisuals(),this.snappingManager.doneSnapping(),this.clearSelection()}undo(){let e=this._undoStack.pop();e!=null&&(e.undo(),this._redoStack.push(e),this._notifyHistoryChanged())}_syncObjects(e,t){let n=new Set(e==null?t:[e,...t]);for(let[e,t]of this._objectByItem)n.has(e)||(this._selectedItem===e&&this._setSelectedItem(null),this.removeHandles(t),this._itemTool.removeObject(t),this._objectByItem.delete(e),t.destroy());e!=null&&this._ensureObject(e);for(let e of t)this._ensureObject(e);this._setSelectedItem(this._selectedItem)}_ensureObject(e){if(this._objectByItem.has(e))return;let t=new c({analysisViewData:this.analysisViewData,intersector:this.intersector,item:e,view:this.view});this._objectByItem.set(e,t),this._itemTool.addObject(t),this.addHandles(t.on(`modified-externally`,()=>{this._selectedItem===e&&this._setSelectedItem(e)}),t)}_setSelectedItem(e){let t=e==null?null:this._objectByItem.get(e);this._selectedItem=t==null?null:e,this._itemTool.selectObject(t),this._moveTool.objects.removeAll(),t!=null&&this._moveTool.objects.add(t),this._itemTool.interacting=this._selectedItem!=null}_deleteTarget(e){if(this.analysis.targets.length<=1)return!1;let t=this.analysis.targets.indexOf(e);if(t<0)return!1;let n=o(e),r=this._selectedItem===e;return this.analysis.targets.remove(e),this._recordHistory({undo:()=>{s(n,e),this.analysis.targets.add(e,Math.min(t,this.analysis.targets.length)),r&&this._setSelectedItem(e)},redo:()=>this.analysis.targets.includes(e)&&this.analysis.targets.length<=1?!1:(this.analysis.targets.remove(e),this._selectedItem===e&&this._setSelectedItem(null),!0)}),!0}_recordHistory(e){this._undoStack.push(e),this._redoStack.length=0,this._notifyHistoryChanged()}_notifyHistoryChanged(){this.notifyChange(`canUndo`),this.notifyChange(`canRedo`)}get testInfo(){return{moveTooltip:this._moveTool.tooltip}}};e([i({constructOnly:!0})],h.prototype,`analysisViewData`,void 0),e([i({constructOnly:!0})],h.prototype,`analysis`,void 0),e([i({constructOnly:!0})],h.prototype,`intersector`,void 0),e([i({constructOnly:!0})],h.prototype,`snappingManager`,void 0),e([i({constructOnly:!0})],h.prototype,`view`,void 0),e([i()],h.prototype,`visible`,null),e([i()],h.prototype,`manipulatorsInteractive`,null),e([i()],h.prototype,`_selectedItem`,void 0),e([i()],h.prototype,`active`,null),e([i()],h.prototype,`canRedo`,null),e([i()],h.prototype,`canUndo`,null),e([i()],h.prototype,`selectedItem`,null),e([i()],h.prototype,`updating`,null),h=e([a(`esri.views.3d.analysis.LineOfSight.LineOfSightEditTool`)],h);function g(e){return{undo:()=>{for(let t=e.length-1;t>=0;t--)e[t].undo(null)},redo:()=>{for(let t of e)t.redo(null);return!0}}}function _(e){return e.metadata.type===`observer`}function v(e){return e.metadata.type===`target`}export{h as LineOfSightEditTool};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{EventedAccessor as t}from"../../../../core/Evented.js";import{destroyMaybe as n}from"../../../../core/maybe.js";import{watch as r,syncAndInitial as i}from"../../../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{absoluteHeightElevationInfo as s}from"../../../../support/elevationInfoUtils.js";import{convertLineOfSightElevationMode as c,snapshotLineOfSightObserverState as l,snapshotLineOfSightTargetState as u,restoreLineOfSightObserverState as d,restoreLineOfSightTargetState as f,updateLineOfSightItemFromAuthoredPoint as p}from"./LineOfSightAuthoringUtils.js";import{EditGeometryOperations as m}from"../../../interactive/editGeometry/EditGeometryOperations.js";const h=Symbol(`line-of-sight-item-operations`);let g=class extends t{constructor(e){super(e),this._operations=null,this._dragIntersectionContext=null,this._syncSource=null}initialize(){this.addHandles([r(()=>{let{elevationInfo:e,feature:t,position:n}=this.item;return{elevationInfo:e,elevationMode:e?.mode,elevationOffset:e?.offset,elevationUnit:e?.unit,feature:t,position:n,positionCoordinates:n?.toArray(),spatialReference:n?.spatialReference}},()=>this._syncOperationsFromItem(),i),r(()=>{let{origin:e}=this;return{origin:e,originCoordinates:e?.toArray(),spatialReference:e?.spatialReference}},()=>this.emit(`committed`),i)])}destroy(){this.removeHandles(h),this._operations=n(this._operations),this._dragIntersectionContext=null}get operations(){return this._operations}get elevationInfo(){return this.item.elevationInfo??s}get visible(){return this.analysisViewData.visible&&this.origin!=null}get isDraped(){return this.elevationInfo.mode===`on-the-ground`}get origin(){return this.itemType===`observer`?this.analysisViewData.elevationAlignedObserver:this.analysisViewData.computations.find(e=>e.target===this.item)?.elevationAlignedTargetLocation??null}get updating(){return!1}toMap(e){return this.intersector.getScreenPointIntersection(e)?.mapPoint}createUndoRecord(){let e=this._snapshotState(),t=null;return{undo:()=>{t=this._snapshotState(),this._restoreSnapshot(e)},redo:()=>{t!=null&&(e=this._snapshotState(),this._restoreSnapshot(t))}}}setElevationMode(e){let{position:t,elevationInfo:n}=this.item;if(t==null||e===this.elevationInfo.mode)return null;let r=c({view:this.view,point:t,sourceElevationInfo:n,mode:e,preserveZ:!0}),i=this.createUndoRecord();this._syncSource=`operations`;try{this.item.elevationInfo=r.elevationInfo,this.item.position=r.position}finally{this._syncSource=null}return this._syncOperationsFromItem(!1),i}updateDragIntersection(e){if(e.action===`cancel`){this._dragIntersectionContext=null;return}this._dragIntersectionContext={dragging:e.action!==`end`,intersection:this.intersector.getScreenPointIntersection(e.screenPoint)}}_snapshotState(){return this.itemType===`observer`?l(this.item):u(this.item)}_restoreSnapshot(e){this.itemType===`observer`?d(e,this.item):f(e,this.item),this.destroyed||(this._syncOperationsFromItem(),this.emit(`committed`))}_replaceOperations(e){this.removeHandles(h),this._operations=n(this._operations),this._operations=e,e!=null&&this.addHandles(e.data.on(`change`,()=>this._operationsGeometryChanged()),h)}_syncOperationsFromItem(e=!0){let{position:t}=this.item,n=this._operations;if(this._syncSource!==`operations`){this._syncSource=`item`;try{if(t==null){if(n==null)return;this._replaceOperations(null)}else!n?.data.geometry?.equals(t)&&!n?.trySetGeometry(t)&&this._replaceOperations(m.fromGeometry(t,this.view.state.viewingMode));e?this._emitModifiedExternally():this.emit(`committed`)}finally{this._syncSource=null}}}_operationsGeometryChanged(){let e=this._operations?.data.geometry;if(this._syncSource===`item`||e?.type!==`point`)return;let t=this._dragIntersectionContext;this._syncSource=`operations`;try{t==null?this.item.position=e:p(this.view,this.item,this.intersector,e,{elevationInfo:this.item.elevationInfo,preservedIntersection:t.intersection})}finally{this._syncSource=null}t!=null&&!t.dragging&&(this._dragIntersectionContext=null),this.emit(`committed`)}_emitModifiedExternally(){this.emit(`modified-externally`),this.emit(`committed`)}};e([a({constructOnly:!0})],g.prototype,`analysisViewData`,void 0),e([a({constructOnly:!0})],g.prototype,`intersector`,void 0),e([a({constructOnly:!0})],g.prototype,`item`,void 0),e([a({constructOnly:!0})],g.prototype,`itemType`,void 0),e([a({constructOnly:!0})],g.prototype,`view`,void 0),e([a()],g.prototype,`_operations`,void 0),g=e([o(`esri.views.3d.analysis.LineOfSight.LineOfSightItemManipulatedObject3D`)],g);export{g as LineOfSightItemManipulatedObject3D};
2
+ import{__decorate as e}from"tslib";import{EventedAccessor as t}from"../../../../core/Evented.js";import{destroyMaybe as n}from"../../../../core/maybe.js";import{watch as r,syncAndInitial as i}from"../../../../core/reactiveUtils.js";import{property as a,subclass as o}from"../../../../core/accessorSupport/decorators.js";import{absoluteHeightElevationInfo as s}from"../../../../support/elevationInfoUtils.js";import{convertLineOfSightElevationMode as c,snapshotLineOfSightObserverState as l,snapshotLineOfSightTargetState as u,restoreLineOfSightObserverState as d,restoreLineOfSightTargetState as f,updateLineOfSightItemFromAuthoredPoint as p}from"./LineOfSightAuthoringUtils.js";import{EditGeometryOperations as m}from"../../../interactive/editGeometry/EditGeometryOperations.js";const h=Symbol(`line-of-sight-item-operations`);let g=class extends t{constructor(e){super(e),this._operations=null,this._dragIntersectionContext=null,this._syncSource=null}initialize(){this.addHandles([r(()=>{let{elevationInfo:e,feature:t,position:n}=this.item;return{elevationInfo:e,elevationMode:e?.mode,elevationOffset:e?.offset,elevationUnit:e?.unit,feature:t,position:n,positionCoordinates:n?.toArray(),spatialReference:n?.spatialReference}},()=>this._syncOperationsFromItem(),i),r(()=>{let{origin:e}=this;return{origin:e,originCoordinates:e?.toArray(),spatialReference:e?.spatialReference}},()=>this.emit(`committed`),i)])}destroy(){this.removeHandles(h),this._operations=n(this._operations),this._dragIntersectionContext=null}get operations(){return this._operations}get elevationInfo(){return this.item.elevationInfo??s}get visible(){return this.analysisViewData.visible&&this.origin!=null}get isDraped(){return this.elevationInfo.mode===`on-the-ground`}get origin(){return this.item.type===`observer`?this.analysisViewData.elevationAlignedObserver:this.analysisViewData.computations.find(e=>e.target===this.item)?.elevationAlignedTargetLocation??null}get updating(){return!1}toMap(e){return this.intersector.getScreenPointIntersection(e)?.mapPoint}createUndoRecord(){let e=this._snapshotState(),t=null;return{undo:()=>{t=this._snapshotState(),this._restoreSnapshot(e)},redo:()=>{t!=null&&(e=this._snapshotState(),this._restoreSnapshot(t))}}}setElevationMode(e){let{position:t,elevationInfo:n}=this.item;if(t==null||e===this.elevationInfo.mode)return null;let r=c({view:this.view,point:t,sourceElevationInfo:n,mode:e,preserveZ:!0}),i=this.createUndoRecord();this._syncSource=`operations`;try{this.item.elevationInfo=r.elevationInfo,this.item.position=r.position}finally{this._syncSource=null}return this._syncOperationsFromItem(!1),i}updateDragIntersection(e){if(e.action===`cancel`){this._dragIntersectionContext=null;return}this._dragIntersectionContext={dragging:e.action!==`end`,intersection:this.intersector.getScreenPointIntersection(e.screenPoint)}}_snapshotState(){let{item:e}=this;return e.type===`observer`?l(e):u(e)}_restoreSnapshot(e){let{item:t}=this;t.type===`observer`?d(e,t):f(e,t),this.destroyed||(this._syncOperationsFromItem(),this.emit(`committed`))}_replaceOperations(e){this.removeHandles(h),this._operations=n(this._operations),this._operations=e,e!=null&&this.addHandles(e.data.on(`change`,()=>this._operationsGeometryChanged()),h)}_syncOperationsFromItem(e=!0){let{position:t}=this.item,n=this._operations;if(this._syncSource!==`operations`){this._syncSource=`item`;try{if(t==null){if(n==null)return;this._replaceOperations(null)}else!n?.data.geometry?.equals(t)&&!n?.trySetGeometry(t)&&this._replaceOperations(m.fromGeometry(t,this.view.state.viewingMode));e?this._emitModifiedExternally():this.emit(`committed`)}finally{this._syncSource=null}}}_operationsGeometryChanged(){let e=this._operations?.data.geometry;if(this._syncSource===`item`||e?.type!==`point`)return;let t=this._dragIntersectionContext;this._syncSource=`operations`;try{t==null?this.item.position=e:p(this.view,this.item,this.intersector,e,{elevationInfo:this.item.elevationInfo,preservedIntersection:t.intersection})}finally{this._syncSource=null}t!=null&&!t.dragging&&(this._dragIntersectionContext=null),this.emit(`committed`)}_emitModifiedExternally(){this.emit(`modified-externally`),this.emit(`committed`)}};e([a({constructOnly:!0})],g.prototype,`analysisViewData`,void 0),e([a({constructOnly:!0})],g.prototype,`intersector`,void 0),e([a({constructOnly:!0})],g.prototype,`item`,void 0),e([a({constructOnly:!0})],g.prototype,`view`,void 0),e([a()],g.prototype,`_operations`,void 0),g=e([o(`esri.views.3d.analysis.LineOfSight.LineOfSightItemManipulatedObject3D`)],g);export{g as LineOfSightItemManipulatedObject3D};