@arcgis/coding-components 4.29.0-beta.11 → 4.29.0-beta.110
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/LICENSE.md +1 -1
- package/README.md +6 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ar.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.bg.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.bs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ca.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.cs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.da.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.de.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.el.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.es.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.et.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.fi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.fr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.he.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.hr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.hu.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.id.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.it.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ja.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ko.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.lt.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.lv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.nb.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.nl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.pl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.pt-BR.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.pt-PT.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ro.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.ru.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.sv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.th.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.tr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.uk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.vi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.zh-CN.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.zh-HK.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.zh-TW.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ar.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.bg.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.bs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ca.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.cs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.da.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.de.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.el.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.es.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.et.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.fi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.fr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.he.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.hr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.hu.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.id.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.it.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ja.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ko.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.lt.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.lv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.nb.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.nl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.pl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.pt-BR.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.pt-PT.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ro.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.ru.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.sv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.th.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.tr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.uk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.vi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.zh-CN.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.zh-HK.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.zh-TW.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +492 -27
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +14 -2
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ar.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.bg.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.bs.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.cs.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.da.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.el.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.en.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.es.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.et.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.fi.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.fr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.hr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.hu.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.id.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.it.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ja.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ko.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.lt.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.lv.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.nb.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.nl.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.pl.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.pt-BR.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.pt-PT.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ro.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ru.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sk.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sl.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.sv.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.th.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.tr.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.uk.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.vi.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.zh-CN.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.zh-HK.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.zh-TW.json +13 -13
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ar.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.bg.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.bs.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ca.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.cs.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.da.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.de.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.el.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.en.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.es.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.et.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.fi.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.fr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.he.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.hr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.hu.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.id.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.it.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ja.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ko.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.lt.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.lv.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.nb.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.nl.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.pl.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.pt-BR.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.pt-PT.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ro.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.ru.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sk.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sl.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.sv.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.th.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.tr.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.uk.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.vi.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.zh-CN.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.zh-HK.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.zh-TW.json +6 -6
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ar.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.bg.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.bs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.cs.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.da.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.de.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.el.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.en.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.es.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.et.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.fi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.fr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.he.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.hr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.hu.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.id.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ja.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ko.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.lt.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.lv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.nb.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.nl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.pl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.pt-BR.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.pt-PT.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ro.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ru.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sl.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.sv.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.th.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.tr.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.uk.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.vi.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.zh-CN.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.zh-HK.json +8 -8
- package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.zh-TW.json +8 -8
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +30 -31
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +30 -34
- package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +7 -8
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +18 -20
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +21 -22
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +79 -80
- package/dist/arcgis-coding-components/index.esm.js +6 -1
- package/dist/arcgis-coding-components/{p-ff06e912.js → p-06f39793.js} +7 -2
- package/dist/arcgis-coding-components/{p-310f0408.js → p-0b4995df.js} +7 -2
- package/dist/arcgis-coding-components/p-356ca5d3.js +7 -0
- package/dist/arcgis-coding-components/{p-443fe20e.js → p-4d58beca.js} +7 -2
- package/dist/arcgis-coding-components/{p-b3500466.js → p-567ee7d3.js} +7 -2
- package/dist/arcgis-coding-components/p-5e2653b4.entry.js +6 -0
- package/dist/arcgis-coding-components/p-7a575e52.js +68 -0
- package/dist/arcgis-coding-components/{p-9dd33d3e.js → p-a90212eb.js} +7 -2
- package/dist/arcgis-coding-components/{p-9a164b63.js → p-aceb9f91.js} +8 -3
- package/dist/arcgis-coding-components/{p-b83db734.js → p-b48f9897.js} +7 -2
- package/dist/arcgis-coding-components/p-e90b1f2f.js +6 -0
- package/dist/arcgis-coding-components/{p-cfff9500.js → p-ff11efd4.js} +6 -1
- package/dist/cjs/{arcade-defaults-e128d6d9.js → arcade-defaults-c274c792.js} +13204 -11292
- package/dist/cjs/arcade-mode-e7a5feec.js +604 -0
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1484 -1408
- package/dist/cjs/arcgis-coding-components.cjs.js +8 -3
- package/dist/cjs/{css-7229b372.js → css-3d77c5a8.js} +6 -1
- package/dist/cjs/{cssMode-8c1d563a.js → cssMode-79b21179.js} +8 -3
- package/dist/cjs/{html-ead03bbb.js → html-176c4248.js} +8 -3
- package/dist/cjs/{htmlMode-5e1a0115.js → htmlMode-4fff608a.js} +8 -3
- package/dist/cjs/{index-f8a85eb8.js → index-8eb42874.js} +395 -101
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/{javascript-3fe2de06.js → javascript-cb5b58a7.js} +9 -4
- package/dist/cjs/{jsonMode-8b4b19f9.js → jsonMode-b6e8a3b4.js} +8 -3
- package/dist/cjs/loader.cjs.js +8 -12
- package/dist/cjs/{tsMode-b9491227.js → tsMode-97f32109.js} +8 -3
- package/dist/cjs/{typescript-524fddbc.js → typescript-002b1bed.js} +8 -3
- package/dist/components/arcade-api.js +170 -162
- package/dist/components/arcade-contribution.js +75 -65
- package/dist/components/arcade-defaults.js +1425 -1270
- package/dist/components/arcade-mode.js +521 -515
- package/dist/components/arcade-results.js +479 -426
- package/dist/components/arcade-suggestions.js +138 -131
- package/dist/components/arcade-variables.js +167 -153
- package/dist/components/arcgis-arcade-api.d.ts +2 -2
- package/dist/components/arcgis-arcade-api.js +5 -0
- package/dist/components/arcgis-arcade-editor.d.ts +2 -2
- package/dist/components/arcgis-arcade-editor.js +413 -387
- package/dist/components/arcgis-arcade-results.d.ts +2 -2
- package/dist/components/arcgis-arcade-results.js +5 -0
- package/dist/components/arcgis-arcade-suggestions.d.ts +2 -2
- package/dist/components/arcgis-arcade-suggestions.js +5 -0
- package/dist/components/arcgis-arcade-variables.d.ts +2 -2
- package/dist/components/arcgis-arcade-variables.js +5 -0
- package/dist/components/arcgis-code-editor.d.ts +2 -2
- package/dist/components/arcgis-code-editor.js +5 -0
- package/dist/components/code-editor.js +255 -250
- package/dist/components/fields.js +104 -77
- package/dist/components/functional-components.js +6 -1
- package/dist/components/index.d.ts +5 -8
- package/dist/components/index.js +6 -7
- package/dist/components/index2.js +7 -2
- package/dist/components/markdown.js +33 -28
- package/dist/components/utilities.js +26 -21
- package/dist/esm/{arcade-defaults-a34c2e51.js → arcade-defaults-d6c47dac.js} +13196 -11284
- package/dist/esm/arcade-mode-77aefd9b.js +600 -0
- package/dist/esm/arcgis-arcade-api_6.entry.js +1484 -1408
- package/dist/esm/arcgis-coding-components.js +9 -4
- package/dist/esm/{css-ff1e9f8c.js → css-4b82e605.js} +6 -1
- package/dist/esm/{cssMode-cb48c437.js → cssMode-7229ff3a.js} +8 -3
- package/dist/esm/{html-e7c0bd60.js → html-c3b25474.js} +8 -3
- package/dist/esm/{htmlMode-46638b7f.js → htmlMode-0e07604f.js} +8 -3
- package/dist/esm/{index-d4ec142a.js → index-09479ad2.js} +395 -101
- package/dist/esm/index.js +7 -2
- package/dist/esm/{javascript-2229cd63.js → javascript-a0d8a182.js} +9 -4
- package/dist/esm/{jsonMode-08a2f0d2.js → jsonMode-2bbed644.js} +8 -3
- package/dist/esm/loader.js +8 -12
- package/dist/esm/{tsMode-46d0d8e8.js → tsMode-b8728ce8.js} +8 -3
- package/dist/esm/{typescript-88a09694.js → typescript-4b81fd47.js} +8 -3
- package/dist/loader/cdn.js +5 -1
- package/dist/loader/index.cjs.js +5 -1
- package/dist/loader/index.d.ts +2 -2
- package/dist/loader/index.es2017.js +5 -1
- package/dist/loader/index.js +5 -1
- package/dist/types/components/arcade-api/arcade-api.d.ts +42 -41
- package/dist/types/components/arcade-api/t9n-types.d.ts +6 -6
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +129 -133
- package/dist/types/components/arcade-editor/t9n-types.d.ts +6 -6
- package/dist/types/components/arcade-results/arcade-results.d.ts +46 -50
- package/dist/types/components/arcade-results/t9n-types.d.ts +11 -11
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +37 -36
- package/dist/types/components/arcade-suggestions/t9n-types.d.ts +4 -4
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +42 -42
- package/dist/types/components/arcade-variables/t9n-types.d.ts +6 -6
- package/dist/types/components/code-editor/code-editor.d.ts +74 -74
- package/dist/types/components.d.ts +87 -12
- package/dist/types/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +61 -17
- package/dist/types/utils/arcade-executor.d.ts +89 -81
- package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -1
- package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +69 -68
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +27 -26
- package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +10 -10
- package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +9 -8
- package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +11 -11
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +16 -14
- package/dist/types/utils/arcade-monaco/types.d.ts +31 -33
- package/dist/types/utils/colorize.d.ts +1 -1
- package/dist/types/utils/editor-suggestions.d.ts +24 -24
- package/dist/types/utils/fields.d.ts +1 -0
- package/dist/types/utils/functional-components.d.ts +2 -2
- package/dist/types/utils/markdown.d.ts +1 -1
- package/dist/types/utils/profile/editor-profile.d.ts +187 -196
- package/dist/types/utils/profile/types.d.ts +230 -109
- package/dist/types/utils/profile/utils.d.ts +31 -14
- package/dist/types/utils/utilities.d.ts +2 -2
- package/package.json +26 -42
- package/dist/arcgis-coding-components/p-0fa0a06d.js +0 -2
- package/dist/arcgis-coding-components/p-1b0246cd.entry.js +0 -1
- package/dist/arcgis-coding-components/p-236ce4a1.js +0 -62
- package/dist/arcgis-coding-components/p-3664ab2a.js +0 -1
- package/dist/cjs/arcade-mode-8bf7a14b.js +0 -598
- package/dist/esm/arcade-mode-c5a69066.js +0 -594
- package/dist/esm/polyfills/css-shim.js +0 -1
|
@@ -300,6 +300,57 @@
|
|
|
300
300
|
"max": 1
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
|
+
[
|
|
304
|
+
{
|
|
305
|
+
"type": "function",
|
|
306
|
+
"name": "defaultvalue",
|
|
307
|
+
"bundle": "core",
|
|
308
|
+
"sinceVersion": "1.26",
|
|
309
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue1",
|
|
310
|
+
"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.",
|
|
311
|
+
"examples": "\n##### Ví dụ\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",
|
|
312
|
+
"completion": {
|
|
313
|
+
"label": "DefaultValue",
|
|
314
|
+
"detail": "DefaultValue(container, index, defaultValue) -> Any",
|
|
315
|
+
"insertText": "DefaultValue(${1:container_}, ${2:index_}, ${3:defaultValue_})$0",
|
|
316
|
+
"insertTextMode": 2,
|
|
317
|
+
"insertTextFormat": 2,
|
|
318
|
+
"kind": 3,
|
|
319
|
+
"documentation": {
|
|
320
|
+
"kind": "markdown",
|
|
321
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [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`."
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"parametersInfo": {
|
|
325
|
+
"min": 3,
|
|
326
|
+
"max": 3
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "function",
|
|
331
|
+
"name": "defaultvalue",
|
|
332
|
+
"bundle": "core",
|
|
333
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#defaultvalue2",
|
|
334
|
+
"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.",
|
|
335
|
+
"examples": "\n##### Ví dụ\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",
|
|
336
|
+
"completion": {
|
|
337
|
+
"label": "DefaultValue",
|
|
338
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
339
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
340
|
+
"insertTextMode": 2,
|
|
341
|
+
"insertTextFormat": 2,
|
|
342
|
+
"kind": 3,
|
|
343
|
+
"documentation": {
|
|
344
|
+
"kind": "markdown",
|
|
345
|
+
"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**Thông số**\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**Giá trị trả về**: [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`."
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"parametersInfo": {
|
|
349
|
+
"min": 3,
|
|
350
|
+
"max": 3
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
],
|
|
303
354
|
[
|
|
304
355
|
{
|
|
305
356
|
"type": "function",
|
|
@@ -451,6 +502,58 @@
|
|
|
451
502
|
"max": 1
|
|
452
503
|
}
|
|
453
504
|
},
|
|
505
|
+
[
|
|
506
|
+
{
|
|
507
|
+
"type": "function",
|
|
508
|
+
"name": "hasvalue",
|
|
509
|
+
"bundle": "core",
|
|
510
|
+
"sinceVersion": "1.26",
|
|
511
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue1",
|
|
512
|
+
"description": "Indicates whether an array has a value at the given index.",
|
|
513
|
+
"examples": "\n##### Ví dụ\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",
|
|
514
|
+
"completion": {
|
|
515
|
+
"label": "HasValue",
|
|
516
|
+
"detail": "HasValue(inputArray, index) -> Boolean",
|
|
517
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:index_})$0",
|
|
518
|
+
"insertTextMode": 2,
|
|
519
|
+
"insertTextFormat": 2,
|
|
520
|
+
"kind": 3,
|
|
521
|
+
"documentation": {
|
|
522
|
+
"kind": "markdown",
|
|
523
|
+
"value": "**[Kể từ phiên bản 1.26](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates whether an array has a value at the given index.\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)> - The array to check.\n- **index**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The index to check.\n\n**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"parametersInfo": {
|
|
527
|
+
"min": 2,
|
|
528
|
+
"max": 2
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "function",
|
|
533
|
+
"name": "hasvalue",
|
|
534
|
+
"bundle": "core",
|
|
535
|
+
"sinceVersion": "1.26",
|
|
536
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/array_functions/#hasvalue2",
|
|
537
|
+
"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.",
|
|
538
|
+
"examples": "\n##### Ví dụ\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",
|
|
539
|
+
"completion": {
|
|
540
|
+
"label": "HasValue",
|
|
541
|
+
"detail": "HasValue(inputArray, indexes) -> Boolean",
|
|
542
|
+
"insertText": "HasValue(${1:inputArray_}, ${2:indexes_})$0",
|
|
543
|
+
"insertTextMode": 2,
|
|
544
|
+
"insertTextFormat": 2,
|
|
545
|
+
"kind": 3,
|
|
546
|
+
"documentation": {
|
|
547
|
+
"kind": "markdown",
|
|
548
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"parametersInfo": {
|
|
552
|
+
"min": 2,
|
|
553
|
+
"max": 2
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
],
|
|
454
557
|
{
|
|
455
558
|
"type": "function",
|
|
456
559
|
"name": "includes",
|
|
@@ -800,6 +903,62 @@
|
|
|
800
903
|
}
|
|
801
904
|
]
|
|
802
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
|
+
},
|
|
803
962
|
{
|
|
804
963
|
"id": "portal_functions",
|
|
805
964
|
"title": "Hàm cổng thông tin",
|
|
@@ -1161,6 +1320,31 @@
|
|
|
1161
1320
|
"max": 1
|
|
1162
1321
|
}
|
|
1163
1322
|
},
|
|
1323
|
+
{
|
|
1324
|
+
"type": "function",
|
|
1325
|
+
"name": "hasvalue",
|
|
1326
|
+
"bundle": "core",
|
|
1327
|
+
"sinceVersion": "1.20",
|
|
1328
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/feature_functions/#hasvalue",
|
|
1329
|
+
"description": "Indicates whether a feature has a given field and if that field has a value.",
|
|
1330
|
+
"examples": "\n##### Ví dụ\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",
|
|
1331
|
+
"completion": {
|
|
1332
|
+
"label": "HasValue",
|
|
1333
|
+
"detail": "HasValue(inputFeature, fieldName) -> Boolean",
|
|
1334
|
+
"insertText": "HasValue(${1:inputFeature_}, ${2:fieldName_})$0",
|
|
1335
|
+
"insertTextMode": 2,
|
|
1336
|
+
"insertTextFormat": 2,
|
|
1337
|
+
"kind": 3,
|
|
1338
|
+
"documentation": {
|
|
1339
|
+
"kind": "markdown",
|
|
1340
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"parametersInfo": {
|
|
1344
|
+
"min": 2,
|
|
1345
|
+
"max": 2
|
|
1346
|
+
}
|
|
1347
|
+
},
|
|
1164
1348
|
{
|
|
1165
1349
|
"type": "function",
|
|
1166
1350
|
"name": "schema",
|
|
@@ -1767,6 +1951,31 @@
|
|
|
1767
1951
|
"max": 2
|
|
1768
1952
|
}
|
|
1769
1953
|
},
|
|
1954
|
+
{
|
|
1955
|
+
"type": "function",
|
|
1956
|
+
"name": "filterbysubtypecode",
|
|
1957
|
+
"bundle": "data-access",
|
|
1958
|
+
"sinceVersion": "1.25",
|
|
1959
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filterbysubtypecode",
|
|
1960
|
+
"description": "Đ_Creates a new FeatureSet with all the features matching the given subtype code_________________________________________ớ.",
|
|
1961
|
+
"examples": "\n##### Ví dụ\n\nĐ_Filter features with the subtype code____________________ớ\n\n```arcade\n// Returns all features that have the given subtype code\nFilterBySubtypeCode($layer, 5)\n```\n\n",
|
|
1962
|
+
"completion": {
|
|
1963
|
+
"label": "FilterBySubtypeCode",
|
|
1964
|
+
"detail": "FilterBySubtypeCode(features, subtypeCode) -> FeatureSet",
|
|
1965
|
+
"insertText": "FilterBySubtypeCode(${1:features_}, ${2:subtypeCode_})$0",
|
|
1966
|
+
"insertTextMode": 2,
|
|
1967
|
+
"insertTextFormat": 2,
|
|
1968
|
+
"kind": 3,
|
|
1969
|
+
"documentation": {
|
|
1970
|
+
"kind": "markdown",
|
|
1971
|
+
"value": "**[Kể từ phiên bản 1.25](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĐ_Creates a new FeatureSet with all the features matching the given subtype code_________________________________________ớ.\n\n**Thông số**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - Đ_The FeatureSet, or layer, to filter___________________ớ.\n- **subtypeCode**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Đ_The subtype code used to filter features in the FeatureSet or layer___________________________________ớ.\n\n**Giá trị trả về**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
"parametersInfo": {
|
|
1975
|
+
"min": 2,
|
|
1976
|
+
"max": 2
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1770
1979
|
{
|
|
1771
1980
|
"type": "function",
|
|
1772
1981
|
"name": "first",
|
|
@@ -2000,7 +2209,7 @@
|
|
|
2000
2209
|
"sinceVersion": "1.14",
|
|
2001
2210
|
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#length3d",
|
|
2002
2211
|
"description": "Trả về chiều dài phẳng (tức là Cartesian) của FeatureSet đầu vào xét đến chiều cao và thông tin Z. Hình học được cung cấp cho hàm này phải được chỉ định một hệ tọa độ quy chiếu. Nếu tham chiếu không gian không cung cấp giá trị cho đơn vị Z thì kết quả sẽ được trả về giá trị tính bằng mét. Lưu ý rằng không phải tất cả máy khách (chẳng hạn như chuỗi 3.x của ArcGIS API for JavaScript) đều hỗ trợ yêu cầu giá trị Z ngay cả khi dữ liệu chứa thông tin Z.\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 đủ._",
|
|
2003
|
-
"examples": "\n##### Ví dụ\n\nTrả về chiều dài 3D của các đối tượng trong lớp ở đơn vị mét\n\n```arcade\
|
|
2212
|
+
"examples": "\n##### Ví dụ\n\nTrả về chiều dài 3D của các đối tượng trong lớp ở đơn vị mét\n\n```arcade\nLength3D($layer, 'meters')\n```\n\n",
|
|
2004
2213
|
"completion": {
|
|
2005
2214
|
"label": "Length3D",
|
|
2006
2215
|
"detail": "Length3D(features, unit?) -> Number",
|
|
@@ -2830,6 +3039,57 @@
|
|
|
2830
3039
|
"max": 2
|
|
2831
3040
|
}
|
|
2832
3041
|
},
|
|
3042
|
+
[
|
|
3043
|
+
{
|
|
3044
|
+
"type": "function",
|
|
3045
|
+
"name": "defaultvalue",
|
|
3046
|
+
"bundle": "core",
|
|
3047
|
+
"sinceVersion": "1.26",
|
|
3048
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue1",
|
|
3049
|
+
"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.",
|
|
3050
|
+
"examples": "\n##### Ví dụ\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",
|
|
3051
|
+
"completion": {
|
|
3052
|
+
"label": "DefaultValue",
|
|
3053
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
3054
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
3055
|
+
"insertTextMode": 2,
|
|
3056
|
+
"insertTextFormat": 2,
|
|
3057
|
+
"kind": 3,
|
|
3058
|
+
"documentation": {
|
|
3059
|
+
"kind": "markdown",
|
|
3060
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [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`."
|
|
3061
|
+
}
|
|
3062
|
+
},
|
|
3063
|
+
"parametersInfo": {
|
|
3064
|
+
"min": 3,
|
|
3065
|
+
"max": 3
|
|
3066
|
+
}
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"type": "function",
|
|
3070
|
+
"name": "defaultvalue",
|
|
3071
|
+
"bundle": "core",
|
|
3072
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#defaultvalue2",
|
|
3073
|
+
"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.",
|
|
3074
|
+
"examples": "\n##### Ví dụ\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",
|
|
3075
|
+
"completion": {
|
|
3076
|
+
"label": "DefaultValue",
|
|
3077
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
3078
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
3079
|
+
"insertTextMode": 2,
|
|
3080
|
+
"insertTextFormat": 2,
|
|
3081
|
+
"kind": 3,
|
|
3082
|
+
"documentation": {
|
|
3083
|
+
"kind": "markdown",
|
|
3084
|
+
"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**Thông số**\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**Giá trị trả về**: [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`."
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
"parametersInfo": {
|
|
3088
|
+
"min": 3,
|
|
3089
|
+
"max": 3
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
],
|
|
2833
3093
|
{
|
|
2834
3094
|
"type": "function",
|
|
2835
3095
|
"name": "densify",
|
|
@@ -2980,6 +3240,31 @@
|
|
|
2980
3240
|
"max": 3
|
|
2981
3241
|
}
|
|
2982
3242
|
},
|
|
3243
|
+
{
|
|
3244
|
+
"type": "function",
|
|
3245
|
+
"name": "distancetocoordinate",
|
|
3246
|
+
"bundle": "geometry",
|
|
3247
|
+
"sinceVersion": "1.26",
|
|
3248
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#distancetocoordinate",
|
|
3249
|
+
"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._",
|
|
3250
|
+
"examples": "\n##### Ví dụ\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",
|
|
3251
|
+
"completion": {
|
|
3252
|
+
"label": "DistanceToCoordinate",
|
|
3253
|
+
"detail": "DistanceToCoordinate(inputLine, inputDistance) -> Dictionary",
|
|
3254
|
+
"insertText": "DistanceToCoordinate(${1:inputLine_}, ${2:inputDistance_})$0",
|
|
3255
|
+
"insertTextMode": 2,
|
|
3256
|
+
"insertTextFormat": 2,
|
|
3257
|
+
"kind": 3,
|
|
3258
|
+
"documentation": {
|
|
3259
|
+
"kind": "markdown",
|
|
3260
|
+
"value": "**[Kể từ phiên bản 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**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) - 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**Giá trị trả về**: [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`."
|
|
3261
|
+
}
|
|
3262
|
+
},
|
|
3263
|
+
"parametersInfo": {
|
|
3264
|
+
"min": 2,
|
|
3265
|
+
"max": 2
|
|
3266
|
+
}
|
|
3267
|
+
},
|
|
2983
3268
|
{
|
|
2984
3269
|
"type": "function",
|
|
2985
3270
|
"name": "envelopeintersects",
|
|
@@ -3153,6 +3438,58 @@
|
|
|
3153
3438
|
"max": 1
|
|
3154
3439
|
}
|
|
3155
3440
|
},
|
|
3441
|
+
[
|
|
3442
|
+
{
|
|
3443
|
+
"type": "function",
|
|
3444
|
+
"name": "hasvalue",
|
|
3445
|
+
"bundle": "core",
|
|
3446
|
+
"sinceVersion": "1.26",
|
|
3447
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue1",
|
|
3448
|
+
"description": "Indicates whether a geometry has a value at a given key or index.",
|
|
3449
|
+
"examples": "\n##### Ví dụ\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",
|
|
3450
|
+
"completion": {
|
|
3451
|
+
"label": "HasValue",
|
|
3452
|
+
"detail": "HasValue(inputGeometry, key) -> Boolean",
|
|
3453
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:key_})$0",
|
|
3454
|
+
"insertTextMode": 2,
|
|
3455
|
+
"insertTextFormat": 2,
|
|
3456
|
+
"kind": 3,
|
|
3457
|
+
"documentation": {
|
|
3458
|
+
"kind": "markdown",
|
|
3459
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3460
|
+
}
|
|
3461
|
+
},
|
|
3462
|
+
"parametersInfo": {
|
|
3463
|
+
"min": 2,
|
|
3464
|
+
"max": 2
|
|
3465
|
+
}
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"type": "function",
|
|
3469
|
+
"name": "hasvalue",
|
|
3470
|
+
"bundle": "core",
|
|
3471
|
+
"sinceVersion": "1.26",
|
|
3472
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#hasvalue2",
|
|
3473
|
+
"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.",
|
|
3474
|
+
"examples": "\n##### Ví dụ\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",
|
|
3475
|
+
"completion": {
|
|
3476
|
+
"label": "HasValue",
|
|
3477
|
+
"detail": "HasValue(inputGeometry, keys) -> Boolean",
|
|
3478
|
+
"insertText": "HasValue(${1:inputGeometry_}, ${2:keys_})$0",
|
|
3479
|
+
"insertTextMode": 2,
|
|
3480
|
+
"insertTextFormat": 2,
|
|
3481
|
+
"kind": 3,
|
|
3482
|
+
"documentation": {
|
|
3483
|
+
"kind": "markdown",
|
|
3484
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
3485
|
+
}
|
|
3486
|
+
},
|
|
3487
|
+
"parametersInfo": {
|
|
3488
|
+
"min": 2,
|
|
3489
|
+
"max": 2
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
],
|
|
3156
3493
|
{
|
|
3157
3494
|
"type": "function",
|
|
3158
3495
|
"name": "intersection",
|
|
@@ -3328,6 +3665,31 @@
|
|
|
3328
3665
|
"max": 2
|
|
3329
3666
|
}
|
|
3330
3667
|
},
|
|
3668
|
+
{
|
|
3669
|
+
"type": "function",
|
|
3670
|
+
"name": "measuretocoordinate",
|
|
3671
|
+
"bundle": "geometry",
|
|
3672
|
+
"sinceVersion": "1.26",
|
|
3673
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#measuretocoordinate",
|
|
3674
|
+
"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._",
|
|
3675
|
+
"examples": "\n##### Ví dụ\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",
|
|
3676
|
+
"completion": {
|
|
3677
|
+
"label": "MeasureToCoordinate",
|
|
3678
|
+
"detail": "MeasureToCoordinate(inputLine, inputMeasure) -> Dictionary",
|
|
3679
|
+
"insertText": "MeasureToCoordinate(${1:inputLine_}, ${2:inputMeasure_})$0",
|
|
3680
|
+
"insertTextMode": 2,
|
|
3681
|
+
"insertTextFormat": 2,
|
|
3682
|
+
"kind": 3,
|
|
3683
|
+
"documentation": {
|
|
3684
|
+
"kind": "markdown",
|
|
3685
|
+
"value": "**[Kể từ phiên bản 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**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) - 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**Giá trị trả về**: [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`."
|
|
3686
|
+
}
|
|
3687
|
+
},
|
|
3688
|
+
"parametersInfo": {
|
|
3689
|
+
"min": 2,
|
|
3690
|
+
"max": 2
|
|
3691
|
+
}
|
|
3692
|
+
},
|
|
3331
3693
|
{
|
|
3332
3694
|
"type": "function",
|
|
3333
3695
|
"name": "multiparttosinglepart",
|
|
@@ -3444,7 +3806,7 @@
|
|
|
3444
3806
|
"kind": 3,
|
|
3445
3807
|
"documentation": {
|
|
3446
3808
|
"kind": "markdown",
|
|
3447
|
-
"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
|
|
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) - "
|
|
3448
3810
|
}
|
|
3449
3811
|
},
|
|
3450
3812
|
"parametersInfo": {
|
|
@@ -3469,7 +3831,7 @@
|
|
|
3469
3831
|
"kind": 3,
|
|
3470
3832
|
"documentation": {
|
|
3471
3833
|
"kind": "markdown",
|
|
3472
|
-
"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
|
|
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) - "
|
|
3473
3835
|
}
|
|
3474
3836
|
},
|
|
3475
3837
|
"parametersInfo": {
|
|
@@ -3577,6 +3939,31 @@
|
|
|
3577
3939
|
}
|
|
3578
3940
|
}
|
|
3579
3941
|
],
|
|
3942
|
+
{
|
|
3943
|
+
"type": "function",
|
|
3944
|
+
"name": "pointtocoordinate",
|
|
3945
|
+
"bundle": "geometry",
|
|
3946
|
+
"sinceVersion": "1.26",
|
|
3947
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#pointtocoordinate",
|
|
3948
|
+
"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._",
|
|
3949
|
+
"examples": "\n##### Ví dụ\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",
|
|
3950
|
+
"completion": {
|
|
3951
|
+
"label": "PointToCoordinate",
|
|
3952
|
+
"detail": "PointToCoordinate(inputLine, searchPoint) -> Dictionary",
|
|
3953
|
+
"insertText": "PointToCoordinate(${1:inputLine_}, ${2:searchPoint_})$0",
|
|
3954
|
+
"insertTextMode": 2,
|
|
3955
|
+
"insertTextFormat": 2,
|
|
3956
|
+
"kind": 3,
|
|
3957
|
+
"documentation": {
|
|
3958
|
+
"kind": "markdown",
|
|
3959
|
+
"value": "**[Kể từ phiên bản 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**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) - 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**Giá trị trả về**: [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`."
|
|
3960
|
+
}
|
|
3961
|
+
},
|
|
3962
|
+
"parametersInfo": {
|
|
3963
|
+
"min": 2,
|
|
3964
|
+
"max": 2
|
|
3965
|
+
}
|
|
3966
|
+
},
|
|
3580
3967
|
[
|
|
3581
3968
|
{
|
|
3582
3969
|
"type": "function",
|
|
@@ -4439,7 +4826,7 @@
|
|
|
4439
4826
|
"bundle": "core",
|
|
4440
4827
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
4441
4828
|
"description": "Trừ đi hai Ngày và trả về hiệu số theo đơn vị xác định.",
|
|
4442
|
-
"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\nĐ_Subtracts two Dates and returns the difference_________________________ớ.\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
|
|
4443
4830
|
"completion": {
|
|
4444
4831
|
"label": "DateDiff",
|
|
4445
4832
|
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
@@ -5473,7 +5860,7 @@
|
|
|
5473
5860
|
"sinceVersion": "1.12",
|
|
5474
5861
|
"link": "https://developers.arcgis.com/arcade/function-reference/track_functions/#trackdistanceat",
|
|
5475
5862
|
"description": "Tổng khoảng cách di chuyển giữa các lần quan sát từ lần quan sát đầu tiên đến lần quan sát hiện tại cộng với giá trị đã cho.",
|
|
5476
|
-
"examples": "\n##### Ví dụ\n\nTheo dõi của bạn có sáu đối tượng như trên. Biểu thức trả về một giá trị cho từng đối tượng trong theo dõi. Trong ví dụ đầu tiên, chúng ta kiểm tra kết quả khi được đánh giá tại đối tượng 2 (p2) với giá trị chỉ mục là 2. Phép tính là `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nTheo dõi của bạn có sáu đối tượng như trên. Biểu thức trả về một giá trị cho từng đối tượng trong theo dõi. Trong ví dụ sau, chúng ta kiểm tra kết quả khi được đánh giá ở đối tượng 4 (p4) với giá trị chỉ mục là 4. Phép tính là `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(
|
|
5863
|
+
"examples": "\n##### Ví dụ\n\nTheo dõi của bạn có sáu đối tượng như trên. Biểu thức trả về một giá trị cho từng đối tượng trong theo dõi. Trong ví dụ đầu tiên, chúng ta kiểm tra kết quả khi được đánh giá tại đối tượng 2 (p2) với giá trị chỉ mục là 2. Phép tính là `30 + 80 + 60 = 170`.\n\n```arcade\nTrackDistanceAt(2)\n// returns 170\n```\n\nTheo dõi của bạn có sáu đối tượng như trên. Biểu thức trả về một giá trị cho từng đối tượng trong theo dõi. Trong ví dụ sau, chúng ta kiểm tra kết quả khi được đánh giá ở đối tượng 4 (p4) với giá trị chỉ mục là 4. Phép tính là `25 + 35 + 30 + 80 + 60 = 230`.\n\n```arcade\nTrackDistanceAt(4)\n// returns 230\n```\n\n",
|
|
5477
5864
|
"completion": {
|
|
5478
5865
|
"label": "TrackDistanceAt",
|
|
5479
5866
|
"detail": "TrackDistanceAt(index) -> Number",
|
|
@@ -6569,6 +6956,57 @@
|
|
|
6569
6956
|
"id": "dictionary_functions",
|
|
6570
6957
|
"title": "Hàm từ điển",
|
|
6571
6958
|
"items": [
|
|
6959
|
+
[
|
|
6960
|
+
{
|
|
6961
|
+
"type": "function",
|
|
6962
|
+
"name": "defaultvalue",
|
|
6963
|
+
"bundle": "core",
|
|
6964
|
+
"sinceVersion": "1.26",
|
|
6965
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue1",
|
|
6966
|
+
"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.",
|
|
6967
|
+
"examples": "\n##### Ví dụ\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",
|
|
6968
|
+
"completion": {
|
|
6969
|
+
"label": "DefaultValue",
|
|
6970
|
+
"detail": "DefaultValue(container, key, defaultValue) -> Any",
|
|
6971
|
+
"insertText": "DefaultValue(${1:container_}, ${2:key_}, ${3:defaultValue_})$0",
|
|
6972
|
+
"insertTextMode": 2,
|
|
6973
|
+
"insertTextFormat": 2,
|
|
6974
|
+
"kind": 3,
|
|
6975
|
+
"documentation": {
|
|
6976
|
+
"kind": "markdown",
|
|
6977
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [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`."
|
|
6978
|
+
}
|
|
6979
|
+
},
|
|
6980
|
+
"parametersInfo": {
|
|
6981
|
+
"min": 3,
|
|
6982
|
+
"max": 3
|
|
6983
|
+
}
|
|
6984
|
+
},
|
|
6985
|
+
{
|
|
6986
|
+
"type": "function",
|
|
6987
|
+
"name": "defaultvalue",
|
|
6988
|
+
"bundle": "core",
|
|
6989
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#defaultvalue2",
|
|
6990
|
+
"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.",
|
|
6991
|
+
"examples": "\n##### Ví dụ\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",
|
|
6992
|
+
"completion": {
|
|
6993
|
+
"label": "DefaultValue",
|
|
6994
|
+
"detail": "DefaultValue(container, keys, defaultValue) -> Any",
|
|
6995
|
+
"insertText": "DefaultValue(${1:container_}, ${2:keys_}, ${3:defaultValue_})$0",
|
|
6996
|
+
"insertTextMode": 2,
|
|
6997
|
+
"insertTextFormat": 2,
|
|
6998
|
+
"kind": 3,
|
|
6999
|
+
"documentation": {
|
|
7000
|
+
"kind": "markdown",
|
|
7001
|
+
"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**Thông số**\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**Giá trị trả về**: [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`."
|
|
7002
|
+
}
|
|
7003
|
+
},
|
|
7004
|
+
"parametersInfo": {
|
|
7005
|
+
"min": 3,
|
|
7006
|
+
"max": 3
|
|
7007
|
+
}
|
|
7008
|
+
}
|
|
7009
|
+
],
|
|
6572
7010
|
[
|
|
6573
7011
|
{
|
|
6574
7012
|
"type": "function",
|
|
@@ -6744,31 +7182,58 @@
|
|
|
6744
7182
|
"max": 2
|
|
6745
7183
|
}
|
|
6746
7184
|
},
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
"
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
"
|
|
6764
|
-
|
|
7185
|
+
[
|
|
7186
|
+
{
|
|
7187
|
+
"type": "function",
|
|
7188
|
+
"name": "hasvalue",
|
|
7189
|
+
"bundle": "core",
|
|
7190
|
+
"sinceVersion": "1.20",
|
|
7191
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue1",
|
|
7192
|
+
"description": "Indicates whether a dictionary has a given key and if that key has a value.",
|
|
7193
|
+
"examples": "\n##### Ví dụ\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",
|
|
7194
|
+
"completion": {
|
|
7195
|
+
"label": "HasValue",
|
|
7196
|
+
"detail": "HasValue(inputDictionary, key) -> Boolean",
|
|
7197
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:key_})$0",
|
|
7198
|
+
"insertTextMode": 2,
|
|
7199
|
+
"insertTextFormat": 2,
|
|
7200
|
+
"kind": 3,
|
|
7201
|
+
"documentation": {
|
|
7202
|
+
"kind": "markdown",
|
|
7203
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7204
|
+
}
|
|
7205
|
+
},
|
|
7206
|
+
"parametersInfo": {
|
|
7207
|
+
"min": 2,
|
|
7208
|
+
"max": 2
|
|
6765
7209
|
}
|
|
6766
7210
|
},
|
|
6767
|
-
|
|
6768
|
-
"
|
|
6769
|
-
"
|
|
7211
|
+
{
|
|
7212
|
+
"type": "function",
|
|
7213
|
+
"name": "hasvalue",
|
|
7214
|
+
"bundle": "core",
|
|
7215
|
+
"sinceVersion": "1.26",
|
|
7216
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/dictionary_functions/#hasvalue2",
|
|
7217
|
+
"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.",
|
|
7218
|
+
"examples": "\n##### Ví dụ\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",
|
|
7219
|
+
"completion": {
|
|
7220
|
+
"label": "HasValue",
|
|
7221
|
+
"detail": "HasValue(inputDictionary, keys) -> Boolean",
|
|
7222
|
+
"insertText": "HasValue(${1:inputDictionary_}, ${2:keys_})$0",
|
|
7223
|
+
"insertTextMode": 2,
|
|
7224
|
+
"insertTextFormat": 2,
|
|
7225
|
+
"kind": 3,
|
|
7226
|
+
"documentation": {
|
|
7227
|
+
"kind": "markdown",
|
|
7228
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
7229
|
+
}
|
|
7230
|
+
},
|
|
7231
|
+
"parametersInfo": {
|
|
7232
|
+
"min": 2,
|
|
7233
|
+
"max": 2
|
|
7234
|
+
}
|
|
6770
7235
|
}
|
|
6771
|
-
|
|
7236
|
+
]
|
|
6772
7237
|
]
|
|
6773
7238
|
},
|
|
6774
7239
|
{
|