@arcgis/map-components 4.33.0-next.136 → 4.33.0-next.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{2BWNKFZW.js → 2ICV3ZP6.js} +2 -2
- package/dist/cdn/{F5IQLE3G.js → 2RYHZPSQ.js} +2 -2
- package/dist/cdn/{IMWUONNH.js → 2TBOD7GJ.js} +2 -2
- package/dist/cdn/{U6NUSLXQ.js → 3F4Z4TXU.js} +2 -2
- package/dist/cdn/3HNXL7RL.js +4 -0
- package/dist/cdn/{WKVMC47S.js → 3MPFDWBN.js} +2 -2
- package/dist/cdn/{7AMN2VPJ.js → 3PXEJNET.js} +2 -2
- package/dist/cdn/{UCIYMFVJ.js → 3RYCWP6E.js} +2 -2
- package/dist/cdn/{BP57OBWN.js → 4KXQH47P.js} +2 -2
- package/dist/cdn/{LOBFBGWD.js → 4NU2LEDY.js} +2 -2
- package/dist/cdn/{AKYPLUTO.js → 54A6QQ5P.js} +2 -2
- package/dist/cdn/{URLKREBV.js → 5DLF2FRD.js} +2 -2
- package/dist/cdn/{AH2ZG75G.js → 5J7OJ4Z6.js} +2 -2
- package/dist/cdn/{XBHXC4AC.js → 5KYPK2BL.js} +2 -2
- package/dist/cdn/{PX235H7X.js → 5PFB6EGX.js} +2 -2
- package/dist/cdn/{CLSVAQ4G.js → 6Q5DEPLW.js} +2 -2
- package/dist/cdn/{JXRFEX3Q.js → 6VOXDT2D.js} +2 -2
- package/dist/cdn/{EYI6GI7E.js → 73CNLONW.js} +2 -2
- package/dist/cdn/{SQ7IRME2.js → 7C6JQ4XM.js} +2 -2
- package/dist/cdn/{VZVTX75Y.js → 7FFIVQF6.js} +2 -2
- package/dist/cdn/{JRGKAE6F.js → 7Q2OQGBB.js} +2 -2
- package/dist/cdn/{X2X6B3YN.js → A4ZNGLT2.js} +2 -2
- package/dist/cdn/{ET44LS3A.js → A575HHDP.js} +2 -2
- package/dist/cdn/A5AIKEDX.js +4 -0
- package/dist/cdn/{62NRGBON.js → AIYUDCDQ.js} +2 -2
- package/dist/cdn/AV6YUXI6.js +4 -0
- package/dist/cdn/BNCLTRYH.js +4 -0
- package/dist/cdn/{GBCKXZW6.js → BQYQ3LTP.js} +2 -2
- package/dist/cdn/{WIWG2LGN.js → BZ5KBRTH.js} +2 -2
- package/dist/cdn/{3G3LVX2U.js → C677Z3XS.js} +2 -2
- package/dist/cdn/C722QWYO.js +4 -0
- package/dist/cdn/{IPRFR6DT.js → CUDJHVRU.js} +2 -2
- package/dist/cdn/{5CTZNTHB.js → CV2IWESX.js} +2 -2
- package/dist/cdn/{JAN5HG3G.js → D7MSIIVJ.js} +2 -2
- package/dist/cdn/{ADGC7BZI.js → DJAPPGGB.js} +2 -2
- package/dist/cdn/{MUQ32RUE.js → EDORIH5N.js} +2 -2
- package/dist/cdn/EL4W5FAJ.js +4 -0
- package/dist/cdn/{X5H4BNWJ.js → FOVCH7VW.js} +2 -2
- package/dist/cdn/{VKJE37GQ.js → FY5ET4WM.js} +2 -2
- package/dist/cdn/{TRTMNVI6.js → G7FA2SZX.js} +2 -2
- package/dist/cdn/{DTVBVHKG.js → GDRUHH5B.js} +2 -2
- package/dist/cdn/{GOBTKC4E.js → GEVMX2UO.js} +2 -2
- package/dist/cdn/{WTYFC75N.js → GURMXFUT.js} +2 -2
- package/dist/cdn/{WNJVX6RI.js → GY5GZLXV.js} +2 -2
- package/dist/cdn/{6JC2Q2KY.js → HBVJIRGN.js} +2 -2
- package/dist/cdn/{57J7ZHCC.js → HCS23COA.js} +2 -2
- package/dist/cdn/{X3ZJJBIA.js → HMR3LZEC.js} +2 -2
- package/dist/cdn/{J3TOTWFC.js → HT7HVKXJ.js} +2 -2
- package/dist/cdn/{K2ITHZ7S.js → HUYGZMDR.js} +2 -2
- package/dist/cdn/HXOPYRM2.js +4 -0
- package/dist/cdn/{YMUJRFGB.js → IH32IEWT.js} +2 -2
- package/dist/cdn/{OQPILQIR.js → JGCDGP2X.js} +2 -2
- package/dist/cdn/JR37HKLZ.js +4 -0
- package/dist/cdn/{WQ3BAHLE.js → JYTTN5LU.js} +2 -2
- package/dist/cdn/{3XXP6T6D.js → KEI26URD.js} +1 -1
- package/dist/cdn/{Q6MBU3KQ.js → KM5OVC7O.js} +2 -2
- package/dist/cdn/{RRAN3GV5.js → L5J24G5M.js} +2 -2
- package/dist/cdn/L66H2ALJ.js +4 -0
- package/dist/cdn/{XDT45WCB.js → LIQITLFR.js} +2 -2
- package/dist/cdn/{JM6NPZAW.js → LNOMQKUY.js} +2 -2
- package/dist/cdn/{7D6VNKHP.js → LQEPXN57.js} +2 -2
- package/dist/cdn/{GURL6AVS.js → LT4K76AI.js} +2 -2
- package/dist/cdn/LUWRRPTC.js +4 -0
- package/dist/cdn/{BA4MEMIO.js → MEUUSKT3.js} +2 -2
- package/dist/cdn/{XKZ3QPCQ.js → MNSXEFSD.js} +2 -2
- package/dist/cdn/{HBIM6ODS.js → MUPWF5M2.js} +2 -2
- package/dist/cdn/N36AOA4W.js +4 -0
- package/dist/cdn/{4S3FYMV3.js → N4JEEG6U.js} +2 -2
- package/dist/cdn/{IGZF7C2L.js → NA7YRW3M.js} +2 -2
- package/dist/cdn/{47MNULJ4.js → NHSTTG5C.js} +1 -1
- package/dist/cdn/{VIIEZ6AL.js → NIB3ARH5.js} +2 -2
- package/dist/cdn/{3XNP3PSG.js → O7YEMKLH.js} +2 -2
- package/dist/cdn/{XGKSB2HZ.js → P2ORI2MU.js} +2 -2
- package/dist/cdn/{5ZIN5VIU.js → P4OU64OH.js} +2 -2
- package/dist/cdn/{MLGAD27T.js → PRZRGIJO.js} +2 -2
- package/dist/cdn/{MAJRJT3G.js → Q2G3EZNU.js} +2 -2
- package/dist/cdn/{CHXEQ2UW.js → Q3DX3LMR.js} +2 -2
- package/dist/cdn/{O374NYBD.js → QBPIXB5K.js} +2 -2
- package/dist/cdn/{EUDGCLCR.js → QINX3JDV.js} +2 -2
- package/dist/cdn/{U7BSTI4W.js → QXPX2NPW.js} +2 -2
- package/dist/cdn/{PCRMIW56.js → RN2REPX3.js} +2 -2
- package/dist/cdn/{PE52DDMH.js → RPQOQQSL.js} +2 -2
- package/dist/cdn/RSXOP3R5.js +6 -0
- package/dist/cdn/{NJEGSU4S.js → S7S6ARM2.js} +2 -2
- package/dist/cdn/{BLCGQIIG.js → SNF6PQDA.js} +2 -2
- package/dist/cdn/{FWH2SDOO.js → SPPQB6HJ.js} +2 -2
- package/dist/cdn/{7IV7MLK2.js → ST2CRGPM.js} +2 -2
- package/dist/cdn/{KVVOGNVV.js → SUEDRTNE.js} +2 -2
- package/dist/cdn/{34PJWM5S.js → SW63GGTX.js} +2 -2
- package/dist/cdn/{FC2AIUU4.js → T5JY4NUR.js} +1 -1
- package/dist/cdn/{2ELONJFJ.js → TBKYTCWV.js} +2 -2
- package/dist/cdn/{EXVPDO2O.js → TGOTZ7AI.js} +2 -2
- package/dist/cdn/{OSJ6OFRU.js → TLXRUB2I.js} +2 -2
- package/dist/cdn/{RP2AVIBP.js → TN3WLCHJ.js} +1 -1
- package/dist/cdn/{CPTQQPY2.js → U2DRGZMR.js} +2 -2
- package/dist/cdn/{7HU7RIXG.js → UERCPIN5.js} +2 -2
- package/dist/cdn/{6J2EHGJB.js → UFB7UU6E.js} +1 -1
- package/dist/cdn/{PF6QUHKZ.js → UHZ772ND.js} +2 -2
- package/dist/cdn/UT2TU4IE.js +4 -0
- package/dist/cdn/{YZGU7UEH.js → UTX6MR4S.js} +2 -2
- package/dist/cdn/{24WBASSH.js → V7RU2UNT.js} +2 -2
- package/dist/cdn/{25GIHOAR.js → VBIWNOWT.js} +2 -2
- package/dist/cdn/{YXE7BY2K.js → VCEXQIAL.js} +2 -2
- package/dist/cdn/{2OCYM3OK.js → VKAIYWB6.js} +2 -2
- package/dist/cdn/{6E5B576C.js → VUGWIA5S.js} +2 -2
- package/dist/cdn/{IHGISFTT.js → VXE3QTOJ.js} +2 -2
- package/dist/cdn/{FZW76KJQ.js → WTLPSGCB.js} +2 -2
- package/dist/cdn/{JU5LW5WD.js → XDDWEQM3.js} +2 -2
- package/dist/cdn/XGAGBN4O.js +4 -0
- package/dist/cdn/{NWKOHTGA.js → XJG23KZB.js} +2 -2
- package/dist/cdn/{YKYALGDF.js → XQWUSMGI.js} +2 -2
- package/dist/cdn/{I2HLEB6L.js → XTNP3TJF.js} +2 -2
- package/dist/cdn/{RDNLBAOK.js → YB6ZBOCX.js} +2 -2
- package/dist/cdn/{LEOKJPJQ.js → YCQPBKUP.js} +2 -2
- package/dist/cdn/{HHQII7OF.js → YXY5RVBB.js} +2 -2
- package/dist/cdn/{UZBOO73Z.js → ZBFPM6CM.js} +2 -2
- package/dist/cdn/{SYEDGBKA.js → ZD62VL5V.js} +2 -2
- package/dist/cdn/ZEX2ON7O.js +4 -0
- package/dist/cdn/{4XMFLJJI.js → ZO4WI4NO.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +66 -77
- package/dist/chunks/async-utils.js +2 -2
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +5 -5
- package/dist/chunks/measurementUtils.js +50 -0
- package/dist/chunks/runtime.js +8 -6
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/AreaMeasurement3dViewModel.d.ts +45 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +17 -56
- package/dist/components/arcgis-area-measurement-3d/customElement.js +155 -17
- package/dist/components/arcgis-area-measurement-3d/index.d.ts +3 -0
- package/dist/components/arcgis-area-measurement-3d/index.js +3 -0
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/css.d.ts +1 -0
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +13 -12
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.d.ts +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/DirectLineMeasurement3dViewModel.d.ts +47 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +68 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +194 -0
- package/dist/components/arcgis-direct-line-measurement-3d/index.d.ts +4 -0
- package/dist/components/arcgis-direct-line-measurement-3d/index.js +4 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +34 -33
- package/dist/components/arcgis-directional-pad/index.d.ts +1 -1
- package/dist/components/arcgis-directional-pad/index.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/LineOfSightViewModel.d.ts +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +4 -4
- package/dist/components/arcgis-line-of-sight/customElement.js +16 -16
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +16 -2
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +36 -28
- package/dist/components/arcgis-link-chart-layout-switcher/index.d.ts +3 -0
- package/dist/components/arcgis-link-chart-layout-switcher/index.js +3 -0
- package/dist/components/arcgis-locate/customElement.d.ts +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.d.ts +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.d.ts +20 -0
- package/dist/components/arcgis-measurement-content/customElement.js +59 -0
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +1 -1
- package/dist/components/arcgis-search/customElement.js +37 -37
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.d.ts +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +14 -8
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +3 -2
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.d.ts +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.d.ts +4 -5
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.d.ts +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.d.ts +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.d.ts +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +988 -242
- package/dist/docs/docs.json +854 -273
- package/dist/docs/vscode.html-custom-data.json +159 -15
- package/dist/docs/web-types.json +253 -79
- package/dist/index.d.ts +23 -3
- package/dist/index.js +1 -1
- package/dist/loader.js +6 -4
- package/dist/support/AnalysisViewModel.d.ts +26 -39
- package/dist/support/maybe.d.ts +2 -2
- package/dist/support/measurementUtils.d.ts +19 -0
- package/dist/types/lumina.d.ts +11 -4
- package/dist/types/preact.d.ts +12 -4
- package/dist/types/react.d.ts +13 -4
- package/dist/types/stencil.d.ts +11 -4
- package/package.json +3 -4
- package/dist/cdn/2U3NM53O.js +0 -4
- package/dist/cdn/4OH6ZQSR.js +0 -6
- package/dist/cdn/5OJGMLTM.js +0 -4
- package/dist/cdn/EQLVXNT2.js +0 -4
- package/dist/cdn/ESYIRKJZ.js +0 -4
- package/dist/cdn/HAKRJX2P.js +0 -4
- package/dist/cdn/IBQZQ7NO.js +0 -4
- package/dist/cdn/KI5QKUMW.js +0 -4
- package/dist/cdn/MCMV52SD.js +0 -4
- package/dist/cdn/Q3IHR5JP.js +0 -4
- package/dist/cdn/SEORCENQ.js +0 -4
- package/dist/cdn/Y4BGHULQ.js +0 -4
- package/dist/cdn/YW35NM5X.js +0 -4
- package/dist/components/arcgis-directline-measurement-3d/customElement.d.ts +0 -98
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +0 -37
- /package/dist/components/{arcgis-directline-measurement-3d → arcgis-measurement-content}/index.d.ts +0 -0
- /package/dist/components/{arcgis-directline-measurement-3d → arcgis-measurement-content}/index.js +0 -0
|
@@ -1,43 +1,21 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
|
+
import { default as AreaMeasurementAnalysis } from '@arcgis/core/analysis/AreaMeasurementAnalysis.js';
|
|
4
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
3
5
|
import { Use } from '@arcgis/lumina/controllers';
|
|
4
|
-
import { default as AreaMeasurement3D } from '@arcgis/core/widgets/AreaMeasurement3D.js';
|
|
5
|
-
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
6
6
|
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
|
+
import { default as AreaMeasurement3dViewModel } from './AreaMeasurement3dViewModel';
|
|
7
8
|
|
|
8
|
-
declare const
|
|
9
|
-
state?: unknown;
|
|
10
|
-
viewModel?: __esri.AreaMeasurement3DViewModel | undefined;
|
|
11
|
-
closed?: boolean;
|
|
12
|
-
icon: import('@arcgis/components-utils').Nil | string;
|
|
13
|
-
label: import('@arcgis/components-utils').Nil | string;
|
|
14
|
-
referenceElement?: ArcgisReferenceElement | string;
|
|
15
|
-
position: __esri.UIPosition;
|
|
16
|
-
arcgisReady: import('@arcgis/lumina').EventEmitter;
|
|
17
|
-
arcgisPropertyChange: import('@arcgis/lumina').EventEmitter<{
|
|
18
|
-
name: string;
|
|
19
|
-
}> | undefined;
|
|
20
|
-
el: HTMLElement & {
|
|
21
|
-
childElem?: HTMLElement & {
|
|
22
|
-
ownedBy?: HTMLElement;
|
|
23
|
-
};
|
|
24
|
-
view?: __esri.LinkChartView | __esri.MapView | __esri.SceneView;
|
|
25
|
-
};
|
|
26
|
-
autoDestroyDisabled: boolean;
|
|
27
|
-
destroy: () => Promise<void>;
|
|
28
|
-
}) => AreaMeasurement3D;
|
|
9
|
+
declare const useViewModel: (component: LitElement & Pick<AreaMeasurement3dViewModel, never> & import('../../controllers/useViewModel').ViewModelControllerUses<AreaMeasurement3dViewModel>) => AreaMeasurement3dViewModel;
|
|
29
10
|
/**
|
|
30
|
-
* The Area Measurement 3D component calculates and displays the area and perimeter of a polygon.
|
|
11
|
+
* The Area Measurement 3D component calculates and displays the area and perimeter of a polygon.
|
|
12
|
+
* This component can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)
|
|
13
|
+
* to measure the area and perimeter of a polygon.
|
|
31
14
|
*
|
|
32
15
|
* [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-area-measurement-3d/)
|
|
33
16
|
*/
|
|
34
17
|
export declare class ArcgisAreaMeasurement3d extends LitElement {
|
|
35
|
-
|
|
36
|
-
* The area measurement analysis object being created or modified by the widget.
|
|
37
|
-
*
|
|
38
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#analysis)
|
|
39
|
-
*/
|
|
40
|
-
readonly analysis: __esri.AreaMeasurementAnalysis;
|
|
18
|
+
get analysis(): AreaMeasurementAnalysis;
|
|
41
19
|
/**
|
|
42
20
|
* If true, the component will not be destroyed automatically when it is
|
|
43
21
|
* disconnected from the document. This is useful when you want to move the
|
|
@@ -49,40 +27,23 @@ export declare class ArcgisAreaMeasurement3d extends LitElement {
|
|
|
49
27
|
*/
|
|
50
28
|
autoDestroyDisabled: boolean;
|
|
51
29
|
/**
|
|
52
|
-
* Icon which represents the
|
|
30
|
+
* Icon which represents the component.
|
|
31
|
+
* Typically used when the component is controlled by another component (e.g. by the Expand component).
|
|
53
32
|
*
|
|
54
33
|
* @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
|
|
55
34
|
* @default "measure-area"
|
|
56
35
|
*/
|
|
57
|
-
icon
|
|
58
|
-
/**
|
|
59
|
-
|
|
60
|
-
*
|
|
61
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#label)
|
|
62
|
-
*/
|
|
63
|
-
label: string;
|
|
36
|
+
icon?: HTMLCalciteIconElement["icon"];
|
|
37
|
+
/** The component's default label. */
|
|
38
|
+
label?: string;
|
|
64
39
|
/** @default "bottom-left" */
|
|
65
40
|
position: __esri.UIPosition;
|
|
66
41
|
referenceElement?: ArcgisReferenceElement | string;
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#state)
|
|
71
|
-
*
|
|
72
|
-
* @default "disabled"
|
|
73
|
-
*/
|
|
74
|
-
readonly state: "ready" | "disabled" | "measuring" | "measured";
|
|
75
|
-
/**
|
|
76
|
-
* Unit system (imperial, metric) or specific unit used for displaying the area values.
|
|
77
|
-
*
|
|
78
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unit)
|
|
79
|
-
*/
|
|
42
|
+
/** The current state of the component. */
|
|
43
|
+
state: "ready" | "disabled" | "measuring" | "measured";
|
|
44
|
+
/** Unit system (imperial, metric) or specific unit used for displaying the distance values. */
|
|
80
45
|
unit: __esri.SystemOrAreaUnit;
|
|
81
|
-
/**
|
|
82
|
-
* List of available units and unit systems (imperial, metric) for displaying the area values.
|
|
83
|
-
*
|
|
84
|
-
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unitOptions)
|
|
85
|
-
*/
|
|
46
|
+
/** List of unit systems (imperial, metric) and specific units for displaying the distance values. */
|
|
86
47
|
unitOptions: __esri.SystemOrAreaUnit[];
|
|
87
48
|
clear(): Promise<void>;
|
|
88
49
|
/** Permanently destroy the component. */
|
|
@@ -1,37 +1,175 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { c as h } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as y } from "lit-html";
|
|
3
|
+
import { LitElement as g, createEvent as f, noShadowRoot as w, nothing as v, safeClassMap as b } from "@arcgis/lumina";
|
|
4
|
+
import { usePropertyChange as M } from "@arcgis/lumina/controllers";
|
|
5
|
+
import { u as O } from "../../chunks/useT9n.js";
|
|
6
|
+
import { m as $ } from "../../chunks/useViewModel.js";
|
|
7
|
+
import { g as p } from "../../chunks/globalCss.js";
|
|
8
|
+
import { css as U } from "@lit/reactive-element/css-tag.js";
|
|
9
|
+
import A from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
|
|
10
|
+
import { getDefaultUnitForView as _ } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
11
|
+
import { property as n, subclass as V } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
12
|
+
import { watch as D } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
import { A as C } from "../../chunks/AnalysisViewModel.js";
|
|
14
|
+
import { g as m, a as c } from "../../chunks/measurementUtils.js";
|
|
7
15
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
16
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
9
|
-
v4.33.0-next.
|
|
10
|
-
const
|
|
11
|
-
|
|
17
|
+
v4.33.0-next.138 */
|
|
18
|
+
const S = U`@layer{arcgis-area-measurement-3d{display:block}.arcgis-area-measurement-3d{position:relative;padding:var(--esri-widget-padding);overflow-y:auto}}`;
|
|
19
|
+
var L = Object.defineProperty, P = Object.getOwnPropertyDescriptor, a = (e, t, s, o) => {
|
|
20
|
+
for (var r = o > 1 ? void 0 : o ? P(t, s) : t, l = e.length - 1, u; l >= 0; l--)
|
|
21
|
+
(u = e[l]) && (r = (o ? u(t, s, r) : u(r)) || r);
|
|
22
|
+
return o && r && L(t, s, r), r;
|
|
23
|
+
};
|
|
24
|
+
let i = class extends C {
|
|
25
|
+
constructor(e) {
|
|
26
|
+
super(e), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Area Measurement 3D component is only supported in 3D views.";
|
|
27
|
+
}
|
|
28
|
+
initialize() {
|
|
29
|
+
this.addHandles(
|
|
30
|
+
// Make sure the analysis and view model units are in sync.
|
|
31
|
+
D(
|
|
32
|
+
() => ({
|
|
33
|
+
analysis: this.analysis,
|
|
34
|
+
unit: this.unit
|
|
35
|
+
}),
|
|
36
|
+
({ analysis: e, unit: t }) => {
|
|
37
|
+
e != null && (e.unit = t);
|
|
38
|
+
},
|
|
39
|
+
{ sync: !0, initial: !0 }
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
get state() {
|
|
44
|
+
return this.disabled || !this.ready ? "disabled" : this.operationState === "inactive" ? this.analysis.valid ? "measured" : "ready" : "measuring";
|
|
45
|
+
}
|
|
46
|
+
get displayState() {
|
|
47
|
+
if (!this.supported)
|
|
48
|
+
return "unsupported";
|
|
49
|
+
switch (this.state) {
|
|
50
|
+
case "disabled":
|
|
51
|
+
case "ready":
|
|
52
|
+
return "ready";
|
|
53
|
+
case "measuring":
|
|
54
|
+
return this.analysis.geometry == null ? "measuring" : "measured";
|
|
55
|
+
case "measured":
|
|
56
|
+
return "measured";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
get measurement() {
|
|
60
|
+
const e = this.analysisView?.result, t = e?.mode ?? "euclidean", s = this.analysisView?.viewData.intersectingSegments?.size === 0;
|
|
61
|
+
return {
|
|
62
|
+
mode: t,
|
|
63
|
+
area: m(e?.area, s),
|
|
64
|
+
perimeter: m(e?.perimeter, s)
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
get unitOptions() {
|
|
68
|
+
const e = this._userUnitOptions?.filter((t) => c.includes(t));
|
|
69
|
+
return e && e.length > 0 ? e : c.slice();
|
|
70
|
+
}
|
|
71
|
+
set unitOptions(e) {
|
|
72
|
+
this._userUnitOptions = e;
|
|
73
|
+
}
|
|
74
|
+
get unit() {
|
|
75
|
+
const e = this._userUnit, t = this.unitOptions;
|
|
76
|
+
if (e && t.includes(e))
|
|
77
|
+
return e;
|
|
78
|
+
const s = this.defaultUnit;
|
|
79
|
+
return s && t.includes(s) ? s : t[0];
|
|
80
|
+
}
|
|
81
|
+
set unit(e) {
|
|
82
|
+
this._userUnit = e;
|
|
83
|
+
}
|
|
84
|
+
get defaultUnit() {
|
|
85
|
+
return this.view ? _(this.view) : void 0;
|
|
86
|
+
}
|
|
87
|
+
async place(e) {
|
|
88
|
+
await this.analysisView?.place(e);
|
|
89
|
+
}
|
|
90
|
+
clearAnalysis() {
|
|
91
|
+
this.analysis.geometry = null;
|
|
92
|
+
}
|
|
93
|
+
constructAnalysis() {
|
|
94
|
+
return new A();
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
a([
|
|
98
|
+
n({ readOnly: !0 })
|
|
99
|
+
], i.prototype, "state", 1);
|
|
100
|
+
a([
|
|
101
|
+
n({ readOnly: !0 })
|
|
102
|
+
], i.prototype, "displayState", 1);
|
|
103
|
+
a([
|
|
104
|
+
n({ readOnly: !0 })
|
|
105
|
+
], i.prototype, "measurement", 1);
|
|
106
|
+
a([
|
|
107
|
+
n()
|
|
108
|
+
], i.prototype, "unitOptions", 1);
|
|
109
|
+
a([
|
|
110
|
+
n()
|
|
111
|
+
], i.prototype, "_userUnitOptions", 2);
|
|
112
|
+
a([
|
|
113
|
+
n()
|
|
114
|
+
], i.prototype, "unit", 1);
|
|
115
|
+
a([
|
|
116
|
+
n()
|
|
117
|
+
], i.prototype, "_userUnit", 2);
|
|
118
|
+
a([
|
|
119
|
+
n({ readOnly: !0 })
|
|
120
|
+
], i.prototype, "defaultUnit", 1);
|
|
121
|
+
i = a([
|
|
122
|
+
V("components.area-measurement-3d.AreaMeasurement3dViewModel")
|
|
123
|
+
], i);
|
|
124
|
+
const E = "arcgis-area-measurement-3d", x = { base: E }, R = $(i);
|
|
125
|
+
class T extends g {
|
|
12
126
|
constructor() {
|
|
13
|
-
super(...arguments), this.
|
|
127
|
+
super(...arguments), this.viewModel = R(this), this.messages = O({ blocking: !0 }), this.autoDestroyDisabled = !1, this.icon = "measure-area", this.position = "bottom-left", this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = M()("analysis", "state"), this.arcgisReady = f();
|
|
14
128
|
}
|
|
15
129
|
static {
|
|
16
|
-
this.properties = { analysis:
|
|
130
|
+
this.properties = { analysis: 32, autoDestroyDisabled: 5, icon: 3, label: 1, position: 1, referenceElement: 1, state: 3, unit: 1, unitOptions: 0 };
|
|
17
131
|
}
|
|
18
132
|
static {
|
|
19
|
-
this.shadowRootOptions =
|
|
133
|
+
this.shadowRootOptions = w;
|
|
20
134
|
}
|
|
21
135
|
static {
|
|
22
|
-
this.styles =
|
|
136
|
+
this.styles = S;
|
|
137
|
+
}
|
|
138
|
+
get analysis() {
|
|
139
|
+
return this.viewModel.analysis;
|
|
23
140
|
}
|
|
24
141
|
async clear() {
|
|
25
|
-
this.
|
|
142
|
+
this.viewModel.clear();
|
|
26
143
|
}
|
|
27
144
|
async destroy() {
|
|
28
145
|
await this.manager.destroy();
|
|
29
146
|
}
|
|
30
147
|
async start() {
|
|
31
|
-
this.
|
|
148
|
+
this.viewModel.start();
|
|
149
|
+
}
|
|
150
|
+
render() {
|
|
151
|
+
const { messages: t, unit: s, unitOptions: o, viewModel: r } = this, { measurement: l, state: u } = r;
|
|
152
|
+
return y`<div aria-label=${t.componentLabel ?? v} class=${b({
|
|
153
|
+
[x.base]: !0,
|
|
154
|
+
[p.widget]: !0,
|
|
155
|
+
[p.panel]: !0
|
|
156
|
+
})} role=presentation><arcgis-measurement-content .state=${r.displayState} .hintLabel=${t.hint} .unsupportedLabel=${t.unsupported} .items=${[
|
|
157
|
+
{
|
|
158
|
+
title: t.area,
|
|
159
|
+
measurement: l.area
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
title: t.perimeterLength,
|
|
163
|
+
measurement: l.perimeter
|
|
164
|
+
}
|
|
165
|
+
]}><arcgis-unit-select slot=settings .options=${o} .selectLabel=${t.unit} .value=${s} @arcgisUnitSelectChange=${(d) => {
|
|
166
|
+
this.unit = d.detail;
|
|
167
|
+
}}></arcgis-unit-select><calcite-button slot=actions .disabled=${u === "disabled"} @click=${() => {
|
|
168
|
+
this.viewModel.clear(), this.viewModel.start();
|
|
169
|
+
}}>${t.newMeasurement}</calcite-button></arcgis-measurement-content></div>`;
|
|
32
170
|
}
|
|
33
171
|
}
|
|
34
|
-
|
|
172
|
+
h("arcgis-area-measurement-3d", T);
|
|
35
173
|
export {
|
|
36
|
-
|
|
174
|
+
T as ArcgisAreaMeasurement3d
|
|
37
175
|
};
|
|
@@ -6,7 +6,7 @@ import { m as o } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
9
|
-
v4.33.0-next.
|
|
9
|
+
v4.33.0-next.138 */
|
|
10
10
|
const n = h`@layer{arcgis-attachments{display:block}}`, r = o(i);
|
|
11
11
|
class l extends s {
|
|
12
12
|
constructor() {
|
|
@@ -52,7 +52,7 @@ export declare class ArcgisBasemapGallery extends LitElement {
|
|
|
52
52
|
* @default ""
|
|
53
53
|
*/
|
|
54
54
|
label: string;
|
|
55
|
-
/** Replace localized message strings with your own strings. */
|
|
55
|
+
/** Replace localized message strings with your own strings. **Warning**: individual message keys may change between releases. */
|
|
56
56
|
messageOverrides?: typeof this.messages._overrides;
|
|
57
57
|
/** @default "bottom-left" */
|
|
58
58
|
position: __esri.UIPosition;
|
|
@@ -13,7 +13,7 @@ import { c as a } from "../../chunks/basemap-gallery-resources.js";
|
|
|
13
13
|
import { css as L } from "@lit/reactive-element/css-tag.js";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
16
|
-
v4.33.0-next.
|
|
16
|
+
v4.33.0-next.138 */
|
|
17
17
|
const D = L`@layer{arcgis-basemap-gallery{display:block}}`, A = B(f), m = {
|
|
18
18
|
// Below this width, items are displayed as a single column and the thumbnail is placed above the title.
|
|
19
19
|
small: 200,
|
|
@@ -8,7 +8,7 @@ import { c as i } from "../../chunks/basemap-gallery-resources.js";
|
|
|
8
8
|
import { g as A } from "../../chunks/component-utils.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.138 */
|
|
12
12
|
function _(e) {
|
|
13
13
|
return e.portalItem?.type === "Web Scene" || e.referenceLayers.some((t) => t.type === "scene");
|
|
14
14
|
}
|
|
@@ -8,7 +8,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
import { c as d } from "../../chunks/createCloseEvent.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.138 */
|
|
12
12
|
const n = h`@layer{arcgis-basemap-layer-list{display:block}}`, c = o(s);
|
|
13
13
|
class g extends r {
|
|
14
14
|
constructor() {
|
|
@@ -6,5 +6,6 @@ export declare const css: {
|
|
|
6
6
|
readonly imageLoading: "esri-basemap-toggle__image--loading";
|
|
7
7
|
readonly overlay: "esri-basemap-thumbnail__overlay esri-basemap-toggle__image-overlay";
|
|
8
8
|
readonly title: "esri-basemap-thumbnail__title esri-basemap-toggle__title";
|
|
9
|
+
readonly titleWrap: "esri-basemap-toggle__title-wrap";
|
|
9
10
|
readonly overlayScrim: "esri-basemap-thumbnail__overlay-scrim";
|
|
10
11
|
};
|
|
@@ -35,7 +35,7 @@ export declare class ArcgisBasemapToggle extends LitElement {
|
|
|
35
35
|
icon?: string;
|
|
36
36
|
/** The component's default label. */
|
|
37
37
|
label?: string;
|
|
38
|
-
/** Replace localized message strings with your own strings. */
|
|
38
|
+
/** Replace localized message strings with your own strings. **Warning**: individual message keys may change between releases. */
|
|
39
39
|
messageOverrides?: typeof this.messages._overrides;
|
|
40
40
|
/** The next basemap for toggling. */
|
|
41
41
|
nextBasemap?: __esri.BasemapProperties | string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { c as f } from "../../chunks/runtime.js";
|
|
2
2
|
import { html as l } from "lit-html";
|
|
3
3
|
import { usePropertyChange as B } from "@arcgis/lumina/controllers";
|
|
4
|
-
import { classes as
|
|
5
|
-
import { getBasemapThumbnailUrl as
|
|
6
|
-
import
|
|
7
|
-
import { LitElement as T, createEvent as M, noShadowRoot as k, safeClassMap as a, nothing as
|
|
4
|
+
import { classes as r } from "@arcgis/components-utils";
|
|
5
|
+
import { getBasemapThumbnailUrl as x } from "@arcgis/core/applications/Components/basemapUtils.js";
|
|
6
|
+
import S from "@arcgis/core/widgets/BasemapToggle/BasemapToggleViewModel.js";
|
|
7
|
+
import { LitElement as T, createEvent as M, noShadowRoot as k, safeClassMap as a, nothing as c, safeStyleMap as b } from "@arcgis/lumina";
|
|
8
8
|
import { u as I } from "../../chunks/useT9n.js";
|
|
9
9
|
import { m as C } from "../../chunks/useViewModel.js";
|
|
10
|
-
import { g as
|
|
10
|
+
import { g as $ } from "../../chunks/globalCss.js";
|
|
11
11
|
import { css as L } from "@lit/reactive-element/css-tag.js";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
14
|
-
v4.33.0-next.
|
|
15
|
-
const A = L`@layer{arcgis-basemap-toggle{display:block}}`, s = "esri-basemap-toggle", o = "esri-basemap-thumbnail", e = {
|
|
14
|
+
v4.33.0-next.138 */
|
|
15
|
+
const A = L`@layer{arcgis-basemap-toggle{display:block}.esri-basemap-toggle__title-wrap{text-wrap:wrap}}`, s = "esri-basemap-toggle", o = "esri-basemap-thumbnail", e = {
|
|
16
16
|
base: s,
|
|
17
17
|
secondaryBasemapImage: `${s}__image--secondary`,
|
|
18
18
|
container: `${o} ${s}__container`,
|
|
@@ -20,8 +20,9 @@ const A = L`@layer{arcgis-basemap-toggle{display:block}}`, s = "esri-basemap-tog
|
|
|
20
20
|
imageLoading: `${s}__image--loading`,
|
|
21
21
|
overlay: `${o}__overlay ${s}__image-overlay`,
|
|
22
22
|
title: `${o}__title ${s}__title`,
|
|
23
|
+
titleWrap: `${s}__title-wrap`,
|
|
23
24
|
overlayScrim: `${o}__overlay-scrim`
|
|
24
|
-
}, D = C(
|
|
25
|
+
}, D = C(S);
|
|
25
26
|
class E extends T {
|
|
26
27
|
constructor() {
|
|
27
28
|
super(...arguments), this.messages = I(), this.viewModel = D(this), this.activeBasemap = this.viewModel.activeBasemap, this.autoDestroyDisabled = !1, this.icon = "layer-basemap", this.nextBasemap = this.viewModel.nextBasemap, this.position = "top-left", this.showTitle = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = B()("nextBasemap", "state"), this.arcgisReady = M();
|
|
@@ -42,14 +43,14 @@ class E extends T {
|
|
|
42
43
|
return await this.viewModel.toggle();
|
|
43
44
|
}
|
|
44
45
|
_getThumbnailStyles(t) {
|
|
45
|
-
const n =
|
|
46
|
+
const n = x(t);
|
|
46
47
|
return n ? { backgroundImage: `url(${n})` } : { backgroundImage: "" };
|
|
47
48
|
}
|
|
48
49
|
render() {
|
|
49
|
-
const t = this.viewModel, n = t.state === "disabled" ? null : t.activeBasemap, i = t.state === "disabled" ? null : t.nextBasemap,
|
|
50
|
+
const t = this.viewModel, n = t.state === "disabled" ? null : t.activeBasemap, i = t.state === "disabled" ? null : t.nextBasemap, u = t.state === "loading", p = t.state === "incompatible-next-basemap", m = i?.title ?? "", d = i && i.loadStatus !== "loaded";
|
|
50
51
|
let g;
|
|
51
|
-
const h = this.showTitle &&
|
|
52
|
-
return y && (g = l`<div class=${a(e.overlay)}>${h ? l`<span class=${a(e.title)} title=${
|
|
52
|
+
const h = this.showTitle && m, v = p, y = h || v, w = this._getThumbnailStyles(n), _ = this._getThumbnailStyles(i);
|
|
53
|
+
return y && (g = l`<div class=${a(e.overlay)}>${h ? l`<span class=${a(r(e.title, e.titleWrap))} title=${m ?? c}>${m}</span>` : null}${v ? l`<calcite-scrim class=${a(e.overlayScrim)} title=${this.messages.incompatibleSpatialReference ?? c}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>` : null}</div>`), l`<div class=${a(r(e.base, $.widget))}><calcite-button appearance=transparent data-basemap-id=${(i ? i.id : "") ?? c} .disabled=${p} kind=neutral .label=${this.label ?? void 0} @click=${() => void this.toggle()} title=${this.label ?? void 0 ?? c}><div class=${a(r(e.container, e.secondaryBasemapImage))}><div class=${a(e.image)} style=${b(w)}></div></div><div class=${a(e.container)}><div class=${a(r(e.image, d ? e.imageLoading : null))} style=${b(_)}>${d || u ? l`<calcite-scrim><span aria-hidden=true class=${a($.loaderAnimation)} role=presentation></span></calcite-scrim>` : null}</div>${g}</div></calcite-button></div>`;
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
f("arcgis-basemap-toggle", E);
|
|
@@ -8,7 +8,7 @@ import { css as r } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
import { c as d } from "../../chunks/createCloseEvent.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.138 */
|
|
12
12
|
const n = r`@layer{arcgis-bookmarks{display:block}}`, m = h(s);
|
|
13
13
|
class g extends o {
|
|
14
14
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import { m as h } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as r } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
9
|
-
v4.33.0-next.
|
|
9
|
+
v4.33.0-next.138 */
|
|
10
10
|
const a = r`@layer{arcgis-building-explorer{display:block}}`, d = h(s);
|
|
11
11
|
class n extends t {
|
|
12
12
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
import { c as d } from "../../chunks/createCloseEvent.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.138 */
|
|
12
12
|
const c = h`@layer{arcgis-catalog-layer-list{display:block}}`, n = r(s);
|
|
13
13
|
class g extends o {
|
|
14
14
|
constructor() {
|
|
@@ -40,7 +40,7 @@ export declare class ArcgisCompass extends LitElement {
|
|
|
40
40
|
set icon(value: string | undefined);
|
|
41
41
|
/** The component's default label. */
|
|
42
42
|
label?: string;
|
|
43
|
-
/** Replace localized message strings with your own strings. */
|
|
43
|
+
/** Replace localized message strings with your own strings. **Warning**: individual message keys may change between releases. */
|
|
44
44
|
messageOverrides?: typeof this.messages._overrides;
|
|
45
45
|
/**
|
|
46
46
|
* The z axis orientation.
|
|
@@ -10,7 +10,7 @@ import { g as i } from "../../chunks/globalCss.js";
|
|
|
10
10
|
import { css as y } from "@lit/reactive-element/css-tag.js";
|
|
11
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
13
|
-
v4.33.0-next.
|
|
13
|
+
v4.33.0-next.138 */
|
|
14
14
|
const $ = y`@layer{arcgis-compass{display:block}}`, r = "esri-compass", a = {
|
|
15
15
|
base: r,
|
|
16
16
|
iconContainer: `${r}__icon-container`
|
|
@@ -6,7 +6,7 @@ import { m as d } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
9
|
-
v4.33.0-next.
|
|
9
|
+
v4.33.0-next.138 */
|
|
10
10
|
const l = h`@layer{arcgis-coordinate-conversion{display:block}}`, g = d(o);
|
|
11
11
|
class c extends n {
|
|
12
12
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import { css as l } from "@lit/reactive-element/css-tag.js";
|
|
|
6
6
|
import { reEmitEvent as o } from "@arcgis/lumina/controllers/accessor";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
9
|
-
v4.33.0-next.
|
|
9
|
+
v4.33.0-next.138 */
|
|
10
10
|
const d = l`@layer{arcgis-daylight{display:block}}`, r = h(i);
|
|
11
11
|
class n extends t {
|
|
12
12
|
constructor() {
|
package/dist/components/arcgis-direct-line-measurement-3d/DirectLineMeasurement3dViewModel.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
import { default as DirectLineMeasurementAnalysis } from '@arcgis/core/analysis/DirectLineMeasurementAnalysis.js';
|
|
3
|
+
import { default as SceneView } from '@arcgis/core/views/SceneView';
|
|
4
|
+
import { ConstructProperties as AnalysisViewModelConstructProperties, AnalysisViewModel } from '../../support/AnalysisViewModel';
|
|
5
|
+
import { MeasurementModeString, MeasurementState, MeasurementValue } from '../../support/measurementUtils';
|
|
6
|
+
interface ConstructProperties extends AnalysisViewModelConstructProperties<SceneView, DirectLineMeasurementAnalysis> {
|
|
7
|
+
unitOptions: __esri.SystemOrLengthUnit[];
|
|
8
|
+
unit: __esri.SystemOrLengthUnit;
|
|
9
|
+
}
|
|
10
|
+
export interface Measurement {
|
|
11
|
+
readonly mode: MeasurementModeString;
|
|
12
|
+
readonly directDistance: MeasurementValue<__esri.Length>;
|
|
13
|
+
readonly horizontalDistance: MeasurementValue<__esri.Length>;
|
|
14
|
+
readonly verticalDistance: MeasurementValue<__esri.Length>;
|
|
15
|
+
}
|
|
16
|
+
export type State = "disabled" | "measured" | "measuring" | "ready";
|
|
17
|
+
export default class DirectLineMeasurement3DViewModel extends AnalysisViewModel<SceneView, DirectLineMeasurementAnalysis> implements ConstructProperties {
|
|
18
|
+
constructor(properties?: Partial<ConstructProperties>);
|
|
19
|
+
initialize(): void;
|
|
20
|
+
get state(): Exclude<MeasurementState, "unsupported">;
|
|
21
|
+
get displayState(): MeasurementState;
|
|
22
|
+
/**
|
|
23
|
+
* The current measurement calculated between the two points.
|
|
24
|
+
*/
|
|
25
|
+
get measurement(): Measurement;
|
|
26
|
+
/**
|
|
27
|
+
* List of unit systems (imperial, metric) and specific units for displaying the distance values.
|
|
28
|
+
*/
|
|
29
|
+
get unitOptions(): __esri.SystemOrLengthUnit[];
|
|
30
|
+
set unitOptions(units: __esri.SystemOrLengthUnit[] | undefined);
|
|
31
|
+
private _userUnitOptions?;
|
|
32
|
+
/**
|
|
33
|
+
* Unit system (imperial, metric) or specific unit used for displaying the distance values.
|
|
34
|
+
*/
|
|
35
|
+
get unit(): __esri.SystemOrLengthUnit;
|
|
36
|
+
set unit(unit: __esri.SystemOrLengthUnit | undefined);
|
|
37
|
+
private _userUnit?;
|
|
38
|
+
get defaultUnit(): __esri.MeasurementSystem | undefined;
|
|
39
|
+
place(options?: {
|
|
40
|
+
signal?: AbortSignal;
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
protected clearAnalysis(): void;
|
|
43
|
+
protected readonly supportedViewType = "3d";
|
|
44
|
+
protected readonly unsupportedErrorMessage = "The Direct Line Measurement 3D component is only supported in 3D views.";
|
|
45
|
+
protected constructAnalysis(): DirectLineMeasurementAnalysis;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
3
|
+
import { default as DirectLineMeasurementAnalysis } from '@arcgis/core/analysis/DirectLineMeasurementAnalysis';
|
|
4
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
5
|
+
import { Use } from '@arcgis/lumina/controllers';
|
|
6
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
|
+
import { default as DirectLineMeasurement3DViewModel } from './DirectLineMeasurement3dViewModel';
|
|
8
|
+
|
|
9
|
+
declare const useViewModel: (component: LitElement & Pick<DirectLineMeasurement3DViewModel, never> & import('../../controllers/useViewModel').ViewModelControllerUses<DirectLineMeasurement3DViewModel>) => DirectLineMeasurement3DViewModel;
|
|
10
|
+
/**
|
|
11
|
+
* The Direct Line Measurement 3D component calculates and displays the 3D distance between two points. This component
|
|
12
|
+
* can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)
|
|
13
|
+
* to measure the vertical, horizontal, and direct distance between two points.
|
|
14
|
+
*
|
|
15
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-direct-line-measurement-3d/)
|
|
16
|
+
*/
|
|
17
|
+
export declare class ArcgisDirectLineMeasurement3d extends LitElement {
|
|
18
|
+
get analysis(): DirectLineMeasurementAnalysis;
|
|
19
|
+
/**
|
|
20
|
+
* If true, the component will not be destroyed automatically when it is
|
|
21
|
+
* disconnected from the document. This is useful when you want to move the
|
|
22
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
23
|
+
* is set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-direct-line-measurement-3d/#destroy) method when you are done to
|
|
24
|
+
* prevent memory leaks.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
autoDestroyDisabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Icon which represents the component.
|
|
31
|
+
* Typically used when the component is controlled by another component (e.g. by the Expand component).
|
|
32
|
+
*
|
|
33
|
+
* @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
|
|
34
|
+
* @default "measure-line"
|
|
35
|
+
*/
|
|
36
|
+
icon?: HTMLCalciteIconElement["icon"];
|
|
37
|
+
/** The component's default label. */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** @default "bottom-left" */
|
|
40
|
+
position: __esri.UIPosition;
|
|
41
|
+
referenceElement?: ArcgisReferenceElement | string;
|
|
42
|
+
state: "ready" | "disabled" | "measuring" | "measured";
|
|
43
|
+
/** Unit system (imperial, metric) or specific unit used for displaying the distance values. */
|
|
44
|
+
unit: __esri.SystemOrLengthUnit;
|
|
45
|
+
/** List of unit systems (imperial, metric) and specific units for displaying the distance values. */
|
|
46
|
+
unitOptions: __esri.SystemOrLengthUnit[];
|
|
47
|
+
clear(): Promise<void>;
|
|
48
|
+
/** Permanently destroy the component. */
|
|
49
|
+
destroy(): Promise<void>;
|
|
50
|
+
start(): Promise<void>;
|
|
51
|
+
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
52
|
+
readonly arcgisPropertyChange: TargetedEvent<this, {
|
|
53
|
+
name: "state" | "analysis";
|
|
54
|
+
}>;
|
|
55
|
+
/** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
|
|
56
|
+
readonly arcgisReady: TargetedEvent<this, void>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The Direct Line Measurement 3D component calculates and displays the 3D distance between two points. This component can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) to measure the vertical, horizontal, and direct distance between two points.
|
|
60
|
+
*
|
|
61
|
+
* [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-directline-measurement-3d/)
|
|
62
|
+
*
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
66
|
+
export declare class DeprecatedArcgisDirectLineMeasurement3d extends ArcgisDirectLineMeasurement3d {
|
|
67
|
+
}
|
|
68
|
+
export {};
|