@arcgis/coding-components 4.29.0-beta.93 → 4.29.0-beta.95

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 (160) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
  82. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
  83. package/dist/arcgis-coding-components/index.esm.js +6 -1
  84. package/dist/arcgis-coding-components/p-23f55366.entry.js +6 -0
  85. package/dist/arcgis-coding-components/{p-009eaccf.js → p-2ee92dd4.js} +5 -0
  86. package/dist/arcgis-coding-components/{p-79707082.js → p-3379c876.js} +6 -1
  87. package/dist/arcgis-coding-components/{p-1d062d47.js → p-361da3f4.js} +6 -1
  88. package/dist/arcgis-coding-components/{p-ccafed7f.js → p-6addbe14.js} +5 -0
  89. package/dist/arcgis-coding-components/{p-590b795b.js → p-704356f7.js} +6 -1
  90. package/dist/arcgis-coding-components/{p-75ae922a.js → p-b1d0e952.js} +7 -2
  91. package/dist/arcgis-coding-components/{p-4c959bce.js → p-ca87fa23.js} +15 -10
  92. package/dist/arcgis-coding-components/{p-ca7059d4.js → p-cc1182ad.js} +6 -1
  93. package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-d7115f8d.js} +6 -1
  94. package/dist/arcgis-coding-components/p-f75e9797.js +6 -0
  95. package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-f7de632b.js} +6 -1
  96. package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-ca7e0df9.js} +487 -362
  97. package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-804c5ea4.js} +24 -20
  98. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
  99. package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
  100. package/dist/cjs/{css-eb1c8e5c.js → css-57d8d5ce.js} +5 -0
  101. package/dist/cjs/{cssMode-90f06d02.js → cssMode-26f96949.js} +7 -2
  102. package/dist/cjs/{html-1aa8e458.js → html-524d1fa5.js} +7 -2
  103. package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-cfbfa149.js} +7 -2
  104. package/dist/cjs/{index-aaf14a3e.js → index-b2077a1b.js} +5 -0
  105. package/dist/cjs/index.cjs.js +7 -2
  106. package/dist/cjs/{javascript-7a4d9023.js → javascript-256166f8.js} +8 -3
  107. package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-07101bba.js} +7 -2
  108. package/dist/cjs/loader.cjs.js +6 -1
  109. package/dist/cjs/{tsMode-95a699e0.js → tsMode-4bf06b38.js} +7 -2
  110. package/dist/cjs/{typescript-588df930.js → typescript-d05f2c7b.js} +7 -2
  111. package/dist/components/arcade-api.js +11 -6
  112. package/dist/components/arcade-contribution.js +16 -6
  113. package/dist/components/arcade-defaults.js +243 -118
  114. package/dist/components/arcade-mode.js +22 -18
  115. package/dist/components/arcade-results.js +137 -85
  116. package/dist/components/arcade-suggestions.js +9 -4
  117. package/dist/components/arcade-variables.js +10 -5
  118. package/dist/components/arcgis-arcade-api.js +5 -0
  119. package/dist/components/arcgis-arcade-editor.js +20 -8
  120. package/dist/components/arcgis-arcade-results.js +5 -0
  121. package/dist/components/arcgis-arcade-suggestions.js +5 -0
  122. package/dist/components/arcgis-arcade-variables.js +5 -0
  123. package/dist/components/arcgis-code-editor.js +5 -0
  124. package/dist/components/code-editor.js +9 -4
  125. package/dist/components/fields.js +5 -0
  126. package/dist/components/functional-components.js +5 -0
  127. package/dist/components/index.js +5 -0
  128. package/dist/components/index2.js +7 -2
  129. package/dist/components/markdown.js +5 -0
  130. package/dist/components/utilities.js +7 -2
  131. package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-f929db03.js} +479 -354
  132. package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-87d3ea19.js} +24 -20
  133. package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
  134. package/dist/esm/arcgis-coding-components.js +7 -2
  135. package/dist/esm/{css-aade9167.js → css-eb0f99ca.js} +5 -0
  136. package/dist/esm/{cssMode-edce5a89.js → cssMode-864388a5.js} +7 -2
  137. package/dist/esm/{html-00b724af.js → html-6c5b1b7a.js} +7 -2
  138. package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-8edd9000.js} +7 -2
  139. package/dist/esm/{index-3732acb8.js → index-06f96b57.js} +5 -0
  140. package/dist/esm/index.js +7 -2
  141. package/dist/esm/{javascript-bdd52d83.js → javascript-2f8e7e0f.js} +8 -3
  142. package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-7cd18ebd.js} +7 -2
  143. package/dist/esm/loader.js +7 -2
  144. package/dist/esm/{tsMode-0bd06180.js → tsMode-23e39ee2.js} +7 -2
  145. package/dist/esm/{typescript-dfdad07a.js → typescript-c122e586.js} +7 -2
  146. package/dist/loader/cdn.js +5 -1
  147. package/dist/loader/index.cjs.js +5 -1
  148. package/dist/loader/index.es2017.js +5 -1
  149. package/dist/loader/index.js +5 -1
  150. package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
  151. package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
  152. package/dist/types/components.d.ts +3 -3
  153. package/dist/types/utils/arcade-executor.d.ts +12 -4
  154. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
  155. package/dist/types/utils/profile/editor-profile.d.ts +10 -5
  156. package/dist/types/utils/profile/types.d.ts +3 -3
  157. package/dist/types/utils/profile/utils.d.ts +4 -0
  158. package/package.json +10 -10
  159. package/dist/arcgis-coding-components/p-86772125.js +0 -1
  160. package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
