@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": "建立新圖徵集,其中包含與給定子類型代碼相符的所有圖徵。",
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建立新圖徵集,其中包含與給定子類型代碼相符的所有圖徵。\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) - 用於篩選圖徵集或圖層中圖徵的子類型代碼。\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
670
670
  }
671
671
  },
672
672
  "parametersInfo": {
@@ -1502,7 +1502,7 @@
1502
1502
  "sinceVersion": "1.7",
1503
1503
  "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode",
1504
1504
  "description": "傳回圖徵中網域描述的相關代碼。",
1505
- "examples": "\n##### 範例\n\n列印參考之欄位的網域描述。\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
1505
+ "examples": "\n##### 範例\n\n列印參考之欄位的網域代碼。\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
1506
1506
  "completion": {
1507
1507
  "label": "DomainCode",
1508
1508
  "detail": "DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text",
@@ -1725,8 +1725,8 @@
1725
1725
  "bundle": "core",
1726
1726
  "sinceVersion": "1.20",
1727
1727
  "link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
1728
- "description": "Indicates whether a feature has a given field and if that field has a value.",
1729
- "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",
1728
+ "description": "指示圖徵是否具有給定欄位,及該欄位是否具有值。",
1729
+ "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",
1730
1730
  "completion": {
1731
1731
  "label": "HasValue",
1732
1732
  "detail": "HasValue(inputFeature, fieldName) -> Boolean",
@@ -1736,7 +1736,7 @@
1736
1736
  "kind": 3,
1737
1737
  "documentation": {
1738
1738
  "kind": "markdown",
1739
- "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)"
1739
+ "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)"
1740
1740
  }
1741
1741
  },
1742
1742
  "parametersInfo": {
@@ -1857,8 +1857,8 @@
1857
1857
  "bundle": "core",
1858
1858
  "sinceVersion": "1.26",
1859
1859
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
1860
- "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.",
1861
- "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",
1860
+ "description": "如果字典中的索引鍵不存在或指定索引鍵的值為 `null` 或空文字值,則傳回指定的預設值。",
1861
+ "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",
1862
1862
  "completion": {
1863
1863
  "label": "DefaultValue",
1864
1864
  "detail": "DefaultValue(container, key, defaultValue) -> Any",
@@ -1868,7 +1868,7 @@
1868
1868
  "kind": 3,
1869
1869
  "documentation": {
1870
1870
  "kind": "markdown",
1871
- "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`."
1871
+ "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` 中指定的值。"
1872
1872
  }
1873
1873
  },
1874
1874
  "parametersInfo": {
@@ -1881,8 +1881,8 @@
1881
1881
  "name": "defaultvalue",
1882
1882
  "bundle": "core",
1883
1883
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
1884
- "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.",
1885
- "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",
1884
+ "description": "如果巢狀字典中至少有一個索引鍵不存在或指定索引鍵的值為 `null` 或空文字值,則傳回指定的預設值。",
1885
+ "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使用存在的索引鍵檢查字典內陣列中的 null 值\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",
1886
1886
  "completion": {
1887
1887
  "label": "DefaultValue",
1888
1888
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -1892,7 +1892,7 @@
1892
1892
  "kind": 3,
1893
1893
  "documentation": {
1894
1894
  "kind": "markdown",
1895
- "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`."
1895
+ "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` 中指定的值。"
1896
1896
  }
1897
1897
  },
1898
1898
  "parametersInfo": {
@@ -2083,8 +2083,8 @@
2083
2083
  "bundle": "core",
2084
2084
  "sinceVersion": "1.20",
2085
2085
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
2086
- "description": "Indicates whether a dictionary has a given key and if that key has a value.",
2087
- "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",
2086
+ "description": "指示字典是否具有給定索引鍵,及該索引鍵是否具有值。",
2087
+ "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",
2088
2088
  "completion": {
2089
2089
  "label": "HasValue",
2090
2090
  "detail": "HasValue(inputDictionary, key) -> Boolean",
@@ -2094,7 +2094,7 @@
2094
2094
  "kind": 3,
2095
2095
  "documentation": {
2096
2096
  "kind": "markdown",
2097
- "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)"
2097
+ "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)"
2098
2098
  }
2099
2099
  },
2100
2100
  "parametersInfo": {
@@ -2108,8 +2108,8 @@
2108
2108
  "bundle": "core",
2109
2109
  "sinceVersion": "1.26",
2110
2110
  "link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
2111
- "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.",
2112
- "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",
2111
+ "description": "檢查字典中巢狀多層的屬性是否有值。 這允許您進一步鑽取巢狀結構,而不是檢查每個級別上的值。 如果結構的每個級別的索引鍵和索引都存在並且包含非 null 值,則傳回 `true`。",
2112
+ "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",
2113
2113
  "completion": {
2114
2114
  "label": "HasValue",
2115
2115
  "detail": "HasValue(inputDictionary, keys) -> Boolean",
@@ -2119,7 +2119,7 @@
2119
2119
  "kind": 3,
2120
2120
  "documentation": {
2121
2121
  "kind": "markdown",
2122
- "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)"
2122
+ "value": "**[自版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n檢查字典中巢狀多層的屬性是否有值。 這允許您進一步鑽取巢狀結構,而不是檢查每個級別上的值。 如果結構的每個級別的索引鍵和索引都存在並且包含非 null 值,則傳回 `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)"
2123
2123
  }
2124
2124
  },
2125
2125
  "parametersInfo": {
@@ -2547,8 +2547,8 @@
2547
2547
  "bundle": "core",
2548
2548
  "sinceVersion": "1.26",
2549
2549
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
2550
- "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.",
2551
- "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",
2550
+ "description": "如果幾何中的索引鍵不存在或指定索引鍵的值為 `null` 或空文字值,則傳回指定的預設值。",
2551
+ "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",
2552
2552
  "completion": {
2553
2553
  "label": "DefaultValue",
2554
2554
  "detail": "DefaultValue(container, key, defaultValue) -> Any",
@@ -2558,7 +2558,7 @@
2558
2558
  "kind": 3,
2559
2559
  "documentation": {
2560
2560
  "kind": "markdown",
2561
- "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`."
2561
+ "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` 中指定的值。"
2562
2562
  }
2563
2563
  },
2564
2564
  "parametersInfo": {
@@ -2571,8 +2571,8 @@
2571
2571
  "name": "defaultvalue",
2572
2572
  "bundle": "core",
2573
2573
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
2574
- "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.",
2575
- "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",
2574
+ "description": "如果幾何的巢狀屬性中至少有一個索引鍵不存在,或指定索引鍵的值為 `null` 或空文字值,則傳回指定的預設值。",
2575
+ "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",
2576
2576
  "completion": {
2577
2577
  "label": "DefaultValue",
2578
2578
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -2582,7 +2582,7 @@
2582
2582
  "kind": 3,
2583
2583
  "documentation": {
2584
2584
  "kind": "markdown",
2585
- "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)&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`."
2585
+ "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)&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` 中指定的值。"
2586
2586
  }
2587
2587
  },
2588
2588
  "parametersInfo": {
@@ -2747,8 +2747,8 @@
2747
2747
  "bundle": "geometry",
2748
2748
  "sinceVersion": "1.26",
2749
2749
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
2750
- "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._",
2751
- "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",
2750
+ "description": "根據給定距離傳回沿輸入線的座標。 嘗試尋找給定距離處的座標時,會考慮直線的所有部分。 此距離不包括線條的路徑 (或部分) 之間的間隙。 如果沿輸入線未找到距離,則結果將為 `null`。\n\n_視覺化和標示設定檔中的圖徵幾何會根據視圖的比例解析度 進行一般化,以提高繪圖效能。 因此,將圖徵的幾何 (即`$feature`) 作為這些上下文中任何幾何函數的輸入, 將在每個比例級別傳回不同的結果。 其他設定檔 (例如快顯視窗) 則提供完整解析度幾何。_",
2751
+ "examples": "\n##### 範例\n\n根據給定的距離值傳回輸入折線的座標\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n",
2752
2752
  "completion": {
2753
2753
  "label": "DistanceToCoordinate",
2754
2754
  "detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
@@ -2758,7 +2758,7 @@
2758
2758
  "kind": 3,
2759
2759
  "documentation": {
2760
2760
  "kind": "markdown",
2761
- "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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The distance used to find the coordinate along `inputLine` from the start of the line.\n\n**返回值**: [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`."
2761
+ "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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [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`。"
2762
2762
  }
2763
2763
  },
2764
2764
  "parametersInfo": {
@@ -2946,8 +2946,8 @@
2946
2946
  "bundle": "core",
2947
2947
  "sinceVersion": "1.26",
2948
2948
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
2949
- "description": "Indicates whether a geometry has a value at a given key or index.",
2950
- "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",
2949
+ "description": "指示幾何在給定索引鍵或索引處是否有值。",
2950
+ "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",
2951
2951
  "completion": {
2952
2952
  "label": "HasValue",
2953
2953
  "detail": "HasValue(inputGeometry, key) -> Boolean",
@@ -2957,7 +2957,7 @@
2957
2957
  "kind": 3,
2958
2958
  "documentation": {
2959
2959
  "kind": "markdown",
2960
- "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)"
2960
+ "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)"
2961
2961
  }
2962
2962
  },
2963
2963
  "parametersInfo": {
@@ -2971,8 +2971,8 @@
2971
2971
  "bundle": "core",
2972
2972
  "sinceVersion": "1.26",
2973
2973
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
2974
- "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.",
2975
- "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",
2974
+ "description": "檢查幾何中巢狀多層的屬性或索引是否有值。 這允許您進一步鑽取巢狀結構,而不是檢查每個級別上的值。 如果結構的每個級別的索引鍵和索引都存在並且包含非 null 值,則傳回 `true`。",
2975
+ "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",
2976
2976
  "completion": {
2977
2977
  "label": "HasValue",
2978
2978
  "detail": "HasValue(inputGeometry, keys) -> Boolean",
@@ -2982,7 +2982,7 @@
2982
2982
  "kind": 3,
2983
2983
  "documentation": {
2984
2984
  "kind": "markdown",
2985
- "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)&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)"
2985
+ "value": "**[自版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n檢查幾何中巢狀多層的屬性或索引是否有值。 這允許您進一步鑽取巢狀結構,而不是檢查每個級別上的值。 如果結構的每個級別的索引鍵和索引都存在並且包含非 null 值,則傳回 `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)&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)"
2986
2986
  }
2987
2987
  },
2988
2988
  "parametersInfo": {
@@ -3172,8 +3172,8 @@
3172
3172
  "bundle": "geometry",
3173
3173
  "sinceVersion": "1.26",
3174
3174
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
3175
- "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._",
3176
- "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",
3175
+ "description": "根據給定的測量或 m 值傳回沿輸入線的第一個座標。 如果沿輸入線未找到測量,則結果將為 `null`。 嘗試尋找給定測量處的座標時,會考慮直線的所有部分。 此測量不包括線條的路徑 (或部分) 之間的間隙。\n\n_視覺化和標示設定檔中的圖徵幾何會根據視圖的比例解析度 進行一般化,以提高繪圖效能。 因此,將圖徵的幾何 (即`$feature`) 作為這些上下文中任何幾何函數的輸入, 將在每個比例級別傳回不同的結果。 其他設定檔 (例如快顯視窗) 則提供完整解析度幾何。_",
3176
+ "examples": "\n##### 範例\n\n根據給定的測量值傳回輸入折線的座標\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
3177
3177
  "completion": {
3178
3178
  "label": "MeasureToCoordinate",
3179
3179
  "detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
@@ -3183,7 +3183,7 @@
3183
3183
  "kind": 3,
3184
3184
  "documentation": {
3185
3185
  "kind": "markdown",
3186
- "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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The measure, or m-value, from which to find a coordinate along `inputLine` from the start of the line.\n\n**返回值**: [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`."
3186
+ "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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - 從中尋找座標的線條或路徑。 輸入線必須具有等於 `true` `hasM`。 `hasM` `false`,則將傳回 `null`。 將圖徵作為輸入時,圖徵的幾何必須是折線。\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 測量或 m 值,從中找出從線條的開頭沿著 `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`。"
3187
3187
  }
3188
3188
  },
3189
3189
  "parametersInfo": {
@@ -3307,7 +3307,7 @@
3307
3307
  "kind": 3,
3308
3308
  "documentation": {
3309
3309
  "kind": "markdown",
3310
- "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) - "
3310
+ "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` 之上。"
3311
3311
  }
3312
3312
  },
3313
3313
  "parametersInfo": {
@@ -3332,7 +3332,7 @@
3332
3332
  "kind": 3,
3333
3333
  "documentation": {
3334
3334
  "kind": "markdown",
3335
- "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) - "
3335
+ "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` 之上。"
3336
3336
  }
3337
3337
  },
3338
3338
  "parametersInfo": {
@@ -3446,8 +3446,8 @@
3446
3446
  "bundle": "geometry",
3447
3447
  "sinceVersion": "1.26",
3448
3448
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
3449
- "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._",
3450
- "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",
3449
+ "description": "傳回搜尋點到輸入線的最近座標和距該座標的距離。\n\n_視覺化和標示設定檔中的圖徵幾何會根據視圖的比例解析度 進行一般化,以提高繪圖效能。 因此,將圖徵的幾何 (即`$feature`) 作為這些上下文中任何幾何函數的輸入, 將在每個比例級別傳回不同的結果。 其他設定檔 (例如快顯視窗) 則提供完整解析度幾何。_",
3450
+ "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",
3451
3451
  "completion": {
3452
3452
  "label": "PointToCoordinate",
3453
3453
  "detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
@@ -3457,7 +3457,7 @@
3457
3457
  "kind": 3,
3458
3458
  "documentation": {
3459
3459
  "kind": "markdown",
3460
- "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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to get the nearest coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point from which to find the nearest coordinate of the `inputLine`.\n\n**返回值**: [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`."
3460
+ "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)&lt;[Point](https://developers.arcgis.com/arcade/guide/types/#point)&gt; \\| [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`。"
3461
3461
  }
3462
3462
  },
3463
3463
  "parametersInfo": {
@@ -5437,7 +5437,7 @@
5437
5437
  "bundle": "core",
5438
5438
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
5439
5439
  "description": "減去兩個日期,並傳回指定單位中的差異。",
5440
- "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",
5440
+ "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",
5441
5441
  "completion": {
5442
5442
  "label": "DateDiff",
5443
5443
  "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
@@ -6311,17 +6311,17 @@
6311
6311
  ]
6312
6312
  },
6313
6313
  {
6314
- "id": "knowledgegraph_functions",
6315
- "title": "試_Knowledge graph functions__________________________驗",
6314
+ "id": "knowledge-graph_functions",
6315
+ "title": "知識圖函數",
6316
6316
  "items": [
6317
6317
  {
6318
6318
  "type": "function",
6319
6319
  "name": "knowledgegraphbyportalitem",
6320
6320
  "bundle": "knowledge-graph",
6321
6321
  "sinceVersion": "1.26",
6322
- "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
6323
- "description": "試_Returns a knowledge graph from a portal item________________________驗.",
6324
- "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",
6322
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
6323
+ "description": "從入口網站項目中傳回知識圖。",
6324
+ "examples": "\n##### 範例\n\n從入口網站項目中傳回知識圖。\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
6325
6325
  "completion": {
6326
6326
  "label": "KnowledgeGraphByPortalItem",
6327
6327
  "detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
@@ -6331,7 +6331,7 @@
6331
6331
  "kind": 3,
6332
6332
  "documentation": {
6333
6333
  "kind": "markdown",
6334
- "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)"
6334
+ "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)"
6335
6335
  }
6336
6336
  },
6337
6337
  "parametersInfo": {
@@ -6344,19 +6344,19 @@
6344
6344
  "name": "querygraph",
6345
6345
  "bundle": "knowledge-graph",
6346
6346
  "sinceVersion": "1.26",
6347
- "link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
6348
- "description": "試_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________驗.",
6349
- "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",
6347
+ "link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph",
6348
+ "description": "使用 openCypher 查詢來查詢知識圖,並傳回圖形中的實體和關係集及其屬性。",
6349
+ "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",
6350
6350
  "completion": {
6351
6351
  "label": "QueryGraph",
6352
- "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
6352
+ "detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Array",
6353
6353
  "insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
6354
6354
  "insertTextMode": 2,
6355
6355
  "insertTextFormat": 2,
6356
6356
  "kind": 3,
6357
6357
  "documentation": {
6358
6358
  "kind": "markdown",
6359
- "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)"
6359
+ "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"
6360
6360
  }
6361
6361
  },
6362
6362
  "parametersInfo": {
@@ -7158,8 +7158,8 @@
7158
7158
  "bundle": "core",
7159
7159
  "sinceVersion": "1.26",
7160
7160
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
7161
- "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.",
7162
- "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",
7161
+ "description": "如果陣列中的索引不存在或指定索引處的值為 `null` 或空文字值,則傳回指定的預設值。",
7162
+ "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",
7163
7163
  "completion": {
7164
7164
  "label": "DefaultValue",
7165
7165
  "detail": "DefaultValue(container, index, defaultValue) -> Any",
@@ -7169,7 +7169,7 @@
7169
7169
  "kind": 3,
7170
7170
  "documentation": {
7171
7171
  "kind": "markdown",
7172
- "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`."
7172
+ "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` 中指定的值。"
7173
7173
  }
7174
7174
  },
7175
7175
  "parametersInfo": {
@@ -7182,8 +7182,8 @@
7182
7182
  "name": "defaultvalue",
7183
7183
  "bundle": "core",
7184
7184
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
7185
- "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.",
7186
- "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",
7185
+ "description": "檢查多維陣列中巢狀多層的索引是否有值,如果存在則傳回該值。 否則,如果至少一個巢狀索引鍵或索引不存在,或指定索引鍵或索引處的值為 `null` 或空文字值,則此函數傳回指定的預設值。 這允許您進一步鑽取巢狀結構,而不是檢查每個陣列中的值。",
7186
+ "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",
7187
7187
  "completion": {
7188
7188
  "label": "DefaultValue",
7189
7189
  "detail": "DefaultValue(container, keys, defaultValue) -> Any",
@@ -7193,7 +7193,7 @@
7193
7193
  "kind": 3,
7194
7194
  "documentation": {
7195
7195
  "kind": "markdown",
7196
- "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`."
7196
+ "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` 中指定的值。"
7197
7197
  }
7198
7198
  },
7199
7199
  "parametersInfo": {
@@ -7360,8 +7360,8 @@
7360
7360
  "bundle": "core",
7361
7361
  "sinceVersion": "1.26",
7362
7362
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
7363
- "description": "Indicates whether an array has a value at the given index.",
7364
- "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",
7363
+ "description": "指示陣列在給定索引處是否有值。",
7364
+ "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",
7365
7365
  "completion": {
7366
7366
  "label": "HasValue",
7367
7367
  "detail": "HasValue(inputArray, index) -> Boolean",
@@ -7371,7 +7371,7 @@
7371
7371
  "kind": 3,
7372
7372
  "documentation": {
7373
7373
  "kind": "markdown",
7374
- "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)"
7374
+ "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)"
7375
7375
  }
7376
7376
  },
7377
7377
  "parametersInfo": {
@@ -7385,8 +7385,8 @@
7385
7385
  "bundle": "core",
7386
7386
  "sinceVersion": "1.26",
7387
7387
  "link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
7388
- "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.",
7389
- "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",
7388
+ "description": "檢查多維陣列中巢狀多層的索引是否有值。 這允許您進一步鑽取巢狀結構,而不是檢查每個陣列中的值。 如果結構的每個級別的索引都存在並且包含非 null 值,則傳回 `true`。",
7389
+ "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",
7390
7390
  "completion": {
7391
7391
  "label": "HasValue",
7392
7392
  "detail": "HasValue(inputArray, indexes) -> Boolean",
@@ -7396,7 +7396,7 @@
7396
7396
  "kind": 3,
7397
7397
  "documentation": {
7398
7398
  "kind": "markdown",
7399
- "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)"
7399
+ "value": "**[自版本 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n檢查多維陣列中巢狀多層的索引是否有值。 這允許您進一步鑽取巢狀結構,而不是檢查每個陣列中的值。 如果結構的每個級別的索引都存在並且包含非 null 值,則傳回 `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)"
7400
7400
  }
7401
7401
  },
7402
7402
  "parametersInfo": {