@arcgis/map-components 4.29.0-beta.3 → 4.29.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{readme.md → README.md} +1 -1
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -1
- package/dist/arcgis-map-components/{p-174f9d11.entry.js → p-037a3bb6.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-18c653a4.entry.js → p-064bf907.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-4fa3c6fe.entry.js → p-08015460.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-4b5fa9a2.entry.js → p-0d492ad6.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-1c631990.entry.js → p-0ee8ea5a.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-47629a4c.entry.js → p-11168df4.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-4bb15110.entry.js → p-1680f044.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-11e7ce02.entry.js → p-1a6dcf6a.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-1435356e.entry.js → p-29c81862.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-21721d4b.entry.js → p-347dba98.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-9e667282.entry.js → p-3673ae6e.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-a67dda4e.entry.js → p-367c6986.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-3587b4d8.entry.js → p-3b2623c6.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-f0e5dcc7.entry.js → p-4722bbad.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-535bf289.entry.js → p-48c89578.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-3361d81f.entry.js → p-5299aa69.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-3b5560bb.entry.js → p-52c3388d.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-5d835456.entry.js → p-5d2f53bd.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-4d5e7ddd.entry.js → p-615399dd.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-d8be8a46.entry.js → p-658a2499.entry.js} +1 -1
- package/dist/arcgis-map-components/p-7031c422.entry.js +1 -0
- package/dist/arcgis-map-components/{p-c63a5c7f.entry.js → p-7084f84f.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-9aad48fe.entry.js → p-74b7f2c3.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-2becbf01.entry.js → p-86a82586.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-1b5e33ea.entry.js → p-8a60074a.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-8d184d92.entry.js → p-8b4cf5da.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-9c1b8e69.entry.js → p-922bbfed.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-dafb17cf.entry.js → p-932be58c.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-8c18a99c.entry.js → p-99d486cb.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-4c103777.entry.js → p-9fdd4596.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-5db2786d.entry.js → p-a0f092fc.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-f5cc7f2d.entry.js → p-a1e2e59f.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-f7b74cd4.entry.js → p-a249c2fa.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-3e676259.entry.js → p-a508d7c6.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-5ea3ce11.entry.js → p-a89102b6.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-ef0b3818.entry.js → p-ac7e9294.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-8fde8001.entry.js → p-adcfd40d.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-ce14e49f.entry.js → p-ae96d72a.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-d3fbbf3f.entry.js → p-b026950f.entry.js} +1 -1
- package/dist/arcgis-map-components/p-b5904340.entry.js +1 -0
- package/dist/arcgis-map-components/{p-927f8748.entry.js → p-c57f270d.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-01d9efae.entry.js → p-c63d9e91.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-acb4a35a.entry.js → p-c8516f87.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-5a91868a.entry.js → p-d3f3affa.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-721673c8.entry.js → p-d5ac71b2.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-b19043d5.entry.js → p-dcf3861b.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-ec2cc024.entry.js → p-e1201530.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-312ff83f.entry.js → p-eb95717e.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-2c5be6b0.entry.js → p-ee1086de.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-620959fc.js → p-f28d6d27.js} +1 -1
- package/dist/arcgis-map-components/{p-501861a1.entry.js → p-f8353590.entry.js} +1 -1
- package/dist/cjs/arcgis-expand_4.cjs.entry.js +180 -280
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +307 -0
- package/dist/cjs/arcgis-map-components.cjs.js +1 -1
- package/dist/cjs/index-6b51d5a0.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/components/arcgis-map.js +27 -5
- package/dist/components/arcgis-scene.js +27 -5
- package/dist/esm/arcgis-area-measurement-2d.entry.js +1 -1
- package/dist/esm/arcgis-area-measurement-3d.entry.js +1 -1
- package/dist/esm/arcgis-attachments.entry.js +1 -1
- package/dist/esm/arcgis-basemap-gallery.entry.js +1 -1
- package/dist/esm/arcgis-basemap-layer-list.entry.js +1 -1
- package/dist/esm/arcgis-basemap-toggle.entry.js +1 -1
- package/dist/esm/arcgis-bookmarks.entry.js +1 -1
- package/dist/esm/arcgis-building-explorer.entry.js +1 -1
- package/dist/esm/arcgis-compass.entry.js +1 -1
- package/dist/esm/arcgis-coordinate-conversion.entry.js +1 -1
- package/dist/esm/arcgis-daylight.entry.js +1 -1
- package/dist/esm/arcgis-directions.entry.js +1 -1
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +1 -1
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +1 -1
- package/dist/esm/arcgis-editor.entry.js +1 -1
- package/dist/esm/arcgis-elevation-profile.entry.js +1 -1
- package/dist/esm/arcgis-expand_4.entry.js +180 -280
- package/dist/esm/arcgis-feature-form.entry.js +1 -1
- package/dist/esm/arcgis-feature-table.entry.js +303 -0
- package/dist/esm/arcgis-feature-templates.entry.js +1 -1
- package/dist/esm/arcgis-feature.entry.js +1 -1
- package/dist/esm/arcgis-features.entry.js +1 -1
- package/dist/esm/arcgis-floor-filter.entry.js +1 -1
- package/dist/esm/arcgis-fullscreen.entry.js +1 -1
- package/dist/esm/arcgis-histogram-range-slider.entry.js +1 -1
- package/dist/esm/arcgis-histogram.entry.js +1 -1
- package/dist/esm/arcgis-home.entry.js +1 -1
- package/dist/esm/arcgis-layer-list.entry.js +1 -1
- package/dist/esm/arcgis-legend.entry.js +1 -1
- package/dist/esm/arcgis-line-of-sight.entry.js +1 -1
- package/dist/esm/arcgis-locate.entry.js +1 -1
- package/dist/esm/arcgis-map-components.js +1 -1
- package/dist/esm/arcgis-measurement.entry.js +1 -1
- package/dist/esm/arcgis-navigation-toggle.entry.js +1 -1
- package/dist/esm/arcgis-print.entry.js +1 -1
- package/dist/esm/arcgis-scale-bar.entry.js +1 -1
- package/dist/esm/arcgis-scale-range-slider.entry.js +1 -1
- package/dist/esm/arcgis-shadow-cast.entry.js +1 -1
- package/dist/esm/arcgis-sketch.entry.js +1 -1
- package/dist/esm/arcgis-slice.entry.js +1 -1
- package/dist/esm/arcgis-slider.entry.js +1 -1
- package/dist/esm/arcgis-swipe.entry.js +1 -1
- package/dist/esm/arcgis-table-list.entry.js +1 -1
- package/dist/esm/arcgis-time-slider.entry.js +1 -1
- package/dist/esm/arcgis-track.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-associations.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-trace.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +1 -1
- package/dist/esm/arcgis-value-picker.entry.js +1 -1
- package/dist/esm/arcgis-weather.entry.js +1 -1
- package/dist/esm/arcgis-zoom.entry.js +1 -1
- package/dist/esm/{index-c227d296.js → index-334b0bde.js} +1 -1
- package/dist/esm/index-eb3ead33.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/arcgis-map/arcgis-map.d.ts +2 -0
- package/dist/types/components/arcgis-scene/arcgis-scene.d.ts +2 -0
- package/package.json +5 -4
- package/dist/arcgis-map-components/p-5cabdee7.js +0 -1
- package/dist/arcgis-map-components/p-bb6e5f04.entry.js +0 -1
- package/dist/arcgis-map-components/p-bfae0a1f.entry.js +0 -1
- package/dist/cjs/arcgis-scene.cjs.entry.js +0 -126
- package/dist/cjs/mapping-utils-c2c7b994.js +0 -40
- package/dist/esm/arcgis-scene.entry.js +0 -122
- package/dist/esm/mapping-utils-26beb904.js +0 -38
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
function disableNavigation(view) {
|
|
2
|
-
if (view.type === '2d') {
|
|
3
|
-
view.constraints.rotationEnabled = false;
|
|
4
|
-
}
|
|
5
|
-
view.popup.dockEnabled = true;
|
|
6
|
-
// Removes the zoom action on the popup
|
|
7
|
-
view.popup.actions.removeAll();
|
|
8
|
-
view.popup.viewModel.includeDefaultActions = false;
|
|
9
|
-
// stops propagation of default behavior when an event fires
|
|
10
|
-
function stopEvtPropagation(event) {
|
|
11
|
-
event.stopPropagation();
|
|
12
|
-
}
|
|
13
|
-
// exlude the zoom widget from the default UI
|
|
14
|
-
view.ui.components = ['attribution'];
|
|
15
|
-
// disable mouse wheel scroll zooming on the view
|
|
16
|
-
view.on('mouse-wheel', stopEvtPropagation);
|
|
17
|
-
// disable zooming via double-click on the view
|
|
18
|
-
view.on('double-click', stopEvtPropagation);
|
|
19
|
-
// disable zooming out via double-click + Control on the view
|
|
20
|
-
view.on('double-click', ['Control'], stopEvtPropagation);
|
|
21
|
-
// disables pinch-zoom and panning on the view
|
|
22
|
-
view.on('drag', stopEvtPropagation);
|
|
23
|
-
// disable the view's zoom box to prevent the Shift + drag
|
|
24
|
-
// and Shift + Control + drag zoom gestures.
|
|
25
|
-
view.on('drag', ['Shift'], stopEvtPropagation);
|
|
26
|
-
view.on('drag', ['Shift', 'Control'], stopEvtPropagation);
|
|
27
|
-
// prevents zooming with the + and - keys
|
|
28
|
-
view.on('key-down', event => {
|
|
29
|
-
const prohibitedKeys = ['+', '-', 'Shift', '_', '=', 'ArrowUp', 'ArrowDown', 'ArrowRight', 'ArrowLeft'];
|
|
30
|
-
const keyPressed = event.key;
|
|
31
|
-
if (prohibitedKeys.indexOf(keyPressed) !== -1) {
|
|
32
|
-
event.stopPropagation();
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
return view;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { disableNavigation as d };
|