@arcgis/map-components 1.0.0-beta.14 → 1.0.0-beta.17
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/app-globals-0f993ce5.js +3 -0
- package/dist/{esm → arcgis-map-components}/arcgis-area-measurement-2d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-area-measurement-3d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-attachments.entry.js +2 -2
- package/dist/arcgis-map-components/arcgis-basemap-gallery.entry.js +93 -0
- package/dist/{esm → arcgis-map-components}/arcgis-basemap-layer-list.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-basemap-toggle.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-bookmarks.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-building-explorer.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-compass.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-coordinate-conversion.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-daylight.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-directions.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-directline-measurement-3d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-distance-measurement-2d.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-editor.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-elevation-profile.entry.js +2 -2
- package/dist/{components/arcgis-expand2.js → arcgis-map-components/arcgis-expand.entry.js} +11 -30
- package/dist/{esm → arcgis-map-components}/arcgis-feature-form.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-feature-table.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-feature-templates.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-feature.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-features.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-floor-filter.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-fullscreen.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-histogram-range-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-histogram.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-home.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-layer-list.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-legend.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-line-of-sight.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-locate.entry.js +2 -2
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +148 -1
- package/dist/{components/arcgis-map.js → arcgis-map-components/arcgis-map.entry.js} +10 -36
- package/dist/{esm → arcgis-map-components}/arcgis-measurement.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-navigation-toggle.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-print.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-scale-bar.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-scale-range-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-scene.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-search.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-shadow-cast.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-sketch.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-slice.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-swipe.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-table-list.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-time-slider.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-track.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-utility-network-trace.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-value-picker.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-weather.entry.js +2 -2
- package/dist/{esm → arcgis-map-components}/arcgis-zoom.entry.js +2 -2
- package/dist/arcgis-map-components/css-shim-b7d3d95f.js +4 -0
- package/dist/arcgis-map-components/dom-64053c71.js +73 -0
- package/dist/arcgis-map-components/index-82d260eb.js +8293 -0
- package/dist/arcgis-map-components/index-d9a93dfb.js +3371 -0
- package/dist/arcgis-map-components/index.esm.js +1 -0
- package/dist/arcgis-map-components/shadow-css-008a49f5.js +387 -0
- package/package.json +4 -5
- package/dist/arcgis-map-components/p-095e0075.js +0 -1
- package/dist/arcgis-map-components/p-0a81674b.entry.js +0 -1
- package/dist/arcgis-map-components/p-0b5368a6.entry.js +0 -1
- package/dist/arcgis-map-components/p-0dddef29.entry.js +0 -1
- package/dist/arcgis-map-components/p-0decaa03.entry.js +0 -1
- package/dist/arcgis-map-components/p-1126ae71.entry.js +0 -1
- package/dist/arcgis-map-components/p-1307fe8a.entry.js +0 -1
- package/dist/arcgis-map-components/p-1401deea.js +0 -1
- package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
- package/dist/arcgis-map-components/p-23530601.entry.js +0 -1
- package/dist/arcgis-map-components/p-3b5c0098.entry.js +0 -1
- package/dist/arcgis-map-components/p-406f187c.entry.js +0 -1
- package/dist/arcgis-map-components/p-5396bcb5.entry.js +0 -1
- package/dist/arcgis-map-components/p-5a87f5c4.entry.js +0 -1
- package/dist/arcgis-map-components/p-5cabdee7.js +0 -1
- package/dist/arcgis-map-components/p-69214958.entry.js +0 -1
- package/dist/arcgis-map-components/p-6e69fe28.entry.js +0 -1
- package/dist/arcgis-map-components/p-741086a4.entry.js +0 -1
- package/dist/arcgis-map-components/p-79080368.entry.js +0 -1
- package/dist/arcgis-map-components/p-7e5545cf.entry.js +0 -1
- package/dist/arcgis-map-components/p-7e90f27c.entry.js +0 -1
- package/dist/arcgis-map-components/p-80fd5534.entry.js +0 -1
- package/dist/arcgis-map-components/p-81a3bd3b.entry.js +0 -1
- package/dist/arcgis-map-components/p-85b278c1.entry.js +0 -1
- package/dist/arcgis-map-components/p-866d57e1.entry.js +0 -1
- package/dist/arcgis-map-components/p-86acdf29.entry.js +0 -1
- package/dist/arcgis-map-components/p-8bf81a13.entry.js +0 -1
- package/dist/arcgis-map-components/p-95287b70.entry.js +0 -1
- package/dist/arcgis-map-components/p-95aa4e86.entry.js +0 -1
- package/dist/arcgis-map-components/p-9634a446.entry.js +0 -1
- package/dist/arcgis-map-components/p-9d16369e.entry.js +0 -1
- package/dist/arcgis-map-components/p-a094dafc.entry.js +0 -1
- package/dist/arcgis-map-components/p-a6ab7f72.entry.js +0 -1
- package/dist/arcgis-map-components/p-a7715a1a.entry.js +0 -1
- package/dist/arcgis-map-components/p-aa73b1cb.entry.js +0 -1
- package/dist/arcgis-map-components/p-ae017ef1.entry.js +0 -1
- package/dist/arcgis-map-components/p-b5182c68.entry.js +0 -1
- package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
- package/dist/arcgis-map-components/p-bfb9ceb4.entry.js +0 -1
- package/dist/arcgis-map-components/p-c28ede1a.entry.js +0 -1
- package/dist/arcgis-map-components/p-c64bceeb.entry.js +0 -1
- package/dist/arcgis-map-components/p-c726b024.entry.js +0 -1
- package/dist/arcgis-map-components/p-d0dc4119.entry.js +0 -1
- package/dist/arcgis-map-components/p-d2274db9.entry.js +0 -1
- package/dist/arcgis-map-components/p-d5b79b4e.entry.js +0 -1
- package/dist/arcgis-map-components/p-d9c0253a.entry.js +0 -1
- package/dist/arcgis-map-components/p-db02ac80.entry.js +0 -1
- package/dist/arcgis-map-components/p-dfbbbdad.entry.js +0 -1
- package/dist/arcgis-map-components/p-e432eb73.entry.js +0 -1
- package/dist/arcgis-map-components/p-e4f5a3f5.entry.js +0 -1
- package/dist/arcgis-map-components/p-f32183ab.entry.js +0 -1
- package/dist/arcgis-map-components/p-f9b78102.entry.js +0 -1
- package/dist/arcgis-map-components/p-fa591c93.entry.js +0 -1
- package/dist/arcgis-map-components/p-fee8b15a.entry.js +0 -1
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +0 -101
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +0 -94
- package/dist/cjs/arcgis-attachments.cjs.entry.js +0 -73
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +0 -281
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +0 -144
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +0 -115
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +0 -140
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +0 -80
- package/dist/cjs/arcgis-compass.cjs.entry.js +0 -90
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +0 -158
- package/dist/cjs/arcgis-daylight.cjs.entry.js +0 -116
- package/dist/cjs/arcgis-directions.cjs.entry.js +0 -194
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +0 -114
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-editor.cjs.entry.js +0 -180
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +0 -136
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +0 -36
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +0 -300
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +0 -73
- package/dist/cjs/arcgis-feature.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-features.cjs.entry.js +0 -133
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +0 -134
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +0 -92
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +0 -80
- package/dist/cjs/arcgis-histogram.cjs.entry.js +0 -36
- package/dist/cjs/arcgis-home.cjs.entry.js +0 -108
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +0 -128
- package/dist/cjs/arcgis-legend.cjs.entry.js +0 -146
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +0 -94
- package/dist/cjs/arcgis-locate.cjs.entry.js +0 -158
- package/dist/cjs/arcgis-map-components.cjs.js +0 -23
- package/dist/cjs/arcgis-measurement.cjs.entry.js +0 -123
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +0 -97
- package/dist/cjs/arcgis-print.cjs.entry.js +0 -163
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +0 -146
- package/dist/cjs/arcgis-scene.cjs.entry.js +0 -106
- package/dist/cjs/arcgis-search.cjs.entry.js +0 -276
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +0 -95
- package/dist/cjs/arcgis-sketch.cjs.entry.js +0 -201
- package/dist/cjs/arcgis-slice.cjs.entry.js +0 -103
- package/dist/cjs/arcgis-slider.cjs.entry.js +0 -233
- package/dist/cjs/arcgis-swipe.cjs.entry.js +0 -117
- package/dist/cjs/arcgis-table-list.cjs.entry.js +0 -118
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +0 -216
- package/dist/cjs/arcgis-track.cjs.entry.js +0 -147
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +0 -162
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +0 -160
- package/dist/cjs/arcgis-weather.cjs.entry.js +0 -86
- package/dist/cjs/arcgis-zoom.cjs.entry.js +0 -100
- package/dist/cjs/component-utils-933b7aca.js +0 -76
- package/dist/cjs/disconnected-306cb220.js +0 -55
- package/dist/cjs/index-6b51d5a0.js +0 -1607
- package/dist/cjs/index-ef2acc94.js +0 -717
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/mapping-utils-c2c7b994.js +0 -40
- package/dist/components/arcgis-area-measurement-2d.js +0 -128
- package/dist/components/arcgis-area-measurement-3d.js +0 -121
- package/dist/components/arcgis-attachments.js +0 -99
- package/dist/components/arcgis-basemap-gallery.js +0 -124
- package/dist/components/arcgis-basemap-layer-list.js +0 -175
- package/dist/components/arcgis-basemap-toggle.js +0 -143
- package/dist/components/arcgis-bookmarks.js +0 -169
- package/dist/components/arcgis-building-explorer.js +0 -105
- package/dist/components/arcgis-compass.js +0 -109
- package/dist/components/arcgis-coordinate-conversion.js +0 -193
- package/dist/components/arcgis-daylight.js +0 -144
- package/dist/components/arcgis-directions.js +0 -230
- package/dist/components/arcgis-directline-measurement-3d.js +0 -142
- package/dist/components/arcgis-distance-measurement-2d.js +0 -133
- package/dist/components/arcgis-editor.js +0 -219
- package/dist/components/arcgis-elevation-profile.js +0 -166
- package/dist/components/arcgis-expand.js +0 -6
- package/dist/components/arcgis-feature-form.js +0 -55
- package/dist/components/arcgis-feature-table.js +0 -355
- package/dist/components/arcgis-feature-templates.js +0 -98
- package/dist/components/arcgis-feature.js +0 -133
- package/dist/components/arcgis-features.js +0 -169
- package/dist/components/arcgis-floor-filter.js +0 -164
- package/dist/components/arcgis-fullscreen.js +0 -111
- package/dist/components/arcgis-histogram-range-slider.js +0 -106
- package/dist/components/arcgis-histogram.js +0 -55
- package/dist/components/arcgis-home.js +0 -129
- package/dist/components/arcgis-layer-list.js +0 -158
- package/dist/components/arcgis-legend.js +0 -177
- package/dist/components/arcgis-line-of-sight.js +0 -120
- package/dist/components/arcgis-locate.js +0 -184
- package/dist/components/arcgis-measurement.js +0 -153
- package/dist/components/arcgis-navigation-toggle.js +0 -117
- package/dist/components/arcgis-print.js +0 -197
- package/dist/components/arcgis-scale-bar.js +0 -133
- package/dist/components/arcgis-scale-range-slider.js +0 -177
- package/dist/components/arcgis-scene.js +0 -127
- package/dist/components/arcgis-search.js +0 -330
- package/dist/components/arcgis-shadow-cast.js +0 -121
- package/dist/components/arcgis-sketch.js +0 -238
- package/dist/components/arcgis-slice.js +0 -130
- package/dist/components/arcgis-slider.js +0 -281
- package/dist/components/arcgis-swipe.js +0 -140
- package/dist/components/arcgis-table-list.js +0 -147
- package/dist/components/arcgis-time-slider.js +0 -256
- package/dist/components/arcgis-track.js +0 -171
- package/dist/components/arcgis-utility-network-trace.js +0 -197
- package/dist/components/arcgis-value-picker.js +0 -198
- package/dist/components/arcgis-weather.js +0 -111
- package/dist/components/arcgis-zoom.js +0 -121
- package/dist/components/disconnected.js +0 -122
- package/dist/components/index.js +0 -52
- package/dist/components/index2.js +0 -638
- package/dist/components/mapping-utils.js +0 -38
- package/dist/esm/arcgis-basemap-gallery_3.entry.js +0 -275
- package/dist/esm/arcgis-map-components.js +0 -18
- package/dist/esm/index-ad26b6d0.js +0 -638
- package/dist/esm/index-eb3ead33.js +0 -1579
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- /package/dist/{esm → arcgis-map-components}/component-utils-d3552de2.js +0 -0
- /package/dist/{esm → arcgis-map-components}/disconnected-bc5fc8bc.js +0 -0
- /package/dist/{esm → arcgis-map-components}/mapping-utils-26beb904.js +0 -0
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { j as newWidgetsCoordinateConversion, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
-
|
|
6
|
-
const arcgisCoordinateConversionCss = "";
|
|
7
|
-
|
|
8
|
-
const ArcgisCoordinateConversion$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
-
this.referenceElement = undefined;
|
|
14
|
-
this.conversions = undefined;
|
|
15
|
-
this.currentLocation = undefined;
|
|
16
|
-
this.formats = undefined;
|
|
17
|
-
this.locationSymbol = undefined;
|
|
18
|
-
this.mode = undefined;
|
|
19
|
-
this.multipleConversions = undefined;
|
|
20
|
-
this.orientation = undefined;
|
|
21
|
-
this.storageEnabled = undefined;
|
|
22
|
-
this.storageType = undefined;
|
|
23
|
-
this.position = "bottom-left";
|
|
24
|
-
this.expandable = false;
|
|
25
|
-
this.view = undefined;
|
|
26
|
-
this.widget = undefined;
|
|
27
|
-
}
|
|
28
|
-
//--------------------------------------------------------------------------
|
|
29
|
-
//
|
|
30
|
-
// Watchers
|
|
31
|
-
//
|
|
32
|
-
//--------------------------------------------------------------------------
|
|
33
|
-
positionWatcher(newValue) {
|
|
34
|
-
if (newValue !== undefined && this.widget) {
|
|
35
|
-
if (typeof this.view !== "string") {
|
|
36
|
-
this.view.ui.move(this.childElem, newValue);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
conversionsWatcher(newValue) {
|
|
41
|
-
if (newValue !== undefined && this.widget) {
|
|
42
|
-
this.widget.conversions = newValue;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
formatsWatcher(newValue) {
|
|
46
|
-
if (newValue !== undefined && this.widget) {
|
|
47
|
-
this.widget.formats = newValue;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
locationSymbolWatcher(newValue) {
|
|
51
|
-
if (newValue !== undefined && this.widget) {
|
|
52
|
-
this.widget.locationSymbol = newValue;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
modeWatcher(newValue) {
|
|
56
|
-
if (newValue !== undefined && this.widget) {
|
|
57
|
-
this.widget.mode = newValue;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
multipleConversionsWatcher(newValue) {
|
|
61
|
-
if (newValue !== undefined && this.widget) {
|
|
62
|
-
this.widget.multipleConversions = newValue;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
orientationWatcher(newValue) {
|
|
66
|
-
if (newValue !== undefined && this.widget) {
|
|
67
|
-
this.widget.orientation = newValue;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
storageEnabledWatcher(newValue) {
|
|
71
|
-
if (newValue !== undefined && this.widget) {
|
|
72
|
-
this.widget.storageEnabled = newValue;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
storageTypeWatcher(newValue) {
|
|
76
|
-
if (newValue !== undefined && this.widget) {
|
|
77
|
-
this.widget.storageType = newValue;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
referenceElementWatcher(newValue) {
|
|
81
|
-
referenceElementHelper(this, newValue);
|
|
82
|
-
}
|
|
83
|
-
viewWatcher(newValue) {
|
|
84
|
-
if (newValue !== undefined && this.widget) {
|
|
85
|
-
this.widget.view = newValue;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
//--------------------------------------------------------------------------
|
|
89
|
-
//
|
|
90
|
-
// Methods
|
|
91
|
-
//
|
|
92
|
-
//--------------------------------------------------------------------------
|
|
93
|
-
async reverseConvert(coordinate, format) {
|
|
94
|
-
return this.widget?.reverseConvert(coordinate, format);
|
|
95
|
-
}
|
|
96
|
-
//--------------------------------------------------------------------------
|
|
97
|
-
//
|
|
98
|
-
// Lifecycle
|
|
99
|
-
//
|
|
100
|
-
//--------------------------------------------------------------------------
|
|
101
|
-
async componentDidLoad() {
|
|
102
|
-
const params = this._createParams();
|
|
103
|
-
const widget = await newWidgetsCoordinateConversion(params);
|
|
104
|
-
this.widget = widget;
|
|
105
|
-
await this._addWatchers();
|
|
106
|
-
this.widgetReady.emit(true);
|
|
107
|
-
checkForView(this);
|
|
108
|
-
}
|
|
109
|
-
disconnectedCallback() {
|
|
110
|
-
onDisconnectedHelper(this);
|
|
111
|
-
}
|
|
112
|
-
render() {
|
|
113
|
-
if (this.expandable) {
|
|
114
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
115
|
-
}
|
|
116
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
117
|
-
}
|
|
118
|
-
//--------------------------------------------------------------------------
|
|
119
|
-
//
|
|
120
|
-
// Private Methods
|
|
121
|
-
//
|
|
122
|
-
//--------------------------------------------------------------------------
|
|
123
|
-
async _addWatchers() {
|
|
124
|
-
const { watch } = await importCoreReactiveUtils();
|
|
125
|
-
watch(() => this.widget.currentLocation, (value) => (this.currentLocation = value), {
|
|
126
|
-
initial: true
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
_createParams() {
|
|
130
|
-
const params = {
|
|
131
|
-
container: this.childElem
|
|
132
|
-
};
|
|
133
|
-
if (this.view) {
|
|
134
|
-
params.view = this.view;
|
|
135
|
-
}
|
|
136
|
-
return params;
|
|
137
|
-
}
|
|
138
|
-
get el() { return this; }
|
|
139
|
-
static get watchers() { return {
|
|
140
|
-
"position": ["positionWatcher"],
|
|
141
|
-
"conversions": ["conversionsWatcher"],
|
|
142
|
-
"formats": ["formatsWatcher"],
|
|
143
|
-
"locationSymbol": ["locationSymbolWatcher"],
|
|
144
|
-
"mode": ["modeWatcher"],
|
|
145
|
-
"multipleConversions": ["multipleConversionsWatcher"],
|
|
146
|
-
"orientation": ["orientationWatcher"],
|
|
147
|
-
"storageEnabled": ["storageEnabledWatcher"],
|
|
148
|
-
"storageType": ["storageTypeWatcher"],
|
|
149
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
150
|
-
"view": ["viewWatcher"]
|
|
151
|
-
}; }
|
|
152
|
-
static get style() { return arcgisCoordinateConversionCss; }
|
|
153
|
-
}, [0, "arcgis-coordinate-conversion", {
|
|
154
|
-
"referenceElement": [1, "reference-element"],
|
|
155
|
-
"conversions": [16],
|
|
156
|
-
"currentLocation": [1040],
|
|
157
|
-
"formats": [16],
|
|
158
|
-
"locationSymbol": [16],
|
|
159
|
-
"mode": [1],
|
|
160
|
-
"multipleConversions": [4, "multiple-conversions"],
|
|
161
|
-
"orientation": [1],
|
|
162
|
-
"storageEnabled": [4, "storage-enabled"],
|
|
163
|
-
"storageType": [1, "storage-type"],
|
|
164
|
-
"position": [1],
|
|
165
|
-
"expandable": [4],
|
|
166
|
-
"view": [16],
|
|
167
|
-
"widget": [1040],
|
|
168
|
-
"reverseConvert": [64]
|
|
169
|
-
}]);
|
|
170
|
-
function defineCustomElement$1() {
|
|
171
|
-
if (typeof customElements === "undefined") {
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
const components = ["arcgis-coordinate-conversion", "arcgis-expand"];
|
|
175
|
-
components.forEach(tagName => { switch (tagName) {
|
|
176
|
-
case "arcgis-coordinate-conversion":
|
|
177
|
-
if (!customElements.get(tagName)) {
|
|
178
|
-
customElements.define(tagName, ArcgisCoordinateConversion$1);
|
|
179
|
-
}
|
|
180
|
-
break;
|
|
181
|
-
case "arcgis-expand":
|
|
182
|
-
if (!customElements.get(tagName)) {
|
|
183
|
-
defineCustomElement$2();
|
|
184
|
-
}
|
|
185
|
-
break;
|
|
186
|
-
} });
|
|
187
|
-
}
|
|
188
|
-
defineCustomElement$1();
|
|
189
|
-
|
|
190
|
-
const ArcgisCoordinateConversion = ArcgisCoordinateConversion$1;
|
|
191
|
-
const defineCustomElement = defineCustomElement$1;
|
|
192
|
-
|
|
193
|
-
export { ArcgisCoordinateConversion, defineCustomElement };
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { k as newWidgetsDaylight } from './index2.js';
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
-
|
|
6
|
-
const arcgisDaylightCss = "";
|
|
7
|
-
|
|
8
|
-
const ArcgisDaylight$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
-
this.referenceElement = undefined;
|
|
14
|
-
this.dateOrSeason = undefined;
|
|
15
|
-
this.playSpeedMultiplier = undefined;
|
|
16
|
-
this.timeSliderSteps = undefined;
|
|
17
|
-
this.position = "bottom-left";
|
|
18
|
-
this.expandable = false;
|
|
19
|
-
this.view = undefined;
|
|
20
|
-
this.widget = undefined;
|
|
21
|
-
}
|
|
22
|
-
//--------------------------------------------------------------------------
|
|
23
|
-
//
|
|
24
|
-
// Watchers
|
|
25
|
-
//
|
|
26
|
-
//--------------------------------------------------------------------------
|
|
27
|
-
positionWatcher(newValue) {
|
|
28
|
-
if (newValue !== undefined && this.widget) {
|
|
29
|
-
if (typeof this.view !== "string") {
|
|
30
|
-
this.view.ui.move(this.childElem, newValue);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
dateOrSeasonWatcher(newValue) {
|
|
35
|
-
if (newValue !== undefined && this.widget) {
|
|
36
|
-
this.widget.dateOrSeason = newValue;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
playSpeedMultiplierWatcher(newValue) {
|
|
40
|
-
if (newValue !== undefined && this.widget) {
|
|
41
|
-
this.widget.playSpeedMultiplier = newValue;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
timeSliderStepsWatcher(newValue) {
|
|
45
|
-
if (newValue !== undefined && this.widget) {
|
|
46
|
-
this.widget.timeSliderSteps = newValue;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
referenceElementWatcher(newValue) {
|
|
50
|
-
referenceElementHelper(this, newValue);
|
|
51
|
-
}
|
|
52
|
-
viewWatcher(newValue) {
|
|
53
|
-
if (newValue !== undefined && this.widget) {
|
|
54
|
-
this.widget.view = newValue;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
//--------------------------------------------------------------------------
|
|
58
|
-
//
|
|
59
|
-
// Lifecycle
|
|
60
|
-
//
|
|
61
|
-
//--------------------------------------------------------------------------
|
|
62
|
-
async componentDidLoad() {
|
|
63
|
-
const params = this._createParams();
|
|
64
|
-
const widget = await newWidgetsDaylight(params);
|
|
65
|
-
this.widget = widget;
|
|
66
|
-
this.widgetReady.emit(true);
|
|
67
|
-
checkForView(this);
|
|
68
|
-
}
|
|
69
|
-
disconnectedCallback() {
|
|
70
|
-
onDisconnectedHelper(this);
|
|
71
|
-
}
|
|
72
|
-
render() {
|
|
73
|
-
if (this.expandable) {
|
|
74
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
75
|
-
}
|
|
76
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
77
|
-
}
|
|
78
|
-
//--------------------------------------------------------------------------
|
|
79
|
-
//
|
|
80
|
-
// Private Methods
|
|
81
|
-
//
|
|
82
|
-
//--------------------------------------------------------------------------
|
|
83
|
-
_createParams() {
|
|
84
|
-
const params = {
|
|
85
|
-
container: this.childElem
|
|
86
|
-
};
|
|
87
|
-
if (this.view) {
|
|
88
|
-
params.view = this.view;
|
|
89
|
-
}
|
|
90
|
-
if (this.dateOrSeason) {
|
|
91
|
-
params.dateOrSeason = this.dateOrSeason;
|
|
92
|
-
}
|
|
93
|
-
if (this.playSpeedMultiplier) {
|
|
94
|
-
params.playSpeedMultiplier = this.playSpeedMultiplier;
|
|
95
|
-
}
|
|
96
|
-
if (this.timeSliderSteps) {
|
|
97
|
-
params.timeSliderSteps = this.timeSliderSteps;
|
|
98
|
-
}
|
|
99
|
-
return params;
|
|
100
|
-
}
|
|
101
|
-
get el() { return this; }
|
|
102
|
-
static get watchers() { return {
|
|
103
|
-
"position": ["positionWatcher"],
|
|
104
|
-
"dateOrSeason": ["dateOrSeasonWatcher"],
|
|
105
|
-
"playSpeedMultiplier": ["playSpeedMultiplierWatcher"],
|
|
106
|
-
"timeSliderSteps": ["timeSliderStepsWatcher"],
|
|
107
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
108
|
-
"view": ["viewWatcher"]
|
|
109
|
-
}; }
|
|
110
|
-
static get style() { return arcgisDaylightCss; }
|
|
111
|
-
}, [0, "arcgis-daylight", {
|
|
112
|
-
"referenceElement": [1, "reference-element"],
|
|
113
|
-
"dateOrSeason": [1, "date-or-season"],
|
|
114
|
-
"playSpeedMultiplier": [2, "play-speed-multiplier"],
|
|
115
|
-
"timeSliderSteps": [2, "time-slider-steps"],
|
|
116
|
-
"position": [1],
|
|
117
|
-
"expandable": [4],
|
|
118
|
-
"view": [16],
|
|
119
|
-
"widget": [1040]
|
|
120
|
-
}]);
|
|
121
|
-
function defineCustomElement$1() {
|
|
122
|
-
if (typeof customElements === "undefined") {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
const components = ["arcgis-daylight", "arcgis-expand"];
|
|
126
|
-
components.forEach(tagName => { switch (tagName) {
|
|
127
|
-
case "arcgis-daylight":
|
|
128
|
-
if (!customElements.get(tagName)) {
|
|
129
|
-
customElements.define(tagName, ArcgisDaylight$1);
|
|
130
|
-
}
|
|
131
|
-
break;
|
|
132
|
-
case "arcgis-expand":
|
|
133
|
-
if (!customElements.get(tagName)) {
|
|
134
|
-
defineCustomElement$2();
|
|
135
|
-
}
|
|
136
|
-
break;
|
|
137
|
-
} });
|
|
138
|
-
}
|
|
139
|
-
defineCustomElement$1();
|
|
140
|
-
|
|
141
|
-
const ArcgisDaylight = ArcgisDaylight$1;
|
|
142
|
-
const defineCustomElement = defineCustomElement$1;
|
|
143
|
-
|
|
144
|
-
export { ArcgisDaylight, defineCustomElement };
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { l as newLayersRouteLayer, m as newWidgetsDirections, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
-
|
|
6
|
-
const arcgisDirectionsCss = "";
|
|
7
|
-
|
|
8
|
-
const ArcgisDirections$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
-
this.referenceElement = undefined;
|
|
14
|
-
this.apiKey = undefined;
|
|
15
|
-
this.itemId = undefined;
|
|
16
|
-
this.lastRoute = undefined;
|
|
17
|
-
this.layer = undefined;
|
|
18
|
-
this.maxStops = undefined;
|
|
19
|
-
this.searchProperties = undefined;
|
|
20
|
-
this.unit = undefined;
|
|
21
|
-
this.position = "bottom-left";
|
|
22
|
-
this.expandable = false;
|
|
23
|
-
this.view = undefined;
|
|
24
|
-
this.widget = undefined;
|
|
25
|
-
}
|
|
26
|
-
//--------------------------------------------------------------------------
|
|
27
|
-
//
|
|
28
|
-
// Watchers
|
|
29
|
-
//
|
|
30
|
-
//--------------------------------------------------------------------------
|
|
31
|
-
positionWatcher(newValue) {
|
|
32
|
-
if (newValue !== undefined && this.widget) {
|
|
33
|
-
if (typeof this.view !== "string") {
|
|
34
|
-
this.view.ui.move(this.childElem, newValue);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
apiKeyWatcher(value) {
|
|
39
|
-
if (value && this.widget) {
|
|
40
|
-
this.widget.apiKey = value;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
itemIdWatcher(value) {
|
|
44
|
-
if (value && this.widget) {
|
|
45
|
-
newLayersRouteLayer({
|
|
46
|
-
portalItem: {
|
|
47
|
-
id: value
|
|
48
|
-
}
|
|
49
|
-
}).then((layer) => {
|
|
50
|
-
this.layer = layer;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
layerWatcher(value) {
|
|
55
|
-
if (value && this.widget) {
|
|
56
|
-
this.widget.layer = value;
|
|
57
|
-
this.view?.map.add(this.layer);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
maxStopsWatcher(value) {
|
|
61
|
-
if (value && this.widget) {
|
|
62
|
-
this.widget.maxStops = value;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
searchPropertiesWatcher(value) {
|
|
66
|
-
if (value && this.widget) {
|
|
67
|
-
this.widget.searchProperties = value;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
unitWatcher(value) {
|
|
71
|
-
if (value && this.widget) {
|
|
72
|
-
this.widget.unit = value;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
referenceElementWatcher(newValue) {
|
|
76
|
-
referenceElementHelper(this, newValue);
|
|
77
|
-
}
|
|
78
|
-
viewWatcher(newValue) {
|
|
79
|
-
if (newValue !== undefined && this.widget) {
|
|
80
|
-
this.widget.view = newValue;
|
|
81
|
-
if (this.layer) {
|
|
82
|
-
this.widget.view.map.add(this.layer);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
//--------------------------------------------------------------------------
|
|
87
|
-
//
|
|
88
|
-
// Methods
|
|
89
|
-
//
|
|
90
|
-
//--------------------------------------------------------------------------
|
|
91
|
-
async getDirections() {
|
|
92
|
-
return this.widget?.getDirections();
|
|
93
|
-
}
|
|
94
|
-
async save() {
|
|
95
|
-
return this.widget?.save();
|
|
96
|
-
}
|
|
97
|
-
async saveAs(portalItem, options) {
|
|
98
|
-
return this.widget?.saveAs(portalItem, options);
|
|
99
|
-
}
|
|
100
|
-
async zoomToRoute() {
|
|
101
|
-
return this.widget?.zoomToRoute();
|
|
102
|
-
}
|
|
103
|
-
//--------------------------------------------------------------------------
|
|
104
|
-
//
|
|
105
|
-
// Lifecycle
|
|
106
|
-
//
|
|
107
|
-
//--------------------------------------------------------------------------
|
|
108
|
-
async componentDidLoad() {
|
|
109
|
-
const params = await this._createParams();
|
|
110
|
-
const widget = await newWidgetsDirections(params);
|
|
111
|
-
this.widget = widget;
|
|
112
|
-
await this._addWatchers();
|
|
113
|
-
this.widgetReady.emit(true);
|
|
114
|
-
checkForView(this);
|
|
115
|
-
}
|
|
116
|
-
disconnectedCallback() {
|
|
117
|
-
onDisconnectedHelper(this);
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
if (this.expandable) {
|
|
121
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
122
|
-
}
|
|
123
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
124
|
-
}
|
|
125
|
-
//--------------------------------------------------------------------------
|
|
126
|
-
//
|
|
127
|
-
// Private Methods
|
|
128
|
-
//
|
|
129
|
-
//--------------------------------------------------------------------------
|
|
130
|
-
async _addWatchers() {
|
|
131
|
-
const { watch } = await importCoreReactiveUtils();
|
|
132
|
-
watch(() => this.widget.lastRoute, (value) => (this.lastRoute = value), {
|
|
133
|
-
initial: true
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
async _createParams() {
|
|
137
|
-
const params = {
|
|
138
|
-
container: this.childElem
|
|
139
|
-
};
|
|
140
|
-
if (this.view) {
|
|
141
|
-
params.view = this.view;
|
|
142
|
-
}
|
|
143
|
-
if (this.apiKey) {
|
|
144
|
-
params.apiKey = this.apiKey;
|
|
145
|
-
}
|
|
146
|
-
if (this.itemId) {
|
|
147
|
-
params.layer = await newLayersRouteLayer({
|
|
148
|
-
portalItem: {
|
|
149
|
-
id: this.itemId
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
this.layer = params.layer;
|
|
153
|
-
}
|
|
154
|
-
else if (this.layer) {
|
|
155
|
-
params.layer = this.layer;
|
|
156
|
-
this.layer = params.layer;
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
params.layer = await newLayersRouteLayer({});
|
|
160
|
-
this.layer = params.layer;
|
|
161
|
-
}
|
|
162
|
-
if (this.layer !== undefined) {
|
|
163
|
-
this.view?.map.add(this.layer);
|
|
164
|
-
}
|
|
165
|
-
if (this.maxStops !== undefined) {
|
|
166
|
-
params.maxStops = this.maxStops;
|
|
167
|
-
}
|
|
168
|
-
if (this.searchProperties) {
|
|
169
|
-
params.searchProperties = this.searchProperties;
|
|
170
|
-
}
|
|
171
|
-
if (this.unit) {
|
|
172
|
-
params.unit = this.unit;
|
|
173
|
-
}
|
|
174
|
-
return params;
|
|
175
|
-
}
|
|
176
|
-
get el() { return this; }
|
|
177
|
-
static get watchers() { return {
|
|
178
|
-
"position": ["positionWatcher"],
|
|
179
|
-
"apiKey": ["apiKeyWatcher"],
|
|
180
|
-
"itemId": ["itemIdWatcher"],
|
|
181
|
-
"layer": ["layerWatcher"],
|
|
182
|
-
"maxStops": ["maxStopsWatcher"],
|
|
183
|
-
"searchProperties": ["searchPropertiesWatcher"],
|
|
184
|
-
"unit": ["unitWatcher"],
|
|
185
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
186
|
-
"view": ["viewWatcher"]
|
|
187
|
-
}; }
|
|
188
|
-
static get style() { return arcgisDirectionsCss; }
|
|
189
|
-
}, [0, "arcgis-directions", {
|
|
190
|
-
"referenceElement": [1, "reference-element"],
|
|
191
|
-
"apiKey": [1, "api-key"],
|
|
192
|
-
"itemId": [1, "item-id"],
|
|
193
|
-
"lastRoute": [1040],
|
|
194
|
-
"layer": [16],
|
|
195
|
-
"maxStops": [2, "max-stops"],
|
|
196
|
-
"searchProperties": [16],
|
|
197
|
-
"unit": [1],
|
|
198
|
-
"position": [1],
|
|
199
|
-
"expandable": [4],
|
|
200
|
-
"view": [16],
|
|
201
|
-
"widget": [1040],
|
|
202
|
-
"getDirections": [64],
|
|
203
|
-
"save": [64],
|
|
204
|
-
"saveAs": [64],
|
|
205
|
-
"zoomToRoute": [64]
|
|
206
|
-
}]);
|
|
207
|
-
function defineCustomElement$1() {
|
|
208
|
-
if (typeof customElements === "undefined") {
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
const components = ["arcgis-directions", "arcgis-expand"];
|
|
212
|
-
components.forEach(tagName => { switch (tagName) {
|
|
213
|
-
case "arcgis-directions":
|
|
214
|
-
if (!customElements.get(tagName)) {
|
|
215
|
-
customElements.define(tagName, ArcgisDirections$1);
|
|
216
|
-
}
|
|
217
|
-
break;
|
|
218
|
-
case "arcgis-expand":
|
|
219
|
-
if (!customElements.get(tagName)) {
|
|
220
|
-
defineCustomElement$2();
|
|
221
|
-
}
|
|
222
|
-
break;
|
|
223
|
-
} });
|
|
224
|
-
}
|
|
225
|
-
defineCustomElement$1();
|
|
226
|
-
|
|
227
|
-
const ArcgisDirections = ArcgisDirections$1;
|
|
228
|
-
const defineCustomElement = defineCustomElement$1;
|
|
229
|
-
|
|
230
|
-
export { ArcgisDirections, defineCustomElement };
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { o as newWidgetsDirectLineMeasurement3D, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
-
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
-
|
|
6
|
-
const arcgisDirectlineMeasurement3dCss = "";
|
|
7
|
-
|
|
8
|
-
const ArcgisDirectLineMeasurement3d = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
-
this.referenceElement = undefined;
|
|
14
|
-
this.position = "bottom-left";
|
|
15
|
-
this.expandable = false;
|
|
16
|
-
this.analysis = undefined;
|
|
17
|
-
this.unit = undefined;
|
|
18
|
-
this.unitOptions = undefined;
|
|
19
|
-
this.widget = undefined;
|
|
20
|
-
this.view = undefined;
|
|
21
|
-
}
|
|
22
|
-
//--------------------------------------------------------------------------
|
|
23
|
-
//
|
|
24
|
-
// Watchers
|
|
25
|
-
//
|
|
26
|
-
//--------------------------------------------------------------------------
|
|
27
|
-
positionWatcher(newValue) {
|
|
28
|
-
if (newValue !== undefined && this.widget) {
|
|
29
|
-
if (typeof this.view !== "string") {
|
|
30
|
-
this.view.ui.move(this.childElem, newValue);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
unitWatcher(value) {
|
|
35
|
-
if (value && this.widget) {
|
|
36
|
-
this.widget.unit = value;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
unitOptionsWatcher(value) {
|
|
40
|
-
if (value && this.widget) {
|
|
41
|
-
this.widget.unitOptions = value;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
referenceElementWatcher(newValue) {
|
|
45
|
-
referenceElementHelper(this, newValue);
|
|
46
|
-
}
|
|
47
|
-
viewWatcher(newValue) {
|
|
48
|
-
if (newValue !== undefined && this.widget) {
|
|
49
|
-
this.widget.view = newValue;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
//--------------------------------------------------------------------------
|
|
53
|
-
//
|
|
54
|
-
// Lifecycle
|
|
55
|
-
//
|
|
56
|
-
//--------------------------------------------------------------------------
|
|
57
|
-
async componentDidLoad() {
|
|
58
|
-
const params = this._createParams();
|
|
59
|
-
const widget = await newWidgetsDirectLineMeasurement3D(params);
|
|
60
|
-
this.widget = widget;
|
|
61
|
-
this._addWatchers();
|
|
62
|
-
this.widgetReady.emit(true);
|
|
63
|
-
checkForView(this);
|
|
64
|
-
}
|
|
65
|
-
disconnectedCallback() {
|
|
66
|
-
onDisconnectedHelper(this);
|
|
67
|
-
}
|
|
68
|
-
render() {
|
|
69
|
-
if (this.expandable) {
|
|
70
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
71
|
-
}
|
|
72
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
73
|
-
}
|
|
74
|
-
//--------------------------------------------------------------------------
|
|
75
|
-
//
|
|
76
|
-
// Private Methods
|
|
77
|
-
//
|
|
78
|
-
//--------------------------------------------------------------------------
|
|
79
|
-
async _addWatchers() {
|
|
80
|
-
const { watch } = await importCoreReactiveUtils();
|
|
81
|
-
watch(() => this.widget.analysis, (value) => (this.analysis = value), {
|
|
82
|
-
initial: true
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
_createParams() {
|
|
86
|
-
const params = {
|
|
87
|
-
container: this.childElem
|
|
88
|
-
};
|
|
89
|
-
if (this.view) {
|
|
90
|
-
params.view = this.view;
|
|
91
|
-
}
|
|
92
|
-
if (this.unit) {
|
|
93
|
-
params.unit = this.unit;
|
|
94
|
-
}
|
|
95
|
-
if (this.unitOptions) {
|
|
96
|
-
params.unitOptions = this.unitOptions;
|
|
97
|
-
}
|
|
98
|
-
return params;
|
|
99
|
-
}
|
|
100
|
-
get el() { return this; }
|
|
101
|
-
static get watchers() { return {
|
|
102
|
-
"position": ["positionWatcher"],
|
|
103
|
-
"unit": ["unitWatcher"],
|
|
104
|
-
"unitOptions": ["unitOptionsWatcher"],
|
|
105
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
106
|
-
"view": ["viewWatcher"]
|
|
107
|
-
}; }
|
|
108
|
-
static get style() { return arcgisDirectlineMeasurement3dCss; }
|
|
109
|
-
}, [0, "arcgis-directline-measurement-3d", {
|
|
110
|
-
"referenceElement": [1, "reference-element"],
|
|
111
|
-
"position": [1],
|
|
112
|
-
"expandable": [4],
|
|
113
|
-
"analysis": [1040],
|
|
114
|
-
"unit": [1],
|
|
115
|
-
"unitOptions": [16],
|
|
116
|
-
"widget": [1040],
|
|
117
|
-
"view": [16]
|
|
118
|
-
}]);
|
|
119
|
-
function defineCustomElement$1() {
|
|
120
|
-
if (typeof customElements === "undefined") {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
const components = ["arcgis-directline-measurement-3d", "arcgis-expand"];
|
|
124
|
-
components.forEach(tagName => { switch (tagName) {
|
|
125
|
-
case "arcgis-directline-measurement-3d":
|
|
126
|
-
if (!customElements.get(tagName)) {
|
|
127
|
-
customElements.define(tagName, ArcgisDirectLineMeasurement3d);
|
|
128
|
-
}
|
|
129
|
-
break;
|
|
130
|
-
case "arcgis-expand":
|
|
131
|
-
if (!customElements.get(tagName)) {
|
|
132
|
-
defineCustomElement$2();
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
} });
|
|
136
|
-
}
|
|
137
|
-
defineCustomElement$1();
|
|
138
|
-
|
|
139
|
-
const ArcgisDirectlineMeasurement3d = ArcgisDirectLineMeasurement3d;
|
|
140
|
-
const defineCustomElement = defineCustomElement$1;
|
|
141
|
-
|
|
142
|
-
export { ArcgisDirectlineMeasurement3d, defineCustomElement };
|