@arcgis/core 4.31.0-next.20240930 → 4.31.0-next.20241003
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/applications/Urban/meshUtils.d.ts +4 -0
- package/applications/Urban/meshUtils.js +5 -0
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/assets/components/assets/action/t9n/messages.json +2 -1
- package/assets/components/assets/action/t9n/messages_en.json +2 -1
- package/assets/components/assets/dialog/t9n/messages_ar.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_bg.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_bs.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_ca.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_cs.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_da.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_de.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_el.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_es.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_et.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_fi.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_fr.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_he.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_hr.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_hu.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_id.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_it.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_ja.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_ko.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_lt.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_lv.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_nl.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_no.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_pl.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_pt-BR.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_pt-PT.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_ro.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_ru.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_sk.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_sl.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_sr.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_sv.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_th.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_tr.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_uk.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_vi.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_zh-CN.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_zh-HK.json +3 -1
- package/assets/components/assets/dialog/t9n/messages_zh-TW.json +3 -1
- package/assets/components/assets/icon/connectionEndLeft16.json +1 -0
- package/assets/components/assets/icon/connectionEndLeft24.json +1 -0
- package/assets/components/assets/icon/connectionEndLeft32.json +1 -0
- package/assets/components/assets/icon/connectionEndRight16.json +1 -0
- package/assets/components/assets/icon/connectionEndRight24.json +1 -0
- package/assets/components/assets/icon/connectionEndRight32.json +1 -0
- package/assets/components/assets/icon/connectionMiddle16.json +1 -0
- package/assets/components/assets/icon/connectionMiddle24.json +1 -0
- package/assets/components/assets/icon/connectionMiddle32.json +1 -0
- package/assets/components/assets/icon/connectionToConnection16.json +1 -0
- package/assets/components/assets/icon/connectionToConnection24.json +1 -0
- package/assets/components/assets/icon/connectionToConnection32.json +1 -0
- package/assets/components/assets/icon/contentInlineRight16.json +1 -0
- package/assets/components/assets/icon/contentInlineRight24.json +1 -0
- package/assets/components/assets/icon/contentInlineRight32.json +1 -0
- package/assets/components/assets/icon/dashboardGraph16.json +1 -0
- package/assets/components/assets/icon/dashboardGraph24.json +1 -0
- package/assets/components/assets/icon/dashboardGraph32.json +1 -0
- package/assets/components/assets/icon/divide16.json +1 -0
- package/assets/components/assets/icon/divide24.json +1 -0
- package/assets/components/assets/icon/divide32.json +1 -0
- package/assets/components/assets/icon/i3DBuilding16.json +1 -0
- package/assets/components/assets/icon/i3DBuilding24.json +1 -0
- package/assets/components/assets/icon/i3DBuilding32.json +1 -0
- package/assets/components/assets/icon/i3DBuildingParameter16.json +1 -0
- package/assets/components/assets/icon/i3DBuildingParameter24.json +1 -0
- package/assets/components/assets/icon/i3DBuildingParameter32.json +1 -0
- package/assets/components/assets/icon/justify16.json +1 -0
- package/assets/components/assets/icon/justify24.json +1 -0
- package/assets/components/assets/icon/justify32.json +1 -0
- package/assets/components/assets/icon/layers16F.json +1 -0
- package/assets/components/assets/icon/layers24F.json +1 -0
- package/assets/components/assets/icon/layers32F.json +1 -0
- package/assets/components/assets/icon/modelHistory16.json +1 -0
- package/assets/components/assets/icon/modelHistory24.json +1 -0
- package/assets/components/assets/icon/modelHistory32.json +1 -0
- package/assets/components/assets/icon/nVariable16.json +1 -0
- package/assets/components/assets/icon/nVariable24.json +1 -0
- package/assets/components/assets/icon/nVariable32.json +1 -0
- package/assets/components/assets/icon/parcel16.json +1 -0
- package/assets/components/assets/icon/parcel24.json +1 -0
- package/assets/components/assets/icon/parcel32.json +1 -0
- package/assets/components/assets/icon/parcelParameter16.json +1 -0
- package/assets/components/assets/icon/parcelParameter24.json +1 -0
- package/assets/components/assets/icon/parcelParameter32.json +1 -0
- package/assets/components/assets/icon/rasterFunctionHistory16.json +1 -0
- package/assets/components/assets/icon/rasterFunctionHistory24.json +1 -0
- package/assets/components/assets/icon/rasterFunctionHistory32.json +1 -0
- package/assets/components/assets/icon/rasterFunctionTemplateHistory16.json +1 -0
- package/assets/components/assets/icon/rasterFunctionTemplateHistory24.json +1 -0
- package/assets/components/assets/icon/rasterFunctionTemplateHistory32.json +1 -0
- package/assets/components/assets/icon/rasterToolHistory16.json +1 -0
- package/assets/components/assets/icon/rasterToolHistory24.json +1 -0
- package/assets/components/assets/icon/rasterToolHistory32.json +1 -0
- package/assets/components/assets/icon/refresh16F.json +1 -0
- package/assets/components/assets/icon/refresh24F.json +1 -0
- package/assets/components/assets/icon/refresh32F.json +1 -0
- package/assets/components/assets/icon/rss16F.json +1 -0
- package/assets/components/assets/icon/rss24F.json +1 -0
- package/assets/components/assets/icon/rss32F.json +1 -0
- package/assets/components/assets/icon/spaces16.json +1 -0
- package/assets/components/assets/icon/spaces24.json +1 -0
- package/assets/components/assets/icon/spaces32.json +1 -0
- package/assets/components/assets/icon/spacesParameter16.json +1 -0
- package/assets/components/assets/icon/spacesParameter24.json +1 -0
- package/assets/components/assets/icon/spacesParameter32.json +1 -0
- package/assets/components/assets/icon/squareBracketsX16.json +1 -0
- package/assets/components/assets/icon/squareBracketsX24.json +1 -0
- package/assets/components/assets/icon/squareBracketsX32.json +1 -0
- package/assets/components/assets/icon/toolHistory16.json +1 -0
- package/assets/components/assets/icon/toolHistory24.json +1 -0
- package/assets/components/assets/icon/toolHistory32.json +1 -0
- package/assets/components/assets/icon/tracePath16.json +1 -0
- package/assets/components/assets/icon/tracePath24.json +1 -0
- package/assets/components/assets/icon/tracePath32.json +1 -0
- package/assets/components/assets/icon/tracePathComplete16.json +1 -0
- package/assets/components/assets/icon/tracePathComplete24.json +1 -0
- package/assets/components/assets/icon/tracePathComplete32.json +1 -0
- package/assets/components/assets/icon/validate16.json +1 -0
- package/assets/components/assets/icon/validate24.json +1 -0
- package/assets/components/assets/icon/validate32.json +1 -0
- package/assets/components/assets/icon/webAdaptor16.json +1 -0
- package/assets/components/assets/icon/webAdaptor24.json +1 -0
- package/assets/components/assets/icon/webAdaptor32.json +1 -0
- package/assets/components/assets/icon/zoningParameter16.json +1 -0
- package/assets/components/assets/icon/zoningParameter24.json +1 -0
- package/assets/components/assets/icon/zoningParameter32.json +1 -0
- package/assets/components/assets/input-time-zone/t9n/messages.json +46 -1
- package/assets/components/assets/input-time-zone/t9n/messages_ar.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_bg.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_bs.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_ca.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_cs.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_da.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_de.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_el.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_en.json +46 -1
- package/assets/components/assets/input-time-zone/t9n/messages_es.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_et.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_fi.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_fr.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_he.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_hr.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_hu.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_id.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_it.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_ja.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_ko.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_lt.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_lv.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_nl.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_no.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_pl.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_pt-BR.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_pt-PT.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_ro.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_ru.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_sk.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_sl.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_sr.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_sv.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_th.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_tr.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_uk.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_vi.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_zh-CN.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_zh-HK.json +262 -1
- package/assets/components/assets/input-time-zone/t9n/messages_zh-TW.json +262 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{5555c547fae1096e6330.js → 0609c5ab370c9ed577e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{4aa8d1849a9649dc08db.js → 0632751a3c81e5bda984.js} +1 -1
- package/assets/esri/core/workers/chunks/0c65654da00ec75c41e4.js +1 -0
- package/assets/esri/core/workers/chunks/0f2ffed12ce3d7fb13ac.js +1 -0
- package/assets/esri/core/workers/chunks/{83507fa29814b78964bd.js → 0f6e3f614a12a56e5246.js} +1 -1
- package/assets/esri/core/workers/chunks/110a60701b9b96bfd6a8.js +1 -0
- package/assets/esri/core/workers/chunks/{bc95ecfca457a723c4e8.js → 1201e22dbadb87cd420c.js} +1 -1
- package/assets/esri/core/workers/chunks/125433d1c1c31f29cb62.js +1 -0
- package/assets/esri/core/workers/chunks/138410bff5d5d2129116.js +318 -0
- package/assets/esri/core/workers/chunks/{a2d22700d1bffd2d222b.js → 1842f25fdf3de9d5d76d.js} +1 -1
- package/assets/esri/core/workers/chunks/1d2cb2d4b7c34ba6d0d6.js +1 -0
- package/assets/esri/core/workers/chunks/1fdafd6960327f47c1d4.js +1 -0
- package/assets/esri/core/workers/chunks/229d48e4f3c12cb094c1.js +1 -0
- package/assets/esri/core/workers/chunks/2a685bf938956b52b6c6.js +1 -0
- package/assets/esri/core/workers/chunks/{f25a345cca9ced0735c2.js → 2d6cb891a5de393e4798.js} +2 -2
- package/assets/esri/core/workers/chunks/{18ed449ee1b038d302df.js.LICENSE.txt → 2d6cb891a5de393e4798.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{d001ae6439bf6ba10519.js → 318dc9461246e9593bb2.js} +1 -1
- package/assets/esri/core/workers/chunks/{2d5e01888a7de6b1bb89.js → 35b2ac01f9c9d0af11fd.js} +2 -2
- package/assets/esri/core/workers/chunks/{2d5e01888a7de6b1bb89.js.LICENSE.txt → 35b2ac01f9c9d0af11fd.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/3931b2728158c6c8d359.js +1 -0
- package/assets/esri/core/workers/chunks/{c865fa05010472ecd0a1.js → 462f7744512bb3225a81.js} +10 -10
- package/assets/esri/core/workers/chunks/{4c217d229acaca8c2442.js → 479b24afd320fdab8be9.js} +1 -1
- package/assets/esri/core/workers/chunks/4ba77a71864b14a9dc66.js +1 -0
- package/assets/esri/core/workers/chunks/{0bdb97b7d563679be8b5.js → 5b0a72cee64612e80c0d.js} +1 -1
- package/assets/esri/core/workers/chunks/5ef1a294b75d8684fff0.js +1 -0
- package/assets/esri/core/workers/chunks/5f54723623036b6bc52b.js +1 -0
- package/assets/esri/core/workers/chunks/5fb83328d9c022f772b1.js +1 -0
- package/assets/esri/core/workers/chunks/{03f6e770f4ab7b9a434c.js → 634a2c2d65998a699900.js} +1 -1
- package/assets/esri/core/workers/chunks/6575d406927e7a58649a.js +1 -0
- package/assets/esri/core/workers/chunks/{06e0140e87c5c428bf82.js → 6757b712e946a82fd375.js} +1 -1
- package/assets/esri/core/workers/chunks/{e29aa46b54beadd0e691.js → 67eec2f761f16aa499b5.js} +1 -1
- package/assets/esri/core/workers/chunks/6c7f61e63cad30394f6b.js +1 -0
- package/assets/esri/core/workers/chunks/73d4daed6f631591cb20.js +2 -0
- package/assets/esri/core/workers/chunks/{8fc61d8c67ecad4387f4.js.LICENSE.txt → 73d4daed6f631591cb20.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/7a81e975bc4f2f09d07e.js +1 -0
- package/assets/esri/core/workers/chunks/7be6aa4fca89cda972fe.js +1 -0
- package/assets/esri/core/workers/chunks/7f5ada5e26a027e71500.js +1 -0
- package/assets/esri/core/workers/chunks/8a232508b7fe011154ab.js +1 -0
- package/assets/esri/core/workers/chunks/8a2eff5cdaf222110cc0.js +1 -0
- package/assets/esri/core/workers/chunks/8b969fd9d4495307c8c4.js +1 -0
- package/assets/esri/core/workers/chunks/{9b2a83a75d229d177514.js → 9447b540c50b2baa7da8.js} +1 -1
- package/assets/esri/core/workers/chunks/95e5fee2567c9dffadb8.js +1 -0
- package/assets/esri/core/workers/chunks/98fd00775aaf23d892b9.js +1 -0
- package/assets/esri/core/workers/chunks/9bdd3c856ca022b724ad.js +1 -0
- package/assets/esri/core/workers/chunks/9d08ec77e2a2710ebf50.js +1 -0
- package/assets/esri/core/workers/chunks/9f995df66965c34b48ad.js +1 -0
- package/assets/esri/core/workers/chunks/a2e17ba088cee5b6502a.js +1 -0
- package/assets/esri/core/workers/chunks/{5a12bde3d2c2c85c1637.js → a793c6edf095f49a79b7.js} +1 -1
- package/assets/esri/core/workers/chunks/a88121f8871c98f2e714.js +1 -0
- package/assets/esri/core/workers/chunks/aaf0c13cb24c1a9cbf54.js +2 -0
- package/assets/esri/core/workers/chunks/{74515fbd90b42a556e4b.js.LICENSE.txt → aaf0c13cb24c1a9cbf54.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/ad0620341a89395db965.js +1 -0
- package/assets/esri/core/workers/chunks/b045413c44239f597cc3.js +1 -0
- package/assets/esri/core/workers/chunks/b47f42f12d54df5ad6a2.js +1 -0
- package/assets/esri/core/workers/chunks/b6044b20fb38524a268f.js +1 -0
- package/assets/esri/core/workers/chunks/{a11cfbf459c7c68db498.js → b67fc498306c9a408cf0.js} +1 -1
- package/assets/esri/core/workers/chunks/b8ea325b27df5e57ac9b.js +1 -0
- package/assets/esri/core/workers/chunks/bd88f6c4ff81bdaf8bdd.js +2 -0
- package/assets/esri/core/workers/chunks/bd88f6c4ff81bdaf8bdd.js.LICENSE.txt +5 -0
- package/assets/esri/core/workers/chunks/bf57a7908815aec6bd3d.js +1 -0
- package/assets/esri/core/workers/chunks/c1fe40653005f97fc754.js +2 -0
- package/assets/esri/core/workers/chunks/{bb5a18dd1e6a71905668.js.LICENSE.txt → c1fe40653005f97fc754.js.LICENSE.txt} +2 -2
- package/assets/esri/core/workers/chunks/c89b58ed0e08cc6b6276.js +2 -0
- package/assets/esri/core/workers/chunks/{42b92b4c2c9fd2b15f60.js.LICENSE.txt → c89b58ed0e08cc6b6276.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/c8edb6ac7ce065f4d52c.js +1 -0
- package/assets/esri/core/workers/chunks/c90be1540463bf613dc8.js +1 -0
- package/assets/esri/core/workers/chunks/c9b592a55fc5ea6e9288.js +1 -0
- package/assets/esri/core/workers/chunks/ca3fb8d334091e4d249a.js +1 -0
- package/assets/esri/core/workers/chunks/cb946d6257bc0afabf20.js +1 -0
- package/assets/esri/core/workers/chunks/cdc14144a976eb1f20ce.js +1 -0
- package/assets/esri/core/workers/chunks/d4353dbfd03d7054c716.js +1 -0
- package/assets/esri/core/workers/chunks/{3604973c308ce59601e2.js → d4906a60d4e3aead1196.js} +2 -2
- package/assets/esri/core/workers/chunks/{3604973c308ce59601e2.js.LICENSE.txt → d4906a60d4e3aead1196.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/da9ae033688d8608c0a2.js +1 -0
- package/assets/esri/core/workers/chunks/dcf88605951b3f8e7883.js +1 -0
- package/assets/esri/core/workers/chunks/{89d336a9502381a9d60c.js → e2f3021123ff133cd552.js} +1 -1
- package/assets/esri/core/workers/chunks/e413f0757c1c3fb40294.js +1 -0
- package/assets/esri/core/workers/chunks/{8fc61d8c67ecad4387f4.js → eed944144d9777167fc4.js} +2 -2
- package/assets/esri/core/workers/chunks/eed944144d9777167fc4.js.LICENSE.txt +5 -0
- package/assets/esri/core/workers/chunks/f409c5fcef0ee9d84ed7.js +1 -0
- package/assets/esri/core/workers/chunks/{b044f7bf5d6b91471bff.js → f54c8f6a638c07b2500c.js} +1 -1
- package/assets/esri/core/workers/chunks/fc1d1e0b7ce9c0d929a6.js +1 -0
- package/assets/esri/core/workers/chunks/fce4371a086483630164.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/themes/base/widgets/_BasemapGallery.scss +0 -2
- package/assets/esri/themes/base/widgets/_GridControls.scss +4 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +20 -8
- package/assets/esri/themes/base/widgets/_Print.scss +16 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Print/t9n/Print.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ar.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_bg.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_bs.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ca.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_cs.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_da.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_de.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_el.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_en.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_es.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_et.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_fi.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_fr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_he.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_hr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_hu.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_id.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_it.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ja.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ko.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_lt.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_lv.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_nb.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_nl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pt-BR.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_pt-PT.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ro.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_ru.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sk.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sl.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_sv.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_th.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_tr.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_uk.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_vi.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-CN.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-HK.json +1 -1
- package/assets/esri/widgets/Print/t9n/Print_zh-TW.json +1 -1
- package/chunks/AtmosphereCompositing.glsl.js +6 -7
- package/chunks/ChapmanAtmosphere.glsl.js +35 -189
- package/chunks/GeodeticDistanceCalculator-BG23ykoa.js +1 -1
- package/chunks/Haze.glsl.js +44 -0
- package/chunks/HazeCompositing.glsl.js +10 -0
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/Polyline.js +1 -1
- package/chunks/SimpleGeometryCursor.js +1 -1
- package/chunks/Transformation2D.js +1 -1
- package/chunks/Viewshed.glsl.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/vec3.js +1 -1
- package/core/CollectionFlattener.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/unitUtils.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/operators/affineTransformOperator.d.ts +4 -0
- package/geometry/operators/areaOperator.d.ts +4 -0
- package/geometry/operators/bufferOperator.d.ts +4 -0
- package/geometry/operators/densifyOperator.js +1 -1
- package/geometry/operators/extendOperator.js +5 -0
- package/geometry/operators/graphicBufferOperator.d.ts +4 -0
- package/geometry/operators/gx/operatorIntegrate.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +5 -0
- package/geometry/operators/gx/operatorLocateBetween.js +5 -0
- package/geometry/operators/gx/operatorMinimumBoundingCircle.js +5 -0
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +5 -0
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/lengthOperator.d.ts +4 -0
- package/geometry/operators/linesToPolygonsOperator.js +5 -0
- package/geometry/operators/locateBetweenOperator.js +5 -0
- package/geometry/operators/minimumBoundingCircleOperator.js +5 -0
- package/geometry/operators/polygonOverlayOperator.js +5 -0
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/support/Transformation.d.ts +4 -0
- package/geometry/operators/support/Transformation.js +1 -1
- package/geometry/projection/computeTranslationToOriginAndRotation.js +1 -1
- package/geometry/projection/localRotationUtils.js +1 -1
- package/geometry/projection/projectBoundingRect.js +1 -1
- package/geometry/projection/projectBuffer.js +1 -1
- package/geometry/projection/projectPointToVector.js +1 -1
- package/geometry/projection/projectXYZToVector.js +1 -1
- package/geometry/projection.js +1 -1
- package/geometry/support/MeshGeoreferencedVertexSpace.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/buffer/math/vec3.js +1 -1
- package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/convertMeshVertexSpace.js +1 -1
- package/geometry/support/meshUtils/extent.js +5 -0
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/projectMeshVertexPositions.js +5 -0
- package/geometry/support/meshUtils/projection.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
- package/interfaces.d.ts +420 -142
- package/layers/ILyr3DWasmPerSceneView.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/mixins/refresh.js +1 -1
- package/layers/orientedImagery/core/CameraOrientationLTP.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/cameraOrientationFactory.js +1 -1
- package/layers/orientedImagery/core/cameraOrientationRegistry.js +5 -0
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/core/utils.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/support/rasterFunctions/HillshadeFunction.js +1 -1
- package/layers/support/rasterFunctions/ShadedReliefFunction.js +1 -1
- package/layers/video/VideoCameraSensorModel.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +2 -2
- package/portal/Portal.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/symbols/support/symbolConversion.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/views/2d/engine/imagery/processor/hillshadeProcessor.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/grid/GridView2D.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/support/HighlightOptions.js +1 -1
- package/views/3d/environment/ChapmanApproximation.glsl.js +37 -0
- package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/environment/ChapmanAtmosphereTechniqueConfiguration.js +1 -1
- package/views/3d/environment/ChapmanRaymarching.glsl.js +49 -0
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/FocusAreaLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWasm.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
- package/views/3d/layers/graphics/pipeline/Tile.js +1 -1
- package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
- package/views/3d/layers/graphics/pipeline/featureData/FeatureData.js +5 -0
- package/views/3d/layers/graphics/pipeline/featureData/interfaces.js +5 -0
- package/views/3d/layers/graphics/pipeline/featureData/processingUtils.js +5 -0
- package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
- package/views/3d/layers/graphics/pipeline/rendering/RenderCommandContext.js +1 -1
- package/views/3d/layers/graphics/pipeline/rendering/RenderCommandEncoder.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/Symbolizer.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/TestObjectSymbol.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/TestSymbol.js +1 -1
- package/views/3d/layers/graphics/pipeline/symbolization/UniqueValueFeatureRenderer.js +5 -0
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/I3STreeDebugger.js +1 -1
- package/views/3d/support/HighlightGroup.js +1 -1
- package/views/3d/support/HighlightOptions.js +1 -1
- package/views/3d/support/extentUtils.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/renderInfoUtils/line.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/haze/Haze.js +5 -0
- package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +5 -0
- package/views/3d/webgl-engine/effects/haze/HazeCompositingTechnique.js +5 -0
- package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +5 -0
- package/views/3d/webgl-engine/effects/haze/HazeTechniqueConfiguration.js +5 -0
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/lib/DDSUtil.js +1 -1
- package/views/3d/webgl-engine/lib/RenderSlot.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +9 -0
- package/views/SceneView.js +1 -1
- package/views/View2D.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/support/tooltipUtils.js +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/snapping/GridSnappingEngine.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/HighlightOptions.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/templates/BatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/ElementTemplateBase.js +1 -1
- package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +5 -0
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +5 -0
- package/widgets/BatchAttributeForm/templates/support/templateUtils.js +5 -0
- package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
- package/widgets/ElevationProfile.js +1 -1
- package/widgets/Feature/FeatureRelationship.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociationType.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/RelationshipColumn.js +1 -1
- package/widgets/FeatureTable/support/GroupColumnTemplate.js +1 -1
- package/widgets/FeatureTable/support/TableTemplate.js +1 -1
- package/widgets/FeatureTable/support/columnUtils.js +5 -0
- package/widgets/FeatureTable/support/tableUtils.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
- package/widgets/OrientedImageryViewer/css.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/support/GridControls.js +1 -1
- package/assets/esri/core/workers/chunks/076a98866fcad2572cc9.js +0 -1
- package/assets/esri/core/workers/chunks/0dc080c7940c22d2bb99.js +0 -1
- package/assets/esri/core/workers/chunks/1698c591ab08c94c0a22.js +0 -318
- package/assets/esri/core/workers/chunks/18ed449ee1b038d302df.js +0 -2
- package/assets/esri/core/workers/chunks/1fd5b2454281092053e8.js +0 -1
- package/assets/esri/core/workers/chunks/2cec896e6d0c7608dc92.js +0 -1
- package/assets/esri/core/workers/chunks/2e3ff4b85b2398eaa948.js +0 -1
- package/assets/esri/core/workers/chunks/30cfd37ef65f92c8d363.js +0 -1
- package/assets/esri/core/workers/chunks/325f4cd2aad105d2ce97.js +0 -1
- package/assets/esri/core/workers/chunks/3390493d0fe934bbda27.js +0 -1
- package/assets/esri/core/workers/chunks/3f5205ac3b4bf826a604.js +0 -1
- package/assets/esri/core/workers/chunks/40cab12e13c49cc4032a.js +0 -1
- package/assets/esri/core/workers/chunks/42b92b4c2c9fd2b15f60.js +0 -2
- package/assets/esri/core/workers/chunks/437dfaec7ac04c1c0b49.js +0 -1
- package/assets/esri/core/workers/chunks/43cd6fffc5b47cc483fc.js +0 -1
- package/assets/esri/core/workers/chunks/457314771033e1ee15d4.js +0 -1
- package/assets/esri/core/workers/chunks/4c59422681b2adae466e.js +0 -1
- package/assets/esri/core/workers/chunks/5d599bfa7587db9b2424.js +0 -1
- package/assets/esri/core/workers/chunks/5da6ddf9124b8bfbe885.js +0 -1
- package/assets/esri/core/workers/chunks/6728a4306c269ff1e3a8.js +0 -1
- package/assets/esri/core/workers/chunks/7218ce343fc7acba7d06.js +0 -1
- package/assets/esri/core/workers/chunks/74515fbd90b42a556e4b.js +0 -2
- package/assets/esri/core/workers/chunks/75be234ccbe331d2cac2.js +0 -1
- package/assets/esri/core/workers/chunks/8224aa420f042e96ecb7.js +0 -1
- package/assets/esri/core/workers/chunks/8637efe8f6517a6056c4.js +0 -1
- package/assets/esri/core/workers/chunks/884cd0bd036c65567929.js +0 -1
- package/assets/esri/core/workers/chunks/8e444557d54add30e48a.js +0 -1
- package/assets/esri/core/workers/chunks/93b526ae7584f395c342.js +0 -1
- package/assets/esri/core/workers/chunks/977d3fbaee363ab6ba4a.js +0 -1
- package/assets/esri/core/workers/chunks/98e872da08203455a5b6.js +0 -1
- package/assets/esri/core/workers/chunks/9efa2e0a35baf2ddab01.js +0 -1
- package/assets/esri/core/workers/chunks/9f03e6ab28a78116bfa9.js +0 -2
- package/assets/esri/core/workers/chunks/9f03e6ab28a78116bfa9.js.LICENSE.txt +0 -5
- package/assets/esri/core/workers/chunks/ad0c982f2ded189f7685.js +0 -1
- package/assets/esri/core/workers/chunks/ada6fc3e0d5fd580078a.js +0 -1
- package/assets/esri/core/workers/chunks/b1260917cfe931c2b565.js +0 -1
- package/assets/esri/core/workers/chunks/b15492c847f7e268c81d.js +0 -1
- package/assets/esri/core/workers/chunks/bb0586a53812551de3c3.js +0 -1
- package/assets/esri/core/workers/chunks/bb5a18dd1e6a71905668.js +0 -2
- package/assets/esri/core/workers/chunks/bd54d08a143b1c48301e.js +0 -1
- package/assets/esri/core/workers/chunks/c86436f3396ac7bf509f.js +0 -1
- package/assets/esri/core/workers/chunks/c872aff4393de85df653.js +0 -1
- package/assets/esri/core/workers/chunks/cdd806c6849ccfc924b4.js +0 -1
- package/assets/esri/core/workers/chunks/d43db239650e1032fcb3.js +0 -1
- package/assets/esri/core/workers/chunks/d6161041656b64b993ad.js +0 -1
- package/assets/esri/core/workers/chunks/dde985b1e8e9bedcd704.js +0 -1
- package/assets/esri/core/workers/chunks/e3afec7fb0a7643e49b2.js +0 -1
- package/assets/esri/core/workers/chunks/e4130647c1415ab616f6.js +0 -1
- package/assets/esri/core/workers/chunks/e6e763eb58b9bab954ca.js +0 -1
- package/assets/esri/core/workers/chunks/e7b45c67a8e9bd46cb5d.js +0 -1
- package/assets/esri/core/workers/chunks/f1e5d3982adbc48bec31.js +0 -1
- package/assets/esri/core/workers/chunks/f25a345cca9ced0735c2.js.LICENSE.txt +0 -5
- package/assets/esri/core/workers/chunks/fa184d63a059a9ed4e77.js +0 -1
- package/assets/esri/core/workers/chunks/fd5831abe5a28b2ec6cd.js +0 -1
- package/assets/esri/core/workers/chunks/ffd2fd3d8b7258c0068d.js +0 -1
- package/geometry/support/meshUtils/bounds.js +0 -5
- package/views/3d/layers/graphics/pipeline/fetching/Tile3DProcessor.js +0 -5
- package/widgets/BatchAttributeForm/templates/hashElementTemplate.js +0 -5
- package/widgets/BatchAttributeForm/templates/templateUtils.js +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{throwIfAborted as e}from"../../core/promiseUtils.js";async function t(t,r,o){const{convertMeshVertexSpace:s}=await import("../../geometry/support/meshUtils/convertMeshVertexSpace.js");return e(o),s(t,r,{...o,useEllipsoid:!0})}export{t as convertVertexSpaceEllipsoid};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{createTask as e}from"../../core/asyncUtils.js";import{on as o}from"../../core/events.js";import{makeHandle as t}from"../../core/handleUtils.js";import{ignoreAbortErrors as i,isAborted as n,createResolver as r,onAbort as s}from"../../core/promiseUtils.js";import{whenOnce as
|
|
5
|
+
import{createTask as e}from"../../core/asyncUtils.js";import{on as o}from"../../core/events.js";import{makeHandle as t}from"../../core/handleUtils.js";import{ignoreAbortErrors as i,isAborted as n,createResolver as r,onAbort as s,waitTick as a}from"../../core/promiseUtils.js";import{whenOnce as c}from"../../core/reactiveUtils.js";import{waitAnimationFrame as l}from"../../core/scheduling.js";import{createScreenPoint as p}from"../../core/screenUtils.js";import m from"../../views/interactive/sketch/SketchTooltipVisibleElements.js";async function d(o,t,m={}){async function d(e){const i=w(o),{tooltipOptions:d}=o;if("coordinates"===t?(t="x",d.xyMode="coordinates"):"direction"!==t&&"distance"!==t||(d.xyMode="direction-distance"),await l(),n(m)||n(e))return;const f=i?.tooltip;if(!f||!i.activeTooltipInfo?.editableFields?.find((e=>e.name===t)))return;const{handle:u,promise:v}=h(f,m),y=r(),b=s(m.signal,y.resolve),j=s(e,y.resolve),g=d.offset,M=f.position;try{if(d.forceEnabled=!0,await a(),m.position&&(d.offset=0,f.position=p(m.position[0],m.position[1])),await f.enterInputMode(t),n(m)||n(e))return;m.onOpen?.(),await Promise.race([c((()=>i.destroyed||"feedback"===f.content?.mode),m),v,y.promise])}finally{b?.remove(),j?.remove(),u.remove();const e=f.outerContainer.contains(document.activeElement);d.enabled?await f.exitInputMode({focusOnView:e}):e&&o.view?.focus(),m.onClose?.(),f.position=M,d.offset=g,d.forceEnabled=!1}}const u=f.get(o);u&&(u.abort(),await u.promise);const v=e(d);return f.set(o,v),v.promise.catch(i).finally((()=>{f.get(o)===v&&f.delete(o)}))}const f=new Map,u={area:!1,distance:!1,direction:!1,elevation:!1,orientation:!1,radius:!1,rotation:!1,scale:!1,size:!1,totalLength:!1,coordinates:!1,helpMessage:!1,header:!1};function v(e){e.tooltipOptions.visibleElements=new m(u)}function h(e,{hideOnBlur:i=!0}){const n=r();if(!i)return{promise:n.promise,handle:t()};const{outerContainer:s}=e,a=o(s,"focusout",(({relatedTarget:e})=>{e instanceof HTMLElement&&s.contains(e)||n.resolve()}));return{promise:n.promise,handle:a}}function w(e){const{activeComponent:o}=e;return o&&"tooltip"in o&&"activeTooltipInfo"in o&&"destroyed"in o?o:null}export{v as hideAllVisibleElements,d as showTooltipAndFocusField};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../../../Graphic.js";import{a1 as t}from"../../../chunks/languageUtils.js";import{SqlExpressionAdapted as i,OriginalField as s,AdaptedFeatureSet as n}from"./Adapted.js";import r from"./AttributeFilter.js";import a from"./OrderBy.js";import{FeatureSetError as l,FeatureSetErrorCodes as o}from"../support/errorsupport.js";import d from"../support/FeatureSet.js";import u from"../support/IdSet.js";import f from"../support/OrderbyClause.js";import{IdState as c,layerGeometryEsriConstants as p,FeatureServiceDatabaseType as h}from"../support/shared.js";import{isSingleField as g,toWhereClause as _,predictType as m,scanForField as y,reformulateWithoutField as b}from"../support/sqlUtils.js";import{calculateStat as w}from"../support/stats.js";import F from"../support/StatsField.js";import{createMD5Hash as I,outputTypes as S}from"../../../core/MD5.js";import{DateOnly as x}from"../../../core/sql/DateOnly.js";import{SqlTimeStampOffset as D}from"../../../core/sql/SqlTimestampOffset.js";import{TimeOnly as k}from"../../../core/sql/TimeOnly.js";import{WhereClause as j}from"../../../core/sql/WhereClause.js";import A from"../../../geometry/SpatialReference.js";import C from"../../../layers/support/Field.js";import T from"../../../layers/support/FieldsIndex.js";function G(e){if(!e)return"COUNT";switch(e.toLowerCase()){case"max":return"MAX";case"var":case"variance":return"VAR";case"avg":case"average":case"mean":return"AVG";case"min":return"MIN";case"sum":return"SUM";case"stdev":case"stddev":return"STDDEV";case"count":return"COUNT"}return"COUNT"}class O extends d{constructor(e){super(e),this._decodedStatsfield=[],this._decodedGroupbyfield=[],this._candosimplegroupby=!0,this.phsyicalgroupbyfields=[],this.objectIdField="ROW__ID",this._internalObjectIdField="ROW__ID",this._adaptedFields=[],this.declaredClass="esri.arcade.featureset.actions.Aggregate",this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}async _getSet(e){if(null===this._wset){const t=await this._getFilteredSet("",null,null,null,e);return this._wset=t,this._wset}return this._wset}_isInFeatureSet(){return c.InFeatureSet}_nextUniqueName(e){for(;1===e["T"+this._uniqueIds.toString()];)this._uniqueIds++;const t="T"+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){const e={};let t=!1,n=1;const r=this._parent?this._parent.getFieldsIndex():new T([]);for(this.objectIdField="ROW__ID",this.globalIdField="";!1===t;){let e=!1;for(let t=0;t<this._config.groupbyfields.length;t++)if(this._config.groupbyfields[t].name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}if(!1===e)for(let t=0;t<this._config.statsfields.length;t++)if(this._config.statsfields[t].name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}!1===e?t=!0:(this.objectIdField="ROW__ID"+n.toString(),n++)}for(const i of this._config.statsfields){const e=new F;e.field=i.name,e.tofieldname=i.name,e.workingexpr=i.expression instanceof j?i.expression:j.create(i.expression,{fieldsIndex:r,timeZone:this.dateFieldsTimeZoneDefaultUTC}),e.typeofstat=G(i.statistic),this._decodedStatsfield.push(e)}this._decodedGroupbyfield=[];for(const i of this._config.groupbyfields){const e={name:i.name,singlefield:null,tofieldname:i.name,expression:i.expression instanceof j?i.expression:j.create(i.expression,{fieldsIndex:r,timeZone:this.dateFieldsTimeZoneDefaultUTC}),sqlType:null};this._decodedGroupbyfield.push(e)}if(null!==this._parent){this.geometryType=this._parent.geometryType,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField="";for(const t of this._parent.fields)e[t.name.toUpperCase()]=1;this.types=null,this.subtypes=null,this.subtypeField=""}else this.geometryType=p.point,this.typeIdField="",this.types=null,this.subtypes=null,this.subtypeField="",this.spatialReference=new A({wkid:4326});this.fields=[];const a=new F;a.field=this._nextUniqueName(e),a.tofieldname=this.objectIdField,a.workingexpr=j.create(this._parent.objectIdField,{fieldsIndex:this._parent.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),a.typeofstat="MIN",this._decodedStatsfield.push(a);for(const s of this._decodedGroupbyfield){const t=new C;if(s.name=this._nextUniqueName(e),t.name=s.tofieldname,t.alias=t.name,g(s.expression)){const e=this._parent.getField(_(s.expression,h.Standardised));if(!e)throw new l(o.AggregationFieldNotFound);s.name=e.name,s.singlefield=e.name,this.phsyicalgroupbyfields.push(e.name),t.type=e.type,s.sqlType=e.type}else{t.type=this._convertToEsriFieldType(m(s.expression,this._parent.fields));const e=new C;e.name=s.name,e.alias=e.name,this.phsyicalgroupbyfields.push(s.name),this._adaptedFields.push(new i(e,s.expression)),this._candosimplegroupby=!1,s.sqlType=t.type}this.fields.push(t)}if(this._adaptedFields.length>0)for(const i of this._parent.fields)this._adaptedFields.push(new s(i));for(let i=0;i<this._decodedStatsfield.length;i++){const t=new C;let s=null;const n=this._decodedStatsfield[i];n.field=this._nextUniqueName(e),n.tofieldname===this.objectIdField&&(this._internalObjectIdField=n.field),t.name=n.tofieldname,t.alias=t.name;const r=null!==n.workingexpr&&g(n.workingexpr)?_(n.workingexpr,h.Standardised):"";switch(this._decodedStatsfield[i].typeofstat){case"SUM":if(""!==r){if(s=this._parent.getField(r),!s)throw new l(o.AggregationFieldNotFound);t.type=s.type}else t.type="double";break;case"MIN":case"MAX":if(""!==r){if(s=this._parent.getField(r),!s)throw new l(o.AggregationFieldNotFound);t.type=s.type}else t.type="double";break;case"COUNT":t.type="integer";break;case"STDDEV":case"VAR":case"AVG":if(""!==r&&(s=this._parent.getField(r),!s))throw new l(o.AggregationFieldNotFound);t.type="double"}this.fields.push(t)}}async _canDoAggregates(){return!1}async _getFeatures(e,t,i,s){-1!==t&&this._featureCache[t];const n=this._maxQuery;return!0===this._checkIfNeedToExpandKnownPage(e,n)?(await this._expandPagedSet(e,n,0,0,s),this._getFeatures(e,t,i,s)):"success"}async _getFilteredSet(e,t,i,s,l){if(""!==e)return new u([],[],!0,null);let o=null;const d={ordered:!1,nowhereclause:!1};if(await this._ensureLoaded(),null!==i)for(let n=0;n<this._decodedStatsfield.length;n++)if(!0===y(i,this._decodedStatsfield[n].tofieldname)){d.nowhereclause=!0,i=null;break}if(null!==s){d.ordered=!0;for(let e=0;e<this._decodedStatsfield.length;e++)if(!0===s.scanForField(this._decodedStatsfield[e].tofieldname)){s=null,d.ordered=!1;break}if(null!==s)for(const e of this._decodedGroupbyfield)if(null===e.singlefield&&!0===s.scanForField(e.tofieldname)){s=null,d.ordered=!1;break}}if(!1!==this._candosimplegroupby&&await this._parent._canDoAggregates(this.phsyicalgroupbyfields,this._decodedStatsfield,"",null,null)){let e=null;i&&(e=this._reformulateWhereClauseWithoutGroupByFields(i));let t=null;s&&(t=this._reformulateOrderClauseWithoutGroupByFields(s));const n=await this._parent._getAggregatePagesDataSourceDefinition(this.phsyicalgroupbyfields,this._decodedStatsfield,"",null,e,t,this._internalObjectIdField);return this._checkCancelled(l),o=!0===d.nowhereclause?new u(n._candidates.slice().concat(n._known.slice()),[],!0===d.ordered&&n._ordered,this._clonePageDefinition(n.pagesDefinition)):new u(n._candidates.slice(),n._known.slice(),!0===d.ordered&&n._ordered,this._clonePageDefinition(n.pagesDefinition)),o}let c=this._parent;if(this._adaptedFields.length>0&&(c=new n({parentfeatureset:this._parent,adaptedFields:this._adaptedFields,extraFilter:null})),!0===d.nowhereclause)o=new u(["GETPAGES"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:this._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:"manual",iterator:null,set:[],subfeatureset:new a({parentfeatureset:c,orderbyclause:new f(this.phsyicalgroupbyfields.join(",")+","+this._parent.objectIdField+" ASC")})}});else{let e=c;if(null!==i){let t=null;i&&(t=this._reformulateWhereClauseWithoutGroupByFields(i)),e=new r({parentfeatureset:e,whereclause:t})}o=new u(["GETPAGES"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:this._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:"manual",iterator:null,set:[],subfeatureset:new a({parentfeatureset:e,orderbyclause:new f(this.phsyicalgroupbyfields.join(",")+","+this._parent.objectIdField+" ASC")})}})}return o}_reformulateWhereClauseWithoutStatsFields(e){for(const t of this._decodedStatsfield)e=b(e,t.tofieldname,_(t.workingexpr,h.Standardised),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(const t of this._decodedGroupbyfield)t.tofieldname!==t.name&&(e=b(e,t.tofieldname,_(t.expression,h.Standardised),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){const t=[];for(const i of this._decodedGroupbyfield)i.tofieldname!==i.name&&t.push({field:i.tofieldname,newfield:i.name});return t.length>0?e.replaceFields(t):e}_clonePageDefinition(e){return null===e?null:!0===e.aggregatefeaturesetpagedefinition?{aggregatefeaturesetpagedefinition:!0,resultRecordCount:e.resultRecordCount,resultOffset:e.resultOffset,internal:e.internal}:this._parent._clonePageDefinition(e)}async _refineSetBlock(e,t,i){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQuery))return await this._expandPagedSet(e,this._maxQuery,0,0,i),this._refineSetBlock(e,t,i);this._checkCancelled(i);const s=e._candidates.length;this._refineKnowns(e,t);e._candidates.length;return e._candidates.length,e}_expandPagedSet(e,t,i,s,n){return this._expandPagedSetFeatureSet(e,t,i,s,n)}async _getPhysicalPage(t,i,s){if(!0===t.pagesDefinition.aggregatefeaturesetpagedefinition)return this._sequentialGetPhysicalItem(t,t.pagesDefinition.resultRecordCount,s,[]);const n=await this._getAgregagtePhysicalPage(t,i,s);for(const r of n){const t={geometry:r.geometry,attributes:{}},i={};for(const e in r.attributes)i[e.toLowerCase()]=r.attributes[e];for(const e of this._decodedGroupbyfield)t.attributes[e.tofieldname]=i[e.name.toLowerCase()];for(const e of this._decodedStatsfield)t.attributes[e.tofieldname]=i[e.field.toLowerCase()];this._featureCache[t.attributes[this.objectIdField]]=new e(t)}return n.length}_sequentialGetPhysicalItem(e,t,i,s){return new Promise(((n,r)=>{null===e.pagesDefinition.internal.iterator&&(e.pagesDefinition.internal.iterator=e.pagesDefinition.internal.subfeatureset.iterator(i)),!0===e.pagesDefinition.internal.fullyResolved||0===t?n(s.length):this._nextAggregateItem(e,t,i,s,(r=>{null===r?n(s.length):(t-=1,n(this._sequentialGetPhysicalItem(e,t,i,s)))}),r)}))}_nextAggregateItem(e,i,s,n,r,a){try{t(e.pagesDefinition.internal.iterator.next()).then((t=>{if(null===t)if(null!==e.pagesDefinition.internal.workingItem){const t=this._calculateAndAppendAggregateItem(e.pagesDefinition.internal.workingItem);n.push(t),e.pagesDefinition.internal.workingItem=null,e.pagesDefinition.internal.set.push(t.attributes[this.objectIdField]),e.pagesDefinition.internal.fullyResolved=!0,r(null)}else e.pagesDefinition.internal.fullyResolved=!0,r(null);else{const l=this._generateAggregateHash(t);if(null===e.pagesDefinition.internal.workingItem)e.pagesDefinition.internal.workingItem={features:[t],id:l};else{if(l!==e.pagesDefinition.internal.workingItem.id){const s=this._calculateAndAppendAggregateItem(e.pagesDefinition.internal.workingItem);return n.push(s),e.pagesDefinition.internal.workingItem=null,e.pagesDefinition.internal.set.push(s.attributes[this.objectIdField]),i-=1,e.pagesDefinition.internal.workingItem={features:[t],id:l},void r(s)}e.pagesDefinition.internal.workingItem.features.push(t)}this._nextAggregateItem(e,i,s,n,r,a)}}),a)}catch(l){a(l)}}_calculateFieldStat(e,t,i){const s=[];for(let n=0;n<e.features.length;n++)if(null!==t.workingexpr){const i=t.workingexpr.calculateValue(e.features[n]);null!==i&&(i instanceof x||i instanceof k?s.push(i.toNumber()):i instanceof D?s.push(i.toMilliseconds()):s.push(i))}else s.push(null);switch(t.typeofstat){case"MIN":i.attributes[t.tofieldname]=w("min",s,-1);break;case"MAX":i.attributes[t.tofieldname]=w("max",s,-1);break;case"SUM":i.attributes[t.tofieldname]=w("sum",s,-1);break;case"COUNT":i.attributes[t.tofieldname]=s.length;break;case"VAR":i.attributes[t.tofieldname]=w("var",s,-1);break;case"STDDEV":i.attributes[t.tofieldname]=w("stddev",s,-1);break;case"AVG":i.attributes[t.tofieldname]=w("avg",s,-1)}return!0}_calculateAndAppendAggregateItem(t){const i={attributes:{},geometry:null};for(const e of this._decodedGroupbyfield){const s=e.singlefield?t.features[0].attributes[e.singlefield]:j.convertValueToStorageFormat(e.expression.calculateValue(t.features[0]),e.sqlType);i.attributes[e.tofieldname]=s}for(const e of this._decodedStatsfield)this._calculateFieldStat(t,e,i);const s=[];for(let e=0;e<this._decodedStatsfield.length;e++)s.push(this._calculateFieldStat(t,this._decodedStatsfield[e],i));return this._featureCache[i.attributes[this.objectIdField]]=new e({attributes:i.attributes,geometry:i.geometry}),i}_generateAggregateHash(e){let t="";for(const i of this._decodedGroupbyfield){const s=i.singlefield?e.attributes[i.singlefield]:i.expression.calculateValue(e);t+=null==s?":":":"+s.toString()}return I(t,S.String)}async _stat(){return{calculated:!1}}async getFeatureByObjectId(){return null}static registerAction(){d._featuresetFunctions.groupby=function(e,t){return new O({parentfeatureset:this,groupbyfields:e,statsfields:t})}}}export{O as default};
|
|
5
|
+
import e from"../../../Graphic.js";import{a1 as t}from"../../../chunks/languageUtils.js";import{SqlExpressionAdapted as i,OriginalField as s,AdaptedFeatureSet as n}from"./Adapted.js";import r from"./AttributeFilter.js";import a from"./OrderBy.js";import{FeatureSetError as o,FeatureSetErrorCodes as l}from"../support/errorsupport.js";import d from"../support/FeatureSet.js";import u from"../support/IdSet.js";import f from"../support/OrderbyClause.js";import{IdState as c,layerGeometryEsriConstants as p,FeatureServiceDatabaseType as h}from"../support/shared.js";import{isSingleField as g,toWhereClause as _,predictType as m,scanForField as y,reformulateWithoutField as b}from"../support/sqlUtils.js";import w from"../support/StatsField.js";import{createMD5Hash as F,outputTypes as I}from"../../../core/MD5.js";import{aggregateFunction as S}from"../../../core/sql/AggregateFunctions.js";import{DateOnly as x}from"../../../core/sql/DateOnly.js";import{SqlTimeStampOffset as D}from"../../../core/sql/SqlTimestampOffset.js";import{TimeOnly as j}from"../../../core/sql/TimeOnly.js";import{WhereClause as k}from"../../../core/sql/WhereClause.js";import C from"../../../geometry/SpatialReference.js";import A from"../../../layers/support/Field.js";import T from"../../../layers/support/FieldsIndex.js";function G(e){if(!e)return"COUNT";switch(e.toLowerCase()){case"max":return"MAX";case"var":case"variance":return"VAR";case"avg":case"average":case"mean":return"AVG";case"min":return"MIN";case"sum":return"SUM";case"stdev":case"stddev":return"STDDEV";case"count":return"COUNT"}return"COUNT"}class O extends d{constructor(e){super(e),this._decodedStatsfield=[],this._decodedGroupbyfield=[],this._candosimplegroupby=!0,this.phsyicalgroupbyfields=[],this.objectIdField="ROW__ID",this._internalObjectIdField="ROW__ID",this._adaptedFields=[],this.declaredClass="esri.arcade.featureset.actions.Aggregate",this._uniqueIds=1,this._maxQuery=10,this._maxProcessing=10,this._parent=e.parentfeatureset,this._config=e}isTable(){return!0}async _getSet(e){if(null===this._wset){const t=await this._getFilteredSet("",null,null,null,e);return this._wset=t,this._wset}return this._wset}_isInFeatureSet(){return c.InFeatureSet}_nextUniqueName(e){for(;1===e["T"+this._uniqueIds.toString()];)this._uniqueIds++;const t="T"+this._uniqueIds.toString();return e[t]=1,t}_convertToEsriFieldType(e){return e}_initialiseFeatureSet(){const e={};let t=!1,n=1;const r=this._parent?this._parent.getFieldsIndex():new T([]);for(this.objectIdField="ROW__ID",this.globalIdField="";!1===t;){let e=!1;for(let t=0;t<this._config.groupbyfields.length;t++)if(this._config.groupbyfields[t].name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}if(!1===e)for(let t=0;t<this._config.statsfields.length;t++)if(this._config.statsfields[t].name.toLowerCase()===this.objectIdField.toLowerCase()){e=!0;break}!1===e?t=!0:(this.objectIdField="ROW__ID"+n.toString(),n++)}for(const i of this._config.statsfields){const e=new w;e.field=i.name,e.tofieldname=i.name,e.workingexpr=i.expression instanceof k?i.expression:k.create(i.expression,{fieldsIndex:r,timeZone:this.dateFieldsTimeZoneDefaultUTC}),e.typeofstat=G(i.statistic),this._decodedStatsfield.push(e)}this._decodedGroupbyfield=[];for(const i of this._config.groupbyfields){const e={name:i.name,singlefield:null,tofieldname:i.name,expression:i.expression instanceof k?i.expression:k.create(i.expression,{fieldsIndex:r,timeZone:this.dateFieldsTimeZoneDefaultUTC}),sqlType:null};this._decodedGroupbyfield.push(e)}if(null!==this._parent){this.geometryType=this._parent.geometryType,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField="";for(const t of this._parent.fields)e[t.name.toUpperCase()]=1;this.types=null,this.subtypes=null,this.subtypeField=""}else this.geometryType=p.point,this.typeIdField="",this.types=null,this.subtypes=null,this.subtypeField="",this.spatialReference=new C({wkid:4326});this.fields=[];const a=new w;a.field=this._nextUniqueName(e),a.tofieldname=this.objectIdField,a.workingexpr=k.create(this._parent.objectIdField,{fieldsIndex:this._parent.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),a.typeofstat="MIN",this._decodedStatsfield.push(a);for(const s of this._decodedGroupbyfield){const t=new A;if(s.name=this._nextUniqueName(e),t.name=s.tofieldname,t.alias=t.name,g(s.expression)){const e=this._parent.getField(_(s.expression,h.Standardised));if(!e)throw new o(l.AggregationFieldNotFound);s.name=e.name,s.singlefield=e.name,this.phsyicalgroupbyfields.push(e.name),t.type=e.type,s.sqlType=e.type}else{t.type=this._convertToEsriFieldType(m(s.expression,this._parent.fields));const e=new A;e.name=s.name,e.alias=e.name,this.phsyicalgroupbyfields.push(s.name),this._adaptedFields.push(new i(e,s.expression)),this._candosimplegroupby=!1,s.sqlType=t.type}this.fields.push(t)}if(this._adaptedFields.length>0)for(const i of this._parent.fields)this._adaptedFields.push(new s(i));for(let i=0;i<this._decodedStatsfield.length;i++){const t=new A;let s=null;const n=this._decodedStatsfield[i];n.field=this._nextUniqueName(e),n.tofieldname===this.objectIdField&&(this._internalObjectIdField=n.field),t.name=n.tofieldname,t.alias=t.name;const r=null!==n.workingexpr&&g(n.workingexpr)?_(n.workingexpr,h.Standardised):"";switch(this._decodedStatsfield[i].typeofstat){case"SUM":if(""!==r){if(s=this._parent.getField(r),!s)throw new o(l.AggregationFieldNotFound);t.type=s.type}else t.type="double";break;case"MIN":case"MAX":if(""!==r){if(s=this._parent.getField(r),!s)throw new o(l.AggregationFieldNotFound);t.type=s.type}else t.type="double";break;case"COUNT":t.type="integer";break;case"STDDEV":case"VAR":case"AVG":if(""!==r&&(s=this._parent.getField(r),!s))throw new o(l.AggregationFieldNotFound);t.type="double"}this.fields.push(t)}}async _canDoAggregates(){return!1}async _getFeatures(e,t,i,s){-1!==t&&this._featureCache[t];const n=this._maxQuery;return!0===this._checkIfNeedToExpandKnownPage(e,n)?(await this._expandPagedSet(e,n,0,0,s),this._getFeatures(e,t,i,s)):"success"}async _getFilteredSet(e,t,i,s,o){if(""!==e)return new u([],[],!0,null);let l=null;const d={ordered:!1,nowhereclause:!1};if(await this._ensureLoaded(),null!==i)for(let n=0;n<this._decodedStatsfield.length;n++)if(!0===y(i,this._decodedStatsfield[n].tofieldname)){d.nowhereclause=!0,i=null;break}if(null!==s){d.ordered=!0;for(let e=0;e<this._decodedStatsfield.length;e++)if(!0===s.scanForField(this._decodedStatsfield[e].tofieldname)){s=null,d.ordered=!1;break}if(null!==s)for(const e of this._decodedGroupbyfield)if(null===e.singlefield&&!0===s.scanForField(e.tofieldname)){s=null,d.ordered=!1;break}}if(!1!==this._candosimplegroupby&&await this._parent._canDoAggregates(this.phsyicalgroupbyfields,this._decodedStatsfield,"",null,null)){let e=null;i&&(e=this._reformulateWhereClauseWithoutGroupByFields(i));let t=null;s&&(t=this._reformulateOrderClauseWithoutGroupByFields(s));const n=await this._parent._getAggregatePagesDataSourceDefinition(this.phsyicalgroupbyfields,this._decodedStatsfield,"",null,e,t,this._internalObjectIdField);return this._checkCancelled(o),l=!0===d.nowhereclause?new u(n._candidates.slice().concat(n._known.slice()),[],!0===d.ordered&&n._ordered,this._clonePageDefinition(n.pagesDefinition)):new u(n._candidates.slice(),n._known.slice(),!0===d.ordered&&n._ordered,this._clonePageDefinition(n.pagesDefinition)),l}let c=this._parent;if(this._adaptedFields.length>0&&(c=new n({parentfeatureset:this._parent,adaptedFields:this._adaptedFields,extraFilter:null})),!0===d.nowhereclause)l=new u(["GETPAGES"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:this._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:"manual",iterator:null,set:[],subfeatureset:new a({parentfeatureset:c,orderbyclause:new f(this.phsyicalgroupbyfields.join(",")+","+this._parent.objectIdField+" ASC")})}});else{let e=c;if(null!==i){let t=null;i&&(t=this._reformulateWhereClauseWithoutGroupByFields(i)),e=new r({parentfeatureset:e,whereclause:t})}l=new u(["GETPAGES"],[],!1,{aggregatefeaturesetpagedefinition:!0,resultOffset:0,resultRecordCount:this._maxQuery,internal:{fullyResolved:!1,workingItem:null,type:"manual",iterator:null,set:[],subfeatureset:new a({parentfeatureset:e,orderbyclause:new f(this.phsyicalgroupbyfields.join(",")+","+this._parent.objectIdField+" ASC")})}})}return l}_reformulateWhereClauseWithoutStatsFields(e){for(const t of this._decodedStatsfield)e=b(e,t.tofieldname,_(t.workingexpr,h.Standardised),this._parent.getFieldsIndex());return e}_reformulateWhereClauseWithoutGroupByFields(e){for(const t of this._decodedGroupbyfield)t.tofieldname!==t.name&&(e=b(e,t.tofieldname,_(t.expression,h.Standardised),this._parent.getFieldsIndex()));return e}_reformulateOrderClauseWithoutGroupByFields(e){const t=[];for(const i of this._decodedGroupbyfield)i.tofieldname!==i.name&&t.push({field:i.tofieldname,newfield:i.name});return t.length>0?e.replaceFields(t):e}_clonePageDefinition(e){return null===e?null:!0===e.aggregatefeaturesetpagedefinition?{aggregatefeaturesetpagedefinition:!0,resultRecordCount:e.resultRecordCount,resultOffset:e.resultOffset,internal:e.internal}:this._parent._clonePageDefinition(e)}async _refineSetBlock(e,t,i){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQuery))return await this._expandPagedSet(e,this._maxQuery,0,0,i),this._refineSetBlock(e,t,i);this._checkCancelled(i);const s=e._candidates.length;this._refineKnowns(e,t);e._candidates.length;return e._candidates.length,e}_expandPagedSet(e,t,i,s,n){return this._expandPagedSetFeatureSet(e,t,i,s,n)}async _getPhysicalPage(t,i,s){if(!0===t.pagesDefinition.aggregatefeaturesetpagedefinition)return this._sequentialGetPhysicalItem(t,t.pagesDefinition.resultRecordCount,s,[]);const n=await this._getAgregagtePhysicalPage(t,i,s);for(const r of n){const t={geometry:r.geometry,attributes:{}},i={};for(const e in r.attributes)i[e.toLowerCase()]=r.attributes[e];for(const e of this._decodedGroupbyfield)t.attributes[e.tofieldname]=i[e.name.toLowerCase()];for(const e of this._decodedStatsfield)t.attributes[e.tofieldname]=i[e.field.toLowerCase()];this._featureCache[t.attributes[this.objectIdField]]=new e(t)}return n.length}_sequentialGetPhysicalItem(e,t,i,s){return new Promise(((n,r)=>{null===e.pagesDefinition.internal.iterator&&(e.pagesDefinition.internal.iterator=e.pagesDefinition.internal.subfeatureset.iterator(i)),!0===e.pagesDefinition.internal.fullyResolved||0===t?n(s.length):this._nextAggregateItem(e,t,i,s,(r=>{null===r?n(s.length):(t-=1,n(this._sequentialGetPhysicalItem(e,t,i,s)))}),r)}))}_nextAggregateItem(e,i,s,n,r,a){try{t(e.pagesDefinition.internal.iterator.next()).then((t=>{if(null===t)if(null!==e.pagesDefinition.internal.workingItem){const t=this._calculateAndAppendAggregateItem(e.pagesDefinition.internal.workingItem);n.push(t),e.pagesDefinition.internal.workingItem=null,e.pagesDefinition.internal.set.push(t.attributes[this.objectIdField]),e.pagesDefinition.internal.fullyResolved=!0,r(null)}else e.pagesDefinition.internal.fullyResolved=!0,r(null);else{const o=this._generateAggregateHash(t);if(null===e.pagesDefinition.internal.workingItem)e.pagesDefinition.internal.workingItem={features:[t],id:o};else{if(o!==e.pagesDefinition.internal.workingItem.id){const s=this._calculateAndAppendAggregateItem(e.pagesDefinition.internal.workingItem);return n.push(s),e.pagesDefinition.internal.workingItem=null,e.pagesDefinition.internal.set.push(s.attributes[this.objectIdField]),i-=1,e.pagesDefinition.internal.workingItem={features:[t],id:o},void r(s)}e.pagesDefinition.internal.workingItem.features.push(t)}this._nextAggregateItem(e,i,s,n,r,a)}}),a)}catch(o){a(o)}}_calculateFieldStat(e,t,i){const s=[];for(const n of e.features)if(null!==t.workingexpr){const e=t.workingexpr.calculateValue(n);null!==e&&(e instanceof x||e instanceof j?s.push(e.toNumber()):e instanceof D?s.push(e.toMilliseconds()):s.push(e))}else s.push(null);i.attributes[t.tofieldname]=S(t.typeofstat,[s])}_calculateAndAppendAggregateItem(t){const i={attributes:{},geometry:null};for(const e of this._decodedGroupbyfield){const s=e.singlefield?t.features[0].attributes[e.singlefield]:k.convertValueToStorageFormat(e.expression.calculateValue(t.features[0]),e.sqlType);i.attributes[e.tofieldname]=s}for(const e of this._decodedStatsfield)this._calculateFieldStat(t,e,i);const s=[];for(let e=0;e<this._decodedStatsfield.length;e++)s.push(this._calculateFieldStat(t,this._decodedStatsfield[e],i));return this._featureCache[i.attributes[this.objectIdField]]=new e({attributes:i.attributes,geometry:i.geometry}),i}_generateAggregateHash(e){let t="";for(const i of this._decodedGroupbyfield){const s=i.singlefield?e.attributes[i.singlefield]:i.expression.calculateValue(e);t+=null==s?":":":"+s.toString()}return F(t,I.String)}async _stat(){return{calculated:!1}}async getFeatureByObjectId(){return null}static registerAction(){d._featuresetFunctions.groupby=function(e,t){return new O({parentfeatureset:this,groupbyfields:e,statsfields:t})}}}export{O as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"./cache.js";import{FeatureSetError as t,FeatureSetErrorCodes as n}from"./errorsupport.js";import s from"./FeatureSetIterator.js";import i from"./IdSet.js";import{FeatureServiceDatabaseType as a,layerGeometryEsriConstants as r,IdState as l,convertSquareUnitsToCode as u,convertLinearUnitsToCode as h,esriFieldToJson as o,layerGeometryEsriRestConstants as c}from"./shared.js";import{max as d,min as f,sum as _,variance as p,stdev as m,mean as g,distinct as y,count as F}from"./stats.js";import{isPromiseLike as I}from"../../../core/promiseUtils.js";import{WhereClause as T}from"../../../core/sql/WhereClause.js";import{union as b,geodesicArea as w,planarArea as S,geodesicLength as D,planarLength as x}from"../../../geometry/geometryEngineAsync.js";import P from"../../../geometry/SpatialReference.js";import k from"../../../layers/support/FieldsIndex.js";class C{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=a.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this.fsetInfo=null,e?.lrucache&&(this.recentlyUsedQueries=e.lrucache),e?.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new P({wkid:4326}),this.geometryType=r.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n)))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=k.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new t(n.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,s,i){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,s,i)}async _getAggregatePagesDataSourceDefinition(e,s,i,a,r,l,u){if(null===this._parent)throw new t(n.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,s,i,a,r,l,u)}async _getAgregagtePhysicalPage(e,s,i){if(null===this._parent)throw new t(n.NeverReach);return this._parent._getAgregagtePhysicalPage(e,s,i)}async databaseType(){if(this._databaseType===a.NotEvaluated){if(null!==e.applicationCache){const t=e.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==t)return t}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==e.applicationCache&&e.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(t){throw null!==e.applicationCache&&e.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),t}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:a.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:a.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:a.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e){if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype}return a.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new t(n.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return l.Unknown}_getSet(e){throw new t(n.NotImplemented)}async _getFeature(e,s,i){if(this._checkCancelled(i),void 0!==this._featureFromCache(s))return this._featureFromCache(s);if(await this._getFeatures(e,s,this._maxProcessingRate(),i),this._checkCancelled(i),void 0!==this._featureFromCache(s))return this._featureFromCache(s);throw new t(n.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new i([],e,!1,null),s=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const i of e)void 0!==this._featureFromCache(i)&&s.push(this._featureFromCache(i));return s}async _getFeatures(e,t,n,s){return"success"}_getFilteredSet(e,s,i,a,r){throw new t(n.NotImplemented)}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const s=e._candidates.length;this._refineKnowns(e,t);let i=s-e._candidates.length;if(0===e._candidates.length)return e;if(i>=t)return e;if(await this._refineIfParentKnown(e,t-i,n),this._checkCancelled(n),this._refineKnowns(e,t-i),i=s-e._candidates.length,i<t&&e._candidates.length>0){const s=t-i,a=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(a,a.length>s?s:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-i),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,s=null;const i=[];t=this._maxQueryRate();for(let a=0;a<e._candidates.length&&"GETPAGES"!==e._candidates[a];a++){let r=!1;const u=this._candidateIdTransform(e._candidates[a]);u!==e._candidates[a]&&(r=!0);const h=this._isInFeatureSet(u);if(h===l.InFeatureSet)!0===r?e._known.includes(u)||(e._known.push(u),n+=1):(e._known.push(e._candidates[a]),n+=1),null===s?s={start:a,end:a}:s.end===a-1?s.end=a:(i.push(s),s={start:a,end:a});else if(h===l.NotInFeatureSet)null===s?s={start:a,end:a}:s.end===a-1?s.end=a:(i.push(s),s={start:a,end:a}),n+=1;else if(h===l.Unknown&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==s&&i.push(s);for(let a=i.length-1;a>=0;a--)e._candidates.splice(i[a].start,i[a].end-i[a].start+1)}_refineIfParentKnown(e,t,n){const s=new i([],[],e._ordered,null);return s._candidates=e._candidates.slice(),this._parent._refineSetBlock(s,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let s=e._lastFetchedIndex;s<e._known.length;s++){if("GETPAGES"===e._known[s])return!0;if(void 0===this._featureCache[e._known[s]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let s=0;s<e._candidates.length;s++){if("GETPAGES"===e._candidates[s])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,s,i,a,r){if(null===this._parent)throw new t(n.NotImplemented);return this._parent._expandPagedSet(e,s,i,a,r)}async _expandPagedSetFeatureSet(e,t,n,s,i){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(s=1),0===s&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(s=2),0===s)return"finished";const a=await this._getPage(e,s,i);return n+a<t?this._expandPagedSet(e,t,n+a,0,i):"success"}async _getPage(e,t,n){const s=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){s.length=s.length-1;let t=0;for(let i=0;i<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+i>=e.pagesDefinition.internal.set.length);i++)s[s.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+i],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&s.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,s){await this._ensureLoaded();let i=await this._stat(e,t,"",null,null,n,s);return!1===i.calculated&&(i=await this._manualStat(e,t,n,s)),i.result}async _manualStat(e,t,n,s){let i=null;switch(e.toLowerCase()){case"count":return i=await F(this,s),{calculated:!0,result:i};case"distinct":return i=await y(this,t,n,s),{calculated:!0,result:i};case"avg":case"mean":return i=await g(this,t,s),{calculated:!0,result:i};case"stdev":return i=await m(this,t,s),{calculated:!0,result:i};case"variance":return i=await p(this,t,s),{calculated:!0,result:i};case"sum":return i=await _(this,t,s),{calculated:!0,result:i};case"min":return i=await f(this,t,s),{calculated:!0,result:i};case"max":return i=await d(this,t,s),{calculated:!0,result:i};default:return{calculated:!0,result:0}}}async _stat(e,t,n,s,i,a,r){const l=await this._parent._stat(e,t,n,s,i,a,r);return!1===l.calculated?null===i&&""===n&&null===s?this._manualStat(e,t,a,r):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise(((e,s)=>{this._unionShapeInBatches(n,t,e,s)}))}_unionAllGeom(e){return new Promise(((t,n)=>{const s=this.iterator(this._defaultTracker(e)),i=[];this._unionShapeInBatches(i,s,t,n)}))}_unionShapeInBatches(e,t,n,s){t.next().then((i=>{try{null!==i&&null!==i.geometry&&e.push(i.geometry),e.length>30||null===i&&e.length>1?b(e).then((a=>{try{null===i?n(a):(e=[a],this._unionShapeInBatches(e,t,n,s))}catch(r){s(r)}}),s):null===i?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,s)}catch(a){s(a)}}),s)}iterator(e){return new s(this,e)}intersection(e,t=!1){return C._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return C._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return C._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",s=null){return C._featuresetFunctions.morphShape.bind(this)(e,t,n,s)}morphShapeAndAttributes(e,t,n="unknown"){return C._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return C._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return C._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return C._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return C._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return C._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return C._featuresetFunctions.relate.bind(this)(e,t)}within(e){return C._featuresetFunctions.within.bind(this)(e)}touches(e){return C._featuresetFunctions.touches.bind(this)(e)}top(e){return C._featuresetFunctions.top.bind(this)(e)}crosses(e){return C._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,s=!0){return C._featuresetFunctions.buffer.bind(this)(e,t,n,s)}filter(e,t=null){return C._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return C._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return C._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return C._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise(((s,i)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,s,i,0)}))}_reduceImpl(e,t,n,s,i,a,r){try{if(++r>1e3)return void setTimeout((()=>{r=0,this._reduceImpl(e,t,n,s,i,a,r)}));e.next().then((l=>{try{if(null===l)i(n);else{const u=t(n,l,s,this);I(u)?u.then((n=>{this._reduceImpl(e,t,n,s+1,i,a,r)}),a):this._reduceImpl(e,t,u,s+1,i,a,r)}}catch(u){a(u)}}),a)}catch(l){a(l)}}removeField(e){return C._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return C._featuresetFunctions.addField.bind(this)(e,t,n)}sumArea(e,t=!1,n){const s=u(e);return this.reduce(((e,n)=>null===n.geometry?0:t?w(n.geometry,s).then((t=>e+t)):S(n.geometry,s).then((t=>e+t))),0,n)}sumLength(e,t=!1,n){const s=h(e);return this.reduce(((e,n)=>null===n.geometry?0:t?D(n.geometry,s).then((t=>e+t)):x(n.geometry,s).then((t=>e+t))),0,n)}async distinct(e,t=1e3,n=null,s){await this.load();const i=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(i,n),this.calculateStatistic("distinct",i,t,this._defaultTracker(s))}async min(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("min",s,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("max",s,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("avg",s,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("sum",s,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("stdev",s,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("variance",s,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",T.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise(((n,s)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,s,0)}))}_forEachImpl(e,t,n,s,i,a){try{if(++a>1e3)return void setTimeout((()=>{a=0,this._forEachImpl(e,t,n,s,i,a)}),0);e.next().then((r=>{try{if(null===r)s(n);else{const l=t(r);null==l?this._forEachImpl(e,t,n,s,i,a):I(l)?l.then((()=>{try{this._forEachImpl(e,t,n,s,i,a)}catch(r){i(r)}}),i):this._forEachImpl(e,t,n,s,i,a)}}catch(l){i(l)}}),i)}catch(r){i(r)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let n=0;n<this.fields.length;n++)t.layerDefinition.fields.push(o(this.fields[n]));return this.reduce(((e,n)=>{const s={geometry:n.geometry?.toJSON(),attributes:{}};for(const t in n.attributes)s.attributes[t]=n.attributes[t];return t.featureSet.features.push(s),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,s,i){return this._parent.queryAttachments(e,t,n,s,i)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetaData(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push(o(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===c[this.geometryType]?"esriGeometryNull":c[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,n)=>{const s={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==s.geometry&&s.geometry.spatialReference&&delete s.geometry.spatialReference,e.push(s),1}),0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce(((e,s)=>{const i={geometry:s.geometry?!0===t?.keepGeometryType?s.geometry:s.geometry.toJSON():null,attributes:s.attributes};return null!==i.geometry&&i.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete i.geometry.spatialReference,n.push(i),1}),0,e);const s=this.schema();return s.features=n,s.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),s}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){if(this.datesInUnknownTimezone)return"unknown";const e=this.dateFieldsTimeZone??"UTC";return""===e?"UTC":e}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}set featureSetInfo(e){this.fsetInfo=e}async getFeatureSetInfo(){return this.fsetInfo??await(this._parent?.getFeatureSetInfo())??null}}function v(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}C._featuresetFunctions={};export{C as default};
|
|
5
|
+
import e from"./cache.js";import{FeatureSetError as t,FeatureSetErrorCodes as n}from"./errorsupport.js";import s from"./FeatureSetIterator.js";import i from"./IdSet.js";import{FeatureServiceDatabaseType as a,layerGeometryEsriConstants as r,IdState as l,convertSquareUnitsToCode as u,convertLinearUnitsToCode as h,esriFieldToJson as o,layerGeometryEsriRestConstants as c}from"./shared.js";import{max as d,min as f,sum as _,variance as p,stdev as m,mean as g,distinct as y,count as F}from"./stats.js";import{isPromiseLike as I}from"../../../core/promiseUtils.js";import{WhereClause as T}from"../../../core/sql/WhereClause.js";import{union as b,geodesicArea as w,planarArea as S,geodesicLength as D,planarLength as x}from"../../../geometry/geometryEngineAsync.js";import P from"../../../geometry/SpatialReference.js";import k from"../../../layers/support/FieldsIndex.js";class C{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=a.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=Object.create(null),this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this.fsetInfo=null,e?.lrucache&&(this.recentlyUsedQueries=e.lrucache),e?.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new P({wkid:4326}),this.geometryType=r.point)}getField(e,t){let n;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(n=t),!!n)))),n}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=k.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new t(n.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,n,s,i){return null!==this._parent&&this._parent._canDoAggregates(e,t,n,s,i)}async _getAggregatePagesDataSourceDefinition(e,s,i,a,r,l,u){if(null===this._parent)throw new t(n.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,s,i,a,r,l,u)}async _getAgregagtePhysicalPage(e,s,i){if(null===this._parent)throw new t(n.NeverReach);return this._parent._getAgregagtePhysicalPage(e,s,i)}async databaseType(){if(this._databaseType===a.NotEvaluated){if(null!==e.applicationCache){const t=e.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==t)return t}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==e.applicationCache&&e.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(t){throw null!==e.applicationCache&&e.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),t}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:a.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:a.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:a.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e){if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype}return a.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new t(n.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return l.Unknown}_getSet(e){throw new t(n.NotImplemented)}async _getFeature(e,s,i){if(this._checkCancelled(i),void 0!==this._featureFromCache(s))return this._featureFromCache(s);if(await this._getFeatures(e,s,this._maxProcessingRate(),i),this._checkCancelled(i),void 0!==this._featureFromCache(s))return this._featureFromCache(s);throw new t(n.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const n=new i([],e,!1,null),s=[];await this._getFeatures(n,-1,e.length,t),this._checkCancelled(t);for(const i of e)void 0!==this._featureFromCache(i)&&s.push(this._featureFromCache(i));return s}async _getFeatures(e,t,n,s){return"success"}_getFilteredSet(e,s,i,a,r){throw new t(n.NotImplemented)}async _refineSetBlock(e,t,n){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,n),this._refineSetBlock(e,t,n);this._checkCancelled(n);const s=e._candidates.length;this._refineKnowns(e,t);let i=s-e._candidates.length;if(0===e._candidates.length)return e;if(i>=t)return e;if(await this._refineIfParentKnown(e,t-i,n),this._checkCancelled(n),this._refineKnowns(e,t-i),i=s-e._candidates.length,i<t&&e._candidates.length>0){const s=t-i,a=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(a,a.length>s?s:e._candidates.length,n),this._checkCancelled(n),this._refineKnowns(e,t-i),e}return e}_fetchAndRefineFeatures(e,t,n){return null}_prepareFetchAndRefineSet(e){const t=[];for(let n=0;n<e.length;n++)this._isPhysicalFeature(e[n])&&t.push(e[n]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let n=0,s=null;const i=[];t=this._maxQueryRate();for(let a=0;a<e._candidates.length&&"GETPAGES"!==e._candidates[a];a++){let r=!1;const u=this._candidateIdTransform(e._candidates[a]);u!==e._candidates[a]&&(r=!0);const h=this._isInFeatureSet(u);if(h===l.InFeatureSet)!0===r?e._known.includes(u)||(e._known.push(u),n+=1):(e._known.push(e._candidates[a]),n+=1),null===s?s={start:a,end:a}:s.end===a-1?s.end=a:(i.push(s),s={start:a,end:a});else if(h===l.NotInFeatureSet)null===s?s={start:a,end:a}:s.end===a-1?s.end=a:(i.push(s),s={start:a,end:a}),n+=1;else if(h===l.Unknown&&(n+=1,!0===e._ordered))break;if(n>=t)break}null!==s&&i.push(s);for(let a=i.length-1;a>=0;a--)e._candidates.splice(i[a].start,i[a].end-i[a].start+1)}_refineIfParentKnown(e,t,n){const s=new i([],[],e._ordered,null);return s._candidates=e._candidates.slice(),this._parent._refineSetBlock(s,t,n)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let s=e._lastFetchedIndex;s<e._known.length;s++){if("GETPAGES"===e._known[s])return!0;if(void 0===this._featureCache[e._known[s]]&&(n+=1,n>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let n=0;for(let s=0;s<e._candidates.length;s++){if("GETPAGES"===e._candidates[s])return!0;if(n+=1,n>=t)break}return!1}async _expandPagedSet(e,s,i,a,r){if(null===this._parent)throw new t(n.NotImplemented);return this._parent._expandPagedSet(e,s,i,a,r)}async _expandPagedSetFeatureSet(e,t,n,s,i){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(s=1),0===s&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(s=2),0===s)return"finished";const a=await this._getPage(e,s,i);return n+a<t?this._expandPagedSet(e,t,n+a,0,i):"success"}async _getPage(e,t,n){const s=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){s.length=s.length-1;let t=0;for(let i=0;i<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+i>=e.pagesDefinition.internal.set.length);i++)s[s.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+i],t++;e.pagesDefinition.resultOffset+=t;let n=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(n=!0),!1===n&&s.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,n),this._getPage(e,t,n)}_getPhysicalPage(e,t,n){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,n,s){await this._ensureLoaded();let i=await this._stat(e,t,"",null,null,n,s);return!1===i.calculated&&(i=await this._manualStat(e,t,n,s)),i.result}async _manualStat(e,t,n,s){let i=null;switch(e.toLowerCase()){case"count":return i=await F(this,s),{calculated:!0,result:i};case"distinct":return i=await y(this,t,n,s),{calculated:!0,result:i};case"avg":case"mean":return i=await g(this,t,s),{calculated:!0,result:i};case"stdev":return i=await m(this,t,s),{calculated:!0,result:i};case"variance":return i=await p(this,t,s),{calculated:!0,result:i};case"sum":return i=await _(this,t,s),{calculated:!0,result:i};case"min":return i=await f(this,t,s),{calculated:!0,result:i};case"max":return i=await d(this,t,s),{calculated:!0,result:i};default:return{calculated:!0,result:0}}}async _stat(e,t,n,s,i,a,r){const l=await this._parent._stat(e,t,n,s,i,a,r);return!1===l.calculated?null===i&&""===n&&null===s?this._manualStat(e,t,a,r):{calculated:!1}:l}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),n=[];return new Promise(((e,s)=>{this._unionShapeInBatches(n,t,e,s)}))}_unionAllGeom(e){return new Promise(((t,n)=>{const s=this.iterator(this._defaultTracker(e)),i=[];this._unionShapeInBatches(i,s,t,n)}))}_unionShapeInBatches(e,t,n,s){t.next().then((i=>{try{null!==i&&null!==i.geometry&&e.push(i.geometry),e.length>30||null===i&&e.length>1?b(e).then((a=>{try{null===i?n(a):(e=[a],this._unionShapeInBatches(e,t,n,s))}catch(r){s(r)}}),s):null===i?1===e.length?n(e[0]):n(null):this._unionShapeInBatches(e,t,n,s)}catch(a){s(a)}}),s)}iterator(e){return new s(this,e)}intersection(e,t=!1){return C._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,n=!0){return C._featuresetFunctions.difference.bind(this)(e,t,n)}symmetricDifference(e,t=!1,n=!0){return C._featuresetFunctions.symmetricDifference.bind(this)(e,t,n)}morphShape(e,t,n="unknown",s=null){return C._featuresetFunctions.morphShape.bind(this)(e,t,n,s)}morphShapeAndAttributes(e,t,n="unknown"){return C._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,n)}union(e,t=!1){return C._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return C._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return C._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return C._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return C._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return C._featuresetFunctions.relate.bind(this)(e,t)}within(e){return C._featuresetFunctions.within.bind(this)(e)}touches(e){return C._featuresetFunctions.touches.bind(this)(e)}top(e){return C._featuresetFunctions.top.bind(this)(e)}crosses(e){return C._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,n,s=!0){return C._featuresetFunctions.buffer.bind(this)(e,t,n,s)}filter(e,t=null){return C._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return C._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return C._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return C._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,n){return new Promise(((s,i)=>{this._reduceImpl(this.iterator(this._defaultTracker(n)),e,t,0,s,i,0)}))}_reduceImpl(e,t,n,s,i,a,r){try{if(++r>1e3)return void setTimeout((()=>{r=0,this._reduceImpl(e,t,n,s,i,a,r)}));e.next().then((l=>{try{if(null===l)i(n);else{const u=t(n,l,s,this);I(u)?u.then((n=>{this._reduceImpl(e,t,n,s+1,i,a,r)}),a):this._reduceImpl(e,t,u,s+1,i,a,r)}}catch(u){a(u)}}),a)}catch(l){a(l)}}removeField(e){return C._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,n=null){return C._featuresetFunctions.addField.bind(this)(e,t,n)}sumArea(e,t=!1,n){const s=u(e);return this.reduce(((e,n)=>null===n.geometry?0:t?w(n.geometry,s).then((t=>e+t)):S(n.geometry,s).then((t=>e+t))),0,n)}sumLength(e,t=!1,n){const s=h(e);return this.reduce(((e,n)=>null===n.geometry?0:t?D(n.geometry,s).then((t=>e+t)):x(n.geometry,s).then((t=>e+t))),0,n)}async distinct(e,t=1e3,n=null,s){await this.load();const i=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(i,n),this.calculateStatistic("distinct",i,t,this._defaultTracker(s))}async min(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("min",s,-1,this._defaultTracker(n))}async max(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("max",s,-1,this._defaultTracker(n))}async avg(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("avg",s,-1,this._defaultTracker(n))}async sum(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("sum",s,-1,this._defaultTracker(n))}async stdev(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("stdev",s,-1,this._defaultTracker(n))}async variance(e,t=null,n){await this.load();const s=T.create(e,{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC});return v(s,t),this.calculateStatistic("variance",s,-1,this._defaultTracker(n))}async count(e){return await this.load(),this.calculateStatistic("count",T.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,this._defaultTracker(e))}_defaultTracker(e){return e??{aborted:!1}}forEach(e,t){return new Promise(((n,s)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,n,s,0)}))}_forEachImpl(e,t,n,s,i,a){try{if(++a>1e3)return void setTimeout((()=>{a=0,this._forEachImpl(e,t,n,s,i,a)}),0);e.next().then((r=>{try{if(null===r)s(n);else{const l=t(r);null==l?this._forEachImpl(e,t,n,s,i,a):I(l)?l.then((()=>{try{this._forEachImpl(e,t,n,s,i,a)}catch(r){i(r)}}),i):this._forEachImpl(e,t,n,s,i,a)}}catch(l){i(l)}}),i)}catch(r){i(r)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let n=0;n<this.fields.length;n++)t.layerDefinition.fields.push(o(this.fields[n]));return this.reduce(((e,n)=>{const s={geometry:n.geometry?.toJSON(),attributes:{}};for(const t in n.attributes)s.attributes[t]=n.attributes[t];return t.featureSet.features.push(s),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,n,s,i){return this._parent.queryAttachments(e,t,n,s,i)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetaData(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push(o(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===c[this.geometryType]?"esriGeometryNull":c[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,n)=>{const s={geometry:n.geometry?n.geometry.toJSON():null,attributes:n.attributes};return null!==s.geometry&&s.geometry.spatialReference&&delete s.geometry.spatialReference,e.push(s),1}),0,t);const n=this.schema();return n.features=e,n.spatialReference=this.spatialReference.toJSON(),JSON.stringify(n)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const n=[];await this.reduce(((e,s)=>{const i={geometry:s.geometry?!0===t?.keepGeometryType?s.geometry:s.geometry.toJSON():null,attributes:s.attributes};return null!==i.geometry&&i.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete i.geometry.spatialReference,n.push(i),1}),0,e);const s=this.schema();return s.features=n,s.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),s}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){if(this.datesInUnknownTimezone)return"unknown";const e=this.dateFieldsTimeZone??"UTC";return""===e?"UTC":e}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}set featureSetInfo(e){this.fsetInfo=e}async getFeatureSetInfo(){return this.fsetInfo??await(this._parent?.getFeatureSetInfo())??null}}function v(e,t){if(null!==t){const n={};for(const e in t)n[e.toLowerCase()]=t[e];e.parameters=n}}C._featuresetFunctions={};export{C as default};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Затваряне"
|
|
2
|
+
"close": "Затваряне",
|
|
3
|
+
"resizeEnabled": "Преоразмеряване активирано. Използвайте клавишите Shift и стрелките, за да промените размера на диалоговия прозорец.",
|
|
4
|
+
"dragEnabled": "Плъзването задействано. Използвайте стрелките, за да преместите диалоговия прозорец."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Zatvori"
|
|
2
|
+
"close": "Zatvori",
|
|
3
|
+
"resizeEnabled": "Omogućena promjena veličine. koristite tipke shift i tipke sa strelicama za promjenu veličine dijaloškog okvira.",
|
|
4
|
+
"dragEnabled": "Omogućeno povlačenje Koristite tipke sa strelicama i povucite dijaloški okvir."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Tanca"
|
|
2
|
+
"close": "Tanca",
|
|
3
|
+
"resizeEnabled": "El canvi de mida està habilitat. Utilitzeu la tecla Maj i les tecles de fletxa per canviar la mida d'un diàleg.",
|
|
4
|
+
"dragEnabled": "L'arrossegament està habilitat. Utilitzeu les tecles de fletxa per desplaçar el diàleg."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Schließen"
|
|
2
|
+
"close": "Schließen",
|
|
3
|
+
"resizeEnabled": "\"Größe anpassen\" ist aktiviert. Verwenden Sie die Umschalttaste und die Pfeiltasten, um die Größe des Dialogfeldes anzupassen.",
|
|
4
|
+
"dragEnabled": "\"Ziehen\" ist aktiviert. Verwenden Sie die Pfeiltasten, um das Dialogfeld zu verschieben."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Κλείσιμο"
|
|
2
|
+
"close": "Κλείσιμο",
|
|
3
|
+
"resizeEnabled": "Αλλαγή μεγέθους ενεργοποιημένη. Χρησιμοποιήστε το shift και τα πλήκτρα βέλους για να αλλάξετε το μέγεθος του παραθύρου διαλόγου.",
|
|
4
|
+
"dragEnabled": "Μεταφορά ενεργοποιημένη. Χρησιμοποιήστε τα πλήκτρα βέλους για να μετακινήσετε το παράθυρο διαλόγου."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Cerrar"
|
|
2
|
+
"close": "Cerrar",
|
|
3
|
+
"resizeEnabled": "Cambiar tamaño habilitado. Utilice las teclas de mayúsculas y de flecha para cambiar el tamaño del cuadro de diálogo.",
|
|
4
|
+
"dragEnabled": "Arrastrar habilitado. Utilice las teclas de flecha para mover el cuadro de diálogo."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Fermer"
|
|
2
|
+
"close": "Fermer",
|
|
3
|
+
"resizeEnabled": "Redimensionnement activé. Utilisez la touche Maj et les touches de direction pour redimensionner la boîte de dialogue.",
|
|
4
|
+
"dragEnabled": "Déplacement activé. Utilisez les touches de direction pour déplacer la boîte de dialogue."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Zatvori"
|
|
2
|
+
"close": "Zatvori",
|
|
3
|
+
"resizeEnabled": "Omogućena promjena veličine. koristite tipke shift i tipke sa strelicama za promjenu veličine dijaloškog okvira.",
|
|
4
|
+
"dragEnabled": "Omogućeno povlačenje Koristite tipke sa strelicama i povucite dijaloški okvir."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Chiudi"
|
|
2
|
+
"close": "Chiudi",
|
|
3
|
+
"resizeEnabled": "Ridimensionamento abilitato. Utilizzare i tasti shift e freccia per ridimensionare la finestra di dialogo.",
|
|
4
|
+
"dragEnabled": "Trascinamento abilitato. Utilizzare i tasti freccia per spostare la finestra di dialogo."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Uždaryti"
|
|
2
|
+
"close": "Uždaryti",
|
|
3
|
+
"resizeEnabled": "Dydžio keitimas įjungtas. Dialogo lango dydį galite pakeisti naudodami SHIFT ir rodyklių klavišus.",
|
|
4
|
+
"dragEnabled": "Vilkimas įjungtas. Dialogo lango dydį galite perkelti naudodami rodyklių klavišus."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Sluiten"
|
|
2
|
+
"close": "Sluiten",
|
|
3
|
+
"resizeEnabled": "Formaat wijzigen is ingeschakeld. Gebruik de toets Shift en pijltoetsen om de grootte van het dialoogvenster te wijzigen.",
|
|
4
|
+
"dragEnabled": "Slepen is ingeschakeld. Gebruik de pijltoetsen om het dialoogvenster te verplaatsen."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Закрыть"
|
|
2
|
+
"close": "Закрыть",
|
|
3
|
+
"resizeEnabled": "Изменение размера включено. Для изменения размера диалогового окна используйте клавиши Shift и стрелки.",
|
|
4
|
+
"dragEnabled": "Перетаскивание включено. Используйте клавиши со стрелками для перемещения диалогового окна"
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Zapri"
|
|
2
|
+
"close": "Zapri",
|
|
3
|
+
"resizeEnabled": "Spreminjanje velikosti omogočeno. Za spreminjanje velikosti pogovornega okna uporabite tipko shift in smerne tipke.",
|
|
4
|
+
"dragEnabled": "Vlečenje omogočeno. Za premikanje pogovornega okna uporabite smerne tipke."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Zatvori"
|
|
2
|
+
"close": "Zatvori",
|
|
3
|
+
"resizeEnabled": "Promena veličine je omogućena. Upotrebite taster Shift i tastere sa strelicama da promenite veličinu okvira za dijalog.",
|
|
4
|
+
"dragEnabled": "Prevlačenje je omogućeno. Upotrebite tastere sa strelicama da pomerite okvir za dijalog."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Kapat"
|
|
2
|
+
"close": "Kapat",
|
|
3
|
+
"resizeEnabled": "Yeniden boyutlandırma etkinleştirildi. İletişim penceresini yeniden boyutlandırmak için shift ve ok tuşlarını kullanın.",
|
|
4
|
+
"dragEnabled": "Sürükleme etkinleştirildi. İletişim penceresini hareket ettirmek için ok tuşlarını kullanın."
|
|
3
5
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"close": "Закрити"
|
|
2
|
+
"close": "Закрити",
|
|
3
|
+
"resizeEnabled": "Зміну розміру активовано. Використовуйте Shift і клавіші зі стрілками для зміни розміру діалогового вікна.",
|
|
4
|
+
"dragEnabled": "Перетягування активовано. Використовуйте клавіші зі стрілками для переміщення діалогового вікна."
|
|
3
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M16 8H5.846a2.4 2.4 0 1 0 0 1H16V8zM3.5 10C2.673 10 2 9.327 2 8.5S2.673 7 3.5 7 5 7.673 5 8.5 4.327 10 3.5 10z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M23 12H6.846a2.4 2.4 0 1 0 0 1H23v-1zM4.5 14c-.827 0-1.5-.673-1.5-1.5S3.673 11 4.5 11s1.5.673 1.5 1.5S5.327 14 4.5 14z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M31 16H8.85a3.39 3.39 0 0 0-3.35-2.9 3.4 3.4 0 0 0 0 6.8A3.39 3.39 0 0 0 8.85 17H31v-1zM5.5 18.9c-1.323 0-2.4-1.077-2.4-2.4s1.077-2.4 2.4-2.4 2.4 1.077 2.4 2.4-1.077 2.4-2.4 2.4z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M13.5 6.1A2.4 2.4 0 0 0 11.154 8H1v1h10.154A2.4 2.4 0 1 0 13.5 6.1zm0 3.9c-.827 0-1.5-.673-1.5-1.5S12.673 7 13.5 7s1.5.673 1.5 1.5-.673 1.5-1.5 1.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M20.5 10.1a2.4 2.4 0 0 0-2.346 1.9H2v1h16.154a2.4 2.4 0 1 0 2.346-2.9zm0 3.9c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5 1.5.673 1.5 1.5-.673 1.5-1.5 1.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M27.5 13.1a3.39 3.39 0 0 0-3.35 2.9H2v1h22.15a3.39 3.39 0 0 0 3.35 2.9 3.4 3.4 0 1 0 0-6.8zm0 5.8c-1.323 0-2.4-1.077-2.4-2.4s1.077-2.4 2.4-2.4 2.4 1.077 2.4 2.4-1.077 2.4-2.4 2.4z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M10.846 8a2.4 2.4 0 0 0-4.692 0H1v1h5.154a2.4 2.4 0 0 0 4.692 0H16V8h-5.154zM8.5 10C7.673 10 7 9.327 7 8.5S7.673 7 8.5 7s1.5.673 1.5 1.5S9.327 10 8.5 10z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M14.846 12a2.4 2.4 0 0 0-4.692 0H2v1h8.154a2.4 2.4 0 0 0 4.692 0H23v-1h-8.154zM12.5 14c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5 1.5.673 1.5 1.5-.673 1.5-1.5 1.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M31 16H19.85c-.244-1.639-1.644-2.9-3.35-2.9s-3.106 1.261-3.35 2.9H2v1h11.15c.244 1.639 1.644 2.9 3.35 2.9s3.106-1.261 3.35-2.9H31v-1zm-14.5 2.9c-1.323 0-2.4-1.077-2.4-2.4s1.077-2.4 2.4-2.4 2.4 1.077 2.4 2.4-1.077 2.4-2.4 2.4z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M13.5 6.1A2.4 2.4 0 0 0 11.154 8H5.846a2.4 2.4 0 1 0 0 1h5.308A2.4 2.4 0 1 0 13.5 6.1zM3.5 10C2.673 10 2 9.327 2 8.5S2.673 7 3.5 7 5 7.673 5 8.5 4.327 10 3.5 10zm10 0c-.827 0-1.5-.673-1.5-1.5S12.673 7 13.5 7s1.5.673 1.5 1.5-.673 1.5-1.5 1.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M20.5 10.1a2.4 2.4 0 0 0-2.346 1.9H6.846a2.4 2.4 0 1 0 0 1h11.308a2.4 2.4 0 1 0 2.346-2.9zM4.5 14c-.827 0-1.5-.673-1.5-1.5S3.673 11 4.5 11s1.5.673 1.5 1.5S5.327 14 4.5 14zm16 0c-.827 0-1.5-.673-1.5-1.5s.673-1.5 1.5-1.5 1.5.673 1.5 1.5-.673 1.5-1.5 1.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M27.5 13.1a3.39 3.39 0 0 0-3.35 2.9H8.85a3.39 3.39 0 0 0-3.35-2.9 3.4 3.4 0 0 0 0 6.8A3.39 3.39 0 0 0 8.85 17h15.3a3.39 3.39 0 0 0 3.35 2.9 3.4 3.4 0 1 0 0-6.8zm-22 5.8c-1.323 0-2.4-1.077-2.4-2.4s1.077-2.4 2.4-2.4 2.4 1.077 2.4 2.4-1.077 2.4-2.4 2.4zm22 0c-1.323 0-2.4-1.077-2.4-2.4s1.077-2.4 2.4-2.4 2.4 1.077 2.4 2.4-1.077 2.4-2.4 2.4z"
|