@arcgis/coding-components 4.29.0-beta.99 → 4.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +111 -111
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +113 -113
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +111 -111
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +111 -111
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +111 -111
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +111 -111
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +111 -111
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +111 -111
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +19 -19
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +111 -111
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +111 -111
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +111 -111
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +111 -111
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +111 -111
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +111 -111
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +111 -111
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +111 -111
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +111 -111
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +111 -111
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +111 -111
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +111 -111
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +111 -111
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +111 -111
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +66 -66
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +66 -66
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +111 -111
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +111 -111
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +66 -66
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +111 -111
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +111 -111
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +111 -111
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +111 -111
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +111 -111
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +111 -111
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +111 -111
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +111 -111
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +111 -111
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +66 -66
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +66 -66
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +66 -66
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +4 -4
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +4 -4
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +4 -4
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +4 -4
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +4 -4
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +3 -3
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +3 -3
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +4 -4
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +3 -3
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +4 -4
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +3 -3
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +4 -4
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +4 -4
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +4 -4
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +4 -4
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +4 -4
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +4 -4
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +4 -4
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +4 -4
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +4 -4
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +4 -4
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +4 -4
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +4 -4
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +4 -4
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +4 -4
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +4 -4
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +4 -4
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +4 -4
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +3 -3
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +4 -4
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +4 -4
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +4 -4
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +4 -4
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +4 -4
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +4 -4
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +4 -4
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +4 -4
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +4 -4
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +4 -4
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +4 -4
  82. package/dist/arcgis-coding-components/index.esm.js +2 -2
  83. package/dist/arcgis-coding-components/{p-e1cb02b3.js → p-0a2edf01.js} +2 -2
  84. package/dist/arcgis-coding-components/p-11e79992.js +6 -0
  85. package/dist/arcgis-coding-components/{p-f75beb80.js → p-36e2cbc2.js} +3 -3
  86. package/dist/arcgis-coding-components/{p-457e3916.js → p-4406b5a8.js} +2 -2
  87. package/dist/arcgis-coding-components/{p-87d7ad9e.js → p-4eb30e60.js} +1 -1
  88. package/dist/arcgis-coding-components/{p-7f9d3fdc.js → p-619ca372.js} +1 -1
  89. package/dist/arcgis-coding-components/{p-7e0e8ecc.js → p-71125c69.js} +2 -2
  90. package/dist/arcgis-coding-components/{p-0bab0228.js → p-8d7f0979.js} +2 -2
  91. package/dist/arcgis-coding-components/p-9b8091c1.entry.js +6 -0
  92. package/dist/arcgis-coding-components/{p-ad86a5f5.js → p-bd81fdff.js} +11 -11
  93. package/dist/arcgis-coding-components/{p-f23f7fee.js → p-ecc8dd8a.js} +2 -2
  94. package/dist/arcgis-coding-components/{p-4648782b.js → p-f9016c56.js} +2 -2
  95. package/dist/cjs/{arcade-defaults-5dd9ebb7.js → arcade-defaults-b30ccec8.js} +271 -236
  96. package/dist/cjs/{arcade-mode-0b4c53a1.js → arcade-mode-eb755260.js} +11 -14
  97. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +160 -184
  98. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  99. package/dist/cjs/{css-fe7f8980.js → css-9e907aa0.js} +1 -1
  100. package/dist/cjs/{cssMode-4c9b3a32.js → cssMode-e4189b13.js} +3 -3
  101. package/dist/cjs/{html-b044fbba.js → html-2582ae43.js} +3 -3
  102. package/dist/cjs/{htmlMode-956a6ffa.js → htmlMode-0edcf1ee.js} +3 -3
  103. package/dist/cjs/{index-aaceaf1f.js → index-54d6f9be.js} +1 -1
  104. package/dist/cjs/index.cjs.js +3 -3
  105. package/dist/cjs/{javascript-6c55ac8b.js → javascript-425c653a.js} +4 -4
  106. package/dist/cjs/{jsonMode-d83e322c.js → jsonMode-eea03515.js} +3 -3
  107. package/dist/cjs/loader.cjs.js +3 -3
  108. package/dist/cjs/{tsMode-5c5ffa3e.js → tsMode-b92c9221.js} +3 -3
  109. package/dist/cjs/{typescript-6143656a.js → typescript-cfc1221c.js} +3 -3
  110. package/dist/components/arcade-api.js +20 -18
  111. package/dist/components/arcade-contribution.js +9 -8
  112. package/dist/components/arcade-defaults.js +188 -168
  113. package/dist/components/arcade-mode.js +10 -12
  114. package/dist/components/arcade-results.js +29 -83
  115. package/dist/components/arcade-suggestions.js +15 -12
  116. package/dist/components/arcade-variables.js +30 -21
  117. package/dist/components/arcgis-arcade-api.js +1 -1
  118. package/dist/components/arcgis-arcade-editor.js +61 -49
  119. package/dist/components/arcgis-arcade-results.js +1 -1
  120. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  121. package/dist/components/arcgis-arcade-variables.js +1 -1
  122. package/dist/components/arcgis-code-editor.js +1 -1
  123. package/dist/components/code-editor.js +1 -1
  124. package/dist/components/fields.js +37 -23
  125. package/dist/components/index.js +1 -1
  126. package/dist/components/index2.js +3 -3
  127. package/dist/components/markdown.js +10 -1
  128. package/dist/components/utilities.js +4 -4
  129. package/dist/esm/{arcade-defaults-2d7283d4.js → arcade-defaults-a5dc6132.js} +267 -233
  130. package/dist/esm/{arcade-mode-a8abe5af.js → arcade-mode-d06b6e4f.js} +11 -14
  131. package/dist/esm/arcgis-arcade-api_6.entry.js +160 -184
  132. package/dist/esm/arcgis-coding-components.js +4 -4
  133. package/dist/esm/{css-d31a02ca.js → css-59b4804d.js} +1 -1
  134. package/dist/esm/{cssMode-5ee45e91.js → cssMode-2bce7da7.js} +3 -3
  135. package/dist/esm/{html-5c2e488c.js → html-3ad47fc0.js} +3 -3
  136. package/dist/esm/{htmlMode-376cd5e8.js → htmlMode-6cb73c91.js} +3 -3
  137. package/dist/esm/{index-1b265749.js → index-ee54d182.js} +1 -1
  138. package/dist/esm/index.js +3 -3
  139. package/dist/esm/{javascript-13ddec2b.js → javascript-8917f926.js} +4 -4
  140. package/dist/esm/{jsonMode-674e89d6.js → jsonMode-9a1dbf00.js} +3 -3
  141. package/dist/esm/loader.js +4 -4
  142. package/dist/esm/{tsMode-4c4398d7.js → tsMode-2caf1509.js} +3 -3
  143. package/dist/esm/{typescript-b328b622.js → typescript-a3abccc0.js} +3 -3
  144. package/dist/loader/cdn.js +1 -1
  145. package/dist/loader/index.cjs.js +1 -1
  146. package/dist/loader/index.es2017.js +1 -1
  147. package/dist/loader/index.js +1 -1
  148. package/dist/types/components/arcade-editor/arcade-editor.d.ts +2 -7
  149. package/dist/types/components/arcade-variables/arcade-variables.d.ts +0 -1
  150. package/dist/types/components.d.ts +2 -7
  151. package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
  152. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -0
  153. package/dist/types/utils/constants.d.ts +2 -2
  154. package/dist/types/utils/fields.d.ts +1 -0
  155. package/dist/types/utils/markdown.d.ts +3 -0
  156. package/dist/types/utils/profile/editor-profile.d.ts +49 -63
  157. package/dist/types/utils/profile/types.d.ts +122 -1
  158. package/dist/types/utils/profile/utils.d.ts +22 -9
  159. package/package.json +8 -8
  160. package/dist/arcgis-coding-components/p-6d56a4b8.entry.js +0 -6
  161. package/dist/arcgis-coding-components/p-a75f5087.js +0 -6
  162. package/dist/components/functional-components.js +0 -15
  163. package/dist/types/utils/functional-components.d.ts +0 -7
  164. package/dist/types/utils/json-format.d.ts +0 -1
