@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##### Пример\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": "**[Начиная с версии 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nЖ_Returns a knowledge graph from a portal item________________________Я.\n\n**Параметры**\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**Возвращаемое значение**: [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##### Пример\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": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [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": "Логические функции",
|
|
@@ -2496,7 +2552,7 @@
|
|
|
2496
2552
|
"sinceVersion": "1.14",
|
|
2497
2553
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
2498
2554
|
"description": "Возвращает плоскую (Декартову) длину входного FeatureSet с учетом информации о высоте или Z. Геометрии, предоставленной для этой функции, должна быть назначена система координат проекции. Если пространственная привязка не предоставляет значение для единиц Z, то результат будет возвращен в метрах. Имейте в виду, что не все клиенты (например, ArcGIS API for JavaScript серии 3.x) поддерживают запрос значений Z, даже если данные содержат информацию Z.\n\n_Геометрия объектов в профилях визуализации и надписывания генерализуется в соответствии с уровнем масштаба вида для улучшения производительности отображения. Следовательно, использование геометрии объектов (т.е. `$feature`) в качестве входных данных для любой геометрической функции в этом контексте будет давать разные результаты на каждом уровне масштаба. Другие профили, такие как всплывающие окна, обеспечивают геометрию с полным разрешением._",
|
|
2499
|
-
"examples": "\n##### Пример\n\nВозвращает 3D длину пространственных объектов слоя в метрах\n\n```arcade\
|
|
2555
|
+
"examples": "\n##### Пример\n\nВозвращает 3D длину пространственных объектов слоя в метрах\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
2500
2556
|
"completion": {
|
|
2501
2557
|
"label": "Length3D",
|
|
2502
2558
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -3271,6 +3327,57 @@
|
|
|
3271
3327
|
"max": 2
|
|
3272
3328
|
}
|
|
3273
3329
|
},
|
|
3330
|
+
[
|
|
3331
|
+
{
|
|
3332
|
+
"type": "function",
|
|
3333
|
+
"name": "defaultvalue",
|
|
3334
|
+
"bundle": "core",
|
|
3335
|
+
"sinceVersion": "1.26",
|
|
3336
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
3337
|
+
"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.",
|
|
3338
|
+
"examples": "\n##### Примеры\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",
|
|
3339
|
+
"completion": {
|
|
3340
|
+
"label": "DefaultValue",
|
|
3341
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3342
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3343
|
+
"insertTextMode": 2,
|
|
3344
|
+
"insertTextFormat": 2,
|
|
3345
|
+
"kind": 3,
|
|
3346
|
+
"documentation": {
|
|
3347
|
+
"kind": "markdown",
|
|
3348
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
3349
|
+
}
|
|
3350
|
+
},
|
|
3351
|
+
"parametersInfo": {
|
|
3352
|
+
"min": 3,
|
|
3353
|
+
"max": 3
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"type": "function",
|
|
3358
|
+
"name": "defaultvalue",
|
|
3359
|
+
"bundle": "core",
|
|
3360
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
3361
|
+
"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.",
|
|
3362
|
+
"examples": "\n##### Примеры\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",
|
|
3363
|
+
"completion": {
|
|
3364
|
+
"label": "DefaultValue",
|
|
3365
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3366
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3367
|
+
"insertTextMode": 2,
|
|
3368
|
+
"insertTextFormat": 2,
|
|
3369
|
+
"kind": 3,
|
|
3370
|
+
"documentation": {
|
|
3371
|
+
"kind": "markdown",
|
|
3372
|
+
"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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
3373
|
+
}
|
|
3374
|
+
},
|
|
3375
|
+
"parametersInfo": {
|
|
3376
|
+
"min": 3,
|
|
3377
|
+
"max": 3
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3380
|
+
],
|
|
3274
3381
|
{
|
|
3275
3382
|
"type": "function",
|
|
3276
3383
|
"name": "densify",
|
|
@@ -3421,6 +3528,31 @@
|
|
|
3421
3528
|
"max": 3
|
|
3422
3529
|
}
|
|
3423
3530
|
},
|
|
3531
|
+
{
|
|
3532
|
+
"type": "function",
|
|
3533
|
+
"name": "distancetocoordinate",
|
|
3534
|
+
"bundle": "geometry",
|
|
3535
|
+
"sinceVersion": "1.26",
|
|
3536
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
3537
|
+
"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._",
|
|
3538
|
+
"examples": "\n##### Пример\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",
|
|
3539
|
+
"completion": {
|
|
3540
|
+
"label": "DistanceToCoordinate",
|
|
3541
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
3542
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
3543
|
+
"insertTextMode": 2,
|
|
3544
|
+
"insertTextFormat": 2,
|
|
3545
|
+
"kind": 3,
|
|
3546
|
+
"documentation": {
|
|
3547
|
+
"kind": "markdown",
|
|
3548
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
3549
|
+
}
|
|
3550
|
+
},
|
|
3551
|
+
"parametersInfo": {
|
|
3552
|
+
"min": 2,
|
|
3553
|
+
"max": 2
|
|
3554
|
+
}
|
|
3555
|
+
},
|
|
3424
3556
|
{
|
|
3425
3557
|
"type": "function",
|
|
3426
3558
|
"name": "envelopeintersects",
|
|
@@ -3594,6 +3726,58 @@
|
|
|
3594
3726
|
"max": 1
|
|
3595
3727
|
}
|
|
3596
3728
|
},
|
|
3729
|
+
[
|
|
3730
|
+
{
|
|
3731
|
+
"type": "function",
|
|
3732
|
+
"name": "hasvalue",
|
|
3733
|
+
"bundle": "core",
|
|
3734
|
+
"sinceVersion": "1.26",
|
|
3735
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
3736
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
3737
|
+
"examples": "\n##### Примеры\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",
|
|
3738
|
+
"completion": {
|
|
3739
|
+
"label": "HasValue",
|
|
3740
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
3741
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
3742
|
+
"insertTextMode": 2,
|
|
3743
|
+
"insertTextFormat": 2,
|
|
3744
|
+
"kind": 3,
|
|
3745
|
+
"documentation": {
|
|
3746
|
+
"kind": "markdown",
|
|
3747
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3748
|
+
}
|
|
3749
|
+
},
|
|
3750
|
+
"parametersInfo": {
|
|
3751
|
+
"min": 2,
|
|
3752
|
+
"max": 2
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
"type": "function",
|
|
3757
|
+
"name": "hasvalue",
|
|
3758
|
+
"bundle": "core",
|
|
3759
|
+
"sinceVersion": "1.26",
|
|
3760
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
3761
|
+
"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.",
|
|
3762
|
+
"examples": "\n##### Примеры\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",
|
|
3763
|
+
"completion": {
|
|
3764
|
+
"label": "HasValue",
|
|
3765
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
3766
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
3767
|
+
"insertTextMode": 2,
|
|
3768
|
+
"insertTextFormat": 2,
|
|
3769
|
+
"kind": 3,
|
|
3770
|
+
"documentation": {
|
|
3771
|
+
"kind": "markdown",
|
|
3772
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3773
|
+
}
|
|
3774
|
+
},
|
|
3775
|
+
"parametersInfo": {
|
|
3776
|
+
"min": 2,
|
|
3777
|
+
"max": 2
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
],
|
|
3597
3781
|
{
|
|
3598
3782
|
"type": "function",
|
|
3599
3783
|
"name": "intersection",
|
|
@@ -3769,6 +3953,31 @@
|
|
|
3769
3953
|
"max": 2
|
|
3770
3954
|
}
|
|
3771
3955
|
},
|
|
3956
|
+
{
|
|
3957
|
+
"type": "function",
|
|
3958
|
+
"name": "measuretocoordinate",
|
|
3959
|
+
"bundle": "geometry",
|
|
3960
|
+
"sinceVersion": "1.26",
|
|
3961
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
3962
|
+
"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._",
|
|
3963
|
+
"examples": "\n##### Пример\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",
|
|
3964
|
+
"completion": {
|
|
3965
|
+
"label": "MeasureToCoordinate",
|
|
3966
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
3967
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
3968
|
+
"insertTextMode": 2,
|
|
3969
|
+
"insertTextFormat": 2,
|
|
3970
|
+
"kind": 3,
|
|
3971
|
+
"documentation": {
|
|
3972
|
+
"kind": "markdown",
|
|
3973
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
3974
|
+
}
|
|
3975
|
+
},
|
|
3976
|
+
"parametersInfo": {
|
|
3977
|
+
"min": 2,
|
|
3978
|
+
"max": 2
|
|
3979
|
+
}
|
|
3980
|
+
},
|
|
3772
3981
|
{
|
|
3773
3982
|
"type": "function",
|
|
3774
3983
|
"name": "multiparttosinglepart",
|
|
@@ -3885,7 +4094,7 @@
|
|
|
3885
4094
|
"kind": 3,
|
|
3886
4095
|
"documentation": {
|
|
3887
4096
|
"kind": "markdown",
|
|
3888
|
-
"value": "**[Начиная с версии 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает ближайшую координату (не вершину) входной геометрии к точке поиска. Возвращенный словарь также включает кратчайшее плоскостное расстояние от точки поиска до ближайшей координаты. Если точка поиска пересекает входную геометрию, то в качестве результата возвращается точка поиска с нулевым расстоянием.\n\n_Геометрия объектов в профилях визуализации и надписывания генерализуется в соответствии с уровнем масштаба вида для улучшения производительности отображения. Следовательно, использование геометрии объектов (т.е. `$feature`) в качестве входных данных для любой геометрической функции в этом контексте будет давать разные результаты на каждом уровне масштаба. Другие профили, такие как всплывающие окна, обеспечивают геометрию с полным разрешением._\n\n**Параметры**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Геометрия, из которой нужно получить ближайшую координату.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Точка, из которой нужно найти ближайшую координату \\\"inputGeometry\\\".\n\n**Возвращаемое значение**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nВозвращает словарь со следующими свойствами.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Ближайшая координата от \\\"inputGeometry\\\" до \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Плоскостное расстояние от ближайшей координаты до \\\"searchPoint\\\". Это представляет собой кратчайшее расстояние между \\\"inputGeometry\\\" и \\\"searchPoint\\\"."
|
|
4097
|
+
"value": "**[Начиная с версии 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает ближайшую координату (не вершину) входной геометрии к точке поиска. Возвращенный словарь также включает кратчайшее плоскостное расстояние от точки поиска до ближайшей координаты. Если точка поиска пересекает входную геометрию, то в качестве результата возвращается точка поиска с нулевым расстоянием.\n\n_Геометрия объектов в профилях визуализации и надписывания генерализуется в соответствии с уровнем масштаба вида для улучшения производительности отображения. Следовательно, использование геометрии объектов (т.е. `$feature`) в качестве входных данных для любой геометрической функции в этом контексте будет давать разные результаты на каждом уровне масштаба. Другие профили, такие как всплывающие окна, обеспечивают геометрию с полным разрешением._\n\n**Параметры**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Геометрия, из которой нужно получить ближайшую координату.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Точка, из которой нужно найти ближайшую координату \\\"inputGeometry\\\".\n\n**Возвращаемое значение**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nВозвращает словарь со следующими свойствами.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Ближайшая координата от \\\"inputGeometry\\\" до \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Плоскостное расстояние от ближайшей координаты до \\\"searchPoint\\\". Это представляет собой кратчайшее расстояние между \\\"inputGeometry\\\" и \\\"searchPoint\\\".\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
3889
4098
|
}
|
|
3890
4099
|
},
|
|
3891
4100
|
"parametersInfo": {
|
|
@@ -3910,7 +4119,7 @@
|
|
|
3910
4119
|
"kind": 3,
|
|
3911
4120
|
"documentation": {
|
|
3912
4121
|
"kind": "markdown",
|
|
3913
|
-
"value": "**[Начиная с версии 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает ближайшую вершину входной геометрии к точке поиска. Возвращенный словарь включает плоскостное расстояние от точки поиска до ближайшей вершины.\n\n_Геометрия объектов в профилях визуализации и надписывания генерализуется в соответствии с уровнем масштаба вида для улучшения производительности отображения. Следовательно, использование геометрии объектов (т.е. `$feature`) в качестве входных данных для любой геометрической функции в этом контексте будет давать разные результаты на каждом уровне масштаба. Другие профили, такие как всплывающие окна, обеспечивают геометрию с полным разрешением._\n\n**Параметры**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Геометрия, из которой нужно получить ближайшую вершину.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Точка, из которой нужно найти ближайшую вершину \\\"inputGeometry\\\".\n\n**Возвращаемое значение**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nВозвращает словарь со следующими свойствами.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Местоположение точки, представляющее ближайшую вершину от \\\"inputGeometry\\\" до \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Плоскостное расстояние от ближайшей вершины входной геометрии до \\\"searchPoint\\\"."
|
|
4122
|
+
"value": "**[Начиная с версии 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nВозвращает ближайшую вершину входной геометрии к точке поиска. Возвращенный словарь включает плоскостное расстояние от точки поиска до ближайшей вершины.\n\n_Геометрия объектов в профилях визуализации и надписывания генерализуется в соответствии с уровнем масштаба вида для улучшения производительности отображения. Следовательно, использование геометрии объектов (т.е. `$feature`) в качестве входных данных для любой геометрической функции в этом контексте будет давать разные результаты на каждом уровне масштаба. Другие профили, такие как всплывающие окна, обеспечивают геометрию с полным разрешением._\n\n**Параметры**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Геометрия, из которой нужно получить ближайшую вершину.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Точка, из которой нужно найти ближайшую вершину \\\"inputGeometry\\\".\n\n**Возвращаемое значение**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nВозвращает словарь со следующими свойствами.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Местоположение точки, представляющее ближайшую вершину от \\\"inputGeometry\\\" до \\\"searchPoint\\\".\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Плоскостное расстояние от ближайшей вершины входной геометрии до \\\"searchPoint\\\".\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
3914
4123
|
}
|
|
3915
4124
|
},
|
|
3916
4125
|
"parametersInfo": {
|
|
@@ -4018,6 +4227,31 @@
|
|
|
4018
4227
|
}
|
|
4019
4228
|
}
|
|
4020
4229
|
],
|
|
4230
|
+
{
|
|
4231
|
+
"type": "function",
|
|
4232
|
+
"name": "pointtocoordinate",
|
|
4233
|
+
"bundle": "geometry",
|
|
4234
|
+
"sinceVersion": "1.26",
|
|
4235
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
4236
|
+
"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._",
|
|
4237
|
+
"examples": "\n##### Пример\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",
|
|
4238
|
+
"completion": {
|
|
4239
|
+
"label": "PointToCoordinate",
|
|
4240
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
4241
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
4242
|
+
"insertTextMode": 2,
|
|
4243
|
+
"insertTextFormat": 2,
|
|
4244
|
+
"kind": 3,
|
|
4245
|
+
"documentation": {
|
|
4246
|
+
"kind": "markdown",
|
|
4247
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
4248
|
+
}
|
|
4249
|
+
},
|
|
4250
|
+
"parametersInfo": {
|
|
4251
|
+
"min": 2,
|
|
4252
|
+
"max": 2
|
|
4253
|
+
}
|
|
4254
|
+
},
|
|
4021
4255
|
[
|
|
4022
4256
|
{
|
|
4023
4257
|
"type": "function",
|
|
@@ -5684,6 +5918,57 @@
|
|
|
5684
5918
|
"max": 1
|
|
5685
5919
|
}
|
|
5686
5920
|
},
|
|
5921
|
+
[
|
|
5922
|
+
{
|
|
5923
|
+
"type": "function",
|
|
5924
|
+
"name": "defaultvalue",
|
|
5925
|
+
"bundle": "core",
|
|
5926
|
+
"sinceVersion": "1.26",
|
|
5927
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
5928
|
+
"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.",
|
|
5929
|
+
"examples": "\n##### Примеры\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",
|
|
5930
|
+
"completion": {
|
|
5931
|
+
"label": "DefaultValue",
|
|
5932
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
5933
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
5934
|
+
"insertTextMode": 2,
|
|
5935
|
+
"insertTextFormat": 2,
|
|
5936
|
+
"kind": 3,
|
|
5937
|
+
"documentation": {
|
|
5938
|
+
"kind": "markdown",
|
|
5939
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
5940
|
+
}
|
|
5941
|
+
},
|
|
5942
|
+
"parametersInfo": {
|
|
5943
|
+
"min": 3,
|
|
5944
|
+
"max": 3
|
|
5945
|
+
}
|
|
5946
|
+
},
|
|
5947
|
+
{
|
|
5948
|
+
"type": "function",
|
|
5949
|
+
"name": "defaultvalue",
|
|
5950
|
+
"bundle": "core",
|
|
5951
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
5952
|
+
"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.",
|
|
5953
|
+
"examples": "\n##### Примеры\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",
|
|
5954
|
+
"completion": {
|
|
5955
|
+
"label": "DefaultValue",
|
|
5956
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
5957
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
5958
|
+
"insertTextMode": 2,
|
|
5959
|
+
"insertTextFormat": 2,
|
|
5960
|
+
"kind": 3,
|
|
5961
|
+
"documentation": {
|
|
5962
|
+
"kind": "markdown",
|
|
5963
|
+
"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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
5964
|
+
}
|
|
5965
|
+
},
|
|
5966
|
+
"parametersInfo": {
|
|
5967
|
+
"min": 3,
|
|
5968
|
+
"max": 3
|
|
5969
|
+
}
|
|
5970
|
+
}
|
|
5971
|
+
],
|
|
5687
5972
|
[
|
|
5688
5973
|
{
|
|
5689
5974
|
"type": "function",
|
|
@@ -5835,6 +6120,58 @@
|
|
|
5835
6120
|
"max": 1
|
|
5836
6121
|
}
|
|
5837
6122
|
},
|
|
6123
|
+
[
|
|
6124
|
+
{
|
|
6125
|
+
"type": "function",
|
|
6126
|
+
"name": "hasvalue",
|
|
6127
|
+
"bundle": "core",
|
|
6128
|
+
"sinceVersion": "1.26",
|
|
6129
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
6130
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
6131
|
+
"examples": "\n##### Примеры\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",
|
|
6132
|
+
"completion": {
|
|
6133
|
+
"label": "HasValue",
|
|
6134
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
6135
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
6136
|
+
"insertTextMode": 2,
|
|
6137
|
+
"insertTextFormat": 2,
|
|
6138
|
+
"kind": 3,
|
|
6139
|
+
"documentation": {
|
|
6140
|
+
"kind": "markdown",
|
|
6141
|
+
"value": "**[Начиная с версии 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**Параметры**\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**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
6142
|
+
}
|
|
6143
|
+
},
|
|
6144
|
+
"parametersInfo": {
|
|
6145
|
+
"min": 2,
|
|
6146
|
+
"max": 2
|
|
6147
|
+
}
|
|
6148
|
+
},
|
|
6149
|
+
{
|
|
6150
|
+
"type": "function",
|
|
6151
|
+
"name": "hasvalue",
|
|
6152
|
+
"bundle": "core",
|
|
6153
|
+
"sinceVersion": "1.26",
|
|
6154
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
6155
|
+
"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.",
|
|
6156
|
+
"examples": "\n##### Примеры\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",
|
|
6157
|
+
"completion": {
|
|
6158
|
+
"label": "HasValue",
|
|
6159
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
6160
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
6161
|
+
"insertTextMode": 2,
|
|
6162
|
+
"insertTextFormat": 2,
|
|
6163
|
+
"kind": 3,
|
|
6164
|
+
"documentation": {
|
|
6165
|
+
"kind": "markdown",
|
|
6166
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
6167
|
+
}
|
|
6168
|
+
},
|
|
6169
|
+
"parametersInfo": {
|
|
6170
|
+
"min": 2,
|
|
6171
|
+
"max": 2
|
|
6172
|
+
}
|
|
6173
|
+
}
|
|
6174
|
+
],
|
|
5838
6175
|
{
|
|
5839
6176
|
"type": "function",
|
|
5840
6177
|
"name": "includes",
|
|
@@ -6400,7 +6737,7 @@
|
|
|
6400
6737
|
"sinceVersion": "1.12",
|
|
6401
6738
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
6402
6739
|
"description": "Сумма расстояний, пройденных между наблюдениями от первого до текущего наблюдения, плюс заданное значение.",
|
|
6403
|
-
"examples": "\n##### Примеры\n\nВаш трек содержит шесть объектов, как показано выше. Выражение возвращает значение для каждого объекта в треке. В первом примере мы изучаем результаты при оценке в объекте 2 (p2) со значением индекса, равным 2. Вычисление: `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nВаш трек содержит шесть объектов, как показано выше. Выражение возвращает значение для каждого объекта в треке. В следующем примере мы изучаем результаты при оценке в объекте 4 (p4) со значением индекса, равным 4. Вычисление: `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(
|
|
6740
|
+
"examples": "\n##### Примеры\n\nВаш трек содержит шесть объектов, как показано выше. Выражение возвращает значение для каждого объекта в треке. В первом примере мы изучаем результаты при оценке в объекте 2 (p2) со значением индекса, равным 2. Вычисление: `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nВаш трек содержит шесть объектов, как показано выше. Выражение возвращает значение для каждого объекта в треке. В следующем примере мы изучаем результаты при оценке в объекте 4 (p4) со значением индекса, равным 4. Вычисление: `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
6404
6741
|
"completion": {
|
|
6405
6742
|
"label": "TrackDistanceAt",
|
|
6406
6743
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -7006,6 +7343,31 @@
|
|
|
7006
7343
|
"max": 1
|
|
7007
7344
|
}
|
|
7008
7345
|
},
|
|
7346
|
+
{
|
|
7347
|
+
"type": "function",
|
|
7348
|
+
"name": "hasvalue",
|
|
7349
|
+
"bundle": "core",
|
|
7350
|
+
"sinceVersion": "1.20",
|
|
7351
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
7352
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
7353
|
+
"examples": "\n##### Пример\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",
|
|
7354
|
+
"completion": {
|
|
7355
|
+
"label": "HasValue",
|
|
7356
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
7357
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
7358
|
+
"insertTextMode": 2,
|
|
7359
|
+
"insertTextFormat": 2,
|
|
7360
|
+
"kind": 3,
|
|
7361
|
+
"documentation": {
|
|
7362
|
+
"kind": "markdown",
|
|
7363
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7364
|
+
}
|
|
7365
|
+
},
|
|
7366
|
+
"parametersInfo": {
|
|
7367
|
+
"min": 2,
|
|
7368
|
+
"max": 2
|
|
7369
|
+
}
|
|
7370
|
+
},
|
|
7009
7371
|
{
|
|
7010
7372
|
"type": "function",
|
|
7011
7373
|
"name": "schema",
|
|
@@ -7112,6 +7474,57 @@
|
|
|
7112
7474
|
"id": "dictionary_functions",
|
|
7113
7475
|
"title": "Функции словаря",
|
|
7114
7476
|
"items": [
|
|
7477
|
+
[
|
|
7478
|
+
{
|
|
7479
|
+
"type": "function",
|
|
7480
|
+
"name": "defaultvalue",
|
|
7481
|
+
"bundle": "core",
|
|
7482
|
+
"sinceVersion": "1.26",
|
|
7483
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
7484
|
+
"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.",
|
|
7485
|
+
"examples": "\n##### Примеры\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",
|
|
7486
|
+
"completion": {
|
|
7487
|
+
"label": "DefaultValue",
|
|
7488
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
7489
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
7490
|
+
"insertTextMode": 2,
|
|
7491
|
+
"insertTextFormat": 2,
|
|
7492
|
+
"kind": 3,
|
|
7493
|
+
"documentation": {
|
|
7494
|
+
"kind": "markdown",
|
|
7495
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
7496
|
+
}
|
|
7497
|
+
},
|
|
7498
|
+
"parametersInfo": {
|
|
7499
|
+
"min": 3,
|
|
7500
|
+
"max": 3
|
|
7501
|
+
}
|
|
7502
|
+
},
|
|
7503
|
+
{
|
|
7504
|
+
"type": "function",
|
|
7505
|
+
"name": "defaultvalue",
|
|
7506
|
+
"bundle": "core",
|
|
7507
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
7508
|
+
"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.",
|
|
7509
|
+
"examples": "\n##### Примеры\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",
|
|
7510
|
+
"completion": {
|
|
7511
|
+
"label": "DefaultValue",
|
|
7512
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
7513
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
7514
|
+
"insertTextMode": 2,
|
|
7515
|
+
"insertTextFormat": 2,
|
|
7516
|
+
"kind": 3,
|
|
7517
|
+
"documentation": {
|
|
7518
|
+
"kind": "markdown",
|
|
7519
|
+
"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**Параметры**\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**Возвращаемое значение**: [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`."
|
|
7520
|
+
}
|
|
7521
|
+
},
|
|
7522
|
+
"parametersInfo": {
|
|
7523
|
+
"min": 3,
|
|
7524
|
+
"max": 3
|
|
7525
|
+
}
|
|
7526
|
+
}
|
|
7527
|
+
],
|
|
7115
7528
|
[
|
|
7116
7529
|
{
|
|
7117
7530
|
"type": "function",
|
|
@@ -7287,31 +7700,58 @@
|
|
|
7287
7700
|
"max": 2
|
|
7288
7701
|
}
|
|
7289
7702
|
},
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
"
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
"
|
|
7307
|
-
|
|
7703
|
+
[
|
|
7704
|
+
{
|
|
7705
|
+
"type": "function",
|
|
7706
|
+
"name": "hasvalue",
|
|
7707
|
+
"bundle": "core",
|
|
7708
|
+
"sinceVersion": "1.20",
|
|
7709
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
7710
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
7711
|
+
"examples": "\n##### Примеры\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",
|
|
7712
|
+
"completion": {
|
|
7713
|
+
"label": "HasValue",
|
|
7714
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
7715
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
7716
|
+
"insertTextMode": 2,
|
|
7717
|
+
"insertTextFormat": 2,
|
|
7718
|
+
"kind": 3,
|
|
7719
|
+
"documentation": {
|
|
7720
|
+
"kind": "markdown",
|
|
7721
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7722
|
+
}
|
|
7723
|
+
},
|
|
7724
|
+
"parametersInfo": {
|
|
7725
|
+
"min": 2,
|
|
7726
|
+
"max": 2
|
|
7308
7727
|
}
|
|
7309
7728
|
},
|
|
7310
|
-
|
|
7311
|
-
"
|
|
7312
|
-
"
|
|
7729
|
+
{
|
|
7730
|
+
"type": "function",
|
|
7731
|
+
"name": "hasvalue",
|
|
7732
|
+
"bundle": "core",
|
|
7733
|
+
"sinceVersion": "1.26",
|
|
7734
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
7735
|
+
"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.",
|
|
7736
|
+
"examples": "\n##### Примеры\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",
|
|
7737
|
+
"completion": {
|
|
7738
|
+
"label": "HasValue",
|
|
7739
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
7740
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
7741
|
+
"insertTextMode": 2,
|
|
7742
|
+
"insertTextFormat": 2,
|
|
7743
|
+
"kind": 3,
|
|
7744
|
+
"documentation": {
|
|
7745
|
+
"kind": "markdown",
|
|
7746
|
+
"value": "**[Начиная с версии 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**Параметры**\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**Возвращаемое значение**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7747
|
+
}
|
|
7748
|
+
},
|
|
7749
|
+
"parametersInfo": {
|
|
7750
|
+
"min": 2,
|
|
7751
|
+
"max": 2
|
|
7752
|
+
}
|
|
7313
7753
|
}
|
|
7314
|
-
|
|
7754
|
+
]
|
|
7315
7755
|
]
|
|
7316
7756
|
}
|
|
7317
7757
|
]
|