@arcgis/map-components 5.1.0-next.2 → 5.1.0-next.21
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/README.md +1 -1
- package/dist/cdn/{RCWZGU5T.js → 255MJSL7.js} +1 -1
- package/dist/cdn/25C2WYON.js +2 -0
- package/dist/cdn/{BUE7MOVD.js → 2632C726.js} +1 -1
- package/dist/cdn/2AYGSNEO.js +2 -0
- package/dist/cdn/{HH6BDERO.js → 2F4VMURG.js} +1 -1
- package/dist/cdn/2ID4LW4Y.js +2 -0
- package/dist/cdn/{YFUI4F5L.js → 2LRWWFCA.js} +1 -1
- package/dist/cdn/2XOP6ODR.js +2 -0
- package/dist/cdn/{YZ5ZVEPC.js → 2ZPMEF52.js} +1 -1
- package/dist/cdn/{UM2FDZJJ.js → 36FHKW25.js} +1 -1
- package/dist/cdn/{KYOYYCFY.js → 3IBLMFG2.js} +1 -1
- package/dist/cdn/{GKW3DDEQ.js → 3KOO4QMQ.js} +1 -1
- package/dist/cdn/{64OEHFBZ.js → 3O62Y4XU.js} +1 -1
- package/dist/cdn/3OVSVCGF.js +2 -0
- package/dist/cdn/45DIIV4Z.js +2 -0
- package/dist/cdn/{5PRNT4KD.js → 4723UCGJ.js} +1 -1
- package/dist/cdn/{JFDN4YD7.js → 4E76WGF2.js} +1 -1
- package/dist/cdn/{NIUIKBRD.js → 4GMSBMTS.js} +1 -1
- package/dist/cdn/{M65HMJZA.js → 4IATWN2B.js} +1 -1
- package/dist/cdn/{3FSARSVN.js → 4JCY4NHX.js} +1 -1
- package/dist/cdn/{KAXJKSFB.js → 4JLBYQRJ.js} +1 -1
- package/dist/cdn/4S2ZIUO2.js +2 -0
- package/dist/cdn/{DTVW3MYT.js → 4X3QNLL2.js} +1 -1
- package/dist/cdn/{63P5VYGP.js → 5EEHZIM7.js} +1 -1
- package/dist/cdn/{EENOVGOS.js → 5H2OW6X5.js} +1 -1
- package/dist/cdn/5LIIGBMB.js +2 -0
- package/dist/cdn/{KNAUIRT6.js → 63HF2QYP.js} +1 -1
- package/dist/cdn/{EYW7YQF6.js → 63N5ERFL.js} +1 -1
- package/dist/cdn/6HVUFH5B.js +2 -0
- package/dist/cdn/{TUW6NLYY.js → 6IUWB6ML.js} +1 -1
- package/dist/cdn/{ZURN5EZI.js → 6QW2EUPX.js} +1 -1
- package/dist/cdn/{BEXRPBHT.js → 6RKD6GFP.js} +1 -1
- package/dist/cdn/{UAO23YMW.js → 6XQPM3XF.js} +1 -1
- package/dist/cdn/6YZHULFG.js +2 -0
- package/dist/cdn/{I5QTPPFJ.js → 7CFAFS3P.js} +1 -1
- package/dist/cdn/{UVCYUIKZ.js → 7D3Z55D3.js} +1 -1
- package/dist/cdn/{2XSXH4TM.js → 7SCKZLOG.js} +1 -1
- package/dist/cdn/{7ZAVSDBZ.js → 7SLU4JV4.js} +1 -1
- package/dist/cdn/7WLTT4K3.js +2 -0
- package/dist/cdn/{GHFKQEFW.js → A5JTB4SB.js} +1 -1
- package/dist/cdn/{WW6L6XX4.js → AEDEEK6H.js} +1 -1
- package/dist/cdn/AN7CPHB7.js +2 -0
- package/dist/cdn/{FJJVAOBW.js → AOYK64AS.js} +1 -1
- package/dist/cdn/{TSPKG2WN.js → ATG3WC6M.js} +2 -2
- package/dist/cdn/{RP5SO6BA.js → AWONSBWA.js} +1 -1
- package/dist/cdn/{UKNKW6MH.js → B4UXMUWZ.js} +1 -1
- package/dist/cdn/{HK6EWWUB.js → BM2JTRBY.js} +1 -1
- package/dist/cdn/{PMQLTMQ4.js → BN6DAJ2Q.js} +1 -1
- package/dist/cdn/BOM3XB6A.js +2 -0
- package/dist/cdn/BQRJK2MF.js +2 -0
- package/dist/cdn/{5RGFRTJS.js → BSOU3YSC.js} +1 -1
- package/dist/cdn/{62WRVJ3U.js → BUUMJJ3W.js} +1 -1
- package/dist/cdn/{M4L5EDRB.js → BX6WWIAY.js} +1 -1
- package/dist/cdn/{MQ6HO6LA.js → C3MVYUAO.js} +1 -1
- package/dist/cdn/C4FXVPMR.js +2 -0
- package/dist/cdn/{6ZNO34O5.js → CCKYOWZO.js} +1 -1
- package/dist/cdn/{3YA25S2J.js → CMI4ZWGU.js} +1 -1
- package/dist/cdn/COSZXJ2Q.js +2 -0
- package/dist/cdn/{PISCYSA5.js → CQZVPPYJ.js} +1 -1
- package/dist/cdn/{2EJ4XRH4.js → CUNZDZ3C.js} +1 -1
- package/dist/cdn/CWODI2VY.js +2 -0
- package/dist/cdn/D27YXH3W.js +2 -0
- package/dist/cdn/{R4V6HGJH.js → D3NPU6MI.js} +1 -1
- package/dist/cdn/DDYVX52H.js +2 -0
- package/dist/cdn/DEJGWX76.js +2 -0
- package/dist/cdn/{CC53K2CR.js → DG7CXNOU.js} +1 -1
- package/dist/cdn/DY3ERISU.js +2 -0
- package/dist/cdn/E44RUDE7.js +2 -0
- package/dist/cdn/{TCG6VGIB.js → ELIGNLIF.js} +1 -1
- package/dist/cdn/{EQCNO3G4.js → EM6YZ3JD.js} +1 -1
- package/dist/cdn/EQ4FEO75.js +2 -0
- package/dist/cdn/EQPJBPD5.js +2 -0
- package/dist/cdn/EVC4MXIZ.js +2 -0
- package/dist/cdn/{KHM3S4Q6.js → F2JFRFTT.js} +1 -1
- package/dist/cdn/F7S63XRR.js +2 -0
- package/dist/cdn/{AJHRJ5EA.js → FDCE7TCR.js} +1 -1
- package/dist/cdn/{EVRFMTMV.js → FNJ3HMEN.js} +1 -1
- package/dist/cdn/FTAYHPMM.js +2 -0
- package/dist/cdn/{OKXZJQ2B.js → FTQ4FNZO.js} +1 -1
- package/dist/cdn/{H6ILOF27.js → FUXY5EKO.js} +1 -1
- package/dist/cdn/FZDIAVC4.js +2 -0
- package/dist/cdn/G7QZJNAC.js +2 -0
- package/dist/cdn/{EX22SAPL.js → GF4QAY6O.js} +1 -1
- package/dist/cdn/{556MC5SF.js → GHVLDDZ3.js} +1 -1
- package/dist/cdn/{WTMMFDEH.js → GIAAX7SI.js} +1 -1
- package/dist/cdn/GXBHOVJY.js +2 -0
- package/dist/cdn/{KY4FMFIC.js → GZ3XKDIF.js} +1 -1
- package/dist/cdn/HDL76VD5.js +2 -0
- package/dist/cdn/{J7ZNOOZ4.js → HEAH7MYD.js} +1 -1
- package/dist/cdn/{QLPUP6A3.js → HHJN3Q6G.js} +1 -1
- package/dist/cdn/{GNGZFV2C.js → HVKFQS3R.js} +1 -1
- package/dist/cdn/{37TNG76C.js → HZOWV5JG.js} +1 -1
- package/dist/cdn/{LG4PZVHS.js → I46QTMEJ.js} +1 -1
- package/dist/cdn/{3XMPN66U.js → I6EE4PLM.js} +1 -1
- package/dist/cdn/{NGKNECON.js → ILVKM7IB.js} +1 -1
- package/dist/cdn/{F4HWT5H3.js → IM47JQ76.js} +1 -1
- package/dist/cdn/{ORH27QWU.js → IOYNCKBD.js} +1 -1
- package/dist/cdn/IQPGSWSL.js +2 -0
- package/dist/cdn/{QVMTO5BV.js → IUFWY6SY.js} +1 -1
- package/dist/cdn/IW7IOW5D.js +2 -0
- package/dist/cdn/{FQGKKJL7.js → IX5YLGNO.js} +1 -1
- package/dist/cdn/{UKKUFJLL.js → J275QP5E.js} +1 -1
- package/dist/cdn/{OCEXQCFT.js → JEFKCKHC.js} +1 -1
- package/dist/cdn/JSD5CN5Q.js +2 -0
- package/dist/cdn/{4EAZ4PIQ.js → JUVPY4PW.js} +1 -1
- package/dist/cdn/{K27JJT2P.js → JWGHJITH.js} +1 -1
- package/dist/cdn/JXUAJ4MS.js +2 -0
- package/dist/cdn/{32K266S4.js → L5EGJLC4.js} +1 -1
- package/dist/cdn/{C4DJABUI.js → LA34IEDJ.js} +1 -1
- package/dist/cdn/LB32PLWG.js +2 -0
- package/dist/cdn/{42UR6TXZ.js → LJLCKW5C.js} +1 -1
- package/dist/cdn/{C7YN3AZA.js → LQNM7YK2.js} +1 -1
- package/dist/cdn/{2VC2VUTP.js → MIXNJBCA.js} +1 -1
- package/dist/cdn/{ZVTPU2MO.js → MR4WJFX6.js} +1 -1
- package/dist/cdn/{FC6W37TT.js → MSWQUZSG.js} +1 -1
- package/dist/cdn/{GYTQDFSL.js → MWS2QVII.js} +1 -1
- package/dist/cdn/{X26CF5AU.js → NFEIF3A6.js} +1 -1
- package/dist/cdn/{7YLXQNEC.js → NHBPPRG2.js} +1 -1
- package/dist/cdn/NHMOFXEE.js +2 -0
- package/dist/cdn/{52GXKBGP.js → NLRKDVIJ.js} +1 -1
- package/dist/cdn/NPEA453T.js +2 -0
- package/dist/cdn/{HO4JUZ6N.js → NQ3Z6LXI.js} +1 -1
- package/dist/cdn/NWWJHV2L.js +2 -0
- package/dist/cdn/{E2JLZZFR.js → O2BAIE3M.js} +1 -1
- package/dist/cdn/OKXFUFPW.js +2 -0
- package/dist/cdn/OSIWX2OH.js +2 -0
- package/dist/cdn/{JTFZMNCO.js → PI6UQWTD.js} +1 -1
- package/dist/cdn/{SZ5MNKOW.js → PPQASHMO.js} +1 -1
- package/dist/cdn/{ZD25GJYW.js → PR47Q75I.js} +1 -1
- package/dist/cdn/{AP2IFWYH.js → PX63EYUH.js} +1 -1
- package/dist/cdn/{MAGJWMWM.js → PXJQJ6MY.js} +1 -1
- package/dist/cdn/PZC5TBXA.js +2 -0
- package/dist/cdn/{3PQT2S7Z.js → QEXDU6P7.js} +1 -1
- package/dist/cdn/{4363SIKC.js → QHSQUBMZ.js} +1 -1
- package/dist/cdn/QUXORNHT.js +2 -0
- package/dist/cdn/R7BJHEHH.js +2 -0
- package/dist/cdn/{XRP25NGI.js → RG5JFGHQ.js} +1 -1
- package/dist/cdn/{WJ5HD2YN.js → RMGBO7V2.js} +1 -1
- package/dist/cdn/S4I3X6AX.js +2 -0
- package/dist/cdn/{CIUAWIL5.js → S4NUCPRQ.js} +2 -2
- package/dist/cdn/{NRV7VFJ7.js → SVRZWJDO.js} +1 -1
- package/dist/cdn/{WOV3LB6K.js → TE3F7O3C.js} +1 -1
- package/dist/cdn/{YC6JWXOW.js → TFKBGMV2.js} +1 -1
- package/dist/cdn/TK4IQ72L.js +2 -0
- package/dist/cdn/TKFT2JL7.js +2 -0
- package/dist/cdn/TKK5PRP5.js +2 -0
- package/dist/cdn/{NWK2WHZF.js → TMXUHRLR.js} +1 -1
- package/dist/cdn/{JBJ5NQTI.js → UH33CM5U.js} +1 -1
- package/dist/cdn/UNY32K3R.js +2 -0
- package/dist/cdn/{3DO7PVNW.js → VD6EJLFO.js} +1 -1
- package/dist/cdn/VYAUH7PN.js +2 -0
- package/dist/cdn/{OSPWEZQJ.js → W5E542JG.js} +1 -1
- package/dist/cdn/W5T5EBL3.js +2 -0
- package/dist/cdn/{NZAO2BVV.js → WHGU6HOR.js} +1 -1
- package/dist/cdn/{TPOLS4YM.js → WPWBOKOR.js} +1 -1
- package/dist/cdn/{WGWNMYUH.js → WZDTXSRM.js} +1 -1
- package/dist/cdn/{XMZSFKKO.js → X4AA7QDM.js} +1 -1
- package/dist/cdn/{JLK664TB.js → X5NCN674.js} +1 -1
- package/dist/cdn/{FARFUCNU.js → XEOTORJP.js} +1 -1
- package/dist/cdn/{ILPNFQWH.js → XW72RT5D.js} +1 -1
- package/dist/cdn/Y33DXW66.js +2 -0
- package/dist/cdn/{YC423DBS.js → Y4JTATJ2.js} +1 -1
- package/dist/cdn/{ZHINQNZ2.js → Y6IN6NEC.js} +1 -1
- package/dist/cdn/{J55YUTPM.js → Y6W27QLR.js} +1 -1
- package/dist/cdn/{BGOWWLCQ.js → YC562S5E.js} +1 -1
- package/dist/cdn/{AFU3S7KW.js → YC5JACID.js} +1 -1
- package/dist/cdn/{T2ZF4XIZ.js → ZERLO6VI.js} +1 -1
- package/dist/cdn/assets/elevation-profile/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +106 -99
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +73 -73
- package/dist/chunks/layer-utils.js +33 -16
- package/dist/chunks/measurementUtils.js +45 -22
- package/dist/chunks/slots.js +20 -20
- package/dist/chunks/time-utils.js +24 -22
- package/dist/chunks/useArcgisViewReadyError.js +7 -7
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +19 -11
- package/dist/components/arcgis-area-measurement-2d/customElement.js +100 -91
- package/dist/components/arcgis-area-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +27 -25
- package/dist/components/arcgis-area-measurement-3d/customElement.js +73 -94
- package/dist/components/arcgis-area-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-attachments/customElement.d.ts +5 -6
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -5
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +16 -16
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +127 -100
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +6 -6
- package/dist/components/arcgis-bookmarks/customElement.d.ts +12 -17
- package/dist/components/arcgis-bookmarks/types.d.ts +14 -7
- package/dist/components/arcgis-building-explorer/customElement.d.ts +16 -75
- package/dist/components/arcgis-building-explorer/customElement.js +3 -3
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +121 -74
- package/dist/components/arcgis-clipboard/customElement.d.ts +3 -3
- package/dist/components/arcgis-compass/customElement.d.ts +2 -3
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +14 -16
- package/dist/components/arcgis-daylight/customElement.d.ts +31 -32
- package/dist/components/arcgis-daylight/customElement.js +202 -200
- package/dist/components/arcgis-daylight/types.d.ts +1 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +24 -22
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +79 -100
- package/dist/components/arcgis-direct-line-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -4
- package/dist/components/arcgis-directions/customElement.d.ts +60 -14
- package/dist/components/arcgis-directions/customElement.js +28 -6
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +23 -11
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +95 -86
- package/dist/components/arcgis-distance-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-editor/customElement.d.ts +27 -19
- package/dist/components/arcgis-editor/customElement.js +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +30 -29
- package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +25 -31
- package/dist/components/arcgis-expand/customElement.d.ts +6 -7
- package/dist/components/arcgis-expand/types.d.ts +1 -0
- package/dist/components/arcgis-feature/customElement.d.ts +38 -39
- package/dist/components/arcgis-feature/customElement.js +39 -39
- package/dist/components/arcgis-feature-expression/customElement.js +23 -26
- package/dist/components/arcgis-feature-fields/customElement.js +28 -27
- package/dist/components/arcgis-feature-form/customElement.d.ts +32 -14
- package/dist/components/arcgis-feature-form/customElement.js +2 -2
- package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
- package/dist/components/arcgis-feature-relationship/customElement.js +13 -13
- package/dist/components/arcgis-feature-table/customElement.d.ts +183 -89
- package/dist/components/arcgis-feature-table/customElement.js +47 -31
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +126 -0
- package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/customElement.js +4 -4
- package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +11 -8
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +62 -62
- package/dist/components/arcgis-features/customElement.d.ts +66 -70
- package/dist/components/arcgis-features/customElement.js +49 -49
- package/dist/components/arcgis-floor-filter/customElement.d.ts +12 -15
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +10 -10
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +36 -37
- package/dist/components/arcgis-home/customElement.d.ts +8 -10
- package/dist/components/arcgis-layer-list/customElement.d.ts +51 -54
- package/dist/components/arcgis-legend/customElement.d.ts +42 -43
- package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +16 -14
- package/dist/components/arcgis-link-chart/customElement.d.ts +61 -71
- package/dist/components/arcgis-link-chart/customElement.js +15 -15
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +3 -5
- package/dist/components/arcgis-link-chart-layout-switcher/types.d.ts +1 -0
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +9 -9
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +13 -13
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/types.d.ts +3 -0
- package/dist/components/arcgis-locate/customElement.d.ts +3 -4
- package/dist/components/arcgis-map/customElement.d.ts +174 -184
- package/dist/components/arcgis-map/customElement.js +11 -11
- package/dist/components/arcgis-measurement/customElement.d.ts +4 -5
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +9 -11
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +7 -12
- package/dist/components/arcgis-navigation-toggle/customElement.js +9 -6
- package/dist/components/arcgis-navigation-toggle/types.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -3
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +6 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +28 -16
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +267 -123
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +117 -116
- package/dist/components/arcgis-paste/customElement.d.ts +5 -5
- package/dist/components/arcgis-paste/customElement.js +57 -54
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +67 -70
- package/dist/components/arcgis-popup/customElement.js +121 -119
- package/dist/components/arcgis-popup/types.d.ts +2 -2
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +4 -3
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +51 -31
- package/dist/components/arcgis-print/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
- package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +14 -2
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +38 -41
- package/dist/components/arcgis-scale-bar/customElement.d.ts +3 -7
- package/dist/components/arcgis-scale-bar/customElement.js +7 -7
- package/dist/components/arcgis-scale-bar/types.d.ts +5 -0
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +7 -8
- package/dist/components/arcgis-scene/customElement.d.ts +185 -200
- package/dist/components/arcgis-scene/customElement.js +14 -14
- package/dist/components/arcgis-search/customElement.d.ts +63 -59
- package/dist/components/arcgis-search/customElement.js +19 -18
- package/dist/components/arcgis-search/types.d.ts +1 -0
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +84 -40
- package/dist/components/arcgis-sketch/customElement.d.ts +57 -39
- package/dist/components/arcgis-sketch/customElement.js +20 -8
- package/dist/components/arcgis-slice/customElement.d.ts +26 -26
- package/dist/components/arcgis-slice/customElement.js +6 -6
- package/dist/components/arcgis-slice/types.d.ts +4 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +128 -97
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +53 -59
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +55 -62
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +112 -100
- package/dist/components/arcgis-slider-color-legacy/customElement.js +8 -8
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +154 -99
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +14 -17
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +75 -93
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +85 -104
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +1 -2
- package/dist/components/arcgis-swipe/customElement.d.ts +11 -11
- package/dist/components/arcgis-table-list/customElement.d.ts +116 -81
- package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-of-day-slider/customElement.js +11 -11
- package/dist/components/arcgis-time-slider/customElement.d.ts +23 -26
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +19 -33
- package/dist/components/arcgis-time-zone-label/customElement.js +19 -58
- package/dist/components/arcgis-time-zone-label/index.js +0 -1
- package/dist/components/arcgis-time-zone-label/types.d.ts +1 -0
- package/dist/components/arcgis-track/customElement.d.ts +6 -7
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +15 -2
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +5 -6
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +11 -8
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +86 -29
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +65 -59
- package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +1 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +18 -6
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +93 -64
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +10 -3
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +96 -91
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +17 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +96 -75
- package/dist/components/arcgis-utility-network-trace-results/index.js +2 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -2
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +51 -53
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +7 -21
- package/dist/components/arcgis-version-management/types.d.ts +15 -0
- package/dist/components/arcgis-video/customElement.d.ts +12 -12
- package/dist/components/arcgis-video-player/customElement.d.ts +6 -6
- package/dist/components/arcgis-video-player/customElement.js +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +45 -41
- package/dist/components/arcgis-volume-measurement/customElement.js +171 -171
- package/dist/components/arcgis-volume-measurement/index.js +1 -1
- package/dist/components/arcgis-volume-measurement/types.d.ts +1 -0
- package/dist/components/arcgis-weather/customElement.d.ts +17 -18
- package/dist/components/arcgis-zoom/customElement.d.ts +8 -7
- package/dist/components/arcgis-zoom/types.d.ts +3 -0
- package/dist/components/types.d.ts +58 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +13 -35
- package/dist/loader.js +36 -36
- package/dist/types/lumina.d.ts +36 -58
- package/dist/types/preact.d.ts +37 -63
- package/dist/types/react.d.ts +38 -68
- package/dist/types/stencil.d.ts +36 -58
- package/package.json +4 -4
- package/dist/cdn/22LNBUKE.js +0 -2
- package/dist/cdn/23UYZVTW.js +0 -2
- package/dist/cdn/3GZCJE62.js +0 -2
- package/dist/cdn/4TURMTXA.js +0 -2
- package/dist/cdn/55QGHI47.js +0 -2
- package/dist/cdn/7UR4M6PN.js +0 -2
- package/dist/cdn/A4UJ53JS.js +0 -2
- package/dist/cdn/AGYDL2DX.js +0 -2
- package/dist/cdn/B5XR4LXQ.js +0 -2
- package/dist/cdn/CKNH5OMJ.js +0 -2
- package/dist/cdn/DOLELC6W.js +0 -2
- package/dist/cdn/E7FLH54K.js +0 -2
- package/dist/cdn/EL62JS5C.js +0 -2
- package/dist/cdn/EYNKJZG3.js +0 -2
- package/dist/cdn/F2TXAMXM.js +0 -2
- package/dist/cdn/FEQLUSM2.js +0 -2
- package/dist/cdn/HNHCO4OD.js +0 -2
- package/dist/cdn/HR2OOT3F.js +0 -2
- package/dist/cdn/I2MQQXVU.js +0 -2
- package/dist/cdn/IDDSHZVB.js +0 -2
- package/dist/cdn/JDZWJLJX.js +0 -2
- package/dist/cdn/KECAR2NZ.js +0 -2
- package/dist/cdn/KEFY4XPI.js +0 -2
- package/dist/cdn/KXF2562U.js +0 -2
- package/dist/cdn/LHEP4QSS.js +0 -2
- package/dist/cdn/LZFDWRYI.js +0 -2
- package/dist/cdn/M7VTEC3S.js +0 -2
- package/dist/cdn/MSMDSEFM.js +0 -2
- package/dist/cdn/MW73TE2N.js +0 -2
- package/dist/cdn/MWBGBBXT.js +0 -2
- package/dist/cdn/NVACRYY6.js +0 -2
- package/dist/cdn/NZ5M5SVG.js +0 -2
- package/dist/cdn/PNDLNFML.js +0 -2
- package/dist/cdn/RJ76OXB6.js +0 -2
- package/dist/cdn/S4XGBADW.js +0 -2
- package/dist/cdn/S6G6XXTM.js +0 -2
- package/dist/cdn/SKW7HQZ6.js +0 -2
- package/dist/cdn/SRSYUCVL.js +0 -2
- package/dist/cdn/TM5C2P2F.js +0 -2
- package/dist/cdn/U3LH3AZH.js +0 -2
- package/dist/cdn/UTH3SGAS.js +0 -2
- package/dist/cdn/VJMMA6UX.js +0 -2
- package/dist/cdn/W2E5L6DS.js +0 -2
- package/dist/cdn/WGXSSEAL.js +0 -2
- package/dist/cdn/X6OVNOLQ.js +0 -2
- package/dist/cdn/X7YUU7TS.js +0 -2
- package/dist/cdn/XO6U6OVM.js +0 -2
- package/dist/cdn/Y53D5YAC.js +0 -2
- package/dist/cdn/YKTB6AFH.js +0 -2
- package/dist/cdn/YWQGP6MB.js +0 -2
- package/dist/cdn/ZMLRDNKR.js +0 -2
- package/dist/cdn/ZUTQE3OX.js +0 -2
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +0 -14
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +0 -20
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +0 -93
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +0 -24
- package/dist/components/arcgis-building-explorer/support/types.d.ts +0 -11
- package/dist/components/arcgis-building-level-item/customElement.d.ts +0 -25
- package/dist/components/arcgis-building-level-item/index.d.ts +0 -1
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +0 -20
- package/dist/components/arcgis-building-level-picker/index.d.ts +0 -1
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +0 -19
- package/dist/components/arcgis-building-phase-picker/index.d.ts +0 -1
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +0 -8
- package/dist/components/arcgis-expand/ExpandViewModel.d.ts +0 -44
- package/dist/components/arcgis-feature-templates/customElement.d.ts +0 -215
- package/dist/components/arcgis-feature-templates/index.d.ts +0 -1
- package/dist/components/arcgis-slice/SliceViewModel.d.ts +0 -4
- package/dist/components/support/goTo.d.ts +0 -37
- package/dist/controllers/useArcgisLoadError.d.ts +0 -9
- package/dist/support/heading.d.ts +0 -1
- package/dist/support/measurementUtils.d.ts +0 -1
- package/dist/utils/action-utils.d.ts +0 -3
- package/dist/utils/component-utils.d.ts +0 -5
- /package/dist/cdn/{UQ7E33T4.js → 2SQUOXWG.js} +0 -0
- /package/dist/cdn/{KAJ3U6DP.js → 3GVHNIXM.js} +0 -0
- /package/dist/cdn/{E2KWMQKQ.js → 3NF4UU3S.js} +0 -0
- /package/dist/cdn/{PHF2XKSK.js → 43UMYTXQ.js} +0 -0
- /package/dist/cdn/{CHDRBZNL.js → 47T624VO.js} +0 -0
- /package/dist/cdn/{X5H6ZUFX.js → 4NBXFFTY.js} +0 -0
- /package/dist/cdn/{DDI363AI.js → 5IPPKC3M.js} +0 -0
- /package/dist/cdn/{LCXF3AKY.js → 6JUTQDKC.js} +0 -0
- /package/dist/cdn/{YMU5IPMP.js → 6QPD32WT.js} +0 -0
- /package/dist/cdn/{M6TJN2I5.js → 7LEGS7EX.js} +0 -0
- /package/dist/cdn/{ORP3ZND2.js → AQG5RIV3.js} +0 -0
- /package/dist/cdn/{W5XM52J7.js → B3I4OKDQ.js} +0 -0
- /package/dist/cdn/{RCD5UKTW.js → BFHBS4MR.js} +0 -0
- /package/dist/cdn/{CRR65TKV.js → D3X7R3GD.js} +0 -0
- /package/dist/cdn/{7FMJZURP.js → DYC6OHKG.js} +0 -0
- /package/dist/cdn/{5OB4E5PR.js → DZG4EA6U.js} +0 -0
- /package/dist/cdn/{W5B5LTGN.js → ELF2SE5K.js} +0 -0
- /package/dist/cdn/{UVZZX6YP.js → FHSXSYA6.js} +0 -0
- /package/dist/cdn/{BQIH5T3S.js → FRWY77LH.js} +0 -0
- /package/dist/cdn/{ZFFBK3VO.js → FYVM32GJ.js} +0 -0
- /package/dist/cdn/{B7IYR676.js → GVW4OIR5.js} +0 -0
- /package/dist/cdn/{FPD3STSJ.js → H6LWU2FC.js} +0 -0
- /package/dist/cdn/{DEOCASGG.js → HEBLEJCT.js} +0 -0
- /package/dist/cdn/{OSRAPPNR.js → IDITPQDC.js} +0 -0
- /package/dist/cdn/{DWZIXPJ4.js → J3F5FPMC.js} +0 -0
- /package/dist/cdn/{YP3JKXC4.js → JMZA4GQB.js} +0 -0
- /package/dist/cdn/{JDPQMOEW.js → JPDYVHUZ.js} +0 -0
- /package/dist/cdn/{PUOWH3YL.js → KNFAPO3C.js} +0 -0
- /package/dist/cdn/{W2Q7NWBG.js → LEC4CIVO.js} +0 -0
- /package/dist/cdn/{JMDNJPNT.js → NCTWDKYG.js} +0 -0
- /package/dist/cdn/{RDW2NJPR.js → PDCUZMSB.js} +0 -0
- /package/dist/cdn/{76ESM6B2.js → RJTABGPK.js} +0 -0
- /package/dist/cdn/{2ZL4CF6P.js → SPXZXKMH.js} +0 -0
- /package/dist/cdn/{HZTWWEVM.js → TRPYDMNK.js} +0 -0
- /package/dist/cdn/{YHVFARHN.js → UYDFCELQ.js} +0 -0
- /package/dist/cdn/{55VMVXRK.js → V2D4QTRR.js} +0 -0
- /package/dist/cdn/{QAXR4LT6.js → WBZEEY5N.js} +0 -0
- /package/dist/cdn/{YDJGMRV3.js → WG5RPCHL.js} +0 -0
- /package/dist/cdn/{ZLIZCBGT.js → WL4J6REN.js} +0 -0
- /package/dist/cdn/{GB42YXHR.js → XJQRAKJ6.js} +0 -0
- /package/dist/cdn/{L4WRYSKZ.js → YGJ7NPDT.js} +0 -0
- /package/dist/cdn/{V3M37NHT.js → ZJ36DBTH.js} +0 -0
- /package/dist/components/{arcgis-building-discipline-tree → arcgis-feature-templates-legacy}/index.d.ts +0 -0
- /package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/index.js +0 -0
- /package/dist/components/arcgis-locate/{LocateViewModel.d.ts → types.d.ts} +0 -0
- /package/dist/components/arcgis-weather/{WeatherViewModel.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Season = "fall" | "spring" | "summer" | "winter";
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
3
3
|
import type DirectLineMeasurementAnalysis from "@arcgis/core/analysis/DirectLineMeasurementAnalysis.js";
|
|
4
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
|
-
import type { ArcgisReferenceElement } from "
|
|
5
|
+
import type { ArcgisReferenceElement } from "../types.js";
|
|
6
|
+
import type { DirectLineMeasurement3DState } from "./types.js";
|
|
6
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
7
8
|
import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
8
9
|
import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
|
-
* The Direct Line Measurement 3D component can be added to
|
|
12
|
+
* The Direct Line Measurement 3D component can be added to an [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/)
|
|
12
13
|
* component to calculate and display vertical, horizontal, and direct distances between two points.
|
|
13
14
|
*
|
|
14
|
-
* [](https://developers.arcgis.com/javascript/latest/sample-code/measurement-3d/)
|
|
15
16
|
*
|
|
16
17
|
* How distances are computed depends on the scene's spatial reference.
|
|
17
18
|
*
|
|
@@ -28,7 +29,7 @@ import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
|
28
29
|
* the measurement visualization is simplified, and only the horizontal and vertical distances are calculated.
|
|
29
30
|
* The direct distance option becomes unavailable.
|
|
30
31
|
*
|
|
31
|
-
* 
|
|
32
33
|
*
|
|
33
34
|
* When the component is active, a horizontal "laser" line is drawn which indicates the height at the current mouse position.
|
|
34
35
|
* This line can help in analyzing the heights of objects relative to each other and the terrain.
|
|
@@ -36,21 +37,21 @@ import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
|
36
37
|
*
|
|
37
38
|
* **Things to consider**
|
|
38
39
|
*
|
|
39
|
-
* * Direct Line Measurement 3D is designed to work in the Scene component. For measurements in the [
|
|
40
|
-
* component, use [
|
|
40
|
+
* * Direct Line Measurement 3D is designed to work in the Scene component. For measurements in the [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/)
|
|
41
|
+
* component, use [arcgis-distance-measurement-2d](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-distance-measurement-2d/).
|
|
41
42
|
* * Snapping is enabled by default. This can be temporarily disabled by holding the `CTRL` key.
|
|
42
43
|
* * Layer types currently supported for snapping are:
|
|
43
|
-
* [FeatureLayer](https://developers.arcgis.com/javascript/latest/
|
|
44
|
-
* [GraphicsLayer](https://developers.arcgis.com/javascript/latest/
|
|
45
|
-
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/
|
|
46
|
-
* [WFSLayer](https://developers.arcgis.com/javascript/latest/
|
|
47
|
-
* [CSVLayer](https://developers.arcgis.com/javascript/latest/
|
|
48
|
-
* [3D Object SceneLayer](https://developers.arcgis.com/javascript/latest/
|
|
49
|
-
* and [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/
|
|
44
|
+
* [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/),
|
|
45
|
+
* [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) (except Mesh geometries),
|
|
46
|
+
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/),
|
|
47
|
+
* [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/),
|
|
48
|
+
* [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
|
|
49
|
+
* [3D Object SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/),
|
|
50
|
+
* and [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BuildingSceneLayer/).
|
|
50
51
|
*
|
|
51
52
|
* **See also**
|
|
52
53
|
*
|
|
53
|
-
* - [DirectLineMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/
|
|
54
|
+
* - [DirectLineMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DirectLineMeasurementAnalysis/)
|
|
54
55
|
* - [Sample - Measurement in 3D](https://developers.arcgis.com/javascript/latest/sample-code/measurement-3d/)
|
|
55
56
|
* - [Sample - Analysis objects](https://developers.arcgis.com/javascript/latest/sample-code/analysis-objects/)
|
|
56
57
|
* - [Sample - Color theming for interactive tools](https://developers.arcgis.com/javascript/latest/sample-code/view-theme/)
|
|
@@ -59,13 +60,13 @@ import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
|
59
60
|
*/
|
|
60
61
|
export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
61
62
|
/**
|
|
62
|
-
* The [DirectLineMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/
|
|
63
|
+
* The [DirectLineMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DirectLineMeasurementAnalysis/)
|
|
63
64
|
* created or modified by the component.
|
|
64
65
|
*
|
|
65
|
-
* When connecting the Direct Line Measurement 3D component to
|
|
66
|
+
* When connecting the Direct Line Measurement 3D component to an [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/)
|
|
66
67
|
* component, it automatically creates an empty analysis and adds it to the Scene's
|
|
67
|
-
* [analyses](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/#analyses) collection.
|
|
68
|
-
* You can then wait for the [DirectLineMeasurementAnalysisView3D](https://developers.arcgis.com/javascript/latest/
|
|
68
|
+
* [arcgis-scene.analyses](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#analyses) collection.
|
|
69
|
+
* You can then wait for the [DirectLineMeasurementAnalysisView3D](https://developers.arcgis.com/javascript/latest/references/core/views/3d/analysis/DirectLineMeasurementAnalysisView3D/)
|
|
69
70
|
* to be created before accessing the analysis results.
|
|
70
71
|
*
|
|
71
72
|
* ```js
|
|
@@ -89,7 +90,7 @@ export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
|
89
90
|
* ```
|
|
90
91
|
* Whenever the component is destroyed, the analysis is automatically removed from the collection.
|
|
91
92
|
*
|
|
92
|
-
* Alternatively, a programmatically created [DirectLineMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/
|
|
93
|
+
* Alternatively, a programmatically created [DirectLineMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/DirectLineMeasurementAnalysis/)
|
|
93
94
|
* can be provided to the component.
|
|
94
95
|
* Then, the application itself needs to add it to and later remove it from the analyses collection of the Scene component.
|
|
95
96
|
*
|
|
@@ -151,6 +152,7 @@ export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
|
151
152
|
* Indicates whether the component's visualization is hidden in the view.
|
|
152
153
|
*
|
|
153
154
|
* @default false
|
|
155
|
+
* @since 5.0
|
|
154
156
|
*/
|
|
155
157
|
accessor hideVisualization: boolean;
|
|
156
158
|
/**
|
|
@@ -203,16 +205,16 @@ export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
|
203
205
|
* * `measuring` - currently measuring
|
|
204
206
|
* * `measured` - measuring has finished
|
|
205
207
|
*/
|
|
206
|
-
get state():
|
|
208
|
+
get state(): DirectLineMeasurement3DState;
|
|
207
209
|
/**
|
|
208
210
|
* Unit system (imperial, metric) or specific unit used for displaying the distance values. Possible values are listed in
|
|
209
|
-
* [unitOptions](
|
|
211
|
+
* [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-direct-line-measurement-3d/#unitOptions).
|
|
210
212
|
*/
|
|
211
213
|
accessor unit: SystemOrLengthUnit;
|
|
212
214
|
/**
|
|
213
215
|
* List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
|
|
214
216
|
* By default, the following units are included: `metric`, `imperial`, `inches`, `feet`, `us-feet`, `yards`, `miles`, `nautical-miles`, `meters`, `kilometers`.
|
|
215
|
-
* Possible [unit](
|
|
217
|
+
* Possible [unit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-direct-line-measurement-3d/#unit) values can only be a subset of this list.
|
|
216
218
|
*/
|
|
217
219
|
accessor unitOptions: Array<SystemOrLengthUnit>;
|
|
218
220
|
/**
|
|
@@ -1,101 +1,83 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as _ } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
3
|
+
import { css as w, html as g } from "lit";
|
|
4
|
+
import { LitElement as f, createEvent as v, nothing as b, safeClassMap as x } from "@arcgis/lumina";
|
|
5
5
|
import { usePropertyChange as y } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { classes as z } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { u as D } from "../../chunks/useT9n.js";
|
|
8
8
|
import { m as k } from "../../chunks/useViewModel.js";
|
|
9
9
|
import { b as M } from "../../chunks/async-utils.js";
|
|
10
|
-
import { g } from "../../chunks/globalCss.js";
|
|
11
|
-
import { V as
|
|
10
|
+
import { g as p } from "../../chunks/globalCss.js";
|
|
11
|
+
import { V as u } from "../../chunks/visible-element.js";
|
|
12
12
|
import O from "@arcgis/core/analysis/DirectLineMeasurementAnalysis.js";
|
|
13
|
-
import { isAboveGeodesicDistanceThreshold as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return s && o && E(t, i, o), o;
|
|
13
|
+
import { isAboveGeodesicDistanceThreshold as V } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
14
|
+
import { property as l, subclass as $ } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
15
|
+
import { watch as S } from "@arcgis/core/core/reactiveUtils.js";
|
|
16
|
+
import { A as U } from "../../chunks/AnalysisViewModel.js";
|
|
17
|
+
import { g as L, a as C, b as d, r as E, d as m, c as P } from "../../chunks/measurementUtils.js";
|
|
18
|
+
const A = w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:300px}`;
|
|
19
|
+
var j = Object.defineProperty, B = Object.getOwnPropertyDescriptor, a = (t, e, r, o) => {
|
|
20
|
+
for (var i = o > 1 ? void 0 : o ? B(e, r) : e, n = t.length - 1, c; n >= 0; n--)
|
|
21
|
+
(c = t[n]) && (i = (o ? c(e, r, i) : c(i)) || i);
|
|
22
|
+
return o && i && j(e, r, i), i;
|
|
24
23
|
};
|
|
25
|
-
let
|
|
24
|
+
let s = class extends U {
|
|
26
25
|
constructor() {
|
|
27
26
|
super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Direct Line Measurement 3D component is only supported in 3D views.";
|
|
28
27
|
}
|
|
29
28
|
initialize() {
|
|
30
29
|
this.addHandles(
|
|
31
30
|
// Make sure the analysis and view model units are in sync.
|
|
32
|
-
|
|
31
|
+
S(
|
|
33
32
|
() => ({
|
|
34
33
|
analysis: this.analysis,
|
|
35
|
-
unit: this.
|
|
34
|
+
unit: this._userUnit
|
|
36
35
|
}),
|
|
37
|
-
({ analysis:
|
|
38
|
-
e
|
|
36
|
+
({ analysis: t, unit: e }) => {
|
|
37
|
+
e && (t.unit = e);
|
|
39
38
|
},
|
|
40
39
|
{ sync: !0, initial: !0 }
|
|
41
40
|
)
|
|
42
41
|
);
|
|
43
42
|
}
|
|
44
43
|
get state() {
|
|
45
|
-
|
|
44
|
+
const { analysis: t, disabled: e, operationState: r, ready: o, supported: i } = this, { valid: n } = t;
|
|
45
|
+
return L({ supported: i, disabled: e, ready: o, operationState: r, valid: n });
|
|
46
46
|
}
|
|
47
47
|
get displayState() {
|
|
48
|
-
|
|
49
|
-
return "unsupported";
|
|
50
|
-
switch (this.state) {
|
|
51
|
-
case "disabled":
|
|
52
|
-
case "ready":
|
|
53
|
-
return "ready";
|
|
54
|
-
case "measuring":
|
|
55
|
-
return this.analysis.startPoint == null ? "measuring" : "measured";
|
|
56
|
-
case "measured":
|
|
57
|
-
return "measured";
|
|
58
|
-
}
|
|
48
|
+
return C(this.state, !!this.analysis.startPoint);
|
|
59
49
|
}
|
|
60
50
|
get measurement() {
|
|
61
|
-
const
|
|
51
|
+
const t = this.analysisView?.result, e = t?.mode ?? "euclidean";
|
|
62
52
|
if (!this.analysis.valid)
|
|
63
53
|
return {
|
|
64
|
-
mode:
|
|
65
|
-
directDistance:
|
|
66
|
-
horizontalDistance:
|
|
67
|
-
verticalDistance:
|
|
54
|
+
mode: e,
|
|
55
|
+
directDistance: d(void 0),
|
|
56
|
+
horizontalDistance: d(void 0),
|
|
57
|
+
verticalDistance: d(void 0)
|
|
68
58
|
};
|
|
69
|
-
const
|
|
59
|
+
const r = t?.directDistance, o = r != null && V(r);
|
|
70
60
|
return {
|
|
71
|
-
mode:
|
|
72
|
-
directDistance:
|
|
73
|
-
horizontalDistance:
|
|
74
|
-
verticalDistance:
|
|
61
|
+
mode: e,
|
|
62
|
+
directDistance: d(o ? void 0 : r),
|
|
63
|
+
horizontalDistance: d(t?.horizontalDistance),
|
|
64
|
+
verticalDistance: d(t?.verticalDistance)
|
|
75
65
|
};
|
|
76
66
|
}
|
|
77
67
|
get unitOptions() {
|
|
78
|
-
|
|
79
|
-
return e && e.length > 0 ? e : m.slice();
|
|
68
|
+
return E(this._userUnitOptions, m, m);
|
|
80
69
|
}
|
|
81
|
-
set unitOptions(
|
|
82
|
-
this._userUnitOptions =
|
|
70
|
+
set unitOptions(t) {
|
|
71
|
+
this._userUnitOptions = t;
|
|
83
72
|
}
|
|
84
73
|
get unit() {
|
|
85
|
-
|
|
86
|
-
if (e && t.includes(e))
|
|
87
|
-
return e;
|
|
88
|
-
const i = this._defaultUnit;
|
|
89
|
-
return i && t.includes(i) ? i : t[0];
|
|
74
|
+
return P(this._userUnit, this.analysis.unit, this.unitOptions, this.defaultMeasurementSystem);
|
|
90
75
|
}
|
|
91
|
-
set unit(
|
|
92
|
-
this._userUnit =
|
|
76
|
+
set unit(t) {
|
|
77
|
+
this._userUnit = t;
|
|
93
78
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
async place(e) {
|
|
98
|
-
await this.analysisView?.place(e);
|
|
79
|
+
async place(t) {
|
|
80
|
+
await this.analysisView?.place(t);
|
|
99
81
|
}
|
|
100
82
|
clearAnalysis() {
|
|
101
83
|
this.analysis.startPoint = null, this.analysis.endPoint = null;
|
|
@@ -104,43 +86,40 @@ let r = class extends S {
|
|
|
104
86
|
return new O();
|
|
105
87
|
}
|
|
106
88
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
],
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
],
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
],
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
],
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
],
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
],
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
],
|
|
128
|
-
|
|
129
|
-
a({ readOnly: !0 })
|
|
130
|
-
], r.prototype, "_defaultUnit", 1);
|
|
131
|
-
r = n([
|
|
89
|
+
a([
|
|
90
|
+
l({ readOnly: !0 })
|
|
91
|
+
], s.prototype, "state", 1);
|
|
92
|
+
a([
|
|
93
|
+
l({ readOnly: !0 })
|
|
94
|
+
], s.prototype, "displayState", 1);
|
|
95
|
+
a([
|
|
96
|
+
l({ readOnly: !0 })
|
|
97
|
+
], s.prototype, "measurement", 1);
|
|
98
|
+
a([
|
|
99
|
+
l()
|
|
100
|
+
], s.prototype, "unitOptions", 1);
|
|
101
|
+
a([
|
|
102
|
+
l()
|
|
103
|
+
], s.prototype, "_userUnitOptions", 2);
|
|
104
|
+
a([
|
|
105
|
+
l()
|
|
106
|
+
], s.prototype, "unit", 1);
|
|
107
|
+
a([
|
|
108
|
+
l()
|
|
109
|
+
], s.prototype, "_userUnit", 2);
|
|
110
|
+
s = a([
|
|
132
111
|
$("components.direct-line-measurement-3d.DirectLineMeasurement3dViewModel")
|
|
133
|
-
],
|
|
134
|
-
const
|
|
135
|
-
class
|
|
112
|
+
], s);
|
|
113
|
+
const T = k(s);
|
|
114
|
+
class Z extends f {
|
|
136
115
|
constructor() {
|
|
137
|
-
super(...arguments), this.viewModel =
|
|
116
|
+
super(...arguments), this.viewModel = T(this), this.messages = D({ name: "directline-measurement-3d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = y()("analysis", "state"), this.arcgisReady = v();
|
|
138
117
|
}
|
|
139
118
|
static {
|
|
140
119
|
this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, state: 32, unit: 1, unitOptions: 0 };
|
|
141
120
|
}
|
|
142
121
|
static {
|
|
143
|
-
this.styles =
|
|
122
|
+
this.styles = A;
|
|
144
123
|
}
|
|
145
124
|
async clear() {
|
|
146
125
|
this.viewModel.clear();
|
|
@@ -152,26 +131,26 @@ class j extends w {
|
|
|
152
131
|
M(this.viewModel.start());
|
|
153
132
|
}
|
|
154
133
|
render() {
|
|
155
|
-
const { messages:
|
|
156
|
-
return
|
|
134
|
+
const { messages: e, unit: r, unitOptions: o, viewModel: i } = this, { measurement: n, state: c } = i;
|
|
135
|
+
return g`<div aria-label=${e.componentLabel ?? b} class=${x(z("root", p.widget, p.panel))} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[
|
|
157
136
|
{
|
|
158
|
-
title:
|
|
159
|
-
measurement:
|
|
137
|
+
title: e.direct,
|
|
138
|
+
measurement: n.directDistance
|
|
160
139
|
},
|
|
161
140
|
{
|
|
162
|
-
title:
|
|
163
|
-
measurement:
|
|
141
|
+
title: e.horizontal,
|
|
142
|
+
measurement: n.horizontalDistance
|
|
164
143
|
},
|
|
165
144
|
{
|
|
166
|
-
title:
|
|
167
|
-
measurement:
|
|
145
|
+
title: e.vertical,
|
|
146
|
+
measurement: n.verticalDistance
|
|
168
147
|
}
|
|
169
|
-
]}>${
|
|
148
|
+
]}>${u({ hidden: this.hideUnitSelect, children: g`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${r} @arcgisUnitSelectChange=${(h) => {
|
|
170
149
|
this.unit = h.detail;
|
|
171
|
-
}}></arcgis-unit-select>` })}${
|
|
150
|
+
}}></arcgis-unit-select>` })}${u({ hidden: this.hideStartButton, children: g`<calcite-button slot=actions .disabled=${c === "disabled" || c === "unsupported"} @click=${this.start}>${e.newMeasurement}</calcite-button>` })}</arcgis-measurement-content></div>`;
|
|
172
151
|
}
|
|
173
152
|
}
|
|
174
|
-
_("arcgis-direct-line-measurement-3d",
|
|
153
|
+
_("arcgis-direct-line-measurement-3d", Z);
|
|
175
154
|
export {
|
|
176
|
-
|
|
155
|
+
Z as ArcgisDirectLineMeasurement3d
|
|
177
156
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DirectLineMeasurement3DState = "disabled" | "measured" | "measuring" | "ready" | "unsupported";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
|
-
import type { ArcgisReferenceElement } from "
|
|
4
|
+
import type { ArcgisReferenceElement } from "../types.js";
|
|
5
5
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
6
6
|
import type { DirectionalPadViewModelState } from "@arcgis/core/widgets/DirectionalPad/DirectionalPadViewModel.js";
|
|
7
7
|
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
@@ -31,9 +31,7 @@ export abstract class ArcgisDirectionalPad extends LitElement {
|
|
|
31
31
|
*/
|
|
32
32
|
accessor autoDestroyDisabled: boolean;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* this property sets the component to a disabled state to disable any user
|
|
36
|
-
* interaction.
|
|
34
|
+
* When true, the component is visually withdrawn and cannot receive user interaction.
|
|
37
35
|
*
|
|
38
36
|
* @default false
|
|
39
37
|
*/
|
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type RouteLayer from "@arcgis/core/layers/RouteLayer.js";
|
|
3
|
-
import type PortalItem from "@arcgis/core/portal/PortalItem";
|
|
4
|
-
import type PortalFolder from "@arcgis/core/portal/PortalFolder";
|
|
3
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
4
|
+
import type PortalFolder from "@arcgis/core/portal/PortalFolder.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
-
import type { ArcgisReferenceElement } from "
|
|
7
|
-
import type {
|
|
8
|
-
import type { RouteLayerSolveResult } from "@arcgis/core/layers/types";
|
|
6
|
+
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
7
|
+
import type { RouteLayerSolveResult } from "@arcgis/core/layers/types.js";
|
|
9
8
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
10
9
|
import type { GoToOverride, HeadingLevel } from "@arcgis/core/widgets/support/types.js";
|
|
11
10
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
12
|
-
import type { RouteLayerSolveResult as RouteLayerSolveResult2 } from "@arcgis/core/layers/types.js";
|
|
13
11
|
import type { SearchProperties } from "@arcgis/core/widgets/Search.js";
|
|
14
12
|
import type { State } from "@arcgis/core/widgets/Directions/DirectionsViewModel.js";
|
|
15
13
|
import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
16
14
|
|
|
17
15
|
/**
|
|
18
|
-
* The Directions component provides a way to calculate directions, between two or more input locations with a [RouteLayer](https://developers.arcgis.com/javascript/latest/
|
|
16
|
+
* The Directions component provides a way to calculate directions, between two or more input locations with a [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/), using ArcGIS Online and custom Network Analysis Route services.
|
|
17
|
+
* This component generates a route finding a least-cost path between multiple points using the routing service associated with the assigned RouteLayer. The route is calculated based on the stops and barriers added to the RouteLayer. The component provides a user interface for adding, removing, and reordering stops and barriers. Once the route is solved, the component displays the route on the map and provides turn-by-turn directions in a list format.
|
|
18
|
+
*
|
|
19
|
+
* Directions uses the [Search component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/) to locate each stop, either by selecting a point on the map, or by entering a search term into the textbox.
|
|
20
|
+
* Search uses settings defined in the `Search properties`. This includes the `locationType`, which defines the type of geocoding result that is returned, and defaults to "street".
|
|
21
|
+
*
|
|
22
|
+
* Directions requires a RouteLayer to be associated with the `layer` property or using the `useDefaultRouteLayer` property. A RouteLayer can be programmatically created or derived from an external source like a portal item or webmap.
|
|
23
|
+
* Please note that in order to view or interact with routing inputs and results, the RouteLayer must be added to the map. Routing service and symbology is configured in the layer, specifically the `url` and `defaultSymbols` properties respectively.
|
|
24
|
+
*
|
|
25
|
+
* The ArcGIS Online routing service requires authentication. If an API key is specified at the app level (see [Config#apiKey](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKey)) or component level (see [apiKey](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#apiKey))) then this key will accompany requests to both the routing service and geocoder/reverse-geocoder.
|
|
26
|
+
* Please refer to the Search component for more information on geocoding.
|
|
27
|
+
*
|
|
28
|
+
* Locations on the map can be reverse geocoded and used as stops in the route. Click the button with a crosshairs icon to associate a location with a new or existing stop. After clicking the button, click the map once. To cancel this process, press the `escape` key.
|
|
29
|
+
* The resulting driving directions are automatically collapsed and can be optionally saved to a new or existing portal item. This can be achieved programically with `save` and `saveAs`. The `Clear` button calls the `reset()` method, which removes all stops, directions, and the solved route.
|
|
30
|
+
*
|
|
31
|
+
* Selecting the `Edit route` button allows you to add/move/remove stops, add/move/remove/reshape polyline barriers, and add/move/remove waypoints. To add a new waypoint, first hover the cursor over the route and select the desired point. Then select and drag the point to move and place the waypoint. By default the route will be automatically resolve at the completion of any editing operation. For more complex routes, it may be advantageous to disable auto-solving and solve as and when needed with the dedicated solve button. Currently, this is only supported in 2D MapViews.
|
|
32
|
+
*
|
|
33
|
+
* **Note:** Printing in Directions is in beta and considered experimental. The print preview dialog, in some scenarios, may not display as aniticipated.
|
|
19
34
|
*
|
|
20
35
|
* @since 4.28
|
|
21
36
|
*/
|
|
@@ -25,7 +40,7 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
25
40
|
* [API keys](https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/) are generated
|
|
26
41
|
* and managed in the portal. An API key is tied
|
|
27
42
|
* explicitly to an ArcGIS account; it is also used to monitor service usage.
|
|
28
|
-
* Setting a fine-grained API key on a specific class overrides the [global API key](https://developers.arcgis.com/javascript/latest/
|
|
43
|
+
* Setting a fine-grained API key on a specific class overrides the [global API key](https://developers.arcgis.com/javascript/latest/references/core/config/#ConfigWithApiKey).
|
|
29
44
|
*
|
|
30
45
|
* By default, the following URLs will be used (unless overwritten in the app, or if using different defaults from a portal):
|
|
31
46
|
*
|
|
@@ -51,6 +66,13 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
51
66
|
* @default false
|
|
52
67
|
*/
|
|
53
68
|
accessor autoDestroyDisabled: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* When `true`, the route will re-solve continuously as an interactive operation is ongoing (e.g., while dragging a stop or waypoint).
|
|
71
|
+
*
|
|
72
|
+
* @default false
|
|
73
|
+
* @since 5.0
|
|
74
|
+
*/
|
|
75
|
+
accessor autoSolveOnEditActive: boolean;
|
|
54
76
|
/**
|
|
55
77
|
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#goTo) methods.
|
|
56
78
|
*
|
|
@@ -88,6 +110,13 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
88
110
|
* @since 5.0
|
|
89
111
|
*/
|
|
90
112
|
accessor hideLayerDetails: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Indicates whether to the Print button will be displayed
|
|
115
|
+
*
|
|
116
|
+
* @default false
|
|
117
|
+
* @since 5.0
|
|
118
|
+
*/
|
|
119
|
+
accessor hidePrintButton: boolean;
|
|
91
120
|
/**
|
|
92
121
|
* Indicates whether to the Save As button will be displayed
|
|
93
122
|
*
|
|
@@ -119,14 +148,14 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
119
148
|
*/
|
|
120
149
|
accessor label: string;
|
|
121
150
|
/**
|
|
122
|
-
* The most recent route result. Returns a [RouteLayerSolveResult](https://developers.arcgis.com/javascript/latest/
|
|
151
|
+
* The most recent route result. Returns a [RouteLayerSolveResult](https://developers.arcgis.com/javascript/latest/references/core/layers/types/#RouteLayerSolveResult)
|
|
123
152
|
* object containing properties for barriers (if any), stops, and directions.
|
|
124
153
|
*
|
|
125
|
-
* @see [RouteLayer#solve()](https://developers.arcgis.com/javascript/latest/
|
|
154
|
+
* @see [RouteLayer#solve()](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/#solve)
|
|
126
155
|
*/
|
|
127
|
-
get lastRoute():
|
|
156
|
+
get lastRoute(): RouteLayerSolveResult | null | undefined;
|
|
128
157
|
/**
|
|
129
|
-
* The [RouteLayer](https://developers.arcgis.com/javascript/latest/
|
|
158
|
+
* The [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/) associated with the Directions component.
|
|
130
159
|
* This property is required.
|
|
131
160
|
* The RouteLayer contains stops and barriers and will be used to display and solve routes.
|
|
132
161
|
*
|
|
@@ -149,7 +178,7 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
149
178
|
/**
|
|
150
179
|
* Controls the default properties used when searching.
|
|
151
180
|
* Note that the default `searchProperties` differ slightly from
|
|
152
|
-
* the [Search component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search/).
|
|
181
|
+
* the [Search component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/).
|
|
153
182
|
*
|
|
154
183
|
* @default { popupEnabled: false, resultGraphicEnabled: false }
|
|
155
184
|
*/
|
|
@@ -176,7 +205,11 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
176
205
|
* });
|
|
177
206
|
*/
|
|
178
207
|
accessor unit: SystemOrLengthUnit;
|
|
179
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* If `true`, a new [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/) will be created, added to the map and assigned to the `layer` property.
|
|
210
|
+
*
|
|
211
|
+
* @default false
|
|
212
|
+
*/
|
|
180
213
|
accessor useDefaultRouteLayer: boolean;
|
|
181
214
|
/**
|
|
182
215
|
* The view associated with the component.
|
|
@@ -185,13 +218,26 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
185
218
|
accessor view: MapViewOrSceneView | null | undefined;
|
|
186
219
|
/** Permanently destroy the component. */
|
|
187
220
|
destroy(): Promise<void>;
|
|
221
|
+
/** Computes a route and directions. If successfully computed, results will be assigned to the [lastRoute](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#lastRoute) property. */
|
|
188
222
|
getDirections(): Promise<RouteLayerSolveResult>;
|
|
223
|
+
/**
|
|
224
|
+
* Saves the currently assigned [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/)
|
|
225
|
+
* (see [layer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#layer)) to an existing portal item.
|
|
226
|
+
*/
|
|
189
227
|
save(): Promise<PortalItem>;
|
|
190
228
|
/**
|
|
229
|
+
* Saves the currently assigned [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/)
|
|
230
|
+
* (see [layer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#layer)) to a new portal item.
|
|
231
|
+
*
|
|
191
232
|
* @param portalItem
|
|
192
233
|
* @param options
|
|
193
234
|
*/
|
|
194
235
|
saveAs(portalItem: PortalItem, options: { folder: PortalFolder; }): Promise<PortalItem>;
|
|
236
|
+
/** Starts an edit session for interactive addition, modification, and deletion of stops, barriers, and waypoints. */
|
|
237
|
+
startEditing(): Promise<void>;
|
|
238
|
+
/** Ends an interactive edit session. */
|
|
239
|
+
stopEditing(): Promise<void>;
|
|
240
|
+
/** Zoom so that the entire route is displayed within the current map extent. */
|
|
195
241
|
zoomToRoute(): Promise<void>;
|
|
196
242
|
"@setterTypes": {
|
|
197
243
|
icon?: IconName;
|