@arcgis/core 5.2.0-next.136 → 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 (507) 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/{06da3409992bb1fa85b0.js → 5e90c1b49f2b7e21d05a.js} +39 -31
  58. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +1 -0
  59. package/assets/esri/core/workers/chunks/{30f808cac8a34f95ea6e.js → 6079d27f4ab319fb8f0c.js} +1 -1
  60. package/assets/esri/core/workers/chunks/66c2a28a851130b87c04.js +1 -0
  61. package/assets/esri/core/workers/chunks/{dac90b3631f7f7158f68.js → 67f15538c51838201fc7.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js → 68d8ae42ab71d01a70a5.js} +2 -2
  63. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +1 -0
  64. package/assets/esri/core/workers/chunks/{864e7030c4ddbfcf0114.js → 6ccf9535013fe672c93b.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{ba7f0cf7e495d3ec2d55.js → 6e62581d933e7298d1f6.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{83b5dd4029e00abd80bf.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{f9fea72cc222a30ef2f9.js → 72399062767abdfb0bee.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{2a7fbfd77002a24bf737.js → 747461bb6a1bc2f0a64d.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{c333f6ed42985bb2b11f.js → 7851aef196eea5d6c94e.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{f0b6bd6fab5320c3082f.js → 7a05b18f655c1167ce0a.js} +1 -1
  71. package/assets/esri/core/workers/chunks/{04296b75d0f81fbd1bb5.js → 864194927d05ebc4cc31.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{3c4a13a9f0b305394a26.js → 876f7633c15f1e31078d.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{62298dba3f6cbdc3f4ae.js → 879b2f0ff1977bca9376.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{b547b3bce729c9dac90d.js → 898359be6996fd9763b8.js} +1 -1
  75. package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +1 -0
  76. package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +2 -0
  77. package/assets/esri/core/workers/chunks/{625f02db93d7fbf175ca.js → 9001e9a1e81bce175ddd.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{9ffa6c8d93d3443834c6.js → 912080c90b5cc2e817cf.js} +1 -1
  79. package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +2 -0
  80. package/assets/esri/core/workers/chunks/{13e4379441499599c3b5.js → 9cbde13e536676767900.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{408db4f32850b77264ae.js → 9cd3fcb5fca6f9dbbcd8.js} +1 -1
  82. package/assets/esri/core/workers/chunks/a054da6cbd8ee4774a57.js +1 -0
  83. package/assets/esri/core/workers/chunks/a05790444115e4cf1bcc.js +1 -0
  84. package/assets/esri/core/workers/chunks/{d1f2685782b423ef87a6.js → a556dd4e9e6d35e33a2c.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{00d576d355599c88931e.js → bc38def1983089514e4b.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{0725e515f3004bdd5c56.js → ca2adcbcf44454484fd5.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{f3507b9e831ffd7a6bf8.js → cca8bd07bcd1d267a2e8.js} +1 -1
  88. package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +1 -0
  89. package/assets/esri/core/workers/chunks/{1d6b2a64f4e40e5cc13d.js → d201fbf3ceff946d2bd6.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{4439078780d9ba49fd26.js → d51bb11baadc741c46bc.js} +1 -1
  91. package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +1 -0
  92. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +1 -0
  93. package/assets/esri/core/workers/chunks/e630f3c56c077cb2bd8e.js +1 -0
  94. package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +1 -0
  95. package/assets/esri/core/workers/chunks/{2025288bed125594ceda.js → f6e62d2d279a328cbed7.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{47c19778fcee7154ca38.js → f8bc474434fd365ab174.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{9a20dc26cb9c7b2087cf.js → f95a1f878c9c1146180e.js} +1 -1
  98. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
  99. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
  100. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
  101. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
  102. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
  103. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
  104. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
  105. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
  106. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  107. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
  108. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
  109. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
  110. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
  111. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
  112. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
  113. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
  114. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
  115. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
  116. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
  117. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
  118. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
  119. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
  120. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
  121. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
  122. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
  123. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
  124. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
  125. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
  126. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
  127. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
  128. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
  129. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
  130. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
  131. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
  132. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
  133. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
  134. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
  135. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
  136. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
  137. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
  138. package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
  139. package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
  140. package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
  141. package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
  142. package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
  143. package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
  144. package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
  145. package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
  146. package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
  147. package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
  148. package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
  149. package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
  150. package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
  151. package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
  152. package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
  153. package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
  154. package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
  155. package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
  156. package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
  157. package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
  158. package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
  159. package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
  160. package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
  161. package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
  162. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
  163. package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
  164. package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
  165. package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
  166. package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
  167. package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
  168. package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
  169. package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
  170. package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
  171. package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
  172. package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
  173. package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
  174. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
  175. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
  176. package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
  177. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
  178. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
  179. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
  180. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
  181. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
  182. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
  183. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
  184. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
  185. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.en.json +1 -1
  186. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
  187. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
  188. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
  189. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
  190. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
  191. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
  192. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
  193. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
  194. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
  195. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
  196. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
  197. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
  198. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
  199. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
  200. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
  201. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
  202. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
  203. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
  204. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
  205. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
  206. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
  207. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
  208. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
  209. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
  210. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
  211. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
  212. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
  213. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
  214. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
  215. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
  216. package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
  217. package/chunks/Bufferer-CclWhXVb.js +1 -1
  218. package/chunks/Component.glsl.js +3 -3
  219. package/chunks/DefaultMaterial.glsl.js +2 -2
  220. package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
  221. package/chunks/Envelope.js +1 -1
  222. package/chunks/Envelope2D.js +1 -1
  223. package/chunks/FocusArea.glsl.js +8 -10
  224. package/chunks/GaussianSplat.glsl.js +2 -2
  225. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  226. package/chunks/GeodeticUtils.js +1 -1
  227. package/chunks/Geometry.js +1 -1
  228. package/chunks/GeometryCleaner-CIE8Wfmb.js +1 -1
  229. package/chunks/GlobalIllumination.glsl.js +3 -3
  230. package/chunks/LineMarker.glsl.js +35 -42
  231. package/chunks/MultiPathImpl.js +1 -1
  232. package/chunks/OperatorAffineTransform.js +1 -1
  233. package/chunks/OperatorClip.js +1 -1
  234. package/chunks/OperatorDensify.js +1 -1
  235. package/chunks/OperatorDistance.js +1 -1
  236. package/chunks/OperatorGeneralize.js +1 -1
  237. package/chunks/OperatorGeodesicBuffer.js +1 -1
  238. package/chunks/OperatorGeodeticArea.js +1 -1
  239. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  240. package/chunks/OperatorGeodeticDistance.js +1 -1
  241. package/chunks/OperatorGeodeticLength.js +1 -1
  242. package/chunks/OperatorGraphicBuffer.js +1 -1
  243. package/chunks/OperatorIntegrate.js +1 -1
  244. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  245. package/chunks/OperatorProximity.js +1 -1
  246. package/chunks/OperatorProximityGeodesic.js +1 -1
  247. package/chunks/OperatorShapePreservingLength.js +1 -1
  248. package/chunks/OperatorShapePreservingProject.js +1 -1
  249. package/chunks/OperatorSimplifyOGC.js +1 -1
  250. package/chunks/Path.glsl.js +2 -2
  251. package/chunks/Point2D.js +1 -1
  252. package/chunks/RealisticTree.glsl.js +2 -2
  253. package/chunks/RibbonLine.glsl.js +51 -57
  254. package/chunks/SideCalculator2D-DX0718xq.js +1 -1
  255. package/chunks/Terrain.glsl.js +2 -2
  256. package/chunks/Transformation2D.js +1 -1
  257. package/chunks/UnitFactory.js +1 -1
  258. package/config.js +1 -1
  259. package/core/workers/RemoteClient.js +1 -1
  260. package/core/workers/workerFactory.js +1 -1
  261. package/editing/fieldUtils.d.ts +12 -0
  262. package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
  263. package/geometry/operators/extendOperator.js +1 -1
  264. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  265. package/geometry/operators/gx/operatorBoundary.js +1 -1
  266. package/geometry/operators/gx/operatorBuffer.js +1 -1
  267. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  268. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  269. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  270. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  271. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  272. package/geometry/operators/gx/operatorOffset.js +1 -1
  273. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  274. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  275. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  276. package/geometry/operators/isNearOperator.js +1 -1
  277. package/geometry/operators/reshapeOperator.js +1 -1
  278. package/geometry/operators/support/jsonConverter.js +1 -1
  279. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  280. package/geometry/support/ellipseUtils.js +2 -0
  281. package/interfaces.d.ts +15 -18
  282. package/kernel.js +1 -1
  283. package/layers/LinkChartLayer.js +1 -1
  284. package/layers/ParquetLayer.js +1 -1
  285. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  286. package/layers/list/LayerItemCollection.d.ts +1 -0
  287. package/layers/list/types.d.ts +5 -1
  288. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  289. package/layers/orientedImagery/queries.js +1 -1
  290. package/layers/support/TimeSeriesCalculation.d.ts +1 -1
  291. package/layers/support/TimeSeriesCalculation.js +1 -1
  292. package/layers/support/dataSeriesUtils.d.ts +10 -0
  293. package/layers/support/timeSeriesUtils.js +17 -6
  294. package/libs/lyr3d/Lyr3DModule.js +1 -1
  295. package/networks/UtilityNetwork.d.ts +15 -0
  296. package/networks/UtilityNetwork.js +1 -1
  297. package/package.json +4 -4
  298. package/popup/FeatureContent.d.ts +14 -1
  299. package/popup/FeatureContent.js +1 -1
  300. package/popup/FeatureContentCollection.d.ts +4 -10
  301. package/popup/FeatureContentCollection.js +1 -1
  302. package/popup/actions.js +1 -1
  303. package/popup/support/featureUtils.js +1 -1
  304. package/renderers/support/RenderingInfo.js +1 -1
  305. package/renderers/support/renderingInfoUtils.js +1 -1
  306. package/renderers/visualVariables/SizeVariable.d.ts +16 -20
  307. package/renderers/visualVariables/support/SizeStop.d.ts +6 -2
  308. package/rest/networks/support/TraceLocation.js +1 -1
  309. package/rest/networks/support/TraceResult.d.ts +7 -0
  310. package/rest/networks/support/TraceResult.js +1 -1
  311. package/smartMapping/renderers/color.js +1 -1
  312. package/smartMapping/renderers/opacity.js +1 -1
  313. package/smartMapping/renderers/size.js +1 -1
  314. package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
  315. package/smartMapping/statistics/histogramForTimeSeries.d.ts +11 -0
  316. package/smartMapping/statistics/histogramForTimeSeries.js +2 -0
  317. package/smartMapping/statistics/summaryStatisticsForTimeSeries.d.ts +11 -0
  318. package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +2 -0
  319. package/smartMapping/statistics/support/timeSeriesUtils.js +24 -0
  320. package/smartMapping/statistics/types.d.ts +50 -0
  321. package/support/tests/serviceMockDependencies.js +1 -1
  322. package/support/tests/setupServiceMocksMesh.js +1 -1
  323. package/symbols/cim/CIMPlacements.js +1 -1
  324. package/symbols/cim/callouts/calloutAnalysisUtils.js +1 -1
  325. package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
  326. package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
  327. package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
  328. package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
  329. package/symbols/cim/cimAnalyzer.js +1 -1
  330. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  331. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  332. package/views/2d/engine/vectorTiles/decluttering/CollisionJob.js +1 -1
  333. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  334. package/views/2d/engine/vectorTiles/decluttering/jobsUtil.js +1 -1
  335. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  336. package/views/2d/engine/webgl/definitions.js +1 -1
  337. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
  338. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  339. package/views/2d/engine/webgl/shaderGraph/techniques/animated/ComputedAnimatedParams.js +1 -1
  340. package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
  341. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
  342. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  343. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextParams.js +1 -1
  344. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  345. package/views/2d/layers/SketchLayerView2D.js +1 -1
  346. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  347. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  348. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  349. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  350. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  351. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  352. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  353. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  354. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  355. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  356. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  357. package/views/2d/layers/features/layerAdapters/labelingUtils.js +1 -1
  358. package/views/2d/layers/features/schema/ExceedsLimitCache.js +1 -1
  359. package/views/2d/layers/features/schema/TimeSchema.js +2 -0
  360. package/views/2d/layers/features/schema/processor/LabelMatcherSchema.js +1 -1
  361. package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
  362. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  363. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  364. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  365. package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
  366. package/views/2d/layers/support/vectorTileDebugUtils.js +1 -1
  367. package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
  368. package/views/2d/types.d.ts +2 -1
  369. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  370. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  371. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  372. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +24 -0
  373. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
  374. package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
  375. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  376. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  377. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
  378. package/views/3d/camera/constraintUtils.js +1 -1
  379. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  380. package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
  381. package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
  382. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  383. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  384. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  385. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  386. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  387. package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
  388. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  389. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  390. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  391. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  392. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +16 -8
  393. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +5 -1
  394. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +12 -0
  395. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  396. package/views/3d/webgl-engine/effects/focusArea/FocusArea.glsl.js +1 -1
  397. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  398. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  399. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  400. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  401. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  402. package/views/SelectionManager.d.ts +3 -3
  403. package/views/draw/support/Reshape.js +1 -1
  404. package/views/interactive/options/bindViewToolOptions.js +1 -1
  405. package/views/interactive/sketch/SketchLabelOptions.d.ts +3 -0
  406. package/views/interactive/sketch/SketchLabelOptions.js +1 -1
  407. package/views/interactive/sketch/SketchTooltipOptions.d.ts +3 -0
  408. package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
  409. package/views/interactive/sketch/SketchValueOptions.d.ts +3 -0
  410. package/views/interactive/sketch/SketchValueOptions.js +1 -1
  411. package/views/interactive/snapping/SnappingOptions.d.ts +3 -0
  412. package/views/interactive/snapping/SnappingOptions.js +1 -1
  413. package/views/interactive/snapping/snappingUtils.js +1 -1
  414. package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
  415. package/views/layers/SketchLayerView.d.ts +34 -0
  416. package/views/layers/SketchLayerView.js +2 -0
  417. package/views/layers/types.d.ts +3 -2
  418. package/views/selection/types.d.ts +15 -4
  419. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  420. package/widgets/BasemapGallery.js +1 -1
  421. package/widgets/Bookmarks/BookmarksViewModel.d.ts +4 -0
  422. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +5 -1
  423. package/widgets/Bookmarks/types.d.ts +2 -0
  424. package/widgets/Editor/EditorViewModel.d.ts +31 -30
  425. package/widgets/Editor/EditorViewModel.js +1 -1
  426. package/widgets/Editor/components/Settings.js +1 -1
  427. package/widgets/Editor/types.d.ts +44 -0
  428. package/widgets/Editor.d.ts +30 -27
  429. package/widgets/Editor.js +1 -1
  430. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
  431. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  432. package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -1
  433. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  434. package/widgets/FeatureTable.d.ts +6 -0
  435. package/widgets/FeatureTable.js +1 -1
  436. package/widgets/Histogram/types.d.ts +10 -2
  437. package/widgets/HistogramRangeSlider/types.d.ts +4 -1
  438. package/widgets/LayerList/LayerListViewModel.d.ts +2 -1
  439. package/widgets/Legend/LegendViewModel.d.ts +2 -0
  440. package/widgets/Legend/styles/card/CardView.d.ts +2 -0
  441. package/widgets/Legend/styles/classic/ClassicView.d.ts +4 -1
  442. package/widgets/Legend.d.ts +3 -0
  443. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +7 -0
  444. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  445. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  446. package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +2 -0
  447. package/widgets/OrientedImageryViewer/types.d.ts +9 -0
  448. package/widgets/OrientedImageryViewer.d.ts +7 -0
  449. package/widgets/OrientedImageryViewer.js +2 -2
  450. package/widgets/PanoramicVideoViewer.js +1 -1
  451. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  452. package/widgets/ScaleRangeSlider/types.d.ts +9 -2
  453. package/widgets/Sketch/SketchViewModel.d.ts +32 -1
  454. package/widgets/Sketch/SketchViewModel.js +1 -1
  455. package/widgets/Sketch.d.ts +27 -1
  456. package/widgets/Sketch.js +1 -1
  457. package/widgets/Slider/types.d.ts +58 -13
  458. package/widgets/Slider.d.ts +6 -0
  459. package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +2 -0
  460. package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +2 -0
  461. package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +2 -0
  462. package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +2 -0
  463. package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +2 -0
  464. package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -0
  465. package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +2 -0
  466. package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +3 -0
  467. package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -0
  468. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +2 -0
  469. package/widgets/smartMapping/types.d.ts +30 -7
  470. package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +21 -11
  471. package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
  472. package/widgets/support/FilterBuilder/types.d.ts +28 -0
  473. package/widgets/support/FilterBuilder.js +1 -1
  474. package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +24 -0
  475. package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
  476. package/widgets/support/FilterCondition/types.d.ts +16 -1
  477. package/widgets/support/FilterCondition.js +1 -1
  478. package/widgets/support/SnappingControls/snappingLayerListUtils.js +1 -1
  479. package/widgets/support/iconUtils.js +1 -1
  480. package/assets/esri/core/workers/chunks/0606ab6fdfc1dfea3856.js +0 -1
  481. package/assets/esri/core/workers/chunks/078dcd17f46403d44b24.js +0 -1
  482. package/assets/esri/core/workers/chunks/1289204f8ca96032c17a.js +0 -1
  483. package/assets/esri/core/workers/chunks/12b5a645c0987a0efe54.js +0 -2
  484. package/assets/esri/core/workers/chunks/152fe3d6ad7aebbd23d1.js +0 -1
  485. package/assets/esri/core/workers/chunks/17b938ba49fb1e7ab8c4.js +0 -1
  486. package/assets/esri/core/workers/chunks/1dbb3e25e005a8220779.js +0 -2
  487. package/assets/esri/core/workers/chunks/3d6fef25af7e1a51e1bd.js +0 -1
  488. package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +0 -1
  489. package/assets/esri/core/workers/chunks/5f4feca26102088ea565.js +0 -1
  490. package/assets/esri/core/workers/chunks/74211d096cc3296e0968.js +0 -1
  491. package/assets/esri/core/workers/chunks/7926faab76a721a2e1c4.js +0 -1
  492. package/assets/esri/core/workers/chunks/ad28486bc6afaa346de5.js +0 -1
  493. package/assets/esri/core/workers/chunks/ad29c729e90b5866713c.js +0 -1
  494. package/assets/esri/core/workers/chunks/b72a2514aa4cc4ae7d1b.js +0 -1
  495. package/assets/esri/core/workers/chunks/bb51cf52b8ea8283f4f8.js +0 -1
  496. package/assets/esri/core/workers/chunks/be761749f8d77fbd9df5.js +0 -1
  497. package/assets/esri/core/workers/chunks/dbfd25aa0d19aed5890c.js +0 -1
  498. package/assets/esri/core/workers/chunks/de28a86775235bd5d3c4.js +0 -2
  499. package/assets/esri/core/workers/chunks/f6cfc901267a229de7a1.js +0 -2
  500. package/assets/esri/core/workers/chunks/fb147097149a89e671ff.js +0 -1
  501. package/support/revision.js +0 -2
  502. /package/assets/esri/core/workers/chunks/{1dbb3e25e005a8220779.js.LICENSE.txt → 1b946714ca4a1a7359d4.js.LICENSE.txt} +0 -0
  503. /package/assets/esri/core/workers/chunks/{f6cfc901267a229de7a1.js.LICENSE.txt → 2a1ec30f9ad305763f81.js.LICENSE.txt} +0 -0
  504. /package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js.LICENSE.txt → 590e6c70206122e4cc3c.js.LICENSE.txt} +0 -0
  505. /package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js.LICENSE.txt → 68d8ae42ab71d01a70a5.js.LICENSE.txt} +0 -0
  506. /package/assets/esri/core/workers/chunks/{de28a86775235bd5d3c4.js.LICENSE.txt → 8dc1c3042267618fd710.js.LICENSE.txt} +0 -0
  507. /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{maxHighlightGroups as t}from"../../../definitions.js";import{location as n,define as r,option as i,uniform as a,texture as o,VertexInput as s,ComputeVertexInput as c,GraphShaderModule as l,FragmentOutput as u,FragmentInput as d}from"../../GraphShaderModule.js";import{Vec3 as f,Float as p,Vec2 as m,Sampler2D as h,float as g,step as _,Vec4 as v,equal as y,ifElse as b,or as x,texture2D as S,Mat3 as C,textureSize as w,Int as T,mod as E}from"../../graph/glsl.js";import{trueHit as D,candidateHit as O,noHit as k,bitsetGenericLabelInstance as A}from"./constants.js";import{EntityStorage as j,EntityStorageTextures as M}from"./EntityStorage.js";import{ShaderHighlight as N}from"./ShaderHighlight.js";import{ShaderHittest as P}from"./ShaderHittest.js";import{Tile as F}from"./Tile.js";import{TileInfo as I}from"./TileInfo.js";import{getFilterBit as L,getHighlightBit as R,getBit as z,uvToClip as B,unpackDisplayIdTexel as V}from"./utils.js";import{ViewInfo as H}from"./ViewInfo.js";class U extends s{}e([n(0,f)],U.prototype,`id`,void 0),e([n(1,p)],U.prototype,`bitset`,void 0),e([n(2,m)],U.prototype,`pos`,void 0);class W extends c{}e([n(14,m)],W.prototype,`nextPos1`,void 0),e([n(15,m)],W.prototype,`nextPos2`,void 0);class G extends d{}class K extends l{clip(e,t=new p(0),n){let r=new p(0),i=this.getFeatureId(e,t),a=this.getFilterFlags(i);if(r=r.add(g(2).multiply(g(1).subtract(L(a,0)))),this.inside?r=r.add(g(2).multiply(g(1).subtract(L(a,1)))):this.outside?r=r.add(g(2).multiply(L(a,1))):this.highlight&&(r=r.add(g(2).multiply(g(1).subtract(this._checkHighlight(a))))),n!=null){let e=new p(1).subtract(_(n.x,this.tileInfo.currentZoom)),t=_(n.y,this.tileInfo.currentZoom);r=r.add(new p(2).multiply(e.add(t)))}return r=r.add(new p(2).multiply(this.getLabelHidden(e,t))),r}getFragmentOutput(e,t,n=new p(1/255)){let r=new u;return r.fragColor=this._maybeWriteHittest(t)??this._maybeHighlight(e,n)??e,r}_maybeHighlight(e,t){return this.highlight?new v(e.rgb,_(t,e.a)):null}_checkHighlight(e){let n=this._checkHighlightBit(e,0);for(let r=1;r<t;r++)n=n.add(this._checkHighlightBit(e,r));return _(new p(.1),n.add(this.highlight.highlightAll))}_checkHighlightBit(e,t){return R(e,t).multiply(z(this.highlight.activeGroups,t))}computeHittestTriangle(e,t,n){let r=this.tile.getViewScreenMat3(this.view),{nextPos1:i,nextPos2:a}=t,o=this.getLabelPosition(e.pos,e.id,e.bitset),s=this.getLabelPosition(i,e.id,e.bitset),c=this.getLabelPosition(a,e.id,e.bitset);return{pos0:r.multiply(new f(o,1)).xy,pos1:r.multiply(new f(s,1)).xy,pos2:r.multiply(new f(c,1)).xy}}maybeRunHittest(e,t,n){if(this.hittestRequest==null)return null;let r=this.hittest(e,t,n),i=y(r,new p(D)),a=y(r,new p(O)),o=b(a,()=>new v(new p(1/255),0,0,0),b(i,()=>new v(new p(2/255),0,0,0),new v(k))),s=b(x(i,a),new p(0),new p(2)),c=this.getAttributeDataCoords(this.getFeatureId(e.id,e.bitset)),l=B(c);return s=s.add(this.clip(e.id,e.bitset,e.zoomRange)),{glPointSize:new p(1),glPosition:new v(l,s,1),color:o}}_maybeWriteHittest(e){return this.hittestRequest==null?null:e.color}getAttributeDataCoords(e){return this.storage.getAttributeDataCoords(e)}getFeatureId(e,t){let n=z(t,A);return b(y(n,new p(1)),()=>S(this.labelStoreTexture,this._getLabelStoreCoords(e)).rgb.multiply(255),e)}getLabelPosition(e,t,n){let r=z(n,A);return b(y(r,new p(1)),()=>{let n=S(this.labelAnchorStoreTexture,this._getLabelStoreCoords(t)),r=n.xy,i=y(e.x,r.x).and(y(e.y,r.y)),a=b(i,new m(0),n.zw),o=this.view.getRotation().divide(-180).multiply(Math.PI),s=C.fromRotation(o).multiply(new f(e.subtract(r).add(a),0)).xy.multiply(this.tile.getDisplayZoomFactor(this.tileInfo));return r.add(s)},e)}getLabelOffset(e,t){return b(y(z(t,A),new p(1)),()=>{let t=this.view.getRotation().divide(-180).multiply(Math.PI);return C.fromRotation(t).multiply(new f(e,0)).xy},e)}getLabelHidden(e,t){return b(y(z(t,A),new p(1)),()=>S(this.labelStoreTexture,this._getLabelStoreCoords(e)).a,new p(0))}getVVData(e){return this.storageTextures.getVVData(this.getAttributeDataCoords(e))}getFilterFlags(e){return this.storageTextures.getFilterFlags(this.getAttributeDataCoords(e))}getLocalTimeOrigin(e){return this.storageTextures.getLocalTimeOrigin(this.getAttributeDataCoords(e))}getSizeValue(e){return this.storageTextures.getSizeValue(this.getAttributeDataCoords(e))}getColorValue(e){return this.storageTextures.getColorValue(this.getAttributeDataCoords(e))}getOpacityValue(e){return this.storageTextures.getOpacityValue(this.getAttributeDataCoords(e))}getRotationValue(e){return this.storageTextures.getRotationValue(this.getAttributeDataCoords(e))}_getLabelStoreCoords(e){let t=V(e),n=t.x,r=t.y.multiply(256),i=t.z.multiply(65536),a=n.add(r).add(i),o=g(w(this.labelStoreTexture,new T(0)).x),s=E(a,o),c=a.subtract(s).divide(o);return new m(s,c).add(.5).divide(o)}}e([r],K.prototype,`inside`,void 0),e([r],K.prototype,`outside`,void 0),e([i(N)],K.prototype,`highlight`,void 0),e([a(j)],K.prototype,`storage`,void 0),e([o(M)],K.prototype,`storageTextures`,void 0),e([o(h)],K.prototype,`labelStoreTexture`,void 0),e([o(h)],K.prototype,`labelAnchorStoreTexture`,void 0),e([o(h)],K.prototype,`hittestMaskTexture`,void 0),e([a(H)],K.prototype,`view`,void 0),e([a(I)],K.prototype,`tileInfo`,void 0),e([a(F)],K.prototype,`tile`,void 0),e([i(P)],K.prototype,`hittestRequest`,void 0);export{K as AFeatureShader,W as BaseHittestVertexInput,G as FeatureFragmentInput,U as FeatureVertexInput};
2
+ import{__decorate as e}from"tslib";import{maxHighlightGroups as t}from"../../../definitions.js";import{location as n,define as r,option as i,uniform as a,texture as o,VertexInput as s,ComputeVertexInput as c,GraphShaderModule as l,FragmentOutput as u,FragmentInput as d}from"../../GraphShaderModule.js";import{Vec3 as f,Float as p,Vec2 as m,Sampler2D as h,float as g,step as _,Vec4 as v,equal as y,ifElse as b,or as x,texture2D as S,Mat3 as C,textureSize as w,Int as T,mod as E}from"../../graph/glsl.js";import{trueHit as D,candidateHit as O,noHit as k,bitsetGenericLabelInstance as A}from"./constants.js";import{EntityStorage as j,EntityStorageTextures as M}from"./EntityStorage.js";import{ShaderHighlight as N}from"./ShaderHighlight.js";import{ShaderHittest as P}from"./ShaderHittest.js";import{Tile as F}from"./Tile.js";import{TileInfo as I}from"./TileInfo.js";import{getFilterBit as L,getHighlightBit as R,getBit as z,uvToClip as B,unpackDisplayIdTexel as V}from"./utils.js";import{ViewInfo as H}from"./ViewInfo.js";class U extends s{}e([n(0,f)],U.prototype,`id`,void 0),e([n(1,p)],U.prototype,`bitset`,void 0),e([n(2,m)],U.prototype,`pos`,void 0);class W extends c{}e([n(14,m)],W.prototype,`nextPos1`,void 0),e([n(15,m)],W.prototype,`nextPos2`,void 0);class G extends d{}class K extends l{clip(e,t=new p(0),n){let r=new p(0),i=this.getFeatureId(e,t),a=this.getFilterFlags(i);if(r=r.add(g(2).multiply(g(1).subtract(L(a,0)))),this.inside?r=r.add(g(2).multiply(g(1).subtract(L(a,1)))):this.outside?r=r.add(g(2).multiply(L(a,1))):this.highlight&&(r=r.add(g(2).multiply(g(1).subtract(this._checkHighlight(a))))),n!=null){let e=new p(1).subtract(_(n.x,this.tileInfo.currentZoom)),t=_(n.y,this.tileInfo.currentZoom);r=r.add(new p(2).multiply(e.add(t)))}return r=r.add(new p(2).multiply(this.getLabelHidden(e,t))),r}getFragmentOutput(e,t,n=new p(1/255)){let r=new u;return r.fragColor=this._maybeWriteHittest(t)??this._maybeHighlight(e,n)??e,r}_maybeHighlight(e,t){return this.highlight?new v(e.rgb,_(t,e.a)):null}_checkHighlight(e){let n=this._checkHighlightBit(e,0);for(let r=1;r<t;r++)n=n.add(this._checkHighlightBit(e,r));return _(new p(.1),n.add(this.highlight.highlightAll))}_checkHighlightBit(e,t){return R(e,t).multiply(z(this.highlight.activeGroups,t))}computeHittestTriangle(e,t,n){let r=this.tile.getViewScreenMat3(this.view),{nextPos1:i,nextPos2:a}=t,o=this.getLabelPosition(e.pos,e.id,e.bitset),s=this.getLabelPosition(i,e.id,e.bitset),c=this.getLabelPosition(a,e.id,e.bitset);return{pos0:r.multiply(new f(o,1)).xy,pos1:r.multiply(new f(s,1)).xy,pos2:r.multiply(new f(c,1)).xy}}maybeRunHittest(e,t,n){if(this.hittestRequest==null)return null;let r=this.hittest(e,t,n),i=y(r,new p(D)),a=y(r,new p(O)),o=b(a,()=>new v(new p(1/255),0,0,0),b(i,()=>new v(new p(2/255),0,0,0),new v(k))),s=b(x(i,a),new p(0),new p(2)),c=this.getAttributeDataCoords(this.getFeatureId(e.id,e.bitset)),l=B(c);return s=s.add(this.clip(e.id,e.bitset,e.zoomRange)),{glPointSize:new p(1),glPosition:new v(l,s,1),color:o}}_maybeWriteHittest(e){return this.hittestRequest==null?null:e.color}getAttributeDataCoords(e){return this.storage.getAttributeDataCoords(e)}getLabelReferenceSymbolVVOffset(e){return S(this.labelAnchorStoreTexture,this._getLabelStoreCoords(e)).zw}getFeatureId(e,t){let n=z(t,A);return b(y(n,new p(1)),()=>S(this.labelStoreTexture,this._getLabelStoreCoords(e)).rgb.multiply(255),e)}getLabelPosition(e,t,n){let r=z(n,A);return b(y(r,new p(1)),()=>{let n=S(this.labelAnchorStoreTexture,this._getLabelStoreCoords(t)),r=n.xy,i=y(e.x,r.x).and(y(e.y,r.y)),a=b(i,new m(0),n.zw),o=this.view.getRotation().divide(-180).multiply(Math.PI),s=C.fromRotation(o).multiply(new f(e.subtract(r).add(a),0)).xy.multiply(this.tile.getDisplayZoomFactor(this.tileInfo));return r.add(s)},e)}getLabelOffset(e,t){return b(y(z(t,A),new p(1)),()=>{let t=this.view.getRotation().divide(-180).multiply(Math.PI);return C.fromRotation(t).multiply(new f(e,0)).xy},e)}getLabelHidden(e,t){return b(y(z(t,A),new p(1)),()=>S(this.labelStoreTexture,this._getLabelStoreCoords(e)).a,new p(0))}getVVData(e){return this.storageTextures.getVVData(this.getAttributeDataCoords(e))}getFilterFlags(e){return this.storageTextures.getFilterFlags(this.getAttributeDataCoords(e))}getLocalTimeOrigin(e){return this.storageTextures.getLocalTimeOrigin(this.getAttributeDataCoords(e))}getSizeValue(e){return this.storageTextures.getSizeValue(this.getAttributeDataCoords(e))}getColorValue(e){return this.storageTextures.getColorValue(this.getAttributeDataCoords(e))}getOpacityValue(e){return this.storageTextures.getOpacityValue(this.getAttributeDataCoords(e))}getRotationValue(e){return this.storageTextures.getRotationValue(this.getAttributeDataCoords(e))}_getLabelStoreCoords(e){let t=V(e),n=t.x,r=t.y.multiply(256),i=t.z.multiply(65536),a=n.add(r).add(i),o=g(w(this.labelStoreTexture,new T(0)).x),s=E(a,o),c=a.subtract(s).divide(o);return new m(s,c).add(.5).divide(o)}}e([r],K.prototype,`inside`,void 0),e([r],K.prototype,`outside`,void 0),e([i(N)],K.prototype,`highlight`,void 0),e([a(j)],K.prototype,`storage`,void 0),e([o(M)],K.prototype,`storageTextures`,void 0),e([o(h)],K.prototype,`labelStoreTexture`,void 0),e([o(h)],K.prototype,`labelAnchorStoreTexture`,void 0),e([o(h)],K.prototype,`hittestMaskTexture`,void 0),e([a(H)],K.prototype,`view`,void 0),e([a(I)],K.prototype,`tileInfo`,void 0),e([a(F)],K.prototype,`tile`,void 0),e([i(P)],K.prototype,`hittestRequest`,void 0);export{K as AFeatureShader,W as BaseHittestVertexInput,G as FeatureFragmentInput,U as FeatureVertexInput};
@@ -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,__param as t}from"tslib";import{labelU16ZoomPrecisionFactor as n,labelPlacementOffsetPadding as r,packDegreesU8 as i}from"../../../definitions.js";import{location as a,option as o,uniform as s,texture as c,define as l,input as u,ComputeVertexInput as d}from"../../GraphShaderModule.js";import{Vec4 as f,Vec2 as p,Float as m,Sampler2D as h,mod as g,floor as _,step as v,and as y,lessThan as b,greaterThanEqual as x,Vec3 as S,Mat3 as ee,ifElse as C,equal as w,greaterThan as T,Bool as E,texture2D as D,smoothstep as O,Int as k,bitRShift as A,bitAnd as j}from"../../graph/glsl.js";import{FeatureVertexInput as M,AFeatureShader as te,FeatureFragmentInput as N}from"../shaders/AFeatureShader.js";import{bitsetTextIsBackground as P,bitsetTextIsMapAligned as F,noHit as I,trueHit as ne}from"../shaders/constants.js";import{isPointHittest as re,distPointTriangle as ie,isRectHittest as L,hittestRect as R,isPolygonHittest as z,hittestPolygon as B}from"../shaders/hittestUtils.js";import{MosaicInfo as V}from"../shaders/MosaicInfo.js";import{getBit as H}from"../shaders/utils.js";import{VisualVariableColor as U}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as W}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as G}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as K}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as q}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as J}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as ae}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as Y,getVisualVariableRotation as oe}from"../shaders/vvUtils.js";const se=1/i;class X extends M{}e([a(3,f)],X.prototype,`color`,void 0),e([a(4,p)],X.prototype,`offset`,void 0),e([a(5,p)],X.prototype,`textureUV`,void 0),e([a(6,f)],X.prototype,`fontAndReferenceSize`,void 0),e([a(7,f)],X.prototype,`outlineColor`,void 0),e([a(8,f)],X.prototype,`haloColor`,void 0),e([a(9,p)],X.prototype,`outlineAndHaloSize`,void 0),e([a(10,p)],X.prototype,`zoomRange`,void 0),e([a(11,m)],X.prototype,`clipAngle`,void 0),e([a(12,f)],X.prototype,`referenceSymbol`,void 0);class Z extends d{}e([a(13,p)],Z.prototype,`offsetNextVertex1`,void 0),e([a(14,p)],Z.prototype,`offsetNextVertex2`,void 0);class Q extends N{}class $ extends te{constructor(){super(...arguments),this.type=`TextShader`,this.computeAttributes={offset:[`offsetNextVertex1`,`offsetNextVertex2`]},this.textRenderPassType=0,this.isBackgroundPass=!1,this.isLabel=!1}clipLabel(e,t){let{clipAngle:r,zoomRange:i}=e,a=r.multiply(se),o=g(a.subtract(this.view.getRotation()),new m(360)),s=new m(0),c=n,l=_(this.tileInfo.currentZoom.multiply(c)).divide(c),u=i.x,d=i.y,f=new m(1).subtract(v(u,l)).multiply(2),p=new m(y(x(o,new m(90)),b(o,new m(270)))).multiply(2),h=new m(2).multiply(new m(1).subtract(v(l,d)));return s=s.add(t.multiply(f)),s=s.add(t.multiply(p)),s=s.add(h),s=s.add(new m(2).multiply(this.getLabelHidden(e.id,e.bitset))),s}vertex(e,t){let n=H(e.bitset,P),i=new m(1).subtract(n),a=this.getFeatureId(e.id,e.bitset),o=e.fontAndReferenceSize[0],s=e.fontAndReferenceSize[1],c=e.fontAndReferenceSize[2],l=e.fontAndReferenceSize[3],u=o.divide(c),d=this.textRenderPassType===1?e.outlineColor:this.textRenderPassType===2?e.haloColor:this._getVertexColor(e,a),h=this.tile.getDisplayViewScreenMat3(this.view).multiply(new S(e.pos,1)),g=e.offset,_=new m(1),v=ee.identity(),y=new p(0);if(this.isLabel){if(!e.referenceSymbol)throw Error(`InternalError: Optional attribute 'referenceSymbol' expected for labels`);let t=e.referenceSymbol,n=t.xy,i=t.z,o=this._unpackDirection(t.w),s=Y(this,a,i).divide(2),c=o.multiply(s.add(r));y=n.add(c),g=g.add(y)}else _=Y(this,a,s).divide(s),o=o.multiply(_),u=u.multiply(_),g=g.multiply(_),v=oe(this,a),g=v.multiply(new S(g,0)).xy;let b=H(e.bitset,F),x=this._getViewRotationMatrix(b).multiply(new S(g,0)).multiply(this.tileInfo.scaleFactor),D=this.isLabel?this.clipLabel(e,b):this.clip(e.id,e.bitset,e.zoomRange);D=this.isBackgroundPass?D.add(i.multiply(2)):D.add(n.multiply(2));let O=new m(0);if(this.textRenderPassType===1&&(D=D.add(C(w(e.outlineAndHaloSize.x,new m(0)),new m(2),new m(0))),O=new m(e.outlineAndHaloSize.x).divide(u).divide(l)),this.textRenderPassType===2){let t=e.outlineAndHaloSize.x,n=new m(e.outlineAndHaloSize.y);D=D.add(C(w(n,new m(0)),new m(2),new m(0))),O=n.add(t).divide(u).divide(l)}let k=this.isLabel?T(D,new m(1)):new E(!1),A=new f(h.xy.add(x.xy),D,1),j=e.textureUV.divide(this.mosaicInfo.size),M=new m(.105).multiply(c).divide(o).divide(this.view.pixelRatio);return{glPosition:A,color:d,size:u,textureUV:j,antialiasingWidth:M,outlineDistanceOffset:O,...this.maybeRunHittest(e,t,{vvSizeAdjustment:_,vvRotation:v,labelOffset:y,labelClipped:k,scaleFactor:this.tileInfo.scaleFactor})}}_getViewRotationMatrix(e){let t=this.view.getDisplayViewMat3(),n=this.view.displayMat3,r=new m(1).subtract(e);return t.multiply(e).add(n.multiply(r))}_getHittestAlignmentMatrix(e){let t=this.tile.getTileMat3(this.view),n=this.view.viewMat3.multiply(t),r=t,i=new m(1).subtract(e);return n.multiply(e).add(r.multiply(i))}fragment(e){let t=new m(2/8),n=new m(1).subtract(t),r=D(this.mosaicTexture,e.textureUV).a,i=n.subtract(e.outlineDistanceOffset);this.highlight&&(i=i.divide(2));let a=e.antialiasingWidth,o=O(i.subtract(a),i.add(a),r);return this.getFragmentOutput(e.color.multiply(o),e)}computeHittestTriangle(e,t,{vvSizeAdjustment:n,vvRotation:r,labelOffset:i,scaleFactor:a}){let o,s,c;this.isLabel?(o=new S(e.offset.multiply(a).add(i),0),s=new S(t.offsetNextVertex1.multiply(a).add(i),0),c=new S(t.offsetNextVertex2.multiply(a).add(i),0)):(o=r.multiply(new S(e.offset.multiply(a).multiply(n),0)),s=r.multiply(new S(t.offsetNextVertex1.multiply(a).multiply(n),0)),c=r.multiply(new S(t.offsetNextVertex2.multiply(a).multiply(n),0)));let l=this.tile.getViewScreenMat3(this.view).multiply(new S(e.pos,1)),u=H(e.bitset,F),d=this._getHittestAlignmentMatrix(u);return{pos0:l.add(d.multiply(o)).xy,pos1:l.add(d.multiply(s)).xy,pos2:l.add(d.multiply(c)).xy}}hittest(e,t,n){let{vvSizeAdjustment:r,vvRotation:i,labelOffset:a,labelClipped:o,scaleFactor:s}=n,{pos0:c,pos1:l,pos2:u}=this.computeHittestTriangle(e,t,{vvSizeAdjustment:r,vvRotation:i,labelOffset:a,scaleFactor:s}),d={pos0:c,pos1:l,pos2:u},f=this.isLabel?o:new E(!1);return C(f,new m(I),()=>C(re(this.hittestRequest),()=>{let e=ie(this.hittestRequest.position,c,l,u);return C(T(e,this.hittestRequest.distance),new m(I),new m(ne))},()=>C(L(this.hittestRequest),R(d,this.hittestRequest.rect.xy,this.hittestRequest.rect.zw),C(z(this.hittestRequest),B(d,this.hittestRequest.viewSize,this.hittestMaskTexture),new m(I)))))}_unpackDirection(e){let t=new k(e),n=A(t,new k(2)),r=j(t,new k(3));return new p(new m(n).subtract(1),new m(r).subtract(1))}_getVertexColor(e,t){let n=e.color;if(this.visualVariableColor){let r=this.getColorValue(t);n=this.visualVariableColor.getColor(r,e.color,new E(!1))}if(this.visualVariableOpacity){let e=this.getOpacityValue(t),r=this.visualVariableOpacity.getOpacity(e);n=n.multiply(r)}return n}}e([o(U)],$.prototype,`visualVariableColor`,void 0),e([o(W)],$.prototype,`visualVariableOpacity`,void 0),e([o(G)],$.prototype,`visualVariableRotation`,void 0),e([o(K)],$.prototype,`visualVariableSizeMinMaxValue`,void 0),e([o(q)],$.prototype,`visualVariableSizeScaleStops`,void 0),e([o(J)],$.prototype,`visualVariableSizeStops`,void 0),e([o(ae)],$.prototype,`visualVariableSizeUnitValue`,void 0),e([s(V)],$.prototype,`mosaicInfo`,void 0),e([c(h)],$.prototype,`mosaicTexture`,void 0),e([l],$.prototype,`textRenderPassType`,void 0),e([l],$.prototype,`isBackgroundPass`,void 0),e([l],$.prototype,`isLabel`,void 0),e([t(0,u(X)),t(1,u(Z))],$.prototype,`vertex`,null),e([t(0,u(Q))],$.prototype,`fragment`,null);export{Q as TextFragmentInput,$ as TextShader,X as TextVertexInput};
2
+ import{__decorate as e,__param as t}from"tslib";import{labelU16ZoomPrecisionFactor as n,labelPlacementOffsetPadding as r,packDegreesU8 as i}from"../../../definitions.js";import{location as a,option as o,uniform as s,texture as c,define as l,input as u,ComputeVertexInput as d}from"../../GraphShaderModule.js";import{Vec4 as f,Vec2 as p,Float as m,Sampler2D as h,mod as g,floor as _,step as v,and as y,lessThan as b,greaterThanEqual as x,Vec3 as S,Mat3 as ee,equal as C,ifElse as w,greaterThan as T,Bool as E,texture2D as D,smoothstep as O,Int as k,bitRShift as A,bitAnd as j}from"../../graph/glsl.js";import{FeatureVertexInput as M,AFeatureShader as te,FeatureFragmentInput as N}from"../shaders/AFeatureShader.js";import{bitsetTextIsBackground as P,bitsetTextIsMapAligned as F,noHit as I,trueHit as ne}from"../shaders/constants.js";import{isPointHittest as re,distPointTriangle as ie,isRectHittest as L,hittestRect as R,isPolygonHittest as z,hittestPolygon as B}from"../shaders/hittestUtils.js";import{MosaicInfo as V}from"../shaders/MosaicInfo.js";import{getBit as H}from"../shaders/utils.js";import{VisualVariableColor as U}from"../shaders/VisualVariableColor.js";import{VisualVariableOpacity as W}from"../shaders/VisualVariableOpacity.js";import{VisualVariableRotation as G}from"../shaders/VisualVariableRotation.js";import{VisualVariableSizeMinMaxValue as K}from"../shaders/VisualVariableSizeMinMaxValue.js";import{VisualVariableSizeScaleStops as q}from"../shaders/VisualVariableSizeScaleStops.js";import{VisualVariableSizeStops as J}from"../shaders/VisualVariableSizeStops.js";import{VisualVariableSizeUnitValue as ae}from"../shaders/VisualVariableSizeUnitValue.js";import{getVisualVariableSize as Y,getVisualVariableRotation as oe}from"../shaders/vvUtils.js";const se=1/i;class X extends M{}e([a(3,f)],X.prototype,`color`,void 0),e([a(4,p)],X.prototype,`offset`,void 0),e([a(5,p)],X.prototype,`textureUV`,void 0),e([a(6,f)],X.prototype,`fontAndReferenceSize`,void 0),e([a(7,f)],X.prototype,`outlineColor`,void 0),e([a(8,f)],X.prototype,`haloColor`,void 0),e([a(9,p)],X.prototype,`outlineAndHaloSize`,void 0),e([a(10,p)],X.prototype,`zoomRange`,void 0),e([a(11,m)],X.prototype,`clipAngle`,void 0),e([a(12,f)],X.prototype,`referenceSymbol`,void 0);class Z extends d{}e([a(13,p)],Z.prototype,`offsetNextVertex1`,void 0),e([a(14,p)],Z.prototype,`offsetNextVertex2`,void 0);class Q extends N{}class $ extends te{constructor(){super(...arguments),this.type=`TextShader`,this.computeAttributes={offset:[`offsetNextVertex1`,`offsetNextVertex2`]},this.textRenderPassType=0,this.isBackgroundPass=!1,this.isLabel=!1}clipLabel(e,t){let{clipAngle:r,zoomRange:i}=e,a=r.multiply(se),o=g(a.subtract(this.view.getRotation()),new m(360)),s=new m(0),c=n,l=_(this.tileInfo.currentZoom.multiply(c)).divide(c),u=i.x,d=i.y,f=new m(1).subtract(v(u,l)).multiply(2),p=new m(y(x(o,new m(90)),b(o,new m(270)))).multiply(2),h=new m(2).multiply(new m(1).subtract(v(l,d)));return s=s.add(t.multiply(f)),s=s.add(t.multiply(p)),s=s.add(h),s=s.add(new m(2).multiply(this.getLabelHidden(e.id,e.bitset))),s}vertex(e,t){let n=H(e.bitset,P),i=new m(1).subtract(n),a=this.getFeatureId(e.id,e.bitset),o=e.fontAndReferenceSize[0],s=e.fontAndReferenceSize[1],c=e.fontAndReferenceSize[2],l=e.fontAndReferenceSize[3],u=o.divide(c),d=this.textRenderPassType===1?e.outlineColor:this.textRenderPassType===2?e.haloColor:this._getVertexColor(e,a),h=this.tile.getDisplayViewScreenMat3(this.view).multiply(new S(e.pos,1)),g=e.offset,_=new m(1),v=ee.identity(),y=new p(0);if(this.isLabel){if(!e.referenceSymbol)throw Error(`InternalError: Optional attribute 'referenceSymbol' expected for labels`);let t=e.referenceSymbol,n=t.xy,i=t.z,o=this._unpackDirection(t.w),s=this.getLabelReferenceSymbolVVOffset(e.id),c=C(s.x,new m(0)).and(C(s.y,new m(0))),l=w(c,Y(this,a,i).divide(2),i.divide(2)),u=o.multiply(l.add(r)).add(s);y=n.add(u),g=g.add(y)}else _=Y(this,a,s).divide(s),o=o.multiply(_),u=u.multiply(_),g=g.multiply(_),v=oe(this,a),g=v.multiply(new S(g,0)).xy;let b=H(e.bitset,F),x=this._getViewRotationMatrix(b).multiply(new S(g,0)).multiply(this.tileInfo.scaleFactor),D=this.isLabel?this.clipLabel(e,b):this.clip(e.id,e.bitset,e.zoomRange);D=this.isBackgroundPass?D.add(i.multiply(2)):D.add(n.multiply(2));let O=new m(0);if(this.textRenderPassType===1&&(D=D.add(w(C(e.outlineAndHaloSize.x,new m(0)),new m(2),new m(0))),O=new m(e.outlineAndHaloSize.x).divide(u).divide(l)),this.textRenderPassType===2){let t=e.outlineAndHaloSize.x,n=new m(e.outlineAndHaloSize.y);D=D.add(w(C(n,new m(0)),new m(2),new m(0))),O=n.add(t).divide(u).divide(l)}let k=this.isLabel?T(D,new m(1)):new E(!1),A=new f(h.xy.add(x.xy),D,1),j=e.textureUV.divide(this.mosaicInfo.size),M=new m(.105).multiply(c).divide(o).divide(this.view.pixelRatio);return{glPosition:A,color:d,size:u,textureUV:j,antialiasingWidth:M,outlineDistanceOffset:O,...this.maybeRunHittest(e,t,{vvSizeAdjustment:_,vvRotation:v,labelOffset:y,labelClipped:k,scaleFactor:this.tileInfo.scaleFactor})}}_getViewRotationMatrix(e){let t=this.view.getDisplayViewMat3(),n=this.view.displayMat3,r=new m(1).subtract(e);return t.multiply(e).add(n.multiply(r))}_getHittestAlignmentMatrix(e){let t=this.tile.getTileMat3(this.view),n=this.view.viewMat3.multiply(t),r=t,i=new m(1).subtract(e);return n.multiply(e).add(r.multiply(i))}fragment(e){let t=new m(2/8),n=new m(1).subtract(t),r=D(this.mosaicTexture,e.textureUV).a,i=n.subtract(e.outlineDistanceOffset);this.highlight&&(i=i.divide(2));let a=e.antialiasingWidth,o=O(i.subtract(a),i.add(a),r);return this.getFragmentOutput(e.color.multiply(o),e)}computeHittestTriangle(e,t,{vvSizeAdjustment:n,vvRotation:r,labelOffset:i,scaleFactor:a}){let o,s,c;this.isLabel?(o=new S(e.offset.multiply(a).add(i),0),s=new S(t.offsetNextVertex1.multiply(a).add(i),0),c=new S(t.offsetNextVertex2.multiply(a).add(i),0)):(o=r.multiply(new S(e.offset.multiply(a).multiply(n),0)),s=r.multiply(new S(t.offsetNextVertex1.multiply(a).multiply(n),0)),c=r.multiply(new S(t.offsetNextVertex2.multiply(a).multiply(n),0)));let l=this.tile.getViewScreenMat3(this.view).multiply(new S(e.pos,1)),u=H(e.bitset,F),d=this._getHittestAlignmentMatrix(u);return{pos0:l.add(d.multiply(o)).xy,pos1:l.add(d.multiply(s)).xy,pos2:l.add(d.multiply(c)).xy}}hittest(e,t,n){let{vvSizeAdjustment:r,vvRotation:i,labelOffset:a,labelClipped:o,scaleFactor:s}=n,{pos0:c,pos1:l,pos2:u}=this.computeHittestTriangle(e,t,{vvSizeAdjustment:r,vvRotation:i,labelOffset:a,scaleFactor:s}),d={pos0:c,pos1:l,pos2:u},f=this.isLabel?o:new E(!1);return w(f,new m(I),()=>w(re(this.hittestRequest),()=>{let e=ie(this.hittestRequest.position,c,l,u);return w(T(e,this.hittestRequest.distance),new m(I),new m(ne))},()=>w(L(this.hittestRequest),R(d,this.hittestRequest.rect.xy,this.hittestRequest.rect.zw),w(z(this.hittestRequest),B(d,this.hittestRequest.viewSize,this.hittestMaskTexture),new m(I)))))}_unpackDirection(e){let t=new k(e),n=A(t,new k(2)),r=j(t,new k(3));return new p(new m(n).subtract(1),new m(r).subtract(1))}_getVertexColor(e,t){let n=e.color;if(this.visualVariableColor){let r=this.getColorValue(t);n=this.visualVariableColor.getColor(r,e.color,new E(!1))}if(this.visualVariableOpacity){let e=this.getOpacityValue(t),r=this.visualVariableOpacity.getOpacity(e);n=n.multiply(r)}return n}}e([o(U)],$.prototype,`visualVariableColor`,void 0),e([o(W)],$.prototype,`visualVariableOpacity`,void 0),e([o(G)],$.prototype,`visualVariableRotation`,void 0),e([o(K)],$.prototype,`visualVariableSizeMinMaxValue`,void 0),e([o(q)],$.prototype,`visualVariableSizeScaleStops`,void 0),e([o(J)],$.prototype,`visualVariableSizeStops`,void 0),e([o(ae)],$.prototype,`visualVariableSizeUnitValue`,void 0),e([s(V)],$.prototype,`mosaicInfo`,void 0),e([c(h)],$.prototype,`mosaicTexture`,void 0),e([l],$.prototype,`textRenderPassType`,void 0),e([l],$.prototype,`isBackgroundPass`,void 0),e([l],$.prototype,`isLabel`,void 0),e([t(0,u(X)),t(1,u(Z))],$.prototype,`vertex`,null),e([t(0,u(Q))],$.prototype,`fragment`,null);export{Q as TextFragmentInput,$ as TextShader,X as TextVertexInput};
@@ -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{pt2px as e}from"../../../../../core/screenUtils.js";import{getSizeForValueSimple as t}from"../../support/visualVariableSimpleUtils.js";function n(n){return r=>e(t(r,n))}function r(e){let t=e!=null&&`visualVariables`in e&&e.visualVariables;if(!t)return null;for(let e of t)if(e.type===`size`)return n(e);return null}export{r as createLabelVVEvaluator};
2
+ import{pt2px as e}from"../../../../../core/screenUtils.js";import{getSizeForValueSimple as t}from"../../support/visualVariableSimpleUtils.js";function n(n){return(r,i)=>e(t(r,n,i))}function r(e){let t=e!=null&&`visualVariables`in e&&e.visualVariables;if(!t)return null;for(let e of t)if(e.type===`size`)return n(e);return null}export{r as createLabelVVEvaluator};
@@ -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{numericHash as e}from"../../../../../../core/string.js";import{validateLabelingInfo as t}from"../../../../../../layers/support/labelingInfo.js";import{getServiceGeometryType as n}from"../../layerAdapters/geometryUtils.js";import{createSymbolMeshSchemas as r}from"./symbols/SymbolSchema.js";async function i(e,r,i){let o=r.labelsVisible&&r.labelingInfo||[],s=n(r),c=t(o,s);return{type:`label`,classes:await Promise.all(c.map((t,n)=>a(e,t,r.labelsVisible,r.labelingInfoSource,n,s,i)))}}async function a(t,n,i,a,o,s,c){let l=e(`${a} ${o}`),u=a,d=await r(n,{schemaOptions:t,uniforms:c,layerId:u,labelClassId:l});return{maxScale:n.maxScale,minScale:n.minScale,deconflictionEnabled:n.deconflictionStrategy!==`none`&&i,expression:n.labelExpressionInfo?.expression??n.labelExpression,where:n.where,meshes:d,layerId:u,labelClassId:l,geometryType:s}}export{i as createLabelMatcherSchema};
2
+ import{numericHash as e}from"../../../../../../core/string.js";import{validateLabelingInfo as t}from"../../../../../../layers/support/labelingInfo.js";import{getServiceGeometryType as n}from"../../layerAdapters/geometryUtils.js";import{createSymbolMeshSchemas as r}from"./symbols/SymbolSchema.js";async function i(e,r,i){let o=r.labelsVisible&&r.labelingInfo||[],s=n(r),c=t(o,s);return{type:`label`,classes:await Promise.all(c.map((t,n)=>a(e,t,r.labelsVisible,r.labelingInfoSource,n,s,i)))}}async function a(t,n,i,a,o,s,c){let l=e(`${a} ${o}`),u=a,d=await r(n,{path:`${o}`,schemaOptions:t,uniforms:c,layerId:u,labelClassId:l});return{maxScale:n.maxScale,minScale:n.minScale,deconflictionEnabled:n.deconflictionStrategy!==`none`&&i,expression:n.labelExpressionInfo?.expression??n.labelExpression,where:n.where,meshes:d,layerId:u,labelClassId:l,geometryType:s}}export{i as createLabelMatcherSchema};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{diff as e}from"../../../../../../core/accessorSupport/diffUtils.js";import{createVisualVariableUniforms as t,noVisualVariables as n}from"./VisualVariablesSchema.js";import{createPieChartMeshSchemas as r,createHeatmapMeshSchemas as i,createSymbolMeshSchemas as a,createDotDensityMeshSchemas as o}from"./symbols/SymbolSchema.js";async function s(e,t){return(await Promise.all((e??[]).map((e,n)=>a(e,{path:`${t.path}.alternateSymbols.${n}`,schemaOptions:t.schemaOptions,uniforms:t.uniforms,rotationVariable:t.rotationVariable})))).flat()}async function c(e,t){if(!t)return{type:`simple`,meshes:[]};switch(t.type){case`simple`:return d(e,t);case`dot-density`:return g(e,t);case`class-breaks`:if(t.defaultSymbol!=null){let n=await u(e,t);if(n)return n.symbology}return _(e,t);case`unique-value`:return v(e,t);case`dictionary`:return b(t);case`heatmap`:return x(e,t);case`pie-chart`:return S(e,t)}}async function l(e,t){return await u(e,t)??{symbology:await _(e,t),matcherFilter:null}}async function u(e,n){if(!f(n))return null;let r=t(n),i=y(n);return{symbology:{type:`simple`,meshes:await a(n.classBreakInfos[0].symbol,{schemaOptions:e,uniforms:r,rotationVariable:i})},matcherFilter:n.defaultSymbol==null?p(n):null}}async function d(e,n){let r=n.symbols,i=r.length?r[0]:null,o=t(n),s=y(n);return{type:`simple`,meshes:await a(i,{schemaOptions:e,uniforms:o,rotationVariable:s})}}function f(e){let t=e.classBreakInfos.length===1?e.classBreakInfos[0]:null;return!t?.symbol||t.alternateSymbols?.length||t.minValue!==-(2**53-1)||t.maxValue!==2**53-1||!e.isMaxInclusive||e.backgroundFillSymbol!=null?!1:e.defaultSymbol==null?!!(e.valueExpression||e.field):m(t.symbol,e.defaultSymbol,e)}function p(e){let t=e.normalizationType===`log`?`esriNormalizeByLog`:e.normalizationType===`percent-of-total`?`esriNormalizeByPercentOfTotal`:e.normalizationType===`field`?`esriNormalizeByField`:null;return{expression:e.valueExpression,field:e.field,normalizationField:e.normalizationField,normalizationTotal:e.normalizationTotal,normalizationType:t}}function m(t,n,r){if(t.type!==n.type)return!1;if(t.type===`picture-fill`&&n.type===`picture-fill`||t.type===`simple-fill`&&n.type===`simple-fill`){let i=e(t,n);if(i==null)return!0;if(h(r)&&i.type===`partial`){let e=i.diff.outline;return Object.keys(i.diff).length===1&&e?.type===`partial`&&e.diff!=null&&Object.keys(e.diff).length===1&&e.diff.width!=null}return!1}return e(t,n)==null}function h(e){return e.visualVariables?.some(e=>e.type===`size`&&e.target===`outline`)??!1}async function g(e,n){let r=t(n);return{type:`dot-density`,meshes:await o(n,{schemaOptions:e,uniforms:r})}}async function _(e,r){let i=t(r),o=y(r),c=r.backgroundFillSymbol,l=r.classBreakInfos.map(async t=>{let n=`renderer-stop-${t.minValue}-${t.maxValue}`;return{meshes:await a(t.symbol,{schemaOptions:e,uniforms:i,rotationVariable:o}),alternateMeshes:await s(t.alternateSymbols,{path:n,schemaOptions:e,uniforms:i,rotationVariable:o}),min:t.minValue,max:t.maxValue}}),u=(await Promise.all(l)).sort((e,t)=>e.min-t.min),d=await a(c,{schemaOptions:e,uniforms:{...n,visualVariableSizeOutlineScaleStops:i.visualVariableSizeOutlineScaleStops}}),f=await a(r.defaultSymbol,{schemaOptions:e,uniforms:i,rotationVariable:o});return{type:`interval`,...p(r),backgroundFill:d,defaultSymbol:f,intervals:u,isMaxInclusive:r.isMaxInclusive}}async function v(e,r){let i=t(r),o=y(r),c=await a(r.backgroundFillSymbol,{schemaOptions:e,uniforms:{...n,visualVariableSizeOutlineScaleStops:i.visualVariableSizeOutlineScaleStops}}),l=await a(r.defaultSymbol,{schemaOptions:e,uniforms:i,rotationVariable:o}),u=(r.uniqueValueInfos??[]).map(async t=>{let n=`renderer-unique-value-${t.value}`,r=await a(t.symbol,{schemaOptions:e,uniforms:i,rotationVariable:o}),c=await s(t.alternateSymbols,{path:n,schemaOptions:e,uniforms:i,rotationVariable:o});return{value:``+t.value,meshes:r,alternateMeshes:c}}),d=await Promise.all(u);return{type:`map`,field:r.field,expression:r.valueExpression,field2:r.field2,field3:r.field3,fieldDelimiter:r.fieldDelimiter,backgroundFill:c,defaultSymbol:l,map:d}}function y(e){if(!(`visualVariables`in e))return null;let t=e.visualVariables?.find(e=>e.type===`rotation`);return t?.type===`rotation`?t:null}async function b(e){let n=t(e),r=await e.getDictionaryInfo(),i=e.scaleExpression,a=i!=null&&i!==`1`?{valueExpressionInfo:{type:`CIMExpressionInfo`,expression:e.scaleExpression,returnType:`Numeric`},defaultValue:1}:void 0;return{type:`dictionary`,dictionaryInfo:r,userConfig:e.config??{},fieldMap:e.fieldMap??{},scaleExpression:a,visualVariableUniforms:n}}async function x(e,t){return{type:`heatmap`,meshes:await i(t,e)}}async function S(e,t){return{type:`pie-chart`,meshes:await r(t,e)}}export{l as createClassBreaksMatcherSchema,c as createMatcherSchema};
2
+ import{diff as e}from"../../../../../../core/accessorSupport/diffUtils.js";import{createVisualVariableUniforms as t,noVisualVariables as n}from"./VisualVariablesSchema.js";import{createPieChartMeshSchemas as r,createHeatmapMeshSchemas as i,createSymbolMeshSchemas as a,createDotDensityMeshSchemas as o}from"./symbols/SymbolSchema.js";async function s(e,t){return(await Promise.all((e??[]).map((e,n)=>a(e,{path:`${t.path}.alternateSymbols.${n}`,schemaOptions:t.schemaOptions,uniforms:t.uniforms,rotationVariable:t.rotationVariable})))).flat()}async function c(e,t){if(!t)return{type:`simple`,meshes:[]};switch(t.type){case`simple`:return d(e,t);case`dot-density`:return g(e,t);case`class-breaks`:if(t.defaultSymbol!=null){let n=await u(e,t);if(n)return n.symbology}return _(e,t);case`unique-value`:return v(e,t);case`dictionary`:return b(t);case`heatmap`:return x(e,t);case`pie-chart`:return S(e,t)}}async function l(e,t){return await u(e,t)??{symbology:await _(e,t),matcherFilter:null}}async function u(e,n){if(!f(n))return null;let r=t(n),i=y(n);return{symbology:{type:`simple`,meshes:await a(n.classBreakInfos[0].symbol,{schemaOptions:e,uniforms:r,rotationVariable:i,path:`renderer.classBreakInfos.0.symbol`})},matcherFilter:n.defaultSymbol==null?p(n):null}}async function d(e,n){let r=n.symbols,i=r.length?r[0]:null,o=t(n),s=y(n);return{type:`simple`,meshes:await a(i,{schemaOptions:e,uniforms:o,rotationVariable:s,path:`renderer.symbol`})}}function f(e){let t=e.classBreakInfos.length===1?e.classBreakInfos[0]:null;return!t?.symbol||t.alternateSymbols?.length||t.minValue!==-(2**53-1)||t.maxValue!==2**53-1||!e.isMaxInclusive||e.backgroundFillSymbol!=null?!1:e.defaultSymbol==null?!!(e.valueExpression||e.field):m(t.symbol,e.defaultSymbol,e)}function p(e){let t=e.normalizationType===`log`?`esriNormalizeByLog`:e.normalizationType===`percent-of-total`?`esriNormalizeByPercentOfTotal`:e.normalizationType===`field`?`esriNormalizeByField`:null;return{expression:e.valueExpression,field:e.field,normalizationField:e.normalizationField,normalizationTotal:e.normalizationTotal,normalizationType:t}}function m(t,n,r){if(t.type!==n.type)return!1;if(t.type===`picture-fill`&&n.type===`picture-fill`||t.type===`simple-fill`&&n.type===`simple-fill`){let i=e(t,n);if(i==null)return!0;if(h(r)&&i.type===`partial`){let e=i.diff.outline;return Object.keys(i.diff).length===1&&e?.type===`partial`&&e.diff!=null&&Object.keys(e.diff).length===1&&e.diff.width!=null}return!1}return e(t,n)==null}function h(e){return e.visualVariables?.some(e=>e.type===`size`&&e.target===`outline`)??!1}async function g(e,n){let r=t(n);return{type:`dot-density`,meshes:await o(n,{schemaOptions:e,uniforms:r,path:`renderer.symbol`})}}async function _(e,r){let i=t(r),o=y(r),c=r.backgroundFillSymbol,l=r.classBreakInfos.map(async t=>{let n=`renderer-stop-${t.minValue}-${t.maxValue}`;return{meshes:await a(t.symbol,{path:n,schemaOptions:e,uniforms:i,rotationVariable:o}),alternateMeshes:await s(t.alternateSymbols,{path:n,schemaOptions:e,uniforms:i,rotationVariable:o}),min:t.minValue,max:t.maxValue}}),u=(await Promise.all(l)).sort((e,t)=>e.min-t.min),d=await a(c,{schemaOptions:e,path:`renderer.backgroundFill`,uniforms:{...n,visualVariableSizeOutlineScaleStops:i.visualVariableSizeOutlineScaleStops}}),f=await a(r.defaultSymbol,{schemaOptions:e,path:`renderer.defaultSymbol`,uniforms:i,rotationVariable:o});return{type:`interval`,...p(r),backgroundFill:d,defaultSymbol:f,intervals:u,isMaxInclusive:r.isMaxInclusive}}async function v(e,r){let i=t(r),o=y(r),c=await a(r.backgroundFillSymbol,{schemaOptions:e,path:`renderer.backgroundFill`,uniforms:{...n,visualVariableSizeOutlineScaleStops:i.visualVariableSizeOutlineScaleStops}}),l=await a(r.defaultSymbol,{schemaOptions:e,path:`renderer.defaultSymbol`,uniforms:i,rotationVariable:o}),u=(r.uniqueValueInfos??[]).map(async t=>{let n=`renderer-unique-value-${t.value}`,r=await a(t.symbol,{path:n,schemaOptions:e,uniforms:i,rotationVariable:o}),c=await s(t.alternateSymbols,{path:n,schemaOptions:e,uniforms:i,rotationVariable:o});return{value:``+t.value,meshes:r,alternateMeshes:c}}),d=await Promise.all(u);return{type:`map`,field:r.field,expression:r.valueExpression,field2:r.field2,field3:r.field3,fieldDelimiter:r.fieldDelimiter,backgroundFill:c,defaultSymbol:l,map:d}}function y(e){if(!(`visualVariables`in e))return null;let t=e.visualVariables?.find(e=>e.type===`rotation`);return t?.type===`rotation`?t:null}async function b(e){let n=t(e),r=await e.getDictionaryInfo(),i=e.scaleExpression,a=i!=null&&i!==`1`?{valueExpressionInfo:{type:`CIMExpressionInfo`,expression:e.scaleExpression,returnType:`Numeric`},defaultValue:1}:void 0;return{type:`dictionary`,dictionaryInfo:r,userConfig:e.config??{},fieldMap:e.fieldMap??{},scaleExpression:a,visualVariableUniforms:n}}async function x(e,t){return{type:`heatmap`,meshes:await i(t,e)}}async function S(e,t){return{type:`pie-chart`,meshes:await r(t,e)}}export{l as createClassBreaksMatcherSchema,c as createMatcherSchema};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{getFontFamily as e}from"../../../../../../../core/fontUtils.js";import t from"../../../../../../../core/Logger.js";import{pt2px as n}from"../../../../../../../core/screenUtils.js";import{generateGradient as r}from"../../../../../../../renderers/support/heatmapUtils.js";import i from"../../../../../../../symbols/SimpleFillSymbol.js";import a from"../../../../../../../symbols/SimpleLineSymbol.js";import o from"../../../../../../../symbols/SimpleMarkerSymbol.js";import{CIMSymbolHelper as s,slsDashToTemplateArray as c}from"../../../../../../../symbols/cim/CIMSymbolHelper.js";import{fromCIMFontStyle as l}from"../../../../../../../symbols/cim/fromCIMFontStyle.js";import{hasRichTextFormattingTags as u}from"../../../../../../../symbols/cim/richTextUtils.js";import{getSDFInfo as d}from"../../../../../../../symbols/cim/SDFHelper.js";import{getFillColor as f,getStrokeColor as p,getStrokeWidth as m,fromCIMFontDecoration as h}from"../../../../../../../symbols/cim/utils.js";import{getAlignmentFromPlacement as g}from"../../../../../engine/webgl/alignmentUtils.js";import{writeColor as _}from"../../../../../engine/webgl/color.js";import{dotDensityMaxFields as v}from"../../../../../engine/webgl/definitions.js";import{Techniques as y}from"../../../../../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import{defineMeshWriterReferences as b}from"../../../../../engine/webgl/shaderGraph/techniques/mesh/MeshWriterReferences.js";import{maxPieChartFields as x}from"../../../../../engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js";import{premultiplyColor as S}from"../schemaUtils.js";import{createVisualVariableUniforms as C,getMaxSizeVVSize as w,noVisualVariables as T}from"../VisualVariablesSchema.js";import{createComplexSymbolInstances as E,createComplexSymbolPartSchemas as D}from"./ComplexSymbolSchema.js";import{hasSizeVVUniform as O,hasRotationVVUniform as k}from"./utils.js";async function A(e,n){if(!e)return[];switch(e.type){case`simple-fill`:return b(await K(e,n));case`picture-fill`:return b(await q(e,n));case`simple-marker`:return b(await F(e,n));case`picture-marker`:return b(await I(e,n));case`simple-line`:return b(J(e,n,!1));case`text`:return b(R(e,n));case`label`:return z(e,n);case`cim`:return E(e.data,n);case`web-style`:return A(await e.fetchSymbol({acceptedFormats:[`cim`,`web`]}),n);case`line-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Defaulting to simple-line`),b(await J(new a,n,!1));case`point-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Defaulting to simple-marker`),b(await F(new o,n));case`polygon-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Defaulting to simple-fill`),b(await K(new i,n));case`mesh-3d`:case`label-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Ignoring`),[];case`CIMSymbolReference`:throw Error(`InternalError: CIMSymbolReference should already be resolved`)}}async function j(e,t){let{schemaOptions:n}=t,{store:r}=n,a=Array(v),o=Array(v/4);for(let t=0;t<v;t++){let n=t<e.attributes.length?e.attributes[t].color:null;a[t]=[0,0,0,0],_(a[t],n)}for(let t=0;t<v/4;t++)o[t]=[0,0,0,0],o[t][0]=+(4*t<e.attributes.length),o[t][1]=+(4*t+1<e.attributes.length),o[t][2]=+(4*t+2<e.attributes.length),o[t][3]=+(4*t+3<e.attributes.length);let s={uniforms:{isActive:o,colors:a,dotValue:e.dotValue,dotScale:e.referenceScale,blending:e.dotBlendingEnabled,dotSize:e.dotSize,seed:e.seed},optionalAttributes:{}},c=r.ensureInstance(y.dotDensity,s).createMeshInfo({effects:null}),l=[],u=await A(new i({color:e.backgroundColor??[0,0,0,0],outline:null}),t);if(l.push(...u),l.push(c),e.outline){let n=J(e.outline,t,!0);l.push(...n)}return l}async function M(e,t){let{store:i}=t,{radius:a,minDensity:o,maxDensity:s,referenceScale:c,field:l,valueExpression:u,colorStops:d}=e,f=r(d);return[i.ensureInstance(y.heatmap,{uniforms:{radius:n(a),minDensity:o,maxDensity:s,referenceScale:c,isFieldActive:!!(l||u),gradient:f,gradientHash:f.join(`,`)},optionalAttributes:{}}).createMeshInfo({effects:null})]}async function N(e,t){let{store:r}=t,i=e.outline?.width||0,a=C(e),o=Math.min(e.attributes.length,x),s=e.attributes.slice(0,o).map(e=>S(e.color));for(;s.length<x;)s.push([0,0,0,0]);let c=r.ensureInstance(y.pieChart,{uniforms:{shader:{chart:{outlineWidth:Math.round(n(i)),defaultColor:S(e.defaultColor),outlineColor:S(e.outline?.color),othersColor:S(e.othersCategory?.color),donutRatio:e.holePercentage,sectorThreshold:e.othersCategory?.threshold||0,colors:s,fieldCount:o},visualVariableOpacity:a.visualVariableOpacity,visualVariableSizeMinMaxValue:a.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:a.visualVariableSizeScaleStops,visualVariableSizeStops:a.visualVariableSizeStops,visualVariableSizeUnitValue:a.visualVariableSizeUnitValue}},optionalAttributes:{zoomRange:!0}}).createMeshInfo({size:e.size,outlineWidth:i,effects:null,scaleInfo:null,minPixelBuffer:w(a)});return[...e.backgroundFillSymbol?await K(e.backgroundFillSymbol,{schemaOptions:t,uniforms:T}):[],c]}function P(e){if(e.style===`path`){if(e.path==null)throw Error(`Symbol with a style of type path must define a path`);return{type:`sprite-rasterization-param`,overrides:[],resource:{type:`path`,path:e.path,asFill:!0}}}let t=s.fromSimpleMarker(e);if(`outline`in e&&e.outline&&e.outline.style!==`none`&&e.outline.style!==`solid`){if(!t||!t.symbolLayers)throw Error(`Error handling marker! `);return{type:`sprite-rasterization-param`,resource:t.symbolLayers[0],overrides:[]}}return{type:`sprite-rasterization-param`,resource:d(t),overrides:[]}}async function F(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r;if(e.style===`path`||e.outline&&e.outline.style!==`solid`&&e.outline.style!==`none`){let r=s.fromSimpleMarker(e);if(!r||!r.symbolLayers)throw Error(`Error handling marker! `);if(n.visualVariableRotation&&(r.angleAlignment=`Map`),e.style!==`path`){let e=r.symbolLayers[0];if(O(t.uniforms)){let n=w(t.uniforms,0,1);if(n>e.size){let t=n/e.size;e.size=n;let r=e.markerGraphics?.[0].symbol,i=r.symbolLayers&&r.symbolLayers[0];i.width*=t}}}return E({type:`CIMSymbolReference`,symbol:r},t)}let a=i.ensureInstance(y.marker,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeMinMaxValue:n.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:n.visualVariableSizeScaleStops,visualVariableSizeStops:n.visualVariableSizeStops,visualVariableSizeUnitValue:n.visualVariableSizeUnitValue,visualVariableRotation:n.visualVariableRotation},optionalAttributes:{zoomRange:!1}}),o=P(e),c=e.color?.toArray()??[0,0,0,0];o.resource.type===`CIMVectorMarker`&&(c=[255,255,255,255]);let l=e.style===`triangle`?124/116:1,u=e.size,d=u*l,f=n.visualVariableColor!=null&&(e.style===`cross`||e.style===`x`);return[a.createMeshInfo({type:`simple`,color:c,height:u,width:d,offsetX:e.xoffset,offsetY:e.yoffset,angle:e.angle,alignment:+!!k(n),outlineColor:e.outline?.color?.toArray()??[0,0,0,0],outlineSize:e.outline?.width??1,referenceSize:u,sprite:o,overrideOutlineColor:f,hasSizeVV:O(n),placement:null,effects:null,transforms:null,scaleInfo:null,minPixelBuffer:w(n)})]}function I(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r,a=i.ensureInstance(y.marker,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeMinMaxValue:n.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:n.visualVariableSizeScaleStops,visualVariableSizeStops:n.visualVariableSizeStops,visualVariableSizeUnitValue:n.visualVariableSizeUnitValue,visualVariableRotation:n.visualVariableRotation},optionalAttributes:{zoomRange:!1}}),o=s.createPictureMarkerRasterizationParam(e);return o?[a.createMeshInfo({type:`picture`,color:[255,255,255,255],height:e.height,width:e.width,offsetX:e.xoffset,offsetY:e.yoffset,angle:e.angle,alignment:+!!k(n),outlineColor:null,outlineSize:0,referenceSize:e.height,sprite:o,overrideOutlineColor:!1,hasSizeVV:O(n),placement:null,effects:null,transforms:null,scaleInfo:null,minPixelBuffer:w(n)})]:[]}function L(e,t,n){let{uniforms:r,schemaOptions:i}=n,{store:a}=i,o=a.ensureInstance(y.marker,{uniforms:{visualVariableColor:r.visualVariableColor,visualVariableOpacity:r.visualVariableOpacity,visualVariableSizeMinMaxValue:r.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:r.visualVariableSizeScaleStops,visualVariableSizeStops:r.visualVariableSizeStops,visualVariableSizeUnitValue:r.visualVariableSizeUnitValue,visualVariableRotation:r.visualVariableRotation},optionalAttributes:{zoomRange:!1}}),s=P(e),c=6*t.width,l=c,u=e.color?.toArray()??t.color?.toArray()??[0,0,0,0],d=e.style===`cross`||e.style===`x`,f;switch(e.placement){case`begin-end`:f=`Both`;break;case`begin`:f=`JustBegin`;break;case`end`:f=`JustEnd`;break;default:f=`None`}let p={type:`cim-marker-placement-param`,placement:{type:`CIMMarkerPlacementAtExtremities`,angleToLine:!0,offset:0,extremityPlacement:f,offsetAlongLine:0},overrides:[]};return[o.createMeshInfo({type:`simple`,color:u,height:l,width:c,offsetX:0,offsetY:0,angle:0,alignment:+!!k(r),outlineColor:u,outlineSize:d?t.width:0,referenceSize:l/6,sprite:s,overrideOutlineColor:d&&r.visualVariableColor!=null,hasSizeVV:O(r),placement:p,transforms:null,effects:null,scaleInfo:null,minPixelBuffer:w(r)})]}function R(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r;return[i.ensureInstance(y.text,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableRotation:n.visualVariableRotation,visualVariableSizeMinMaxValue:n.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:n.visualVariableSizeScaleStops,visualVariableSizeStops:n.visualVariableSizeStops,visualVariableSizeUnitValue:n.visualVariableSizeUnitValue},optionalAttributes:{zoomRange:!1,clipAngle:!1,referenceSymbol:!1}}).createMeshInfo({alignment:0,boxBackgroundColor:e.backgroundColor?.toArray(),boxBorderLineColor:e.borderLineColor?.toArray(),boxBorderLineSize:e.borderLineSize??0,color:e.color?.toArray()??[0,0,0,0],offsetX:e.xoffset,offsetY:e.yoffset,postAngle:e.angle,fontSize:e.font.size,decoration:e.font.decoration,haloColor:e.haloColor?.toArray()??[0,0,0,0],haloSize:e.haloSize??0,outlineColor:[0,0,0,0],outlineSize:0,lineWidth:e.lineWidth,lineHeightRatio:e.lineHeight,horizontalAlignment:e.horizontalAlignment,verticalAlignment:e.verticalAlignment,useCIMAngleBehavior:!1,glyphs:{type:`text-rasterization-param`,resource:{type:`text`,font:e.font.toJSON(),textString:e.text,symbol:s.createCIMTextSymbolfromTextSymbol(e),supportsRichText:u(e.text)},overrides:[]},referenceSize:null,effects:null,placement:null,scaleInfo:null,transforms:null,scaleFactor:1,minPixelBuffer:w(n),repeatLabel:null,repeatLabelDistance:null,allowOverrun:null,labelPosition:null,layerId:null,labelClassId:null})]}async function z(e,t){let{schemaOptions:r,uniforms:i}=t,{store:a}=r,o=e.symbol,c=o.type===`cim`?o:null,l=c?.data.symbol?.type===`CIMTextSymbol`?c.data.symbol:null;if(c&&!l)throw Error(`InternalError: CIM label symbols must contain a CIMTextSymbol`);let u=l?null:o,{allowOverrun:d,repeatLabel:h,repeatLabelDistance:_}=e,v={maxScale:e.maxScale??0,minScale:e.minScale??0},b=l?B(l):null,x=l??s.createCIMTextSymbolfromTextSymbol(u),S=V(l?.callout)?l.callout:null,C=S?await D({type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[],callout:S},primitiveOverrides:c.data.primitiveOverrides},t,!0):[],T=a.ensureInstance(y.label,{uniforms:{visualVariableColor:null,visualVariableOpacity:null,visualVariableRotation:i.visualVariableRotation,visualVariableSizeMinMaxValue:i.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:i.visualVariableSizeScaleStops,visualVariableSizeStops:i.visualVariableSizeStops,visualVariableSizeUnitValue:i.visualVariableSizeUnitValue},optionalAttributes:{zoomRange:!0,clipAngle:!0,referenceSymbol:!0}}),E=e.labelPlacement,[O,k]=g(E),A={...T.createMeshInfo({alignment:0,boxBackgroundColor:u?.backgroundColor?.toArray(),boxBorderLineColor:u?.borderLineColor?.toArray(),boxBorderLineSize:u?.borderLineSize??0,color:l?H(f(l),[0,0,0,255]):u?.color?.toArray()??[0,0,0,0],offsetX:l?l.offsetX??0:u.xoffset,offsetY:l?l.offsetY??0:u.yoffset,labelOffsetDistance:S?e.offsetDistance:0,postAngle:l?l.angle??0:u.angle,fontSize:l?l.height??10:u.font.size,decoration:b?.decoration??u.font.decoration,outlineColor:l?H(p(l),[0,0,0,0]):[0,0,0,0],outlineSize:l?m(l)??0:0,haloColor:l?H(f(l.haloSymbol)??p(l.haloSymbol),[0,0,0,0]):u?.haloColor?.toArray()??[0,0,0,0],haloSize:l?l.haloSize??0:u.haloSize??0,lineWidth:l?l.lineWidth??512:u.lineWidth,lineHeightRatio:u?.lineHeight??1,horizontalAlignment:O,verticalAlignment:k,repeatLabel:h,repeatLabelDistance:n(_),allowOverrun:d,labelPosition:e.labelPosition,scaleInfo:v,minPixelBuffer:w(i),useCIMAngleBehavior:!1,glyphs:{type:`text-rasterization-param`,resource:{type:`text`,font:b??u.font.toJSON(),textString:u?.text??``,symbol:x,primitiveName:`label-override`,supportsRichText:!0},useLegacyLabelEvaluationRules:e.labelExpressionInfo?.expression==null,overrides:[{valueExpressionInfo:{type:`CIMExpressionInfo`,expression:e.labelExpressionInfo?.expression??e.labelExpression,returnType:`String`},primitiveName:`label-override`,propertyName:`textString`,defaultValue:``}]},referenceSize:null,effects:null,placement:null,transforms:null,scaleFactor:1,layerId:t.layerId,labelClassId:t.labelClassId,collisionVisibility:!0}),references:{externalDependencies:[`label-reference-symbol`],...S?{exports:[`callout-body`]}:null}};return[...S?C.map(e=>({...e,id:a.ensureLabelPhaseInstanceId(e.id),references:{...e.references,dependencies:[`callout-body`]}})):C,A]}function B(t){return{family:e(t.fontFamilyName),decoration:h(t),...l(t.fontStyleName)}}function V(e){return e?.type===`CIMSimpleLineCallout`||e?.type===`CIMBackgroundCallout`||e?.type===`CIMBalloonCallout`||e?.type===`CIMPointSymbolCallout`}function H(e,t){return e?.length===4?[e[0],e[1],e[2],e[3]]:t}function U(e,t){let n=e.width;return{outlineColor:e.color?.toArray()||[0,0,0,1],width:n,referenceWidth:n,capType:e.cap??`round`,joinType:e.join??`round`,miterLimit:e.miterLimit,hasSizeVV:t,outlineUsesColorVV:!1}}function W(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r,a=e.color?.toArray()??[0,0,0,0],o={type:`sprite-rasterization-param`,resource:{type:`fill-style`,style:e.style},overrides:[]};if(e.outline?.style===`solid`)return[i.ensureInstance(y.patternOutlineFill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeScaleStops:n.visualVariableSizeOutlineScaleStops,visualVariableSizeMinMaxValue:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:a,...U(e.outline,!!n.visualVariableSizeOutlineScaleStops),sprite:o,scaleInfo:null,effects:null})];let s=[],c=i.ensureInstance(y.patternFill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:e.color?.toArray()??[0,0,0,0],sprite:o,scaleInfo:null,effects:null});return s.push(c),e.outline&&s.push(...J(e.outline,t,!0)),s}function G(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r,a=e.color?.toArray()??[0,0,0,0];if(e.style!==`none`&&e.outline?.style===`solid`)return[i.ensureInstance(y.outlineFill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeScaleStops:n.visualVariableSizeOutlineScaleStops,visualVariableSizeMinMaxValue:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:a,...U(e.outline,!!n.visualVariableSizeOutlineScaleStops),scaleInfo:null,effects:null})];let o=[];if(e.style!==`none`){let e=i.ensureInstance(y.fill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:a,scaleInfo:null,effects:null});o.push(e)}return e.outline&&o.push(...J(e.outline,t,!0)),o}async function K(e,t){if(e.type===`cim`)return E(e.data,t);let{style:n}=e;return n&&n!==`none`&&n!==`solid`?W(e,t):G(e,t)}function q(e,t){let{outline:n}=e,{uniforms:r,schemaOptions:i}=t,{store:a}=i,o=[],c=s.createPictureFillRasterizationParam(e);if(!c)return[];let{width:l,height:u,xoffset:d,yoffset:f,xscale:p,yscale:m}=e,h={color:[255,255,255,255],sprite:c,height:u,aspectRatio:l/u,offsetX:d,offsetY:f,scaleX:p,scaleY:m,angle:0,applyRandomOffset:!1,sampleAlphaOnly:!1,scaleProportionally:!1,effects:null,scaleInfo:null};if(n?.style===`solid`)return[a.ensureInstance(y.complexOutlineFill,{uniforms:{visualVariableColor:r.visualVariableColor,visualVariableOpacity:r.visualVariableOpacity,visualVariableSizeScaleStops:r.visualVariableSizeOutlineScaleStops,visualVariableSizeMinMaxValue:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null},optionalAttributes:{zoomRange:!1}}).createMeshInfo({...h,...U(n,!!r.visualVariableSizeOutlineScaleStops)})];let g=a.ensureInstance(y.complexFill,{uniforms:{visualVariableColor:r.visualVariableColor,visualVariableOpacity:r.visualVariableOpacity},optionalAttributes:{zoomRange:!1}});return o.push(g.createMeshInfo(h)),n&&o.push(...J(n,t,!0)),o}function J(e,t,n){let{color:r,style:i,width:a,cap:o,join:s}=e,{schemaOptions:l}=t,{store:u}=l,d=[],f=n?{...T,visualVariableSizeScaleStops:t.uniforms.visualVariableSizeOutlineScaleStops}:t.uniforms,p={uniforms:{visualVariableColor:f.visualVariableColor,visualVariableOpacity:f.visualVariableOpacity,visualVariableSizeMinMaxValue:f.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:f.visualVariableSizeScaleStops,visualVariableSizeStops:f.visualVariableSizeStops,visualVariableSizeUnitValue:f.visualVariableSizeUnitValue},optionalAttributes:{zoomRange:!1}},m={color:r?.toArray()??[0,0,0,0],width:a,referenceWidth:a,capType:o,joinType:s,miterLimit:e.miterLimit,hasSizeVV:O(f),effects:null,scaleInfo:null};if(i==null||i===`solid`){let e=u.ensureInstance(y.line,p).createMeshInfo(m);d.push(e)}else if(i!==`none`){let e=u.ensureInstance(y.texturedLine,p).createMeshInfo({...m,offsetAlongLine:0,shouldScaleDash:!0,shouldSampleAlphaOnly:!1,isSDF:!0,sprite:{type:`sprite-rasterization-param`,resource:{type:`dash`,dashTemplate:c(i,o)},overrides:[]}});d.push(e)}return e.marker!=null&&d.push(...L(e.marker,e,t)),d}export{j as createDotDensityMeshSchemas,M as createHeatmapMeshSchemas,J as createLineInstance,N as createPieChartMeshSchemas,A as createSymbolMeshSchemas};
2
+ import{getFontFamily as e}from"../../../../../../../core/fontUtils.js";import t from"../../../../../../../core/Logger.js";import{pt2px as n}from"../../../../../../../core/screenUtils.js";import{generateGradient as r}from"../../../../../../../renderers/support/heatmapUtils.js";import i from"../../../../../../../symbols/SimpleFillSymbol.js";import a from"../../../../../../../symbols/SimpleLineSymbol.js";import o from"../../../../../../../symbols/SimpleMarkerSymbol.js";import{CIMSymbolHelper as s,slsDashToTemplateArray as c}from"../../../../../../../symbols/cim/CIMSymbolHelper.js";import{fromCIMFontStyle as l}from"../../../../../../../symbols/cim/fromCIMFontStyle.js";import{hasRichTextFormattingTags as u}from"../../../../../../../symbols/cim/richTextUtils.js";import{getSDFInfo as d}from"../../../../../../../symbols/cim/SDFHelper.js";import{getFillColor as f,getStrokeColor as p,getStrokeWidth as m,fromCIMFontDecoration as h}from"../../../../../../../symbols/cim/utils.js";import{getAlignmentFromPlacement as g}from"../../../../../engine/webgl/alignmentUtils.js";import{writeColor as _}from"../../../../../engine/webgl/color.js";import{dotDensityMaxFields as v}from"../../../../../engine/webgl/definitions.js";import{Techniques as y}from"../../../../../engine/webgl/shaderGraph/techniques/TechniqueRegistry.js";import{defineMeshWriterReferences as b}from"../../../../../engine/webgl/shaderGraph/techniques/mesh/MeshWriterReferences.js";import{maxPieChartFields as x}from"../../../../../engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js";import{premultiplyColor as S}from"../schemaUtils.js";import{createVisualVariableUniforms as C,getMaxSizeVVSize as w,noVisualVariables as T}from"../VisualVariablesSchema.js";import{createComplexSymbolInstances as E,createComplexSymbolPartSchemas as D}from"./ComplexSymbolSchema.js";import{hasSizeVVUniform as O,hasRotationVVUniform as k}from"./utils.js";async function A(e,n){if(!e)return[];switch(e.type){case`simple-fill`:return b(await K(e,n));case`picture-fill`:return b(await q(e,n));case`simple-marker`:return b(await F(e,n));case`picture-marker`:return b(await I(e,n));case`simple-line`:return b(J(e,n,!1));case`text`:return b(R(e,n));case`label`:return z(e,n);case`cim`:return E(e.data,n);case`web-style`:return A(await e.fetchSymbol({acceptedFormats:[`cim`,`web`]}),n);case`line-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Defaulting to simple-line`),b(await J(new a,n,!1));case`point-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Defaulting to simple-marker`),b(await F(new o,n));case`polygon-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Defaulting to simple-fill`),b(await K(new i,n));case`mesh-3d`:case`label-3d`:return t.getLogger(`esri.views.layers.FeatureLayerView`).warn(`unsupported-symbol`,`Symbol of type "${e.type}" unsupported in MapView. Ignoring`),[];case`CIMSymbolReference`:throw Error(`InternalError: CIMSymbolReference should already be resolved`)}}async function j(e,t){let{schemaOptions:n}=t,{store:r}=n,a=Array(v),o=Array(v/4);for(let t=0;t<v;t++){let n=t<e.attributes.length?e.attributes[t].color:null;a[t]=[0,0,0,0],_(a[t],n)}for(let t=0;t<v/4;t++)o[t]=[0,0,0,0],o[t][0]=+(4*t<e.attributes.length),o[t][1]=+(4*t+1<e.attributes.length),o[t][2]=+(4*t+2<e.attributes.length),o[t][3]=+(4*t+3<e.attributes.length);let s={uniforms:{isActive:o,colors:a,dotValue:e.dotValue,dotScale:e.referenceScale,blending:e.dotBlendingEnabled,dotSize:e.dotSize,seed:e.seed},optionalAttributes:{}},c=r.ensureInstance(y.dotDensity,s).createMeshInfo({effects:null}),l=[],u=await A(new i({color:e.backgroundColor??[0,0,0,0],outline:null}),t);if(l.push(...u),l.push(c),e.outline){let n=J(e.outline,t,!0);l.push(...n)}return l}async function M(e,t){let{store:i}=t,{radius:a,minDensity:o,maxDensity:s,referenceScale:c,field:l,valueExpression:u,colorStops:d}=e,f=r(d);return[i.ensureInstance(y.heatmap,{uniforms:{radius:n(a),minDensity:o,maxDensity:s,referenceScale:c,isFieldActive:!!(l||u),gradient:f,gradientHash:f.join(`,`)},optionalAttributes:{}}).createMeshInfo({effects:null})]}async function N(e,t){let{store:r}=t,i=e.outline?.width||0,a=C(e),o=Math.min(e.attributes.length,x),s=e.attributes.slice(0,o).map(e=>S(e.color));for(;s.length<x;)s.push([0,0,0,0]);let c=r.ensureInstance(y.pieChart,{uniforms:{shader:{chart:{outlineWidth:Math.round(n(i)),defaultColor:S(e.defaultColor),outlineColor:S(e.outline?.color),othersColor:S(e.othersCategory?.color),donutRatio:e.holePercentage,sectorThreshold:e.othersCategory?.threshold||0,colors:s,fieldCount:o},visualVariableOpacity:a.visualVariableOpacity,visualVariableSizeMinMaxValue:a.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:a.visualVariableSizeScaleStops,visualVariableSizeStops:a.visualVariableSizeStops,visualVariableSizeUnitValue:a.visualVariableSizeUnitValue}},optionalAttributes:{zoomRange:!0}}).createMeshInfo({size:e.size,outlineWidth:i,effects:null,scaleInfo:null,minPixelBuffer:w(a)});return[...e.backgroundFillSymbol?await K(e.backgroundFillSymbol,{schemaOptions:t,uniforms:T}):[],c]}function P(e){if(e.style===`path`){if(e.path==null)throw Error(`Symbol with a style of type path must define a path`);return{type:`sprite-rasterization-param`,overrides:[],resource:{type:`path`,path:e.path,asFill:!0}}}let t=s.fromSimpleMarker(e);if(`outline`in e&&e.outline&&e.outline.style!==`none`&&e.outline.style!==`solid`){if(!t||!t.symbolLayers)throw Error(`Error handling marker! `);return{type:`sprite-rasterization-param`,resource:t.symbolLayers[0],overrides:[]}}return{type:`sprite-rasterization-param`,resource:d(t),overrides:[]}}async function F(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r;if(e.style===`path`||e.outline&&e.outline.style!==`solid`&&e.outline.style!==`none`){let r=s.fromSimpleMarker(e);if(!r||!r.symbolLayers)throw Error(`Error handling marker! `);if(n.visualVariableRotation&&(r.angleAlignment=`Map`),e.style!==`path`){let e=r.symbolLayers[0];if(O(t.uniforms)){let n=w(t.uniforms,0,1);if(n>e.size){let t=n/e.size;e.size=n;let r=e.markerGraphics?.[0].symbol,i=r.symbolLayers&&r.symbolLayers[0];i.width*=t}}}return E({type:`CIMSymbolReference`,symbol:r},t)}let a=i.ensureInstance(y.marker,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeMinMaxValue:n.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:n.visualVariableSizeScaleStops,visualVariableSizeStops:n.visualVariableSizeStops,visualVariableSizeUnitValue:n.visualVariableSizeUnitValue,visualVariableRotation:n.visualVariableRotation},optionalAttributes:{zoomRange:!1}}),o=P(e),c=e.color?.toArray()??[0,0,0,0];o.resource.type===`CIMVectorMarker`&&(c=[255,255,255,255]);let l=e.style===`triangle`?124/116:1,u=e.size,d=u*l,f=n.visualVariableColor!=null&&(e.style===`cross`||e.style===`x`);return[a.createMeshInfo({type:`simple`,color:c,height:u,width:d,offsetX:e.xoffset,offsetY:e.yoffset,angle:e.angle,alignment:+!!k(n),outlineColor:e.outline?.color?.toArray()??[0,0,0,0],outlineSize:e.outline?.width??1,referenceSize:u,sprite:o,overrideOutlineColor:f,hasSizeVV:O(n),placement:null,effects:null,transforms:null,scaleInfo:null,minPixelBuffer:w(n)})]}function I(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r,a=i.ensureInstance(y.marker,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeMinMaxValue:n.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:n.visualVariableSizeScaleStops,visualVariableSizeStops:n.visualVariableSizeStops,visualVariableSizeUnitValue:n.visualVariableSizeUnitValue,visualVariableRotation:n.visualVariableRotation},optionalAttributes:{zoomRange:!1}}),o=s.createPictureMarkerRasterizationParam(e);return o?[a.createMeshInfo({type:`picture`,color:[255,255,255,255],height:e.height,width:e.width,offsetX:e.xoffset,offsetY:e.yoffset,angle:e.angle,alignment:+!!k(n),outlineColor:null,outlineSize:0,referenceSize:e.height,sprite:o,overrideOutlineColor:!1,hasSizeVV:O(n),placement:null,effects:null,transforms:null,scaleInfo:null,minPixelBuffer:w(n)})]:[]}function L(e,t,n){let{uniforms:r,schemaOptions:i}=n,{store:a}=i,o=a.ensureInstance(y.marker,{uniforms:{visualVariableColor:r.visualVariableColor,visualVariableOpacity:r.visualVariableOpacity,visualVariableSizeMinMaxValue:r.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:r.visualVariableSizeScaleStops,visualVariableSizeStops:r.visualVariableSizeStops,visualVariableSizeUnitValue:r.visualVariableSizeUnitValue,visualVariableRotation:r.visualVariableRotation},optionalAttributes:{zoomRange:!1}}),s=P(e),c=6*t.width,l=c,u=e.color?.toArray()??t.color?.toArray()??[0,0,0,0],d=e.style===`cross`||e.style===`x`,f;switch(e.placement){case`begin-end`:f=`Both`;break;case`begin`:f=`JustBegin`;break;case`end`:f=`JustEnd`;break;default:f=`None`}let p={type:`cim-marker-placement-param`,placement:{type:`CIMMarkerPlacementAtExtremities`,angleToLine:!0,offset:0,extremityPlacement:f,offsetAlongLine:0},overrides:[]};return[o.createMeshInfo({type:`simple`,color:u,height:l,width:c,offsetX:0,offsetY:0,angle:0,alignment:+!!k(r),outlineColor:u,outlineSize:d?t.width:0,referenceSize:l/6,sprite:s,overrideOutlineColor:d&&r.visualVariableColor!=null,hasSizeVV:O(r),placement:p,transforms:null,effects:null,scaleInfo:null,minPixelBuffer:w(r)})]}function R(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r;return[i.ensureInstance(y.text,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableRotation:n.visualVariableRotation,visualVariableSizeMinMaxValue:n.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:n.visualVariableSizeScaleStops,visualVariableSizeStops:n.visualVariableSizeStops,visualVariableSizeUnitValue:n.visualVariableSizeUnitValue},optionalAttributes:{zoomRange:!1,clipAngle:!1,referenceSymbol:!1}}).createMeshInfo({alignment:0,boxBackgroundColor:e.backgroundColor?.toArray(),boxBorderLineColor:e.borderLineColor?.toArray(),boxBorderLineSize:e.borderLineSize??0,color:e.color?.toArray()??[0,0,0,0],offsetX:e.xoffset,offsetY:e.yoffset,postAngle:e.angle,fontSize:e.font.size,decoration:e.font.decoration,haloColor:e.haloColor?.toArray()??[0,0,0,0],haloSize:e.haloSize??0,outlineColor:[0,0,0,0],outlineSize:0,lineWidth:e.lineWidth,lineHeightRatio:e.lineHeight,horizontalAlignment:e.horizontalAlignment,verticalAlignment:e.verticalAlignment,useCIMAngleBehavior:!1,glyphs:{type:`text-rasterization-param`,resource:{type:`text`,font:e.font.toJSON(),textString:e.text,symbol:s.createCIMTextSymbolfromTextSymbol(e),supportsRichText:u(e.text)},overrides:[]},referenceSize:null,effects:null,placement:null,scaleInfo:null,transforms:null,scaleFactor:1,minPixelBuffer:w(n),repeatLabel:null,repeatLabelDistance:null,allowOverrun:null,labelPosition:null,layerId:null,labelClassId:null})]}async function z(e,t){let{schemaOptions:r,uniforms:i}=t,{store:a}=r,o=e.symbol,c=o.type===`cim`?o:null,l=c?.data.symbol?.type===`CIMTextSymbol`?c.data.symbol:null;if(c&&!l)throw Error(`InternalError: CIM label symbols must contain a CIMTextSymbol`);let u=l?null:o,{allowOverrun:d,repeatLabel:h,repeatLabelDistance:_}=e,v={maxScale:e.maxScale??0,minScale:e.minScale??0},b=l?B(l):null,x=l??s.createCIMTextSymbolfromTextSymbol(u),S=V(l?.callout)?l.callout:null,C=S?await D({type:`CIMSymbolReference`,symbol:{type:`CIMPointSymbol`,symbolLayers:[],callout:S},primitiveOverrides:c.data.primitiveOverrides},{...t,uniforms:T},!0):[],E=a.ensureInstance(y.label,{uniforms:{visualVariableColor:null,visualVariableOpacity:null,visualVariableRotation:i.visualVariableRotation,visualVariableSizeMinMaxValue:i.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:i.visualVariableSizeScaleStops,visualVariableSizeStops:i.visualVariableSizeStops,visualVariableSizeUnitValue:i.visualVariableSizeUnitValue},optionalAttributes:{zoomRange:!0,clipAngle:!0,referenceSymbol:!0}}),O=e.labelPlacement,[k,A]=g(O),j={...E.createMeshInfo({alignment:0,boxBackgroundColor:u?.backgroundColor?.toArray(),boxBorderLineColor:u?.borderLineColor?.toArray(),boxBorderLineSize:u?.borderLineSize??0,color:l?H(f(l),[0,0,0,255]):u?.color?.toArray()??[0,0,0,0],offsetX:l?l.offsetX??0:u.xoffset,offsetY:l?l.offsetY??0:u.yoffset,labelOffsetDistance:S?e.offsetDistance:0,postAngle:l?l.angle??0:u.angle,fontSize:l?l.height??10:u.font.size,decoration:b?.decoration??u.font.decoration,outlineColor:l?H(p(l),[0,0,0,0]):[0,0,0,0],outlineSize:l?m(l)??0:0,haloColor:l?H(f(l.haloSymbol)??p(l.haloSymbol),[0,0,0,0]):u?.haloColor?.toArray()??[0,0,0,0],haloSize:l?l.haloSize??0:u.haloSize??0,lineWidth:l?l.lineWidth??512:u.lineWidth,lineHeightRatio:u?.lineHeight??1,horizontalAlignment:k,verticalAlignment:A,repeatLabel:h,repeatLabelDistance:n(_),allowOverrun:d,labelPosition:e.labelPosition,scaleInfo:v,minPixelBuffer:w(i),useCIMAngleBehavior:!1,glyphs:{type:`text-rasterization-param`,resource:{type:`text`,font:b??u.font.toJSON(),textString:u?.text??``,symbol:x,primitiveName:`label-override`,supportsRichText:!0},useLegacyLabelEvaluationRules:e.labelExpressionInfo?.expression==null,overrides:[{valueExpressionInfo:{type:`CIMExpressionInfo`,expression:e.labelExpressionInfo?.expression??e.labelExpression,returnType:`String`},primitiveName:`label-override`,propertyName:`textString`,defaultValue:``}]},referenceSize:null,effects:null,placement:null,transforms:null,scaleFactor:1,layerId:t.layerId,labelClassId:t.labelClassId,collisionVisibility:!0}),references:{externalDependencies:[`label-reference-symbol`],...S?{exports:[`callout-body`]}:null}};return[...S?C.map(e=>({...e,id:a.ensureLabelPhaseInstanceId(e.id),references:{...e.references,dependencies:[`callout-body`]}})):C,j]}function B(t){return{family:e(t.fontFamilyName),decoration:h(t),...l(t.fontStyleName)}}function V(e){return e?.type===`CIMSimpleLineCallout`||e?.type===`CIMBackgroundCallout`||e?.type===`CIMBalloonCallout`||e?.type===`CIMPointSymbolCallout`}function H(e,t){return e?.length===4?[e[0],e[1],e[2],e[3]]:t}function U(e,t){let n=e.width;return{outlineColor:e.color?.toArray()||[0,0,0,1],width:n,referenceWidth:n,capType:e.cap??`round`,joinType:e.join??`round`,miterLimit:e.miterLimit,hasSizeVV:t,outlineUsesColorVV:!1}}function W(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r,a=e.color?.toArray()??[0,0,0,0],o={type:`sprite-rasterization-param`,resource:{type:`fill-style`,style:e.style},overrides:[]};if(e.outline?.style===`solid`)return[i.ensureInstance(y.patternOutlineFill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeScaleStops:n.visualVariableSizeOutlineScaleStops,visualVariableSizeMinMaxValue:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:a,...U(e.outline,!!n.visualVariableSizeOutlineScaleStops),sprite:o,scaleInfo:null,effects:null})];let s=[],c=i.ensureInstance(y.patternFill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:e.color?.toArray()??[0,0,0,0],sprite:o,scaleInfo:null,effects:null});return s.push(c),e.outline&&s.push(...J(e.outline,t,!0)),s}function G(e,t){let{uniforms:n,schemaOptions:r}=t,{store:i}=r,a=e.color?.toArray()??[0,0,0,0];if(e.style!==`none`&&e.outline?.style===`solid`)return[i.ensureInstance(y.outlineFill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity,visualVariableSizeScaleStops:n.visualVariableSizeOutlineScaleStops,visualVariableSizeMinMaxValue:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:a,...U(e.outline,!!n.visualVariableSizeOutlineScaleStops),scaleInfo:null,effects:null})];let o=[];if(e.style!==`none`){let e=i.ensureInstance(y.fill,{uniforms:{visualVariableColor:n.visualVariableColor,visualVariableOpacity:n.visualVariableOpacity},optionalAttributes:{zoomRange:!1}}).createMeshInfo({color:a,scaleInfo:null,effects:null});o.push(e)}return e.outline&&o.push(...J(e.outline,t,!0)),o}async function K(e,t){if(e.type===`cim`)return E(e.data,t);let{style:n}=e;return n&&n!==`none`&&n!==`solid`?W(e,t):G(e,t)}function q(e,t){let{outline:n}=e,{uniforms:r,schemaOptions:i}=t,{store:a}=i,o=[],c=s.createPictureFillRasterizationParam(e);if(!c)return[];let{width:l,height:u,xoffset:d,yoffset:f,xscale:p,yscale:m}=e,h={color:[255,255,255,255],sprite:c,height:u,aspectRatio:l/u,offsetX:d,offsetY:f,scaleX:p,scaleY:m,angle:0,applyRandomOffset:!1,sampleAlphaOnly:!1,scaleProportionally:!1,effects:null,scaleInfo:null};if(n?.style===`solid`)return[a.ensureInstance(y.complexOutlineFill,{uniforms:{visualVariableColor:r.visualVariableColor,visualVariableOpacity:r.visualVariableOpacity,visualVariableSizeScaleStops:r.visualVariableSizeOutlineScaleStops,visualVariableSizeMinMaxValue:null,visualVariableSizeStops:null,visualVariableSizeUnitValue:null},optionalAttributes:{zoomRange:!1}}).createMeshInfo({...h,...U(n,!!r.visualVariableSizeOutlineScaleStops)})];let g=a.ensureInstance(y.complexFill,{uniforms:{visualVariableColor:r.visualVariableColor,visualVariableOpacity:r.visualVariableOpacity},optionalAttributes:{zoomRange:!1}});return o.push(g.createMeshInfo(h)),n&&o.push(...J(n,t,!0)),o}function J(e,t,n){let{color:r,style:i,width:a,cap:o,join:s}=e,{schemaOptions:l}=t,{store:u}=l,d=[],f=n?{...T,visualVariableSizeScaleStops:t.uniforms.visualVariableSizeOutlineScaleStops}:t.uniforms,p={uniforms:{visualVariableColor:f.visualVariableColor,visualVariableOpacity:f.visualVariableOpacity,visualVariableSizeMinMaxValue:f.visualVariableSizeMinMaxValue,visualVariableSizeScaleStops:f.visualVariableSizeScaleStops,visualVariableSizeStops:f.visualVariableSizeStops,visualVariableSizeUnitValue:f.visualVariableSizeUnitValue},optionalAttributes:{zoomRange:!1}},m={color:r?.toArray()??[0,0,0,0],width:a,referenceWidth:a,capType:o,joinType:s,miterLimit:e.miterLimit,hasSizeVV:O(f),effects:null,scaleInfo:null};if(i==null||i===`solid`){let e=u.ensureInstance(y.line,p).createMeshInfo(m);d.push(e)}else if(i!==`none`){let e=u.ensureInstance(y.texturedLine,p).createMeshInfo({...m,offsetAlongLine:0,shouldScaleDash:!0,shouldSampleAlphaOnly:!1,isSDF:!0,sprite:{type:`sprite-rasterization-param`,resource:{type:`dash`,dashTemplate:c(i,o)},overrides:[]}});d.push(e)}return e.marker!=null&&d.push(...L(e.marker,e,t)),d}export{j as createDotDensityMeshSchemas,M as createHeatmapMeshSchemas,J as createLineInstance,N as createPieChartMeshSchemas,A as createSymbolMeshSchemas};
@@ -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};