@@ -655,8 +655,8 @@
655
655
  "bundle": "data-access",
656
656
  "sinceVersion": "1.25",
657
657
  "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode",
658
- "description": "试_Creates a new FeatureSet with all the features matching the given subtype code_________________________________________验.",
659
- "examples": "\n##### 示例\n\n试_Filter features with the subtype code____________________验\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
658
+ "description": "创建一个新的 FeatureSet,其中包含与给定子类型代码相匹配的所有要素。",
659
+ "examples": "\n##### 示例\n\n使用子类型代码过滤要素\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
660
660
  "completion": {
661
661
  "label": "FilterBySubtypeCode",
662
662
  "detail": "FilterBySubtypeCode(features, subtypeCode) -> FeatureSet",
@@ -666,7 +666,7 @@
666
666
  "kind": 3,
667
667
  "documentation": {
668
668
  "kind": "markdown",
669
- "value": "**[起始版本 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n试_Creates a new FeatureSet with all the features matching the given subtype code_________________________________________验.\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 试_The FeatureSet, or layer, to filter___________________验.\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 试_The subtype code used to filter features in the FeatureSet or layer___________________________________验.\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
669
+ "value": "**[起始版本 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n创建一个新的 FeatureSet,其中包含与给定子类型代码相匹配的所有要素。\n\n**参数**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - 要过滤的 FeatureSet 或图层。\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 用于过滤 FeatureSet 或图层中要素的子类型代码。\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
670
670
  }
671
671
  },
