@arcgis/coding-components 4.29.0-beta.93 → 4.29.0-beta.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +6 -1
- package/dist/arcgis-coding-components/p-23f55366.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-009eaccf.js → p-2ee92dd4.js} +5 -0
- package/dist/arcgis-coding-components/{p-79707082.js → p-3379c876.js} +6 -1
- package/dist/arcgis-coding-components/{p-1d062d47.js → p-361da3f4.js} +6 -1
- package/dist/arcgis-coding-components/{p-ccafed7f.js → p-6addbe14.js} +5 -0
- package/dist/arcgis-coding-components/{p-590b795b.js → p-704356f7.js} +6 -1
- package/dist/arcgis-coding-components/{p-75ae922a.js → p-b1d0e952.js} +7 -2
- package/dist/arcgis-coding-components/{p-4c959bce.js → p-ca87fa23.js} +15 -10
- package/dist/arcgis-coding-components/{p-ca7059d4.js → p-cc1182ad.js} +6 -1
- package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-d7115f8d.js} +6 -1
- package/dist/arcgis-coding-components/p-f75e9797.js +6 -0
- package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-f7de632b.js} +6 -1
- package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-ca7e0df9.js} +487 -362
- package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-804c5ea4.js} +24 -20
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
- package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
- package/dist/cjs/{css-eb1c8e5c.js → css-57d8d5ce.js} +5 -0
- package/dist/cjs/{cssMode-90f06d02.js → cssMode-26f96949.js} +7 -2
- package/dist/cjs/{html-1aa8e458.js → html-524d1fa5.js} +7 -2
- package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-cfbfa149.js} +7 -2
- package/dist/cjs/{index-aaf14a3e.js → index-b2077a1b.js} +5 -0
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-7a4d9023.js → javascript-256166f8.js} +8 -3
- package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-07101bba.js} +7 -2
- package/dist/cjs/loader.cjs.js +6 -1
- package/dist/cjs/{tsMode-95a699e0.js → tsMode-4bf06b38.js} +7 -2
- package/dist/cjs/{typescript-588df930.js → typescript-d05f2c7b.js} +7 -2
- package/dist/components/arcade-api.js +11 -6
- package/dist/components/arcade-contribution.js +16 -6
- package/dist/components/arcade-defaults.js +243 -118
- package/dist/components/arcade-mode.js +22 -18
- package/dist/components/arcade-results.js +137 -85
- package/dist/components/arcade-suggestions.js +9 -4
- package/dist/components/arcade-variables.js +10 -5
- package/dist/components/arcgis-arcade-api.js +5 -0
- package/dist/components/arcgis-arcade-editor.js +20 -8
- package/dist/components/arcgis-arcade-results.js +5 -0
- package/dist/components/arcgis-arcade-suggestions.js +5 -0
- package/dist/components/arcgis-arcade-variables.js +5 -0
- package/dist/components/arcgis-code-editor.js +5 -0
- package/dist/components/code-editor.js +9 -4
- package/dist/components/fields.js +5 -0
- package/dist/components/functional-components.js +5 -0
- package/dist/components/index.js +5 -0
- package/dist/components/index2.js +7 -2
- package/dist/components/markdown.js +5 -0
- package/dist/components/utilities.js +7 -2
- package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-f929db03.js} +479 -354
- package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-87d3ea19.js} +24 -20
- package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
- package/dist/esm/arcgis-coding-components.js +7 -2
- package/dist/esm/{css-aade9167.js → css-eb0f99ca.js} +5 -0
- package/dist/esm/{cssMode-edce5a89.js → cssMode-864388a5.js} +7 -2
- package/dist/esm/{html-00b724af.js → html-6c5b1b7a.js} +7 -2
- package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-8edd9000.js} +7 -2
- package/dist/esm/{index-3732acb8.js → index-06f96b57.js} +5 -0
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-bdd52d83.js → javascript-2f8e7e0f.js} +8 -3
- package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-7cd18ebd.js} +7 -2
- package/dist/esm/loader.js +7 -2
- package/dist/esm/{tsMode-0bd06180.js → tsMode-23e39ee2.js} +7 -2
- package/dist/esm/{typescript-dfdad07a.js → typescript-c122e586.js} +7 -2
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
- package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
- package/dist/types/components.d.ts +3 -3
- package/dist/types/utils/arcade-executor.d.ts +12 -4
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
- package/dist/types/utils/profile/editor-profile.d.ts +10 -5
- package/dist/types/utils/profile/types.d.ts +3 -3
- package/dist/types/utils/profile/utils.d.ts +4 -0
- package/package.json +10 -10
- package/dist/arcgis-coding-components/p-86772125.js +0 -1
- package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
"sinceVersion": "1.14",
|
|
908
908
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
909
909
|
"description": "높이 또는 Z 정보를 고려하여 입력 FeatureSet의 평면(즉, 직교 좌표) 길이를 반환합니다. 이 함수에 제공된 지오메트리는 투영 좌표계를 할당해야 합니다. 공간 기준 체계가 Z 단위에 대한 값을 제공하지 않으면 결과가 미터 단위로 반환됩니다. 일부 클라이언트(예시: ArcGIS API for JavaScript의 3.x 시리즈)는 데이터에 Z 정보가 포함된 경우에도 Z 값 요청을 지원하지 않습니다.\n\n_시각화 및 레이블 지정 프로파일의 피처 지오메트리는 그리기 성능을 개선하기 위해 뷰의 축척 해상도에 따라 일반화됩니다. 따라서 이러한 컨텍스트에서 피처의 지오메트리(즉, `$feature`)를 지오메트리 함수에 대한 입력으로 사용하면 축척 수준에 따라 각기 다른 결과가 반환됩니다. 팝업과 같은 기타 프로파일은 전체 해상도 지오메트리를 제공합니다._",
|
|
910
|
-
"examples": "\n##### 예시\n\n레이어 피처의 3D 길이를 미터 단위로 반환합니다.\n\n```arcade\
|
|
910
|
+
"examples": "\n##### 예시\n\n레이어 피처의 3D 길이를 미터 단위로 반환합니다.\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
911
911
|
"completion": {
|
|
912
912
|
"label": "Length3D",
|
|
913
913
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -3480,6 +3480,57 @@
|
|
|
3480
3480
|
"id": "dictionary_functions",
|
|
3481
3481
|
"title": "딕셔너리 함수",
|
|
3482
3482
|
"items": [
|
|
3483
|
+
[
|
|
3484
|
+
{
|
|
3485
|
+
"type": "function",
|
|
3486
|
+
"name": "defaultvalue",
|
|
3487
|
+
"bundle": "core",
|
|
3488
|
+
"sinceVersion": "1.26",
|
|
3489
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
3490
|
+
"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.",
|
|
3491
|
+
"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",
|
|
3492
|
+
"completion": {
|
|
3493
|
+
"label": "DefaultValue",
|
|
3494
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3495
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3496
|
+
"insertTextMode": 2,
|
|
3497
|
+
"insertTextFormat": 2,
|
|
3498
|
+
"kind": 3,
|
|
3499
|
+
"documentation": {
|
|
3500
|
+
"kind": "markdown",
|
|
3501
|
+
"value": "**[Since version 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**Return value**: [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`."
|
|
3502
|
+
}
|
|
3503
|
+
},
|
|
3504
|
+
"parametersInfo": {
|
|
3505
|
+
"min": 3,
|
|
3506
|
+
"max": 3
|
|
3507
|
+
}
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
"type": "function",
|
|
3511
|
+
"name": "defaultvalue",
|
|
3512
|
+
"bundle": "core",
|
|
3513
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
3514
|
+
"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.",
|
|
3515
|
+
"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",
|
|
3516
|
+
"completion": {
|
|
3517
|
+
"label": "DefaultValue",
|
|
3518
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3519
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3520
|
+
"insertTextMode": 2,
|
|
3521
|
+
"insertTextFormat": 2,
|
|
3522
|
+
"kind": 3,
|
|
3523
|
+
"documentation": {
|
|
3524
|
+
"kind": "markdown",
|
|
3525
|
+
"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**Return value**: [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`."
|
|
3526
|
+
}
|
|
3527
|
+
},
|
|
3528
|
+
"parametersInfo": {
|
|
3529
|
+
"min": 3,
|
|
3530
|
+
"max": 3
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
],
|
|
3483
3534
|
[
|
|
3484
3535
|
{
|
|
3485
3536
|
"type": "function",
|
|
@@ -3655,31 +3706,58 @@
|
|
|
3655
3706
|
"max": 2
|
|
3656
3707
|
}
|
|
3657
3708
|
},
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
"
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
"
|
|
3675
|
-
|
|
3709
|
+
[
|
|
3710
|
+
{
|
|
3711
|
+
"type": "function",
|
|
3712
|
+
"name": "hasvalue",
|
|
3713
|
+
"bundle": "core",
|
|
3714
|
+
"sinceVersion": "1.20",
|
|
3715
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
3716
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
3717
|
+
"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",
|
|
3718
|
+
"completion": {
|
|
3719
|
+
"label": "HasValue",
|
|
3720
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
3721
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
3722
|
+
"insertTextMode": 2,
|
|
3723
|
+
"insertTextFormat": 2,
|
|
3724
|
+
"kind": 3,
|
|
3725
|
+
"documentation": {
|
|
3726
|
+
"kind": "markdown",
|
|
3727
|
+
"value": "**[Since version 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**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3730
|
+
"parametersInfo": {
|
|
3731
|
+
"min": 2,
|
|
3732
|
+
"max": 2
|
|
3676
3733
|
}
|
|
3677
3734
|
},
|
|
3678
|
-
|
|
3679
|
-
"
|
|
3680
|
-
"
|
|
3735
|
+
{
|
|
3736
|
+
"type": "function",
|
|
3737
|
+
"name": "hasvalue",
|
|
3738
|
+
"bundle": "core",
|
|
3739
|
+
"sinceVersion": "1.26",
|
|
3740
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
3741
|
+
"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.",
|
|
3742
|
+
"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",
|
|
3743
|
+
"completion": {
|
|
3744
|
+
"label": "HasValue",
|
|
3745
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
3746
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
3747
|
+
"insertTextMode": 2,
|
|
3748
|
+
"insertTextFormat": 2,
|
|
3749
|
+
"kind": 3,
|
|
3750
|
+
"documentation": {
|
|
3751
|
+
"kind": "markdown",
|
|
3752
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property nested several levels deep in a dictionary has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**매개변수**\n\n- **inputDictionary**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) - The dictionary to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3753
|
+
}
|
|
3754
|
+
},
|
|
3755
|
+
"parametersInfo": {
|
|
3756
|
+
"min": 2,
|
|
3757
|
+
"max": 2
|
|
3758
|
+
}
|
|
3681
3759
|
}
|
|
3682
|
-
|
|
3760
|
+
]
|
|
3683
3761
|
]
|
|
3684
3762
|
},
|
|
3685
3763
|
{
|
|
@@ -3837,6 +3915,57 @@
|
|
|
3837
3915
|
"max": 1
|
|
3838
3916
|
}
|
|
3839
3917
|
},
|
|
3918
|
+
[
|
|
3919
|
+
{
|
|
3920
|
+
"type": "function",
|
|
3921
|
+
"name": "defaultvalue",
|
|
3922
|
+
"bundle": "core",
|
|
3923
|
+
"sinceVersion": "1.26",
|
|
3924
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
3925
|
+
"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.",
|
|
3926
|
+
"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",
|
|
3927
|
+
"completion": {
|
|
3928
|
+
"label": "DefaultValue",
|
|
3929
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
3930
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
3931
|
+
"insertTextMode": 2,
|
|
3932
|
+
"insertTextFormat": 2,
|
|
3933
|
+
"kind": 3,
|
|
3934
|
+
"documentation": {
|
|
3935
|
+
"kind": "markdown",
|
|
3936
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a specified default value if an index in an array does not exist or the value at the specified index is `null` or an empty text value.\n\n**매개변수**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if the index does not exist or the value at the specified index is `null` or an empty text value.\n\n**Return value**: [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`."
|
|
3937
|
+
}
|
|
3938
|
+
},
|
|
3939
|
+
"parametersInfo": {
|
|
3940
|
+
"min": 3,
|
|
3941
|
+
"max": 3
|
|
3942
|
+
}
|
|
3943
|
+
},
|
|
3944
|
+
{
|
|
3945
|
+
"type": "function",
|
|
3946
|
+
"name": "defaultvalue",
|
|
3947
|
+
"bundle": "core",
|
|
3948
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
3949
|
+
"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.",
|
|
3950
|
+
"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",
|
|
3951
|
+
"completion": {
|
|
3952
|
+
"label": "DefaultValue",
|
|
3953
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3954
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3955
|
+
"insertTextMode": 2,
|
|
3956
|
+
"insertTextFormat": 2,
|
|
3957
|
+
"kind": 3,
|
|
3958
|
+
"documentation": {
|
|
3959
|
+
"kind": "markdown",
|
|
3960
|
+
"value": "Checks whether an index nested several levels deep in a multidimensional array has a value and returns that value if present. Otherwise, this function returns a specified default value if at least one of the nested keys or indices does not exist or the value at the specified key or index is `null` or an empty text value. This allows you to drill into a nested structure in one step rather than check values within each array.\n\n**매개변수**\n\n- **container**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The input array to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Return value**: [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`."
|
|
3961
|
+
}
|
|
3962
|
+
},
|
|
3963
|
+
"parametersInfo": {
|
|
3964
|
+
"min": 3,
|
|
3965
|
+
"max": 3
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
],
|
|
3840
3969
|
[
|
|
3841
3970
|
{
|
|
3842
3971
|
"type": "function",
|
|
@@ -3988,6 +4117,58 @@
|
|
|
3988
4117
|
"max": 1
|
|
3989
4118
|
}
|
|
3990
4119
|
},
|
|
4120
|
+
[
|
|
4121
|
+
{
|
|
4122
|
+
"type": "function",
|
|
4123
|
+
"name": "hasvalue",
|
|
4124
|
+
"bundle": "core",
|
|
4125
|
+
"sinceVersion": "1.26",
|
|
4126
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
4127
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
4128
|
+
"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",
|
|
4129
|
+
"completion": {
|
|
4130
|
+
"label": "HasValue",
|
|
4131
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
4132
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
4133
|
+
"insertTextMode": 2,
|
|
4134
|
+
"insertTextFormat": 2,
|
|
4135
|
+
"kind": 3,
|
|
4136
|
+
"documentation": {
|
|
4137
|
+
"kind": "markdown",
|
|
4138
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\n\n**매개변수**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n\n**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4139
|
+
}
|
|
4140
|
+
},
|
|
4141
|
+
"parametersInfo": {
|
|
4142
|
+
"min": 2,
|
|
4143
|
+
"max": 2
|
|
4144
|
+
}
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
"type": "function",
|
|
4148
|
+
"name": "hasvalue",
|
|
4149
|
+
"bundle": "core",
|
|
4150
|
+
"sinceVersion": "1.26",
|
|
4151
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
4152
|
+
"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.",
|
|
4153
|
+
"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",
|
|
4154
|
+
"completion": {
|
|
4155
|
+
"label": "HasValue",
|
|
4156
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
4157
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
4158
|
+
"insertTextMode": 2,
|
|
4159
|
+
"insertTextFormat": 2,
|
|
4160
|
+
"kind": 3,
|
|
4161
|
+
"documentation": {
|
|
4162
|
+
"kind": "markdown",
|
|
4163
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether an index nested several levels deep in a multidimensional array has a value. This allows you to drill into a nested structure in one step rather than check values within each array. Returns `true` if the indexes at each level of the structure exist and include a non-null value.\n\n**매개변수**\n\n- **inputArray**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> - The array to check.\n- **indexes**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4164
|
+
}
|
|
4165
|
+
},
|
|
4166
|
+
"parametersInfo": {
|
|
4167
|
+
"min": 2,
|
|
4168
|
+
"max": 2
|
|
4169
|
+
}
|
|
4170
|
+
}
|
|
4171
|
+
],
|
|
3991
4172
|
{
|
|
3992
4173
|
"type": "function",
|
|
3993
4174
|
"name": "includes",
|
|
@@ -4778,6 +4959,57 @@
|
|
|
4778
4959
|
"max": 2
|
|
4779
4960
|
}
|
|
4780
4961
|
},
|
|
4962
|
+
[
|
|
4963
|
+
{
|
|
4964
|
+
"type": "function",
|
|
4965
|
+
"name": "defaultvalue",
|
|
4966
|
+
"bundle": "core",
|
|
4967
|
+
"sinceVersion": "1.26",
|
|
4968
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
4969
|
+
"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.",
|
|
4970
|
+
"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",
|
|
4971
|
+
"completion": {
|
|
4972
|
+
"label": "DefaultValue",
|
|
4973
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
4974
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
4975
|
+
"insertTextMode": 2,
|
|
4976
|
+
"insertTextFormat": 2,
|
|
4977
|
+
"kind": 3,
|
|
4978
|
+
"documentation": {
|
|
4979
|
+
"kind": "markdown",
|
|
4980
|
+
"value": "**[Since version 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**Return value**: [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`."
|
|
4981
|
+
}
|
|
4982
|
+
},
|
|
4983
|
+
"parametersInfo": {
|
|
4984
|
+
"min": 3,
|
|
4985
|
+
"max": 3
|
|
4986
|
+
}
|
|
4987
|
+
},
|
|
4988
|
+
{
|
|
4989
|
+
"type": "function",
|
|
4990
|
+
"name": "defaultvalue",
|
|
4991
|
+
"bundle": "core",
|
|
4992
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
4993
|
+
"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.",
|
|
4994
|
+
"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",
|
|
4995
|
+
"completion": {
|
|
4996
|
+
"label": "DefaultValue",
|
|
4997
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
4998
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
4999
|
+
"insertTextMode": 2,
|
|
5000
|
+
"insertTextFormat": 2,
|
|
5001
|
+
"kind": 3,
|
|
5002
|
+
"documentation": {
|
|
5003
|
+
"kind": "markdown",
|
|
5004
|
+
"value": "Returns a specified default value if at least one of the keys in a geometry's nested properties does not exist or the value at the specified key is `null` or an empty text value.\n\n**매개변수**\n\n- **container**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The input geometry to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the container's structure.\n- **defaultValue**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - This value is returned if at least one of the keys or indices does not exist or the value at the specified key is `null` or an empty text value.\n\n**Return value**: [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`."
|
|
5005
|
+
}
|
|
5006
|
+
},
|
|
5007
|
+
"parametersInfo": {
|
|
5008
|
+
"min": 3,
|
|
5009
|
+
"max": 3
|
|
5010
|
+
}
|
|
5011
|
+
}
|
|
5012
|
+
],
|
|
4781
5013
|
{
|
|
4782
5014
|
"type": "function",
|
|
4783
5015
|
"name": "densify",
|
|
@@ -4928,6 +5160,31 @@
|
|
|
4928
5160
|
"max": 3
|
|
4929
5161
|
}
|
|
4930
5162
|
},
|
|
5163
|
+
{
|
|
5164
|
+
"type": "function",
|
|
5165
|
+
"name": "distancetocoordinate",
|
|
5166
|
+
"bundle": "geometry",
|
|
5167
|
+
"sinceVersion": "1.26",
|
|
5168
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
5169
|
+
"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._",
|
|
5170
|
+
"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",
|
|
5171
|
+
"completion": {
|
|
5172
|
+
"label": "DistanceToCoordinate",
|
|
5173
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
5174
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
5175
|
+
"insertTextMode": 2,
|
|
5176
|
+
"insertTextFormat": 2,
|
|
5177
|
+
"kind": 3,
|
|
5178
|
+
"documentation": {
|
|
5179
|
+
"kind": "markdown",
|
|
5180
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given distance. If the distance is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**매개변수**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputDistance**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The distance used to find the coordinate along `inputLine` from the start of the line.\n\n**Return value**: [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`."
|
|
5181
|
+
}
|
|
5182
|
+
},
|
|
5183
|
+
"parametersInfo": {
|
|
5184
|
+
"min": 2,
|
|
5185
|
+
"max": 2
|
|
5186
|
+
}
|
|
5187
|
+
},
|
|
4931
5188
|
{
|
|
4932
5189
|
"type": "function",
|
|
4933
5190
|
"name": "envelopeintersects",
|
|
@@ -5101,6 +5358,58 @@
|
|
|
5101
5358
|
"max": 1
|
|
5102
5359
|
}
|
|
5103
5360
|
},
|
|
5361
|
+
[
|
|
5362
|
+
{
|
|
5363
|
+
"type": "function",
|
|
5364
|
+
"name": "hasvalue",
|
|
5365
|
+
"bundle": "core",
|
|
5366
|
+
"sinceVersion": "1.26",
|
|
5367
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
5368
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
5369
|
+
"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",
|
|
5370
|
+
"completion": {
|
|
5371
|
+
"label": "HasValue",
|
|
5372
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
5373
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
5374
|
+
"insertTextMode": 2,
|
|
5375
|
+
"insertTextFormat": 2,
|
|
5376
|
+
"kind": 3,
|
|
5377
|
+
"documentation": {
|
|
5378
|
+
"kind": "markdown",
|
|
5379
|
+
"value": "**[Since version 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**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5380
|
+
}
|
|
5381
|
+
},
|
|
5382
|
+
"parametersInfo": {
|
|
5383
|
+
"min": 2,
|
|
5384
|
+
"max": 2
|
|
5385
|
+
}
|
|
5386
|
+
},
|
|
5387
|
+
{
|
|
5388
|
+
"type": "function",
|
|
5389
|
+
"name": "hasvalue",
|
|
5390
|
+
"bundle": "core",
|
|
5391
|
+
"sinceVersion": "1.26",
|
|
5392
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
5393
|
+
"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.",
|
|
5394
|
+
"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",
|
|
5395
|
+
"completion": {
|
|
5396
|
+
"label": "HasValue",
|
|
5397
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
5398
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
5399
|
+
"insertTextMode": 2,
|
|
5400
|
+
"insertTextFormat": 2,
|
|
5401
|
+
"kind": 3,
|
|
5402
|
+
"documentation": {
|
|
5403
|
+
"kind": "markdown",
|
|
5404
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChecks whether a property or index nested several levels deep in a geometry has a value. This allows you to drill into a nested structure in one step rather than check values at each level. Returns `true` if the keys and indexes at each level of the structure exist and include a non-null value.\n\n**매개변수**\n\n- **inputGeometry**: [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - The dictionary or feature to check.\n- **keys**: [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Text](https://developers.arcgis.com/arcade/guide/types/#text)> - An array of the keys or indexes to check in each level of the structure.\n\n**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5405
|
+
}
|
|
5406
|
+
},
|
|
5407
|
+
"parametersInfo": {
|
|
5408
|
+
"min": 2,
|
|
5409
|
+
"max": 2
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
],
|
|
5104
5413
|
{
|
|
5105
5414
|
"type": "function",
|
|
5106
5415
|
"name": "intersection",
|
|
@@ -5276,6 +5585,31 @@
|
|
|
5276
5585
|
"max": 2
|
|
5277
5586
|
}
|
|
5278
5587
|
},
|
|
5588
|
+
{
|
|
5589
|
+
"type": "function",
|
|
5590
|
+
"name": "measuretocoordinate",
|
|
5591
|
+
"bundle": "geometry",
|
|
5592
|
+
"sinceVersion": "1.26",
|
|
5593
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
5594
|
+
"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._",
|
|
5595
|
+
"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",
|
|
5596
|
+
"completion": {
|
|
5597
|
+
"label": "MeasureToCoordinate",
|
|
5598
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
5599
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
5600
|
+
"insertTextMode": 2,
|
|
5601
|
+
"insertTextFormat": 2,
|
|
5602
|
+
"kind": 3,
|
|
5603
|
+
"documentation": {
|
|
5604
|
+
"kind": "markdown",
|
|
5605
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns a coordinate along an input line based on a given measure, or m-value. If the measure is not found along the input line, then the result will be `null`.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**매개변수**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to find a coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **inputMeasure**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The measure, or m-value, from which to find a coordinate along `inputLine` from the start of the line.\n\n**Return value**: [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`."
|
|
5606
|
+
}
|
|
5607
|
+
},
|
|
5608
|
+
"parametersInfo": {
|
|
5609
|
+
"min": 2,
|
|
5610
|
+
"max": 2
|
|
5611
|
+
}
|
|
5612
|
+
},
|
|
5279
5613
|
{
|
|
5280
5614
|
"type": "function",
|
|
5281
5615
|
"name": "multiparttosinglepart",
|
|
@@ -5392,7 +5726,7 @@
|
|
|
5392
5726
|
"kind": 3,
|
|
5393
5727
|
"documentation": {
|
|
5394
5728
|
"kind": "markdown",
|
|
5395
|
-
"value": "**[Since version 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n검색 포인트에 대한 입력 지오메트리의 가장 가까운 좌표(버텍스 아님)를 반환합니다. 반환되는 딕셔너리에는 검색 포인트에서 가장 가까운 좌표까지의 최단 평면 거리도 포함됩니다. 검색 포인트가 입력 지오메트리와 교차하는 경우 검색 포인트는 거리가 0인 결과로 반환됩니다.\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**Return value**: [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` 간의 최단 거리를
|
|
5729
|
+
"value": "**[Since version 1.23](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n검색 포인트에 대한 입력 지오메트리의 가장 가까운 좌표(버텍스 아님)를 반환합니다. 반환되는 딕셔너리에는 검색 포인트에서 가장 가까운 좌표까지의 최단 평면 거리도 포함됩니다. 검색 포인트가 입력 지오메트리와 교차하는 경우 검색 포인트는 거리가 0인 결과로 반환됩니다.\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**Return value**: [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) - "
|
|
5396
5730
|
}
|
|
5397
5731
|
},
|
|
5398
5732
|
"parametersInfo": {
|
|
@@ -5417,7 +5751,7 @@
|
|
|
5417
5751
|
"kind": 3,
|
|
5418
5752
|
"documentation": {
|
|
5419
5753
|
"kind": "markdown",
|
|
5420
|
-
"value": "**[Since version 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**Return value**: [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`까지의 평면
|
|
5754
|
+
"value": "**[Since version 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**Return value**: [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) - "
|
|
5421
5755
|
}
|
|
5422
5756
|
},
|
|
5423
5757
|
"parametersInfo": {
|
|
@@ -5525,6 +5859,31 @@
|
|
|
5525
5859
|
}
|
|
5526
5860
|
}
|
|
5527
5861
|
],
|
|
5862
|
+
{
|
|
5863
|
+
"type": "function",
|
|
5864
|
+
"name": "pointtocoordinate",
|
|
5865
|
+
"bundle": "geometry",
|
|
5866
|
+
"sinceVersion": "1.26",
|
|
5867
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
5868
|
+
"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._",
|
|
5869
|
+
"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",
|
|
5870
|
+
"completion": {
|
|
5871
|
+
"label": "PointToCoordinate",
|
|
5872
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
5873
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
5874
|
+
"insertTextMode": 2,
|
|
5875
|
+
"insertTextFormat": 2,
|
|
5876
|
+
"kind": 3,
|
|
5877
|
+
"documentation": {
|
|
5878
|
+
"kind": "markdown",
|
|
5879
|
+
"value": "**[Since version 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the nearest coordinate and distance to that coordinate of the search point to the input line.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._\n\n**매개변수**\n\n- **inputLine**: [Polyline](https://developers.arcgis.com/arcade/guide/types/#polyline) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Point](https://developers.arcgis.com/arcade/guide/types/#point)> \\| [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The line or path from which to get the nearest coordinate. When using a Feature as input, the feature's geometry must be a polyline.\n- **searchPoint**: [Point](https://developers.arcgis.com/arcade/guide/types/#point) - The point from which to find the nearest coordinate of the `inputLine`.\n\n**Return value**: [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`."
|
|
5880
|
+
}
|
|
5881
|
+
},
|
|
5882
|
+
"parametersInfo": {
|
|
5883
|
+
"min": 2,
|
|
5884
|
+
"max": 2
|
|
5885
|
+
}
|
|
5886
|
+
},
|
|
5528
5887
|
[
|
|
5529
5888
|
{
|
|
5530
5889
|
"type": "function",
|
|
@@ -6088,7 +6447,7 @@
|
|
|
6088
6447
|
"sinceVersion": "1.12",
|
|
6089
6448
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
6090
6449
|
"description": "첫 번째 관측에서 현재 관측까지 관측 사이에 이동한 거리와 지정된 값을 더한 합계입니다.",
|
|
6091
|
-
"examples": "\n##### 예시\n\n트랙에는 위에 표시된 대로 6개의 피처가 있습니다. 식은 트랙의 각 피처에 대한 값을 반환합니다. 첫 번째 예시에서는 색인 값이 2인 피처 2(p2)에서 평가했을 때의 결과를 살펴봅니다. 계산은 `30 + 80 + 60 = 170`입니다.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\n트랙에는 위에 표시된 대로 6개의 피처가 있습니다. 식은 트랙의 각 피처에 대한 값을 반환합니다. 다음 예시에서는 색인 값이 4인 피처 4(p4)에서 평가했을 때의 결과를 살펴봅니다. 계산은 `25 + 35 + 30 + 80 + 60 = 230`입니다.\n\n```arcade\nTrackDistanceAt(
|
|
6450
|
+
"examples": "\n##### 예시\n\n트랙에는 위에 표시된 대로 6개의 피처가 있습니다. 식은 트랙의 각 피처에 대한 값을 반환합니다. 첫 번째 예시에서는 색인 값이 2인 피처 2(p2)에서 평가했을 때의 결과를 살펴봅니다. 계산은 `30 + 80 + 60 = 170`입니다.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\n트랙에는 위에 표시된 대로 6개의 피처가 있습니다. 식은 트랙의 각 피처에 대한 값을 반환합니다. 다음 예시에서는 색인 값이 4인 피처 4(p4)에서 평가했을 때의 결과를 살펴봅니다. 계산은 `25 + 35 + 30 + 80 + 60 = 230`입니다.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
6092
6451
|
"completion": {
|
|
6093
6452
|
"label": "TrackDistanceAt",
|
|
6094
6453
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -7212,6 +7571,31 @@
|
|
|
7212
7571
|
"max": 1
|
|
7213
7572
|
}
|
|
7214
7573
|
},
|
|
7574
|
+
{
|
|
7575
|
+
"type": "function",
|
|
7576
|
+
"name": "hasvalue",
|
|
7577
|
+
"bundle": "core",
|
|
7578
|
+
"sinceVersion": "1.20",
|
|
7579
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
7580
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
7581
|
+
"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",
|
|
7582
|
+
"completion": {
|
|
7583
|
+
"label": "HasValue",
|
|
7584
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
7585
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
7586
|
+
"insertTextMode": 2,
|
|
7587
|
+
"insertTextFormat": 2,
|
|
7588
|
+
"kind": 3,
|
|
7589
|
+
"documentation": {
|
|
7590
|
+
"kind": "markdown",
|
|
7591
|
+
"value": "**[Since version 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**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7592
|
+
}
|
|
7593
|
+
},
|
|
7594
|
+
"parametersInfo": {
|
|
7595
|
+
"min": 2,
|
|
7596
|
+
"max": 2
|
|
7597
|
+
}
|
|
7598
|
+
},
|
|
7215
7599
|
{
|
|
7216
7600
|
"type": "function",
|
|
7217
7601
|
"name": "schema",
|
|
@@ -7313,5 +7697,61 @@
|
|
|
7313
7697
|
}
|
|
7314
7698
|
}
|
|
7315
7699
|
]
|
|
7700
|
+
},
|
|
7701
|
+
{
|
|
7702
|
+
"id": "knowledgegraph_functions",
|
|
7703
|
+
"title": "한_Knowledge graph functions__________________________빠",
|
|
7704
|
+
"items": [
|
|
7705
|
+
{
|
|
7706
|
+
"type": "function",
|
|
7707
|
+
"name": "knowledgegraphbyportalitem",
|
|
7708
|
+
"bundle": "knowledge-graph",
|
|
7709
|
+
"sinceVersion": "1.26",
|
|
7710
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#knowledgegraphbyportalitem",
|
|
7711
|
+
"description": "한_Returns a knowledge graph from a portal item________________________빠.",
|
|
7712
|
+
"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",
|
|
7713
|
+
"completion": {
|
|
7714
|
+
"label": "KnowledgeGraphByPortalItem",
|
|
7715
|
+
"detail": "KnowledgeGraphByPortalItem(portalObject, itemId) -> KnowledgeGraph",
|
|
7716
|
+
"insertText": "KnowledgeGraphByPortalItem(${1:portalObject_}, ${2:itemId_})$0",
|
|
7717
|
+
"insertTextMode": 2,
|
|
7718
|
+
"insertTextFormat": 2,
|
|
7719
|
+
"kind": 3,
|
|
7720
|
+
"documentation": {
|
|
7721
|
+
"kind": "markdown",
|
|
7722
|
+
"value": "**[Since version 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**Return value**: [KnowledgeGraph](https://developers.arcgis.com/arcade/guide/types/#knowledgegraph)"
|
|
7723
|
+
}
|
|
7724
|
+
},
|
|
7725
|
+
"parametersInfo": {
|
|
7726
|
+
"min": 2,
|
|
7727
|
+
"max": 2
|
|
7728
|
+
}
|
|
7729
|
+
},
|
|
7730
|
+
{
|
|
7731
|
+
"type": "function",
|
|
7732
|
+
"name": "querygraph",
|
|
7733
|
+
"bundle": "knowledge-graph",
|
|
7734
|
+
"sinceVersion": "1.26",
|
|
7735
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/knowledgegraph_functions/#querygraph",
|
|
7736
|
+
"description": "한_Queries a knowledge graph with an openCypher query and returns the set of entities and relationships in a graph, along with their properties________________________________________________________________________빠.",
|
|
7737
|
+
"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",
|
|
7738
|
+
"completion": {
|
|
7739
|
+
"label": "QueryGraph",
|
|
7740
|
+
"detail": "QueryGraph(graph, openCypherQuery, queryParameters?) -> Dictionary",
|
|
7741
|
+
"insertText": "QueryGraph(${1:graph_}, ${2:openCypherQuery_})$0",
|
|
7742
|
+
"insertTextMode": 2,
|
|
7743
|
+
"insertTextFormat": 2,
|
|
7744
|
+
"kind": 3,
|
|
7745
|
+
"documentation": {
|
|
7746
|
+
"kind": "markdown",
|
|
7747
|
+
"value": "**[Since version 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**Return value**: [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary)"
|
|
7748
|
+
}
|
|
7749
|
+
},
|
|
7750
|
+
"parametersInfo": {
|
|
7751
|
+
"min": 2,
|
|
7752
|
+
"max": 3
|
|
7753
|
+
}
|
|
7754
|
+
}
|
|
7755
|
+
]
|
|
7316
7756
|
}
|
|
7317
7757
|
]
|