@arcgis/map-components 4.32.0-next.84 → 4.32.0-next.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-map-components/2XHX4GRY.js +4 -0
- package/dist/arcgis-map-components/32X3ZYOM.js +4 -0
- package/dist/arcgis-map-components/35DMTE4K.js +4 -0
- package/dist/arcgis-map-components/3JTGHVNB.js +4 -0
- package/dist/arcgis-map-components/3ZDFYLLA.js +4 -0
- package/dist/arcgis-map-components/4CKEV5R3.js +4 -0
- package/dist/arcgis-map-components/4J4AUJFF.js +4 -0
- package/dist/arcgis-map-components/4ZIFQORV.js +4 -0
- package/dist/arcgis-map-components/6LUZOY5O.js +4 -0
- package/dist/arcgis-map-components/7BT4GAVM.js +4 -0
- package/dist/arcgis-map-components/{QDTORANP.js → 7JPD33PS.js} +1 -1
- package/dist/arcgis-map-components/7WR7N6T3.js +4 -0
- package/dist/arcgis-map-components/{LABTBYBR.js → A6QXV7MU.js} +2 -2
- package/dist/arcgis-map-components/AFIGXVQ3.js +4 -0
- package/dist/arcgis-map-components/{4HWKFVOD.js → AGWGNRMW.js} +2 -2
- package/dist/arcgis-map-components/AOZPIV4A.js +4 -0
- package/dist/arcgis-map-components/AVGUWUIP.js +4 -0
- package/dist/arcgis-map-components/AXIJBJKN.js +4 -0
- package/dist/arcgis-map-components/B5NOO6HX.js +4 -0
- package/dist/arcgis-map-components/CE62RYPI.js +4 -0
- package/dist/arcgis-map-components/CEIGROJD.js +4 -0
- package/dist/arcgis-map-components/CLH7HQDS.js +4 -0
- package/dist/arcgis-map-components/DAXKVFKC.js +4 -0
- package/dist/arcgis-map-components/DBWEC62Z.js +4 -0
- package/dist/arcgis-map-components/E2S64U4Z.js +4 -0
- package/dist/arcgis-map-components/E3RBXZMD.js +4 -0
- package/dist/arcgis-map-components/{ALE6KF3F.js → ETORB2CW.js} +4 -4
- package/dist/arcgis-map-components/G2AUFB2V.js +4 -0
- package/dist/arcgis-map-components/GFFY2SOD.js +4 -0
- package/dist/arcgis-map-components/GGRINU7O.js +4 -0
- package/dist/arcgis-map-components/HFOLCVHE.js +4 -0
- package/dist/arcgis-map-components/HN2B2WVM.js +4 -0
- package/dist/arcgis-map-components/HYBGAIIH.js +4 -0
- package/dist/arcgis-map-components/IJ4I2C2Q.js +4 -0
- package/dist/arcgis-map-components/ILVOJPYP.js +4 -0
- package/dist/arcgis-map-components/IUSB5KZR.js +4 -0
- package/dist/arcgis-map-components/{D5YSPPQY.js → KES7H4RV.js} +1 -1
- package/dist/arcgis-map-components/KFWRSEL5.js +4 -0
- package/dist/arcgis-map-components/KTPXF7QU.js +4 -0
- package/dist/arcgis-map-components/LXNOWS2N.js +4 -0
- package/dist/arcgis-map-components/MAZ73QH3.js +4 -0
- package/dist/arcgis-map-components/MKBRZJPK.js +4 -0
- package/dist/arcgis-map-components/{X3DKJFAI.js → MNAEUWGF.js} +2 -2
- package/dist/arcgis-map-components/NFID37OS.js +4 -0
- package/dist/arcgis-map-components/NH2PJWZN.js +4 -0
- package/dist/arcgis-map-components/NINSVERY.js +4 -0
- package/dist/arcgis-map-components/OWAZAAPU.js +4 -0
- package/dist/arcgis-map-components/{CTCO63FH.js → OXPBMLUL.js} +2 -2
- package/dist/arcgis-map-components/OXZIRB5Z.js +4 -0
- package/dist/arcgis-map-components/P254GL27.js +4 -0
- package/dist/arcgis-map-components/P2PVJ4AF.js +4 -0
- package/dist/arcgis-map-components/QAIK42DS.js +4 -0
- package/dist/arcgis-map-components/QHZ2NQDS.js +4 -0
- package/dist/arcgis-map-components/RIESOZ3J.js +4 -0
- package/dist/arcgis-map-components/RN7HCA5M.js +4 -0
- package/dist/arcgis-map-components/S732TQFW.js +4 -0
- package/dist/arcgis-map-components/SWD2W5AQ.js +4 -0
- package/dist/arcgis-map-components/T2IZZQA6.js +4 -0
- package/dist/arcgis-map-components/TYHESC7C.js +4 -0
- package/dist/arcgis-map-components/TYLB5V7D.js +4 -0
- package/dist/arcgis-map-components/U3JMNMD5.js +4 -0
- package/dist/arcgis-map-components/U5BKFVZA.js +4 -0
- package/dist/arcgis-map-components/{ADHZXMHO.js → VOAP25R5.js} +2 -2
- package/dist/arcgis-map-components/{F2U6NY4G.js → VPAITV6T.js} +2 -2
- package/dist/arcgis-map-components/VPDLR5PZ.js +4 -0
- package/dist/arcgis-map-components/VYAG6QFL.js +4 -0
- package/dist/arcgis-map-components/WRLAAWYP.js +4 -0
- package/dist/arcgis-map-components/XGMH4FTN.js +4 -0
- package/dist/arcgis-map-components/{B2AHBB47.js → XXMI6R5H.js} +2 -2
- package/dist/arcgis-map-components/YN7363HF.js +4 -0
- package/dist/arcgis-map-components/YWCFGHSS.js +4 -0
- package/dist/arcgis-map-components/ZZWXJ7BT.js +4 -0
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
- package/dist/chunks/basemap-gallery-item.js +1 -1
- package/dist/chunks/component-utils.js +43 -43
- package/dist/chunks/disconnected.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +4 -3
- package/dist/components/arcgis-area-measurement-2d/customElement.js +10 -10
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +5 -4
- package/dist/components/arcgis-area-measurement-3d/customElement.js +10 -10
- package/dist/components/arcgis-attachments/customElement.d.ts +7 -6
- package/dist/components/arcgis-attachments/customElement.js +9 -9
- package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -3
- package/dist/components/arcgis-basemap-gallery/customElement.js +38 -37
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +23 -22
- package/dist/components/arcgis-basemap-layer-list/customElement.js +6 -6
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +7 -6
- package/dist/components/arcgis-basemap-toggle/customElement.js +18 -17
- package/dist/components/arcgis-bookmarks/customElement.d.ts +14 -13
- package/dist/components/arcgis-bookmarks/customElement.js +9 -9
- package/dist/components/arcgis-building-explorer/customElement.d.ts +5 -4
- package/dist/components/arcgis-building-explorer/customElement.js +9 -9
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +16 -15
- package/dist/components/arcgis-catalog-layer-list/customElement.js +6 -6
- package/dist/components/arcgis-compass/customElement.d.ts +4 -3
- package/dist/components/arcgis-compass/customElement.js +10 -10
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +8 -7
- package/dist/components/arcgis-coordinate-conversion/customElement.js +9 -9
- package/dist/components/arcgis-daylight/customElement.d.ts +5 -4
- package/dist/components/arcgis-daylight/customElement.js +8 -8
- package/dist/components/arcgis-directional-pad/customElement.d.ts +28 -5
- package/dist/components/arcgis-directional-pad/customElement.js +37 -36
- package/dist/components/arcgis-directions/customElement.d.ts +10 -8
- package/dist/components/arcgis-directions/customElement.js +24 -24
- package/dist/components/arcgis-directline-measurement-3d/customElement.d.ts +5 -4
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +9 -9
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +5 -4
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +9 -9
- package/dist/components/arcgis-editor/customElement.d.ts +17 -16
- package/dist/components/arcgis-editor/customElement.js +9 -9
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +16 -21
- package/dist/components/arcgis-elevation-profile/customElement.js +9 -9
- package/dist/components/arcgis-expand/customElement.d.ts +9 -8
- package/dist/components/arcgis-expand/customElement.js +9 -9
- package/dist/components/arcgis-feature/customElement.d.ts +10 -17
- package/dist/components/arcgis-feature/customElement.js +8 -8
- package/dist/components/arcgis-feature-form/customElement.d.ts +8 -7
- package/dist/components/arcgis-feature-form/customElement.js +9 -9
- package/dist/components/arcgis-feature-table/customElement.d.ts +24 -23
- package/dist/components/arcgis-feature-table/customElement.js +17 -16
- package/dist/components/arcgis-feature-templates/customElement.d.ts +8 -7
- package/dist/components/arcgis-feature-templates/customElement.js +10 -10
- package/dist/components/arcgis-features/customElement.d.ts +21 -20
- package/dist/components/arcgis-features/customElement.js +6 -6
- package/dist/components/arcgis-floor-filter/customElement.d.ts +9 -8
- package/dist/components/arcgis-floor-filter/customElement.js +10 -10
- package/dist/components/arcgis-fullscreen/customElement.d.ts +5 -4
- package/dist/components/arcgis-fullscreen/customElement.js +11 -11
- package/dist/components/arcgis-histogram/customElement.d.ts +14 -13
- package/dist/components/arcgis-histogram/customElement.js +9 -9
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +15 -14
- package/dist/components/arcgis-histogram-range-slider/customElement.js +9 -9
- package/dist/components/arcgis-home/customElement.d.ts +7 -6
- package/dist/components/arcgis-home/customElement.js +12 -12
- package/dist/components/arcgis-layer-list/customElement.d.ts +21 -20
- package/dist/components/arcgis-layer-list/customElement.js +10 -10
- package/dist/components/arcgis-legend/customElement.d.ts +5 -4
- package/dist/components/arcgis-legend/customElement.js +9 -9
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +5 -4
- package/dist/components/arcgis-line-of-sight/customElement.js +9 -9
- package/dist/components/arcgis-link-chart/customElement.d.ts +20 -18
- package/dist/components/arcgis-link-chart/customElement.js +27 -27
- package/dist/components/arcgis-locate/customElement.d.ts +7 -6
- package/dist/components/arcgis-locate/customElement.js +15 -15
- package/dist/components/arcgis-map/customElement.d.ts +19 -17
- package/dist/components/arcgis-map/customElement.js +27 -27
- package/dist/components/arcgis-measurement/customElement.d.ts +7 -6
- package/dist/components/arcgis-measurement/customElement.js +9 -9
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +8 -6
- package/dist/components/arcgis-navigation-toggle/customElement.js +11 -11
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +8 -7
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +33 -28
- package/dist/components/arcgis-placement/customElement.js +2 -2
- package/dist/components/arcgis-print/customElement.d.ts +7 -6
- package/dist/components/arcgis-print/customElement.js +9 -9
- package/dist/components/arcgis-scale-bar/customElement.d.ts +6 -5
- package/dist/components/arcgis-scale-bar/customElement.js +70 -63
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +6 -5
- package/dist/components/arcgis-scale-range-slider/customElement.js +12 -12
- package/dist/components/arcgis-scene/customElement.d.ts +18 -16
- package/dist/components/arcgis-scene/customElement.js +25 -25
- package/dist/components/arcgis-search/customElement.d.ts +15 -14
- package/dist/components/arcgis-search/customElement.js +8 -8
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +11 -10
- package/dist/components/arcgis-shadow-cast/customElement.js +12 -12
- package/dist/components/arcgis-sketch/customElement.d.ts +30 -28
- package/dist/components/arcgis-sketch/customElement.js +11 -12
- package/dist/components/arcgis-slice/customElement.d.ts +6 -5
- package/dist/components/arcgis-slice/customElement.js +9 -9
- package/dist/components/arcgis-slider/customElement.d.ts +15 -14
- package/dist/components/arcgis-slider/customElement.js +9 -9
- package/dist/components/arcgis-swipe/customElement.d.ts +6 -5
- package/dist/components/arcgis-swipe/customElement.js +17 -17
- package/dist/components/arcgis-table-list/customElement.d.ts +25 -22
- package/dist/components/arcgis-table-list/customElement.js +6 -6
- package/dist/components/arcgis-time-slider/customElement.d.ts +10 -9
- package/dist/components/arcgis-time-slider/customElement.js +9 -9
- package/dist/components/arcgis-track/customElement.d.ts +8 -7
- package/dist/components/arcgis-track/customElement.js +15 -15
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +85 -14
- package/dist/components/arcgis-utility-network-associations/customElement.js +33 -210
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +8 -8
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +11 -11
- package/dist/components/arcgis-value-picker/customElement.d.ts +10 -9
- package/dist/components/arcgis-value-picker/customElement.js +9 -9
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -3
- package/dist/components/arcgis-version-management/customElement.js +99 -100
- 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.d.ts +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-weather/customElement.d.ts +6 -5
- package/dist/components/arcgis-weather/customElement.js +9 -9
- package/dist/components/arcgis-zoom/customElement.d.ts +4 -3
- package/dist/components/arcgis-zoom/customElement.js +8 -8
- package/dist/controllers/useViewModel.d.ts +2 -2
- package/dist/controllers/useWidget.d.ts +2 -2
- package/dist/docs/api.json +1105 -462
- package/dist/docs/docs.json +823 -345
- package/dist/docs/vscode.html-custom-data.json +229 -137
- package/dist/docs/web-types.json +582 -374
- package/dist/index.js +1 -1
- package/dist/loader.js +3 -3
- package/dist/testing/commonSpatialReferences.d.ts +8 -0
- package/dist/testing/mockServices.d.ts +9 -0
- package/dist/testing/setupFile.d.ts +1 -0
- package/dist/testing/testUtils.d.ts +49 -0
- package/dist/testing/tileInfoUtils.d.ts +10 -0
- package/dist/types/lumina.d.ts +6 -6
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/react.d.ts +6 -6
- package/dist/types/stencil.d.ts +6 -6
- package/dist/utils/component-utils.d.ts +2 -2
- package/package.json +4 -5
- package/dist/arcgis-map-components/2LH365WX.js +0 -4
- package/dist/arcgis-map-components/6JAD4WKP.js +0 -4
- package/dist/arcgis-map-components/7IYUKHGU.js +0 -4
- package/dist/arcgis-map-components/7PRXTQ4Y.js +0 -4
- package/dist/arcgis-map-components/ASLMMNFG.js +0 -4
- package/dist/arcgis-map-components/BCSTA4MD.js +0 -4
- package/dist/arcgis-map-components/BMZIKLJT.js +0 -4
- package/dist/arcgis-map-components/BVS52H6M.js +0 -4
- package/dist/arcgis-map-components/C542LZ3W.js +0 -4
- package/dist/arcgis-map-components/CAQQA5ME.js +0 -4
- package/dist/arcgis-map-components/CCF5WJQL.js +0 -4
- package/dist/arcgis-map-components/CHN4JGNG.js +0 -4
- package/dist/arcgis-map-components/CLW7FHWH.js +0 -4
- package/dist/arcgis-map-components/CSEA27MX.js +0 -4
- package/dist/arcgis-map-components/FTOHM6K7.js +0 -4
- package/dist/arcgis-map-components/G6CP2VYU.js +0 -4
- package/dist/arcgis-map-components/GHPCV4MN.js +0 -4
- package/dist/arcgis-map-components/GP5KXKC6.js +0 -4
- package/dist/arcgis-map-components/GUBVA4HI.js +0 -4
- package/dist/arcgis-map-components/H3QUUUNO.js +0 -4
- package/dist/arcgis-map-components/HNBQDWNV.js +0 -4
- package/dist/arcgis-map-components/IF6ICBVD.js +0 -4
- package/dist/arcgis-map-components/JDYFIYT3.js +0 -4
- package/dist/arcgis-map-components/JG6SSII2.js +0 -4
- package/dist/arcgis-map-components/JPFJWSQT.js +0 -4
- package/dist/arcgis-map-components/JY2BL6QD.js +0 -4
- package/dist/arcgis-map-components/LW4HCA3P.js +0 -4
- package/dist/arcgis-map-components/MCAPSEE3.js +0 -4
- package/dist/arcgis-map-components/MJBNTJRW.js +0 -4
- package/dist/arcgis-map-components/NAN3TPDO.js +0 -4
- package/dist/arcgis-map-components/NUF2ZXJB.js +0 -4
- package/dist/arcgis-map-components/OF62ZZDT.js +0 -4
- package/dist/arcgis-map-components/OODDLGXW.js +0 -4
- package/dist/arcgis-map-components/OUTOCGVP.js +0 -4
- package/dist/arcgis-map-components/PBYUEHJ2.js +0 -4
- package/dist/arcgis-map-components/QWBNGCQZ.js +0 -4
- package/dist/arcgis-map-components/QXH6QBCY.js +0 -4
- package/dist/arcgis-map-components/RLXPUR6U.js +0 -4
- package/dist/arcgis-map-components/S2QUE2PT.js +0 -4
- package/dist/arcgis-map-components/S3HVEU43.js +0 -4
- package/dist/arcgis-map-components/SBFEI7G7.js +0 -4
- package/dist/arcgis-map-components/SDIRYXNN.js +0 -4
- package/dist/arcgis-map-components/SDTEUQJF.js +0 -4
- package/dist/arcgis-map-components/SJ23WYPX.js +0 -4
- package/dist/arcgis-map-components/SM27BTYQ.js +0 -4
- package/dist/arcgis-map-components/SV37GYTZ.js +0 -4
- package/dist/arcgis-map-components/SZI3EYQQ.js +0 -4
- package/dist/arcgis-map-components/TRRQPVCK.js +0 -4
- package/dist/arcgis-map-components/UJJUHEQP.js +0 -4
- package/dist/arcgis-map-components/USOW5GMA.js +0 -4
- package/dist/arcgis-map-components/VCU3GSEE.js +0 -4
- package/dist/arcgis-map-components/VHDI7NKV.js +0 -4
- package/dist/arcgis-map-components/VIEKXUEC.js +0 -4
- package/dist/arcgis-map-components/VQUVK2Z4.js +0 -4
- package/dist/arcgis-map-components/VY2AN4QN.js +0 -4
- package/dist/arcgis-map-components/WCITYN6U.js +0 -4
- package/dist/arcgis-map-components/WOWZWSL5.js +0 -4
- package/dist/arcgis-map-components/WZIB63XY.js +0 -4
- package/dist/arcgis-map-components/XJ5ZDZD5.js +0 -4
- package/dist/arcgis-map-components/XKFVFNRT.js +0 -4
- package/dist/arcgis-map-components/XKY2Q5V6.js +0 -4
- package/dist/arcgis-map-components/ZANDAN6Q.js +0 -4
- package/dist/arcgis-map-components/ZD343J42.js +0 -4
|
@@ -1,53 +1,58 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { usePropertyChange as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import {
|
|
1
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
+
import { usePropertyChange as a } from "@arcgis/components-controllers";
|
|
3
|
+
import s from "@arcgis/core/layers/OrientedImageryLayer.js";
|
|
4
|
+
import r from "@arcgis/core/widgets/OrientedImageryViewer.js";
|
|
5
|
+
import { LitElement as o, createEvent as d, noShadowRoot as n } from "@arcgis/lumina";
|
|
6
|
+
import { m as l } from "../../chunks/useWidget.js";
|
|
7
|
+
import { css as g } from "@lit/reactive-element/css-tag.js";
|
|
7
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
9
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
9
|
-
v4.32.0-next.
|
|
10
|
-
const
|
|
11
|
-
class
|
|
10
|
+
v4.32.0-next.87 */
|
|
11
|
+
const h = g`arcgis-oriented-imagery-viewer{display:block}`, m = l(r);
|
|
12
|
+
class y extends o {
|
|
12
13
|
constructor() {
|
|
13
|
-
super(...arguments), this.widget =
|
|
14
|
+
super(...arguments), this.widget = m(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.position = "bottom-left", this.referencePoint = this.widget.referencePoint, this.arcgisPropertyChange = a()("imageGalleryEnabled", "layer"), this.arcgisReady = d();
|
|
14
15
|
}
|
|
15
16
|
static {
|
|
16
17
|
this.properties = { autoDestroyDisabled: 5, currentCoverageVisible: 5, disabled: 5, galleryOpened: 5, icon: 1, imageEnhancementToolActive: 5, imageGalleryEnabled: 4, isAdditionalCoverageVisible: 5, isAdditionalPointSourcesVisible: 5, label: 1, layer: 0, mapImageConversionToolState: 5, navigationToolActive: 5, orientedImageryLayerItemId: 1, position: 1, referenceElement: 1, referencePoint: 0 };
|
|
17
18
|
}
|
|
18
19
|
static {
|
|
19
|
-
this.shadowRootOptions =
|
|
20
|
+
this.shadowRootOptions = n;
|
|
20
21
|
}
|
|
21
22
|
static {
|
|
22
|
-
this.styles =
|
|
23
|
+
this.styles = h;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region Public Methods
|
|
26
27
|
/** Permanently destroy the component */
|
|
27
28
|
async destroy() {
|
|
28
29
|
await this.manager.destroy();
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
willUpdate(
|
|
33
|
-
if (
|
|
34
|
-
const
|
|
35
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region Lifecycle
|
|
33
|
+
willUpdate(e) {
|
|
34
|
+
if (e.has("orientedImageryLayerItemId")) {
|
|
35
|
+
const i = this.orientedImageryLayerItemId;
|
|
36
|
+
i && this.widget && (this.layer = new s({
|
|
36
37
|
portalItem: {
|
|
37
|
-
id:
|
|
38
|
+
id: i
|
|
38
39
|
}
|
|
39
|
-
}).
|
|
40
|
-
this.layer = t, this.widget.view ? this.widget.view.map.add(this.layer) : this._hasOrientedImageryLayerToAdd = !0;
|
|
41
|
-
}).catch(console.error);
|
|
40
|
+
}), this.widget.view ? this.widget.view.map.add(this.layer) : this._hasOrientedImageryLayerToAdd = !0);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
loaded() {
|
|
45
|
-
this._hasOrientedImageryLayerToAdd && (this.widget.view ?
|
|
46
|
-
this.
|
|
44
|
+
this._hasOrientedImageryLayerToAdd && (this.widget.view ? this._onReady() : this.el.addEventListener("arcgisReady", () => {
|
|
45
|
+
this._onReady();
|
|
47
46
|
}, { once: !0 }));
|
|
48
47
|
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region Private Methods
|
|
50
|
+
_onReady() {
|
|
51
|
+
const { layer: e } = this;
|
|
52
|
+
e && (this.widget.view?.map.add(e), this._hasOrientedImageryLayerToAdd = !1);
|
|
53
|
+
}
|
|
49
54
|
}
|
|
50
|
-
|
|
55
|
+
t("arcgis-oriented-imagery-viewer", y);
|
|
51
56
|
export {
|
|
52
|
-
|
|
57
|
+
y as ArcgisOrientedImageryViewer
|
|
53
58
|
};
|
|
@@ -4,7 +4,7 @@ import { LitElement as r, createEvent as o, noShadowRoot as n } from "@arcgis/lu
|
|
|
4
4
|
import { css as c } from "@lit/reactive-element/css-tag.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
7
|
-
v4.32.0-next.
|
|
7
|
+
v4.32.0-next.87 */
|
|
8
8
|
const h = c`arcgis-placement{display:flex;pointer-events:auto;box-shadow:none}.arcgis-placement__container{display:block}`;
|
|
9
9
|
class a extends r {
|
|
10
10
|
//#endregion
|
|
@@ -29,7 +29,7 @@ class a extends r {
|
|
|
29
29
|
super.connectedCallback(), this.el.view && this._startObserving();
|
|
30
30
|
}
|
|
31
31
|
willUpdate(e) {
|
|
32
|
-
e.has("referenceElement") && i(this, this.referenceElement), e.has("position") && this.el.childElem && this.position !== void 0 && this.el.view?.ui
|
|
32
|
+
e.has("referenceElement") && i(this, this.referenceElement), e.has("position") && this.el.childElem && this.position !== void 0 && this.el.view?.ui?.move(this.el.childElem, this.position);
|
|
33
33
|
}
|
|
34
34
|
loaded() {
|
|
35
35
|
s(this), l(this);
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
|
-
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
4
3
|
import { Use } from '@arcgis/components-controllers';
|
|
5
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as Print } from '@arcgis/core/widgets/Print.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const usePrintWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
9
10
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
10
11
|
el: HTMLElement;
|
|
11
12
|
autoDestroyDisabled?: boolean;
|
|
12
13
|
destroy?: () => Promise<void>;
|
|
13
|
-
} & Pick<
|
|
14
|
+
} & Pick<Print, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: unknown;
|
|
16
17
|
viewModel?: __esri.PrintViewModel | undefined;
|
|
@@ -31,8 +32,8 @@ declare const usePrintWidget: (component: import('@arcgis/components-controllers
|
|
|
31
32
|
autoDestroyDisabled: boolean;
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props: __esri.PrintProperties): __esri.PrintProperties | Promise<__esri.PrintProperties
|
|
35
|
-
} | undefined) =>
|
|
35
|
+
editConstructorProperties(props: __esri.PrintProperties | undefined): __esri.PrintProperties | Promise<__esri.PrintProperties | undefined> | undefined;
|
|
36
|
+
} | undefined) => Print;
|
|
36
37
|
/** [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) connects your application with a [printing service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed.
|
|
37
38
|
*/
|
|
38
39
|
export declare class ArcgisPrint extends LitElement {
|
|
@@ -60,11 +61,11 @@ export declare class ArcgisPrint extends LitElement {
|
|
|
60
61
|
label: string;
|
|
61
62
|
portal: __esri.Portal;
|
|
62
63
|
position: __esri.UIPosition;
|
|
63
|
-
printServiceUrl: string;
|
|
64
|
+
printServiceUrl: string | nullish;
|
|
64
65
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
65
66
|
showPrintAreaEnabled: boolean;
|
|
66
67
|
readonly state: "ready" | "disabled" | "error" | "initializing";
|
|
67
|
-
templateCustomTextElements: HashMap<HashMap<string>[]>;
|
|
68
|
+
templateCustomTextElements: nullish | HashMap<HashMap<string>[]>;
|
|
68
69
|
templateOptions: __esri.TemplateOptions;
|
|
69
70
|
/** Permanently destroy the component */
|
|
70
71
|
destroy(): Promise<void>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { c as i } from "../../chunks/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import { usePropertyChange as r } from "@arcgis/components-controllers";
|
|
4
|
-
import { m as o } from "../../chunks/useWidget.js";
|
|
5
|
-
import { LitElement as a, createEvent as l, noShadowRoot as n } from "@arcgis/lumina";
|
|
2
|
+
import { usePropertyChange as s } from "@arcgis/components-controllers";
|
|
6
3
|
import { reEmitEvent as e } from "@arcgis/components-controllers/accessor";
|
|
4
|
+
import r from "@arcgis/core/widgets/Print.js";
|
|
5
|
+
import { LitElement as o, createEvent as a, noShadowRoot as l } from "@arcgis/lumina";
|
|
6
|
+
import { m as n } from "../../chunks/useWidget.js";
|
|
7
7
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
v4.32.0-next.
|
|
11
|
-
const d = h`arcgis-print{display:block}`, m =
|
|
12
|
-
class p extends
|
|
10
|
+
v4.32.0-next.87 */
|
|
11
|
+
const d = h`arcgis-print{display:block}`, m = n(r);
|
|
12
|
+
class p extends o {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, this.allowedFormats = this.widget.allowedFormats, this.allowedLayouts = this.widget.allowedLayouts, this.autoDestroyDisabled = !1, this.exportedLinks = this.widget.exportedLinks, this.extraParameters = this.widget.extraParameters, this.headingLevel = this.widget.headingLevel, this.icon = this.widget.icon, this.includeDefaultTemplatesDisabled = this.widget.includeDefaultTemplates, this.label = this.widget.label, this.portal = this.widget.portal, this.position = "bottom-left", this.printServiceUrl = this.widget.printServiceUrl, this.showPrintAreaEnabled = this.widget.showPrintAreaEnabled, this.state = this.viewModel.state, this.templateCustomTextElements = this.widget.templateCustomTextElements, this.templateOptions = this.widget.templateOptions, this.arcgisComplete = e(() => this.widget, "complete"), this.arcgisPropertyChange =
|
|
14
|
+
super(...arguments), this.widget = m(this), this.viewModel = this.widget.viewModel, this.allowedFormats = this.widget.allowedFormats, this.allowedLayouts = this.widget.allowedLayouts, this.autoDestroyDisabled = !1, this.exportedLinks = this.widget.exportedLinks, this.extraParameters = this.widget.extraParameters, this.headingLevel = this.widget.headingLevel, this.icon = this.widget.icon, this.includeDefaultTemplatesDisabled = this.widget.includeDefaultTemplates, this.label = this.widget.label, this.portal = this.widget.portal, this.position = "bottom-left", this.printServiceUrl = this.widget.printServiceUrl, this.showPrintAreaEnabled = this.widget.showPrintAreaEnabled, this.state = this.viewModel.state, this.templateCustomTextElements = this.widget.templateCustomTextElements, this.templateOptions = this.widget.templateOptions, this.arcgisComplete = e(() => this.widget, "complete"), this.arcgisPropertyChange = s()("state"), this.arcgisReady = a(), this.arcgisSubmit = e(() => this.widget, "submit");
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
17
|
this.properties = { allowedFormats: [1, { converter: (t) => typeof t == "string" && t !== "all" ? t.split(",") : t }], allowedLayouts: [1, { converter: (t) => typeof t == "string" && t !== "all" ? t.split(",") : t }], autoDestroyDisabled: 5, exportedLinks: 0, extraParameters: 1, headingLevel: 9, icon: 1, includeDefaultTemplatesDisabled: 5, label: 1, portal: 0, position: 1, printServiceUrl: 1, referenceElement: 1, showPrintAreaEnabled: 7, state: 3, templateCustomTextElements: 0, templateOptions: 0 };
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
|
-
this.shadowRootOptions =
|
|
20
|
+
this.shadowRootOptions = l;
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
23
|
this.styles = d;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
|
-
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
4
|
-
import { Nil } from '@arcgis/components-utils';
|
|
5
3
|
import { Use } from '@arcgis/components-controllers';
|
|
6
|
-
import {
|
|
4
|
+
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as ScaleBarViewModel } from '@arcgis/core/widgets/ScaleBar/ScaleBarViewModel.js';
|
|
7
6
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
8
|
+
import { MeasurementSystem } from '../types';
|
|
8
9
|
|
|
9
10
|
type ScaleBarStyle = "line" | "ruler";
|
|
10
11
|
type ScaleBarUnit = MeasurementSystem | "dual";
|
|
@@ -13,7 +14,7 @@ declare const useScaleBarViewModel: (component: import('@arcgis/components-contr
|
|
|
13
14
|
el: HTMLElement;
|
|
14
15
|
autoDestroyDisabled?: boolean;
|
|
15
16
|
destroy?: () => Promise<void>;
|
|
16
|
-
} & Pick<
|
|
17
|
+
} & Pick<ScaleBarViewModel, never> & {
|
|
17
18
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
18
19
|
state?: "ready" | "disabled" | undefined;
|
|
19
20
|
icon: Nil | string;
|
|
@@ -34,7 +35,7 @@ declare const useScaleBarViewModel: (component: import('@arcgis/components-contr
|
|
|
34
35
|
destroy: () => Promise<void>;
|
|
35
36
|
}, options?: {
|
|
36
37
|
editConstructorProperties(props: unknown): unknown;
|
|
37
|
-
} | undefined) =>
|
|
38
|
+
} | undefined) => ScaleBarViewModel;
|
|
38
39
|
/** The [ScaleBar](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html) displays a scale bar on the map or in a specified HTML node.
|
|
39
40
|
*/
|
|
40
41
|
export declare class ArcgisScaleBar extends LitElement {
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as g } from "lit-html/directives/ref.js";
|
|
3
3
|
import { html as u } from "lit-html";
|
|
4
|
-
import { g as f } from "../../chunks/globalCss.js";
|
|
5
|
-
import { u as y, m as S } from "../../chunks/useViewModel.js";
|
|
6
4
|
import { classes as d } from "@arcgis/components-utils";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { getDefaultUnitForView as w } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
6
|
+
import { watch as y } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
|
+
import { formatNumber as S } from "@arcgis/core/intl.js";
|
|
8
|
+
import L from "@arcgis/core/widgets/ScaleBar/ScaleBarViewModel.js";
|
|
9
|
+
import { LitElement as B, createEvent as M, noShadowRoot as R, safeClassMap as a, safeStyleMap as f } from "@arcgis/lumina";
|
|
10
|
+
import { u as x, m as D } from "../../chunks/useViewModel.js";
|
|
11
|
+
import { g as v } from "../../chunks/globalCss.js";
|
|
10
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
13
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
v4.32.0-next.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
labelContainer: `${i}__label-container`,
|
|
16
|
-
rulerLabelContainer: `${i}__label-container--ruler`,
|
|
17
|
-
lineLabelContainer: `${i}__label-container--line`,
|
|
18
|
-
topLabelContainer: `${i}__label-container--top`,
|
|
19
|
-
bottomLabelContainer: `${i}__label-container--bottom`,
|
|
20
|
-
label: `${i}__label`,
|
|
21
|
-
line: `${i}__line`,
|
|
22
|
-
topLine: `${i}__line--top`,
|
|
23
|
-
bottomLine: `${i}__line--bottom`,
|
|
24
|
-
ruler: `${i}__ruler`,
|
|
25
|
-
rulerBlock: `${i}__ruler-block`,
|
|
26
|
-
barContainer: `${i}__bar-container`,
|
|
27
|
-
rulerBarContainer: `${i}__bar-container--ruler`,
|
|
28
|
-
lineBarContainer: `${i}__bar-container--line`
|
|
29
|
-
};
|
|
30
|
-
function $(v = 0, e = 0) {
|
|
31
|
-
return { x: v, y: e };
|
|
14
|
+
v4.32.0-next.87 */
|
|
15
|
+
function $(_ = 0, e = 0) {
|
|
16
|
+
return { x: _, y: e };
|
|
32
17
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
18
|
+
const r = "esri-scale-bar", t = {
|
|
19
|
+
base: r,
|
|
20
|
+
labelContainer: `${r}__label-container`,
|
|
21
|
+
rulerLabelContainer: `${r}__label-container--ruler`,
|
|
22
|
+
lineLabelContainer: `${r}__label-container--line`,
|
|
23
|
+
topLabelContainer: `${r}__label-container--top`,
|
|
24
|
+
bottomLabelContainer: `${r}__label-container--bottom`,
|
|
25
|
+
label: `${r}__label`,
|
|
26
|
+
line: `${r}__line`,
|
|
27
|
+
topLine: `${r}__line--top`,
|
|
28
|
+
bottomLine: `${r}__line--bottom`,
|
|
29
|
+
ruler: `${r}__ruler`,
|
|
30
|
+
rulerBlock: `${r}__ruler-block`,
|
|
31
|
+
barContainer: `${r}__bar-container`,
|
|
32
|
+
rulerBarContainer: `${r}__bar-container--ruler`,
|
|
33
|
+
lineBarContainer: `${r}__bar-container--line`
|
|
34
|
+
}, U = D(L);
|
|
35
|
+
class k extends B {
|
|
35
36
|
constructor() {
|
|
36
|
-
super(...arguments), this.
|
|
37
|
+
super(...arguments), this._defaultUnit = "metric", this.messages = x(), this._scaleComputedFrom = $(), this.viewModel = U(this), this.autoDestroyDisabled = !1, this.barStyle = "line", this.icon = "actual-size", this.position = "top-left", this.arcgisReady = M();
|
|
37
38
|
}
|
|
38
39
|
static {
|
|
39
40
|
this.properties = { autoDestroyDisabled: 5, barStyle: 1, icon: 3, label: 1, messageOverrides: 0, position: 3, referenceElement: 1, unit: 1 };
|
|
40
41
|
}
|
|
41
42
|
static {
|
|
42
|
-
this.shadowRootOptions =
|
|
43
|
+
this.shadowRootOptions = R;
|
|
43
44
|
}
|
|
44
45
|
/**
|
|
45
46
|
* Units to use for the scale bar.
|
|
@@ -65,11 +66,17 @@ class O extends R {
|
|
|
65
66
|
this._handleRootCreateOrUpdate();
|
|
66
67
|
}
|
|
67
68
|
loaded() {
|
|
68
|
-
this.
|
|
69
|
+
this.manager.onLifecycle(() => y(() => {
|
|
69
70
|
const e = this.viewModel.view;
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
return {
|
|
72
|
+
defaultUnit: e ? w(e) : void 0,
|
|
73
|
+
stationary: e?.stationary,
|
|
74
|
+
center: e?.center,
|
|
75
|
+
scale: e?.scale,
|
|
76
|
+
zoom: e?.zoom
|
|
77
|
+
};
|
|
78
|
+
}, ({ defaultUnit: e, stationary: i }) => {
|
|
79
|
+
this._defaultUnit = e ?? "metric", i && this.requestUpdate();
|
|
73
80
|
}));
|
|
74
81
|
}
|
|
75
82
|
// #endregion
|
|
@@ -80,52 +87,52 @@ class O extends R {
|
|
|
80
87
|
_handleRootCreateOrUpdate() {
|
|
81
88
|
if (!this.viewModel)
|
|
82
89
|
return;
|
|
83
|
-
const e = this._scaleComputedFrom,
|
|
84
|
-
(
|
|
90
|
+
const e = this._scaleComputedFrom, i = this.el.getBoundingClientRect(), o = i.left + window.pageXOffset, l = i.top + window.pageYOffset, n = $(o, l);
|
|
91
|
+
(n.x !== e.x || n.y !== e.y) && (this._scaleComputedFrom = n);
|
|
85
92
|
}
|
|
86
|
-
_formatDistance(e,
|
|
87
|
-
return
|
|
93
|
+
_formatDistance(e, i) {
|
|
94
|
+
return S(e, {
|
|
88
95
|
style: "unit",
|
|
89
|
-
unit:
|
|
96
|
+
unit: i,
|
|
90
97
|
unitDisplay: "short"
|
|
91
98
|
});
|
|
92
99
|
}
|
|
93
100
|
// #endregion
|
|
94
101
|
// #region Rendering
|
|
95
102
|
render() {
|
|
96
|
-
const e = this.viewModel.state === "disabled",
|
|
97
|
-
[
|
|
103
|
+
const e = this.viewModel.state === "disabled", i = {
|
|
104
|
+
[v.disabled]: e
|
|
98
105
|
};
|
|
99
|
-
let
|
|
106
|
+
let o, l;
|
|
100
107
|
if (!e) {
|
|
101
|
-
const { unit:
|
|
102
|
-
if (p) {
|
|
103
|
-
const n = this.viewModel.getScaleBarProperties(m, "imperial");
|
|
104
|
-
n && (o = h === "ruler" ? this._renderRuler(n) : this._renderLine(n, "bottom"));
|
|
105
|
-
}
|
|
108
|
+
const { unit: n, barStyle: c } = this, b = n === "imperial" || n === "dual", p = n === "metric" || n === "dual", m = 100, h = n === "dual" ? "line" : c;
|
|
106
109
|
if (b) {
|
|
107
|
-
const
|
|
108
|
-
|
|
110
|
+
const s = this.viewModel.getScaleBarProperties(m, "imperial");
|
|
111
|
+
s && (l = h === "ruler" ? this._renderRuler(s) : this._renderLine(s, "bottom"));
|
|
112
|
+
}
|
|
113
|
+
if (p) {
|
|
114
|
+
const s = this.viewModel.getScaleBarProperties(m, "metric");
|
|
115
|
+
s && (o = h === "ruler" ? this._renderRuler(s) : this._renderLine(s, "top"));
|
|
109
116
|
}
|
|
110
117
|
}
|
|
111
|
-
return u`<div class=${
|
|
118
|
+
return u`<div class=${a(d(t.base, v.widget, i))} ${g(this._handleContainerRef)}>${o}${l}</div>`;
|
|
112
119
|
}
|
|
113
120
|
_renderRuler(e) {
|
|
114
|
-
const { length:
|
|
115
|
-
return u`<div class=${
|
|
121
|
+
const { length: i, unit: o, value: l } = e, n = Math.round(i), c = this._formatDistance(l, o);
|
|
122
|
+
return u`<div class=${a(d(t.barContainer, t.rulerBarContainer))}><div class=${a(t.ruler)} style=${f({ width: `${n}px` })}><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div></div><div class=${a(d(t.labelContainer, t.rulerLabelContainer))}><div class=${a(t.label)}>0</div><div class=${a(t.label)}>${c}</div></div></div>`;
|
|
116
123
|
}
|
|
117
|
-
_renderLine(e,
|
|
118
|
-
const { length:
|
|
119
|
-
[t.topLabelContainer]:
|
|
120
|
-
[t.bottomLabelContainer]:
|
|
121
|
-
}, m = u`<div class=${
|
|
122
|
-
[t.topLine]:
|
|
123
|
-
[t.bottomLine]:
|
|
124
|
-
},
|
|
125
|
-
return u`<div class=${
|
|
124
|
+
_renderLine(e, i) {
|
|
125
|
+
const { length: o, unit: l, value: n } = e, c = Math.round(o), b = this._formatDistance(n, l), p = {
|
|
126
|
+
[t.topLabelContainer]: i === "top",
|
|
127
|
+
[t.bottomLabelContainer]: i === "bottom"
|
|
128
|
+
}, m = u`<div class=${a(d(t.labelContainer, t.lineLabelContainer, p))}><div class=${a(t.label)}>${b}</div></div>`, h = {
|
|
129
|
+
[t.topLine]: i === "top",
|
|
130
|
+
[t.bottomLine]: i === "bottom"
|
|
131
|
+
}, s = u`<div class=${a(d(t.line, h))} style=${f({ width: `${c}px` })}></div>`;
|
|
132
|
+
return u`<div class=${a(d(t.barContainer, t.lineBarContainer))}>${[s, m]}</div>`;
|
|
126
133
|
}
|
|
127
134
|
}
|
|
128
|
-
|
|
135
|
+
C("arcgis-scale-bar", k);
|
|
129
136
|
export {
|
|
130
|
-
|
|
137
|
+
k as ArcgisScaleBar
|
|
131
138
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
|
-
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
4
3
|
import { Use } from '@arcgis/components-controllers';
|
|
5
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as ScaleRangeSlider } from '@arcgis/core/widgets/ScaleRangeSlider.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useScaleRangeSliderWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
9
10
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
10
11
|
el: HTMLElement;
|
|
11
12
|
autoDestroyDisabled?: boolean;
|
|
12
13
|
destroy?: () => Promise<void>;
|
|
13
|
-
} & Pick<
|
|
14
|
+
} & Pick<ScaleRangeSlider, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: unknown;
|
|
16
17
|
viewModel?: __esri.ScaleRangeSliderViewModel | undefined;
|
|
@@ -31,8 +32,8 @@ declare const useScaleRangeSliderWidget: (component: import('@arcgis/components-
|
|
|
31
32
|
autoDestroyDisabled: boolean;
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props: __esri.ScaleRangeSliderProperties): __esri.ScaleRangeSliderProperties | Promise<__esri.ScaleRangeSliderProperties
|
|
35
|
-
} | undefined) =>
|
|
35
|
+
editConstructorProperties(props: __esri.ScaleRangeSliderProperties | undefined): __esri.ScaleRangeSliderProperties | Promise<__esri.ScaleRangeSliderProperties | undefined> | undefined;
|
|
36
|
+
} | undefined) => ScaleRangeSlider;
|
|
36
37
|
/** The [ScaleRangeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html) allows the user to set a minimum and maximum scale based on named scale ranges.
|
|
37
38
|
*/
|
|
38
39
|
export declare class ArcgisScaleRangeSlider extends LitElement {
|
|
@@ -56,7 +57,7 @@ export declare class ArcgisScaleRangeSlider extends LitElement {
|
|
|
56
57
|
icon: string;
|
|
57
58
|
/** The component's default label. */
|
|
58
59
|
label: string;
|
|
59
|
-
layer: __esri.Layer | __esri.Sublayer;
|
|
60
|
+
layer: nullish | __esri.Layer | __esri.Sublayer;
|
|
60
61
|
maxScale: number;
|
|
61
62
|
maxScaleLimit: number;
|
|
62
63
|
minScale: number;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as e } from "../../chunks/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { css as
|
|
2
|
+
import { usePropertyChange as i } from "@arcgis/components-controllers";
|
|
3
|
+
import t from "@arcgis/core/widgets/ScaleRangeSlider.js";
|
|
4
|
+
import { LitElement as s, createEvent as a, noShadowRoot as l } from "@arcgis/lumina";
|
|
5
|
+
import { m as o } from "../../chunks/useWidget.js";
|
|
6
|
+
import { css as n } 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.32/esri/copyright.txt for details.
|
|
9
|
-
v4.32.0-next.
|
|
10
|
-
const c =
|
|
11
|
-
class
|
|
9
|
+
v4.32.0-next.87 */
|
|
10
|
+
const c = n`arcgis-scale-range-slider{display:block}`, r = o(t);
|
|
11
|
+
class h extends s {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.widget = r(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.disabled = this.widget.disabled, this.hidePreview = this.widget.visibleElements.preview, this.hideScaleMenusMaxScaleMenu = this.widget.visibleElements.scaleMenus.maxScaleMenu, this.hideScaleMenusMinScaleMenu = this.widget.visibleElements.scaleMenus.minScaleMenu, this.icon = this.widget.icon, this.label = this.widget.label, this.layer = this.widget.layer, this.maxScale = this.widget.maxScale, this.maxScaleLimit = this.widget.maxScaleLimit, this.minScale = this.widget.minScale, this.minScaleLimit = this.widget.minScaleLimit, this.mode = this.widget.mode, this.position = "bottom-left", this.region = this.widget.region, this.state = this.viewModel.state, this.arcgisPropertyChange =
|
|
13
|
+
super(...arguments), this.widget = r(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.disabled = this.widget.disabled, this.hidePreview = this.widget.visibleElements.preview, this.hideScaleMenusMaxScaleMenu = this.widget.visibleElements.scaleMenus.maxScaleMenu, this.hideScaleMenusMinScaleMenu = this.widget.visibleElements.scaleMenus.minScaleMenu, this.icon = this.widget.icon, this.label = this.widget.label, this.layer = this.widget.layer, this.maxScale = this.widget.maxScale, this.maxScaleLimit = this.widget.maxScaleLimit, this.minScale = this.widget.minScale, this.minScaleLimit = this.widget.minScaleLimit, this.mode = this.widget.mode, this.position = "bottom-left", this.region = this.widget.region, this.state = this.viewModel.state, this.arcgisPropertyChange = i()("state", "minScale", "maxScale"), this.arcgisReady = a();
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.properties = { autoDestroyDisabled: 5, disabled: 7, hidePreview: 5, hideScaleMenusMaxScaleMenu: 5, hideScaleMenusMinScaleMenu: 5, icon: 1, label: 1, layer: 0, maxScale: 9, maxScaleLimit: 9, minScale: 9, minScaleLimit: 9, mode: 1, position: 1, referenceElement: 1, region: 0, state: 3 };
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.shadowRootOptions =
|
|
19
|
+
this.shadowRootOptions = l;
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.styles = c;
|
|
@@ -28,7 +28,7 @@ class d extends a {
|
|
|
28
28
|
await this.manager.destroy();
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
e("arcgis-scale-range-slider",
|
|
31
|
+
e("arcgis-scale-range-slider", h);
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
h as ArcgisScaleRangeSlider
|
|
34
34
|
};
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
3
|
import { Use } from '@arcgis/components-controllers';
|
|
4
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as SceneView } from '@arcgis/core/views/SceneView.js';
|
|
6
|
+
import { default as WebScene } from '@arcgis/core/WebScene.js';
|
|
5
7
|
import { PublicLitElement as LitElement, ToElement, TargetedEvent } from '@arcgis/lumina';
|
|
6
8
|
|
|
7
9
|
declare const useWebScene: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
@@ -9,35 +11,35 @@ declare const useWebScene: (component: import('@arcgis/components-controllers').
|
|
|
9
11
|
el: HTMLElement;
|
|
10
12
|
autoDestroyDisabled?: boolean;
|
|
11
13
|
destroy?: () => Promise<void>;
|
|
12
|
-
} & Pick<
|
|
14
|
+
} & Pick<WebScene, never> & {
|
|
13
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
14
16
|
autoDestroyDisabled: boolean;
|
|
15
17
|
destroy: () => Promise<void>;
|
|
16
18
|
}, options?: {
|
|
17
|
-
editConstructorProperties(props: __esri.WebSceneProperties): __esri.WebSceneProperties | Promise<__esri.WebSceneProperties
|
|
18
|
-
} | undefined) =>
|
|
19
|
+
editConstructorProperties(props: __esri.WebSceneProperties | undefined): __esri.WebSceneProperties | Promise<__esri.WebSceneProperties | undefined> | undefined;
|
|
20
|
+
} | undefined) => WebScene;
|
|
19
21
|
declare const useSceneView: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
20
22
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
21
23
|
el: HTMLElement;
|
|
22
24
|
autoDestroyDisabled?: boolean;
|
|
23
25
|
destroy?: () => Promise<void>;
|
|
24
|
-
} & Pick<
|
|
26
|
+
} & Pick<SceneView, never> & {
|
|
25
27
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
26
28
|
autoDestroyDisabled: boolean;
|
|
27
29
|
destroy: () => Promise<void>;
|
|
28
30
|
}, options?: {
|
|
29
|
-
editConstructorProperties(props: __esri.SceneViewProperties): __esri.SceneViewProperties | Promise<__esri.SceneViewProperties
|
|
30
|
-
} | undefined) =>
|
|
31
|
+
editConstructorProperties(props: __esri.SceneViewProperties | undefined): __esri.SceneViewProperties | Promise<__esri.SceneViewProperties | undefined> | undefined;
|
|
32
|
+
} | undefined) => SceneView;
|
|
31
33
|
/** The web [scene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html) is the core element of 3D mapping across ArcGIS. It defines the content, style, environment, and slides of your scene and it can be shared across multiple ArcGIS web and desktop applications.
|
|
32
34
|
*/
|
|
33
35
|
export declare class ArcgisScene extends LitElement {
|
|
34
36
|
/** Internal view of the component. */
|
|
35
|
-
readonly view:
|
|
37
|
+
readonly view: SceneView;
|
|
36
38
|
/**
|
|
37
39
|
* Collection containing a flat list of all the created LayerViews
|
|
38
40
|
* related to the basemap, operational layers, and group layers in this view.
|
|
39
41
|
*/
|
|
40
|
-
allLayerViews: __esri.Collection<__esri.LayerView>;
|
|
42
|
+
readonly allLayerViews: __esri.Collection<__esri.LayerView>;
|
|
41
43
|
alphaCompositingEnabled: boolean;
|
|
42
44
|
analyses: __esri.Collection<__esri.DimensionAnalysis | __esri.DirectLineMeasurementAnalysis | __esri.AreaMeasurementAnalysis | __esri.SliceAnalysis | __esri.LineOfSightAnalysis | __esri.ViewshedAnalysis>;
|
|
43
45
|
/**
|
|
@@ -53,7 +55,7 @@ export declare class ArcgisScene extends LitElement {
|
|
|
53
55
|
* geographic context to the MapView or SceneView and the other operational layers
|
|
54
56
|
* in the map.
|
|
55
57
|
*/
|
|
56
|
-
basemap: __esri.Basemap | string;
|
|
58
|
+
basemap: __esri.Basemap | nullish | string;
|
|
57
59
|
/** Represents the view for a single basemap after it has been added to the map. */
|
|
58
60
|
basemapView: __esri.BasemapView;
|
|
59
61
|
get camera(): __esri.Camera;
|
|
@@ -105,7 +107,7 @@ export declare class ArcgisScene extends LitElement {
|
|
|
105
107
|
*/
|
|
106
108
|
get center(): __esri.SceneView["center"];
|
|
107
109
|
set center(newValue: __esri.SceneView["center"] | Nil | number[] | string);
|
|
108
|
-
clippingArea: __esri.Extent;
|
|
110
|
+
clippingArea: __esri.Extent | nullish;
|
|
109
111
|
/** Specifies constraints to scale, zoom, and rotation that may be applied to the MapView. */
|
|
110
112
|
constraints: __esri.SceneViewConstraints;
|
|
111
113
|
/**
|
|
@@ -123,7 +125,7 @@ export declare class ArcgisScene extends LitElement {
|
|
|
123
125
|
get extent(): __esri.SceneView["extent"];
|
|
124
126
|
set extent(newValue: __esri.SceneView["extent"]);
|
|
125
127
|
/** A rejected view indicates a fatal error making it unable to display. */
|
|
126
|
-
fatalError: __esri.Error;
|
|
128
|
+
fatalError: nullish | __esri.Error;
|
|
127
129
|
/**
|
|
128
130
|
* Applies a display filter on the view for a specific set of floor levels.
|
|
129
131
|
* It can filter the map display on floor-aware layers by zero or more level IDs.
|
|
@@ -151,7 +153,7 @@ export declare class ArcgisScene extends LitElement {
|
|
|
151
153
|
* The highlights property is a collection of HighlightGroup objects that
|
|
152
154
|
* allow you to visually emphasize specific features on the map.
|
|
153
155
|
*/
|
|
154
|
-
highlights: __esri.Collection<any>;
|
|
156
|
+
readonly highlights: __esri.Collection<any>;
|
|
155
157
|
/**
|
|
156
158
|
* @deprecated
|
|
157
159
|
*
|
|
@@ -189,7 +191,7 @@ export declare class ArcgisScene extends LitElement {
|
|
|
189
191
|
* details for layers about memory consumption and number of features.
|
|
190
192
|
*/
|
|
191
193
|
get performanceInfo(): __esri.SceneViewPerformanceInfo;
|
|
192
|
-
popup: __esri.Popup;
|
|
194
|
+
popup: nullish | __esri.Popup;
|
|
193
195
|
/** Controls whether the popup opens when users click on the view. */
|
|
194
196
|
popupDisabled: boolean;
|
|
195
197
|
qualityProfile: "medium" | "low" | "high";
|
|
@@ -224,14 +226,14 @@ export declare class ArcgisScene extends LitElement {
|
|
|
224
226
|
* This property specifies the base colors used by some widgets
|
|
225
227
|
* and components to render graphics and labels.
|
|
226
228
|
*/
|
|
227
|
-
theme: __esri.Theme;
|
|
229
|
+
theme: nullish | __esri.Theme;
|
|
228
230
|
/**
|
|
229
231
|
* The view's time extent. Time-aware layers display their temporal data that falls within
|
|
230
232
|
* the view's time extent. Setting the view's time extent is similar to setting the spatial
|
|
231
233
|
* extent because once the time extent is set, the
|
|
232
234
|
* view updates automatically to conform to the change.
|
|
233
235
|
*/
|
|
234
|
-
timeExtent: __esri.TimeExtent;
|
|
236
|
+
timeExtent: nullish | __esri.TimeExtent;
|
|
235
237
|
/**
|
|
236
238
|
* Indicates whether the view is being updated by additional data requests to the network,
|
|
237
239
|
* or by processing received data.
|
|
@@ -277,7 +279,7 @@ export declare class ArcgisScene extends LitElement {
|
|
|
277
279
|
openPopup(options?: __esri.PopupViewOpenPopupOptions): Promise<void>;
|
|
278
280
|
/** Create a screenshot of the current view. */
|
|
279
281
|
takeScreenshot(options?: __esri.SceneViewTakeScreenshotOptions): Promise<__esri.Screenshot>;
|
|
280
|
-
toMap(screenPoint: __esri.SceneViewScreenPoint | MouseEvent, options?: __esri.SceneViewToMapOptions): __esri.Point;
|
|
282
|
+
toMap(screenPoint: __esri.SceneViewScreenPoint | MouseEvent, options?: __esri.SceneViewToMapOptions): __esri.Point | nullish;
|
|
281
283
|
toScreen(point: __esri.Point): __esri.SceneViewScreenPoint;
|
|
282
284
|
/** Call this method to clear any fatal errors resulting from a lost WebGL context. */
|
|
283
285
|
tryFatalErrorRecovery(): Promise<void>;
|