@@ -145,6 +145,62 @@
145
145
  }
146
146
  ]
147
147
  },
148
+ {
149
+ "id": "knowledgegraph_functions",
150
+ "title": "Č_Knowledge graph functions__________________________ž",
151
+ "items": [
152
+ {
153
+ "type": "function",
154
+ "name": "knowledgegraphbyportalitem",
155
+ "bundle": "knowledge-graph",
156
+ "sinceVersion": "1.26",
157
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
158
+ "description": "Č_Returns a knowledge graph from a portal item________________________ž.",
159
+ "examples": "\n##### Primer\n\nČ_Returns the knowledge graph from the portal item__________________________ž.\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
160
+ "completion": {
161
+ "label": "KnowledgeGraphByPortalItem",
162
+ "detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
163
+ "insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
164
+ "insertTextMode": 2,
165
+ "insertTextFormat": 2,
166
+ "kind": 3,
167
+ "documentation": {
168
+ "kind": "markdown",
169
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nČ_Returns a knowledge graph from a portal item________________________ž.\n\n**Parametri**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Č_The Portal from which to query features_____________________ž.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Č_The GUID of the portal item referencing a knowledge graph service. _This value must be a text literal.______________________________________________________ž\n\n**Povratna vrednost**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
170
+ }
171
+ },
172
+ "parametersInfo": {
173
+ "min": 2,
174
+ "max": 2
175
+ }
176
+ },
177
+ {
178
+ "type": "function",
179
+ "name": "querygraph",
180
+ "bundle": "knowledge-graph",
181
+ "sinceVersion": "1.26",
182
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
183
+ "description": "Č_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ž.",
184
+ "examples": "\n##### Primer\n\nČ_Queries the knowledge graph for information about the `Student` entities it contains____________________________________________ž.\n\n```arcade\nvar results = QueryGraph(\n knowledgeGraph,\n 'MATCH (p:Student)-[e:EnrolledAt]->(s:School)\n WHERE s.name = 'Eastside Elementary'\n RETURN p,e,s.principal,s.numStaff\n LIMIT 1');\n\nreturn Text(results);\n```\n\n",
185
+ "completion": {
186
+ "label": "QueryGraph",
187
+ "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
188
+ "insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
189
+ "insertTextMode": 2,
190
+ "insertTextFormat": 2,
191
+ "kind": 3,
192
+ "documentation": {
193
+ "kind": "markdown",
194
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nČ_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ž.\n\n**Parametri**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - Č_The knowledge graph to query______________________________ž.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Č_The openCypher query to be executed against the knowledge graph_________________________________ž.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Č_A dictionary of named query parameters for the openCypher query_________________________________ž. Č_The parameter names or keys in the dictionary are case-sensitive__________________________________ž. Č_Parameters accepted depend on the external graph store and can be of type: `Array`, `Date`, `Dictionary`, `Geometry`, `Number, Text`___________________________________________________________________ž\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
195
+ }
196
+ },
197
+ "parametersInfo": {
198
+ "min": 2,
199
+ "max": 3
200
+ }
201
+ }
202
+ ]
203
+ },
148
204
  {
149
205
  "id": "featureset_functions",
150
206
  "title": "FeatureSet funkcije",
@@ -907,7 +963,7 @@
907
963
  "sinceVersion": "1.14",
908
964
  "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
909
965
  "description": "Vraća planarnu (Dekartovu) dužinu ulaznog FeatureSet-a (skup geoobjekata) uzimajući u obzir visinu ili podatke Z ose. Geometriji dodatoj ovoj funkciji mora se dodeliti projektni koordinatni sistem. Ako prostorna referenca ne daje vrednost za jedinice Z ose, rezultat se vraća u metrima. Imajte na umu da ne podržavaju svi klijenti (kao što je 3.x serija ArcGIS API for JavaScript) traženje vrednosti Z ose, čak i kada podaci sadrže informacije o Z osi.\n\n_Geometrije karakteristika u profilima vizuelizacije i označavanja generalizovani su prema rezoluciji razmere prikaza da bi se poboljšale performanse crtanja. Zbog toga, korišćenje geometrije obeležja (tj. `$feature`) kao ulaza za bilo koju geometrijsku funkciju u ovim kontekstima vratiće različite rezultate na svakom nivou skale. Drugi profili, kao što je iskačući prozor, pružaju geometriju pune rezolucije._",
910
- "examples": "\n##### Primer\n\nVraća 3D dužinu geoobjekata sloja u metrima\n\n```arcade\nLength($layer, 'meters')\n```\n\n",
966
+ "examples": "\n##### Primer\n\nVraća 3D dužinu geoobjekata sloja u metrima\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
911
967
  "completion": {
912
968
  "label": "Length3D",
913
969
  "detail": "Length3D(features, unit?) -> Number",
@@ -2634,6 +2690,31 @@
2634
2690
  "max": 1
2635
2691
  }
2636
2692
  },
