@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.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +6 -1
- package/dist/arcgis-coding-components/p-23f55366.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-009eaccf.js → p-2ee92dd4.js} +5 -0
- package/dist/arcgis-coding-components/{p-79707082.js → p-3379c876.js} +6 -1
- package/dist/arcgis-coding-components/{p-1d062d47.js → p-361da3f4.js} +6 -1
- package/dist/arcgis-coding-components/{p-ccafed7f.js → p-6addbe14.js} +5 -0
- package/dist/arcgis-coding-components/{p-590b795b.js → p-704356f7.js} +6 -1
- package/dist/arcgis-coding-components/{p-75ae922a.js → p-b1d0e952.js} +7 -2
- package/dist/arcgis-coding-components/{p-4c959bce.js → p-ca87fa23.js} +15 -10
- package/dist/arcgis-coding-components/{p-ca7059d4.js → p-cc1182ad.js} +6 -1
- package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-d7115f8d.js} +6 -1
- package/dist/arcgis-coding-components/p-f75e9797.js +6 -0
- package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-f7de632b.js} +6 -1
- package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-ca7e0df9.js} +487 -362
- package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-804c5ea4.js} +24 -20
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
- package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
- package/dist/cjs/{css-eb1c8e5c.js → css-57d8d5ce.js} +5 -0
- package/dist/cjs/{cssMode-90f06d02.js → cssMode-26f96949.js} +7 -2
- package/dist/cjs/{html-1aa8e458.js → html-524d1fa5.js} +7 -2
- package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-cfbfa149.js} +7 -2
- package/dist/cjs/{index-aaf14a3e.js → index-b2077a1b.js} +5 -0
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-7a4d9023.js → javascript-256166f8.js} +8 -3
- package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-07101bba.js} +7 -2
- package/dist/cjs/loader.cjs.js +6 -1
- package/dist/cjs/{tsMode-95a699e0.js → tsMode-4bf06b38.js} +7 -2
- package/dist/cjs/{typescript-588df930.js → typescript-d05f2c7b.js} +7 -2
- package/dist/components/arcade-api.js +11 -6
- package/dist/components/arcade-contribution.js +16 -6
- package/dist/components/arcade-defaults.js +243 -118
- package/dist/components/arcade-mode.js +22 -18
- package/dist/components/arcade-results.js +137 -85
- package/dist/components/arcade-suggestions.js +9 -4
- package/dist/components/arcade-variables.js +10 -5
- package/dist/components/arcgis-arcade-api.js +5 -0
- package/dist/components/arcgis-arcade-editor.js +20 -8
- package/dist/components/arcgis-arcade-results.js +5 -0
- package/dist/components/arcgis-arcade-suggestions.js +5 -0
- package/dist/components/arcgis-arcade-variables.js +5 -0
- package/dist/components/arcgis-code-editor.js +5 -0
- package/dist/components/code-editor.js +9 -4
- package/dist/components/fields.js +5 -0
- package/dist/components/functional-components.js +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/index2.js +7 -2
- package/dist/components/markdown.js +5 -0
- package/dist/components/utilities.js +7 -2
- package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-f929db03.js} +479 -354
- package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-87d3ea19.js} +24 -20
- package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
- package/dist/esm/arcgis-coding-components.js +7 -2
- package/dist/esm/{css-aade9167.js → css-eb0f99ca.js} +5 -0
- package/dist/esm/{cssMode-edce5a89.js → cssMode-864388a5.js} +7 -2
- package/dist/esm/{html-00b724af.js → html-6c5b1b7a.js} +7 -2
- package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-8edd9000.js} +7 -2
- package/dist/esm/{index-3732acb8.js → index-06f96b57.js} +5 -0
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-bdd52d83.js → javascript-2f8e7e0f.js} +8 -3
- package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-7cd18ebd.js} +7 -2
- package/dist/esm/loader.js +7 -2
- package/dist/esm/{tsMode-0bd06180.js → tsMode-23e39ee2.js} +7 -2
- package/dist/esm/{typescript-dfdad07a.js → typescript-c122e586.js} +7 -2
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
- package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
- package/dist/types/components.d.ts +3 -3
- package/dist/types/utils/arcade-executor.d.ts +12 -4
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
- package/dist/types/utils/profile/editor-profile.d.ts +10 -5
- package/dist/types/utils/profile/types.d.ts +3 -3
- package/dist/types/utils/profile/utils.d.ts +4 -0
- package/package.json +10 -10
- package/dist/arcgis-coding-components/p-86772125.js +0 -1
- 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##### Esempio\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": "**[Versione iniziale 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**Valore restituito**: [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##### Esempio\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": "**[Versione iniziale 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**Valore restituito**: [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": "logical_functions",
|
|
150
206
|
"title": "Funzione logiche",
|
|
@@ -524,6 +580,57 @@
|
|
|
524
580
|
"max": 1
|
|
525
581
|
}
|
|
526
582
|
},
|
|
583
|
+
[
|
|
584
|
+
{
|
|
585
|
+
"type": "function",
|
|
586
|
+
"name": "defaultvalue",
|
|
587
|
+
"bundle": "core",
|
|
588
|
+
"sinceVersion": "1.26",
|
|
589
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
590
|
+
"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.",
|
|
591
|
+
"examples": "\n##### Esempi\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",
|
|
592
|
+
"completion": {
|
|
593
|
+
"label": "DefaultValue",
|
|
594
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
595
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
596
|
+
"insertTextMode": 2,
|
|
597
|
+
"insertTextFormat": 2,
|
|
598
|
+
"kind": 3,
|
|
599
|
+
"documentation": {
|
|
600
|
+
"kind": "markdown",
|
|
601
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [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`."
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"parametersInfo": {
|
|
605
|
+
"min": 3,
|
|
606
|
+
"max": 3
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"type": "function",
|
|
611
|
+
"name": "defaultvalue",
|
|
612
|
+
"bundle": "core",
|
|
613
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
614
|
+
"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.",
|
|
615
|
+
"examples": "\n##### Esempi\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",
|
|
616
|
+
"completion": {
|
|
617
|
+
"label": "DefaultValue",
|
|
618
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
619
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
620
|
+
"insertTextMode": 2,
|
|
621
|
+
"insertTextFormat": 2,
|
|
622
|
+
"kind": 3,
|
|
623
|
+
"documentation": {
|
|
624
|
+
"kind": "markdown",
|
|
625
|
+
"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**Valore restituito**: [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`."
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"parametersInfo": {
|
|
629
|
+
"min": 3,
|
|
630
|
+
"max": 3
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
],
|
|
527
634
|
[
|
|
528
635
|
{
|
|
529
636
|
"type": "function",
|
|
@@ -675,6 +782,58 @@
|
|
|
675
782
|
"max": 1
|
|
676
783
|
}
|
|
677
784
|
},
|
|
785
|
+
[
|
|
786
|
+
{
|
|
787
|
+
"type": "function",
|
|
788
|
+
"name": "hasvalue",
|
|
789
|
+
"bundle": "core",
|
|
790
|
+
"sinceVersion": "1.26",
|
|
791
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
792
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
793
|
+
"examples": "\n##### Esempi\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",
|
|
794
|
+
"completion": {
|
|
795
|
+
"label": "HasValue",
|
|
796
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
797
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
798
|
+
"insertTextMode": 2,
|
|
799
|
+
"insertTextFormat": 2,
|
|
800
|
+
"kind": 3,
|
|
801
|
+
"documentation": {
|
|
802
|
+
"kind": "markdown",
|
|
803
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"parametersInfo": {
|
|
807
|
+
"min": 2,
|
|
808
|
+
"max": 2
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"type": "function",
|
|
813
|
+
"name": "hasvalue",
|
|
814
|
+
"bundle": "core",
|
|
815
|
+
"sinceVersion": "1.26",
|
|
816
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
817
|
+
"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.",
|
|
818
|
+
"examples": "\n##### Esempi\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",
|
|
819
|
+
"completion": {
|
|
820
|
+
"label": "HasValue",
|
|
821
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
822
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
823
|
+
"insertTextMode": 2,
|
|
824
|
+
"insertTextFormat": 2,
|
|
825
|
+
"kind": 3,
|
|
826
|
+
"documentation": {
|
|
827
|
+
"kind": "markdown",
|
|
828
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"parametersInfo": {
|
|
832
|
+
"min": 2,
|
|
833
|
+
"max": 2
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
],
|
|
678
837
|
{
|
|
679
838
|
"type": "function",
|
|
680
839
|
"name": "includes",
|
|
@@ -2867,7 +3026,7 @@
|
|
|
2867
3026
|
"sinceVersion": "1.12",
|
|
2868
3027
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
2869
3028
|
"description": "La somma delle distanze percorse tra le osservazioni dalla prima all'osservazione attuale più il valore specificato.",
|
|
2870
|
-
"examples": "\n##### Esempi\n\nIl proprio rilevamento ha sei feature, come visto sopra. L'espressione restituisce un valore per ciascuna feature nel rilevamento. Nel primo esempio, vengono esaminati i risultati se valutati alla feature 2 (p2) con un valore dell'indice di 2. Il calcolo è '30 + 80 + 60 = 170'.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nIl proprio rilevamento ha sei feature, come visto sopra. L'espressione restituisce un valore per ciascuna feature nel rilevamento. Nell'esempio seguente, vengono esaminati i risultati valutati alla feature 4 (p4) con un valore dell'indice di 4. Il calcolo è '25 + 35 + 30 + 80 + 60 = 230'.\n\n```arcade\nTrackDistanceAt(
|
|
3029
|
+
"examples": "\n##### Esempi\n\nIl proprio rilevamento ha sei feature, come visto sopra. L'espressione restituisce un valore per ciascuna feature nel rilevamento. Nel primo esempio, vengono esaminati i risultati se valutati alla feature 2 (p2) con un valore dell'indice di 2. Il calcolo è '30 + 80 + 60 = 170'.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nIl proprio rilevamento ha sei feature, come visto sopra. L'espressione restituisce un valore per ciascuna feature nel rilevamento. Nell'esempio seguente, vengono esaminati i risultati valutati alla feature 4 (p4) con un valore dell'indice di 4. Il calcolo è '25 + 35 + 30 + 80 + 60 = 230'.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
2871
3030
|
"completion": {
|
|
2872
3031
|
"label": "TrackDistanceAt",
|
|
2873
3032
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -3116,6 +3275,57 @@
|
|
|
3116
3275
|
"id": "dictionary_functions",
|
|
3117
3276
|
"title": "Funzioni dizionario",
|
|
3118
3277
|
"items": [
|
|
3278
|
+
[
|
|
3279
|
+
{
|
|
3280
|
+
"type": "function",
|
|
3281
|
+
"name": "defaultvalue",
|
|
3282
|
+
"bundle": "core",
|
|
3283
|
+
"sinceVersion": "1.26",
|
|
3284
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
3285
|
+
"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.",
|
|
3286
|
+
"examples": "\n##### Esempi\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",
|
|
3287
|
+
"completion": {
|
|
3288
|
+
"label": "DefaultValue",
|
|
3289
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3290
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3291
|
+
"insertTextMode": 2,
|
|
3292
|
+
"insertTextFormat": 2,
|
|
3293
|
+
"kind": 3,
|
|
3294
|
+
"documentation": {
|
|
3295
|
+
"kind": "markdown",
|
|
3296
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [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`."
|
|
3297
|
+
}
|
|
3298
|
+
},
|
|
3299
|
+
"parametersInfo": {
|
|
3300
|
+
"min": 3,
|
|
3301
|
+
"max": 3
|
|
3302
|
+
}
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"type": "function",
|
|
3306
|
+
"name": "defaultvalue",
|
|
3307
|
+
"bundle": "core",
|
|
3308
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
3309
|
+
"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.",
|
|
3310
|
+
"examples": "\n##### Esempi\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",
|
|
3311
|
+
"completion": {
|
|
3312
|
+
"label": "DefaultValue",
|
|
3313
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3314
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3315
|
+
"insertTextMode": 2,
|
|
3316
|
+
"insertTextFormat": 2,
|
|
3317
|
+
"kind": 3,
|
|
3318
|
+
"documentation": {
|
|
3319
|
+
"kind": "markdown",
|
|
3320
|
+
"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**Valore restituito**: [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`."
|
|
3321
|
+
}
|
|
3322
|
+
},
|
|
3323
|
+
"parametersInfo": {
|
|
3324
|
+
"min": 3,
|
|
3325
|
+
"max": 3
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
],
|
|
3119
3329
|
[
|
|
3120
3330
|
{
|
|
3121
3331
|
"type": "function",
|
|
@@ -3291,31 +3501,58 @@
|
|
|
3291
3501
|
"max": 2
|
|
3292
3502
|
}
|
|
3293
3503
|
},
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
"
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
"
|
|
3311
|
-
|
|
3504
|
+
[
|
|
3505
|
+
{
|
|
3506
|
+
"type": "function",
|
|
3507
|
+
"name": "hasvalue",
|
|
3508
|
+
"bundle": "core",
|
|
3509
|
+
"sinceVersion": "1.20",
|
|
3510
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
3511
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
3512
|
+
"examples": "\n##### Esempi\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",
|
|
3513
|
+
"completion": {
|
|
3514
|
+
"label": "HasValue",
|
|
3515
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
3516
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
3517
|
+
"insertTextMode": 2,
|
|
3518
|
+
"insertTextFormat": 2,
|
|
3519
|
+
"kind": 3,
|
|
3520
|
+
"documentation": {
|
|
3521
|
+
"kind": "markdown",
|
|
3522
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3523
|
+
}
|
|
3524
|
+
},
|
|
3525
|
+
"parametersInfo": {
|
|
3526
|
+
"min": 2,
|
|
3527
|
+
"max": 2
|
|
3312
3528
|
}
|
|
3313
3529
|
},
|
|
3314
|
-
|
|
3315
|
-
"
|
|
3316
|
-
"
|
|
3530
|
+
{
|
|
3531
|
+
"type": "function",
|
|
3532
|
+
"name": "hasvalue",
|
|
3533
|
+
"bundle": "core",
|
|
3534
|
+
"sinceVersion": "1.26",
|
|
3535
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
3536
|
+
"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.",
|
|
3537
|
+
"examples": "\n##### Esempi\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",
|
|
3538
|
+
"completion": {
|
|
3539
|
+
"label": "HasValue",
|
|
3540
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
3541
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
3542
|
+
"insertTextMode": 2,
|
|
3543
|
+
"insertTextFormat": 2,
|
|
3544
|
+
"kind": 3,
|
|
3545
|
+
"documentation": {
|
|
3546
|
+
"kind": "markdown",
|
|
3547
|
+
"value": "**[Versione iniziale 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)<[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**Valore restituito**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3548
|
+
}
|
|
3549
|
+
},
|
|
3550
|
+
"parametersInfo": {
|
|
3551
|
+
"min": 2,
|
|
3552
|
+
"max": 2
|
|
3553
|
+
}
|
|
3317
3554
|
}
|
|
3318
|
-
|
|
3555
|
+
]
|
|
3319
3556
|
]
|
|
3320
3557
|
},
|
|
3321
3558
|
{
|
|
@@ -3602,6 +3839,31 @@
|
|
|
3602
3839
|
"max": 1
|
|
3603
3840
|
}
|
|
3604
3841
|
},
|
|
3842
|
+
{
|
|
3843
|
+
"type": "function",
|
|
3844
|
+
"name": "hasvalue",
|
|
3845
|
+
"bundle": "core",
|
|
3846
|
+
"sinceVersion": "1.20",
|
|
3847
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
3848
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
3849
|
+
"examples": "\n##### Esempio\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",
|
|
3850
|
+
"completion": {
|
|
3851
|
+
"label": "HasValue",
|
|
3852
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
3853
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
3854
|
+
"insertTextMode": 2,
|
|
3855
|
+
"insertTextFormat": 2,
|
|
3856
|
+
"kind": 3,
|
|
3857
|
+
"documentation": {
|
|
3858
|
+
"kind": "markdown",
|
|
3859
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3860
|
+
}
|
|
3861
|
+
},
|
|
3862
|
+
"parametersInfo": {
|
|
3863
|
+
"min": 2,
|
|
3864
|
+
"max": 2
|
|
3865
|
+
}
|
|
3866
|
+
},
|
|
3605
3867
|
{
|
|
3606
3868
|
"type": "function",
|
|
3607
3869
|
"name": "schema",
|
|
@@ -4466,7 +4728,7 @@
|
|
|
4466
4728
|
"sinceVersion": "1.14",
|
|
4467
4729
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
4468
4730
|
"description": "Restituisce la lunghezza planare (es. Cartesiana) del FeatureSet di input considerando le informazioni di altezza o di Z. La geometria fornita per questa funzione deve essere assegnata ad un sistema di coordinate proiettato. Se il riferimento spaziale non fornisce un valore per le unità Z, allora il risultato sarà restituito in metri. Considerare che non tutti i client (come la serie 3.x di ArcGIS API for JavaScript) supportano la richiesta di valori Z anche quando i dati contengono informazioni Z.\n\n_Le geometrie feature nei profili di visualizzazione ed etichettatura sono generalizzate in base alla risoluzione della scala di visualizzazione per migliorare le prestazioni di disegno. L'uso di una geometria della feature (cioè `$feature`) come input per una funzione geometrica in questi contesti, quindi, restituirà risultati differenti a ogni livello di scala. Altri profili, ad esempio pop-up, forniscono la geometria a risoluzione piena._",
|
|
4469
|
-
"examples": "\n##### Esempio\n\nRestituisce la lunghezza 3D delle caratteristiche del layer in metri\n\n```arcade\
|
|
4731
|
+
"examples": "\n##### Esempio\n\nRestituisce la lunghezza 3D delle caratteristiche del layer in metri\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
4470
4732
|
"completion": {
|
|
4471
4733
|
"label": "Length3D",
|
|
4472
4734
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -5241,6 +5503,57 @@
|
|
|
5241
5503
|
"max": 2
|
|
5242
5504
|
}
|
|
5243
5505
|
},
|
|
5506
|
+
[
|
|
5507
|
+
{
|
|
5508
|
+
"type": "function",
|
|
5509
|
+
"name": "defaultvalue",
|
|
5510
|
+
"bundle": "core",
|
|
5511
|
+
"sinceVersion": "1.26",
|
|
5512
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
5513
|
+
"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.",
|
|
5514
|
+
"examples": "\n##### Esempi\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",
|
|
5515
|
+
"completion": {
|
|
5516
|
+
"label": "DefaultValue",
|
|
5517
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
5518
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
5519
|
+
"insertTextMode": 2,
|
|
5520
|
+
"insertTextFormat": 2,
|
|
5521
|
+
"kind": 3,
|
|
5522
|
+
"documentation": {
|
|
5523
|
+
"kind": "markdown",
|
|
5524
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [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`."
|
|
5525
|
+
}
|
|
5526
|
+
},
|
|
5527
|
+
"parametersInfo": {
|
|
5528
|
+
"min": 3,
|
|
5529
|
+
"max": 3
|
|
5530
|
+
}
|
|
5531
|
+
},
|
|
5532
|
+
{
|
|
5533
|
+
"type": "function",
|
|
5534
|
+
"name": "defaultvalue",
|
|
5535
|
+
"bundle": "core",
|
|
5536
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
5537
|
+
"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.",
|
|
5538
|
+
"examples": "\n##### Esempi\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",
|
|
5539
|
+
"completion": {
|
|
5540
|
+
"label": "DefaultValue",
|
|
5541
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
5542
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
5543
|
+
"insertTextMode": 2,
|
|
5544
|
+
"insertTextFormat": 2,
|
|
5545
|
+
"kind": 3,
|
|
5546
|
+
"documentation": {
|
|
5547
|
+
"kind": "markdown",
|
|
5548
|
+
"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)<[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**Valore restituito**: [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`."
|
|
5549
|
+
}
|
|
5550
|
+
},
|
|
5551
|
+
"parametersInfo": {
|
|
5552
|
+
"min": 3,
|
|
5553
|
+
"max": 3
|
|
5554
|
+
}
|
|
5555
|
+
}
|
|
5556
|
+
],
|
|
5244
5557
|
{
|
|
5245
5558
|
"type": "function",
|
|
5246
5559
|
"name": "densify",
|
|
@@ -5391,6 +5704,31 @@
|
|
|
5391
5704
|
"max": 3
|
|
5392
5705
|
}
|
|
5393
5706
|
},
|
|
5707
|
+
{
|
|
5708
|
+
"type": "function",
|
|
5709
|
+
"name": "distancetocoordinate",
|
|
5710
|
+
"bundle": "geometry",
|
|
5711
|
+
"sinceVersion": "1.26",
|
|
5712
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
5713
|
+
"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._",
|
|
5714
|
+
"examples": "\n##### Esempio\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",
|
|
5715
|
+
"completion": {
|
|
5716
|
+
"label": "DistanceToCoordinate",
|
|
5717
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
5718
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
5719
|
+
"insertTextMode": 2,
|
|
5720
|
+
"insertTextFormat": 2,
|
|
5721
|
+
"kind": 3,
|
|
5722
|
+
"documentation": {
|
|
5723
|
+
"kind": "markdown",
|
|
5724
|
+
"value": "**[Versione iniziale 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)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [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**Valore restituito**: [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`."
|
|
5725
|
+
}
|
|
5726
|
+
},
|
|
5727
|
+
"parametersInfo": {
|
|
5728
|
+
"min": 2,
|
|
5729
|
+
"max": 2
|
|
5730
|
+
}
|
|
5731
|
+
},
|
|
5394
5732
|
{
|
|
5395
5733
|
"type": "function",
|
|
5396
5734
|
"name": "envelopeintersects",
|
|
@@ -5564,6 +5902,58 @@
|
|
|
5564
5902
|
"max": 1
|
|
5565
5903
|
}
|
|
5566
5904
|
},
|
|
5905
|
+
[
|
|
5906
|
+
{
|
|
5907
|
+
"type": "function",
|
|
5908
|
+
"name": "hasvalue",
|
|
5909
|
+
"bundle": "core",
|
|
5910
|
+
"sinceVersion": "1.26",
|
|
5911
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
5912
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
5913
|
+
"examples": "\n##### Esempi\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",
|
|
5914
|
+
"completion": {
|
|
5915
|
+
"label": "HasValue",
|
|
5916
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
5917
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
5918
|
+
"insertTextMode": 2,
|
|
5919
|
+
"insertTextFormat": 2,
|
|
5920
|
+
"kind": 3,
|
|
5921
|
+
"documentation": {
|
|
5922
|
+
"kind": "markdown",
|
|
5923
|
+
"value": "**[Versione iniziale 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**Valore restituito**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5924
|
+
}
|
|
5925
|
+
},
|
|
5926
|
+
"parametersInfo": {
|
|
5927
|
+
"min": 2,
|
|
5928
|
+
"max": 2
|
|
5929
|
+
}
|
|
5930
|
+
},
|
|
5931
|
+
{
|
|
5932
|
+
"type": "function",
|
|
5933
|
+
"name": "hasvalue",
|
|
5934
|
+
"bundle": "core",
|
|
5935
|
+
"sinceVersion": "1.26",
|
|
5936
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
5937
|
+
"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.",
|
|
5938
|
+
"examples": "\n##### Esempi\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",
|
|
5939
|
+
"completion": {
|
|
5940
|
+
"label": "HasValue",
|
|
5941
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
5942
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
5943
|
+
"insertTextMode": 2,
|
|
5944
|
+
"insertTextFormat": 2,
|
|
5945
|
+
"kind": 3,
|
|
5946
|
+
"documentation": {
|
|
5947
|
+
"kind": "markdown",
|
|
5948
|
+
"value": "**[Versione iniziale 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)<[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**Valore restituito**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5949
|
+
}
|
|
5950
|
+
},
|
|
5951
|
+
"parametersInfo": {
|
|
5952
|
+
"min": 2,
|
|
5953
|
+
"max": 2
|
|
5954
|
+
}
|
|
5955
|
+
}
|
|
5956
|
+
],
|
|
5567
5957
|
{
|
|
5568
5958
|
"type": "function",
|
|
5569
5959
|
"name": "intersection",
|
|
@@ -5739,6 +6129,31 @@
|
|
|
5739
6129
|
"max": 2
|
|
5740
6130
|
}
|
|
5741
6131
|
},
|
|
6132
|
+
{
|
|
6133
|
+
"type": "function",
|
|
6134
|
+
"name": "measuretocoordinate",
|
|
6135
|
+
"bundle": "geometry",
|
|
6136
|
+
"sinceVersion": "1.26",
|
|
6137
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
6138
|
+
"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._",
|
|
6139
|
+
"examples": "\n##### Esempio\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",
|
|
6140
|
+
"completion": {
|
|
6141
|
+
"label": "MeasureToCoordinate",
|
|
6142
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
6143
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
6144
|
+
"insertTextMode": 2,
|
|
6145
|
+
"insertTextFormat": 2,
|
|
6146
|
+
"kind": 3,
|
|
6147
|
+
"documentation": {
|
|
6148
|
+
"kind": "markdown",
|
|
6149
|
+
"value": "**[Versione iniziale 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)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [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**Valore restituito**: [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`."
|
|
6150
|
+
}
|
|
6151
|
+
},
|
|
6152
|
+
"parametersInfo": {
|
|
6153
|
+
"min": 2,
|
|
6154
|
+
"max": 2
|
|
6155
|
+
}
|
|
6156
|
+
},
|
|
5742
6157
|
{
|
|
5743
6158
|
"type": "function",
|
|
5744
6159
|
"name": "multiparttosinglepart",
|
|
@@ -5855,7 +6270,7 @@
|
|
|
5855
6270
|
"kind": 3,
|
|
5856
6271
|
"documentation": {
|
|
5857
6272
|
"kind": "markdown",
|
|
5858
|
-
"value": "**[Versione iniziale 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRestituisce la coordinata più vicina (non il vertice) della geometria di input al punto di ricerca. Il dizionario restituito include anche la distanza planare più breve dal punto di ricerca alla coordinata più vicina. Se il punto di ricerca interseca la geometria di input, il punto di ricerca viene restituito come risultato con una distanza pari a zero.\n\n_Geometrie feature nei profili di visualizzazione ed etichettatura e generalizzate in base alla risoluzione della scala di visualizzazione per migliorare le prestazioni di disegno. L'uso di una geometria della feature (cioè `$feature`) come input per una funzione geometrica in questi contesti, quindi, restituirà risultati differenti a ogni livello di scala. Altri profili, ad esempio pop-up, forniscono la geometria a risoluzione piena._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - La geometria da cui ricavare la coordinata più vicina.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Il punto da cui trovare la coordinata più vicina della `inputGeometry`.\n\n**Valore restituito**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nRestituisce un dizionario con le seguenti proprietà.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - La coordinata più vicina dalla `inputGeometry` al `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - La distanza planare dalla coordinata più vicina al `searchPoint`. Questo rappresenta la distanza più breve tra la `inputGeometry` e il `searchPoint
|
|
6273
|
+
"value": "**[Versione iniziale 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRestituisce la coordinata più vicina (non il vertice) della geometria di input al punto di ricerca. Il dizionario restituito include anche la distanza planare più breve dal punto di ricerca alla coordinata più vicina. Se il punto di ricerca interseca la geometria di input, il punto di ricerca viene restituito come risultato con una distanza pari a zero.\n\n_Geometrie feature nei profili di visualizzazione ed etichettatura e generalizzate in base alla risoluzione della scala di visualizzazione per migliorare le prestazioni di disegno. L'uso di una geometria della feature (cioè `$feature`) come input per una funzione geometrica in questi contesti, quindi, restituirà risultati differenti a ogni livello di scala. Altri profili, ad esempio pop-up, forniscono la geometria a risoluzione piena._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - La geometria da cui ricavare la coordinata più vicina.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Il punto da cui trovare la coordinata più vicina della `inputGeometry`.\n\n**Valore restituito**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nRestituisce un dizionario con le seguenti proprietà.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - La coordinata più vicina dalla `inputGeometry` al `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - La distanza planare dalla coordinata più vicina al `searchPoint`. Questo rappresenta la distanza più breve tra la `inputGeometry` e il `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
5859
6274
|
}
|
|
5860
6275
|
},
|
|
5861
6276
|
"parametersInfo": {
|
|
@@ -5880,7 +6295,7 @@
|
|
|
5880
6295
|
"kind": 3,
|
|
5881
6296
|
"documentation": {
|
|
5882
6297
|
"kind": "markdown",
|
|
5883
|
-
"value": "**[Versione iniziale 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRestituisce il vertice più vicino della geometria di input al punto di ricerca. Il dizionario restituito include la distanza planare dal punto di ricerca al vertice più vicino.\n\n_Geometrie feature nei profili di visualizzazione ed etichettatura e generalizzate in base alla risoluzione della scala di visualizzazione per migliorare le prestazioni di disegno. L'uso di una geometria della feature (cioè `$feature`) come input per una funzione geometrica in questi contesti, quindi, restituirà risultati differenti a ogni livello di scala. Altri profili, ad esempio pop-up, forniscono la geometria a risoluzione piena._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - La geometria da cui ricavare il vertice più vicino.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Il punto dal quale trovare il vertice più vicino della `inputGeometry`.\n\n**Valore restituito**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nRestituisce un dizionario con le seguenti proprietà.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - La posizione del punto che rappresenta il vertice più vicino dalla `inputGeometry` al `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - La distanza planare dal vertice più vicino della geometria di input al `searchPoint
|
|
6298
|
+
"value": "**[Versione iniziale 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRestituisce il vertice più vicino della geometria di input al punto di ricerca. Il dizionario restituito include la distanza planare dal punto di ricerca al vertice più vicino.\n\n_Geometrie feature nei profili di visualizzazione ed etichettatura e generalizzate in base alla risoluzione della scala di visualizzazione per migliorare le prestazioni di disegno. L'uso di una geometria della feature (cioè `$feature`) come input per una funzione geometrica in questi contesti, quindi, restituirà risultati differenti a ogni livello di scala. Altri profili, ad esempio pop-up, forniscono la geometria a risoluzione piena._\n\n**Parametri**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - La geometria da cui ricavare il vertice più vicino.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Il punto dal quale trovare il vertice più vicino della `inputGeometry`.\n\n**Valore restituito**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nRestituisce un dizionario con le seguenti proprietà.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - La posizione del punto che rappresenta il vertice più vicino dalla `inputGeometry` al `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - La distanza planare dal vertice più vicino della geometria di input al `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
5884
6299
|
}
|
|
5885
6300
|
},
|
|
5886
6301
|
"parametersInfo": {
|
|
@@ -5988,6 +6403,31 @@
|
|
|
5988
6403
|
}
|
|
5989
6404
|
}
|
|
5990
6405
|
],
|
|
6406
|
+
{
|
|
6407
|
+
"type": "function",
|
|
6408
|
+
"name": "pointtocoordinate",
|
|
6409
|
+
"bundle": "geometry",
|
|
6410
|
+
"sinceVersion": "1.26",
|
|
6411
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
6412
|
+
"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._",
|
|
6413
|
+
"examples": "\n##### Esempio\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",
|
|
6414
|
+
"completion": {
|
|
6415
|
+
"label": "PointToCoordinate",
|
|
6416
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
6417
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
6418
|
+
"insertTextMode": 2,
|
|
6419
|
+
"insertTextFormat": 2,
|
|
6420
|
+
"kind": 3,
|
|
6421
|
+
"documentation": {
|
|
6422
|
+
"kind": "markdown",
|
|
6423
|
+
"value": "**[Versione iniziale 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)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [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**Valore restituito**: [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`."
|
|
6424
|
+
}
|
|
6425
|
+
},
|
|
6426
|
+
"parametersInfo": {
|
|
6427
|
+
"min": 2,
|
|
6428
|
+
"max": 2
|
|
6429
|
+
}
|
|
6430
|
+
},
|
|
5991
6431
|
[
|
|
5992
6432
|
{
|
|
5993
6433
|
"type": "function",
|