@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
|
@@ -1703,6 +1703,62 @@
|
|
|
1703
1703
|
}
|
|
1704
1704
|
]
|
|
1705
1705
|
},
|
|
1706
|
+
{
|
|
1707
|
+
"id": "knowledgegraph_functions",
|
|
1708
|
+
"title": "بيت_Knowledge graph functions__________________________لاحقة",
|
|
1709
|
+
"items": [
|
|
1710
|
+
{
|
|
1711
|
+
"type": "function",
|
|
1712
|
+
"name": "knowledgegraphbyportalitem",
|
|
1713
|
+
"bundle": "knowledge-graph",
|
|
1714
|
+
"sinceVersion": "1.26",
|
|
1715
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
1716
|
+
"description": "بيت_Returns a knowledge graph from a portal item________________________لاحقة.",
|
|
1717
|
+
"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",
|
|
1718
|
+
"completion": {
|
|
1719
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
1720
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
1721
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
1722
|
+
"insertTextMode": 2,
|
|
1723
|
+
"insertTextFormat": 2,
|
|
1724
|
+
"kind": 3,
|
|
1725
|
+
"documentation": {
|
|
1726
|
+
"kind": "markdown",
|
|
1727
|
+
"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)"
|
|
1728
|
+
}
|
|
1729
|
+
},
|
|
1730
|
+
"parametersInfo": {
|
|
1731
|
+
"min": 2,
|
|
1732
|
+
"max": 2
|
|
1733
|
+
}
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"type": "function",
|
|
1737
|
+
"name": "querygraph",
|
|
1738
|
+
"bundle": "knowledge-graph",
|
|
1739
|
+
"sinceVersion": "1.26",
|
|
1740
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
|
|
1741
|
+
"description": "بيت_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________لاحقة.",
|
|
1742
|
+
"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",
|
|
1743
|
+
"completion": {
|
|
1744
|
+
"label": "QueryGraph",
|
|
1745
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
|
|
1746
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
1747
|
+
"insertTextMode": 2,
|
|
1748
|
+
"insertTextFormat": 2,
|
|
1749
|
+
"kind": 3,
|
|
1750
|
+
"documentation": {
|
|
1751
|
+
"kind": "markdown",
|
|
1752
|
+
"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)"
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
"parametersInfo": {
|
|
1756
|
+
"min": 2,
|
|
1757
|
+
"max": 3
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
]
|
|
1761
|
+
},
|
|
1706
1762
|
{
|
|
1707
1763
|
"id": "featureset_functions",
|
|
1708
1764
|
"title": "دوال FeatureSet",
|
|
@@ -2465,7 +2521,7 @@
|
|
|
2465
2521
|
"sinceVersion": "1.14",
|
|
2466
2522
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
2467
2523
|
"description": "إرجاع الطول المستو (أي الديكارتي) لـ FeatureSet المدخل مع أخذ الارتفاع أو معلومات Z في الاعتبار. يجب تعيين نظام إحداثي مسقط للشكل الهندسي المقدم لهذه الدالة. إذا لم يوفر الإسناد المكاني قيمة لوحدات Z، فسيتم إرجاع النتيجة بالأمتار. ضع في اعتبارك أنه ليس كل العملاء (مثل السلسلة 3.x من ArcGIS API for JavaScript) يدعمون طلب قيم Z حتى عندما تحتوي البيانات على معلومات Z.\n\n_أشكال Feature الهندسية في التصور وملفات تعريف التسمية يتم تعميمها وفقًا لدقة مقياس العرض لتحسين أداء الرسم. لذلك، فإن استخدام الشكل الهندسي للمعلم (أي `$feature`) كمدخلات لأي دالة شكل هندسي في هذه السياقات سيرجع نتائج مختلفة على كل مستوى مقياس. ملفات التعريف الأخرى، مثل النافذة المنبثقة، توفر شكل هندسي كامل الدقة._",
|
|
2468
|
-
"examples": "\n##### مثال\n\nتُرجع الطول ثلاثي الأبعاد لمعالم الطبقة بالأمتار\n\n```arcade\
|
|
2524
|
+
"examples": "\n##### مثال\n\nتُرجع الطول ثلاثي الأبعاد لمعالم الطبقة بالأمتار\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
2469
2525
|
"completion": {
|
|
2470
2526
|
"label": "Length3D",
|
|
2471
2527
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -4208,7 +4264,7 @@
|
|
|
4208
4264
|
"sinceVersion": "1.12",
|
|
4209
4265
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
4210
4266
|
"description": "إجمالي المسافات المقطوعة بين الملاحظات من الملاحظة الأولى إلى الملاحظة الحالية بالإضافة إلى القيمة المعطاة.",
|
|
4211
|
-
"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(
|
|
4267
|
+
"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",
|
|
4212
4268
|
"completion": {
|
|
4213
4269
|
"label": "TrackDistanceAt",
|
|
4214
4270
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -4918,6 +4974,57 @@
|
|
|
4918
4974
|
"max": 2
|
|
4919
4975
|
}
|
|
4920
4976
|
},
|
|
4977
|
+
[
|
|
4978
|
+
{
|
|
4979
|
+
"type": "function",
|
|
4980
|
+
"name": "defaultvalue",
|
|
4981
|
+
"bundle": "core",
|
|
4982
|
+
"sinceVersion": "1.26",
|
|
4983
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
4984
|
+
"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.",
|
|
4985
|
+
"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",
|
|
4986
|
+
"completion": {
|
|
4987
|
+
"label": "DefaultValue",
|
|
4988
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
4989
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
4990
|
+
"insertTextMode": 2,
|
|
4991
|
+
"insertTextFormat": 2,
|
|
4992
|
+
"kind": 3,
|
|
4993
|
+
"documentation": {
|
|
4994
|
+
"kind": "markdown",
|
|
4995
|
+
"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`."
|
|
4996
|
+
}
|
|
4997
|
+
},
|
|
4998
|
+
"parametersInfo": {
|
|
4999
|
+
"min": 3,
|
|
5000
|
+
"max": 3
|
|
5001
|
+
}
|
|
5002
|
+
},
|
|
5003
|
+
{
|
|
5004
|
+
"type": "function",
|
|
5005
|
+
"name": "defaultvalue",
|
|
5006
|
+
"bundle": "core",
|
|
5007
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
5008
|
+
"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.",
|
|
5009
|
+
"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",
|
|
5010
|
+
"completion": {
|
|
5011
|
+
"label": "DefaultValue",
|
|
5012
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
5013
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
5014
|
+
"insertTextMode": 2,
|
|
5015
|
+
"insertTextFormat": 2,
|
|
5016
|
+
"kind": 3,
|
|
5017
|
+
"documentation": {
|
|
5018
|
+
"kind": "markdown",
|
|
5019
|
+
"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`."
|
|
5020
|
+
}
|
|
5021
|
+
},
|
|
5022
|
+
"parametersInfo": {
|
|
5023
|
+
"min": 3,
|
|
5024
|
+
"max": 3
|
|
5025
|
+
}
|
|
5026
|
+
}
|
|
5027
|
+
],
|
|
4921
5028
|
{
|
|
4922
5029
|
"type": "function",
|
|
4923
5030
|
"name": "densify",
|
|
@@ -5068,6 +5175,31 @@
|
|
|
5068
5175
|
"max": 3
|
|
5069
5176
|
}
|
|
5070
5177
|
},
|
|
5178
|
+
{
|
|
5179
|
+
"type": "function",
|
|
5180
|
+
"name": "distancetocoordinate",
|
|
5181
|
+
"bundle": "geometry",
|
|
5182
|
+
"sinceVersion": "1.26",
|
|
5183
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
5184
|
+
"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._",
|
|
5185
|
+
"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",
|
|
5186
|
+
"completion": {
|
|
5187
|
+
"label": "DistanceToCoordinate",
|
|
5188
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
5189
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
5190
|
+
"insertTextMode": 2,
|
|
5191
|
+
"insertTextFormat": 2,
|
|
5192
|
+
"kind": 3,
|
|
5193
|
+
"documentation": {
|
|
5194
|
+
"kind": "markdown",
|
|
5195
|
+
"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`."
|
|
5196
|
+
}
|
|
5197
|
+
},
|
|
5198
|
+
"parametersInfo": {
|
|
5199
|
+
"min": 2,
|
|
5200
|
+
"max": 2
|
|
5201
|
+
}
|
|
5202
|
+
},
|
|
5071
5203
|
{
|
|
5072
5204
|
"type": "function",
|
|
5073
5205
|
"name": "envelopeintersects",
|
|
@@ -5241,6 +5373,58 @@
|
|
|
5241
5373
|
"max": 1
|
|
5242
5374
|
}
|
|
5243
5375
|
},
|
|
5376
|
+
[
|
|
5377
|
+
{
|
|
5378
|
+
"type": "function",
|
|
5379
|
+
"name": "hasvalue",
|
|
5380
|
+
"bundle": "core",
|
|
5381
|
+
"sinceVersion": "1.26",
|
|
5382
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
5383
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
5384
|
+
"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",
|
|
5385
|
+
"completion": {
|
|
5386
|
+
"label": "HasValue",
|
|
5387
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
5388
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
5389
|
+
"insertTextMode": 2,
|
|
5390
|
+
"insertTextFormat": 2,
|
|
5391
|
+
"kind": 3,
|
|
5392
|
+
"documentation": {
|
|
5393
|
+
"kind": "markdown",
|
|
5394
|
+
"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)"
|
|
5395
|
+
}
|
|
5396
|
+
},
|
|
5397
|
+
"parametersInfo": {
|
|
5398
|
+
"min": 2,
|
|
5399
|
+
"max": 2
|
|
5400
|
+
}
|
|
5401
|
+
},
|
|
5402
|
+
{
|
|
5403
|
+
"type": "function",
|
|
5404
|
+
"name": "hasvalue",
|
|
5405
|
+
"bundle": "core",
|
|
5406
|
+
"sinceVersion": "1.26",
|
|
5407
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
5408
|
+
"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.",
|
|
5409
|
+
"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",
|
|
5410
|
+
"completion": {
|
|
5411
|
+
"label": "HasValue",
|
|
5412
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
5413
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
5414
|
+
"insertTextMode": 2,
|
|
5415
|
+
"insertTextFormat": 2,
|
|
5416
|
+
"kind": 3,
|
|
5417
|
+
"documentation": {
|
|
5418
|
+
"kind": "markdown",
|
|
5419
|
+
"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)"
|
|
5420
|
+
}
|
|
5421
|
+
},
|
|
5422
|
+
"parametersInfo": {
|
|
5423
|
+
"min": 2,
|
|
5424
|
+
"max": 2
|
|
5425
|
+
}
|
|
5426
|
+
}
|
|
5427
|
+
],
|
|
5244
5428
|
{
|
|
5245
5429
|
"type": "function",
|
|
5246
5430
|
"name": "intersection",
|
|
@@ -5416,6 +5600,31 @@
|
|
|
5416
5600
|
"max": 2
|
|
5417
5601
|
}
|
|
5418
5602
|
},
|
|
5603
|
+
{
|
|
5604
|
+
"type": "function",
|
|
5605
|
+
"name": "measuretocoordinate",
|
|
5606
|
+
"bundle": "geometry",
|
|
5607
|
+
"sinceVersion": "1.26",
|
|
5608
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
5609
|
+
"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._",
|
|
5610
|
+
"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",
|
|
5611
|
+
"completion": {
|
|
5612
|
+
"label": "MeasureToCoordinate",
|
|
5613
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
5614
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
5615
|
+
"insertTextMode": 2,
|
|
5616
|
+
"insertTextFormat": 2,
|
|
5617
|
+
"kind": 3,
|
|
5618
|
+
"documentation": {
|
|
5619
|
+
"kind": "markdown",
|
|
5620
|
+
"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`."
|
|
5621
|
+
}
|
|
5622
|
+
},
|
|
5623
|
+
"parametersInfo": {
|
|
5624
|
+
"min": 2,
|
|
5625
|
+
"max": 2
|
|
5626
|
+
}
|
|
5627
|
+
},
|
|
5419
5628
|
{
|
|
5420
5629
|
"type": "function",
|
|
5421
5630
|
"name": "multiparttosinglepart",
|
|
@@ -5532,7 +5741,7 @@
|
|
|
5532
5741
|
"kind": 3,
|
|
5533
5742
|
"documentation": {
|
|
5534
5743
|
"kind": "markdown",
|
|
5535
|
-
"value": "**[إصدار متعدد 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nترجع أقرب إحداثي (وليس قمة) للشكل الهندسي المدخل إلى نقطة البحث. يتضمن القاموس الذي تم إرجاعه أيضًا أقصر مسافة مستوية من نقطة البحث إلى أقرب إحداثي. إذا تقاطعت نقطة البحث مع الشكل الهندسي المدخل، فسيتم إرجاع نقطة البحث كنتيجة بمسافة صفر.\n\n_أشكال Feature الهندسية في التصور وملفات تعريف التسمية يتم تعميمها وفقًا لدقة مقياس العرض لتحسين أداء الرسم. لذلك، فإن استخدام الشكل الهندسي للمعلم (أي `$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\\\"."
|
|
5744
|
+
"value": "**[إصدار متعدد 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nترجع أقرب إحداثي (وليس قمة) للشكل الهندسي المدخل إلى نقطة البحث. يتضمن القاموس الذي تم إرجاعه أيضًا أقصر مسافة مستوية من نقطة البحث إلى أقرب إحداثي. إذا تقاطعت نقطة البحث مع الشكل الهندسي المدخل، فسيتم إرجاع نقطة البحث كنتيجة بمسافة صفر.\n\n_أشكال Feature الهندسية في التصور وملفات تعريف التسمية يتم تعميمها وفقًا لدقة مقياس العرض لتحسين أداء الرسم. لذلك، فإن استخدام الشكل الهندسي للمعلم (أي `$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) - "
|
|
5536
5745
|
}
|
|
5537
5746
|
},
|
|
5538
5747
|
"parametersInfo": {
|
|
@@ -5557,7 +5766,7 @@
|
|
|
5557
5766
|
"kind": 3,
|
|
5558
5767
|
"documentation": {
|
|
5559
5768
|
"kind": "markdown",
|
|
5560
|
-
"value": "**[إصدار متعدد 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nتُرجع أقرب قمة الشكل الهندسي المدخل إلى نقطة البحث. يتضمن القاموس الذي تم إرجاعه المسافة المستوية من نقطة البحث إلى أقرب قمة.\n\n_أشكال Feature الهندسية في التصور وملفات تعريف التسمية يتم تعميمها وفقًا لدقة مقياس العرض لتحسين أداء الرسم. لذلك، فإن استخدام الشكل الهندسي للمعلم (أي `$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\\\"."
|
|
5769
|
+
"value": "**[إصدار متعدد 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nتُرجع أقرب قمة الشكل الهندسي المدخل إلى نقطة البحث. يتضمن القاموس الذي تم إرجاعه المسافة المستوية من نقطة البحث إلى أقرب قمة.\n\n_أشكال Feature الهندسية في التصور وملفات تعريف التسمية يتم تعميمها وفقًا لدقة مقياس العرض لتحسين أداء الرسم. لذلك، فإن استخدام الشكل الهندسي للمعلم (أي `$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) - "
|
|
5561
5770
|
}
|
|
5562
5771
|
},
|
|
5563
5772
|
"parametersInfo": {
|
|
@@ -5665,6 +5874,31 @@
|
|
|
5665
5874
|
}
|
|
5666
5875
|
}
|
|
5667
5876
|
],
|
|
5877
|
+
{
|
|
5878
|
+
"type": "function",
|
|
5879
|
+
"name": "pointtocoordinate",
|
|
5880
|
+
"bundle": "geometry",
|
|
5881
|
+
"sinceVersion": "1.26",
|
|
5882
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
5883
|
+
"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._",
|
|
5884
|
+
"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",
|
|
5885
|
+
"completion": {
|
|
5886
|
+
"label": "PointToCoordinate",
|
|
5887
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
5888
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
5889
|
+
"insertTextMode": 2,
|
|
5890
|
+
"insertTextFormat": 2,
|
|
5891
|
+
"kind": 3,
|
|
5892
|
+
"documentation": {
|
|
5893
|
+
"kind": "markdown",
|
|
5894
|
+
"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`."
|
|
5895
|
+
}
|
|
5896
|
+
},
|
|
5897
|
+
"parametersInfo": {
|
|
5898
|
+
"min": 2,
|
|
5899
|
+
"max": 2
|
|
5900
|
+
}
|
|
5901
|
+
},
|
|
5668
5902
|
[
|
|
5669
5903
|
{
|
|
5670
5904
|
"type": "function",
|
|
@@ -6071,6 +6305,57 @@
|
|
|
6071
6305
|
"id": "dictionary_functions",
|
|
6072
6306
|
"title": "دوال القاموس",
|
|
6073
6307
|
"items": [
|
|
6308
|
+
[
|
|
6309
|
+
{
|
|
6310
|
+
"type": "function",
|
|
6311
|
+
"name": "defaultvalue",
|
|
6312
|
+
"bundle": "core",
|
|
6313
|
+
"sinceVersion": "1.26",
|
|
6314
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
6315
|
+
"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.",
|
|
6316
|
+
"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",
|
|
6317
|
+
"completion": {
|
|
6318
|
+
"label": "DefaultValue",
|
|
6319
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
6320
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
6321
|
+
"insertTextMode": 2,
|
|
6322
|
+
"insertTextFormat": 2,
|
|
6323
|
+
"kind": 3,
|
|
6324
|
+
"documentation": {
|
|
6325
|
+
"kind": "markdown",
|
|
6326
|
+
"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`."
|
|
6327
|
+
}
|
|
6328
|
+
},
|
|
6329
|
+
"parametersInfo": {
|
|
6330
|
+
"min": 3,
|
|
6331
|
+
"max": 3
|
|
6332
|
+
}
|
|
6333
|
+
},
|
|
6334
|
+
{
|
|
6335
|
+
"type": "function",
|
|
6336
|
+
"name": "defaultvalue",
|
|
6337
|
+
"bundle": "core",
|
|
6338
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
6339
|
+
"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.",
|
|
6340
|
+
"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",
|
|
6341
|
+
"completion": {
|
|
6342
|
+
"label": "DefaultValue",
|
|
6343
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
6344
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
6345
|
+
"insertTextMode": 2,
|
|
6346
|
+
"insertTextFormat": 2,
|
|
6347
|
+
"kind": 3,
|
|
6348
|
+
"documentation": {
|
|
6349
|
+
"kind": "markdown",
|
|
6350
|
+
"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`."
|
|
6351
|
+
}
|
|
6352
|
+
},
|
|
6353
|
+
"parametersInfo": {
|
|
6354
|
+
"min": 3,
|
|
6355
|
+
"max": 3
|
|
6356
|
+
}
|
|
6357
|
+
}
|
|
6358
|
+
],
|
|
6074
6359
|
[
|
|
6075
6360
|
{
|
|
6076
6361
|
"type": "function",
|
|
@@ -6246,31 +6531,58 @@
|
|
|
6246
6531
|
"max": 2
|
|
6247
6532
|
}
|
|
6248
6533
|
},
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
"
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
"
|
|
6266
|
-
|
|
6534
|
+
[
|
|
6535
|
+
{
|
|
6536
|
+
"type": "function",
|
|
6537
|
+
"name": "hasvalue",
|
|
6538
|
+
"bundle": "core",
|
|
6539
|
+
"sinceVersion": "1.20",
|
|
6540
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
6541
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
6542
|
+
"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",
|
|
6543
|
+
"completion": {
|
|
6544
|
+
"label": "HasValue",
|
|
6545
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
6546
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
6547
|
+
"insertTextMode": 2,
|
|
6548
|
+
"insertTextFormat": 2,
|
|
6549
|
+
"kind": 3,
|
|
6550
|
+
"documentation": {
|
|
6551
|
+
"kind": "markdown",
|
|
6552
|
+
"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)"
|
|
6553
|
+
}
|
|
6554
|
+
},
|
|
6555
|
+
"parametersInfo": {
|
|
6556
|
+
"min": 2,
|
|
6557
|
+
"max": 2
|
|
6267
6558
|
}
|
|
6268
6559
|
},
|
|
6269
|
-
|
|
6270
|
-
"
|
|
6271
|
-
"
|
|
6560
|
+
{
|
|
6561
|
+
"type": "function",
|
|
6562
|
+
"name": "hasvalue",
|
|
6563
|
+
"bundle": "core",
|
|
6564
|
+
"sinceVersion": "1.26",
|
|
6565
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
6566
|
+
"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.",
|
|
6567
|
+
"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",
|
|
6568
|
+
"completion": {
|
|
6569
|
+
"label": "HasValue",
|
|
6570
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
6571
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
6572
|
+
"insertTextMode": 2,
|
|
6573
|
+
"insertTextFormat": 2,
|
|
6574
|
+
"kind": 3,
|
|
6575
|
+
"documentation": {
|
|
6576
|
+
"kind": "markdown",
|
|
6577
|
+
"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)"
|
|
6578
|
+
}
|
|
6579
|
+
},
|
|
6580
|
+
"parametersInfo": {
|
|
6581
|
+
"min": 2,
|
|
6582
|
+
"max": 2
|
|
6583
|
+
}
|
|
6272
6584
|
}
|
|
6273
|
-
|
|
6585
|
+
]
|
|
6274
6586
|
]
|
|
6275
6587
|
},
|
|
6276
6588
|
{
|
|
@@ -6459,6 +6771,57 @@
|
|
|
6459
6771
|
"max": 1
|
|
6460
6772
|
}
|
|
6461
6773
|
},
|
|
6774
|
+
[
|
|
6775
|
+
{
|
|
6776
|
+
"type": "function",
|
|
6777
|
+
"name": "defaultvalue",
|
|
6778
|
+
"bundle": "core",
|
|
6779
|
+
"sinceVersion": "1.26",
|
|
6780
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
6781
|
+
"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.",
|
|
6782
|
+
"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",
|
|
6783
|
+
"completion": {
|
|
6784
|
+
"label": "DefaultValue",
|
|
6785
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
6786
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
6787
|
+
"insertTextMode": 2,
|
|
6788
|
+
"insertTextFormat": 2,
|
|
6789
|
+
"kind": 3,
|
|
6790
|
+
"documentation": {
|
|
6791
|
+
"kind": "markdown",
|
|
6792
|
+
"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`."
|
|
6793
|
+
}
|
|
6794
|
+
},
|
|
6795
|
+
"parametersInfo": {
|
|
6796
|
+
"min": 3,
|
|
6797
|
+
"max": 3
|
|
6798
|
+
}
|
|
6799
|
+
},
|
|
6800
|
+
{
|
|
6801
|
+
"type": "function",
|
|
6802
|
+
"name": "defaultvalue",
|
|
6803
|
+
"bundle": "core",
|
|
6804
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
6805
|
+
"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.",
|
|
6806
|
+
"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",
|
|
6807
|
+
"completion": {
|
|
6808
|
+
"label": "DefaultValue",
|
|
6809
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
6810
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
6811
|
+
"insertTextMode": 2,
|
|
6812
|
+
"insertTextFormat": 2,
|
|
6813
|
+
"kind": 3,
|
|
6814
|
+
"documentation": {
|
|
6815
|
+
"kind": "markdown",
|
|
6816
|
+
"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`."
|
|
6817
|
+
}
|
|
6818
|
+
},
|
|
6819
|
+
"parametersInfo": {
|
|
6820
|
+
"min": 3,
|
|
6821
|
+
"max": 3
|
|
6822
|
+
}
|
|
6823
|
+
}
|
|
6824
|
+
],
|
|
6462
6825
|
[
|
|
6463
6826
|
{
|
|
6464
6827
|
"type": "function",
|
|
@@ -6610,6 +6973,58 @@
|
|
|
6610
6973
|
"max": 1
|
|
6611
6974
|
}
|
|
6612
6975
|
},
|
|
6976
|
+
[
|
|
6977
|
+
{
|
|
6978
|
+
"type": "function",
|
|
6979
|
+
"name": "hasvalue",
|
|
6980
|
+
"bundle": "core",
|
|
6981
|
+
"sinceVersion": "1.26",
|
|
6982
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
6983
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
6984
|
+
"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",
|
|
6985
|
+
"completion": {
|
|
6986
|
+
"label": "HasValue",
|
|
6987
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
6988
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
6989
|
+
"insertTextMode": 2,
|
|
6990
|
+
"insertTextFormat": 2,
|
|
6991
|
+
"kind": 3,
|
|
6992
|
+
"documentation": {
|
|
6993
|
+
"kind": "markdown",
|
|
6994
|
+
"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)"
|
|
6995
|
+
}
|
|
6996
|
+
},
|
|
6997
|
+
"parametersInfo": {
|
|
6998
|
+
"min": 2,
|
|
6999
|
+
"max": 2
|
|
7000
|
+
}
|
|
7001
|
+
},
|
|
7002
|
+
{
|
|
7003
|
+
"type": "function",
|
|
7004
|
+
"name": "hasvalue",
|
|
7005
|
+
"bundle": "core",
|
|
7006
|
+
"sinceVersion": "1.26",
|
|
7007
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
7008
|
+
"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.",
|
|
7009
|
+
"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",
|
|
7010
|
+
"completion": {
|
|
7011
|
+
"label": "HasValue",
|
|
7012
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
7013
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
7014
|
+
"insertTextMode": 2,
|
|
7015
|
+
"insertTextFormat": 2,
|
|
7016
|
+
"kind": 3,
|
|
7017
|
+
"documentation": {
|
|
7018
|
+
"kind": "markdown",
|
|
7019
|
+
"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)"
|
|
7020
|
+
}
|
|
7021
|
+
},
|
|
7022
|
+
"parametersInfo": {
|
|
7023
|
+
"min": 2,
|
|
7024
|
+
"max": 2
|
|
7025
|
+
}
|
|
7026
|
+
}
|
|
7027
|
+
],
|
|
6613
7028
|
{
|
|
6614
7029
|
"type": "function",
|
|
6615
7030
|
"name": "includes",
|
|
@@ -7212,6 +7627,31 @@
|
|
|
7212
7627
|
"max": 1
|
|
7213
7628
|
}
|
|
7214
7629
|
},
|
|
7630
|
+
{
|
|
7631
|
+
"type": "function",
|
|
7632
|
+
"name": "hasvalue",
|
|
7633
|
+
"bundle": "core",
|
|
7634
|
+
"sinceVersion": "1.20",
|
|
7635
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
7636
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
7637
|
+
"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",
|
|
7638
|
+
"completion": {
|
|
7639
|
+
"label": "HasValue",
|
|
7640
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
7641
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
7642
|
+
"insertTextMode": 2,
|
|
7643
|
+
"insertTextFormat": 2,
|
|
7644
|
+
"kind": 3,
|
|
7645
|
+
"documentation": {
|
|
7646
|
+
"kind": "markdown",
|
|
7647
|
+
"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)"
|
|
7648
|
+
}
|
|
7649
|
+
},
|
|
7650
|
+
"parametersInfo": {
|
|
7651
|
+
"min": 2,
|
|
7652
|
+
"max": 2
|
|
7653
|
+
}
|
|
7654
|
+
},
|
|
7215
7655
|
{
|
|
7216
7656
|
"type": "function",
|
|
7217
7657
|
"name": "schema",
|