2693
+ {
2694
+ "type": "function",
2695
+ "name": "hasvalue",
2696
+ "bundle": "core",
2697
+ "sinceVersion": "1.20",
2698
+ "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
2699
+ "description": "Indicates whether a feature has a given field and if that field has a value.",
2700
+ "examples": "\n##### Primer\n\nReturn false if feature attribute does not exist or is empty\n\n```arcade\nif(HasValue($feature, \"population\")){\n return $feature.population / AreaGeodetic($feature)\n}\n// Returns the population density if population is available\n```\n\n",
2701
+ "completion": {
2702
+ "label": "HasValue",
2703
+ "detail": "HasValue(inputFeature, fieldName) -> Boolean",
2704
+ "insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
2705
+ "insertTextMode": 2,
2706
+ "insertTextFormat": 2,
2707
+ "kind": 3,
2708
+ "documentation": {
2709
+ "kind": "markdown",
2710
+ "value": "**[Od verzije 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a feature has a given field and if that field has a value.\n\n**Parametri**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature to check.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The field name to check.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2711
+ }
2712
+ },
2713
+ "parametersInfo": {
2714
+ "min": 2,
2715
+ "max": 2
2716
+ }
2717
+ },
2637
2718
  {
2638
2719
  "type": "function",
2639
2720
  "name": "schema",
@@ -2891,6 +2972,57 @@
2891
2972
  "max": 1
2892
2973
  }
2893
2974
  },
2975
+ [
2976
+ {
2977
+ "type": "function",
2978
+ "name": "defaultvalue",
2979
+ "bundle": "core",
2980
+ "sinceVersion": "1.26",
2981
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
2982
+ "description": "Returns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.",
2983
+ "examples": "\n##### Primeri\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
2984
+ "completion": {
2985
+ "label": "DefaultValue",
2986
+ "detail": "DefaultValue(container, index, defaultValue) -> Any",
2987
+ "insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
2988
+ "insertTextMode": 2,
2989
+ "insertTextFormat": 2,
2990
+ "kind": 3,
2991
+ "documentation": {
2992
+ "kind": "markdown",
2993
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the index does not exist or the value at the specified index is `null` or an empty text value.\n\n**Povratna vrednost**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified index if defined. Otherwise, returns the value specified in `defaultValue`."
2994
+ }
2995
+ },
2996
+ "parametersInfo": {
2997
+ "min": 3,
2998
+ "max": 3
2999
+ }
3000
+ },
3001
+ {
3002
+ "type": "function",
3003
+ "name": "defaultvalue",
3004
+ "bundle": "core",
3005
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
3006
+ "description": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.",
3007
+ "examples": "\n##### Primeri\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 3], \"No data\");\n// returns 1\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [2, 10], \"No data\");\n// returns \"No data\"\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nDefaultValue(a, [10, 3], \"No data\");\n// returns \"No data\"\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nDefaultValue(a, [0, \"weather\",\"precipitation\",\"values\", 6], \"No data\");\n// returns 1\n```\n\n",
3008
+ "completion": {
3009
+ "label": "DefaultValue",
3010
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
3011
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
3012
+ "insertTextMode": 2,
3013
+ "insertTextFormat": 2,
3014
+ "kind": 3,
3015
+ "documentation": {
3016
+ "kind": "markdown",
3017
+ "value": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.\n\n**Parametri**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Povratna vrednost**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
3018
+ }
3019
+ },
3020
+ "parametersInfo": {
3021
+ "min": 3,
3022
+ "max": 3
3023
+ }
3024
+ }
3025
+ ],
2894
3026
  [
2895
3027
  {
2896
3028
  "type": "function",
@@ -3042,6 +3174,58 @@
3042
3174
  "max": 1
3043
3175
  }
3044
3176
  },