672
672
  "parametersInfo": {
@@ -1720,8 +1720,8 @@
1720
1720
  "bundle": "core",
1721
1721
  "sinceVersion": "1.26",
1722
1722
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
1723
- "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.",
1724
- "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",
1723
+ "description": "如果几何中的键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。",
1724
+ "examples": "\n##### 示例\n\n具有 z 值的点\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is true\n// returns the value of Geometry($feature).z\n```\n\n没有 z 值的点\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
1725
1725
  "completion": {
1726
1726
  "label": "DefaultValue",
1727
1727
  "detail": "DefaultValue(container, key, defaultValue) -> Any",
@@ -1731,7 +1731,7 @@
1731
1731
  "kind": 3,
1732
1732
  "documentation": {
1733
1733
  "kind": "markdown",
1734
- "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`."
1734
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n如果几何中的键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。\n\n**参数**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 要检查的输入几何。\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 要检查的键。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 如果键不存在,或指定键处的值为 `null` 或空文本值,则返回该值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n如果已定义,则返回指定键处的值。 否则,返回 `defaultValue` 中指定的值。"
1735
1735
  }
1736
1736
  },
1737
1737
  "parametersInfo": {
@@ -1744,8 +1744,8 @@
1744
1744
  "name": "defaultvalue",
1745
1745
  "bundle": "core",
1746
1746
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
1747
- "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.",
1748
- "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",
1747
+ "description": "如果几何嵌套属性中至少一个键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。",
1748
+ "examples": "\n##### 示例\n\n环、坐标和 x 值均存在且有值\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\n环不存在\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\n环和坐标存在,但 m 值不存在\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",
1749
1749
  "completion": {
1750
1750
  "label": "DefaultValue",
1751
1751
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -1755,7 +1755,7 @@
1755
1755
  "kind": 3,
1756
1756
  "documentation": {
1757
1757
  "kind": "markdown",
1758
- "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`."
1758
+ "value": "如果几何嵌套属性中至少一个键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。\n\n**参数**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 要检查的输入几何。\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)> - 要在容器结构的每个层级中检查的键或索引数组。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 如果至少一个键或索引不存在,或指定键处的值为 `null` 或空文本值,则返回该值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n如果已定义,则返回指定键或索引处的值。 否则,返回 `defaultValue` 中指定的值。"
1759
1759
  }
1760
1760
  },
1761
1761
  "parametersInfo": {
@@ -1920,8 +1920,8 @@
1920
1920
  "bundle": "geometry",
1921
1921
  "sinceVersion": "1.26",
1922
1922
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
1923
- "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._",
1924
- "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",
1923
+ "description": "根据给定距离沿输入线返回一个坐标。 尝试在给定距离内找到坐标时,考虑线的所有部分。 距离不包括线的路径(或部分)之间的间隙。 如果沿输入线未找到距离,则结果将为 `null`。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何( `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_",
1924
+ "examples": "\n##### 示例\n\n根据给定距离值返回输入折线的坐标\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n",
1925
1925
  "completion": {
1926
1926
  "label": "DistanceToCoordinate",
1927
1927
  "detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
@@ -1931,7 +1931,7 @@
1931
1931
  "kind": 3,
1932
1932
  "documentation": {
1933
1933
  "kind": "markdown",
1934
- "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`."
1934
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据给定距离沿输入线返回一个坐标。 尝试在给定距离内找到坐标时,考虑线的所有部分。 距离不包括线的路径(或部分)之间的间隙。 如果沿输入线未找到距离,则结果将为 `null`。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何( `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\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) - 用于找到坐标的线或路径。 使用要素作为输入时,要素的几何必须是折线。\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 用于沿 `inputLine` 从线起点找到坐标的距离。 尝试在给定距离内找到坐标时,考虑线的所有部分。 距离不包括线的路径(或部分)之间的间隙。 \n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回具有以下属性的字典。 如果沿输入线未找到距离,则结果将为 `null`。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 根据给定距离值沿 `inputLine` 的点的坐标。\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `inputLine` 起点沿线测量到 `coordinate` 的平面距离。 在路径不相连的折线中,`distanceAlong` 值不包括路径起止折点间间隙的距离。\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 在折线输入的情况下,`coordinate` 所属路径的索引。\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `coordinate` 所属线段的索引(相对于路径)。 如果 `coordinate` 代表输入线的一个折点,则 `segmentId` 将返回前一个折点的索引。 如果 `coordinate` `inputLine` 的第一个折点,则 `segmentId` 的值将为 0"
1935
1935
  }
1936
1936
  },
1937
1937
  "parametersInfo": {
@@ -2119,8 +2119,8 @@
2119
2119
  "bundle": "core",
2120
2120
  "sinceVersion": "1.26",
2121
2121
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
2122
- "description": "Indicates whether a geometry has a value at a given key or index.",
2123
- "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",
2122
+ "description": "指示几何在给定键或索引处是否有值。",
2123
+ "examples": "\n##### 示例\n\n具有 z 值的点\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\n键不存在的面\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
2124
2124
  "completion": {
2125
2125
  "label": "HasValue",
2126
2126
  "detail": "HasValue(inputGeometry, key) -> Boolean",
@@ -2130,7 +2130,7 @@
2130
2130
  "kind": 3,
2131
2131
  "documentation": {
2132
2132
  "kind": "markdown",
2133
- "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)"
2133
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n指示几何在给定键或索引处是否有值。\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 要检查的几何。\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 要检查的键或属性名称。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2134
2134
  }
2135
2135
  },
2136
2136
  "parametersInfo": {
@@ -2144,8 +2144,8 @@
2144
2144
  "bundle": "core",
2145
2145
  "sinceVersion": "1.26",
2146
2146
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
2147
- "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.",
2148
- "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",
2147
+ "description": "检查几何中嵌套多个层级的属性或索引是否存在值。 这允许您一步深入到嵌套结构中,而不是检查每个层级中的值。 如果结构的每个层级中均存在键和索引且包含非空值,则返回 `true`。",
2148
+ "examples": "\n##### 示例\n\n环、坐标和 x 值均存在且有值\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\n环不存在\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\n环和坐标存在,但 m 值不存在\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",
2149
2149
  "completion": {
2150
2150
  "label": "HasValue",
2151
2151
  "detail": "HasValue(inputGeometry, keys) -> Boolean",
@@ -2155,7 +2155,7 @@
2155
2155
  "kind": 3,
2156
2156
  "documentation": {
2157
2157
  "kind": "markdown",
2158
- "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)"
2158
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n检查几何中嵌套多个层级的属性或索引是否存在值。 这允许您一步深入到嵌套结构中,而不是检查每个层级中的值。 如果结构的每个层级中均存在键和索引且包含非空值,则返回 `true`。\n\n**参数**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 要检查的字典或功能。\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)> - 要在结构的每个层级中检查的键或索引数组。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
2159
2159
  }
2160
2160
  },
2161
2161
  "parametersInfo": {
@@ -2345,8 +2345,8 @@
2345
2345
  "bundle": "geometry",
2346
2346
  "sinceVersion": "1.26",
2347
2347
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
2348
- "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._",
2349
- "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",
2348
+ "description": "根据给定测量值或 m 值沿输入线返回第一个坐标。 如果沿输入线未找到测量值,则结果将为 `null`。 尝试在给定测量值处找到坐标时,考虑线的所有部分。 测量值不包括线的路径(或部分)之间的间隙。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何( `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_",
2349
+ "examples": "\n##### 示例\n\n根据给定测量值返回输入折线的坐标\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
2350
2350
  "completion": {
2351
2351
  "label": "MeasureToCoordinate",
2352
2352
  "detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
@@ -2356,7 +2356,7 @@
2356
2356
  "kind": 3,
2357
2357
  "documentation": {
2358
2358
  "kind": "markdown",
2359
- "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`."
2359
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根据给定测量值或 m 值沿输入线返回第一个坐标。 如果沿输入线未找到测量值,则结果将为 `null`。 尝试在给定测量值处找到坐标时,考虑线的所有部分。 测量值不包括线的路径(或部分)之间的间隙。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何( `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\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) - 用于找到坐标的线或路径。 输入线的 `hasM` 必须等于 `true`。 如果 `hasM` `false`,则将返回 `null`。 使用要素作为输入时,要素的几何必须是折线。\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 从线起点沿 `inputLine` 找到坐标的测量值或 m 值。 尝试在给定测量值处找到坐标时,考虑线的所有部分。 测量值不包括线的路径(或部分)之间的间隙。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回具有以下属性的字典。 如果沿输入线未找到测量值,则结果将为 `null`。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 根据给定测量值沿 `inputLine` 的点的第一个坐标。\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `inputLine` 起点沿线测量到 `coordinate` 的平面距离。 在路径不相连的折线中,`distanceAlong` 值不包括路径起止折点间间隙的距离。\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 在折线输入的情况下,`coordinate` 所属路径的索引。\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `coordinate` 所属线段的索引(相对于路径)。 如果 `coordinate` 代表输入线的一个折点,则 `segmentId` 将返回前一个折点的索引。 如果 `coordinate` `inputLine` 的第一个折点,则 `segmentId` 的值将为 0"
2360
2360
  }
2361
2361
  },
2362
2362
  "parametersInfo": {
@@ -2480,7 +2480,7 @@
2480
2480
  "kind": 3,
2481
2481
  "documentation": {
2482
2482
  "kind": "markdown",
2483
- "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) - "
2483
+ "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) - `searchPoint` 与 `inputGeometry` 至最近坐标的段之间的空间关系。 可能的值: \n\n`left` - `searchPoint` 位于 `inputGeometry` 的左侧。\n\n`right` - `searchPoint` 位于 `inputGeometry` 的右侧。\n\n`straddle` - `searchPoint` 横跨或位于 `inputGeometry` 的上方。"
2484
2484
  }
2485
2485
  },
2486
2486
  "parametersInfo": {
@@ -2505,7 +2505,7 @@
2505
2505
  "kind": 3,
2506
2506
  "documentation": {
2507
2507
  "kind": "markdown",
2508
- "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) - "
2508
+ "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) - `searchPoint` 与 `inputGeometry` 至最近折点的段之间的空间关系。 可能的值: \n\n`left` - `searchPoint` 位于 `inputGeometry` 的左侧。\n\n`right` - `searchPoint` 位于 `inputGeometry` 的右侧。\n\n`straddle` - `searchPoint` 横跨或位于 `inputGeometry` 的上方。"
2509
2509
  }
2510
2510
  },
2511
2511
  "parametersInfo": {
@@ -2619,8 +2619,8 @@
2619
2619
  "bundle": "geometry",
2620
2620
  "sinceVersion": "1.26",
2621
2621
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
2622
- "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._",
2623
- "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",
2622
+ "description": "返回搜索点到输入线的最近坐标和到该坐标的距离。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何( `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_",
2623
+ "examples": "\n##### 示例\n\n根据打开弹出窗口单击的位置,返回到输入折线的最近坐标的距离。\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
2624
2624
  "completion": {
2625
2625
  "label": "PointToCoordinate",
2626
2626
  "detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
@@ -2630,7 +2630,7 @@
2630
2630
  "kind": 3,
2631
2631
  "documentation": {
2632
2632
  "kind": "markdown",
2633
- "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`."
2633
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回搜索点到输入线的最近坐标和到该坐标的距离。\n\n_可视化和标签配置文件中的要素几何 会根据视图的比例分辨率进行概化以提高绘制性能。 因此,在这些上下文中使用要素的几何( `$feature`)作为任何几何函数的输入 将返回因比例级别而异的结果。 其他配置文件,例如弹出窗口,提供全分辨率几何。_\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) - 用于获取最近坐标的线或路径。 使用要素作为输入时,要素的几何必须是折线。\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 根据其找到 `inputLine` 的最近坐标的点。\n\n**返回值**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \n返回具有以下属性的字典。\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - 表示沿 `inputLine` `searchPoint` 的最近坐标的点坐标。 如果 `searchPoint` 中的 `hasZ` `false`,则在 x/y 坐标中执行搜索,且 z 值被插值。\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `searchPoint` `coordinate` 的平面距离。\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `inputLine` 起点沿线测量到 `coordinate` 的平面距离。 在路径不相连的折线中,`distanceAlong` 值不包括路径起止折点间间隙的距离。\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 在折线输入的情况下,`coordinate` 所属路径的索引。\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - `coordinate` 所属线段的索引(相对于路径)。 如果 `coordinate` 代表输入线的一个折点,则 `segmentId` 将返回前一个折点的索引。 如果 `coordinate` `inputLine` 的第一个折点,则 `segmentId` 的值将为 0"
2634
2634
  }
2635
2635
  },
2636
2636
  "parametersInfo": {
@@ -3076,7 +3076,7 @@
3076
3076
  "sinceVersion": "1.7",
3077
3077
  "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode",
3078
3078
  "description": "返回要素中的关联属性域描述的代码。",
3079
- "examples": "\n##### 示例\n\n打印所参考的字段的属性域描述。\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
3079
+ "examples": "\n##### 示例\n\n打印参考字段的属性域代码。\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
3080
3080
  "completion": {
3081
3081
  "label": "DomainCode",
3082
3082
  "detail": "DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text",
@@ -3299,8 +3299,8 @@
3299
3299
  "bundle": "core",
3300
3300
  "sinceVersion": "1.20",
3301
3301
  "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
3302
- "description": "Indicates whether a feature has a given field and if that field has a value.",
3303
- "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",
3302
+ "description": "指示要素是否具有给定字段,以及该字段是否有值。",
3303
+ "examples": "\n##### 示例\n\n如果要素属性不存在或为空,则返回 false\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",
3304
3304
  "completion": {
3305
3305
  "label": "HasValue",
3306
3306
  "detail": "HasValue(inputFeature, fieldName) -> Boolean",
@@ -3310,7 +3310,7 @@
3310
3310
  "kind": 3,
3311
3311
  "documentation": {
3312
3312
  "kind": "markdown",
3313
- "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)"
3313
+ "value": "**[起始版本 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n指示要素是否具有给定字段,以及该字段是否有值。\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 要检查的要素。\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 要检查的字段名。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3314
3314
  }
3315
3315
  },
3316
3316
  "parametersInfo": {
@@ -3431,8 +3431,8 @@
3431
3431
  "bundle": "core",
3432
3432
  "sinceVersion": "1.26",
3433
3433
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
3434
- "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.",
3435
- "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",
3434
+ "description": "如果字典中的键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。",
3435
+ "examples": "\n##### 示例\n\nDefaultValue 返回定义的值\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\n如果指定键出没有值,则 DefaultValue 返回默认值。\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\n如果键不存在,则 DefaultValue 返回默认值。\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",
3436
3436
  "completion": {
3437
3437
  "label": "DefaultValue",
3438
3438
  "detail": "DefaultValue(container, key, defaultValue) -> Any",
@@ -3442,7 +3442,7 @@
3442
3442
  "kind": 3,
3443
3443
  "documentation": {
3444
3444
  "kind": "markdown",
3445
- "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`."
3445
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n如果字典中的键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。\n\n**参数**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - 要检查的字典或附件。\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 要检查的键。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 如果键不存在,或指定键处的值为 `null` 或空文本值,则返回该值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n如果已定义,则返回指定键处的值。 否则,返回 `defaultValue` 中指定的值。"
3446
3446
  }
3447
3447
  },
3448
3448
  "parametersInfo": {
@@ -3455,8 +3455,8 @@
3455
3455
  "name": "defaultvalue",
3456
3456
  "bundle": "core",
3457
3457
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
3458
- "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.",
3459
- "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",
3458
+ "description": "如果嵌套字典中至少一个键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。",
3459
+ "examples": "\n##### 示例\n\nDefaultValue 返回定义的值\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\n如果指定键出没有值,则 DefaultValue 返回默认值。\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\n如果键不存在,则 DefaultValue 返回默认值。\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\n检查包含键的字典中的数组内是否存在空值\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",
3460
3460
  "completion": {
3461
3461
  "label": "DefaultValue",
3462
3462
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -3466,7 +3466,7 @@
3466
3466
  "kind": 3,
3467
3467
  "documentation": {
3468
3468
  "kind": "markdown",
3469
- "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`."
3469
+ "value": "如果嵌套字典中至少一个键不存在,或指定键处的值为 `null` 或空文本值,则返回指定默认值。\n\n**参数**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - 要检查的字典或附件。\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)> - 要在容器结构的每个层级中检查的键或索引数组。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 如果至少一个键或索引不存在,或指定键处的值为 `null` 或空文本值,则返回该值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n如果已定义,则返回指定键或索引处的值。 否则,返回 `defaultValue` 中指定的值。"
3470
3470
  }
3471
3471
  },
3472
3472
  "parametersInfo": {
@@ -3657,8 +3657,8 @@
3657
3657
  "bundle": "core",
3658
3658
  "sinceVersion": "1.20",
3659
3659
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
3660
- "description": "Indicates whether a dictionary has a given key and if that key has a value.",
3661
- "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",
3660
+ "description": "指示字典是否具有给定键以及该键是否具有值。",
3661
+ "examples": "\n##### 示例\n\n具有值的键的字典\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\n具有没有值的键的字典\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\n没有提供键的字典\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\n没有提供键的字典\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
3662
3662
  "completion": {
3663
3663
  "label": "HasValue",
3664
3664
  "detail": "HasValue(inputDictionary, key) -> Boolean",
@@ -3668,7 +3668,7 @@
3668
3668
  "kind": 3,
3669
3669
  "documentation": {
3670
3670
  "kind": "markdown",
3671
- "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)"
3671
+ "value": "**[起始版本 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n指示字典是否具有给定键以及该键是否具有值。\n\n**参数**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - 要检查的字典或附件。\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 要检查的密匙或字段名称。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3672
3672
  }
3673
3673
  },
3674
3674
  "parametersInfo": {
@@ -3682,8 +3682,8 @@
3682
3682
  "bundle": "core",
3683
3683
  "sinceVersion": "1.26",
3684
3684
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
3685
- "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.",
3686
- "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",
3685
+ "description": "检查字典中嵌套多个层级的属性是否存在值。 这允许您一步深入到嵌套结构中,而不是检查每个层级中的值。 如果结构的每个层级中均存在键和索引且包含非空值,则返回 `true`。",
3686
+ "examples": "\n##### 示例\n\n检查具有检查值的键的字典\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\n检查包含不存在的键的字典中的值\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\n检查包含存在键的字典中的数组内的值\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",
3687
3687
  "completion": {
3688
3688
  "label": "HasValue",
3689
3689
  "detail": "HasValue(inputDictionary, keys) -> Boolean",
@@ -3693,7 +3693,7 @@
3693
3693
  "kind": 3,
3694
3694
  "documentation": {
3695
3695
  "kind": "markdown",
3696
- "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)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3696
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n检查字典中嵌套多个层级的属性是否存在值。 这允许您一步深入到嵌套结构中,而不是检查每个层级中的值。 如果结构的每个层级中均存在键和索引且包含非空值,则返回 `true`。\n\n**参数**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - 要检查的字典或附件。\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - 要在结构的每个层级中检查的键或索引数组。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3697
3697
  }
3698
3698
  },
3699
3699
  "parametersInfo": {
@@ -4682,8 +4682,8 @@
4682
4682
  "bundle": "core",
4683
4683
  "sinceVersion": "1.26",
4684
4684
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
4685
- "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.",
4686
- "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",
4685
+ "description": "如果数组中的索引不存在,或指定索引处的值为 `null` 或空文本值,则返回指定默认值。",
4686
+ "examples": "\n##### 示例\n\n给定索引处有值的数组\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\n给定索引处无值的数组\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\n给定索引处值为 null 的数组\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
4687
4687
  "completion": {
4688
4688
  "label": "DefaultValue",
4689
4689
  "detail": "DefaultValue(container, index, defaultValue) -> Any",
@@ -4693,7 +4693,7 @@
4693
4693
  "kind": 3,
4694
4694
  "documentation": {
4695
4695
  "kind": "markdown",
4696
- "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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - 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`."
4696
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n如果数组中的索引不存在,或指定索引处的值为 `null` 或空文本值,则返回指定默认值。\n\n**参数**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - 要检查的输入数组。\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 要检查的索引。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 如果索引不存在,或指定索引处的值为 `null` 或空文本值,则返回该值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n如果已定义,则返回指定索引处的值。 否则,返回 `defaultValue` 中指定的值。"
4697
4697
  }
4698
4698
  },
4699
4699
  "parametersInfo": {
@@ -4706,8 +4706,8 @@
4706
4706
  "name": "defaultvalue",
4707
4707
  "bundle": "core",
4708
4708
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
4709
- "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.",
4710
- "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",
4709
+ "description": "检查多维数组中嵌套多个层级的索引是否有值,并在存在时返回该值。 否则,如果至少一个嵌套键或索引不存在,或指定键或索引处的值为 `null` 或空文本值,则返回指定默认值。 这允许您一步深入到嵌套结构中,而不是检查每个数组内的值。",
4710
+ "examples": "\n##### 示例\n\n嵌套索引处有值的数组\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\n嵌套索引处无值的数组\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\n父索引处无值的数组\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\n带有嵌套值的字典数组\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",
4711
4711
  "completion": {
4712
4712
  "label": "DefaultValue",
4713
4713
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -4717,7 +4717,7 @@
4717
4717
  "kind": 3,
4718
4718
  "documentation": {
4719
4719
  "kind": "markdown",
4720
- "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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - The input array to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**返回值**: [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`."
4720
+ "value": "检查多维数组中嵌套多个层级的索引是否有值,并在存在时返回该值。 否则,如果至少一个嵌套键或索引不存在,或指定键或索引处的值为 `null` 或空文本值,则返回指定默认值。 这允许您一步深入到嵌套结构中,而不是检查每个数组内的值。\n\n**参数**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - 要检查的输入数组。\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - 要在容器结构的每个层级中检查的键或索引数组。\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - 如果至少一个键或索引不存在,或指定键处的值为 `null` 或空文本值,则返回该值。\n\n**返回值**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \n如果已定义,则返回指定键或索引处的值。 否则,返回 `defaultValue` 中指定的值。"
4721
4721
  }
4722
4722
  },
4723
4723
  "parametersInfo": {
@@ -4884,8 +4884,8 @@
4884
4884
  "bundle": "core",
4885
4885
  "sinceVersion": "1.26",
4886
4886
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
4887
- "description": "Indicates whether an array has a value at the given index.",
4888
- "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",
4887
+ "description": "指示给定索引处的数组是否有值。",
4888
+ "examples": "\n##### 示例\n\n给定索引处有值的数组\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\n给定索引处无值的数组\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\n给定索引处值为 null 的数组\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
4889
4889
  "completion": {
4890
4890
  "label": "HasValue",
4891
4891
  "detail": "HasValue(inputArray, index) -> Boolean",
@@ -4895,7 +4895,7 @@
4895
4895
  "kind": 3,
4896
4896
  "documentation": {
4897
4897
  "kind": "markdown",
4898
- "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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - 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)"
4898
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n指示给定索引处的数组是否有值。\n\n**参数**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - 要检查的数组。\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 要检查的索引。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4899
4899
  }
4900
4900
  },
4901
4901
  "parametersInfo": {
@@ -4909,8 +4909,8 @@
4909
4909
  "bundle": "core",
4910
4910
  "sinceVersion": "1.26",
4911
4911
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
4912
- "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.",
4913
- "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",
4912
+ "description": "检查多维数组中嵌套多个层级的索引是否有值。 这允许您一步深入到嵌套结构中,而不是检查每个数组内的值。 如果结构的每个层级中均存在索引且包含非空值,则返回 `true`。",
4913
+ "examples": "\n##### 示例\n\n嵌套索引处有值的数组\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\n嵌套索引处无值的数组\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\n父索引处无值的数组\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\n带有嵌套值的字典数组\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",
4914
4914
  "completion": {
4915
4915
  "label": "HasValue",
4916
4916
  "detail": "HasValue(inputArray, indexes) -> Boolean",
@@ -4920,7 +4920,7 @@
4920
4920
  "kind": 3,
4921
4921
  "documentation": {
4922
4922
  "kind": "markdown",
4923
- "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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - The array to check.\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - An array of the keys or indexes to check in each level of the structure.\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4923
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n检查多维数组中嵌套多个层级的索引是否有值。 这允许您一步深入到嵌套结构中,而不是检查每个数组内的值。 如果结构的每个层级中均存在索引且包含非空值,则返回 `true`。\n\n**参数**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; - 要检查的数组。\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)&lt;[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - 要在结构的每个层级中检查的键或索引数组。\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4924
4924
  }
4925
4925
  },
4926
4926
  "parametersInfo": {
@@ -6032,7 +6032,7 @@
6032
6032
  "bundle": "core",
6033
6033
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
6034
6034
  "description": "将两个日期相减,并以指定的单位返回差值。",
6035
- "examples": "\n##### 示例\n\n将两个日期相减,并返回时间段\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\n试_Subtracts two Dates and returns the difference_________________________验.\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
6035
+ "examples": "\n##### 示例\n\n将两个日期相减,并返回时间段\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\n将两个日期相减,并返回差值。\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
6036
6036
  "completion": {
6037
6037
  "label": "DateDiff",
6038
6038
  "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
@@ -6906,17 +6906,17 @@
6906
6906
  ]
6907
6907
  },
6908
6908
  {
6909
- "id": "knowledgegraph_functions",
6910
- "title": "试_Knowledge graph functions__________________________验",
6909
+ "id": "knowledge-graph_functions",
6910
+ "title": "知识图谱功能",
6911
6911
  "items": [
6912
6912
  {
6913
6913
  "type": "function",
6914
6914
  "name": "knowledgegraphbyportalitem",
6915
6915
  "bundle": "knowledge-graph",
6916
6916
  "sinceVersion": "1.26",
6917
- "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
6918
- "description": "试_Returns a knowledge graph from a portal item________________________验.",
6919
- "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",
6917
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
6918
+ "description": "从门户项目返回一个知识图谱。",
6919
+ "examples": "\n##### 示例\n\n返回门户项目中的知识图谱。\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
6920
6920
  "completion": {
6921
6921
  "label": "KnowledgeGraphByPortalItem",
6922
6922
  "detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
@@ -6926,7 +6926,7 @@
6926
6926
  "kind": 3,
6927
6927
  "documentation": {
6928
6928
  "kind": "markdown",
6929
- "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)"
6929
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n从门户项目返回一个知识图谱。\n\n**参数**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - 从中查询要素的门户。\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 引用知识图谱服务的门户项目的 GUID _该值必须是文字文本。_\n\n**返回值**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
6930
6930
  }
6931
6931
  },
6932
6932
  "parametersInfo": {
@@ -6939,19 +6939,19 @@
6939
6939
  "name": "querygraph",
6940
6940
  "bundle": "knowledge-graph",
6941
6941
  "sinceVersion": "1.26",
6942
- "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
6943
- "description": "试_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________验.",
6944
- "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",
6942
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph",
6943
+ "description": "使用 openCypher 查询知识图谱,并返回图谱中的实体和关系集合及其属性。",
6944
+ "examples": "\n##### 示例\n\n查询知识图谱中包含的 `Student` 实体的信息。\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使用绑定参数查询知识图谱。\n\n```arcade\n// searches for entities with a `name` property that matches the given string in the query parameters\n// OR falls within the given geom bounding box\n// query returns both the supplier and the part that it buys\nvar query = `MATCH (s:Supplier)-[:buys_part]-(p:Part)\n WHERE s.name=$name OR esri.graph.ST_Intersects($geom, s.geometry)\n RETURN s,p`;\n \n var results = QueryGraph(\n $graph,\n query,\n {\n \"name\": \"Supplier 1\",\n \"geom\": Polygon({\n rings: [[\n [38,-78],\n [39,-79],\n [39,-76],\n [-38,-76],\n [-38,-78]\n ]]\n })\n }\n );\n```\n\n",
6945
6945
  "completion": {
6946
6946
  "label": "QueryGraph",
6947
- "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
6947
+ "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Array",
6948
6948
  "insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
6949
6949
  "insertTextMode": 2,
6950
6950
  "insertTextFormat": 2,
6951
6951
  "kind": 3,
6952
6952
  "documentation": {
6953
6953
  "kind": "markdown",
6954
- "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)"
6954
+ "value": "**[起始版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n使用 openCypher 查询知识图谱,并返回图谱中的实体和关系集合及其属性。\n\n**参数**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - 要查询的知识图谱。\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 针对知识图谱执行的 openCypher 查询。\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - openCypher 查询的命名查询参数字典。 字典中的参数名称或键区分大小写。 参数取决于外部图谱存储,可能类型如下:`Array`、`Date`、`Dictionary`、`Geometry`、`Number`、`Text`\n\n**返回值**: Array"
6955
6955
  }
6956
6956
  },
6957
6957
  "parametersInfo": {