@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.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +113 -113
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +19 -19
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +111 -111
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +66 -66
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +3 -3
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +4 -4
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +4 -4
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-e1cb02b3.js → p-0a2edf01.js} +2 -2
- package/dist/arcgis-coding-components/p-11e79992.js +6 -0
- package/dist/arcgis-coding-components/{p-f75beb80.js → p-36e2cbc2.js} +3 -3
- package/dist/arcgis-coding-components/{p-457e3916.js → p-4406b5a8.js} +2 -2
- package/dist/arcgis-coding-components/{p-87d7ad9e.js → p-4eb30e60.js} +1 -1
- package/dist/arcgis-coding-components/{p-7f9d3fdc.js → p-619ca372.js} +1 -1
- package/dist/arcgis-coding-components/{p-7e0e8ecc.js → p-71125c69.js} +2 -2
- package/dist/arcgis-coding-components/{p-0bab0228.js → p-8d7f0979.js} +2 -2
- package/dist/arcgis-coding-components/p-9b8091c1.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-ad86a5f5.js → p-bd81fdff.js} +11 -11
- package/dist/arcgis-coding-components/{p-f23f7fee.js → p-ecc8dd8a.js} +2 -2
- package/dist/arcgis-coding-components/{p-4648782b.js → p-f9016c56.js} +2 -2
- package/dist/cjs/{arcade-defaults-5dd9ebb7.js → arcade-defaults-b30ccec8.js} +271 -236
- package/dist/cjs/{arcade-mode-0b4c53a1.js → arcade-mode-eb755260.js} +11 -14
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +160 -184
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-fe7f8980.js → css-9e907aa0.js} +1 -1
- package/dist/cjs/{cssMode-4c9b3a32.js → cssMode-e4189b13.js} +3 -3
- package/dist/cjs/{html-b044fbba.js → html-2582ae43.js} +3 -3
- package/dist/cjs/{htmlMode-956a6ffa.js → htmlMode-0edcf1ee.js} +3 -3
- package/dist/cjs/{index-aaceaf1f.js → index-54d6f9be.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-6c55ac8b.js → javascript-425c653a.js} +4 -4
- package/dist/cjs/{jsonMode-d83e322c.js → jsonMode-eea03515.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-5c5ffa3e.js → tsMode-b92c9221.js} +3 -3
- package/dist/cjs/{typescript-6143656a.js → typescript-cfc1221c.js} +3 -3
- package/dist/components/arcade-api.js +20 -18
- package/dist/components/arcade-contribution.js +9 -8
- package/dist/components/arcade-defaults.js +188 -168
- package/dist/components/arcade-mode.js +10 -12
- package/dist/components/arcade-results.js +29 -83
- package/dist/components/arcade-suggestions.js +15 -12
- package/dist/components/arcade-variables.js +30 -21
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +61 -49
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +37 -23
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +10 -1
- package/dist/components/utilities.js +4 -4
- package/dist/esm/{arcade-defaults-2d7283d4.js → arcade-defaults-a5dc6132.js} +267 -233
- package/dist/esm/{arcade-mode-a8abe5af.js → arcade-mode-d06b6e4f.js} +11 -14
- package/dist/esm/arcgis-arcade-api_6.entry.js +160 -184
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-d31a02ca.js → css-59b4804d.js} +1 -1
- package/dist/esm/{cssMode-5ee45e91.js → cssMode-2bce7da7.js} +3 -3
- package/dist/esm/{html-5c2e488c.js → html-3ad47fc0.js} +3 -3
- package/dist/esm/{htmlMode-376cd5e8.js → htmlMode-6cb73c91.js} +3 -3
- package/dist/esm/{index-1b265749.js → index-ee54d182.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-13ddec2b.js → javascript-8917f926.js} +4 -4
- package/dist/esm/{jsonMode-674e89d6.js → jsonMode-9a1dbf00.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-4c4398d7.js → tsMode-2caf1509.js} +3 -3
- package/dist/esm/{typescript-b328b622.js → typescript-a3abccc0.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +2 -7
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +0 -1
- package/dist/types/components.d.ts +2 -7
- package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
- package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +2 -2
- package/dist/types/utils/fields.d.ts +1 -0
- package/dist/types/utils/markdown.d.ts +3 -0
- package/dist/types/utils/profile/editor-profile.d.ts +49 -63
- package/dist/types/utils/profile/types.d.ts +122 -1
- package/dist/types/utils/profile/utils.d.ts +22 -9
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-6d56a4b8.entry.js +0 -6
- package/dist/arcgis-coding-components/p-a75f5087.js +0 -6
- package/dist/components/functional-components.js +0 -15
- package/dist/types/utils/functional-components.d.ts +0 -7
- package/dist/types/utils/json-format.d.ts +0 -1
|
@@ -307,8 +307,8 @@
|
|
|
307
307
|
"bundle": "core",
|
|
308
308
|
"sinceVersion": "1.26",
|
|
309
309
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
310
|
-
"description": "
|
|
311
|
-
"examples": "\n##### Ví dụ\n\
|
|
310
|
+
"description": "Trả về giá trị mặc định cụ thể nếu chỉ mục trong mảng không tồn tại hoặc giá trị tại chỉ mục cụ thể là `null` hoặc giá trị văn bản trống.",
|
|
311
|
+
"examples": "\n##### Ví dụ\n\nMảng có giá trị tại chỉ mục cho trước\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 4, \"No data\");\n// returns 901\n```\n\nMảng không có giá trị tại chỉ mục cho trước\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 5, \"No data\");\n// returns \"No data\"\n```\n\nMảng có giá trị rỗng tại chỉ mục cho trước\n\n```arcade\nvar a = [23,4,null,36,901]\nDefaultValue(a, 2, \"No data\");\n// returns \"No data\"\n```\n\n",
|
|
312
312
|
"completion": {
|
|
313
313
|
"label": "DefaultValue",
|
|
314
314
|
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
"kind": 3,
|
|
319
319
|
"documentation": {
|
|
320
320
|
"kind": "markdown",
|
|
321
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
321
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị mặc định cụ thể nếu chỉ mục trong mảng không tồn tại hoặc giá trị tại chỉ mục cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Thông số**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Mảng đầu vào cần kiểm tra.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Chỉ mục cần kiểm tra.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Trả về giá trị này nếu chỉ mục không tồn tại hoặc giá trị tại chỉ mục cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Giá trị trả về**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nTrả về giá trị tại chỉ mục cụ thể nếu được xác định. Nếu không, trả về giá trị cụ thể tại `defaultValue`."
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
324
|
"parametersInfo": {
|
|
@@ -331,8 +331,8 @@
|
|
|
331
331
|
"name": "defaultvalue",
|
|
332
332
|
"bundle": "core",
|
|
333
333
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
334
|
-
"description": "
|
|
335
|
-
"examples": "\n##### Ví dụ\n\
|
|
334
|
+
"description": "Kiểm tra xem chỉ mục lồng ghép nhiều mức sâu trong mảng đa chiều có giá trị hay không và trả về giá trị đó nếu có. Nếu không, hàm này trả về giá trị mặc định cụ thể nếu ít nhất một trong các chỉ mục hoặc khóa lồng ghép không tồn tại hoặc giá trị tại chỉ mục hoặc khóa cụ thể là `null` hoặc giá trị văn bản trống. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị trong từng mảng.",
|
|
335
|
+
"examples": "\n##### Ví dụ\n\nMảng có giá trị tại chỉ mục lồng ghép\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\nMảng không có giá trị tại chỉ mục lồng ghép\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\nMảng không có giá trị tại chỉ mục gốc\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\nMảng trong từ điển có giá trị lồng ghép\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",
|
|
336
336
|
"completion": {
|
|
337
337
|
"label": "DefaultValue",
|
|
338
338
|
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
"kind": 3,
|
|
343
343
|
"documentation": {
|
|
344
344
|
"kind": "markdown",
|
|
345
|
-
"value": "
|
|
345
|
+
"value": "Kiểm tra xem chỉ mục lồng ghép nhiều mức sâu trong mảng đa chiều có giá trị hay không và trả về giá trị đó nếu có. Nếu không, hàm này trả về giá trị mặc định cụ thể nếu ít nhất một trong các chỉ mục hoặc khóa lồng ghép không tồn tại hoặc giá trị tại chỉ mục hoặc khóa cụ thể là `null` hoặc giá trị văn bản trống. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị trong từng mảng.\n\n**Thông số**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Mảng đầu vào cần kiểm tra.\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)> - Mảng khóa hoặc chỉ mục cần kiểm tra trong từng mức cấu trúc bộ chứa.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Trả về giá trị này nếu ít nhất một trong các chỉ mục hoặc khóa không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Giá trị trả về**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nTrả về giá trị tại chỉ mục hoặc khóa cụ thể nếu được xác định. Nếu không, trả về giá trị cụ thể tại `defaultValue`."
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
"parametersInfo": {
|
|
@@ -509,8 +509,8 @@
|
|
|
509
509
|
"bundle": "core",
|
|
510
510
|
"sinceVersion": "1.26",
|
|
511
511
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
512
|
-
"description": "
|
|
513
|
-
"examples": "\n##### Ví dụ\n\
|
|
512
|
+
"description": "Cho biết mảng có giá trị tại chỉ mục cho trước hay không.",
|
|
513
|
+
"examples": "\n##### Ví dụ\n\nMảng có giá trị tại chỉ mục cho trước\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 4);\n// returns true\n```\n\nMảng không có giá trị tại chỉ mục cho trước\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 5);\n// returns false\n```\n\nMảng có giá trị rỗng tại chỉ mục cho trước\n\n```arcade\nvar a = [23,4,null,36,901]\nHasValue(a, 2);\n// returns false\n```\n\n",
|
|
514
514
|
"completion": {
|
|
515
515
|
"label": "HasValue",
|
|
516
516
|
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
"kind": 3,
|
|
521
521
|
"documentation": {
|
|
522
522
|
"kind": "markdown",
|
|
523
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
523
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCho biết mảng có giá trị tại chỉ mục cho trước hay không.\n\n**Thông số**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Mảng cần kiểm tra.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Chỉ mục cần kiểm tra.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
524
524
|
}
|
|
525
525
|
},
|
|
526
526
|
"parametersInfo": {
|
|
@@ -534,8 +534,8 @@
|
|
|
534
534
|
"bundle": "core",
|
|
535
535
|
"sinceVersion": "1.26",
|
|
536
536
|
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
537
|
-
"description": "
|
|
538
|
-
"examples": "\n##### Ví dụ\n\
|
|
537
|
+
"description": "Kiểm tra xem chỉ mục lồng ghép nhiều mức sâu trong mảng đa chiều có giá trị hay không. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị trong từng mảng. Trả về `true` nếu chỉ mục tại từng mức trong cấu trúc tồn tại và chứa giá trị không phải là giá trị rỗng.",
|
|
538
|
+
"examples": "\n##### Ví dụ\n\nMảng có giá trị tại chỉ mục lồng ghép\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 4]);\n// returns true\n```\n\nMảng không có giá trị tại chỉ mục lồng ghép\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [2, 10]);\n// returns false\n```\n\nMảng không có giá trị tại chỉ mục gốc\n\n```arcade\nvar a = [23,4,[0,0,1,1,0],36,901]\nHasValue(a, [10, 5]);\n// returns false\n```\n\nMảng trong từ điển có giá trị lồng ghép\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",
|
|
539
539
|
"completion": {
|
|
540
540
|
"label": "HasValue",
|
|
541
541
|
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"kind": 3,
|
|
546
546
|
"documentation": {
|
|
547
547
|
"kind": "markdown",
|
|
548
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
548
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nKiểm tra xem chỉ mục lồng ghép nhiều mức sâu trong mảng đa chiều có giá trị hay không. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị trong từng mảng. Trả về `true` nếu chỉ mục tại từng mức trong cấu trúc tồn tại và chứa giá trị không phải là giá trị rỗng.\n\n**Thông số**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - Mảng cần kiểm tra.\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - Mảng khóa hoặc chỉ mục cần kiểm tra trong từng mức cấu trúc.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
549
549
|
}
|
|
550
550
|
},
|
|
551
551
|
"parametersInfo": {
|
|
@@ -903,62 +903,6 @@
|
|
|
903
903
|
}
|
|
904
904
|
]
|
|
905
905
|
},
|
|
906
|
-
{
|
|
907
|
-
"id": "knowledgegraph_functions",
|
|
908
|
-
"title": "Đ_Knowledge graph functions__________________________ớ",
|
|
909
|
-
"items": [
|
|
910
|
-
{
|
|
911
|
-
"type": "function",
|
|
912
|
-
"name": "knowledgegraphbyportalitem",
|
|
913
|
-
"bundle": "knowledge-graph",
|
|
914
|
-
"sinceVersion": "1.26",
|
|
915
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
916
|
-
"description": "Đ_Returns a knowledge graph from a portal item________________________ớ.",
|
|
917
|
-
"examples": "\n##### Ví dụ\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",
|
|
918
|
-
"completion": {
|
|
919
|
-
"label": "KnowledgeGraphByPortalItem",
|
|
920
|
-
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
921
|
-
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
922
|
-
"insertTextMode": 2,
|
|
923
|
-
"insertTextFormat": 2,
|
|
924
|
-
"kind": 3,
|
|
925
|
-
"documentation": {
|
|
926
|
-
"kind": "markdown",
|
|
927
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĐ_Returns a knowledge graph from a portal item________________________ớ.\n\n**Thông số**\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**Giá trị trả về**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
"parametersInfo": {
|
|
931
|
-
"min": 2,
|
|
932
|
-
"max": 2
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
"type": "function",
|
|
937
|
-
"name": "querygraph",
|
|
938
|
-
"bundle": "knowledge-graph",
|
|
939
|
-
"sinceVersion": "1.26",
|
|
940
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
|
|
941
|
-
"description": "Đ_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________ớ.",
|
|
942
|
-
"examples": "\n##### Ví dụ\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",
|
|
943
|
-
"completion": {
|
|
944
|
-
"label": "QueryGraph",
|
|
945
|
-
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
|
|
946
|
-
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
947
|
-
"insertTextMode": 2,
|
|
948
|
-
"insertTextFormat": 2,
|
|
949
|
-
"kind": 3,
|
|
950
|
-
"documentation": {
|
|
951
|
-
"kind": "markdown",
|
|
952
|
-
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
953
|
-
}
|
|
954
|
-
},
|
|
955
|
-
"parametersInfo": {
|
|
956
|
-
"min": 2,
|
|
957
|
-
"max": 3
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
]
|
|
961
|
-
},
|
|
962
906
|
{
|
|
963
907
|
"id": "portal_functions",
|
|
964
908
|
"title": "Hàm cổng thông tin",
|
|
@@ -1067,6 +1011,62 @@
|
|
|
1067
1011
|
}
|
|
1068
1012
|
]
|
|
1069
1013
|
},
|
|
1014
|
+
{
|
|
1015
|
+
"id": "knowledge-graph_functions",
|
|
1016
|
+
"title": "Hàm đồ thị kiến thức",
|
|
1017
|
+
"items": [
|
|
1018
|
+
{
|
|
1019
|
+
"type": "function",
|
|
1020
|
+
"name": "knowledgegraphbyportalitem",
|
|
1021
|
+
"bundle": "knowledge-graph",
|
|
1022
|
+
"sinceVersion": "1.26",
|
|
1023
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#knowledgegraphbyportalitem",
|
|
1024
|
+
"description": "Trả về đồ thị kiến thức từ mục cổng thông tin.",
|
|
1025
|
+
"examples": "\n##### Ví dụ\n\nTrả về đồ thị kiến thức từ mục cổng thông tin.\n\n```arcade\nvar knowledgeGraph = KnowledgeGraphByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n);\n```\n\n",
|
|
1026
|
+
"completion": {
|
|
1027
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
1028
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
1029
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
1030
|
+
"insertTextMode": 2,
|
|
1031
|
+
"insertTextFormat": 2,
|
|
1032
|
+
"kind": 3,
|
|
1033
|
+
"documentation": {
|
|
1034
|
+
"kind": "markdown",
|
|
1035
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về đồ thị kiến thức từ mục cổng thông tin.\n\n**Thông số**\n\n- **portalObject**: [Portal](https://developers.arcgis.com/arcade/guide/types/#portal) - Cổng thông tin để truy vấn đối tượng.\n- **itemId**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - GUID của mục cổng thông tin đang tham chiếu dịch vụ đồ thị kiến thức. _Giá trị này phải là ký tự văn bản._\n\n**Giá trị trả về**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
"parametersInfo": {
|
|
1039
|
+
"min": 2,
|
|
1040
|
+
"max": 2
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"type": "function",
|
|
1045
|
+
"name": "querygraph",
|
|
1046
|
+
"bundle": "knowledge-graph",
|
|
1047
|
+
"sinceVersion": "1.26",
|
|
1048
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledge-graph_functions/#querygraph",
|
|
1049
|
+
"description": "Truy vấn đồ thị kiến thức bằng truy vấn openCypher và trả về tập hợp thực thể và mối quan hệ trong đồ thị, cùng với thuộc tính.",
|
|
1050
|
+
"examples": "\n##### Ví dụ\n\nTruy vấn đồ thị kiến thức để lấy thông tin về thực thể `Student` trong đó.\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\nTruy vấn đồ thị kiến thức bằng thông số liên kết.\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",
|
|
1051
|
+
"completion": {
|
|
1052
|
+
"label": "QueryGraph",
|
|
1053
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Array",
|
|
1054
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
1055
|
+
"insertTextMode": 2,
|
|
1056
|
+
"insertTextFormat": 2,
|
|
1057
|
+
"kind": 3,
|
|
1058
|
+
"documentation": {
|
|
1059
|
+
"kind": "markdown",
|
|
1060
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTruy vấn đồ thị kiến thức bằng truy vấn openCypher và trả về tập hợp thực thể và mối quan hệ trong đồ thị, cùng với thuộc tính.\n\n**Thông số**\n\n- **graph**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph) - Đồ thị kiến thức cần truy vấn.\n- **openCypherQuery**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Truy vấn openCypher sẽ được thực hiện với đồ thị kiến thức.\n- **queryParameters** (_Optional_): [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - Từ điển các thông số truy vấn được đặt tên cho truy vấn openCypher. Tên thông số hoặc khóa trong từ điển có phân biệt chữ hoa và chữ thường. Thông số đã chấp nhận phụ thuộc vào kho lưu trữ đồ thị bên ngoài và có thể thuộc loại: `Array`, `Date`, `Dictionary`, `Geometry`, `Number`, `Text`\n\n**Giá trị trả về**: Array"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"parametersInfo": {
|
|
1064
|
+
"min": 2,
|
|
1065
|
+
"max": 3
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
1070
|
{
|
|
1071
1071
|
"id": "feature_functions",
|
|
1072
1072
|
"title": "Hàm đối tượng",
|
|
@@ -1103,7 +1103,7 @@
|
|
|
1103
1103
|
"sinceVersion": "1.7",
|
|
1104
1104
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#domaincode",
|
|
1105
1105
|
"description": "Trả về mã của một thông tin mô tả miền được liên kết trong một đối tượng.",
|
|
1106
|
-
"examples": "\n##### Ví dụ\n\nin
|
|
1106
|
+
"examples": "\n##### Ví dụ\n\nin mã miền cho trường được tham chiếu.\n\n```arcade\nDomainCode($feature, 'Enabled', 'True')\n```\n\n",
|
|
1107
1107
|
"completion": {
|
|
1108
1108
|
"label": "DomainCode",
|
|
1109
1109
|
"detail": "DomainCode(inputFeature, fieldName, value?, subtype?) -> Number,Text",
|
|
@@ -1326,8 +1326,8 @@
|
|
|
1326
1326
|
"bundle": "core",
|
|
1327
1327
|
"sinceVersion": "1.20",
|
|
1328
1328
|
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
1329
|
-
"description": "
|
|
1330
|
-
"examples": "\n##### Ví dụ\n\
|
|
1329
|
+
"description": "Cho biết liệu đối tượng có trường nhất định hay không và liệu trường đó có giá trị hay không.",
|
|
1330
|
+
"examples": "\n##### Ví dụ\n\nTrả về false nếu thuộc tính đối tượng không tồn tại hoặc trống\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",
|
|
1331
1331
|
"completion": {
|
|
1332
1332
|
"label": "HasValue",
|
|
1333
1333
|
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
@@ -1337,7 +1337,7 @@
|
|
|
1337
1337
|
"kind": 3,
|
|
1338
1338
|
"documentation": {
|
|
1339
1339
|
"kind": "markdown",
|
|
1340
|
-
"value": "**[Kể từ phiên bản 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
1340
|
+
"value": "**[Kể từ phiên bản 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCho biết liệu đối tượng có trường nhất định hay không và liệu trường đó có giá trị hay không.\n\n**Thông số**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Đối tượng cần kiểm tra.\n- **fieldName**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Tên trường cần kiểm tra.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1341
1341
|
}
|
|
1342
1342
|
},
|
|
1343
1343
|
"parametersInfo": {
|
|
@@ -1957,8 +1957,8 @@
|
|
|
1957
1957
|
"bundle": "data-access",
|
|
1958
1958
|
"sinceVersion": "1.25",
|
|
1959
1959
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode",
|
|
1960
|
-
"description": "
|
|
1961
|
-
"examples": "\n##### Ví dụ\n\
|
|
1960
|
+
"description": "Tạo FeatureSet mới có tất cả các đối tượng trùng khớp với mã subtype đã cho.",
|
|
1961
|
+
"examples": "\n##### Ví dụ\n\nLọc đối tượng bằng mã subtype\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
|
|
1962
1962
|
"completion": {
|
|
1963
1963
|
"label": "FilterBySubtypeCode",
|
|
1964
1964
|
"detail": "FilterBySubtypeCode(features, subtypeCode) -> FeatureSet",
|
|
@@ -1968,7 +1968,7 @@
|
|
|
1968
1968
|
"kind": 3,
|
|
1969
1969
|
"documentation": {
|
|
1970
1970
|
"kind": "markdown",
|
|
1971
|
-
"value": "**[Kể từ phiên bản 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
1971
|
+
"value": "**[Kể từ phiên bản 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTạo FeatureSet mới có tất cả các đối tượng trùng khớp với mã subtype đã cho.\n\n**Thông số**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - FeatureSet, hoặc lớp, để lọc.\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Mã subtype được sử dụng để lọc đối tượng trong FeatureSet hoặc lớp.\n\n**Giá trị trả về**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
1972
1972
|
}
|
|
1973
1973
|
},
|
|
1974
1974
|
"parametersInfo": {
|
|
@@ -3046,8 +3046,8 @@
|
|
|
3046
3046
|
"bundle": "core",
|
|
3047
3047
|
"sinceVersion": "1.26",
|
|
3048
3048
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
3049
|
-
"description": "
|
|
3050
|
-
"examples": "\n##### Ví dụ\n\
|
|
3049
|
+
"description": "Trả về giá trị mặc định cụ thể nếu khóa trong hình học không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.",
|
|
3050
|
+
"examples": "\n##### Ví dụ\n\nĐiểm có giá trị 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Điểm không có giá trị z\n\n```arcade\nDefaultValue(Geometry($feature), \"z\", 1000)\n// Geometry($feature).hasZ is false\n// returns 1000\n```\n\n",
|
|
3051
3051
|
"completion": {
|
|
3052
3052
|
"label": "DefaultValue",
|
|
3053
3053
|
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
@@ -3057,7 +3057,7 @@
|
|
|
3057
3057
|
"kind": 3,
|
|
3058
3058
|
"documentation": {
|
|
3059
3059
|
"kind": "markdown",
|
|
3060
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3060
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị mặc định cụ thể nếu khóa trong hình học không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Thông số**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Hình học đầu vào cần kiểm tra.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Khóa cần kiểm tra.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Trả về giá trị này nếu khóa không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Giá trị trả về**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nTrả về giá trị tại khóa cụ thể nếu được xác định. Nếu không, trả về giá trị cụ thể tại `defaultValue`."
|
|
3061
3061
|
}
|
|
3062
3062
|
},
|
|
3063
3063
|
"parametersInfo": {
|
|
@@ -3070,8 +3070,8 @@
|
|
|
3070
3070
|
"name": "defaultvalue",
|
|
3071
3071
|
"bundle": "core",
|
|
3072
3072
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
3073
|
-
"description": "
|
|
3074
|
-
"examples": "\n##### Ví dụ\n\
|
|
3073
|
+
"description": "Trả về giá trị mặc định cụ thể nếu ít nhất một trong các khóa trong thuộc tính lồng ghép của hình học không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.",
|
|
3074
|
+
"examples": "\n##### Ví dụ\n\nToàn bộ vòng đệm, tọa độ và giá trị x đều tồn tại và có giá trị\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\nVòng đệm không tồn tại\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\nVòng đệm và tọa độ tồn tại nhưng giá trị m không tồn tại\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",
|
|
3075
3075
|
"completion": {
|
|
3076
3076
|
"label": "DefaultValue",
|
|
3077
3077
|
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
@@ -3081,7 +3081,7 @@
|
|
|
3081
3081
|
"kind": 3,
|
|
3082
3082
|
"documentation": {
|
|
3083
3083
|
"kind": "markdown",
|
|
3084
|
-
"value": "
|
|
3084
|
+
"value": "Trả về giá trị mặc định cụ thể nếu ít nhất một trong các khóa trong thuộc tính lồng ghép của hình học không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Thông số**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Hình học đầu vào cần kiểm tra.\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)> - Mảng khóa hoặc chỉ mục cần kiểm tra trong từng mức cấu trúc bộ chứa.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Trả về giá trị này nếu ít nhất một trong các chỉ mục hoặc khóa không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Giá trị trả về**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nTrả về giá trị tại chỉ mục hoặc khóa cụ thể nếu được xác định. Nếu không, trả về giá trị cụ thể tại `defaultValue`."
|
|
3085
3085
|
}
|
|
3086
3086
|
},
|
|
3087
3087
|
"parametersInfo": {
|
|
@@ -3246,8 +3246,8 @@
|
|
|
3246
3246
|
"bundle": "geometry",
|
|
3247
3247
|
"sinceVersion": "1.26",
|
|
3248
3248
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
3249
|
-
"description": "
|
|
3250
|
-
"examples": "\n##### Ví dụ\n\
|
|
3249
|
+
"description": "Trả về tọa độ dọc theo đường đầu vào dựa trên khoảng cách cho trước. Mọi đoạn đường đều được xem xét khi tìm tọa độ tại khoảng cách cho trước. Khoảng cách không bao gồm khoảng trống giữa các đường dẫn (hoặc đoạn) của đường. Nếu không tìm thấy khoảng cách dọc theo đường đầu vào thì sẽ trả về kết quả `null`.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._",
|
|
3250
|
+
"examples": "\n##### Ví dụ\n\nTrả về tọa độ của đường đầu vào dựa trên giá trị khoảng cách cho trước\n\n```arcade\nvar result = DistanceToCoordinate($feature, 1038);\n\nreturn result.coordinate;\n```\n\n",
|
|
3251
3251
|
"completion": {
|
|
3252
3252
|
"label": "DistanceToCoordinate",
|
|
3253
3253
|
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
@@ -3257,7 +3257,7 @@
|
|
|
3257
3257
|
"kind": 3,
|
|
3258
3258
|
"documentation": {
|
|
3259
3259
|
"kind": "markdown",
|
|
3260
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3260
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về tọa độ dọc theo đường đầu vào dựa trên khoảng cách cho trước. Mọi đoạn đường đều được xem xét khi tìm tọa độ tại khoảng cách cho trước. Khoảng cách không bao gồm khoảng trống giữa các đường dẫn (hoặc đoạn) của đường. Nếu không tìm thấy khoảng cách dọc theo đường đầu vào thì sẽ trả về kết quả `null`.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._\n\n**Thông số**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Đường hoặc đường dẫn để tìm tọa độ. Khi sử dụng Đối tượng làm đầu vào, hình học của đối tượng phải là dạng đường.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách được dùng để tìm tọa độ dọc theo `inputLine` từ điểm bắt đầu đường. Mọi đoạn đường đều được xem xét khi tìm tọa độ tại khoảng cách cho trước. Khoảng cách không bao gồm khoảng trống giữa các đường dẫn (hoặc đoạn) của đường. \n\n**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nTrả về từ điển với các thuộc tính sau đây. Nếu không tìm thấy khoảng cách dọc theo đường đầu vào thì sẽ trả về kết quả `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Tọa độ của điểm dọc theo `inputLine` dựa trên giá trị khoảng cách cho trước.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ điểm đầu `inputLine` được đo dọc theo đường cho đến `coordinate`. Trong các đường mà các đường dẫn không liên kết với nhau, giá trị `distanceAlong` không bao gồm khoảng cách giữa các đỉnh bắt đầu và đỉnh kết thúc của các đường dẫn.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Trong trường hợp một đường là đầu vào, thì chỉ mục của đường dẫn có chứa `coordinate`.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Chỉ mục (liên quan đến đường dẫn) của đoạn đường chứa `coordinate`. Nếu `coordinate` đại diện cho đỉnh của đường đầu vào, thì `segmentId` sẽ trả về chỉ mục của đỉnh trước đó. Nếu `coordinate` là đỉnh đầu tiên của `inputLine`, thì giá trị của `segmentId` sẽ là `0`."
|
|
3261
3261
|
}
|
|
3262
3262
|
},
|
|
3263
3263
|
"parametersInfo": {
|
|
@@ -3445,8 +3445,8 @@
|
|
|
3445
3445
|
"bundle": "core",
|
|
3446
3446
|
"sinceVersion": "1.26",
|
|
3447
3447
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
3448
|
-
"description": "
|
|
3449
|
-
"examples": "\n##### Ví dụ\n\
|
|
3448
|
+
"description": "Cho biết hình học có giá trị tại chỉ mục hoặc khóa cho trước hay không.",
|
|
3449
|
+
"examples": "\n##### Ví dụ\n\nĐiểm có giá trị z\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Point\"){\n return HasValue(Geometry($feature), \"z\")\n // returns true\n}\n```\n\nVùng có khóa không tồn tại\n\n```arcade\nif( TypeOf(Geometry($feature)) == \"Polygon\"){\n return HasValue(Geometry($feature), \"verticalCoordinateSystem\")\n // returns false\n}\n```\n\n",
|
|
3450
3450
|
"completion": {
|
|
3451
3451
|
"label": "HasValue",
|
|
3452
3452
|
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
@@ -3456,7 +3456,7 @@
|
|
|
3456
3456
|
"kind": 3,
|
|
3457
3457
|
"documentation": {
|
|
3458
3458
|
"kind": "markdown",
|
|
3459
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3459
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCho biết hình học có giá trị tại chỉ mục hoặc khóa cho trước hay không.\n\n**Thông số**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Hình học cần kiểm tra.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Khóa hoặc tên thuộc tính cần kiểm tra.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3460
3460
|
}
|
|
3461
3461
|
},
|
|
3462
3462
|
"parametersInfo": {
|
|
@@ -3470,8 +3470,8 @@
|
|
|
3470
3470
|
"bundle": "core",
|
|
3471
3471
|
"sinceVersion": "1.26",
|
|
3472
3472
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
3473
|
-
"description": "
|
|
3474
|
-
"examples": "\n##### Ví dụ\n\
|
|
3473
|
+
"description": "Kiểm tra xem thuộc tính hoặc chỉ mục lồng ghép nhiều mức sâu trong hình học có giá trị hay không. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị tại từng mức. Trả về `true` nếu chỉ mục và khóa tại từng mức trong cấu trúc tồn tại và chứa giá trị không phải là giá trị rỗng.",
|
|
3474
|
+
"examples": "\n##### Ví dụ\n\nToàn bộ vòng đệm, tọa độ và giá trị x đều tồn tại và có giá trị\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\nVòng đệm không tồn tại\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\nVòng đệm và tọa độ tồn tại nhưng giá trị m không tồn tại\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",
|
|
3475
3475
|
"completion": {
|
|
3476
3476
|
"label": "HasValue",
|
|
3477
3477
|
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
@@ -3481,7 +3481,7 @@
|
|
|
3481
3481
|
"kind": 3,
|
|
3482
3482
|
"documentation": {
|
|
3483
3483
|
"kind": "markdown",
|
|
3484
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3484
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nKiểm tra xem thuộc tính hoặc chỉ mục lồng ghép nhiều mức sâu trong hình học có giá trị hay không. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị tại từng mức. Trả về `true` nếu chỉ mục và khóa tại từng mức trong cấu trúc tồn tại và chứa giá trị không phải là giá trị rỗng.\n\n**Thông số**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Từ điển hoặc đối tượng cần kiểm tra.\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)> - Mảng khóa hoặc chỉ mục cần kiểm tra trong từng mức cấu trúc.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3485
3485
|
}
|
|
3486
3486
|
},
|
|
3487
3487
|
"parametersInfo": {
|
|
@@ -3671,8 +3671,8 @@
|
|
|
3671
3671
|
"bundle": "geometry",
|
|
3672
3672
|
"sinceVersion": "1.26",
|
|
3673
3673
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
3674
|
-
"description": "
|
|
3675
|
-
"examples": "\n##### Ví dụ\n\
|
|
3674
|
+
"description": "Trả về tọa độ đầu tiên dọc theo đường đầu vào dựa trên kết quả phép đo cho trước hoặc giá trị m. Nếu không tìm thấy kết quả phép đo dọc theo đường đầu vào thì sẽ trả về kết quả `null`. Mọi đoạn đường đều được xem xét khi tìm tọa độ tại kết quả phép đo cho trước. Kết quả phép đo không bao gồm khoảng trống giữa các đường dẫn (hoặc đoạn) của đường.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._",
|
|
3675
|
+
"examples": "\n##### Ví dụ\n\nTrả về tọa độ của đường đầu vào dựa trên giá trị kết quả phép đo cho trước\n\n```arcade\nvar result = MeasureToCoordinate(Geometry($feature), 110);\n\nreturn result.coordinate;\n```\n\n",
|
|
3676
3676
|
"completion": {
|
|
3677
3677
|
"label": "MeasureToCoordinate",
|
|
3678
3678
|
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
@@ -3682,7 +3682,7 @@
|
|
|
3682
3682
|
"kind": 3,
|
|
3683
3683
|
"documentation": {
|
|
3684
3684
|
"kind": "markdown",
|
|
3685
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3685
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về tọa độ đầu tiên dọc theo đường đầu vào dựa trên kết quả phép đo cho trước hoặc giá trị m. Nếu không tìm thấy kết quả phép đo dọc theo đường đầu vào thì sẽ trả về kết quả `null`. Mọi đoạn đường đều được xem xét khi tìm tọa độ tại kết quả phép đo cho trước. Kết quả phép đo không bao gồm khoảng trống giữa các đường dẫn (hoặc đoạn) của đường.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._\n\n**Thông số**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Đường hoặc đường dẫn để tìm tọa độ. Đường đầu vào phải có `hasM` bằng `true`. Nếu `hasM` là `false` thì sẽ trả về kết quả `null`. Khi sử dụng Đối tượng làm đầu vào, hình học của đối tượng phải là dạng đường.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Kết quả phép đo hoặc giá trị m được dùng để tìm tọa độ dọc theo `inputLine` từ điểm bắt đầu đường. Mọi đoạn đường đều được xem xét khi tìm tọa độ tại kết quả phép đo cho trước. Kết quả phép đo không bao gồm khoảng trống giữa các đường dẫn (hoặc đoạn) của đường.\n\n**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nTrả về từ điển với các thuộc tính sau đây. Nếu không tìm thấy kết quả phép đo dọc theo đường đầu vào thì sẽ trả về kết quả `null`.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Tọa độ đầu tiên của điểm dọc theo `inputLine` dựa trên giá trị kết quả phép đo cho trước.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ điểm đầu `inputLine` được đo dọc theo đường cho đến `coordinate`. Trong các đường mà các đường dẫn không liên kết với nhau, giá trị `distanceAlong` không bao gồm khoảng cách giữa các đỉnh bắt đầu và đỉnh kết thúc của các đường dẫn.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Trong trường hợp một đường là đầu vào, thì chỉ mục của đường dẫn có chứa `coordinate`.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Chỉ mục (liên quan đến đường dẫn) của đoạn đường chứa `coordinate`. Nếu `coordinate` đại diện cho đỉnh của đường đầu vào, thì `segmentId` sẽ trả về chỉ mục của đỉnh trước đó. Nếu `coordinate` là đỉnh đầu tiên của `inputLine`, thì giá trị của `segmentId` sẽ là `0`."
|
|
3686
3686
|
}
|
|
3687
3687
|
},
|
|
3688
3688
|
"parametersInfo": {
|
|
@@ -3806,7 +3806,7 @@
|
|
|
3806
3806
|
"kind": 3,
|
|
3807
3807
|
"documentation": {
|
|
3808
3808
|
"kind": "markdown",
|
|
3809
|
-
"value": "**[Kể từ phiên bản 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về tọa độ gần nhất (không phải vertex) của hình học đầu vào cho điểm tìm kiếm. Từ điển được trả về cũng bao gồm khoảng cách phẳng ngắn nhất từ điểm tìm kiếm đến tọa độ gần nhất. Nếu điểm tìm kiếm giao với hình học đầu vào thì điểm tìm kiếm được trả về dưới dạng kết quả với khoảng cách bằng không.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._\n\n**Thông số**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Hình học để lấy tọa độ gần nhất.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Điểm để tìm tọa độ gần nhất của `inputGeometry`.\n\n**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nTrả về từ điển với các thuộc tính sau đây.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Tọa độ gần nhất từ `inputGeometry` đến `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ tọa độ gần nhất đến `searchPoint`. Điều này đại diện cho khoảng cách ngắn nhất giữa `inputGeometry` và `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
3809
|
+
"value": "**[Kể từ phiên bản 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về tọa độ gần nhất (không phải vertex) của hình học đầu vào cho điểm tìm kiếm. Từ điển được trả về cũng bao gồm khoảng cách phẳng ngắn nhất từ điểm tìm kiếm đến tọa độ gần nhất. Nếu điểm tìm kiếm giao với hình học đầu vào thì điểm tìm kiếm được trả về dưới dạng kết quả với khoảng cách bằng không.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._\n\n**Thông số**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Hình học để lấy tọa độ gần nhất.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Điểm để tìm tọa độ gần nhất của `inputGeometry`.\n\n**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nTrả về từ điển với các thuộc tính sau đây.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Tọa độ gần nhất từ `inputGeometry` đến `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ tọa độ gần nhất đến `searchPoint`. Điều này đại diện cho khoảng cách ngắn nhất giữa `inputGeometry` và `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Mối quan hệ không gian giữa `searchPoint` và phân đoạn trong `inputGeometry` dẫn tới kết quả tọa độ gần nhất. Giá trị có thể có: \n\n`left` - `searchPoint` nằm bên trái `inputGeometry`.\n\n`right` - `searchPoint` nằm bên phải `inputGeometry`.\n\n`straddle` - `searchPoint` nằm ở vị trí đỉnh hoặc nằm trên cùng `inputGeometry`."
|
|
3810
3810
|
}
|
|
3811
3811
|
},
|
|
3812
3812
|
"parametersInfo": {
|
|
@@ -3831,7 +3831,7 @@
|
|
|
3831
3831
|
"kind": 3,
|
|
3832
3832
|
"documentation": {
|
|
3833
3833
|
"kind": "markdown",
|
|
3834
|
-
"value": "**[Kể từ phiên bản 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về vertex gần nhất của hình học đầu vào cho điểm tìm kiếm. Từ điển được trả về bao gồm khoảng cách phẳng từ điểm tìm kiếm đến vertex gần nhất.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._\n\n**Thông số**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Hình học để lấy vertex gần nhất.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Điểm để tìm vertex gần nhất của `inputGeometry`.\n\n**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nTrả về từ điển với các thuộc tính sau đây.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Vị trí điểm đại diện cho vertex gần nhất từ `inputGeometry` đến `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ vertex gần nhất của hình học đầu vào đến `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - "
|
|
3834
|
+
"value": "**[Kể từ phiên bản 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về vertex gần nhất của hình học đầu vào cho điểm tìm kiếm. Từ điển được trả về bao gồm khoảng cách phẳng từ điểm tìm kiếm đến vertex gần nhất.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._\n\n**Thông số**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Hình học để lấy vertex gần nhất.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Điểm để tìm vertex gần nhất của `inputGeometry`.\n\n**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nTrả về từ điển với các thuộc tính sau đây.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Vị trí điểm đại diện cho vertex gần nhất từ `inputGeometry` đến `searchPoint`.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ vertex gần nhất của hình học đầu vào đến `searchPoint`.\n- **sideOfLine**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Mối quan hệ không gian giữa `searchPoint` và phân đoạn trong `inputGeometry` dẫn tới kết quả đỉnh gần nhất. Giá trị có thể có: \n\n`left` - `searchPoint` nằm bên trái `inputGeometry`.\n\n`right` - `searchPoint` nằm bên phải `inputGeometry`.\n\n`straddle` - `searchPoint` nằm ở vị trí đỉnh hoặc nằm trên cùng `inputGeometry`."
|
|
3835
3835
|
}
|
|
3836
3836
|
},
|
|
3837
3837
|
"parametersInfo": {
|
|
@@ -3945,8 +3945,8 @@
|
|
|
3945
3945
|
"bundle": "geometry",
|
|
3946
3946
|
"sinceVersion": "1.26",
|
|
3947
3947
|
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
3948
|
-
"description": "
|
|
3949
|
-
"examples": "\n##### Ví dụ\n\
|
|
3948
|
+
"description": "Trả về tọa độ gần nhất và khoảng cách từ tọa độ đó của điểm tìm kiếm đến đường đầu vào.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._",
|
|
3949
|
+
"examples": "\n##### Ví dụ\n\nTrả về khoảng cách đến tọa độ gần nhất dọc theo đường đầu vào dựa trên vị trí nhấp để mở cửa sổ pop-up\n\n```arcade\nvar result;\n\nif (TypeOf($userInput) == \"Point\"){\n result = PointToCoordinate(Geometry($feature), $userInput);\n}\n\nreturn result.distanceAlong;\n```\n\n",
|
|
3950
3950
|
"completion": {
|
|
3951
3951
|
"label": "PointToCoordinate",
|
|
3952
3952
|
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
@@ -3956,7 +3956,7 @@
|
|
|
3956
3956
|
"kind": 3,
|
|
3957
3957
|
"documentation": {
|
|
3958
3958
|
"kind": "markdown",
|
|
3959
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
3959
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về tọa độ gần nhất và khoảng cách từ tọa độ đó của điểm tìm kiếm đến đường đầu vào.\n\n_Các dạng hình học của đối tượng trong thông tin ghi nhãn và trực quan hóa được tổng quát hóa theo độ phân giải tỷ lệ của chế độ xem để cải thiện khả năng biểu diễn trên bản vẽ. Do đó, việc sử dụng dạng hình học của đối tượng (tức là `$feature`) làm dữ liệu đầu vào cho bất kỳ hàm hình học nào trong bối cảnh này sẽ trả về các kết quả khác nhau ở mỗi mức tỷ lệ. Các thông tin khác, chẳng hạn như cửa sổ pop-up, cung cấp hình học có độ phân giải đầy đủ._\n\n**Thông số**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - Đường hoặc đường dẫn để lấy tọa độ gần nhất. Khi sử dụng Đối tượng làm đầu vào, hình học của đối tượng phải là dạng đường.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Điểm để tìm tọa độ gần nhất của `inputLine`.\n\n**Giá trị trả về**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \nTrả về từ điển với các thuộc tính sau đây.\n\n- **coordinate**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - Tọa độ điểm đại diện cho tọa độ gần nhất dọc theo `inputLine` đến `searchPoint`. Nếu `hasZ` là `false` trong `searchPoint` thì kết quả tìm kiếm được biểu diễn bằng tọa độ x/y và giá trị z được nội suy.\n- **distance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ `searchPoint` đến `coordinate`.\n- **distanceAlong**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Khoảng cách phẳng từ điểm đầu `inputLine` được đo dọc theo đường cho đến `coordinate`. Trong các đường mà các đường dẫn không liên kết với nhau, giá trị `distanceAlong` không bao gồm khoảng cách giữa các đỉnh bắt đầu và đỉnh kết thúc của các đường dẫn.\n- **partId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Trong trường hợp một đường là đầu vào, thì chỉ mục của đường dẫn có chứa `coordinate`.\n- **segmentId**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Chỉ mục (liên quan đến đường dẫn) của đoạn đường chứa `coordinate`. Nếu `coordinate` đại diện cho đỉnh của đường đầu vào, thì `segmentId` sẽ trả về chỉ mục của đỉnh trước đó. Nếu `coordinate` là đỉnh đầu tiên của `inputLine`, thì giá trị của `segmentId` sẽ là `0`."
|
|
3960
3960
|
}
|
|
3961
3961
|
},
|
|
3962
3962
|
"parametersInfo": {
|
|
@@ -4826,7 +4826,7 @@
|
|
|
4826
4826
|
"bundle": "core",
|
|
4827
4827
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
4828
4828
|
"description": "Trừ đi hai Ngày và trả về hiệu số theo đơn vị xác định.",
|
|
4829
|
-
"examples": "\n##### Ví dụ\n\nTrừ đi hai Ngày và trả về tuổi\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\
|
|
4829
|
+
"examples": "\n##### Ví dụ\n\nTrừ đi hai Ngày và trả về tuổi\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nTrừ đi hai Ngày và trả về hiệu số.\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",
|
|
4830
4830
|
"completion": {
|
|
4831
4831
|
"label": "DateDiff",
|
|
4832
4832
|
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
@@ -6963,8 +6963,8 @@
|
|
|
6963
6963
|
"bundle": "core",
|
|
6964
6964
|
"sinceVersion": "1.26",
|
|
6965
6965
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
6966
|
-
"description": "
|
|
6967
|
-
"examples": "\n##### Ví dụ\n\nDefaultValue
|
|
6966
|
+
"description": "Trả về giá trị mặc định cụ thể nếu khóa trong từ điển không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.",
|
|
6967
|
+
"examples": "\n##### Ví dụ\n\nDefaultValue trả về giá trị xác định\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 trả về giá trị mặc định nếu không có giá trị nào tại khóa cụ thể.\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 trả về giá trị mặc định nếu khóa không tồn tại.\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",
|
|
6968
6968
|
"completion": {
|
|
6969
6969
|
"label": "DefaultValue",
|
|
6970
6970
|
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
@@ -6974,7 +6974,7 @@
|
|
|
6974
6974
|
"kind": 3,
|
|
6975
6975
|
"documentation": {
|
|
6976
6976
|
"kind": "markdown",
|
|
6977
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
6977
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị mặc định cụ thể nếu khóa trong từ điển không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Thông số**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Từ điển hoặc tệp đính kèm cần kiểm tra.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Khóa cần kiểm tra.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Trả về giá trị này nếu khóa không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Giá trị trả về**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nTrả về giá trị tại khóa cụ thể nếu được xác định. Nếu không, trả về giá trị cụ thể tại `defaultValue`."
|
|
6978
6978
|
}
|
|
6979
6979
|
},
|
|
6980
6980
|
"parametersInfo": {
|
|
@@ -6987,8 +6987,8 @@
|
|
|
6987
6987
|
"name": "defaultvalue",
|
|
6988
6988
|
"bundle": "core",
|
|
6989
6989
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
6990
|
-
"description": "
|
|
6991
|
-
"examples": "\n##### Ví dụ\n\nDefaultValue
|
|
6990
|
+
"description": "Trả về giá trị mặc định cụ thể nếu ít nhất một trong các khóa trong từ điển lồng ghép không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.",
|
|
6991
|
+
"examples": "\n##### Ví dụ\n\nDefaultValue trả về giá trị xác định\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 trả về giá trị mặc định nếu không có giá trị nào tại khóa cụ thể.\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 trả về giá trị mặc định nếu khóa không tồn tại.\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\nKiểm tra giá trị rỗng trong mảng thuộc từ điển có khóa tồn tại\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",
|
|
6992
6992
|
"completion": {
|
|
6993
6993
|
"label": "DefaultValue",
|
|
6994
6994
|
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
@@ -6998,7 +6998,7 @@
|
|
|
6998
6998
|
"kind": 3,
|
|
6999
6999
|
"documentation": {
|
|
7000
7000
|
"kind": "markdown",
|
|
7001
|
-
"value": "
|
|
7001
|
+
"value": "Trả về giá trị mặc định cụ thể nếu ít nhất một trong các khóa trong từ điển lồng ghép không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Thông số**\n\n- **container**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Từ điển hoặc tệp đính kèm cần kiểm tra.\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)> - Mảng khóa hoặc chỉ mục cần kiểm tra trong từng mức cấu trúc bộ chứa.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - Trả về giá trị này nếu ít nhất một trong các chỉ mục hoặc khóa không tồn tại hoặc giá trị tại khóa cụ thể là `null` hoặc giá trị văn bản trống.\n\n**Giá trị trả về**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) \nTrả về giá trị tại chỉ mục hoặc khóa cụ thể nếu được xác định. Nếu không, trả về giá trị cụ thể tại `defaultValue`."
|
|
7002
7002
|
}
|
|
7003
7003
|
},
|
|
7004
7004
|
"parametersInfo": {
|
|
@@ -7189,8 +7189,8 @@
|
|
|
7189
7189
|
"bundle": "core",
|
|
7190
7190
|
"sinceVersion": "1.20",
|
|
7191
7191
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
7192
|
-
"description": "
|
|
7193
|
-
"examples": "\n##### Ví dụ\n\
|
|
7192
|
+
"description": "Cho biết từ điển có khóa nhất định hay không và khóa đó có giá trị hay không.",
|
|
7193
|
+
"examples": "\n##### Ví dụ\n\nTừ điển chứa khóa có giá trị\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', 18519);\nHasValue(d, 'Cobourg');\n// returns true\n```\n\nTừ điển chứa khóa không có giá trị\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000', 'Cobourg', null);\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nTừ điển không có khóa được cung cấp\n\n```arcade\nvar d = Dictionary('Port Hope', 16214, 'Grafton', '<1000');\nHasValue(d, 'Cobourg');\n// returns false\n```\n\nTừ điển không có khóa được cung cấp\n\n```arcade\nif ( HasValue( Schema($feature).fields[0], \"domain\" ) ) {\n // Do something with the value if true\n}\n```\n\n",
|
|
7194
7194
|
"completion": {
|
|
7195
7195
|
"label": "HasValue",
|
|
7196
7196
|
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
@@ -7200,7 +7200,7 @@
|
|
|
7200
7200
|
"kind": 3,
|
|
7201
7201
|
"documentation": {
|
|
7202
7202
|
"kind": "markdown",
|
|
7203
|
-
"value": "**[Kể từ phiên bản 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
7203
|
+
"value": "**[Kể từ phiên bản 1.20](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCho biết từ điển có khóa nhất định hay không và khóa đó có giá trị hay không.\n\n**Thông số**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Từ điển hoặc tệp đính kèm cần kiểm tra.\n- **key**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Khóa hoặc tên trường để kiểm tra.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7204
7204
|
}
|
|
7205
7205
|
},
|
|
7206
7206
|
"parametersInfo": {
|
|
@@ -7214,8 +7214,8 @@
|
|
|
7214
7214
|
"bundle": "core",
|
|
7215
7215
|
"sinceVersion": "1.26",
|
|
7216
7216
|
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
7217
|
-
"description": "
|
|
7218
|
-
"examples": "\n##### Ví dụ\n\
|
|
7217
|
+
"description": "Kiểm tra xem thuộc tính lồng ghép nhiều mức sâu trong từ điển có giá trị hay không. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị tại từng mức. Trả về `true` nếu chỉ mục và khóa tại từng mức trong cấu trúc tồn tại và chứa giá trị không phải là giá trị rỗng.",
|
|
7218
|
+
"examples": "\n##### Ví dụ\n\nKiểm tra từ điển chứa khóa có giá trị lồng ghép\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\nKiểm tra giá trị trong từ điển có khóa không tồn tại\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\nKiểm tra giá trị trong mảng thuộc từ điển có khóa tồn tại\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",
|
|
7219
7219
|
"completion": {
|
|
7220
7220
|
"label": "HasValue",
|
|
7221
7221
|
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
@@ -7225,7 +7225,7 @@
|
|
|
7225
7225
|
"kind": 3,
|
|
7226
7226
|
"documentation": {
|
|
7227
7227
|
"kind": "markdown",
|
|
7228
|
-
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\
|
|
7228
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nKiểm tra xem thuộc tính lồng ghép nhiều mức sâu trong từ điển có giá trị hay không. Nhờ vậy, bạn có thể tìm hiểu sâu cấu trúc lồng ghép trong một bước thay vì phải kiểm tra giá trị tại từng mức. Trả về `true` nếu chỉ mục và khóa tại từng mức trong cấu trúc tồn tại và chứa giá trị không phải là giá trị rỗng.\n\n**Thông số**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Attachment](https://developers.arcgis.com/arcade/guide/types/#attachment) - Từ điển hoặc tệp đính kèm cần kiểm tra.\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)> - Mảng khóa hoặc chỉ mục cần kiểm tra trong từng mức cấu trúc.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7229
7229
|
}
|
|
7230
7230
|
},
|
|
7231
7231
|
"parametersInfo": {
|