3177
+ [
3178
+ {
3179
+ "type": "function",
3180
+ "name": "hasvalue",
3181
+ "bundle": "core",
3182
+ "sinceVersion": "1.26",
3183
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
3184
+ "description": "Indicates whether an array has a value at the given index.",
3185
+ "examples": "\n##### Primeri\n\nArray with value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nArray with no value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nArray with a null value at the given index\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
3186
+ "completion": {
3187
+ "label": "HasValue",
3188
+ "detail": "HasValue(inputArray, index) -> Boolean",
3189
+ "insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
3190
+ "insertTextMode": 2,
3191
+ "insertTextFormat": 2,
3192
+ "kind": 3,
3193
+ "documentation": {
3194
+ "kind": "markdown",
3195
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**Parametri**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3196
+ }
3197
+ },
3198
+ "parametersInfo": {
3199
+ "min": 2,
3200
+ "max": 2
3201
+ }
3202
+ },
3203
+ {
3204
+ "type": "function",
3205
+ "name": "hasvalue",
3206
+ "bundle": "core",
3207
+ "sinceVersion": "1.26",
3208
+ "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
3209
+ "description": "Checks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.",
3210
+ "examples": "\n##### Primeri\n\nArray with a value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nArray with no value at the nested index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nArray with no value at the parent index\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nArray of dictionaries with nested values\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nvar a = [ data, data2, data3 ]\nif(HasValue(a, [0, \"weather\",\"precipitation\",\"values\", 6])){\n // This check succeeds so the value will be returned\n return a[0].weather.precipitation.values[6];\n // returns 1\n}\n```\n\n",
3211
+ "completion": {
3212
+ "label": "HasValue",
3213
+ "detail": "HasValue(inputArray, indexes) -> Boolean",
3214
+ "insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
3215
+ "insertTextMode": 2,
3216
+ "insertTextFormat": 2,
3217
+ "kind": 3,
3218
+ "documentation": {
3219
+ "kind": "markdown",
3220
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.\n\n**Parametri**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3221
+ }
3222
+ },
3223
+ "parametersInfo": {
3224
+ "min": 2,
3225
+ "max": 2
3226
+ }
3227
+ }
3228
+ ],
3045
3229
  {
3046
3230
  "type": "function",
3047
3231
  "name": "includes",
@@ -3715,7 +3899,7 @@
3715
3899
  "sinceVersion": "1.12",
3716
3900
  "link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
3717
3901
  "description": "Zbir pređenih razdaljina između opservacija od prve do trenutne opservacije plus data vrednost.",
3718
- "examples": "\n##### Primeri\n\nVaša putanja ima šest geoobjekata, kao što se vidi iznad. Izraz vraća vrednost za svaki geoobjekat u putanji. U prvom primeru, ispitujemo rezultate kada se vrednuju na geoobjektu 2 (p2) sa vrednošću indeksa 2. Proračun izgleda `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nVaša putanja ima šest geoobjekata, kao što se vidi iznad. Izraz vraća vrednost za svaki geoobjekat u putanji. U sledećem primeru, ispitujemo rezultate kada se vrednuju na geoobjektu 4 (p4) sa vrednošću indeksa 4. Proračun izgleda `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 230\n```\n\n",
3902
+ "examples": "\n##### Primeri\n\nVaša putanja ima šest geoobjekata, kao što se vidi iznad. Izraz vraća vrednost za svaki geoobjekat u putanji. U prvom primeru, ispitujemo rezultate kada se vrednuju na geoobjektu 2 (p2) sa vrednošću indeksa 2. Proračun izgleda `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nVaša putanja ima šest geoobjekata, kao što se vidi iznad. Izraz vraća vrednost za svaki geoobjekat u putanji. U sledećem primeru, ispitujemo rezultate kada se vrednuju na geoobjektu 4 (p4) sa vrednošću indeksa 4. Proračun izgleda `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
3719
3903
  "completion": {
3720
3904
  "label": "TrackDistanceAt",
3721
3905
  "detail": "TrackDistanceAt(index) -> Number",
@@ -3995,6 +4179,57 @@
3995
4179
  "id": "dictionary_functions",
3996
4180
  "title": "Funkcije rečnika",
3997
4181
  "items": [
4182
+ [
4183
+ {
4184
+ "type": "function",
4185
+ "name": "defaultvalue",
4186
+ "bundle": "core",
4187
+ "sinceVersion": "1.26",
4188
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
4189
+ "description": "Returns a specified default value if a key in a dictionary does not exist or the value at the specified key is `null` or an empty text value.",
4190
+ "examples": "\n##### Primeri\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is defined, so it is returned\n// returns Jan 24, 2024, 12:00:00 PM system time\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: '',\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, \"time\", \"No time logged\")\n// value of data.time is empty, so the default is returned\n// returns \"No time logged\"\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: ''\n}\n\nDefaultValue(data, \"conditions\", \"n/a\")\n// the conditions key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\n",
4191
+ "completion": {
4192
+ "label": "DefaultValue",
4193
+ "detail": "DefaultValue(container, key, defaultValue) -> Any",
4194
+ "insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
4195
+ "insertTextMode": 2,
4196
+ "insertTextFormat": 2,
4197
+ "kind": 3,
4198
+ "documentation": {
4199
+ "kind": "markdown",
4200
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**Povratna vrednost**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
4201
+ }
4202
+ },
4203
+ "parametersInfo": {
4204
+ "min": 3,
4205
+ "max": 3
4206
+ }
4207
+ },
4208
+ {
4209
+ "type": "function",
4210
+ "name": "defaultvalue",
4211
+ "bundle": "core",
4212
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
4213
+ "description": "Returns a specified default value if at least one of the keys in a nested dictionary does not exist or the value at the specified key is `null` or an empty text value.",
4214
+ "examples": "\n##### Primeri\n\nDefaultValue returns a defined value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], \"No time logged\")\n// value of data.weather.precipitation.value is defined, so it is returned\n// returns 0.4\n```\n\nDefaultValue returns a default if there is no value at the specified key.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"value\"], 0)\n// value of data.weather.precipitation.value is null, so the default is returned\n// returns 0\n```\n\nDefaultValue returns a default if the key does not exist.\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: null,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nDefaultValue(data, [\"weather\", \"wind\", \"value\"], \"n/a\")\n// the data.weather.wind key does not exist, so the default is returned\n// returns \"n/a\"\n```\n\nCheck null value in an array within a dictionary with key that exists\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nDefaultValue(data, [\"weather\", \"precipitation\", \"values\", 3], 0)\n// the value data.weather.precipitation.values[3] is null, so the default is returned\n// returns 0\n```\n\n",
4215
+ "completion": {
4216
+ "label": "DefaultValue",
4217
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
4218
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
4219
+ "insertTextMode": 2,
4220
+ "insertTextFormat": 2,
4221
+ "kind": 3,
4222
+ "documentation": {
4223
+ "kind": "markdown",
4224
+ "value": "Returns a specified default value if at least one of the keys in a nested dictionary does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The input dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Povratna vrednost**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
4225
+ }
4226
+ },
4227
+ "parametersInfo": {
4228
+ "min": 3,
4229
+ "max": 3
4230
+ }
4231
+ }
4232
+ ],
3998
4233
  [
3999
4234
  {
4000
4235
  "type": "function",
@@ -4170,31 +4405,58 @@
4170
4405
  "max": 2
4171
4406
  }
4172
4407
  },
4173
- {
4174
- "type": "function",
4175
- "name": "hasvalue",
4176
- "bundle": "core",
4177
- "sinceVersion": "1.20",
4178
- "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue",
4179
- "description": "Označava da li rečnik ima dati ključ i da li taj ključ ima vrednost.",
4180
- "examples": "\n##### Primeri\n\nRečnik sa ključem koji ima vrednost\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nRečnik sa ključem koji nema vrednost\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nRečnik bez datog ključa\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nRečnik bez datog ključa\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
4181
- "completion": {
4182
- "label": "HasValue",
4183
- "detail": "HasValue(inputDictionary, key) -> Boolean",
4184
- "insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
4185
- "insertTextMode": 2,
4186
- "insertTextFormat": 2,
4187
- "kind": 3,
4188
- "documentation": {
4189
- "kind": "markdown",
4190
- "value": "**[Od verzije 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOznačava da li rečnik ima dati ključ i da li taj ključ ima vrednost.\n\n**Parametri**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Rečnik ili funkcija koju treba proveriti.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Ključ ili naziv polja za proveru.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4408
+ [
4409
+ {
4410
+ "type": "function",
4411
+ "name": "hasvalue",
4412
+ "bundle": "core",
4413
+ "sinceVersion": "1.20",
4414
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
4415
+ "description": "Indicates whether a dictionary has a given key and if that key has a value.",
4416
+ "examples": "\n##### Primeri\n\nDictionary with key that has a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nDictionary with key that does not have a value\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nDictionary without the provided key\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
4417
+ "completion": {
4418
+ "label": "HasValue",
4419
+ "detail": "HasValue(inputDictionary, key) -> Boolean",
4420
+ "insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
4421
+ "insertTextMode": 2,
4422
+ "insertTextFormat": 2,
4423
+ "kind": 3,
4424
+ "documentation": {
4425
+ "kind": "markdown",
4426
+ "value": "**[Od verzije 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a dictionary has a given key and if that key has a value.\n\n**Parametri**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or field name to check.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4427
+ }
4428
+ },
4429
+ "parametersInfo": {
4430
+ "min": 2,
4431
+ "max": 2
4191
4432
  }
4192
4433
  },
4193
- "parametersInfo": {
4194
- "min": 2,
4195
- "max": 2
4434
+ {
4435
+ "type": "function",
4436
+ "name": "hasvalue",
4437
+ "bundle": "core",
4438
+ "sinceVersion": "1.26",
4439
+ "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
4440
+ "description": "Checks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.",
4441
+ "examples": "\n##### Primeri\n\nCheck dictionary with key that has a nested value\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"value\"])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.value;\n}\n```\n\nCheck value in a dictionary with key that does not exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n weather: {\n precipitation: {\n type: \"rain\",\n value: 0.4,\n unit: \"inches\"\n },\n temperature: {\n value: 50,\n unit: \"f\"\n },\n conditions: {\n description: \"Overcast\"\n }\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 0])){\n // if() evaluates to false (\"values\" does not exist), thus avoiding the block\n return data.weather.precipitation.values;\n}\n```\n\nCheck value in an array within a dictionary with key that does exist\n\n```arcade\nvar data = {\n time: Date(2024, 0, 24, 12),\n interval: 1,\n intervalUnit: \"days\",\n weather: {\n precipitation: {\n type: \"rain\",\n values: [0.4, 0, 0, null, 0.1, 0.8, 1],\n unit: \"inches\"\n },\n temperature: {\n values: [50, 50, 51, 52, 55, 49, 51],\n unit: \"f\"\n },\n }\n}\n\nif(HasValue(data, [\"weather\",\"precipitation\",\"values\", 6])){\n // if() evaluates to true, thus executing the return\n return data.weather.precipitation.values[6];\n}\n```\n\n",
4442
+ "completion": {
4443
+ "label": "HasValue",
4444
+ "detail": "HasValue(inputDictionary, keys) -> Boolean",
4445
+ "insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
4446
+ "insertTextMode": 2,
4447
+ "insertTextFormat": 2,
4448
+ "kind": 3,
4449
+ "documentation": {
4450
+ "kind": "markdown",
4451
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**Parametri**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4452
+ }
4453
+ },
4454
+ "parametersInfo": {
4455
+ "min": 2,
4456
+ "max": 2
4457
+ }
4196
4458
  }
4197
- }
4459
+ ]
4198
4460
  ]
4199
4461
  },
4200
4462
  {
@@ -4607,6 +4869,57 @@
4607
4869
  "max": 2
4608
4870
  }
4609
4871
  },
4872
+ [
4873
+ {
4874
+ "type": "function",
4875
+ "name": "defaultvalue",
4876
+ "bundle": "core",
4877
+ "sinceVersion": "1.26",
4878
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
4879
+ "description": "Returns a specified default value if a key in a geometry does not exist or the value at the specified key is `null` or an empty text value.",
4880
+ "examples": "\n##### Primeri\n\nPoint that has a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\nPoint that does not have a z-value\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
4881
+ "completion": {
4882
+ "label": "DefaultValue",
4883
+ "detail": "DefaultValue(container, key, defaultValue) -> Any",
4884
+ "insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
4885
+ "insertTextMode": 2,
4886
+ "insertTextFormat": 2,
4887
+ "kind": 3,
4888
+ "documentation": {
4889
+ "kind": "markdown",
4890
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if a key in a geometry does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the key does not exist or the value at the specified key is `null` or an empty text value.\n\n**Povratna vrednost**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key if defined. Otherwise, returns the value specified in `defaultValue`."
4891
+ }
4892
+ },
4893
+ "parametersInfo": {
4894
+ "min": 3,
4895
+ "max": 3
4896
+ }
4897
+ },
4898
+ {
4899
+ "type": "function",
4900
+ "name": "defaultvalue",
4901
+ "bundle": "core",
4902
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
4903
+ "description": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.",
4904
+ "examples": "\n##### Primeri\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"z\"], 1000)\n// returns 100\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",2,0,\"z\"], 1000)\n// returns 1000\n```\n\nRing and coordinate exist, but m-value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nreturn DefaultValue(shape, [\"rings\",0,0,\"m\"], 100)\n// returns 100\n```\n\n",
4905
+ "completion": {
4906
+ "label": "DefaultValue",
4907
+ "detail": "DefaultValue(container, keys, defaultValue) -> Any",
4908
+ "insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
4909
+ "insertTextMode": 2,
4910
+ "insertTextFormat": 2,
4911
+ "kind": 3,
4912
+ "documentation": {
4913
+ "kind": "markdown",
4914
+ "value": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.\n\n**Parametri**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Povratna vrednost**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nReturns the value at the specified key or index if defined. Otherwise, returns the value specified in `defaultValue`."
4915
+ }
4916
+ },
4917
+ "parametersInfo": {
4918
+ "min": 3,
4919
+ "max": 3
4920
+ }
4921
+ }
4922
+ ],
4610
4923
  {
4611
4924
  "type": "function",
4612
4925
  "name": "densify",
@@ -4757,6 +5070,31 @@
4757
5070
  "max": 3
4758
5071
  }
4759
5072
  },
5073
+ {
5074
+ "type": "function",
5075
+ "name": "distancetocoordinate",
5076
+ "bundle": "geometry",
5077
+ "sinceVersion": "1.26",
5078
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
5079
+ "description": "Returns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
5080
+ "examples": "\n##### Primer\n\nReturns the coordinate of the input polyline based on the given distance value\n\n```arcade\nvar result = DistanceToCoordinate(Geometry($feature), 1038);\n\nreturn result.coordinate;\n```\n\n",
5081
+ "completion": {
5082
+ "label": "DistanceToCoordinate",
5083
+ "detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
5084
+ "insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
5085
+ "insertTextMode": 2,
5086
+ "insertTextFormat": 2,
5087
+ "kind": 3,
5088
+ "documentation": {
5089
+ "kind": "markdown",
5090
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Parametri**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The distance used to find the coordinate along `inputLine` from the start of the line.\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the distance is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given distance value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
5091
+ }
5092
+ },
5093
+ "parametersInfo": {
5094
+ "min": 2,
5095
+ "max": 2
5096
+ }
5097
+ },
4760
5098
  {
4761
5099
  "type": "function",
4762
5100
  "name": "envelopeintersects",
@@ -4930,6 +5268,58 @@
4930
5268
  "max": 1
4931
5269
  }
4932
5270
  },
5271
+ [
5272
+ {
5273
+ "type": "function",
5274
+ "name": "hasvalue",
5275
+ "bundle": "core",
5276
+ "sinceVersion": "1.26",
5277
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
5278
+ "description": "Indicates whether a geometry has a value at a given key or index.",
5279
+ "examples": "\n##### Primeri\n\nPoint that has a z value\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\nPolygon with key that does not exist\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
5280
+ "completion": {
5281
+ "label": "HasValue",
5282
+ "detail": "HasValue(inputGeometry, key) -> Boolean",
5283
+ "insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
5284
+ "insertTextMode": 2,
5285
+ "insertTextFormat": 2,
5286
+ "kind": 3,
5287
+ "documentation": {
5288
+ "kind": "markdown",
5289
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether a geometry has a value at a given key or index.\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The geometry to check.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The key or property name to check.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
5290
+ }
5291
+ },
5292
+ "parametersInfo": {
5293
+ "min": 2,
5294
+ "max": 2
5295
+ }
5296
+ },
5297
+ {
5298
+ "type": "function",
5299
+ "name": "hasvalue",
5300
+ "bundle": "core",
5301
+ "sinceVersion": "1.26",
5302
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
5303
+ "description": "Checks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.",
5304
+ "examples": "\n##### Primeri\n\nRing, coordinate, and x value all exist and have a value\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,0,\"x\"])){\n // if() evaluates to true, thus executing the return\n return shape.rings[0][0].x;\n // returns -97.06138\n}\n```\n\nRing does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",2,0,\"x\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[2][0].x;\n // polygon only has one ring; there is not a third ring\n}\n```\n\nRing and coordinate exist, but m value does not exist\n\n```arcade\n// polygon with one ring\nvar shape = Polygon({\n rings: [[\n Point({ x: -97.06138, y: 32.837, z: 100, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06133, y: 32.836, z: 50, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06124, y: 32.834, z: 20, hasZ: true, spatialReference: { wkid: 102100 } }),\n Point({ x: -97.06127, y: 32.832, z: 0, hasZ: true, spatialReference: { wkid: 102100 } })\n ]],\n hasZ: true,\n spatialReference: { wkid: 102100 }\n});\n\nif(HasValue(shape, [\"rings\",0,3,\"m\"])){\n // if() evaluates to false, thus not executing the return\n return shape.rings[0][3].m;\n // there is a coordinate at this location, but it does not have an m value\n}\n```\n\n",
5305
+ "completion": {
5306
+ "label": "HasValue",
5307
+ "detail": "HasValue(inputGeometry, keys) -> Boolean",
5308
+ "insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
5309
+ "insertTextMode": 2,
5310
+ "insertTextFormat": 2,
5311
+ "kind": 3,
5312
+ "documentation": {
5313
+ "kind": "markdown",
5314
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The dictionary or feature to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**Povratna vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
5315
+ }
5316
+ },
5317
+ "parametersInfo": {
5318
+ "min": 2,
5319
+ "max": 2
5320
+ }
5321
+ }
5322
+ ],
4933
5323
  {
4934
5324
  "type": "function",
4935
5325
  "name": "intersection",
@@ -5105,6 +5495,31 @@
5105
5495
  "max": 2
5106
5496
  }
5107
5497
  },
