@arcgis/map-components 6.0.0-next.14 → 6.0.0-next.16
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/33B22YZ5.js +2 -0
- package/dist/cdn/{NWCS3WJE.js → 35YLXOQ5.js} +1 -1
- package/dist/cdn/4XEZYOW7.js +2 -0
- package/dist/cdn/{OL5Z5MUQ.js → 54252KWO.js} +1 -1
- package/dist/cdn/{IZ3VMFW6.js → 5VXEMMLV.js} +1 -1
- package/dist/cdn/{UUBJR2VN.js → AI3ETXGZ.js} +1 -1
- package/dist/cdn/{OS3TKP63.js → AQ4GVWNJ.js} +1 -1
- package/dist/cdn/AWB7XOHF.js +2 -0
- package/dist/cdn/BYYCKI2P.js +2 -0
- package/dist/cdn/C2YP473B.js +2 -0
- package/dist/cdn/DUKK2PHD.js +2 -0
- package/dist/cdn/{I2VQOWJL.js → ECYWLMDD.js} +1 -1
- package/dist/cdn/FFVPO4JB.js +2 -0
- package/dist/cdn/{OS736MCE.js → FUJYJKDU.js} +1 -1
- package/dist/cdn/{SWWJXGPV.js → GFYLYX2V.js} +1 -1
- package/dist/cdn/GMEXAEOI.js +2 -0
- package/dist/cdn/H7QBBTTP.js +2 -0
- package/dist/cdn/{CDCI4EQR.js → HZDWPWBH.js} +1 -1
- package/dist/cdn/JB6WQEFJ.js +2 -0
- package/dist/cdn/{KJNU4Q25.js → JVC5XNYJ.js} +1 -1
- package/dist/cdn/LYYBCY4N.js +2 -0
- package/dist/cdn/{TMQVC4YN.js → NMGC3KRM.js} +1 -1
- package/dist/cdn/NU75HQA2.js +2 -0
- package/dist/cdn/{B2UZB5MB.js → NUZBBPNE.js} +2 -2
- package/dist/cdn/{JC24VBLE.js → ODSZ7JZM.js} +1 -1
- package/dist/cdn/{VWEJ2XSC.js → P3AEIHWE.js} +1 -1
- package/dist/cdn/QCYQNVPL.js +2 -0
- package/dist/cdn/{ARHQMHUP.js → SAIBFBPE.js} +1 -1
- package/dist/cdn/U6NHJKIM.js +2 -0
- package/dist/cdn/VYM3TR3Q.js +2 -0
- package/dist/cdn/WC2N2XG6.js +2 -0
- package/dist/cdn/ZDLHDQCX.js +2 -0
- package/dist/cdn/ZIQRARXE.js +2 -0
- package/dist/cdn/{Y56CR5OU.js → ZS5IADYN.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/loader-utils.js +41 -0
- package/dist/chunks/resources.js +10 -4
- package/dist/chunks/slots.js +3 -3
- package/dist/chunks/useArcgisViewReadyError.js +180 -128
- package/dist/components/arcgis-editor/customElement.d.ts +9 -17
- package/dist/components/arcgis-editor/customElement.js +18 -16
- package/dist/components/arcgis-feature-next/customElement.js +21 -14
- package/dist/components/arcgis-feature-table/customElement.d.ts +58 -39
- package/dist/components/arcgis-features-next/customElement.js +137 -116
- package/dist/components/arcgis-fullscreen/customElement.js +4 -4
- package/dist/components/arcgis-legend/customElement.d.ts +2 -0
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -6
- package/dist/components/arcgis-link-chart/customElement.js +24 -24
- package/dist/components/arcgis-map/customElement.js +16 -16
- package/dist/components/arcgis-scene/customElement.js +21 -21
- package/dist/components/arcgis-sketch/customElement.d.ts +1 -3
- package/dist/components/arcgis-sketch/customElement.js +146 -178
- package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -4
- package/dist/components/arcgis-time-bar/customElement.js +108 -105
- package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
- package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
- package/dist/components/arcgis-time-bar-slider/customElement.js +27 -33
- package/dist/components/arcgis-track/customElement.d.ts +2 -2
- package/dist/components/arcgis-track/types.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +4 -3
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +61 -68
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +26 -3
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +53 -50
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +7 -7
- package/dist/cdn/6RE5RWYP.js +0 -2
- package/dist/cdn/AL3PLZEE.js +0 -2
- package/dist/cdn/EYM377YG.js +0 -2
- package/dist/cdn/FINGRYZY.js +0 -2
- package/dist/cdn/GLU2HDV6.js +0 -2
- package/dist/cdn/JR3EXG25.js +0 -2
- package/dist/cdn/LISDXDCI.js +0 -2
- package/dist/cdn/LXLLMRNZ.js +0 -2
- package/dist/cdn/OVXGV76V.js +0 -2
- package/dist/cdn/PTCHEZNA.js +0 -2
- package/dist/cdn/QAZ4W6K3.js +0 -2
- package/dist/cdn/QPR3KBLU.js +0 -2
- package/dist/cdn/TI6R2CP6.js +0 -2
- package/dist/cdn/TUT6GS4A.js +0 -2
- package/dist/cdn/UOO6QY7C.js +0 -2
- package/dist/cdn/UYWJU5UG.js +0 -2
- package/dist/cdn/WADL7TT6.js +0 -2
- /package/dist/cdn/{MGDY6SA3.js → 2JLC2JV7.js} +0 -0
- /package/dist/cdn/{ITSWOLPG.js → 37Z3E4ZM.js} +0 -0
- /package/dist/cdn/{SMCQ5457.js → 53PKFG2U.js} +0 -0
- /package/dist/cdn/{YZ23NKH4.js → 5ZLCMYZU.js} +0 -0
- /package/dist/cdn/{DXD3FSIB.js → 6MRDTILE.js} +0 -0
- /package/dist/cdn/{TTGAGK6Y.js → 72FJMPJ2.js} +0 -0
- /package/dist/cdn/{CIVCCENA.js → 7P23WI52.js} +0 -0
- /package/dist/cdn/{DU7MQDXJ.js → 7QUHJ4F6.js} +0 -0
- /package/dist/cdn/{PLRW457V.js → 7YXE3BUX.js} +0 -0
- /package/dist/cdn/{IYTA36WK.js → AE26KT54.js} +0 -0
- /package/dist/cdn/{OY2F5AX3.js → C4EAONGF.js} +0 -0
- /package/dist/cdn/{7RG4ZQP7.js → CTVCZ2FU.js} +0 -0
- /package/dist/cdn/{DVVXBWDN.js → EIQ3BKQI.js} +0 -0
- /package/dist/cdn/{J5PYSABF.js → EULM4L53.js} +0 -0
- /package/dist/cdn/{VHCJJ5FD.js → EVCKANRW.js} +0 -0
- /package/dist/cdn/{4U7C2G4R.js → GXIGMIXV.js} +0 -0
- /package/dist/cdn/{UAVE6R7W.js → JZSRPSRH.js} +0 -0
- /package/dist/cdn/{FSKKSFCQ.js → KDO2EJA3.js} +0 -0
- /package/dist/cdn/{B42Z3IQW.js → LCTJF3NT.js} +0 -0
- /package/dist/cdn/{LH3HGDD3.js → LGPNRKDT.js} +0 -0
- /package/dist/cdn/{5QBYMSV7.js → LNZRHKHG.js} +0 -0
- /package/dist/cdn/{SN3LTQAO.js → MM4N6C4V.js} +0 -0
- /package/dist/cdn/{A7G5RNN7.js → MQL4JTYG.js} +0 -0
- /package/dist/cdn/{4JRBTFMB.js → NUCXXE6V.js} +0 -0
- /package/dist/cdn/{XELSV7WY.js → O2VAKVIY.js} +0 -0
- /package/dist/cdn/{DYUSQ3OG.js → OLEIOWZX.js} +0 -0
- /package/dist/cdn/{3E6IBNWF.js → ORS7OWLJ.js} +0 -0
- /package/dist/cdn/{IHQ2C6NE.js → P3BAHG4Q.js} +0 -0
- /package/dist/cdn/{IPLEI5W5.js → QYMZT7OC.js} +0 -0
- /package/dist/cdn/{43JS3JXR.js → RENVCO3U.js} +0 -0
- /package/dist/cdn/{CJZCG74B.js → RGECACLD.js} +0 -0
- /package/dist/cdn/{HI7Y3XH5.js → SYIOPNRF.js} +0 -0
- /package/dist/cdn/{F2JEYWUA.js → T62G5MRK.js} +0 -0
- /package/dist/cdn/{AS55LGS3.js → TS32SDVT.js} +0 -0
- /package/dist/cdn/{W5QAG2HP.js → UCHDAO3V.js} +0 -0
- /package/dist/cdn/{HSYCQNEN.js → VNY7TNRC.js} +0 -0
- /package/dist/cdn/{KVN6NUH4.js → XJIILB3W.js} +0 -0
- /package/dist/cdn/{OHIZP5N4.js → Y4D3Q4G7.js} +0 -0
- /package/dist/cdn/{EMFLPMFZ.js → Y7KMV2PI.js} +0 -0
- /package/dist/cdn/{IBTIGEEQ.js → YASANB6O.js} +0 -0
- /package/dist/cdn/{L5L2SWJG.js → YMN2Q7CW.js} +0 -0
- /package/dist/cdn/{ZHP63EHR.js → YN6VG7UO.js} +0 -0
- /package/dist/cdn/{T6V5HDYH.js → YRYYWFPY.js} +0 -0
|
@@ -24,12 +24,21 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
24
24
|
* and subsequent clicks place the [targets](https://developers.arcgis.com/javascript/latest/references/core/analysis/LineOfSightAnalysisTarget/).
|
|
25
25
|
* Both the observer and target points can be moved by dragging. Additionally, the target points can be removed with a right click.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
* [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
|
|
29
|
-
*
|
|
30
|
-
* **Known limitation**
|
|
27
|
+
* **Things to consider**
|
|
31
28
|
*
|
|
32
|
-
* Line Of Sight is only supported in a 3D [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
29
|
+
* * Line Of Sight is only supported in a 3D [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
30
|
+
* * The results of the tool vary depending on the zoom level, as changes in zoom level affect the level of detail (LOD) of the scene geometry.
|
|
31
|
+
* * Snapping, tooltips, display units, and input units are inherited from
|
|
32
|
+
* [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
|
|
33
|
+
* * Snapping is enabled by default. Holding the `CTRL` key disables it.
|
|
34
|
+
* * Layer types currently supported for snapping are:
|
|
35
|
+
* [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/),
|
|
36
|
+
* [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) (except Mesh geometries),
|
|
37
|
+
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/),
|
|
38
|
+
* [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/),
|
|
39
|
+
* [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
|
|
40
|
+
* [3D Object SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/),
|
|
41
|
+
* and [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BuildingSceneLayer/).
|
|
33
42
|
*
|
|
34
43
|
* **See also**
|
|
35
44
|
*
|
|
@@ -225,7 +234,7 @@ export abstract class ArcgisLineOfSight extends LitElement {
|
|
|
225
234
|
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-line-of-sight component will be associated with a map or scene component rather than using the `view` property.
|
|
226
235
|
*/
|
|
227
236
|
accessor view: SceneView | undefined;
|
|
228
|
-
/** Clear the current
|
|
237
|
+
/** Clear the current observer and any targets. After calling this method, the user can set a new observer and targets. */
|
|
229
238
|
clear(): Promise<void>;
|
|
230
239
|
/** After [stop()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-line-of-sight/#stop) was called, this method allows to continue the line of sight analysis and add more targets. */
|
|
231
240
|
continue(): Promise<void>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import { watch as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { LitElement as
|
|
4
|
+
import C from "@arcgis/core/views/LinkChartView.js";
|
|
5
|
+
import y from "@arcgis/core/WebLinkChart.js";
|
|
6
|
+
import { LitElement as _, createEvent as p, safeClassMap as w } from "@arcgis/lumina";
|
|
7
7
|
import { reEmitEvent as e } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
8
|
-
import { makeAccessorController as
|
|
9
|
-
import { createRef as
|
|
8
|
+
import { makeAccessorController as b, reCreateAccessor as V } from "@arcgis/lumina-toolkit/useAccessor";
|
|
9
|
+
import { createRef as A, ref as u } from "lit/directives/ref.js";
|
|
10
10
|
import { s as I } from "../../chunks/esri-main.js";
|
|
11
11
|
import { s as E } from "../../chunks/slots.js";
|
|
12
|
-
import { C as
|
|
12
|
+
import { C as v } from "../../chunks/resources.js";
|
|
13
13
|
import { b as L, c as R, p as M, i as k } from "../../chunks/component-utils.js";
|
|
14
14
|
import { U, u as D, a as x, b as Q } from "../../chunks/useArcgisViewReadyError.js";
|
|
15
15
|
import { fetchKnowledgeGraph as P } from "@arcgis/core/rest/knowledgeGraphService.js";
|
|
16
16
|
import z from "@arcgis/core/rest/knowledgeGraph/GraphQueryStreaming.js";
|
|
17
|
-
import { t as
|
|
18
|
-
import { isAbortError as
|
|
19
|
-
import { html as
|
|
17
|
+
import { t as m } from "../../chunks/async-utils.js";
|
|
18
|
+
import { isAbortError as g } from "@arcgis/core/core/promiseUtils.js";
|
|
19
|
+
import { html as d } from "lit";
|
|
20
20
|
import Z from "@arcgis/core/layers/LinkChartLayer.js";
|
|
21
|
-
const F =
|
|
22
|
-
|
|
21
|
+
const F = b(
|
|
22
|
+
y,
|
|
23
23
|
/**
|
|
24
24
|
* Since omitProps is only needed for typing, not runtime, `{} as { ... }` is
|
|
25
25
|
* a hack to remove them from the runtime code. This argument is not used at
|
|
@@ -29,10 +29,10 @@ const F = f(
|
|
|
29
29
|
* in an externalized package.
|
|
30
30
|
*/
|
|
31
31
|
{}
|
|
32
|
-
), S =
|
|
33
|
-
class G extends
|
|
32
|
+
), S = b(C, {});
|
|
33
|
+
class G extends _ {
|
|
34
34
|
constructor() {
|
|
35
|
-
super(), this._attributionMode = null, this.
|
|
35
|
+
super(), this._attributionMode = null, this._mapRef = A(), this._uiController = new U(this), this._activeLoadAbortController = null, this.arcgisLoadError = D(this), this.arcgisViewReadyError = x(this), this._map = F(this), this._baseCypherQuery = "", this._serviceUrl = "", this._propItemId = "", this.view = S(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.graphics = this.view.graphics, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.selectionManager = this.view.selectionManager, this.focusRegionVisible = this.view.focusRegionVisible, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.arcgisViewAnalysisViewCreate = e(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = e(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = e(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = p(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = e(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = e(() => this.view, "focus-region-select"), this.arcgisViewDrag = e(() => this.view, "drag"), this.arcgisViewHold = e(() => this.view, "hold"), this.arcgisViewImmediateClick = e(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = e(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = e(() => this.view, "key-down"), this.arcgisViewKeyUp = e(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = e(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = e(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = e(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = e(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = e(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = e(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = e(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = e(() => this.view, "pointer-move"), this.arcgisViewPointerUp = e(() => this.view, "pointer-up"), this.arcgisViewReadyChange = p(), this.arcgisViewVerticalTwoFingerDrag = e(() => this.view, "vertical-two-finger-drag"), Q(this), this.view.ui = {
|
|
36
36
|
components: []
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -204,9 +204,9 @@ class G extends V {
|
|
|
204
204
|
signal: a?.signal
|
|
205
205
|
});
|
|
206
206
|
try {
|
|
207
|
-
|
|
207
|
+
m(a.signal), n.add(o), this._setLinkChartAndZoom(n);
|
|
208
208
|
} catch (c) {
|
|
209
|
-
if (!
|
|
209
|
+
if (!g(c))
|
|
210
210
|
throw c;
|
|
211
211
|
}
|
|
212
212
|
});
|
|
@@ -219,9 +219,9 @@ class G extends V {
|
|
|
219
219
|
signal: a?.signal
|
|
220
220
|
}).then(async (n) => {
|
|
221
221
|
try {
|
|
222
|
-
|
|
222
|
+
m(a.signal), this._setLinkChartAndZoom(n);
|
|
223
223
|
} catch (o) {
|
|
224
|
-
if (!
|
|
224
|
+
if (!g(o))
|
|
225
225
|
throw o;
|
|
226
226
|
}
|
|
227
227
|
});
|
|
@@ -248,15 +248,15 @@ class G extends V {
|
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
renderMain() {
|
|
251
|
-
return
|
|
251
|
+
return d`<div class=${w(v.base)} ${u(this._mapRef)}></div>`;
|
|
252
252
|
}
|
|
253
253
|
render() {
|
|
254
|
-
return
|
|
254
|
+
return d`${this.renderMain()}<section class=${w(v.containerUI)} ${u(this._uiController.uiContainerRef)}>${this._uiController.render()}</section>`;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
const s = {
|
|
258
258
|
fetchKnowledgeGraph: async (r) => await P(r),
|
|
259
|
-
WebLinkChart:
|
|
259
|
+
WebLinkChart: y,
|
|
260
260
|
LinkChartLayer: Z,
|
|
261
261
|
setMap: (r, i) => {
|
|
262
262
|
r.map = i;
|
|
@@ -270,9 +270,9 @@ const s = {
|
|
|
270
270
|
setPortalItem(r, i) {
|
|
271
271
|
r.portalItem = { id: i };
|
|
272
272
|
},
|
|
273
|
-
reCreateAccessor:
|
|
273
|
+
reCreateAccessor: V
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
f("arcgis-link-chart", G);
|
|
276
276
|
export {
|
|
277
277
|
G as ArcgisLinkChart,
|
|
278
278
|
s as exportsForTests
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as r } from "lit";
|
|
4
4
|
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { LitElement as
|
|
5
|
+
import p from "@arcgis/core/views/MapView.js";
|
|
6
|
+
import l from "@arcgis/core/WebMap.js";
|
|
7
|
+
import { LitElement as u, createEvent as a, safeClassMap as o } from "@arcgis/lumina";
|
|
8
8
|
import { reEmitEvent as e } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
9
|
-
import { makeAccessorController as
|
|
10
|
-
import { createRef as
|
|
9
|
+
import { makeAccessorController as w, reCreateAccessor as v } from "@arcgis/lumina-toolkit/useAccessor";
|
|
10
|
+
import { createRef as m, ref as n } from "lit/directives/ref.js";
|
|
11
11
|
import { U as g, u as d, a as y, b as f } from "../../chunks/useArcgisViewReadyError.js";
|
|
12
12
|
import { s as b } from "../../chunks/esri-main.js";
|
|
13
13
|
import { s as V } from "../../chunks/slots.js";
|
|
14
|
-
import { C as
|
|
14
|
+
import { C as h } from "../../chunks/resources.js";
|
|
15
15
|
import { b as C, c as E, p as R, i as _ } from "../../chunks/component-utils.js";
|
|
16
16
|
import A from "@arcgis/core/core/Collection.js";
|
|
17
|
-
const M =
|
|
18
|
-
|
|
17
|
+
const M = w(
|
|
18
|
+
l,
|
|
19
19
|
/**
|
|
20
20
|
* Since omitProps is only needed for typing, not runtime, `{} as { ... }` is
|
|
21
21
|
* a hack to remove them from the runtime code. This argument is not used at
|
|
@@ -25,10 +25,10 @@ const M = c(
|
|
|
25
25
|
* in an externalized package.
|
|
26
26
|
*/
|
|
27
27
|
{}
|
|
28
|
-
), D =
|
|
29
|
-
class k extends
|
|
28
|
+
), D = w(p, {});
|
|
29
|
+
class k extends u {
|
|
30
30
|
constructor() {
|
|
31
|
-
super(), this._attributionMode = null, this.
|
|
31
|
+
super(), this._attributionMode = null, this._mapRef = m(), this._uiController = new g(this), this.extraContent = new A(), this.arcgisLoadError = d(this), this.arcgisViewReadyError = y(this), this._map = M(this), this.view = D(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.highlights = this.view.highlights, this.ipsInfo = this._map.ipsInfo, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.selectionManager = this.view.selectionManager, this.focusRegionVisible = this.view.focusRegionVisible, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.spatialReferenceLocked = this.view.spatialReferenceLocked, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.visibleArea = this.view.visibleArea, this.arcgisViewAnalysisViewCreate = e(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = e(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = e(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = a(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = e(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = e(() => this.view, "focus-region-select"), this.arcgisViewDrag = e(() => this.view, "drag"), this.arcgisViewHold = e(() => this.view, "hold"), this.arcgisViewImmediateClick = e(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = e(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = e(() => this.view, "key-down"), this.arcgisViewKeyUp = e(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = e(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = e(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = e(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = e(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = e(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = e(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = e(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = e(() => this.view, "pointer-move"), this.arcgisViewPointerUp = e(() => this.view, "pointer-up"), this.arcgisViewReadyChange = a(), this.arcgisViewVerticalTwoFingerDrag = e(() => this.view, "vertical-two-finger-drag"), f(this), this.view.ui = {
|
|
32
32
|
components: []
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -97,7 +97,7 @@ class k extends v {
|
|
|
97
97
|
return this._map.portalItem?.id;
|
|
98
98
|
}
|
|
99
99
|
set itemId(i) {
|
|
100
|
-
|
|
100
|
+
v(this._map, this), this._map.portalItem = { id: i }, this.view.map = this._map;
|
|
101
101
|
}
|
|
102
102
|
get navigating() {
|
|
103
103
|
return this.view.navigating;
|
|
@@ -191,13 +191,13 @@ class k extends v {
|
|
|
191
191
|
]);
|
|
192
192
|
}
|
|
193
193
|
renderMain() {
|
|
194
|
-
return r`<div class=${o(
|
|
194
|
+
return r`<div class=${o(h.base)} ${n(this._mapRef)}></div>`;
|
|
195
195
|
}
|
|
196
196
|
render() {
|
|
197
|
-
return r`${this.renderMain()}<section class=${o(
|
|
197
|
+
return r`${this.renderMain()}<section class=${o(h.containerUI)} ${n(this._uiController.uiContainerRef)}>${this._uiController.render()}${this.extraContent}</section>`;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
c("arcgis-map", k);
|
|
201
201
|
export {
|
|
202
202
|
k as ArcgisMap
|
|
203
203
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as m } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as a } from "lit";
|
|
4
|
-
import
|
|
4
|
+
import l from "@arcgis/core/Camera.js";
|
|
5
5
|
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { LitElement as
|
|
6
|
+
import p from "@arcgis/core/geometry/Point.js";
|
|
7
|
+
import v from "@arcgis/core/views/SceneView.js";
|
|
8
|
+
import u from "@arcgis/core/WebScene.js";
|
|
9
|
+
import { LitElement as g, createEvent as r, safeClassMap as o } from "@arcgis/lumina";
|
|
10
10
|
import { reEmitEvent as t } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
11
|
-
import { makeAccessorController as
|
|
12
|
-
import { createRef as
|
|
13
|
-
import { U as
|
|
11
|
+
import { makeAccessorController as c, reCreateAccessor as d } from "@arcgis/lumina-toolkit/useAccessor";
|
|
12
|
+
import { createRef as y, ref as n } from "lit/directives/ref.js";
|
|
13
|
+
import { U as f, u as b, a as V, b as C } from "../../chunks/useArcgisViewReadyError.js";
|
|
14
14
|
import { s as _ } from "../../chunks/esri-main.js";
|
|
15
15
|
import { s as E } from "../../chunks/slots.js";
|
|
16
|
-
import { C as
|
|
16
|
+
import { C as h } from "../../chunks/resources.js";
|
|
17
17
|
import { d as R, e as P, b as A, c as M, p as D, i as I } from "../../chunks/component-utils.js";
|
|
18
|
-
const S =
|
|
19
|
-
class F extends
|
|
18
|
+
const S = c(u, {}), k = c(v, {});
|
|
19
|
+
class F extends g {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(), this._attributionMode = null, this.
|
|
21
|
+
super(), this._attributionMode = null, this._mapRef = y(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = S(this), this.view = k(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.selectionManager = this.view.selectionManager, this.focusRegionVisible = this.view.focusRegionVisible, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.viewingMode = this.view.viewingMode, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = t(() => this.view, "focus-region-select"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), C(this), this.view.ui = {
|
|
22
22
|
components: []
|
|
23
23
|
};
|
|
24
24
|
}
|
|
@@ -75,12 +75,12 @@ class F extends d {
|
|
|
75
75
|
if (i.ready)
|
|
76
76
|
return i.camera?.position;
|
|
77
77
|
const { position: e } = this._cameraProperties;
|
|
78
|
-
return e ? new
|
|
78
|
+
return e ? new p(e) : void 0;
|
|
79
79
|
}
|
|
80
80
|
set cameraPosition(i) {
|
|
81
81
|
const e = P(this.view.camera?.position, i);
|
|
82
|
-
e && this._mutateCamera((
|
|
83
|
-
|
|
82
|
+
e && this._mutateCamera((w) => {
|
|
83
|
+
w.position = e;
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
get cameraTilt() {
|
|
@@ -133,7 +133,7 @@ class F extends d {
|
|
|
133
133
|
return this._map.portalItem?.id;
|
|
134
134
|
}
|
|
135
135
|
set itemId(i) {
|
|
136
|
-
|
|
136
|
+
d(this._map, this), this._map.portalItem = { id: i }, this.view.map = this._map;
|
|
137
137
|
}
|
|
138
138
|
get navigating() {
|
|
139
139
|
return this.view.navigating;
|
|
@@ -242,17 +242,17 @@ class F extends d {
|
|
|
242
242
|
i(this._cameraProperties);
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
const e = this.view.camera?.clone() ?? new
|
|
245
|
+
const e = this.view.camera?.clone() ?? new l();
|
|
246
246
|
i(e), this.camera = e;
|
|
247
247
|
}
|
|
248
248
|
renderMain() {
|
|
249
|
-
return a`<div class=${o(
|
|
249
|
+
return a`<div class=${o(h.base)} ${n(this._mapRef)}></div>`;
|
|
250
250
|
}
|
|
251
251
|
render() {
|
|
252
|
-
return a`${this.renderMain()}<section class=${o(
|
|
252
|
+
return a`${this.renderMain()}<section class=${o(h.containerUI)} ${n(this._uiController.uiContainerRef)}>${this._uiController.render()}</section>`;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
|
|
255
|
+
m("arcgis-scene", F);
|
|
256
256
|
export {
|
|
257
257
|
F as ArcgisScene
|
|
258
258
|
};
|
|
@@ -230,7 +230,6 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
230
230
|
* update | The graphic will be selected for an [update()](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#update) operation once the `create` operation is completed.
|
|
231
231
|
*
|
|
232
232
|
* @default "continuous"
|
|
233
|
-
* @since 4.14
|
|
234
233
|
*/
|
|
235
234
|
accessor creationMode: CreationMode;
|
|
236
235
|
/**
|
|
@@ -252,7 +251,6 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
252
251
|
* Default update options set for the Sketch component. Update options set on this property will be overwritten if the update options are changed
|
|
253
252
|
* when [update()](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#update) method is called.
|
|
254
253
|
*
|
|
255
|
-
* @since 4.11
|
|
256
254
|
* @example
|
|
257
255
|
* // Turn off highlights for update operations
|
|
258
256
|
* const sketch = new Sketch({
|
|
@@ -538,7 +536,7 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
538
536
|
*/
|
|
539
537
|
accessor labelOptions: SketchLabelOptions;
|
|
540
538
|
/**
|
|
541
|
-
* The [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) associated with the Sketch component. The Sketch component adds new [graphics](https://developers.arcgis.com/javascript/latest/references/core/Graphic/) to this layer or can only update graphics
|
|
539
|
+
* The [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) or [SketchLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SketchLayer/) associated with the Sketch component. The Sketch component adds new [graphics](https://developers.arcgis.com/javascript/latest/references/core/Graphic/) to this layer or can only update graphics
|
|
542
540
|
* stored in this layer.
|
|
543
541
|
*/
|
|
544
542
|
accessor layer: GraphicsLayer | MapNotesLayer | SketchLayer | null | undefined;
|