5498
+ {
5499
+ "type": "function",
5500
+ "name": "measuretocoordinate",
5501
+ "bundle": "geometry",
5502
+ "sinceVersion": "1.26",
5503
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
5504
+ "description": "Returns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
5505
+ "examples": "\n##### Primer\n\nReturns the coordinate of the input polyline based on the given measure value\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
5506
+ "completion": {
5507
+ "label": "MeasureToCoordinate",
5508
+ "detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
5509
+ "insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
5510
+ "insertTextMode": 2,
5511
+ "insertTextFormat": 2,
5512
+ "kind": 3,
5513
+ "documentation": {
5514
+ "kind": "markdown",
5515
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Parametri**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The measure, or m-value, from which to find a coordinate along `inputLine` from the start of the line.\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties. If the measure is not found along the input line, then the result will be `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The coordinates of a point along `inputLine` based on the given measure value. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
5516
+ }
5517
+ },
5518
+ "parametersInfo": {
5519
+ "min": 2,
5520
+ "max": 2
5521
+ }
5522
+ },
5108
5523
  {
5109
5524
  "type": "function",
5110
5525
  "name": "multiparttosinglepart",
@@ -5221,7 +5636,7 @@
5221
5636
  "kind": 3,
5222
5637
  "documentation": {
5223
5638
  "kind": "markdown",
5224
- "value": "**[Od verzije 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća najbližu koordinatu (ne vrh) ulazne geometrije do tačke pretrage. Vraćeni rečnik takođe uključuje najkraću planarnu udaljenost od tačke pretrage do najbliže koordinate. Ako tačka pretrage seče ulaznu geometriju, tada se tačka pretrage vraća kao rezultat sa rastojanjem od nule.\n\n_Geometrije karakteristika u profilima vizuelizacije i označavanja generalizovani su prema rezoluciji razmere prikaza da bi se poboljšale performanse crtanja. Zbog toga, korišćenje geometrije obeležja (tj. `$feature`) kao ulaza za bilo koju geometrijsku funkciju u ovim kontekstima vratiće različite rezultate na svakom nivou skale. Drugi profili, kao što je iskačući prozor, pružaju geometriju pune rezolucije._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrija iz koje se dobijaju najbliže koordinate.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Tačka iz koje se nalaze najbliže koordinate `ulazne Geometrije`.\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVraća rečnik sa sledećim svojstvima.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Najbliža koordinata od `inputGeometri` do `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Ravansko rastojanje od najbliže koordinate do `searchPoint`. Ovo predstavlja najkraću distancu između `inputGeometry` i `searchPoint`."
5639
+ "value": "**[Od verzije 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća najbližu koordinatu (ne vrh) ulazne geometrije do tačke pretrage. Vraćeni rečnik takođe uključuje najkraću planarnu udaljenost od tačke pretrage do najbliže koordinate. Ako tačka pretrage seče ulaznu geometriju, tada se tačka pretrage vraća kao rezultat sa rastojanjem od nule.\n\n_Geometrije karakteristika u profilima vizuelizacije i označavanja generalizovani su prema rezoluciji razmere prikaza da bi se poboljšale performanse crtanja. Zbog toga, korišćenje geometrije obeležja (tj. `$feature`) kao ulaza za bilo koju geometrijsku funkciju u ovim kontekstima vratiće različite rezultate na svakom nivou skale. Drugi profili, kao što je iskačući prozor, pružaju geometriju pune rezolucije._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrija iz koje se dobijaju najbliže koordinate.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Tačka iz koje se nalaze najbliže koordinate `ulazne Geometrije`.\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVraća rečnik sa sledećim svojstvima.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Najbliža koordinata od `inputGeometri` do `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Ravansko rastojanje od najbliže koordinate do `searchPoint`. Ovo predstavlja najkraću distancu između `inputGeometry` i `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
5225
5640
  }
5226
5641
  },
5227
5642
  "parametersInfo": {
@@ -5246,7 +5661,7 @@
5246
5661
  "kind": 3,
5247
5662
  "documentation": {
5248
5663
  "kind": "markdown",
5249
- "value": "**[Od verzije 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća najbliži vrh ulazne geometrije do tačke pretrage. Vraćeni rečnik uključuje planarnu udaljenost od tačke pretrage do najbližeg temena.\n\n_Geometrije karakteristika u profilima vizuelizacije i označavanja generalizovani su prema rezoluciji razmere prikaza da bi se poboljšale performanse crtanja. Zbog toga, korišćenje geometrije obeležja (tj. `$feature`) kao ulaza za bilo koju geometrijsku funkciju u ovim kontekstima vratiće različite rezultate na svakom nivou skale. Drugi profili, kao što je iskačući prozor, pružaju geometriju pune rezolucije._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrija iz koje se dobija najbliži vrh.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Tačka iz koje se nalaze najbliži vrh `ulazne Geometrije`.\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVraća rečnik sa sledećim svojstvima.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Lokacija tačke koja predstavlja najbliži vrh od `inputGeometry` do `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Ravansko rastojanje od najbližeg temena ulazne geometrije do `searchPoint`."
5664
+ "value": "**[Od verzije 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća najbliži vrh ulazne geometrije do tačke pretrage. Vraćeni rečnik uključuje planarnu udaljenost od tačke pretrage do najbližeg temena.\n\n_Geometrije karakteristika u profilima vizuelizacije i označavanja generalizovani su prema rezoluciji razmere prikaza da bi se poboljšale performanse crtanja. Zbog toga, korišćenje geometrije obeležja (tj. `$feature`) kao ulaza za bilo koju geometrijsku funkciju u ovim kontekstima vratiće različite rezultate na svakom nivou skale. Drugi profili, kao što je iskačući prozor, pružaju geometriju pune rezolucije._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Geometrija iz koje se dobija najbliži vrh.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Tačka iz koje se nalaze najbliži vrh `ulazne Geometrije`.\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nVraća rečnik sa sledećim svojstvima.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Lokacija tačke koja predstavlja najbliži vrh od `inputGeometry` do `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Ravansko rastojanje od najbližeg temena ulazne geometrije do `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
5250
5665
  }
5251
5666
  },
5252
5667
  "parametersInfo": {
@@ -5354,6 +5769,31 @@
5354
5769
  }
5355
5770
  }
5356
5771
  ],
5772
+ {
5773
+ "type": "function",
5774
+ "name": "pointtocoordinate",
5775
+ "bundle": "geometry",
5776
+ "sinceVersion": "1.26",
5777
+ "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
5778
+ "description": "Returns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
5779
+ "examples": "\n##### Primer\n\nReturns the distance to the nearest coordinate along the input polyline based on the clicked location to open a popup\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
5780
+ "completion": {
5781
+ "label": "PointToCoordinate",
5782
+ "detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
5783
+ "insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
5784
+ "insertTextMode": 2,
5785
+ "insertTextFormat": 2,
5786
+ "kind": 3,
5787
+ "documentation": {
5788
+ "kind": "markdown",
5789
+ "value": "**[Od verzije 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**Parametri**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to get the nearest coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point from which to find the nearest coordinate of the `inputLine`.\n\n**Povratna vrednost**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nReturns a dictionary with the following properties.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point coordinate representing the nearest coordinate along the `inputLine` to the `searchPoint`. The `searchPoint` must have `hasZ` equal to `true` for the resulting `coordinate` to include a z value.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the `searchPoint` to the `coordinate`.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The planar distance from the start of the `inputLine` measured along the line to the `coordinate`.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - In the case of a polyline input, the index of the path to which the `coordinate` belongs.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index (relative to the path) of the line segment to which the `coordinate` belongs. If `coordinate` represents a vertex of the input line, then `segmentId` will return the index of the previous vertex. If `coordinate` is the first vertex of `inputLine`, then the value of `segmentId` will be `0`."
5790
+ }
5791
+ },
5792
+ "parametersInfo": {
5793
+ "min": 2,
5794
+ "max": 2
5795
+ }
5796
+ },
5357
5797
  [
5358
5798
  {
5359
5799
  "type": "function",