@map-colonies/react-components 4.2.2 → 4.3.1
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.
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.trackerPosition{background-color:var(--mdc-theme-surface);z-index:2000;padding:2px;border-radius:2px;font-size:12px;height:24px;text-align:center;line-height:20px;white-space:nowrap}.scalePosition{background-color:var(--mdc-theme-surface);padding:1px;border-radius:2px;font-size:12px;width:110px}.distance-legend-label{text-align:center}.distance-legend-scale-bar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.zoomLevel{z-index:2000;background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.zoomLevelValue{margin:2px;font-size:14px;line-height:10px;text-align:center}.zoomLevelLabel{font-size:8px;line-height:8px}.mapViewIcon{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.mapViewIcon:hover{background:#48b;border-color:#aef}.mapViewCurrent{fill:#aef;border:1px solid #aef;border-radius:4px}.mapSelector{width:260px;list-style:none;padding-left:0;display:flex;flex-wrap:wrap;grid-gap:4px;min-height:140px;margin-block-start:0px;padding-inline-start:0px}.mapContainerSelected{border:blueviolet 2px solid!important;border-radius:2px}.mapContainer:hover{border:tomato 2px solid;border-radius:2px}.mapContainerImg{width:100%;height:100%}.mapLabel{font-size:12px}.mapLabel:before{content:"\\a0"}.mapScenesContainer{display:flex;gap:8px}.settingsIconContainer,.mapLegendToggleContainer{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.settingsIconContainer:hover,.mapLegendToggleContainer:hover{background:#48b;border-color:#aef}.baseMapsContainer{margin-top:12px;min-height:58%}.settingsDialogPortal{transform:translateZ(0);height:calc(100vh - 220px);max-height:460px;width:280px;position:absolute;top:40px;right:80px}.settingsDialogPortal .mdc-dialog__container{align-items:unset}.settingsDialogPortal .mdc-dialog .mdc-dialog__surface{max-height:unset}body[dir=rtl] .settingsDialogPortal{left:80px;right:unset}.sectionLabel{margin-block-end:.5em}.mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}div.MuiPaper-root{transition:none!important}.mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .mapLegendCloseBtn{right:unset;left:0}.mapLegendToggleContainer{display:flex;align-items:center;justify-content:center}.mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.sidebarHeaderContainer{text-align:center;margin-top:40px}.sidebarTitle{font-size:1.5rem;font-weight:700}.mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.legendActionsContainer{display:flex;flex-direction:row;align-self:center}.legendAction:not(:last-child):after{content:"|";margin:0 4px}.mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.legendAction:hover{filter:brightness(1.2)}.noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.noLegendsMsg{text-align:center}.cesium-widget-credits{display:none!important}.cesium-viewer-fullscreenContainer{bottom:8px;right:8px;left:unset}body[dir=rtl] .cesium-viewer-fullscreenContainer{left:8px;right:unset}body[dir=rtl] .cesium-viewer-toolbar{left:5px;right:unset}.cesium-button.cesium-fullscreenButton{border-radius:14%}.toolsContainer{color:var(--mdc-theme-on-surface);display:flex;gap:8px;z-index:2000;position:absolute;bottom:12px;right:40px;opacity:.7}body[dir=rtl] .toolsContainer{left:40px;right:unset}.sideToolsContainer{display:flex;flex-direction:row;gap:8px;z-index:2000;position:absolute;top:12px;right:40px}body[dir=rtl] .sideToolsContainer{left:40px;right:unset}.viewer{display:flex;flex-direction:row}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:1000;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:20000;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.trackerPosition{background-color:var(--mdc-theme-surface);z-index:2000;padding:2px;border-radius:2px;font-size:12px;height:24px;text-align:center;line-height:20px;white-space:nowrap}.scalePosition{background-color:var(--mdc-theme-surface);padding:1px;border-radius:2px;font-size:12px;width:110px}.distance-legend-label{text-align:center}.distance-legend-scale-bar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.zoomLevel{z-index:2000;background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.zoomLevelValue{margin:2px;font-size:14px;line-height:10px;text-align:center}.zoomLevelLabel{font-size:8px;line-height:8px}.mapViewIcon{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.mapViewIcon:hover{background:#48b;border-color:#aef}.mapViewCurrent{fill:#aef;border:1px solid #aef;border-radius:4px}.mapSelector{width:260px;list-style:none;padding-left:0;display:flex;flex-wrap:wrap;grid-gap:4px;min-height:140px;margin-block-start:0px;padding-inline-start:0px}.mapContainerSelected{border:blueviolet 2px solid!important;border-radius:2px}.mapContainer:hover{border:tomato 2px solid;border-radius:2px}.mapContainerImg{width:100%;height:100%}.mapLabel{font-size:12px}.mapLabel:before{content:"\\a0"}.mapScenesContainer{display:flex;gap:8px}.settingsIconContainer,.mapLegendToggleContainer{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.settingsIconContainer:hover,.mapLegendToggleContainer:hover{background:#48b;border-color:#aef}.baseMapsContainer{margin-top:12px;min-height:58%}.settingsDialogPortal{transform:translateZ(0);height:calc(100vh - 220px);max-height:460px;width:280px;position:absolute;top:40px;right:80px}.settingsDialogPortal .mdc-dialog__container{align-items:unset}.settingsDialogPortal .mdc-dialog .mdc-dialog__surface{max-height:unset}body[dir=rtl] .settingsDialogPortal{left:80px;right:unset}.sectionLabel{margin-block-end:.5em}.mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}div.MuiPaper-root{transition:none!important}.mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .mapLegendCloseBtn{right:unset;left:0}.mapLegendToggleContainer{display:flex;align-items:center;justify-content:center}.mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.sidebarHeaderContainer{text-align:center;margin-top:40px}.sidebarTitle{font-size:1.5rem;font-weight:700}.mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.legendActionsContainer{display:flex;flex-direction:row;align-self:center}.legendAction:not(:last-child):after{content:"|";margin:0 4px}.mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.legendAction:hover{filter:brightness(1.2)}.noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.noLegendsMsg{text-align:center}.cesium-widget-credits{display:none!important}.cesium-viewer-fullscreenContainer{bottom:8px;right:8px;left:unset}body[dir=rtl] .cesium-viewer-fullscreenContainer{left:8px;right:unset}body[dir=rtl] .cesium-viewer-toolbar{left:5px;right:unset}.cesium-button.cesium-fullscreenButton{border-radius:14%}.toolsContainer{color:var(--mdc-theme-on-surface);display:flex;gap:8px;z-index:2000;position:absolute;bottom:12px;right:40px;opacity:.7}body[dir=rtl] .toolsContainer{left:40px;right:unset}.sideToolsContainer{display:flex;flex-direction:row;gap:8px;z-index:2000;position:absolute;top:12px;right:40px}body[dir=rtl] .sideToolsContainer{left:40px;right:unset}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:1000;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:20000;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
var tn = Object.defineProperty;
|
|
3
3
|
var nn = (e, n, t) => n in e ? tn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
4
4
|
var Z = (e, n, t) => (nn(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
5
|
-
import { jsx as l, jsxs as
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
8
|
-
import { isValid as
|
|
9
|
-
import { he as
|
|
10
|
-
import { MuiPickersUtilsProvider as
|
|
11
|
-
import
|
|
12
|
-
import { createTheme as cn, makeStyles as
|
|
13
|
-
import { Box as dn, ThemeProvider as
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import { default as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { Map as
|
|
5
|
+
import { jsx as l, jsxs as N, Fragment as ie } from "react/jsx-runtime";
|
|
6
|
+
import * as At from "react";
|
|
7
|
+
import ve, { useState as D, useEffect as k, useMemo as ze, forwardRef as rn, createContext as Ae, useRef as we, useContext as ke, useCallback as me, useLayoutEffect as on } from "react";
|
|
8
|
+
import { isValid as Te, isBefore as sn, format as ht, endOfDay as an, isSameDay as mt } from "date-fns";
|
|
9
|
+
import { he as kt, enUS as xt } from "date-fns/locale";
|
|
10
|
+
import { MuiPickersUtilsProvider as Ot, KeyboardDateTimePicker as Qe, KeyboardDatePicker as ln } from "@material-ui/pickers";
|
|
11
|
+
import Rt from "@date-io/date-fns";
|
|
12
|
+
import { createTheme as cn, makeStyles as xe, createStyles as $e } from "@material-ui/core/styles";
|
|
13
|
+
import { Box as dn, ThemeProvider as Nt, Popover as un, Paper as et, TableRow as Fe, TableCell as Le, TableSortLabel as hn, IconButton as mn, Collapse as pn, TableContainer as gn, Table as fn, TableBody as yn, Typography as vn, TablePagination as En } from "@material-ui/core";
|
|
14
|
+
import { useTheme as Bt, ThemeProvider as Cn, Button as Ie, TextField as He, Tooltip as tt, Menu as wn, MenuItem as Ke, Icon as Pe, Dialog as bn, DialogTitle as Tn, DialogContent as _n, Drawer as Sn, DrawerHeader as Ln, DrawerTitle as Pn, DrawerContent as Mn, LinearProgress as Dn } from "@map-colonies/react-core";
|
|
15
|
+
import { default as Vs } from "@material-ui/core/useMediaQuery";
|
|
16
|
+
import In, { registerLocale as An } from "react-datepicker";
|
|
17
|
+
import kn from "date-fns/locale/he";
|
|
18
|
+
import _e from "moment";
|
|
19
|
+
import xn from "@turf/rewind";
|
|
20
|
+
import { Map as On, View as Rn } from "ol";
|
|
21
21
|
import "ol/ol.css";
|
|
22
|
-
import { format as
|
|
23
|
-
import { defaults as
|
|
24
|
-
import
|
|
25
|
-
import { transform as
|
|
26
|
-
import { Tile as
|
|
27
|
-
import { Vector as
|
|
28
|
-
import { GeoJSON as
|
|
29
|
-
import { Draw as
|
|
30
|
-
import { createBox as
|
|
31
|
-
import
|
|
32
|
-
import { createSvgIcon as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { createPortal as
|
|
36
|
-
import { Viewer as
|
|
22
|
+
import { format as pt } from "ol/coordinate";
|
|
23
|
+
import { defaults as Nn, FullScreen as gt } from "ol/control";
|
|
24
|
+
import qe from "ol/control/MousePosition";
|
|
25
|
+
import { transform as Bn } from "ol/proj";
|
|
26
|
+
import { Tile as Fn, Vector as Hn } from "ol/layer";
|
|
27
|
+
import { Vector as Gn, OSM as Vn } from "ol/source";
|
|
28
|
+
import { GeoJSON as Ft } from "ol/format";
|
|
29
|
+
import { Draw as zn } from "ol/interaction";
|
|
30
|
+
import { createBox as $n } from "ol/interaction/Draw";
|
|
31
|
+
import Wn from "@material-ui/core/TableHead";
|
|
32
|
+
import { createSvgIcon as Ht } from "@material-ui/core/utils";
|
|
33
|
+
import Un from "@material-ui/core/CssBaseline";
|
|
34
|
+
import jn from "@material-ui/core/ScopedCssBaseline";
|
|
35
|
+
import { createPortal as Kn } from "react-dom";
|
|
36
|
+
import { Viewer as qn, Cesium3DTileset as Yn, GeoJsonDataSource as Xn, ImageryLayer as Zn, Entity as Jn, EntityDescription as Gt, PolygonGraphics as Qn, RectangleGraphics as ei, CustomDataSource as ti, PolylineGraphics as ni } from "resium";
|
|
37
37
|
import * as p from "cesium";
|
|
38
|
-
import { ScreenSpaceEventType as
|
|
39
|
-
import { Math as
|
|
40
|
-
import { get as
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import ki from "
|
|
50
|
-
|
|
38
|
+
import { ScreenSpaceEventType as ii, Cartesian3 as pe, Math as le, WebMercatorProjection as ri, SceneMode as Ce, Cartesian2 as Me, Cartographic as We, EventHelper as oi, EllipsoidGeodesic as si, UrlTemplateImageryProvider as st, WebMapServiceImageryProvider as at, WebMapTileServiceImageryProvider as lt, Event as ai, SingleTileImageryProvider as li, Rectangle as Se, Viewer as ci, Matrix4 as di, OpenStreetMapImageryProvider as ui, Color as hi, PolygonHierarchy as mi, PolylineDashMaterialProperty as pi, ConstantProperty as gi, ConstantPositionProperty as fi, BoundingSphere as yi, Ellipsoid as vi, GeographicTilingScheme as Ei, Resource as Ci, EllipsoidTerrainProvider as wi, CesiumTerrainProvider as bi, VerticalOrigin as Ti, LabelStyle as _i } from "cesium";
|
|
39
|
+
import { Math as $s, sampleTerrainMostDetailed as Ws } from "cesium";
|
|
40
|
+
import { get as ee, isNumber as Ge, isEmpty as nt, isArray as Si, find as ft } from "lodash";
|
|
41
|
+
import Li from "@turf/boolean-point-in-polygon";
|
|
42
|
+
import "@map-colonies/react-core/dist/linear-progress/styles";
|
|
43
|
+
import * as Vt from "@turf/helpers";
|
|
44
|
+
import zt from "@turf/bbox";
|
|
45
|
+
import $t from "@turf/bbox-polygon";
|
|
46
|
+
import Pi from "textarea-caret";
|
|
47
|
+
import Mi, { setCaretPosition as Di } from "get-input-selection";
|
|
48
|
+
import { ChonkyActions as H, FileHelper as Wt, setChonkyDefaults as Ii, FullFileBrowser as Ai } from "chonky";
|
|
49
|
+
import { ChonkyIconFA as ki } from "chonky-icon-fontawesome";
|
|
50
|
+
import xi from "filesize";
|
|
51
|
+
var se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(se || {}), ce = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(ce || {}), it = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(it || {});
|
|
51
52
|
const J = {
|
|
52
53
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
53
54
|
DATE_PICKER: {
|
|
@@ -78,10 +79,10 @@ const J = {
|
|
|
78
79
|
}, ae = (e) => {
|
|
79
80
|
const { children: n, ...t } = e;
|
|
80
81
|
return /* @__PURE__ */ l(dn, { ...t, children: n });
|
|
81
|
-
},
|
|
82
|
+
}, Ut = (e) => {
|
|
82
83
|
const n = e.type === "dark";
|
|
83
|
-
return
|
|
84
|
-
},
|
|
84
|
+
return ve.useMemo(() => Oi(e, n), [n, e]);
|
|
85
|
+
}, Oi = (e, n = !1) => cn({
|
|
85
86
|
palette: {
|
|
86
87
|
type: n ? "dark" : "light",
|
|
87
88
|
primary: {
|
|
@@ -103,109 +104,109 @@ const J = {
|
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
});
|
|
106
|
-
const
|
|
107
|
-
(e) =>
|
|
107
|
+
const Ri = 2, Ni = 0.5, Bi = xe(
|
|
108
|
+
(e) => $e({
|
|
108
109
|
container: {
|
|
109
|
-
padding: e.spacing(
|
|
110
|
+
padding: e.spacing(Ri),
|
|
110
111
|
alignItems: "center"
|
|
111
112
|
},
|
|
112
113
|
setButton: {
|
|
113
114
|
marginTop: e.spacing(1)
|
|
114
115
|
},
|
|
115
116
|
margin: {
|
|
116
|
-
marginLeft: e.spacing(
|
|
117
|
+
marginLeft: e.spacing(Ni)
|
|
117
118
|
}
|
|
118
119
|
})
|
|
119
|
-
),
|
|
120
|
-
var U,
|
|
121
|
-
const n =
|
|
122
|
-
|
|
120
|
+
), Fi = (e) => {
|
|
121
|
+
var U, A, $, O;
|
|
122
|
+
const n = Bi(), t = Bt(), i = Ut(t), [o, r] = D(null), [d, u] = D(null), [m, E] = D(J.DATE_RANGE_PICKER.dateFormat), w = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, P = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, T = ((U = e.local) == null ? void 0 : U.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, I = ((A = e.local) == null ? void 0 : A.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, G = (($ = e.local) == null ? void 0 : $.setText) ?? J.DATE_RANGE_PICKER.local.setText, K = (((O = e.local) == null ? void 0 : O.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === ce.HE ? kt : xt;
|
|
123
|
+
k(() => {
|
|
123
124
|
r(e.from ?? null);
|
|
124
|
-
}, [e.from]),
|
|
125
|
+
}, [e.from]), k(() => {
|
|
125
126
|
u(e.to ?? null);
|
|
126
|
-
}, [e.to]),
|
|
127
|
+
}, [e.to]), k(() => {
|
|
127
128
|
E(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
128
129
|
}, [e.dateFormat]);
|
|
129
130
|
const F = Boolean(
|
|
130
|
-
|
|
131
|
+
Te(o) && !d || Te(d) && !o || o && d && Te(o) && Te(d) && sn(o, d)
|
|
131
132
|
), Y = () => {
|
|
132
133
|
e.onChange({
|
|
133
|
-
from: o &&
|
|
134
|
-
to: d &&
|
|
134
|
+
from: o && Te(o) ? o : void 0,
|
|
135
|
+
to: d && Te(d) ? d : void 0
|
|
135
136
|
});
|
|
136
137
|
};
|
|
137
|
-
return /* @__PURE__ */ l(
|
|
138
|
+
return /* @__PURE__ */ l(Nt, { theme: i, children: /* @__PURE__ */ l(
|
|
138
139
|
ae,
|
|
139
140
|
{
|
|
140
141
|
className: `${n.container} drpContainer`,
|
|
141
142
|
display: "flex",
|
|
142
143
|
flexDirection: w,
|
|
143
144
|
width: w === "column" ? e.contentWidth : "unset",
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
+
children: /* @__PURE__ */ N(Ot, { utils: Rt, locale: K, children: [
|
|
145
146
|
/* @__PURE__ */ l(
|
|
146
|
-
|
|
147
|
+
Qe,
|
|
147
148
|
{
|
|
148
149
|
variant: "inline",
|
|
149
150
|
placeholder: T,
|
|
150
151
|
onChange: (V) => r(V),
|
|
151
152
|
value: o,
|
|
152
|
-
disableFuture:
|
|
153
|
+
disableFuture: P,
|
|
153
154
|
format: m,
|
|
154
155
|
maxDate: e.maxDate,
|
|
155
156
|
minDate: e.minDate
|
|
156
157
|
}
|
|
157
158
|
),
|
|
158
159
|
/* @__PURE__ */ l(
|
|
159
|
-
|
|
160
|
+
Qe,
|
|
160
161
|
{
|
|
161
162
|
variant: "inline",
|
|
162
|
-
placeholder:
|
|
163
|
+
placeholder: I,
|
|
163
164
|
className: n.margin,
|
|
164
165
|
onChange: (V) => u(V),
|
|
165
166
|
value: d,
|
|
166
|
-
disableFuture:
|
|
167
|
+
disableFuture: P,
|
|
167
168
|
format: m,
|
|
168
169
|
maxDate: e.maxDate,
|
|
169
170
|
minDate: e.minDate
|
|
170
171
|
}
|
|
171
172
|
),
|
|
172
173
|
/* @__PURE__ */ l(Cn, { options: t, children: /* @__PURE__ */ l(
|
|
173
|
-
|
|
174
|
+
Ie,
|
|
174
175
|
{
|
|
175
176
|
className: `${n.setButton} ${n.margin}`,
|
|
176
177
|
raised: !0,
|
|
177
178
|
onClick: Y,
|
|
178
179
|
disabled: !F,
|
|
179
|
-
children:
|
|
180
|
+
children: G
|
|
180
181
|
}
|
|
181
182
|
) })
|
|
182
183
|
] })
|
|
183
184
|
}
|
|
184
185
|
) });
|
|
185
|
-
},
|
|
186
|
+
}, Hi = (e) => {
|
|
186
187
|
const { children: n, ...t } = e;
|
|
187
188
|
return /* @__PURE__ */ l(un, { ...t, children: n });
|
|
188
189
|
};
|
|
189
|
-
const
|
|
190
|
-
var
|
|
191
|
-
const [n, t] =
|
|
192
|
-
m(
|
|
193
|
-
}, w = (
|
|
194
|
-
|
|
195
|
-
},
|
|
190
|
+
const ts = (e) => {
|
|
191
|
+
var A, $;
|
|
192
|
+
const [n, t] = D(null), [i, o] = D(null), [r, d] = D(J.DATE_RANGE_PICKER.dateFormat), [u, m] = ve.useState(null), E = (O) => {
|
|
193
|
+
m(O.currentTarget);
|
|
194
|
+
}, w = (O) => {
|
|
195
|
+
O.currentTarget.tagName === "I" ? m(O.currentTarget.previousElementSibling) : m(O.currentTarget);
|
|
196
|
+
}, P = () => {
|
|
196
197
|
m(null);
|
|
197
|
-
}, T = Boolean(u),
|
|
198
|
-
|
|
198
|
+
}, T = Boolean(u), I = e.controlsLayout ?? "column";
|
|
199
|
+
k(() => {
|
|
199
200
|
t(e.from ?? null);
|
|
200
|
-
}, [e.from]),
|
|
201
|
+
}, [e.from]), k(() => {
|
|
201
202
|
o(e.to ?? null);
|
|
202
|
-
}, [e.to]),
|
|
203
|
+
}, [e.to]), k(() => {
|
|
203
204
|
d(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
204
205
|
}, [e.dateFormat]);
|
|
205
|
-
const
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
-
K ? /* @__PURE__ */ l(
|
|
208
|
-
|
|
206
|
+
const G = ((A = e.local) == null ? void 0 : A.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, q = (($ = e.local) == null ? void 0 : $.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, K = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, F = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, Y = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, U = ze(() => `${n ? ht(n, r) : G} - ${i ? ht(i, r) : q}`, [n, i, r, G, q]);
|
|
207
|
+
return /* @__PURE__ */ N(ie, { children: [
|
|
208
|
+
K ? /* @__PURE__ */ l(Ie, { style: { width: e.width }, raised: !0, onClick: E, className: "drpOpener", children: U }) : /* @__PURE__ */ l(
|
|
209
|
+
He,
|
|
209
210
|
{
|
|
210
211
|
className: "drpOpener",
|
|
211
212
|
readOnly: !0,
|
|
@@ -219,10 +220,10 @@ const Qo = (e) => {
|
|
|
219
220
|
}
|
|
220
221
|
}
|
|
221
222
|
),
|
|
222
|
-
/* @__PURE__ */ l(
|
|
223
|
-
|
|
223
|
+
/* @__PURE__ */ l(Hi, { open: T, anchorEl: u, onClose: P, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
|
|
224
|
+
Fi,
|
|
224
225
|
{
|
|
225
|
-
controlsLayout:
|
|
226
|
+
controlsLayout: I,
|
|
226
227
|
contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - F,
|
|
227
228
|
dateFormat: r,
|
|
228
229
|
disableFuture: Y,
|
|
@@ -231,13 +232,13 @@ const Qo = (e) => {
|
|
|
231
232
|
local: e.local,
|
|
232
233
|
from: n ?? void 0,
|
|
233
234
|
to: i ?? void 0,
|
|
234
|
-
onChange: ({ from:
|
|
235
|
-
t(
|
|
235
|
+
onChange: ({ from: O, to: V }) => {
|
|
236
|
+
t(O ?? null), o(V ?? null), e.onChange({ from: O, to: V }), P();
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
) })
|
|
239
240
|
] });
|
|
240
|
-
},
|
|
241
|
+
}, Ye = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ns = ({
|
|
241
242
|
endDate: e,
|
|
242
243
|
startDate: n,
|
|
243
244
|
setEndDate: t = () => {
|
|
@@ -251,46 +252,46 @@ const Qo = (e) => {
|
|
|
251
252
|
startTimeInputClassName: m = "",
|
|
252
253
|
startTimeLabel: E = "",
|
|
253
254
|
startTimeWrapperClassName: w = ""
|
|
254
|
-
}) => /* @__PURE__ */
|
|
255
|
+
}) => /* @__PURE__ */ N("div", { className: `timeRangeWrapper ${u}`, children: [
|
|
255
256
|
/* @__PURE__ */ l("div", { className: `startTimeWrapper ${w}`, children: /* @__PURE__ */ l(
|
|
256
|
-
|
|
257
|
+
He,
|
|
257
258
|
{
|
|
258
259
|
label: E,
|
|
259
260
|
disabled: n === null,
|
|
260
261
|
className: `timeRangeInput ${m}`,
|
|
261
262
|
name: "start-time",
|
|
262
263
|
type: "time",
|
|
263
|
-
value:
|
|
264
|
-
onChange: (
|
|
265
|
-
const T =
|
|
266
|
-
hours:
|
|
267
|
-
minutes:
|
|
264
|
+
value: _e(n).format("HH:mm"),
|
|
265
|
+
onChange: (P) => {
|
|
266
|
+
const T = _e(n), I = _e(P.currentTarget.value, "HH:mm"), G = T.set({
|
|
267
|
+
hours: I.get("hours"),
|
|
268
|
+
minutes: I.get("minutes")
|
|
268
269
|
});
|
|
269
|
-
i(
|
|
270
|
+
i(G.toDate());
|
|
270
271
|
}
|
|
271
272
|
}
|
|
272
273
|
) }),
|
|
273
274
|
/* @__PURE__ */ l("div", { className: `endTimeWrapper ${d}`, children: /* @__PURE__ */ l(
|
|
274
|
-
|
|
275
|
+
He,
|
|
275
276
|
{
|
|
276
277
|
label: r,
|
|
277
278
|
disabled: e === null,
|
|
278
279
|
className: `timeRangeInput ${o}`,
|
|
279
280
|
name: "end-time",
|
|
280
281
|
type: "time",
|
|
281
|
-
value:
|
|
282
|
-
onChange: (
|
|
283
|
-
const T =
|
|
284
|
-
hours:
|
|
285
|
-
minutes:
|
|
282
|
+
value: _e(e).format("HH:mm"),
|
|
283
|
+
onChange: (P) => {
|
|
284
|
+
const T = _e(e), I = _e(P.currentTarget.value, "HH:mm"), G = T.set({
|
|
285
|
+
hours: I.get("hours"),
|
|
286
|
+
minutes: I.get("minutes")
|
|
286
287
|
});
|
|
287
|
-
t(
|
|
288
|
+
t(G.toDate());
|
|
288
289
|
}
|
|
289
290
|
}
|
|
290
291
|
) })
|
|
291
|
-
] }),
|
|
292
|
+
] }), Gi = rn(
|
|
292
293
|
({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
|
|
293
|
-
|
|
294
|
+
He,
|
|
294
295
|
{
|
|
295
296
|
...i,
|
|
296
297
|
className: "dateRangeCustomInput",
|
|
@@ -302,16 +303,16 @@ const Qo = (e) => {
|
|
|
302
303
|
value: e
|
|
303
304
|
}
|
|
304
305
|
)
|
|
305
|
-
),
|
|
306
|
+
), Vi = ({ setStartDate: e = () => {
|
|
306
307
|
}, setEndDate: n = () => {
|
|
307
308
|
}, shortcuts: t, dateRange: i, onShortcut: o }) => {
|
|
308
|
-
const [r, d] =
|
|
309
|
+
const [r, d] = D(), u = ze(
|
|
309
310
|
() => t.map((m) => m instanceof Function ? m() : m),
|
|
310
311
|
[t]
|
|
311
312
|
);
|
|
312
|
-
return
|
|
313
|
+
return k(() => {
|
|
313
314
|
for (const m of u) {
|
|
314
|
-
const E = i.startDate && i.endDate &&
|
|
315
|
+
const E = i.startDate && i.endDate && mt(m.startDate, i.startDate) && mt(m.endDate, i.endDate);
|
|
315
316
|
r ? m.id === r && (E || d(void 0)) : E && d(m.id);
|
|
316
317
|
}
|
|
317
318
|
}, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, E) => {
|
|
@@ -319,11 +320,11 @@ const Qo = (e) => {
|
|
|
319
320
|
e(m.startDate), n(m.endDate);
|
|
320
321
|
};
|
|
321
322
|
return /* @__PURE__ */ l(
|
|
322
|
-
|
|
323
|
+
Ie,
|
|
323
324
|
{
|
|
324
325
|
type: "button",
|
|
325
326
|
className: `shortcut ${r === m.id ? "selected" : ""}`,
|
|
326
|
-
onClick: (
|
|
327
|
+
onClick: (P) => {
|
|
327
328
|
w(), o == null || o({ startDate: m.startDate, endDate: m.endDate });
|
|
328
329
|
},
|
|
329
330
|
outlined: !0,
|
|
@@ -332,7 +333,7 @@ const Qo = (e) => {
|
|
|
332
333
|
m.id + E
|
|
333
334
|
);
|
|
334
335
|
}) });
|
|
335
|
-
},
|
|
336
|
+
}, is = ve.forwardRef((e, n) => {
|
|
336
337
|
const {
|
|
337
338
|
// Time range input props
|
|
338
339
|
// endTimeInputClassName,
|
|
@@ -353,78 +354,78 @@ const Qo = (e) => {
|
|
|
353
354
|
// withTimeRange,
|
|
354
355
|
withShortcuts: E,
|
|
355
356
|
locale: w = "en"
|
|
356
|
-
} = e, [
|
|
357
|
-
|
|
358
|
-
w === "he" &&
|
|
359
|
-
}, [w]),
|
|
360
|
-
var
|
|
361
|
-
((
|
|
362
|
-
}, [e.startDate, e.endDate,
|
|
363
|
-
const Y =
|
|
364
|
-
let
|
|
365
|
-
return E && r && (
|
|
357
|
+
} = e, [P, T] = D(null), [I, G] = D(null), [q, K] = D(!1), F = r ? { startDate: P, endDate: I } : P;
|
|
358
|
+
k(() => {
|
|
359
|
+
w === "he" && An("he", kn);
|
|
360
|
+
}, [w]), k(() => {
|
|
361
|
+
var A, $;
|
|
362
|
+
((A = e.startDate) == null ? void 0 : A.toString()) !== (P == null ? void 0 : P.toString()) && T(e.startDate), (($ = e.endDate) == null ? void 0 : $.toString()) !== (I == null ? void 0 : I.toString()) && G(e.endDate);
|
|
363
|
+
}, [e.startDate, e.endDate, P, I]);
|
|
364
|
+
const Y = ze(() => {
|
|
365
|
+
let A = "pickerContainer" + (w === "he" ? " pickerContainer-rtl" : "");
|
|
366
|
+
return E && r && (A += " pickerContainer-withShortcuts"), A;
|
|
366
367
|
}, [w, E, r]), U = m ? {
|
|
367
368
|
showMonthDropdown: !0,
|
|
368
369
|
showYearDropdown: !0,
|
|
369
370
|
dropdownMode: "select"
|
|
370
371
|
} : {};
|
|
371
372
|
return /* @__PURE__ */ l("div", { className: Y, style: { direction: w === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
|
|
372
|
-
|
|
373
|
+
In,
|
|
373
374
|
{
|
|
374
375
|
...e,
|
|
375
376
|
ref: n,
|
|
376
377
|
onClickOutside: () => K(!1),
|
|
377
|
-
open:
|
|
378
|
-
startDate:
|
|
379
|
-
selected:
|
|
380
|
-
endDate:
|
|
378
|
+
open: q,
|
|
379
|
+
startDate: Ye(F) ? P : void 0,
|
|
380
|
+
selected: P,
|
|
381
|
+
endDate: Ye(F) ? I : void 0,
|
|
381
382
|
monthsShown: e.monthsShown ?? 2,
|
|
382
383
|
calendarClassName: `pickerCalendar ${t}`,
|
|
383
|
-
weekDayClassName: (
|
|
384
|
-
dayClassName: (
|
|
385
|
-
monthClassName: (
|
|
386
|
-
onChange: (
|
|
387
|
-
if (Array.isArray(
|
|
388
|
-
const [
|
|
389
|
-
T(
|
|
384
|
+
weekDayClassName: (A) => `pickerWeek ${(i == null ? void 0 : i(A)) ?? ""}`,
|
|
385
|
+
dayClassName: (A) => `pickerDay ${(i == null ? void 0 : i(A)) ?? ""}`,
|
|
386
|
+
monthClassName: (A) => `pickerMonth ${(o == null ? void 0 : o(A)) ?? ""}`,
|
|
387
|
+
onChange: (A, $) => {
|
|
388
|
+
if (Array.isArray(A)) {
|
|
389
|
+
const [O, V] = A;
|
|
390
|
+
T(O), G(V), d == null || d({ startDate: O, endDate: V && an(V) }, $);
|
|
390
391
|
} else
|
|
391
|
-
T(
|
|
392
|
+
T(A), d == null || d(A, $);
|
|
392
393
|
},
|
|
393
|
-
customInput: /* @__PURE__ */ l(
|
|
394
|
+
customInput: /* @__PURE__ */ l(Gi, { name: u, onInputClick: () => {
|
|
394
395
|
K(!0);
|
|
395
396
|
} }),
|
|
396
397
|
showTimeInput: !!(E && r),
|
|
397
398
|
timeInputLabel: "",
|
|
398
|
-
customTimeInput: E &&
|
|
399
|
-
d == null || d(
|
|
400
|
-
}, shortcuts: E, setEndDate:
|
|
399
|
+
customTimeInput: E && Ye(F) && /* @__PURE__ */ l(Vi, { onShortcut: (A) => {
|
|
400
|
+
d == null || d(A), K(!1);
|
|
401
|
+
}, shortcuts: E, setEndDate: G, setStartDate: T, dateRange: F }),
|
|
401
402
|
showMonthYearDropdown: void 0,
|
|
402
403
|
...U
|
|
403
404
|
}
|
|
404
405
|
) });
|
|
405
406
|
});
|
|
406
|
-
const
|
|
407
|
-
const n =
|
|
407
|
+
const rs = (e) => {
|
|
408
|
+
const n = Bt(), t = Ut(n), [i, o] = D(e.value), {
|
|
408
409
|
format: r = J.DATE_PICKER.dateFormat,
|
|
409
410
|
variant: d = J.DATE_PICKER.variant,
|
|
410
411
|
disableFuture: u = J.DATE_PICKER.disableFuture,
|
|
411
412
|
local: m,
|
|
412
413
|
onChange: E,
|
|
413
414
|
showTime: w = J.DATE_PICKER.showTime,
|
|
414
|
-
value:
|
|
415
|
+
value: P,
|
|
415
416
|
...T
|
|
416
|
-
} = e, { placeHolderText:
|
|
417
|
+
} = e, { placeHolderText: I = J.DATE_PICKER.local.placeHolderText, calendarLocale: G } = m ?? {
|
|
417
418
|
placeHolderText: J.DATE_PICKER.local.placeHolderText,
|
|
418
419
|
calendarLocale: ce.EN
|
|
419
|
-
},
|
|
420
|
+
}, q = G === ce.HE ? kt : xt, K = (F) => {
|
|
420
421
|
o(F), E(F);
|
|
421
422
|
};
|
|
422
|
-
return /* @__PURE__ */ l(
|
|
423
|
+
return /* @__PURE__ */ l(Nt, { theme: t, children: /* @__PURE__ */ N(Ot, { utils: Rt, locale: q, children: [
|
|
423
424
|
w && /* @__PURE__ */ l(
|
|
424
|
-
|
|
425
|
+
Qe,
|
|
425
426
|
{
|
|
426
427
|
variant: d,
|
|
427
|
-
placeholder:
|
|
428
|
+
placeholder: I,
|
|
428
429
|
onChange: K,
|
|
429
430
|
value: i,
|
|
430
431
|
disableFuture: u,
|
|
@@ -436,7 +437,7 @@ const ns = (e) => {
|
|
|
436
437
|
ln,
|
|
437
438
|
{
|
|
438
439
|
variant: d,
|
|
439
|
-
placeholder:
|
|
440
|
+
placeholder: I,
|
|
440
441
|
onChange: K,
|
|
441
442
|
value: i,
|
|
442
443
|
disableFuture: u,
|
|
@@ -445,25 +446,25 @@ const ns = (e) => {
|
|
|
445
446
|
}
|
|
446
447
|
)
|
|
447
448
|
] }) });
|
|
448
|
-
},
|
|
449
|
-
(e) =>
|
|
449
|
+
}, zi = 18, $i = xe(
|
|
450
|
+
(e) => $e({
|
|
450
451
|
drawingButton: {
|
|
451
|
-
width: e.spacing(
|
|
452
|
+
width: e.spacing(zi)
|
|
452
453
|
},
|
|
453
454
|
fullWidth: {
|
|
454
455
|
width: "100%",
|
|
455
456
|
marginTop: "36px"
|
|
456
457
|
}
|
|
457
458
|
})
|
|
458
|
-
),
|
|
459
|
-
const n =
|
|
459
|
+
), Wi = (e) => {
|
|
460
|
+
const n = $i(), [t, i] = ve.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: d, onReset: u } = e, m = (w) => {
|
|
460
461
|
i(w.currentTarget);
|
|
461
462
|
}, E = () => {
|
|
462
463
|
i(null);
|
|
463
464
|
};
|
|
464
|
-
return o ? /* @__PURE__ */ l(
|
|
465
|
-
/* @__PURE__ */ l(
|
|
466
|
-
/* @__PURE__ */
|
|
465
|
+
return o ? /* @__PURE__ */ l(tt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ie, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(ae, { position: "relative", children: [
|
|
466
|
+
/* @__PURE__ */ l(tt, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Ie, { className: n.drawingButton, raised: !0, onClick: m, children: "Draw AOI" }) }),
|
|
467
|
+
/* @__PURE__ */ N(
|
|
467
468
|
wn,
|
|
468
469
|
{
|
|
469
470
|
className: n.fullWidth,
|
|
@@ -471,25 +472,25 @@ const ns = (e) => {
|
|
|
471
472
|
onClose: E,
|
|
472
473
|
children: [
|
|
473
474
|
/* @__PURE__ */ l(
|
|
474
|
-
|
|
475
|
+
Ke,
|
|
475
476
|
{
|
|
476
477
|
onClick: () => {
|
|
477
|
-
d(
|
|
478
|
+
d(se.POLYGON), E();
|
|
478
479
|
},
|
|
479
480
|
children: "Polygon"
|
|
480
481
|
}
|
|
481
482
|
),
|
|
482
483
|
/* @__PURE__ */ l(
|
|
483
|
-
|
|
484
|
+
Ke,
|
|
484
485
|
{
|
|
485
486
|
onClick: () => {
|
|
486
|
-
d(
|
|
487
|
+
d(se.BOX), E();
|
|
487
488
|
},
|
|
488
489
|
children: "Box"
|
|
489
490
|
}
|
|
490
491
|
),
|
|
491
492
|
/* @__PURE__ */ l(
|
|
492
|
-
|
|
493
|
+
Ke,
|
|
493
494
|
{
|
|
494
495
|
onClick: () => {
|
|
495
496
|
u(), E();
|
|
@@ -502,118 +503,118 @@ const ns = (e) => {
|
|
|
502
503
|
)
|
|
503
504
|
] });
|
|
504
505
|
};
|
|
505
|
-
var
|
|
506
|
-
const
|
|
506
|
+
var ue = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ue || {});
|
|
507
|
+
const rt = 5, ot = 2, jt = Ae(null), Ui = jt.Provider, yt = 35, vt = 32, ji = 10, Ki = (e) => e !== void 0 && e !== ue.WGS84 ? Bn([yt, vt], ue.WGS84, e) : [yt, vt], qi = (e) => {
|
|
507
508
|
switch (e) {
|
|
508
|
-
case
|
|
509
|
-
return (n) =>
|
|
510
|
-
case
|
|
511
|
-
return (n) =>
|
|
509
|
+
case ue.WEB_MERCATOR:
|
|
510
|
+
return (n) => pt(n, "Mercator: {y}m, {x}m", ot);
|
|
511
|
+
case ue.WGS84:
|
|
512
|
+
return (n) => pt(n, "WGS84: {y}°N {x}°E", rt);
|
|
512
513
|
default:
|
|
513
514
|
return (n) => "";
|
|
514
515
|
}
|
|
515
|
-
},
|
|
516
|
-
const e =
|
|
516
|
+
}, ct = () => {
|
|
517
|
+
const e = ke(jt);
|
|
517
518
|
if (e === null)
|
|
518
519
|
throw new Error("map context is null, please check the provider");
|
|
519
520
|
return e;
|
|
520
|
-
},
|
|
521
|
-
const n =
|
|
522
|
-
new
|
|
523
|
-
view: new
|
|
524
|
-
projection: o ??
|
|
521
|
+
}, Yi = (e) => {
|
|
522
|
+
const n = we(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = D(
|
|
523
|
+
new On({
|
|
524
|
+
view: new Rn({
|
|
525
|
+
projection: o ?? ue.WGS84
|
|
525
526
|
}),
|
|
526
|
-
controls:
|
|
527
|
+
controls: Nn()
|
|
527
528
|
})
|
|
528
529
|
);
|
|
529
|
-
|
|
530
|
-
r.getView().setCenter(e.center ??
|
|
531
|
-
}, [r, e.center, e.projection]),
|
|
532
|
-
r.getView().setZoom(e.zoom ??
|
|
530
|
+
k(() => {
|
|
531
|
+
r.getView().setCenter(e.center ?? Ki(e.projection));
|
|
532
|
+
}, [r, e.center, e.projection]), k(() => {
|
|
533
|
+
r.getView().setZoom(e.zoom ?? ji);
|
|
533
534
|
}, [r, e.zoom, e.projection]);
|
|
534
535
|
const d = (u, m) => {
|
|
535
536
|
m.getControls().forEach((w) => {
|
|
536
537
|
w instanceof u && m.removeControl(w);
|
|
537
538
|
});
|
|
538
539
|
};
|
|
539
|
-
return
|
|
540
|
-
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new
|
|
541
|
-
}, [r, t]),
|
|
542
|
-
i !== void 0 && i ? (d(
|
|
543
|
-
new
|
|
544
|
-
coordinateFormat:
|
|
545
|
-
projection: o ??
|
|
540
|
+
return k(() => {
|
|
541
|
+
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new gt()) : d(gt, r);
|
|
542
|
+
}, [r, t]), k(() => {
|
|
543
|
+
i !== void 0 && i ? (d(qe, r), r.addControl(
|
|
544
|
+
new qe({
|
|
545
|
+
coordinateFormat: qi(o ?? ue.WGS84),
|
|
546
|
+
projection: o ?? ue.WGS84,
|
|
546
547
|
undefinedHTML: " "
|
|
547
548
|
})
|
|
548
|
-
)) : d(
|
|
549
|
-
}, [r, i, o]), /* @__PURE__ */
|
|
549
|
+
)) : d(qe, r);
|
|
550
|
+
}, [r, i, o]), /* @__PURE__ */ N(Ui, { value: r, children: [
|
|
550
551
|
/* @__PURE__ */ l("div", { className: "map", ref: n }),
|
|
551
552
|
e.children
|
|
552
553
|
] });
|
|
553
|
-
},
|
|
554
|
-
const e =
|
|
554
|
+
}, Kt = Ae(null), Xi = Kt.Provider, Zi = () => {
|
|
555
|
+
const e = ke(Kt);
|
|
555
556
|
if (e === null)
|
|
556
557
|
throw new Error("tile layer context is null, please check the provider");
|
|
557
558
|
return e;
|
|
558
|
-
},
|
|
559
|
-
const t =
|
|
560
|
-
return
|
|
559
|
+
}, Ji = ({ options: e, children: n }) => {
|
|
560
|
+
const t = ct(), [i] = D(new Fn(e));
|
|
561
|
+
return k(() => (t.addLayer(i), () => {
|
|
561
562
|
t.removeLayer(i);
|
|
562
|
-
}), [t, i]), /* @__PURE__ */ l(
|
|
563
|
-
},
|
|
564
|
-
const e =
|
|
563
|
+
}), [t, i]), /* @__PURE__ */ l(Xi, { value: i, children: n });
|
|
564
|
+
}, qt = Ae(null), Qi = qt.Provider, er = () => {
|
|
565
|
+
const e = ke(qt);
|
|
565
566
|
if (e === null)
|
|
566
567
|
throw new Error("vector layer context is null, please check the provider");
|
|
567
568
|
return e;
|
|
568
|
-
},
|
|
569
|
-
const n =
|
|
570
|
-
return
|
|
569
|
+
}, tr = ({ children: e }) => {
|
|
570
|
+
const n = ct(), [t] = D(new Hn());
|
|
571
|
+
return k(() => (n.addLayer(t), () => {
|
|
571
572
|
n.removeLayer(t);
|
|
572
|
-
}), [n, t]), /* @__PURE__ */ l(
|
|
573
|
-
},
|
|
574
|
-
const e =
|
|
573
|
+
}), [n, t]), /* @__PURE__ */ l(Qi, { value: t, children: e });
|
|
574
|
+
}, Yt = Ae(null), nr = Yt.Provider, ir = () => {
|
|
575
|
+
const e = ke(Yt);
|
|
575
576
|
if (e === null)
|
|
576
577
|
throw new Error("vector source context is null, please check the provider");
|
|
577
578
|
return e;
|
|
578
|
-
},
|
|
579
|
-
const n =
|
|
580
|
-
return
|
|
579
|
+
}, rr = ({ children: e }) => {
|
|
580
|
+
const n = er(), [t] = D(new Gn());
|
|
581
|
+
return k(() => {
|
|
581
582
|
n.setSource(t);
|
|
582
|
-
}, [t, n]), /* @__PURE__ */ l(
|
|
583
|
-
},
|
|
584
|
-
const n =
|
|
585
|
-
return
|
|
586
|
-
const i = new
|
|
583
|
+
}, [t, n]), /* @__PURE__ */ l(nr, { value: t, children: e });
|
|
584
|
+
}, or = ({ geometry: e }) => {
|
|
585
|
+
const n = ir();
|
|
586
|
+
return k(() => {
|
|
587
|
+
const i = new Ft().readFeature(e);
|
|
587
588
|
return n.addFeature(i), () => {
|
|
588
589
|
n.removeFeature(i);
|
|
589
590
|
};
|
|
590
591
|
}, [e, n]), null;
|
|
591
|
-
},
|
|
592
|
-
const n =
|
|
593
|
-
return
|
|
594
|
-
n.setSource(new
|
|
592
|
+
}, sr = (e) => {
|
|
593
|
+
const n = Zi();
|
|
594
|
+
return k(() => {
|
|
595
|
+
n.setSource(new Vn());
|
|
595
596
|
}, [n]), null;
|
|
596
|
-
},
|
|
597
|
-
const t =
|
|
598
|
-
return
|
|
597
|
+
}, ar = ({ drawType: e, onPolygonSelected: n }) => {
|
|
598
|
+
const t = ct();
|
|
599
|
+
return k(() => {
|
|
599
600
|
const i = {
|
|
600
601
|
type: "Circle"
|
|
601
602
|
/* CIRCLE */
|
|
602
603
|
};
|
|
603
604
|
switch (e) {
|
|
604
|
-
case
|
|
605
|
-
i.geometryFunction =
|
|
605
|
+
case se.BOX:
|
|
606
|
+
i.geometryFunction = $n();
|
|
606
607
|
break;
|
|
607
|
-
case
|
|
608
|
+
case se.POLYGON:
|
|
608
609
|
i.type = "Polygon";
|
|
609
610
|
break;
|
|
610
611
|
default:
|
|
611
612
|
return;
|
|
612
613
|
}
|
|
613
|
-
const o = new
|
|
614
|
+
const o = new zn(i);
|
|
614
615
|
t.addInteraction(o);
|
|
615
616
|
const r = (d) => {
|
|
616
|
-
const m = new
|
|
617
|
+
const m = new Ft().writeGeometryObject(d.feature.getGeometry());
|
|
617
618
|
n == null || n(m);
|
|
618
619
|
};
|
|
619
620
|
return o.on("drawend", r), () => {
|
|
@@ -621,19 +622,19 @@ const et = 5, tt = 2, $t = Pe(null), Wi = $t.Provider, pt = 35, gt = 32, Ui = 10
|
|
|
621
622
|
};
|
|
622
623
|
}, [n, e, t]), null;
|
|
623
624
|
};
|
|
624
|
-
const
|
|
625
|
+
const lr = (e) => {
|
|
625
626
|
const n = (t) => {
|
|
626
|
-
const i =
|
|
627
|
+
const i = xn(t);
|
|
627
628
|
e.onPolygonSelection(i);
|
|
628
629
|
};
|
|
629
|
-
return /* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */ l(
|
|
631
|
-
e.selectionPolygon && /* @__PURE__ */ l(
|
|
630
|
+
return /* @__PURE__ */ N(Yi, { allowFullScreen: !0, showMousePosition: !0, children: [
|
|
631
|
+
/* @__PURE__ */ l(Ji, { children: /* @__PURE__ */ l(sr, {}) }),
|
|
632
|
+
e.selectionPolygon && /* @__PURE__ */ l(tr, { children: /* @__PURE__ */ l(rr, { children: /* @__PURE__ */ l(or, { geometry: e.selectionPolygon }) }) }),
|
|
632
633
|
e.children,
|
|
633
|
-
e.drawType !== void 0 && /* @__PURE__ */ l(
|
|
634
|
+
e.drawType !== void 0 && /* @__PURE__ */ l(ar, { drawType: e.drawType, onPolygonSelected: n })
|
|
634
635
|
] });
|
|
635
|
-
},
|
|
636
|
-
(e) =>
|
|
636
|
+
}, Xe = 1.5, cr = 80, dr = xe(
|
|
637
|
+
(e) => $e({
|
|
637
638
|
map: {
|
|
638
639
|
height: "100%",
|
|
639
640
|
width: "100%",
|
|
@@ -642,12 +643,12 @@ const ar = (e) => {
|
|
|
642
643
|
absolute: {
|
|
643
644
|
position: "absolute",
|
|
644
645
|
zIndex: 1e3,
|
|
645
|
-
left: e.spacing(
|
|
646
|
-
top: e.spacing(
|
|
646
|
+
left: e.spacing(Xe),
|
|
647
|
+
top: e.spacing(Xe)
|
|
647
648
|
},
|
|
648
649
|
contentContainer: {
|
|
649
|
-
marginTop: e.spacing(
|
|
650
|
-
width: e.spacing(
|
|
650
|
+
marginTop: e.spacing(Xe),
|
|
651
|
+
width: e.spacing(cr)
|
|
651
652
|
},
|
|
652
653
|
filtersContainer: {
|
|
653
654
|
display: "flex",
|
|
@@ -657,18 +658,18 @@ const ar = (e) => {
|
|
|
657
658
|
marginLeft: e.spacing(1)
|
|
658
659
|
}
|
|
659
660
|
})
|
|
660
|
-
),
|
|
661
|
+
), os = (e) => {
|
|
661
662
|
var m;
|
|
662
|
-
const [n, t] =
|
|
663
|
+
const [n, t] = D(), [i, o] = D(), r = dr(), d = (E) => {
|
|
663
664
|
o(E), t(void 0), e.handlePolygonSelected(E);
|
|
664
665
|
}, u = () => {
|
|
665
666
|
o(void 0), e.handlePolygonReset();
|
|
666
667
|
};
|
|
667
|
-
return /* @__PURE__ */
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
668
|
+
return /* @__PURE__ */ N("div", { className: r.map, children: [
|
|
669
|
+
/* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
|
|
670
|
+
/* @__PURE__ */ N(et, { className: r.filtersContainer, children: [
|
|
670
671
|
/* @__PURE__ */ l(
|
|
671
|
-
|
|
672
|
+
Wi,
|
|
672
673
|
{
|
|
673
674
|
onCancelDraw: () => t(void 0),
|
|
674
675
|
onReset: u,
|
|
@@ -678,19 +679,19 @@ const ar = (e) => {
|
|
|
678
679
|
),
|
|
679
680
|
(m = e.filters) == null ? void 0 : m.map((E, w) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: E }, w))
|
|
680
681
|
] }),
|
|
681
|
-
/* @__PURE__ */ l(
|
|
682
|
+
/* @__PURE__ */ l(et, { color: "red", className: `${r.contentContainer}`, children: e.children })
|
|
682
683
|
] }),
|
|
683
|
-
/* @__PURE__ */ l(
|
|
684
|
+
/* @__PURE__ */ l(lr, { children: e.mapContent, onPolygonSelection: d, drawType: n, selectionPolygon: i })
|
|
684
685
|
] });
|
|
685
686
|
};
|
|
686
|
-
function
|
|
687
|
+
function ur(e) {
|
|
687
688
|
const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (m) => {
|
|
688
689
|
o(m, u);
|
|
689
690
|
};
|
|
690
|
-
return /* @__PURE__ */ l(
|
|
691
|
-
r && /* @__PURE__ */ l(
|
|
691
|
+
return /* @__PURE__ */ l(Wn, { children: /* @__PURE__ */ N(Fe, { children: [
|
|
692
|
+
r && /* @__PURE__ */ l(Le, {}),
|
|
692
693
|
n.map((u) => /* @__PURE__ */ l(
|
|
693
|
-
|
|
694
|
+
Le,
|
|
694
695
|
{
|
|
695
696
|
align: u.numeric ? "right" : "left",
|
|
696
697
|
padding: u.disablePadding ? "none" : "default",
|
|
@@ -709,24 +710,24 @@ function dr(e) {
|
|
|
709
710
|
))
|
|
710
711
|
] }) });
|
|
711
712
|
}
|
|
712
|
-
const
|
|
713
|
-
/* @__PURE__ */
|
|
713
|
+
const hr = Ht(
|
|
714
|
+
/* @__PURE__ */ At.createElement("path", {
|
|
714
715
|
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
715
716
|
}),
|
|
716
717
|
"KeyboardArrowDown"
|
|
717
|
-
),
|
|
718
|
-
/* @__PURE__ */
|
|
718
|
+
), mr = Ht(
|
|
719
|
+
/* @__PURE__ */ At.createElement("path", {
|
|
719
720
|
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
720
721
|
}),
|
|
721
722
|
"KeyboardArrowUp"
|
|
722
723
|
);
|
|
723
|
-
function
|
|
724
|
-
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [m, E] =
|
|
725
|
-
return /* @__PURE__ */
|
|
726
|
-
/* @__PURE__ */
|
|
724
|
+
function pr(e) {
|
|
725
|
+
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [m, E] = D(!1), w = n.length;
|
|
726
|
+
return /* @__PURE__ */ N(ie, { children: [
|
|
727
|
+
/* @__PURE__ */ N(Fe, { hover: !0, selected: t, onClick: () => {
|
|
727
728
|
o == null || o(r);
|
|
728
729
|
}, children: [
|
|
729
|
-
d && /* @__PURE__ */ l(
|
|
730
|
+
d && /* @__PURE__ */ l(Le, { padding: "checkbox", children: /* @__PURE__ */ l(
|
|
730
731
|
mn,
|
|
731
732
|
{
|
|
732
733
|
"aria-label": "expand row",
|
|
@@ -734,11 +735,11 @@ function mr(e) {
|
|
|
734
735
|
onClick: (T) => {
|
|
735
736
|
T.stopPropagation(), E(!m);
|
|
736
737
|
},
|
|
737
|
-
children: m ? /* @__PURE__ */ l(
|
|
738
|
+
children: m ? /* @__PURE__ */ l(mr, {}) : /* @__PURE__ */ l(hr, {})
|
|
738
739
|
}
|
|
739
740
|
) }),
|
|
740
741
|
n.map((T) => /* @__PURE__ */ l(
|
|
741
|
-
|
|
742
|
+
Le,
|
|
742
743
|
{
|
|
743
744
|
align: T.numeric ? "right" : "left",
|
|
744
745
|
padding: T.disablePadding ? "none" : "default",
|
|
@@ -747,42 +748,42 @@ function mr(e) {
|
|
|
747
748
|
T.id + r.toString()
|
|
748
749
|
))
|
|
749
750
|
] }),
|
|
750
|
-
d && /* @__PURE__ */ l(
|
|
751
|
+
d && /* @__PURE__ */ l(Fe, { children: /* @__PURE__ */ l(Le, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: w + 1, children: /* @__PURE__ */ l(pn, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
|
|
751
752
|
] });
|
|
752
753
|
}
|
|
753
|
-
function
|
|
754
|
-
const [n, t] =
|
|
754
|
+
function ss(e) {
|
|
755
|
+
const [n, t] = D(""), [i, o] = D("asc"), {
|
|
755
756
|
cellsMetadata: r,
|
|
756
757
|
items: d,
|
|
757
758
|
onRequestSort: u,
|
|
758
759
|
onRowSelected: m,
|
|
759
760
|
isCollapseable: E,
|
|
760
761
|
collapsedElement: w,
|
|
761
|
-
isDense:
|
|
762
|
+
isDense: P,
|
|
762
763
|
page: T,
|
|
763
|
-
rowsPerPage:
|
|
764
|
-
count:
|
|
765
|
-
handleChangePage:
|
|
764
|
+
rowsPerPage: I,
|
|
765
|
+
count: G,
|
|
766
|
+
handleChangePage: q,
|
|
766
767
|
handleChangeRowsPerPage: K
|
|
767
768
|
} = e;
|
|
768
|
-
return /* @__PURE__ */
|
|
769
|
-
/* @__PURE__ */
|
|
769
|
+
return /* @__PURE__ */ N(gn, { component: et, children: [
|
|
770
|
+
/* @__PURE__ */ N(fn, { size: P ? "small" : "medium", children: [
|
|
770
771
|
/* @__PURE__ */ l(
|
|
771
|
-
|
|
772
|
+
ur,
|
|
772
773
|
{
|
|
773
774
|
headCells: r,
|
|
774
775
|
onRequestSort: (Y, U) => {
|
|
775
|
-
const
|
|
776
|
-
o(
|
|
776
|
+
const A = n === U && i === "asc";
|
|
777
|
+
o(A ? "desc" : "asc"), t(U), u(U, A ? "desc" : "asc");
|
|
777
778
|
},
|
|
778
779
|
order: i,
|
|
779
780
|
orderBy: n,
|
|
780
781
|
isCollapseable: E
|
|
781
782
|
}
|
|
782
783
|
),
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
+
/* @__PURE__ */ N(yn, { children: [
|
|
784
785
|
d.map((Y, U) => /* @__PURE__ */ l(
|
|
785
|
-
|
|
786
|
+
pr,
|
|
786
787
|
{
|
|
787
788
|
item: Y,
|
|
788
789
|
rowIndex: U,
|
|
@@ -794,13 +795,13 @@ function rs(e) {
|
|
|
794
795
|
},
|
|
795
796
|
U
|
|
796
797
|
)),
|
|
797
|
-
(d.length === 0 ||
|
|
798
|
-
|
|
798
|
+
(d.length === 0 || I > d.length) && /* @__PURE__ */ l(
|
|
799
|
+
Fe,
|
|
799
800
|
{
|
|
800
801
|
style: {
|
|
801
|
-
height: (
|
|
802
|
+
height: (P ? 33 : 53) * (I - d.length)
|
|
802
803
|
},
|
|
803
|
-
children: /* @__PURE__ */ l(
|
|
804
|
+
children: /* @__PURE__ */ l(Le, { colSpan: E ? r.length + 1 : r.length, children: d.length === 0 && /* @__PURE__ */ l(vn, { align: "center", children: "No results :(" }) })
|
|
804
805
|
}
|
|
805
806
|
)
|
|
806
807
|
] })
|
|
@@ -808,47 +809,47 @@ function rs(e) {
|
|
|
808
809
|
/* @__PURE__ */ l(
|
|
809
810
|
En,
|
|
810
811
|
{
|
|
811
|
-
rowsPerPage:
|
|
812
|
+
rowsPerPage: I,
|
|
812
813
|
rowsPerPageOptions: [5, 10],
|
|
813
814
|
component: "div",
|
|
814
|
-
count:
|
|
815
|
+
count: G,
|
|
815
816
|
page: T,
|
|
816
|
-
onPageChange:
|
|
817
|
+
onPageChange: q,
|
|
817
818
|
onRowsPerPageChange: K
|
|
818
819
|
}
|
|
819
820
|
)
|
|
820
821
|
] });
|
|
821
822
|
}
|
|
822
|
-
const
|
|
823
|
-
const { children: n, ...t } = e;
|
|
824
|
-
return /* @__PURE__ */ l(Wn, { ...t, children: n });
|
|
825
|
-
}, ss = (e) => {
|
|
823
|
+
const as = (e) => {
|
|
826
824
|
const { children: n, ...t } = e;
|
|
827
825
|
return /* @__PURE__ */ l(Un, { ...t, children: n });
|
|
828
|
-
},
|
|
829
|
-
const
|
|
830
|
-
|
|
831
|
-
|
|
826
|
+
}, ls = (e) => {
|
|
827
|
+
const { children: n, ...t } = e;
|
|
828
|
+
return /* @__PURE__ */ l(jn, { ...t, children: n });
|
|
829
|
+
}, Et = (e) => e * Math.PI / 180, Ne = (e) => e * (180 / Math.PI), gr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Et(85.362 / 2)) / Math.sin(Et(85.362 / 2)));
|
|
830
|
+
const fr = (e) => {
|
|
831
|
+
const n = he(), t = we(null), [i, o] = D({ x: 0, y: 0 });
|
|
832
|
+
return k(() => {
|
|
832
833
|
n.screenSpaceEventHandler.setInputAction((r) => {
|
|
833
834
|
r != null && r.endPosition && o({ ...r.endPosition });
|
|
834
|
-
},
|
|
835
|
-
}, [t, n]),
|
|
836
|
-
const r = n.scene.globe.ellipsoid, d = n.camera.pickEllipsoid(new
|
|
835
|
+
}, ii.MOUSE_MOVE);
|
|
836
|
+
}, [t, n]), k(() => {
|
|
837
|
+
const r = n.scene.globe.ellipsoid, d = n.camera.pickEllipsoid(new pe(i.x, i.y), r);
|
|
837
838
|
if (d) {
|
|
838
839
|
const u = r.cartesianToCartographic(d);
|
|
839
840
|
if (t.current) {
|
|
840
841
|
let m = "";
|
|
841
842
|
switch (e.projection) {
|
|
842
|
-
case
|
|
843
|
-
const w = new
|
|
844
|
-
m = `Mercator: ${w.y.toFixed(
|
|
845
|
-
|
|
843
|
+
case ue.WEB_MERCATOR: {
|
|
844
|
+
const w = new ri(r).project(u);
|
|
845
|
+
m = `Mercator: ${w.y.toFixed(ot)}m, ${w.x.toFixed(
|
|
846
|
+
ot
|
|
846
847
|
)}m`, t.current.style.width = "220px";
|
|
847
848
|
break;
|
|
848
849
|
}
|
|
849
|
-
case
|
|
850
|
-
const E = le.toDegrees(u.longitude).toFixed(
|
|
851
|
-
m = `WGS84: ${le.toDegrees(u.latitude).toFixed(
|
|
850
|
+
case ue.WGS84: {
|
|
851
|
+
const E = le.toDegrees(u.longitude).toFixed(rt);
|
|
852
|
+
m = `WGS84: ${le.toDegrees(u.latitude).toFixed(rt)}°N ${E}°E`, t.current.style.width = "200px";
|
|
852
853
|
break;
|
|
853
854
|
}
|
|
854
855
|
}
|
|
@@ -856,8 +857,37 @@ const gr = (e) => {
|
|
|
856
857
|
}
|
|
857
858
|
}
|
|
858
859
|
}, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
|
|
860
|
+
}, Xt = (e, n, t) => {
|
|
861
|
+
let i;
|
|
862
|
+
if (e.scene.mode !== Ce.SCENE2D)
|
|
863
|
+
i = e.scene.pickPosition(new Me(n, t));
|
|
864
|
+
else {
|
|
865
|
+
const o = e.scene.globe.ellipsoid;
|
|
866
|
+
i = e.camera.pickEllipsoid(new Me(n, t), o);
|
|
867
|
+
}
|
|
868
|
+
return We.fromCartesian(i);
|
|
869
|
+
}, yr = (e, n, t) => {
|
|
870
|
+
const i = Xt(e, n, t);
|
|
871
|
+
return {
|
|
872
|
+
type: "Feature",
|
|
873
|
+
properties: {},
|
|
874
|
+
geometry: {
|
|
875
|
+
type: "Point",
|
|
876
|
+
coordinates: [le.toDegrees(i.longitude), le.toDegrees(i.latitude)]
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
}, vr = (e, n, t) => {
|
|
880
|
+
try {
|
|
881
|
+
const i = Xt(e, n, t);
|
|
882
|
+
return {
|
|
883
|
+
longitude: le.toDegrees(i.longitude),
|
|
884
|
+
latitude: le.toDegrees(i.latitude)
|
|
885
|
+
};
|
|
886
|
+
} catch {
|
|
887
|
+
return;
|
|
888
|
+
}
|
|
859
889
|
};
|
|
860
|
-
const
|
|
890
|
+
const Ze = [
|
|
861
891
|
1,
|
|
862
892
|
2,
|
|
863
893
|
3,
|
|
@@ -890,51 +920,51 @@ const Ke = [
|
|
|
890
920
|
2e7,
|
|
891
921
|
3e7,
|
|
892
922
|
5e7
|
|
893
|
-
],
|
|
894
|
-
const o =
|
|
923
|
+
], Er = (e, n, t, i) => {
|
|
924
|
+
const o = ee(i, "METERS_UNIT") ?? "m", r = ee(i, "KILOMETERS_UNIT") ?? "km", d = {
|
|
895
925
|
barWidth: void 0,
|
|
896
926
|
distanceLabel: void 0,
|
|
897
927
|
lastLegendUpdate: n.lastLegendUpdate
|
|
898
|
-
}, u = new
|
|
928
|
+
}, u = new si(), m = new Date().getTime();
|
|
899
929
|
if (m < d.lastLegendUpdate + 250)
|
|
900
930
|
return;
|
|
901
931
|
d.lastLegendUpdate = m;
|
|
902
|
-
const E = e.scene.canvas.clientWidth, w = e.scene.canvas.clientHeight,
|
|
903
|
-
if (!
|
|
932
|
+
const E = e.scene.canvas.clientWidth, w = e.scene.canvas.clientHeight, P = e.scene.camera.getPickRay(new Me(E / 2 | 0, w - 1)), T = e.scene.camera.getPickRay(new Me(1 + E / 2 | 0, w - 1)), I = e.scene.globe, G = I.pick(P, e.scene), q = I.pick(T, e.scene);
|
|
933
|
+
if (!G || !q)
|
|
904
934
|
return;
|
|
905
|
-
const K =
|
|
935
|
+
const K = I.ellipsoid.cartesianToCartographic(G), F = I.ellipsoid.cartesianToCartographic(q);
|
|
906
936
|
u.setEndPoints(K, F);
|
|
907
937
|
const Y = u.surfaceDistance, U = 100;
|
|
908
|
-
let
|
|
909
|
-
for (let $ =
|
|
910
|
-
|
|
911
|
-
if (
|
|
938
|
+
let A;
|
|
939
|
+
for (let $ = Ze.length - 1; !Ge(A) && $ >= 0; --$)
|
|
940
|
+
Ze[$] / Y < U && (A = Ze[$]);
|
|
941
|
+
if (Ge(A)) {
|
|
912
942
|
let $ = "";
|
|
913
|
-
|
|
943
|
+
A >= 1e3 ? $ = `${(A / 1e3).toString()} ${r}` : $ = `${A.toString()} ${o}`, d.barWidth = A / Y | 0, d.distanceLabel = $;
|
|
914
944
|
}
|
|
915
945
|
t(d);
|
|
916
|
-
},
|
|
917
|
-
const n =
|
|
946
|
+
}, Cr = (e) => {
|
|
947
|
+
const n = he(), [t, i] = D({
|
|
918
948
|
barWidth: void 0,
|
|
919
949
|
distanceLabel: void 0,
|
|
920
950
|
lastLegendUpdate: -1
|
|
921
951
|
});
|
|
922
|
-
|
|
952
|
+
k(() => {
|
|
923
953
|
const r = (m) => {
|
|
924
|
-
|
|
925
|
-
}, d = new
|
|
954
|
+
Er(n, t, i, e.locale);
|
|
955
|
+
}, d = new oi(), u = (m) => {
|
|
926
956
|
n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), d.removeAll());
|
|
927
957
|
};
|
|
928
958
|
return d.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
|
|
929
959
|
try {
|
|
930
|
-
|
|
960
|
+
ee(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(r);
|
|
931
961
|
} catch (m) {
|
|
932
962
|
console.log('CESIUM camera "moveEnd" remove listener failed', m);
|
|
933
963
|
}
|
|
934
964
|
};
|
|
935
965
|
}, [n, e.locale, t]);
|
|
936
966
|
const o = (r) => 5 + (125 - r) / 2;
|
|
937
|
-
return /* @__PURE__ */ l("div", { className: "scalePosition", children:
|
|
967
|
+
return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ge(t.barWidth) && /* @__PURE__ */ N(ie, { children: [
|
|
938
968
|
/* @__PURE__ */ l("div", { className: "distance-legend-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
|
|
939
969
|
/* @__PURE__ */ l(
|
|
940
970
|
"div",
|
|
@@ -948,30 +978,30 @@ const Ke = [
|
|
|
948
978
|
}
|
|
949
979
|
)
|
|
950
980
|
] }) });
|
|
951
|
-
},
|
|
952
|
-
MORPHING:
|
|
953
|
-
COLUMBUS_VIEW:
|
|
954
|
-
SCENE2D:
|
|
955
|
-
SCENE3D:
|
|
981
|
+
}, oe = {
|
|
982
|
+
MORPHING: Ce.MORPHING,
|
|
983
|
+
COLUMBUS_VIEW: Ce.COLUMBUS_VIEW,
|
|
984
|
+
SCENE2D: Ce.SCENE2D,
|
|
985
|
+
SCENE3D: Ce.SCENE3D
|
|
956
986
|
};
|
|
957
|
-
const
|
|
958
|
-
const i =
|
|
987
|
+
const Ct = (e, n) => {
|
|
988
|
+
const i = ee(n.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = n.canvas.height, d = ee(n.camera.frustum, "sseDenominator") ?? 1;
|
|
959
989
|
for (let u = 0; u <= 19; u++)
|
|
960
990
|
if (i.getLevelMaximumGeometricError(u) * r / (e * d) < o.maximumScreenSpaceError)
|
|
961
991
|
return u;
|
|
962
992
|
return null;
|
|
963
|
-
},
|
|
993
|
+
}, wr = (e, n) => {
|
|
964
994
|
e = e || 10;
|
|
965
995
|
const t = [];
|
|
966
996
|
let i = 1e5, o = 0;
|
|
967
997
|
for (let r = 1e8; r > i; r = r - i) {
|
|
968
|
-
const d =
|
|
998
|
+
const d = Ct(r, n);
|
|
969
999
|
if (d === null)
|
|
970
1000
|
break;
|
|
971
1001
|
if (d !== o) {
|
|
972
1002
|
let u = r, m = r + i;
|
|
973
1003
|
for (; m - u > e; )
|
|
974
|
-
r = u + (m - u) / 2,
|
|
1004
|
+
r = u + (m - u) / 2, Ct(r, n) === d ? u = r : m = r;
|
|
975
1005
|
t.push({
|
|
976
1006
|
level: d,
|
|
977
1007
|
height: Math.round(r)
|
|
@@ -979,20 +1009,20 @@ const yt = (e, n) => {
|
|
|
979
1009
|
}
|
|
980
1010
|
}
|
|
981
1011
|
return t;
|
|
982
|
-
},
|
|
983
|
-
const n =
|
|
984
|
-
return
|
|
1012
|
+
}, br = (e) => {
|
|
1013
|
+
const n = he(), [t, i] = D(1), o = wr(1, n);
|
|
1014
|
+
return k(() => {
|
|
985
1015
|
const r = () => {
|
|
986
1016
|
const d = n.camera, u = 0.5;
|
|
987
1017
|
let m = 0;
|
|
988
1018
|
switch (n.scene.mode) {
|
|
989
|
-
case
|
|
1019
|
+
case oe.SCENE3D:
|
|
990
1020
|
m = n.scene.mapProjection.ellipsoid.cartesianToCartographic(d.positionWC).height;
|
|
991
1021
|
break;
|
|
992
|
-
case
|
|
1022
|
+
case oe.SCENE2D:
|
|
993
1023
|
m = (d.frustum.right - d.frustum.left) * u;
|
|
994
1024
|
break;
|
|
995
|
-
case
|
|
1025
|
+
case oe.COLUMBUS_VIEW:
|
|
996
1026
|
m = d.position.z;
|
|
997
1027
|
break;
|
|
998
1028
|
default:
|
|
@@ -1000,81 +1030,81 @@ const yt = (e, n) => {
|
|
|
1000
1030
|
break;
|
|
1001
1031
|
}
|
|
1002
1032
|
if (o.length > 0) {
|
|
1003
|
-
const E = o.reduce((w,
|
|
1033
|
+
const E = o.reduce((w, P) => Math.abs(P.height - m) < Math.abs(w.height - m) ? P : w);
|
|
1004
1034
|
i(E.level);
|
|
1005
1035
|
}
|
|
1006
1036
|
};
|
|
1007
1037
|
return n.camera.moveEnd.addEventListener(r), () => {
|
|
1008
1038
|
try {
|
|
1009
|
-
|
|
1039
|
+
ee(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(r);
|
|
1010
1040
|
} catch (d) {
|
|
1011
1041
|
console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', d);
|
|
1012
1042
|
}
|
|
1013
1043
|
};
|
|
1014
|
-
}, [n, o.length]), /* @__PURE__ */
|
|
1044
|
+
}, [n, o.length]), /* @__PURE__ */ N("div", { className: "zoomLevel", children: [
|
|
1015
1045
|
/* @__PURE__ */ l("div", { className: "zoomLevelValue", children: t }),
|
|
1016
|
-
/* @__PURE__ */ l("div", { className: "zoomLevelLabel", children:
|
|
1046
|
+
/* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: ee(e.locale, "ZOOM_LABEL") ?? "zoom" })
|
|
1017
1047
|
] });
|
|
1018
1048
|
};
|
|
1019
|
-
const
|
|
1020
|
-
const n =
|
|
1021
|
-
return
|
|
1049
|
+
const Tr = -1, _r = (e) => {
|
|
1050
|
+
const n = he(), [t, i] = D(), { sceneModes: o } = e, r = (d) => o.findIndex((u) => u === d) > Tr;
|
|
1051
|
+
return k(() => {
|
|
1022
1052
|
i(n.scene.mode);
|
|
1023
|
-
}, []), /* @__PURE__ */
|
|
1024
|
-
r(
|
|
1025
|
-
|
|
1053
|
+
}, []), /* @__PURE__ */ N(ie, { children: [
|
|
1054
|
+
r(oe.SCENE3D) && /* @__PURE__ */ l(
|
|
1055
|
+
Pe,
|
|
1026
1056
|
{
|
|
1027
|
-
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t ===
|
|
1057
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === oe.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
|
|
1028
1058
|
onClick: () => {
|
|
1029
|
-
n.scene.morphTo3D(), i(
|
|
1059
|
+
n.scene.morphTo3D(), i(oe.SCENE3D);
|
|
1030
1060
|
}
|
|
1031
1061
|
}
|
|
1032
1062
|
),
|
|
1033
|
-
r(
|
|
1034
|
-
|
|
1063
|
+
r(oe.SCENE2D) && /* @__PURE__ */ l(
|
|
1064
|
+
Pe,
|
|
1035
1065
|
{
|
|
1036
|
-
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t ===
|
|
1066
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === oe.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
|
|
1037
1067
|
onClick: () => {
|
|
1038
|
-
n.scene.morphTo2D(), i(
|
|
1068
|
+
n.scene.morphTo2D(), i(oe.SCENE2D);
|
|
1039
1069
|
}
|
|
1040
1070
|
}
|
|
1041
1071
|
),
|
|
1042
|
-
r(
|
|
1043
|
-
|
|
1072
|
+
r(oe.COLUMBUS_VIEW) && /* @__PURE__ */ l(
|
|
1073
|
+
Pe,
|
|
1044
1074
|
{
|
|
1045
|
-
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t ===
|
|
1075
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === oe.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
|
|
1046
1076
|
onClick: () => {
|
|
1047
|
-
n.scene.morphToColumbusView(), i(
|
|
1077
|
+
n.scene.morphToColumbusView(), i(oe.COLUMBUS_VIEW);
|
|
1048
1078
|
}
|
|
1049
1079
|
}
|
|
1050
1080
|
)
|
|
1051
1081
|
] });
|
|
1052
1082
|
};
|
|
1053
|
-
const
|
|
1054
|
-
(e) =>
|
|
1083
|
+
const Sr = xe(
|
|
1084
|
+
(e) => $e({
|
|
1055
1085
|
mapContainer: {
|
|
1056
1086
|
width: "60px",
|
|
1057
1087
|
height: "60px",
|
|
1058
1088
|
border: `${e.palette.background.paper} 2px solid`
|
|
1059
1089
|
}
|
|
1060
1090
|
})
|
|
1061
|
-
),
|
|
1062
|
-
const n =
|
|
1063
|
-
|
|
1091
|
+
), Lr = (e) => {
|
|
1092
|
+
const n = he(), { baseMaps: t } = e, [i, o] = D(" "), [r, d] = D(), u = Sr();
|
|
1093
|
+
k(() => {
|
|
1064
1094
|
const E = t == null ? void 0 : t.maps.find((w) => w.isCurrent);
|
|
1065
1095
|
E && (d(E), o(E.title !== void 0 ? E.title : " "));
|
|
1066
1096
|
}, [t]);
|
|
1067
1097
|
const m = (E) => {
|
|
1068
|
-
var w,
|
|
1098
|
+
var w, P;
|
|
1069
1099
|
if (t) {
|
|
1070
1100
|
(w = n.layersManager) == null || w.removeBaseMapLayers();
|
|
1071
|
-
const T = t.maps.find((
|
|
1072
|
-
T && ((
|
|
1073
|
-
|
|
1101
|
+
const T = t.maps.find((I) => I.id === E);
|
|
1102
|
+
T && ((P = n.layersManager) == null || P.setBaseMapLayers(T), d(T), t.maps.forEach((I) => {
|
|
1103
|
+
I.isCurrent = T === I;
|
|
1074
1104
|
}));
|
|
1075
1105
|
}
|
|
1076
1106
|
};
|
|
1077
|
-
return /* @__PURE__ */
|
|
1107
|
+
return /* @__PURE__ */ N(ie, { children: [
|
|
1078
1108
|
/* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
|
|
1079
1109
|
/* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((E) => /* @__PURE__ */ l("li", { className: `mapContainer ${u.mapContainer} ${E === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
|
|
1080
1110
|
"img",
|
|
@@ -1095,28 +1125,28 @@ const br = Ie(
|
|
|
1095
1125
|
) }, E.id)) })
|
|
1096
1126
|
] });
|
|
1097
1127
|
};
|
|
1098
|
-
const
|
|
1099
|
-
const [n, t] =
|
|
1100
|
-
return
|
|
1101
|
-
const w = (
|
|
1102
|
-
var
|
|
1103
|
-
const T =
|
|
1104
|
-
|
|
1128
|
+
const Je = "ic_settings_24px", Pr = (e) => {
|
|
1129
|
+
const [n, t] = D(!1), { sceneModes: i, baseMaps: o, locale: r } = e, d = we(null), u = ee(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = ee(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", E = ee(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
|
|
1130
|
+
return k(() => {
|
|
1131
|
+
const w = (P) => {
|
|
1132
|
+
var G;
|
|
1133
|
+
const T = P.target, I = ee(d, "current");
|
|
1134
|
+
I && !I.contains(T) && T.id !== Je && ((G = T.parentElement) == null ? void 0 : G.id) !== Je && (document.removeEventListener("click", w, !1), t(!1));
|
|
1105
1135
|
};
|
|
1106
1136
|
return document.addEventListener("click", w, !1), () => {
|
|
1107
1137
|
document.removeEventListener("click", w, !1);
|
|
1108
1138
|
};
|
|
1109
|
-
}), /* @__PURE__ */
|
|
1139
|
+
}), /* @__PURE__ */ N(ie, { children: [
|
|
1110
1140
|
/* @__PURE__ */ l(
|
|
1111
|
-
|
|
1141
|
+
Pe,
|
|
1112
1142
|
{
|
|
1113
|
-
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id:
|
|
1143
|
+
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: Je, x: "288", y: "24", children: /* @__PURE__ */ l("path", { d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }) }),
|
|
1114
1144
|
onClick: () => {
|
|
1115
1145
|
t(!n);
|
|
1116
1146
|
}
|
|
1117
1147
|
}
|
|
1118
1148
|
),
|
|
1119
|
-
n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: d, children: /* @__PURE__ */
|
|
1149
|
+
n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: d, children: /* @__PURE__ */ N(
|
|
1120
1150
|
bn,
|
|
1121
1151
|
{
|
|
1122
1152
|
open: n,
|
|
@@ -1125,12 +1155,12 @@ const qe = "ic_settings_24px", _r = (e) => {
|
|
|
1125
1155
|
},
|
|
1126
1156
|
children: [
|
|
1127
1157
|
/* @__PURE__ */ l(Tn, { children: u }),
|
|
1128
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ N(_n, { children: [
|
|
1129
1159
|
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
|
|
1130
|
-
/* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(
|
|
1131
|
-
/* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(_r, { sceneModes: i }) }),
|
|
1161
|
+
/* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(ie, { children: [
|
|
1132
1162
|
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: E }),
|
|
1133
|
-
/* @__PURE__ */ l(
|
|
1163
|
+
/* @__PURE__ */ l(Lr, { baseMaps: o })
|
|
1134
1164
|
] }) })
|
|
1135
1165
|
] })
|
|
1136
1166
|
]
|
|
@@ -1138,105 +1168,76 @@ const qe = "ic_settings_24px", _r = (e) => {
|
|
|
1138
1168
|
) })
|
|
1139
1169
|
] });
|
|
1140
1170
|
};
|
|
1141
|
-
const
|
|
1171
|
+
const Mr = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1142
1172
|
/* @__PURE__ */ l("path", { d: "M322.4,173.9l-129,16.2l-4.6,21.4l25.3,4.7c16.5,3.9,19.8,9.9,16.2,26.4l-41.5,195.3c-10.9,50.5,5.9,74.3,45.5,74.3 c30.7,0,66.3-14.2,82.5-33.6l4.9-23.4c-11.3,9.9-27.7,13.9-38.6,13.9c-15.5,0-21.1-10.9-17.1-30L322.4,173.9z" }),
|
|
1143
1173
|
/* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
|
|
1144
|
-
] }) }),
|
|
1145
|
-
const r =
|
|
1174
|
+
] }) }), Dr = ({ onClick: e }) => /* @__PURE__ */ l(ae, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(Pe, { icon: Mr, className: "mapLegendIcon" }) }), Ir = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
|
|
1175
|
+
const r = me(() => {
|
|
1146
1176
|
window.open(e, "_blank");
|
|
1147
1177
|
}, [e]);
|
|
1148
|
-
|
|
1178
|
+
me(() => {
|
|
1149
1179
|
window.open(n, "_blank");
|
|
1150
1180
|
}, [n]);
|
|
1151
|
-
const d =
|
|
1181
|
+
const d = me(() => {
|
|
1152
1182
|
const E = /* @__PURE__ */ l(ae, { className: "layerNameContainer", children: /* @__PURE__ */ l("h3", { style: { maxWidth: `${15}ch` }, className: "layerName", children: t }) });
|
|
1153
|
-
return (t ?? "").length > 15 ? /* @__PURE__ */ l(
|
|
1154
|
-
}, [t]), u =
|
|
1183
|
+
return (t ?? "").length > 15 ? /* @__PURE__ */ l(tt, { content: t, children: E }) : E;
|
|
1184
|
+
}, [t]), u = me(() => [
|
|
1155
1185
|
typeof e == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: o }),
|
|
1156
1186
|
typeof n == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: n, target: "_blank", rel: "noreferrer", children: i })
|
|
1157
1187
|
], [e, o, n, i]);
|
|
1158
|
-
return /* @__PURE__ */
|
|
1188
|
+
return /* @__PURE__ */ N(ae, { className: "mapLegend", children: [
|
|
1159
1189
|
d(),
|
|
1160
1190
|
/* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
|
|
1161
1191
|
/* @__PURE__ */ l(ae, { className: "legendActionsContainer", children: u() })
|
|
1162
1192
|
] });
|
|
1163
|
-
},
|
|
1164
|
-
const o =
|
|
1193
|
+
}, Ar = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
|
|
1194
|
+
const o = me(() => /* @__PURE__ */ l(ae, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = me(() => e.length ? e.map((d, u) => /* @__PURE__ */ l(Ir, { legend: d, docText: n, imgText: t }, `${d.layer}_${u}`)) : o(), [e]);
|
|
1165
1195
|
return /* @__PURE__ */ l(ae, { className: "mapLegendsList", children: r() });
|
|
1166
|
-
},
|
|
1196
|
+
}, kr = ({
|
|
1167
1197
|
isOpen: e,
|
|
1168
1198
|
toggleSidebar: n,
|
|
1169
1199
|
title: t = "Map Legends",
|
|
1170
1200
|
noLegendsText: i = "No legends to display...",
|
|
1171
1201
|
actionsTexts: o = { docText: "Docs", imgText: "View Image" },
|
|
1172
1202
|
legends: r = []
|
|
1173
|
-
}) => e ? /* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */ l(Ln, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
/* @__PURE__ */ l(
|
|
1177
|
-
/* @__PURE__ */ l(
|
|
1203
|
+
}) => e ? /* @__PURE__ */ N(Sn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
|
|
1204
|
+
/* @__PURE__ */ l(Ln, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(Pn, { className: "sidebarTitle", children: t }) }),
|
|
1205
|
+
/* @__PURE__ */ N(Mn, { className: "sidebarContent", children: [
|
|
1206
|
+
/* @__PURE__ */ l(Pe, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
|
|
1207
|
+
/* @__PURE__ */ l(Ar, { noLegendsText: i, legends: r, actionsTexts: o })
|
|
1178
1208
|
] })
|
|
1179
|
-
] }) : null,
|
|
1180
|
-
let i;
|
|
1181
|
-
if (e.scene.mode !== ve.SCENE2D)
|
|
1182
|
-
i = e.scene.pickPosition(new Se(n, t));
|
|
1183
|
-
else {
|
|
1184
|
-
const o = e.scene.globe.ellipsoid;
|
|
1185
|
-
i = e.camera.pickEllipsoid(new Se(n, t), o);
|
|
1186
|
-
}
|
|
1187
|
-
return Ge.fromCartesian(i);
|
|
1188
|
-
}, Ir = (e, n, t) => {
|
|
1189
|
-
const i = Kt(e, n, t);
|
|
1190
|
-
return {
|
|
1191
|
-
type: "Feature",
|
|
1192
|
-
properties: {},
|
|
1193
|
-
geometry: {
|
|
1194
|
-
type: "Point",
|
|
1195
|
-
coordinates: [le.toDegrees(i.longitude), le.toDegrees(i.latitude)]
|
|
1196
|
-
}
|
|
1197
|
-
};
|
|
1198
|
-
}, Ar = (e, n, t) => {
|
|
1199
|
-
try {
|
|
1200
|
-
const i = Kt(e, n, t);
|
|
1201
|
-
return {
|
|
1202
|
-
longitude: le.toDegrees(i.longitude),
|
|
1203
|
-
latitude: le.toDegrees(i.latitude)
|
|
1204
|
-
};
|
|
1205
|
-
} catch {
|
|
1206
|
-
return;
|
|
1207
|
-
}
|
|
1208
|
-
}, ue = document.createElement("canvas"), te = ue.getContext("2d"), vt = (e) => {
|
|
1209
|
+
] }) : null, de = document.createElement("canvas"), re = de.getContext("2d"), wt = (e) => {
|
|
1209
1210
|
const i = (e == null ? void 0 : e.data) ?? [];
|
|
1210
1211
|
for (let o = 3; o < i.length; o += 4)
|
|
1211
1212
|
if (i[o] < 255)
|
|
1212
1213
|
return !0;
|
|
1213
1214
|
return !1;
|
|
1214
|
-
},
|
|
1215
|
+
}, xr = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
|
|
1215
1216
|
try {
|
|
1216
|
-
|
|
1217
|
+
re == null || re.clearRect(0, 0, de.width, de.height);
|
|
1217
1218
|
let o;
|
|
1218
1219
|
if (e instanceof HTMLImageElement)
|
|
1219
1220
|
o = e;
|
|
1220
1221
|
else if (e instanceof ImageBitmap) {
|
|
1221
|
-
|
|
1222
|
-
const r =
|
|
1222
|
+
de.width = e.width, de.height = e.height, re == null || re.drawImage(e, 0, 0);
|
|
1223
|
+
const r = re == null ? void 0 : re.getImageData(0, 0, de.width, de.height), d = wt(r);
|
|
1223
1224
|
d && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(d);
|
|
1224
1225
|
return;
|
|
1225
1226
|
} else
|
|
1226
1227
|
o = new Image(), o.crossOrigin = "anonymous", o.src = e;
|
|
1227
1228
|
o.onload = () => {
|
|
1228
|
-
|
|
1229
|
-
const r =
|
|
1230
|
-
|
|
1229
|
+
de.width = o.width, de.height = o.height, re == null || re.drawImage(o, 0, 0);
|
|
1230
|
+
const r = re == null ? void 0 : re.getImageData(0, 0, de.width, de.height);
|
|
1231
|
+
wt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
|
|
1231
1232
|
};
|
|
1232
1233
|
} catch (o) {
|
|
1233
1234
|
console.error("Could not determine image transparency. Error => ", o), i(o);
|
|
1234
1235
|
}
|
|
1235
|
-
})),
|
|
1236
|
+
})), Be = (e, n) => {
|
|
1236
1237
|
const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north: m, south: E } = n;
|
|
1237
1238
|
return t >= d && i <= u && o <= m && r >= E;
|
|
1238
|
-
},
|
|
1239
|
-
function
|
|
1239
|
+
}, Ue = 3, Ve = "hasTransparency";
|
|
1240
|
+
function dt(e, n, t, i, o) {
|
|
1240
1241
|
return setTimeout(() => {
|
|
1241
1242
|
var u;
|
|
1242
1243
|
const r = (u = this.layerListInstance.find(
|
|
@@ -1246,61 +1247,61 @@ function st(e, n, t, i, o) {
|
|
|
1246
1247
|
return ((E = m._imageryProvider._resource) == null ? void 0 : E._url) === ((w = this._resource) == null ? void 0 : w._url);
|
|
1247
1248
|
}
|
|
1248
1249
|
/* eslint-enable */
|
|
1249
|
-
)) == null ? void 0 : u.meta, d =
|
|
1250
|
-
this.tileTransparencyCheckedCounter <
|
|
1250
|
+
)) == null ? void 0 : u.meta, d = ee(r, Ve) === !0;
|
|
1251
|
+
this.tileTransparencyCheckedCounter < Ue && !d && xr(o == null ? void 0 : o.url, this).then((m) => {
|
|
1251
1252
|
var E;
|
|
1252
1253
|
(E = this.mapViewer.layersManager) == null || E.addMetaToLayer(
|
|
1253
|
-
{ [
|
|
1254
|
+
{ [Ve]: m },
|
|
1254
1255
|
/* eslint-disable */
|
|
1255
1256
|
(w) => w._imageryProvider._resource._url === this._resource._url
|
|
1256
1257
|
);
|
|
1257
1258
|
});
|
|
1258
1259
|
}, 0), e(n, t, i, o);
|
|
1259
1260
|
}
|
|
1260
|
-
class
|
|
1261
|
+
class Zt extends st {
|
|
1261
1262
|
constructor(t, i) {
|
|
1262
1263
|
var o;
|
|
1263
1264
|
super(t);
|
|
1264
1265
|
Z(this, "layerListInstance");
|
|
1265
1266
|
Z(this, "mapViewer");
|
|
1266
|
-
Z(this, "maxTilesForTransparencyCheck",
|
|
1267
|
+
Z(this, "maxTilesForTransparencyCheck", Ue);
|
|
1267
1268
|
Z(this, "tileTransparencyCheckedCounter", 0);
|
|
1268
1269
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1269
1270
|
}
|
|
1270
1271
|
requestImage(t, i, o, r) {
|
|
1271
|
-
return
|
|
1272
|
+
return dt.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1272
1273
|
}
|
|
1273
1274
|
}
|
|
1274
|
-
class
|
|
1275
|
+
class Jt extends at {
|
|
1275
1276
|
constructor(t, i) {
|
|
1276
1277
|
var o;
|
|
1277
1278
|
super(t);
|
|
1278
1279
|
Z(this, "layerListInstance");
|
|
1279
1280
|
Z(this, "mapViewer");
|
|
1280
|
-
Z(this, "maxTilesForTransparencyCheck",
|
|
1281
|
+
Z(this, "maxTilesForTransparencyCheck", Ue);
|
|
1281
1282
|
Z(this, "tileTransparencyCheckedCounter", 0);
|
|
1282
1283
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1283
1284
|
}
|
|
1284
1285
|
requestImage(t, i, o, r) {
|
|
1285
|
-
return
|
|
1286
|
+
return dt.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1286
1287
|
}
|
|
1287
1288
|
}
|
|
1288
|
-
class
|
|
1289
|
+
class Qt extends lt {
|
|
1289
1290
|
constructor(t, i) {
|
|
1290
1291
|
var o;
|
|
1291
1292
|
super(t);
|
|
1292
1293
|
Z(this, "layerListInstance");
|
|
1293
1294
|
Z(this, "mapViewer");
|
|
1294
|
-
Z(this, "maxTilesForTransparencyCheck",
|
|
1295
|
+
Z(this, "maxTilesForTransparencyCheck", Ue);
|
|
1295
1296
|
Z(this, "tileTransparencyCheckedCounter", 0);
|
|
1296
1297
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1297
1298
|
}
|
|
1298
1299
|
requestImage(t, i, o, r) {
|
|
1299
|
-
return
|
|
1300
|
+
return dt.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1300
1301
|
}
|
|
1301
1302
|
}
|
|
1302
|
-
const
|
|
1303
|
-
class
|
|
1303
|
+
const Or = 1, Rr = -1, bt = "TRANSPARENT_BASE_LAYER";
|
|
1304
|
+
class Nr {
|
|
1304
1305
|
constructor(n, t, i, o) {
|
|
1305
1306
|
Z(this, "mapViewer");
|
|
1306
1307
|
Z(this, "legendsList");
|
|
@@ -1308,9 +1309,9 @@ class Rr {
|
|
|
1308
1309
|
Z(this, "layers");
|
|
1309
1310
|
Z(this, "legendsExtractor");
|
|
1310
1311
|
Z(this, "layerManagerFootprintMetaFieldPath");
|
|
1311
|
-
this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new
|
|
1312
|
+
this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new ai(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
|
|
1312
1313
|
const d = Object.keys(r);
|
|
1313
|
-
d.length === 1 && d[0] ===
|
|
1314
|
+
d.length === 1 && d[0] === Ve && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
|
|
1314
1315
|
}), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
|
|
1315
1316
|
this.setLegends(), this.markRelevantLayersForExtent(), this.hideNonRelevantLayers();
|
|
1316
1317
|
}), this.mapViewer.imageryLayers.layerMoved.addEventListener(() => {
|
|
@@ -1335,23 +1336,23 @@ class Rr {
|
|
|
1335
1336
|
setBaseMapLayers(n) {
|
|
1336
1337
|
n.baseRasteLayers.sort((i, o) => i.zIndex - o.zIndex).forEach((i, o) => {
|
|
1337
1338
|
this.addRasterLayer(i, o, n.id);
|
|
1338
|
-
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(
|
|
1339
|
+
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(bt), this.addTransparentImageryProvider());
|
|
1339
1340
|
}
|
|
1340
1341
|
addRasterLayer(n, t, i) {
|
|
1341
1342
|
let o;
|
|
1342
1343
|
switch (n.type) {
|
|
1343
1344
|
case "XYZ_LAYER": {
|
|
1344
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1345
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Zt(r, this.mapViewer) : new st(r);
|
|
1345
1346
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1346
1347
|
break;
|
|
1347
1348
|
}
|
|
1348
1349
|
case "WMS_LAYER": {
|
|
1349
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1350
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Jt(r, this.mapViewer) : new at(r);
|
|
1350
1351
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1351
1352
|
break;
|
|
1352
1353
|
}
|
|
1353
1354
|
case "WMTS_LAYER": {
|
|
1354
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1355
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Qt(r, this.mapViewer) : new lt(r);
|
|
1355
1356
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1356
1357
|
break;
|
|
1357
1358
|
}
|
|
@@ -1366,13 +1367,13 @@ class Rr {
|
|
|
1366
1367
|
t && this.mapViewer.imageryLayers.remove(t, !0);
|
|
1367
1368
|
}
|
|
1368
1369
|
removeBaseMapLayers() {
|
|
1369
|
-
this.layers.filter((t) => !!
|
|
1370
|
+
this.layers.filter((t) => !!ee(t.meta, "parentBasetMapId")).forEach((t) => {
|
|
1370
1371
|
this.mapViewer.imageryLayers.remove(t, !0);
|
|
1371
1372
|
});
|
|
1372
1373
|
}
|
|
1373
1374
|
// Remove all non base layers
|
|
1374
1375
|
removeNotBaseMapLayers() {
|
|
1375
|
-
this.layers.filter((t) => !
|
|
1376
|
+
this.layers.filter((t) => !ee(t.meta, "parentBasetMapId")).forEach((t) => {
|
|
1376
1377
|
this.mapViewer.imageryLayers.remove(t, !0);
|
|
1377
1378
|
});
|
|
1378
1379
|
}
|
|
@@ -1406,7 +1407,7 @@ class Rr {
|
|
|
1406
1407
|
i !== void 0 && (i.show = t);
|
|
1407
1408
|
}
|
|
1408
1409
|
showAllNotBase(n) {
|
|
1409
|
-
this.layers.filter((i) => !
|
|
1410
|
+
this.layers.filter((i) => !ee(i.meta, "parentBasetMapId")).forEach((i) => {
|
|
1410
1411
|
var o;
|
|
1411
1412
|
this.show((o = i.meta) == null ? void 0 : o.id, n);
|
|
1412
1413
|
});
|
|
@@ -1419,14 +1420,14 @@ class Rr {
|
|
|
1419
1420
|
var o;
|
|
1420
1421
|
const t = this.mapViewer.camera.getPickRay(n);
|
|
1421
1422
|
let i;
|
|
1422
|
-
return t && (i = (o = this.mapViewer.imageryLayers.pickImageryLayers(t, this.mapViewer.scene)) == null ? void 0 : o.filter((r) => !
|
|
1423
|
+
return t && (i = (o = this.mapViewer.imageryLayers.pickImageryLayers(t, this.mapViewer.scene)) == null ? void 0 : o.filter((r) => !ee(r.meta, "parentBasetMapId"))), i;
|
|
1423
1424
|
}
|
|
1424
1425
|
findLayerByPOI(n, t, i = !0) {
|
|
1425
1426
|
if (this.layerManagerFootprintMetaFieldPath) {
|
|
1426
|
-
const o =
|
|
1427
|
-
return this.layers.filter((u) => !
|
|
1428
|
-
const m =
|
|
1429
|
-
return m !== void 0 ?
|
|
1427
|
+
const o = yr(this.mapViewer, n, t);
|
|
1428
|
+
return this.layers.filter((u) => !ee(u.meta, "parentBasetMapId")).filter((u) => {
|
|
1429
|
+
const m = ee(u.meta, this.layerManagerFootprintMetaFieldPath);
|
|
1430
|
+
return m !== void 0 ? Li(o.geometry, {
|
|
1430
1431
|
type: "Feature",
|
|
1431
1432
|
properties: {},
|
|
1432
1433
|
geometry: m
|
|
@@ -1440,16 +1441,16 @@ class Rr {
|
|
|
1440
1441
|
}
|
|
1441
1442
|
addTransparentImageryProvider() {
|
|
1442
1443
|
const n = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1443
|
-
new
|
|
1444
|
+
new li({
|
|
1444
1445
|
url: "./assets/img/transparent-tile.png",
|
|
1445
1446
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1446
|
-
rectangle: new
|
|
1447
|
+
rectangle: new Se(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
|
|
1447
1448
|
/* eslint-enable @typescript-eslint/no-magic-numbers */
|
|
1448
1449
|
}),
|
|
1449
1450
|
0
|
|
1450
1451
|
);
|
|
1451
1452
|
n.meta = {
|
|
1452
|
-
id:
|
|
1453
|
+
id: bt,
|
|
1453
1454
|
skipRelevancyCheck: !0,
|
|
1454
1455
|
parentBasetMapId: "TRANSPARENT_LAYER"
|
|
1455
1456
|
};
|
|
@@ -1458,16 +1459,16 @@ class Rr {
|
|
|
1458
1459
|
typeof this.legendsExtractor < "u" && (this.legendsList = this.legendsExtractor(this.layers));
|
|
1459
1460
|
}
|
|
1460
1461
|
getBaseLayersCount() {
|
|
1461
|
-
return this.layers.filter((t) => !!
|
|
1462
|
+
return this.layers.filter((t) => !!ee(t.meta, "parentBasetMapId")).length;
|
|
1462
1463
|
}
|
|
1463
1464
|
findLayerById(n) {
|
|
1464
1465
|
return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
|
|
1465
1466
|
}
|
|
1466
1467
|
updateLayersOrder(n, t, i) {
|
|
1467
|
-
const o = t > i ?
|
|
1468
|
+
const o = t > i ? Or : Rr, r = t < i ? t : i, d = t < i ? i : t;
|
|
1468
1469
|
this.layers.forEach((u) => {
|
|
1469
1470
|
var E;
|
|
1470
|
-
if (!
|
|
1471
|
+
if (!ee(u.meta, "parentBasetMapId")) {
|
|
1471
1472
|
const w = (E = u.meta) == null ? void 0 : E.zIndex;
|
|
1472
1473
|
u.meta.zIndex = w >= r && w <= d && w !== t ? w + o : w === t ? i : w;
|
|
1473
1474
|
}
|
|
@@ -1483,17 +1484,17 @@ class Rr {
|
|
|
1483
1484
|
try {
|
|
1484
1485
|
const i = this.mapViewer.camera.computeViewRectangle();
|
|
1485
1486
|
for (let o = this.layers.length - 1; o >= 0; o--) {
|
|
1486
|
-
const r = this.layers[o], d = !
|
|
1487
|
+
const r = this.layers[o], d = !nt(i) && !nt(r.rectangle) && Se.intersection(i, r.rectangle);
|
|
1487
1488
|
for (let u = this.layers.length - 1; u >= o; u--) {
|
|
1488
1489
|
if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
|
|
1489
1490
|
r.meta = { ...r.meta, relevantToExtent: !0 };
|
|
1490
1491
|
continue;
|
|
1491
1492
|
}
|
|
1492
|
-
const m = this.layers[u], E = ((t = m.meta) == null ? void 0 : t[
|
|
1493
|
+
const m = this.layers[u], E = ((t = m.meta) == null ? void 0 : t[Ve]) === !0;
|
|
1493
1494
|
if (r !== m)
|
|
1494
|
-
if (d instanceof
|
|
1495
|
-
if (
|
|
1496
|
-
if (
|
|
1495
|
+
if (d instanceof Se) {
|
|
1496
|
+
if (Be(i, r.rectangle))
|
|
1497
|
+
if (Be(i, m.rectangle) && !E) {
|
|
1497
1498
|
r.meta = {
|
|
1498
1499
|
...r.meta ?? {},
|
|
1499
1500
|
relevantToExtent: !1
|
|
@@ -1504,11 +1505,11 @@ class Rr {
|
|
|
1504
1505
|
...r.meta ?? {},
|
|
1505
1506
|
relevantToExtent: !0
|
|
1506
1507
|
};
|
|
1507
|
-
if (
|
|
1508
|
+
if (Be(i, m.rectangle) && !E) {
|
|
1508
1509
|
r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
|
|
1509
1510
|
break;
|
|
1510
1511
|
}
|
|
1511
|
-
if (
|
|
1512
|
+
if (Be(r.rectangle, m.rectangle)) {
|
|
1512
1513
|
if (r.meta = {
|
|
1513
1514
|
...r.meta ?? {},
|
|
1514
1515
|
relevantToExtent: E
|
|
@@ -1521,7 +1522,7 @@ class Rr {
|
|
|
1521
1522
|
else
|
|
1522
1523
|
o === this.layers.length - 1 && (r.meta = {
|
|
1523
1524
|
...r.meta ?? {},
|
|
1524
|
-
relevantToExtent: d instanceof
|
|
1525
|
+
relevantToExtent: d instanceof Se
|
|
1525
1526
|
});
|
|
1526
1527
|
}
|
|
1527
1528
|
}
|
|
@@ -1530,8 +1531,8 @@ class Rr {
|
|
|
1530
1531
|
}
|
|
1531
1532
|
}
|
|
1532
1533
|
}
|
|
1533
|
-
const
|
|
1534
|
-
class
|
|
1534
|
+
const Tt = 212, _t = 260, Br = 0;
|
|
1535
|
+
class cs extends ci {
|
|
1535
1536
|
constructor(t, i) {
|
|
1536
1537
|
super(t, i);
|
|
1537
1538
|
Z(this, "layersManager");
|
|
@@ -1544,14 +1545,14 @@ class as extends li {
|
|
|
1544
1545
|
this.useOptimizedTileRequests = t;
|
|
1545
1546
|
}
|
|
1546
1547
|
}
|
|
1547
|
-
const
|
|
1548
|
-
const e =
|
|
1548
|
+
const en = Ae(null), Fr = en.Provider, he = () => {
|
|
1549
|
+
const e = ke(en);
|
|
1549
1550
|
if (e === null)
|
|
1550
1551
|
throw new Error("map context is null, please check the provider");
|
|
1551
1552
|
return e;
|
|
1552
|
-
},
|
|
1553
|
-
var
|
|
1554
|
-
const n =
|
|
1553
|
+
}, ds = (e) => {
|
|
1554
|
+
var M, W, X, R, z, Q, ne, ge;
|
|
1555
|
+
const n = we(null), [t, i] = D(), [o, r] = D(), [d, u] = D(), [m, E] = D(), [w, P] = D(), [T, I] = D(), [G, q] = D(!1), [K, F] = D(), Y = we(), [U, A] = D(), [$, O] = D([]), [V, te] = D(), [s, a] = D(!1), y = we(), [c, f] = D(void 0), [h, v] = D(!1), [g, C] = D(), S = {
|
|
1555
1556
|
fullscreenButton: !0,
|
|
1556
1557
|
timeline: !1,
|
|
1557
1558
|
animation: !1,
|
|
@@ -1561,243 +1562,248 @@ const Zt = Pe(null), Br = Zt.Provider, me = () => {
|
|
|
1561
1562
|
homeButton: !1,
|
|
1562
1563
|
sceneModePicker: !1,
|
|
1563
1564
|
...e
|
|
1564
|
-
},
|
|
1565
|
-
const
|
|
1565
|
+
}, _ = (B, x, j, fe, be) => {
|
|
1566
|
+
const ye = t.container, Oe = ye.clientWidth, Re = ye.clientHeight, De = fe + be;
|
|
1566
1567
|
return {
|
|
1567
|
-
left: `${
|
|
1568
|
-
top: `${
|
|
1568
|
+
left: `${Oe - B < j ? B - (j - (Oe - B)) : B}px`,
|
|
1569
|
+
top: `${Re - x < De ? x - (De - (Re - x)) : x}px`
|
|
1569
1570
|
};
|
|
1570
|
-
},
|
|
1571
|
+
}, b = me((B) => {
|
|
1571
1572
|
if (n.current !== null) {
|
|
1572
|
-
const
|
|
1573
|
-
|
|
1573
|
+
const x = n.current.cesiumElement, j = { x: B.offsetX, y: B.offsetY };
|
|
1574
|
+
a(!1), f(j), C(vr(x, j.x, j.y)), a(!0), y.current = B;
|
|
1574
1575
|
}
|
|
1575
1576
|
}, [n]);
|
|
1576
|
-
|
|
1577
|
-
var
|
|
1577
|
+
k(() => {
|
|
1578
|
+
var B;
|
|
1578
1579
|
if (n.current !== null) {
|
|
1579
|
-
const
|
|
1580
|
-
e.imageryContextMenu && (
|
|
1580
|
+
const x = n.current.cesiumElement;
|
|
1581
|
+
e.imageryContextMenu && (x.scene.canvas.removeEventListener("contextmenu", b), x.scene.canvas.addEventListener("contextmenu", b));
|
|
1581
1582
|
}
|
|
1582
|
-
i((
|
|
1583
|
-
}, [n, e.imageryContextMenu]),
|
|
1584
|
-
var
|
|
1585
|
-
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new
|
|
1583
|
+
i((B = n.current) == null ? void 0 : B.cesiumElement);
|
|
1584
|
+
}, [n, e.imageryContextMenu]), k(() => {
|
|
1585
|
+
var B;
|
|
1586
|
+
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new Nr(
|
|
1586
1587
|
t,
|
|
1587
|
-
(
|
|
1588
|
+
(B = e.legends) == null ? void 0 : B.mapLegendsExtractor,
|
|
1588
1589
|
() => {
|
|
1589
|
-
var
|
|
1590
|
-
|
|
1590
|
+
var x;
|
|
1591
|
+
O((x = t.layersManager) == null ? void 0 : x.legendsList);
|
|
1591
1592
|
},
|
|
1592
1593
|
e.layerManagerFootprintMetaFieldPath
|
|
1593
1594
|
));
|
|
1594
|
-
}, [t]),
|
|
1595
|
+
}, [t]), k(() => {
|
|
1595
1596
|
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1);
|
|
1596
|
-
}, [e.useOptimizedTileRequests, t]),
|
|
1597
|
-
|
|
1598
|
-
}, [e.sceneModes]),
|
|
1599
|
-
var
|
|
1600
|
-
|
|
1601
|
-
const
|
|
1602
|
-
|
|
1603
|
-
}, [e.baseMaps, t]),
|
|
1604
|
-
r(e.projection ??
|
|
1605
|
-
}, [e.projection]),
|
|
1606
|
-
|
|
1607
|
-
}, [e.locale]),
|
|
1597
|
+
}, [e.useOptimizedTileRequests, t]), k(() => {
|
|
1598
|
+
A(e.sceneModes ?? [oe.SCENE2D, oe.SCENE3D, oe.COLUMBUS_VIEW]);
|
|
1599
|
+
}, [e.sceneModes]), k(() => {
|
|
1600
|
+
var x, j;
|
|
1601
|
+
te(e.baseMaps);
|
|
1602
|
+
const B = (x = e.baseMaps) == null ? void 0 : x.maps.find((fe) => fe.isCurrent);
|
|
1603
|
+
B && t && ((j = t.layersManager) == null || j.setBaseMapLayers(B));
|
|
1604
|
+
}, [e.baseMaps, t]), k(() => {
|
|
1605
|
+
r(e.projection ?? ue.WGS84);
|
|
1606
|
+
}, [e.projection]), k(() => {
|
|
1607
|
+
F(e.locale);
|
|
1608
|
+
}, [e.locale]), k(() => {
|
|
1608
1609
|
u(e.showMousePosition ?? !0);
|
|
1609
|
-
}, [e.showMousePosition]),
|
|
1610
|
+
}, [e.showMousePosition]), k(() => {
|
|
1610
1611
|
E(e.showZoomLevel ?? !0);
|
|
1611
|
-
}, [e.showZoomLevel]),
|
|
1612
|
-
|
|
1613
|
-
}, [e.showScale]),
|
|
1614
|
-
|
|
1612
|
+
}, [e.showZoomLevel]), k(() => {
|
|
1613
|
+
P(e.showScale ?? !0);
|
|
1614
|
+
}, [e.showScale]), k(() => {
|
|
1615
|
+
I(e.showLoadingProgress ?? !0);
|
|
1616
|
+
}, [e.showLoadingProgress]), k(() => {
|
|
1617
|
+
const B = () => {
|
|
1615
1618
|
if (t === void 0)
|
|
1616
1619
|
return {
|
|
1617
1620
|
longitude: 0,
|
|
1618
1621
|
latitude: 0,
|
|
1619
1622
|
height: 0
|
|
1620
1623
|
};
|
|
1621
|
-
const
|
|
1622
|
-
const
|
|
1624
|
+
const x = () => {
|
|
1625
|
+
const j = t.camera.positionCartographic;
|
|
1623
1626
|
return {
|
|
1624
|
-
longitude:
|
|
1625
|
-
latitude:
|
|
1626
|
-
height:
|
|
1627
|
+
longitude: Ne(j.longitude),
|
|
1628
|
+
latitude: Ne(j.latitude),
|
|
1629
|
+
height: j.height
|
|
1627
1630
|
};
|
|
1628
1631
|
};
|
|
1629
|
-
if (t.scene.mode ===
|
|
1630
|
-
const
|
|
1632
|
+
if (t.scene.mode === Ce.SCENE3D) {
|
|
1633
|
+
const j = new Me(
|
|
1631
1634
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1632
1635
|
t.container.clientWidth / 2,
|
|
1633
1636
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1634
1637
|
t.container.clientHeight / 2
|
|
1635
|
-
),
|
|
1636
|
-
if (!
|
|
1638
|
+
), fe = t.scene.camera.getPickRay(j), be = t.scene.globe.pick(fe, t.scene);
|
|
1639
|
+
if (!be)
|
|
1637
1640
|
return {
|
|
1638
1641
|
longitude: 0,
|
|
1639
1642
|
latitude: 0,
|
|
1640
1643
|
height: 0
|
|
1641
1644
|
};
|
|
1642
|
-
const
|
|
1643
|
-
return
|
|
1644
|
-
longitude:
|
|
1645
|
-
latitude:
|
|
1645
|
+
const ye = t.scene.globe.ellipsoid.cartesianToCartographic(be);
|
|
1646
|
+
return ye !== void 0 ? {
|
|
1647
|
+
longitude: Ne(ye.longitude),
|
|
1648
|
+
latitude: Ne(ye.latitude),
|
|
1646
1649
|
height: t.scene.camera.positionCartographic.height
|
|
1647
|
-
} :
|
|
1650
|
+
} : x();
|
|
1648
1651
|
} else
|
|
1649
|
-
return
|
|
1652
|
+
return x();
|
|
1650
1653
|
};
|
|
1651
|
-
t && t.camera.moveEnd.addEventListener(() => {
|
|
1652
|
-
if (t.scene.mode !==
|
|
1653
|
-
const
|
|
1654
|
-
position:
|
|
1655
|
-
direction:
|
|
1656
|
-
up:
|
|
1657
|
-
right:
|
|
1658
|
-
transform:
|
|
1659
|
-
frustum:
|
|
1654
|
+
t && (t.camera.moveEnd.addEventListener(() => {
|
|
1655
|
+
if (t.scene.mode !== Ce.MORPHING) {
|
|
1656
|
+
const x = t.camera, j = {
|
|
1657
|
+
position: B(),
|
|
1658
|
+
direction: x.direction.clone(),
|
|
1659
|
+
up: x.up.clone(),
|
|
1660
|
+
right: x.right.clone(),
|
|
1661
|
+
transform: x.transform.clone(),
|
|
1662
|
+
frustum: x.frustum.clone()
|
|
1660
1663
|
};
|
|
1661
|
-
|
|
1664
|
+
Y.current = j;
|
|
1662
1665
|
}
|
|
1663
|
-
})
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1666
|
+
}), T && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
|
|
1667
|
+
t.scene.globe.tilesLoaded === !0 ? q(!1) : q(!0);
|
|
1668
|
+
}));
|
|
1669
|
+
}, [t]), k(() => {
|
|
1670
|
+
const B = () => {
|
|
1671
|
+
if (t && Y.current) {
|
|
1672
|
+
const x = Y.current;
|
|
1668
1673
|
t.camera.flyTo({
|
|
1669
|
-
destination:
|
|
1674
|
+
destination: pe.fromDegrees(x.position.longitude, x.position.latitude, x.position.height),
|
|
1670
1675
|
duration: 0
|
|
1671
1676
|
});
|
|
1672
1677
|
}
|
|
1673
1678
|
};
|
|
1674
|
-
return t && t.scene.morphComplete.addEventListener(
|
|
1679
|
+
return t && t.scene.morphComplete.addEventListener(B), () => {
|
|
1675
1680
|
if (t)
|
|
1676
1681
|
try {
|
|
1677
|
-
t.scene.morphComplete.removeEventListener(
|
|
1682
|
+
t.scene.morphComplete.removeEventListener(B);
|
|
1678
1683
|
} catch {
|
|
1679
1684
|
console.error("morphCompleteHandler event not cleaned");
|
|
1680
1685
|
}
|
|
1681
1686
|
};
|
|
1682
|
-
}, [t]),
|
|
1683
|
-
const
|
|
1684
|
-
t &&
|
|
1685
|
-
destination:
|
|
1687
|
+
}, [t]), k(() => {
|
|
1688
|
+
const B = e.zoom, x = e.center;
|
|
1689
|
+
t && Ge(B) && Si(x) && t.camera.flyTo({
|
|
1690
|
+
destination: pe.fromDegrees(x[0], x[1], gr(B)),
|
|
1686
1691
|
duration: 0
|
|
1687
1692
|
});
|
|
1688
1693
|
}, [e.zoom, e.center, t]);
|
|
1689
|
-
const
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1692
|
-
|
|
1693
|
-
/* @__PURE__ */ l(
|
|
1694
|
+
const L = me(() => t && Kn(
|
|
1695
|
+
/* @__PURE__ */ N(ie, { children: [
|
|
1696
|
+
T === !0 ? G && /* @__PURE__ */ l(Dn, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(ie, {}),
|
|
1697
|
+
/* @__PURE__ */ N(ae, { className: "sideToolsContainer", children: [
|
|
1698
|
+
/* @__PURE__ */ l(Pr, { sceneModes: U, baseMaps: V, locale: K }),
|
|
1699
|
+
/* @__PURE__ */ l(Dr, { onClick: () => v(!h) })
|
|
1694
1700
|
] }),
|
|
1695
|
-
/* @__PURE__ */
|
|
1696
|
-
d === !0 ? /* @__PURE__ */ l(
|
|
1697
|
-
m === !0 ? /* @__PURE__ */ l(
|
|
1698
|
-
w === !0 ? /* @__PURE__ */ l(
|
|
1701
|
+
/* @__PURE__ */ N(ae, { className: "toolsContainer", children: [
|
|
1702
|
+
d === !0 ? /* @__PURE__ */ l(fr, { projection: o }) : /* @__PURE__ */ l(ie, {}),
|
|
1703
|
+
m === !0 ? /* @__PURE__ */ l(br, { locale: K }) : /* @__PURE__ */ l(ie, {}),
|
|
1704
|
+
w === !0 ? /* @__PURE__ */ l(Cr, { locale: K }) : /* @__PURE__ */ l(ie, {})
|
|
1699
1705
|
] })
|
|
1700
1706
|
] }),
|
|
1701
1707
|
document.querySelector(".cesium-viewer")
|
|
1702
|
-
), [
|
|
1703
|
-
return /* @__PURE__ */ l(
|
|
1708
|
+
), [V, K, t, o, U, d, w, h, G]);
|
|
1709
|
+
return /* @__PURE__ */ l(qn, { className: "viewer", full: !0, ref: n, ...S, children: /* @__PURE__ */ N(Fr, { value: t, children: [
|
|
1704
1710
|
/* @__PURE__ */ l(
|
|
1705
|
-
|
|
1711
|
+
kr,
|
|
1706
1712
|
{
|
|
1707
|
-
title: (
|
|
1708
|
-
isOpen:
|
|
1709
|
-
toggleSidebar: () =>
|
|
1710
|
-
noLegendsText: (
|
|
1711
|
-
legends: ((
|
|
1712
|
-
actionsTexts: (
|
|
1713
|
+
title: (M = e.legends) == null ? void 0 : M.title,
|
|
1714
|
+
isOpen: h,
|
|
1715
|
+
toggleSidebar: () => v(!h),
|
|
1716
|
+
noLegendsText: (W = e.legends) == null ? void 0 : W.emptyText,
|
|
1717
|
+
legends: ((X = e.legends) == null ? void 0 : X.legendsList) ?? $,
|
|
1718
|
+
actionsTexts: (R = e.legends) == null ? void 0 : R.actionsTexts
|
|
1713
1719
|
}
|
|
1714
1720
|
),
|
|
1715
1721
|
e.children,
|
|
1716
|
-
|
|
1717
|
-
e.imageryContextMenu &&
|
|
1718
|
-
data: (
|
|
1722
|
+
L(),
|
|
1723
|
+
e.imageryContextMenu && s && c && g && ve.cloneElement(e.imageryContextMenu, {
|
|
1724
|
+
data: (z = t == null ? void 0 : t.layersManager) == null ? void 0 : z.findLayerByPOI(c.x, c.y, !1),
|
|
1719
1725
|
position: {
|
|
1720
|
-
x:
|
|
1721
|
-
y:
|
|
1726
|
+
x: c.x,
|
|
1727
|
+
y: c.y
|
|
1722
1728
|
},
|
|
1723
|
-
coordinates:
|
|
1724
|
-
style:
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
((
|
|
1728
|
-
((
|
|
1729
|
-
((
|
|
1729
|
+
coordinates: g,
|
|
1730
|
+
style: _(
|
|
1731
|
+
c.x,
|
|
1732
|
+
c.y,
|
|
1733
|
+
((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ?? _t,
|
|
1734
|
+
((ne = e.imageryContextMenuSize) == null ? void 0 : ne.height) ?? Tt,
|
|
1735
|
+
((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ?? Br
|
|
1730
1736
|
),
|
|
1731
1737
|
size: e.imageryContextMenuSize ?? {
|
|
1732
|
-
height:
|
|
1733
|
-
width:
|
|
1738
|
+
height: Tt,
|
|
1739
|
+
width: _t
|
|
1734
1740
|
},
|
|
1735
1741
|
handleClose: () => {
|
|
1736
|
-
|
|
1742
|
+
a(!s);
|
|
1737
1743
|
},
|
|
1738
|
-
contextEvt:
|
|
1744
|
+
contextEvt: y.current
|
|
1739
1745
|
})
|
|
1740
1746
|
] }) });
|
|
1741
|
-
},
|
|
1742
|
-
const n =
|
|
1747
|
+
}, Hr = 0, us = (e) => {
|
|
1748
|
+
const n = he();
|
|
1743
1749
|
return /* @__PURE__ */ l(
|
|
1744
|
-
|
|
1750
|
+
Yn,
|
|
1745
1751
|
{
|
|
1746
1752
|
...e,
|
|
1747
1753
|
onReady: (t) => {
|
|
1748
1754
|
e.isZoomTo === !0 && n.zoomTo(t);
|
|
1749
1755
|
const i = n.scene;
|
|
1750
1756
|
i.globe.depthTestAgainstTerrain = !0;
|
|
1751
|
-
const o =
|
|
1757
|
+
const o = We.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? Hr;
|
|
1752
1758
|
if (r) {
|
|
1753
|
-
const d =
|
|
1754
|
-
t.modelMatrix =
|
|
1759
|
+
const d = pe.fromRadians(o.longitude, o.latitude, o.height), u = pe.fromRadians(o.longitude, o.latitude, o.height + r), m = pe.subtract(u, d, new pe());
|
|
1760
|
+
t.modelMatrix = di.fromTranslation(m);
|
|
1755
1761
|
}
|
|
1756
1762
|
}
|
|
1757
1763
|
}
|
|
1758
1764
|
);
|
|
1759
|
-
},
|
|
1760
|
-
Math.abs(e[0]) ===
|
|
1761
|
-
},
|
|
1765
|
+
}, St = 180, Lt = 1e-3, Pt = -1, Mt = (e) => Math.abs(e) / e, Dt = (e) => {
|
|
1766
|
+
Math.abs(e[0]) === St && Math.abs(e[1]) === St / 2 && (e[0] += Pt * Mt(e[0]) * Lt, e[1] += Pt * Mt(e[1]) * Lt);
|
|
1767
|
+
}, It = (e) => {
|
|
1762
1768
|
switch (e.type) {
|
|
1763
1769
|
case "LineString":
|
|
1764
1770
|
e.coordinates.forEach((n) => {
|
|
1765
|
-
|
|
1771
|
+
Dt(n);
|
|
1766
1772
|
});
|
|
1767
1773
|
break;
|
|
1768
1774
|
case "Polygon":
|
|
1769
1775
|
e.coordinates.forEach((n) => {
|
|
1770
1776
|
n.forEach((t) => {
|
|
1771
|
-
|
|
1777
|
+
Dt(t);
|
|
1772
1778
|
});
|
|
1773
1779
|
});
|
|
1774
1780
|
break;
|
|
1775
1781
|
}
|
|
1776
|
-
},
|
|
1782
|
+
}, hs = (e) => {
|
|
1777
1783
|
const { data: n, ...t } = e;
|
|
1778
1784
|
return n && (typeof n.features < "u" ? n.features.forEach((i) => {
|
|
1779
|
-
|
|
1780
|
-
}) :
|
|
1781
|
-
},
|
|
1782
|
-
const { meta: n, ...t } = e, i =
|
|
1785
|
+
It(i.geometry);
|
|
1786
|
+
}) : It(n)), /* @__PURE__ */ l(Xn, { data: n, ...t });
|
|
1787
|
+
}, je = (e) => {
|
|
1788
|
+
const { meta: n, ...t } = e, i = he();
|
|
1783
1789
|
return on(() => {
|
|
1784
1790
|
var o;
|
|
1785
1791
|
(o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
|
|
1786
|
-
}, [n, i]), /* @__PURE__ */ l(
|
|
1787
|
-
}, us = (e) => {
|
|
1788
|
-
const { options: n, ...t } = e, i = me(), o = i.shouldOptimizedTileRequests ? new Yt(n, i) : new it(n);
|
|
1789
|
-
return /* @__PURE__ */ l(ze, { ...t, imageryProvider: o });
|
|
1790
|
-
}, hs = (e) => {
|
|
1791
|
-
const { options: n, ...t } = e, i = me(), o = i.shouldOptimizedTileRequests ? new Xt(n, i) : new rt(n);
|
|
1792
|
-
return /* @__PURE__ */ l(ze, { ...t, imageryProvider: o });
|
|
1792
|
+
}, [n, i]), /* @__PURE__ */ l(Zn, { ...t });
|
|
1793
1793
|
}, ms = (e) => {
|
|
1794
|
-
const { options: n, ...t } = e, i =
|
|
1795
|
-
return /* @__PURE__ */ l(
|
|
1794
|
+
const { options: n, ...t } = e, i = he(), o = i.shouldOptimizedTileRequests ? new Jt(n, i) : new at(n);
|
|
1795
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
|
|
1796
1796
|
}, ps = (e) => {
|
|
1797
|
+
const { options: n, ...t } = e, i = he(), o = i.shouldOptimizedTileRequests ? new Qt(n, i) : new lt(n);
|
|
1798
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
|
|
1799
|
+
}, gs = (e) => {
|
|
1800
|
+
const { options: n, ...t } = e, i = he(), o = i.shouldOptimizedTileRequests ? new Zt(n, i) : new st(n);
|
|
1801
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
|
|
1802
|
+
}, fs = (e) => {
|
|
1797
1803
|
const { options: n, ...t } = e;
|
|
1798
|
-
return /* @__PURE__ */ l(
|
|
1799
|
-
},
|
|
1800
|
-
var
|
|
1804
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: new ui(n) });
|
|
1805
|
+
}, Gr = (e) => /* @__PURE__ */ l(Jn, { ...e }), ys = (e) => /* @__PURE__ */ l(Gt, { ...e }), Vr = (e) => /* @__PURE__ */ l(Gt, { ...e }), zr = (e) => /* @__PURE__ */ l(Qn, { ...e }), $r = (e) => /* @__PURE__ */ l(ei, { ...e }), Wr = (e) => /* @__PURE__ */ l(ti, { ...e }), Ur = (e) => /* @__PURE__ */ l(ni, { ...e });
|
|
1806
|
+
var Ee = function() {
|
|
1801
1807
|
var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
|
|
1802
1808
|
function i(s, a = new p.Color(1, 1, 0, 0.5), y = new p.Color(1, 1, 1, 1)) {
|
|
1803
1809
|
this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
|
|
@@ -1864,15 +1870,15 @@ var ye = function() {
|
|
|
1864
1870
|
asynchronous: !0,
|
|
1865
1871
|
show: !0,
|
|
1866
1872
|
debugShowBoundingVolume: !1
|
|
1867
|
-
}, r =
|
|
1873
|
+
}, r = O(o, {
|
|
1868
1874
|
appearance: new p.EllipsoidSurfaceAppearance({
|
|
1869
1875
|
aboveGround: !1
|
|
1870
1876
|
}),
|
|
1871
1877
|
material: t,
|
|
1872
1878
|
granularity: Math.PI / 180
|
|
1873
|
-
}), d =
|
|
1879
|
+
}), d = O(o, {}), u = O(o, {}), m = O(o, {}), E = O(r, {
|
|
1874
1880
|
rotation: 0
|
|
1875
|
-
}), w =
|
|
1881
|
+
}), w = O(o, {
|
|
1876
1882
|
width: 5,
|
|
1877
1883
|
geodesic: !0,
|
|
1878
1884
|
granularity: 1e4,
|
|
@@ -1880,7 +1886,7 @@ var ye = function() {
|
|
|
1880
1886
|
aboveGround: !1
|
|
1881
1887
|
}),
|
|
1882
1888
|
material: t
|
|
1883
|
-
}),
|
|
1889
|
+
}), P = function() {
|
|
1884
1890
|
function s() {
|
|
1885
1891
|
}
|
|
1886
1892
|
return s.prototype.initialiseOptions = function(a) {
|
|
@@ -1944,9 +1950,9 @@ var ye = function() {
|
|
|
1944
1950
|
function s(a) {
|
|
1945
1951
|
if (!p.defined(a.extent))
|
|
1946
1952
|
throw new p.DeveloperError("Extent is required");
|
|
1947
|
-
a =
|
|
1953
|
+
a = O(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
|
|
1948
1954
|
}
|
|
1949
|
-
return s.prototype = new
|
|
1955
|
+
return s.prototype = new P(), s.prototype.setExtent = function(a) {
|
|
1950
1956
|
this.setAttribute("extent", a);
|
|
1951
1957
|
}, s.prototype.getExtent = function() {
|
|
1952
1958
|
return this.getAttribute("extent");
|
|
@@ -1967,9 +1973,9 @@ var ye = function() {
|
|
|
1967
1973
|
}, s;
|
|
1968
1974
|
}(), i.PolygonPrimitive = function() {
|
|
1969
1975
|
function s(a) {
|
|
1970
|
-
a =
|
|
1976
|
+
a = O(a, r), this.initialiseOptions(a), this.isPolygon = !0;
|
|
1971
1977
|
}
|
|
1972
|
-
return s.prototype = new
|
|
1978
|
+
return s.prototype = new P(), s.prototype.setPositions = function(a) {
|
|
1973
1979
|
this.setAttribute("positions", a);
|
|
1974
1980
|
}, s.prototype.getPositions = function() {
|
|
1975
1981
|
return this.getAttribute("positions");
|
|
@@ -1992,9 +1998,9 @@ var ye = function() {
|
|
|
1992
1998
|
function s(a) {
|
|
1993
1999
|
if (!(p.defined(a.center) && p.defined(a.radius)))
|
|
1994
2000
|
throw new p.DeveloperError("Center and radius are required");
|
|
1995
|
-
a =
|
|
2001
|
+
a = O(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
|
|
1996
2002
|
}
|
|
1997
|
-
return s.prototype = new
|
|
2003
|
+
return s.prototype = new P(), s.prototype.setCenter = function(a) {
|
|
1998
2004
|
this.setAttribute("center", a);
|
|
1999
2005
|
}, s.prototype.setRadius = function(a) {
|
|
2000
2006
|
this.setAttribute("radius", Math.max(0.1, a));
|
|
@@ -2023,9 +2029,9 @@ var ye = function() {
|
|
|
2023
2029
|
function s(a) {
|
|
2024
2030
|
if (!(p.defined(a.center) && p.defined(a.semiMajorAxis) && p.defined(a.semiMinorAxis)))
|
|
2025
2031
|
throw new p.DeveloperError("Center and semi major and semi minor axis are required");
|
|
2026
|
-
a =
|
|
2032
|
+
a = O(a, E), this.initialiseOptions(a);
|
|
2027
2033
|
}
|
|
2028
|
-
return s.prototype = new
|
|
2034
|
+
return s.prototype = new P(), s.prototype.setCenter = function(a) {
|
|
2029
2035
|
this.setAttribute("center", a);
|
|
2030
2036
|
}, s.prototype.setSemiMajorAxis = function(a) {
|
|
2031
2037
|
a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
|
|
@@ -2064,9 +2070,9 @@ var ye = function() {
|
|
|
2064
2070
|
}, s;
|
|
2065
2071
|
}(), i.PolylinePrimitive = function() {
|
|
2066
2072
|
function s(a) {
|
|
2067
|
-
a =
|
|
2073
|
+
a = O(a, w), this.initialiseOptions(a);
|
|
2068
2074
|
}
|
|
2069
|
-
return s.prototype = new
|
|
2075
|
+
return s.prototype = new P(), s.prototype.setPositions = function(a) {
|
|
2070
2076
|
this.setAttribute("positions", a);
|
|
2071
2077
|
}, s.prototype.setWidth = function(a) {
|
|
2072
2078
|
this.setAttribute("width", a);
|
|
@@ -2093,11 +2099,11 @@ var ye = function() {
|
|
|
2093
2099
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2094
2100
|
shiftX: 0,
|
|
2095
2101
|
shiftY: 0
|
|
2096
|
-
},
|
|
2102
|
+
}, I = {
|
|
2097
2103
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2098
2104
|
shiftX: 0,
|
|
2099
2105
|
shiftY: 0
|
|
2100
|
-
},
|
|
2106
|
+
}, G = {
|
|
2101
2107
|
iconUrl: "./assets/img/dragIconLight.png",
|
|
2102
2108
|
shiftX: 0,
|
|
2103
2109
|
shiftY: 0
|
|
@@ -2106,7 +2112,7 @@ var ye = function() {
|
|
|
2106
2112
|
var c = new i.BillboardGroup(this, a);
|
|
2107
2113
|
return c.addBillboards(s, y), c;
|
|
2108
2114
|
}, i.BillboardGroup = function(s, a) {
|
|
2109
|
-
this._drawHelper = s, this._scene = s._scene, this._options =
|
|
2115
|
+
this._drawHelper = s, this._scene = s._scene, this._options = O(a, T);
|
|
2110
2116
|
var y = new p.BillboardCollection();
|
|
2111
2117
|
this._scene.primitives.add(y), this._billboards = y, this._orderedBillboards = [];
|
|
2112
2118
|
}, i.BillboardGroup.prototype.createBillboard = function(s, a) {
|
|
@@ -2135,7 +2141,7 @@ var ye = function() {
|
|
|
2135
2141
|
V(y, "leftDown", function(C) {
|
|
2136
2142
|
function S(L) {
|
|
2137
2143
|
y.position = L;
|
|
2138
|
-
for (var
|
|
2144
|
+
for (var M = 0, W = c._orderedBillboards.length; M < W && c._orderedBillboards[M] != y; ++M)
|
|
2139
2145
|
;
|
|
2140
2146
|
a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), L);
|
|
2141
2147
|
}
|
|
@@ -2144,8 +2150,8 @@ var ye = function() {
|
|
|
2144
2150
|
}
|
|
2145
2151
|
var b = new p.ScreenSpaceEventHandler(c._scene.canvas);
|
|
2146
2152
|
b.setInputAction(function(L) {
|
|
2147
|
-
var
|
|
2148
|
-
|
|
2153
|
+
var M = c._scene.camera.pickEllipsoid(L.endPosition, e);
|
|
2154
|
+
M ? S(M) : _(M);
|
|
2149
2155
|
}, p.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(L) {
|
|
2150
2156
|
_(c._scene.camera.pickEllipsoid(L.position, e));
|
|
2151
2157
|
}, p.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(C, e));
|
|
@@ -2183,7 +2189,7 @@ var ye = function() {
|
|
|
2183
2189
|
}, i.BillboardGroup.prototype.setOnTop = function() {
|
|
2184
2190
|
this._scene.primitives.raiseToTop(this._billboards);
|
|
2185
2191
|
}, i.prototype.startDrawingMarker = function(a) {
|
|
2186
|
-
var a =
|
|
2192
|
+
var a = O(a, T);
|
|
2187
2193
|
this.startDrawing(function() {
|
|
2188
2194
|
h.remove(), v.destroy(), f.setVisible(!1);
|
|
2189
2195
|
});
|
|
@@ -2206,17 +2212,17 @@ var ye = function() {
|
|
|
2206
2212
|
}
|
|
2207
2213
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2208
2214
|
}, i.prototype.startDrawingPolygon = function(a) {
|
|
2209
|
-
var a =
|
|
2215
|
+
var a = O(a, r);
|
|
2210
2216
|
this.startDrawingPolyshape(!0, a);
|
|
2211
2217
|
}, i.prototype.startDrawingPolyline = function(a) {
|
|
2212
|
-
var a =
|
|
2218
|
+
var a = O(a, w);
|
|
2213
2219
|
this.startDrawingPolyshape(!1, a);
|
|
2214
2220
|
}, i.prototype.startDrawingPolyshape = function(s, a) {
|
|
2215
2221
|
this.startDrawing(function() {
|
|
2216
2222
|
f.remove(g), S.remove(), _.destroy(), h.setVisible(!1), F(c);
|
|
2217
2223
|
});
|
|
2218
2224
|
var y = this, c = this._scene, f = c.primitives, h = this._tooltip, v = s ? 3 : 2, g;
|
|
2219
|
-
s ? g = new
|
|
2225
|
+
s ? g = new Ee.PolygonPrimitive(a) : g = new Ee.PolylinePrimitive(a), g.asynchronous = !1, f.add(g);
|
|
2220
2226
|
var C = [], S = new i.BillboardGroup(this, T), _ = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2221
2227
|
K(c), _.setInputAction(function(b) {
|
|
2222
2228
|
if (b.position != null) {
|
|
@@ -2229,8 +2235,8 @@ var ye = function() {
|
|
|
2229
2235
|
if (C.length == 0)
|
|
2230
2236
|
h.showAt(L, "<p>Click to add first point</p>");
|
|
2231
2237
|
else {
|
|
2232
|
-
var
|
|
2233
|
-
|
|
2238
|
+
var M = c.camera.pickEllipsoid(L, e);
|
|
2239
|
+
M && (C.pop(), M.y += 1 + Math.random(), C.push(M), C.length >= v && (g.positions = C, g._createPrimitive = !0), S.getBillboard(C.length - 1).position = M, h.showAt(
|
|
2234
2240
|
L,
|
|
2235
2241
|
"<p>Click to add new point (" + C.length + ")</p>" + (C.length > v ? "<p>Double click to finish drawing</p>" : "")
|
|
2236
2242
|
));
|
|
@@ -2240,12 +2246,12 @@ var ye = function() {
|
|
|
2240
2246
|
if (L != null) {
|
|
2241
2247
|
if (C.length < v + 2)
|
|
2242
2248
|
return;
|
|
2243
|
-
var
|
|
2244
|
-
|
|
2249
|
+
var M = c.camera.pickEllipsoid(L, e);
|
|
2250
|
+
M && (F(c), y.stopDrawing(), typeof a.callback == "function" && (C.length - 1, a.callback(C)));
|
|
2245
2251
|
}
|
|
2246
2252
|
}, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2247
2253
|
};
|
|
2248
|
-
function
|
|
2254
|
+
function q(s) {
|
|
2249
2255
|
return e.cartographicArrayToCartesianArray([
|
|
2250
2256
|
p.Rectangle.northwest(s),
|
|
2251
2257
|
p.Rectangle.northeast(s),
|
|
@@ -2260,18 +2266,18 @@ var ye = function() {
|
|
|
2260
2266
|
s && (s.canvas.style.cursor = "");
|
|
2261
2267
|
}
|
|
2262
2268
|
i.prototype.startDrawingExtent = function(a) {
|
|
2263
|
-
var a =
|
|
2269
|
+
var a = O(a, r);
|
|
2264
2270
|
this.startDrawing(function() {
|
|
2265
2271
|
g != null && f.remove(g), C != null && C.remove(), S.destroy(), h.setVisible(!1), F(c);
|
|
2266
2272
|
});
|
|
2267
2273
|
var y = this, c = this._scene, f = this._scene.primitives, h = this._tooltip, v = null, g = null, C = null, S = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2268
2274
|
K(c);
|
|
2269
2275
|
function _(b) {
|
|
2270
|
-
g == null && (g = new
|
|
2276
|
+
g == null && (g = new Ee.ExtentPrimitive({
|
|
2271
2277
|
extent: b,
|
|
2272
2278
|
material: a.material
|
|
2273
2279
|
}), g.asynchronous = !1, f.add(g)), g.setExtent(b);
|
|
2274
|
-
var L =
|
|
2280
|
+
var L = q(b);
|
|
2275
2281
|
C == null ? (C = new i.BillboardGroup(y, T), C.addBillboards(L)) : C.updateBillboardsPositions(L);
|
|
2276
2282
|
}
|
|
2277
2283
|
S.setInputAction(function(b) {
|
|
@@ -2280,8 +2286,8 @@ var ye = function() {
|
|
|
2280
2286
|
if (L)
|
|
2281
2287
|
if (g == null) {
|
|
2282
2288
|
v = e.cartesianToCartographic(L);
|
|
2283
|
-
var
|
|
2284
|
-
_(
|
|
2289
|
+
var M = Y(v, v);
|
|
2290
|
+
_(M);
|
|
2285
2291
|
} else
|
|
2286
2292
|
y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(L)));
|
|
2287
2293
|
}
|
|
@@ -2291,15 +2297,15 @@ var ye = function() {
|
|
|
2291
2297
|
if (g == null)
|
|
2292
2298
|
h.showAt(L, "<p>Click to start drawing rectangle</p>");
|
|
2293
2299
|
else {
|
|
2294
|
-
var
|
|
2295
|
-
if (
|
|
2296
|
-
var W = Y(v, e.cartesianToCartographic(
|
|
2300
|
+
var M = c.camera.pickEllipsoid(L, e);
|
|
2301
|
+
if (M) {
|
|
2302
|
+
var W = Y(v, e.cartesianToCartographic(M));
|
|
2297
2303
|
_(W), h.showAt(L, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
|
|
2298
2304
|
}
|
|
2299
2305
|
}
|
|
2300
2306
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2301
2307
|
}, i.prototype.startDrawingCircle = function(a) {
|
|
2302
|
-
var a =
|
|
2308
|
+
var a = O(a, r);
|
|
2303
2309
|
this.startDrawing(function() {
|
|
2304
2310
|
v != null && f.remove(v), g.remove(), C.destroy(), h.setVisible(!1);
|
|
2305
2311
|
});
|
|
@@ -2348,7 +2354,7 @@ var ye = function() {
|
|
|
2348
2354
|
}, p.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(_) {
|
|
2349
2355
|
C(s._scene.camera.pickEllipsoid(_.position, e));
|
|
2350
2356
|
}, p.ScreenSpaceEventType.LEFT_UP), h(!1);
|
|
2351
|
-
}),
|
|
2357
|
+
}), te(c);
|
|
2352
2358
|
};
|
|
2353
2359
|
function a(c) {
|
|
2354
2360
|
s._scene, !(this._highlighted && this._highlighted == c) && this._editMode !== !0 && (this._highlighted = c, c ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(p.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
|
|
@@ -2359,34 +2365,34 @@ var ye = function() {
|
|
|
2359
2365
|
s.setEdited(this);
|
|
2360
2366
|
var f = s._scene, h = this;
|
|
2361
2367
|
if (this._markers == null) {
|
|
2362
|
-
let
|
|
2363
|
-
var
|
|
2364
|
-
|
|
2368
|
+
let M = function(R, z) {
|
|
2369
|
+
var Q = R - 1 < 0 ? z.length - 1 : R - 1;
|
|
2370
|
+
Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q)), Q = R, Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q));
|
|
2365
2371
|
}, W = function() {
|
|
2366
2372
|
h.executeListeners({
|
|
2367
2373
|
name: "onEdited",
|
|
2368
2374
|
positions: h.positions
|
|
2369
2375
|
});
|
|
2370
|
-
},
|
|
2371
|
-
var
|
|
2376
|
+
}, X = function(R) {
|
|
2377
|
+
var z = h.positions;
|
|
2372
2378
|
return e.cartographicToCartesian(
|
|
2373
2379
|
new p.EllipsoidGeodesic(
|
|
2374
|
-
e.cartesianToCartographic(
|
|
2375
|
-
e.cartesianToCartographic(
|
|
2380
|
+
e.cartesianToCartographic(z[R]),
|
|
2381
|
+
e.cartesianToCartographic(z[R < z.length - 1 ? R + 1 : 0])
|
|
2376
2382
|
).interpolateUsingFraction(0.5)
|
|
2377
2383
|
);
|
|
2378
2384
|
};
|
|
2379
|
-
var v = new i.BillboardGroup(s,
|
|
2385
|
+
var v = new i.BillboardGroup(s, I), g = new i.BillboardGroup(s, G), C = {
|
|
2380
2386
|
dragHandlers: {
|
|
2381
|
-
onDrag: function(
|
|
2382
|
-
h.positions[
|
|
2387
|
+
onDrag: function(R, z) {
|
|
2388
|
+
h.positions[R] = z, M(R, h.positions), h._createPrimitive = !0;
|
|
2383
2389
|
},
|
|
2384
|
-
onDragEnd: function(
|
|
2390
|
+
onDragEnd: function(R, z) {
|
|
2385
2391
|
h._createPrimitive = !0, W();
|
|
2386
2392
|
}
|
|
2387
2393
|
},
|
|
2388
|
-
onDoubleClick: function(
|
|
2389
|
-
h.positions.length < 4 || (h.positions.splice(
|
|
2394
|
+
onDoubleClick: function(R) {
|
|
2395
|
+
h.positions.length < 4 || (h.positions.splice(R, 1), h._createPrimitive = !0, v.removeBillboard(R), g.removeBillboard(R), M(R, h.positions), W());
|
|
2390
2396
|
},
|
|
2391
2397
|
tooltip: function() {
|
|
2392
2398
|
if (h.positions.length > 3)
|
|
@@ -2395,33 +2401,33 @@ var ye = function() {
|
|
|
2395
2401
|
};
|
|
2396
2402
|
v.addBillboards(h.positions, C), this._markers = v;
|
|
2397
2403
|
for (var S = [], _ = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); _ < b; _++)
|
|
2398
|
-
S.push(
|
|
2404
|
+
S.push(X(_));
|
|
2399
2405
|
var L = {
|
|
2400
2406
|
dragHandlers: {
|
|
2401
|
-
onDragStart: function(
|
|
2402
|
-
this.index =
|
|
2407
|
+
onDragStart: function(R, z) {
|
|
2408
|
+
this.index = R + 1, h.positions.splice(this.index, 0, z), h._createPrimitive = !0;
|
|
2403
2409
|
},
|
|
2404
|
-
onDrag: function(
|
|
2405
|
-
h.positions[this.index] =
|
|
2410
|
+
onDrag: function(R, z) {
|
|
2411
|
+
h.positions[this.index] = z, h._createPrimitive = !0;
|
|
2406
2412
|
},
|
|
2407
|
-
onDragEnd: function(
|
|
2408
|
-
v.insertBillboard(this.index,
|
|
2413
|
+
onDragEnd: function(R, z) {
|
|
2414
|
+
v.insertBillboard(this.index, z, C), g.getBillboard(this.index - 1).position = X(this.index - 1), g.insertBillboard(this.index, X(this.index), L), h._createPrimitive = !0, W();
|
|
2409
2415
|
}
|
|
2410
2416
|
},
|
|
2411
2417
|
tooltip: function() {
|
|
2412
2418
|
return "Drag to create a new point";
|
|
2413
2419
|
}
|
|
2414
2420
|
};
|
|
2415
|
-
g.addBillboards(S, L), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(
|
|
2416
|
-
var
|
|
2417
|
-
|
|
2421
|
+
g.addBillboards(S, L), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(R) {
|
|
2422
|
+
var z = f.pick(R.position);
|
|
2423
|
+
z && z.primitive || h.setEditMode(!1);
|
|
2418
2424
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop(), g.setOnTop();
|
|
2419
2425
|
}
|
|
2420
2426
|
this._editMode = !0;
|
|
2421
2427
|
} else
|
|
2422
2428
|
this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2423
2429
|
}
|
|
2424
|
-
|
|
2430
|
+
Ee.PolylinePrimitive.prototype.setEditable = function() {
|
|
2425
2431
|
if (!this.setEditMode) {
|
|
2426
2432
|
var c = this;
|
|
2427
2433
|
c.isPolygon = !1, c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = y;
|
|
@@ -2430,12 +2436,12 @@ var ye = function() {
|
|
|
2430
2436
|
this._editMode !== !0 && (h ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
|
|
2431
2437
|
}, c.getExtent = function() {
|
|
2432
2438
|
return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
|
|
2433
|
-
},
|
|
2439
|
+
}, te(c), c.setEditMode(!1);
|
|
2434
2440
|
}
|
|
2435
|
-
},
|
|
2441
|
+
}, Ee.PolygonPrimitive.prototype.setEditable = function() {
|
|
2436
2442
|
var c = this;
|
|
2437
|
-
c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a,
|
|
2438
|
-
},
|
|
2443
|
+
c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a, te(c), c.setEditMode(!1);
|
|
2444
|
+
}, Ee.ExtentPrimitive.prototype.setEditable = function() {
|
|
2439
2445
|
if (!this.setEditMode) {
|
|
2440
2446
|
var c = this, f = s._scene;
|
|
2441
2447
|
s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(h) {
|
|
@@ -2448,11 +2454,11 @@ var ye = function() {
|
|
|
2448
2454
|
extent: c.extent
|
|
2449
2455
|
});
|
|
2450
2456
|
};
|
|
2451
|
-
var v = new i.BillboardGroup(s,
|
|
2457
|
+
var v = new i.BillboardGroup(s, I), g = {
|
|
2452
2458
|
dragHandlers: {
|
|
2453
2459
|
onDrag: function(S, _) {
|
|
2454
2460
|
var b = v.getBillboard((S + 2) % 4).position;
|
|
2455
|
-
c.setExtent(Y(e.cartesianToCartographic(b), e.cartesianToCartographic(_))), v.updateBillboardsPositions(
|
|
2461
|
+
c.setExtent(Y(e.cartesianToCartographic(b), e.cartesianToCartographic(_))), v.updateBillboardsPositions(q(c.extent));
|
|
2456
2462
|
},
|
|
2457
2463
|
onDragEnd: function(S, _) {
|
|
2458
2464
|
C();
|
|
@@ -2462,7 +2468,7 @@ var ye = function() {
|
|
|
2462
2468
|
return "Drag to change the corners of this extent";
|
|
2463
2469
|
}
|
|
2464
2470
|
};
|
|
2465
|
-
v.addBillboards(
|
|
2471
|
+
v.addBillboards(q(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
|
|
2466
2472
|
var _ = f.pick(S.position);
|
|
2467
2473
|
_ && !_.isDestroyed() && _.primitive || c.setEditMode(!1);
|
|
2468
2474
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop();
|
|
@@ -2470,7 +2476,7 @@ var ye = function() {
|
|
|
2470
2476
|
this._editMode = !0;
|
|
2471
2477
|
} else
|
|
2472
2478
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2473
|
-
}, c.setHighlighted = a,
|
|
2479
|
+
}, c.setHighlighted = a, te(c), c.setEditMode(!1);
|
|
2474
2480
|
}
|
|
2475
2481
|
}, i.EllipsePrimitive.prototype.setEditable = function() {
|
|
2476
2482
|
if (!this.setEditMode) {
|
|
@@ -2499,11 +2505,11 @@ var ye = function() {
|
|
|
2499
2505
|
rotation: 0
|
|
2500
2506
|
});
|
|
2501
2507
|
};
|
|
2502
|
-
var g = new i.BillboardGroup(s,
|
|
2508
|
+
var g = new i.BillboardGroup(s, I), C = {
|
|
2503
2509
|
dragHandlers: {
|
|
2504
2510
|
onDrag: function(b, L) {
|
|
2505
|
-
var
|
|
2506
|
-
b % 2 == 0 ? c.setSemiMajorAxis(
|
|
2511
|
+
var M = p.Cartesian3.distance(c.getCenter(), L);
|
|
2512
|
+
b % 2 == 0 ? c.setSemiMajorAxis(M) : c.setSemiMinorAxis(M), g.updateBillboardsPositions(S());
|
|
2507
2513
|
},
|
|
2508
2514
|
onDragEnd: function(b, L) {
|
|
2509
2515
|
_();
|
|
@@ -2521,7 +2527,7 @@ var ye = function() {
|
|
|
2521
2527
|
this._editMode = !0;
|
|
2522
2528
|
} else
|
|
2523
2529
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2524
|
-
}, c.setHighlighted = a,
|
|
2530
|
+
}, c.setHighlighted = a, te(c), c.setEditMode(!1);
|
|
2525
2531
|
}
|
|
2526
2532
|
}, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(c) {
|
|
2527
2533
|
for (var f = p.CircleOutlineGeometry.createGeometry(
|
|
@@ -2552,7 +2558,7 @@ var ye = function() {
|
|
|
2552
2558
|
radius: c.getRadius()
|
|
2553
2559
|
});
|
|
2554
2560
|
};
|
|
2555
|
-
var g = new i.BillboardGroup(s,
|
|
2561
|
+
var g = new i.BillboardGroup(s, I), C = {
|
|
2556
2562
|
dragHandlers: {
|
|
2557
2563
|
onDrag: function(b, L) {
|
|
2558
2564
|
c.setRadius(p.Cartesian3.distance(c.getCenter(), L)), g.updateBillboardsPositions(S());
|
|
@@ -2573,7 +2579,7 @@ var ye = function() {
|
|
|
2573
2579
|
this._editMode = !0;
|
|
2574
2580
|
} else
|
|
2575
2581
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2576
|
-
}, c.setHighlighted = a,
|
|
2582
|
+
}, c.setHighlighted = a, te(c), c.setEditMode(!1);
|
|
2577
2583
|
}
|
|
2578
2584
|
};
|
|
2579
2585
|
}, i.DrawHelperWidget = function() {
|
|
@@ -2596,12 +2602,12 @@ var ye = function() {
|
|
|
2596
2602
|
var f = this, h = document.createElement("DIV");
|
|
2597
2603
|
h.className = "toolbar", y.container.appendChild(h);
|
|
2598
2604
|
function v(S, _, b, L) {
|
|
2599
|
-
var
|
|
2600
|
-
|
|
2605
|
+
var M = document.createElement("DIV");
|
|
2606
|
+
M.className = "button", M.title = b, h.appendChild(M), M.onclick = L;
|
|
2601
2607
|
var W = document.createElement("SPAN");
|
|
2602
|
-
|
|
2603
|
-
var
|
|
2604
|
-
return
|
|
2608
|
+
M.appendChild(W);
|
|
2609
|
+
var X = document.createElement("IMG");
|
|
2610
|
+
return X.src = _, W.appendChild(X), M;
|
|
2605
2611
|
}
|
|
2606
2612
|
var g = a._scene;
|
|
2607
2613
|
v("marker", y.markerIcon, "Click to start drawing a 2D marker", function() {
|
|
@@ -2651,11 +2657,11 @@ var ye = function() {
|
|
|
2651
2657
|
var C = document.createElement("DIV");
|
|
2652
2658
|
C.className = "divider", h.appendChild(C), v("clear", y.clearIcon, "Remove all primitives", function() {
|
|
2653
2659
|
g.primitives.removeAll();
|
|
2654
|
-
}),
|
|
2660
|
+
}), te(this);
|
|
2655
2661
|
}
|
|
2656
2662
|
return s;
|
|
2657
2663
|
}(), i.prototype.addToolbar = function(s, a) {
|
|
2658
|
-
return a =
|
|
2664
|
+
return a = O(a, { container: s }), new i.DrawHelperWidget(this, a);
|
|
2659
2665
|
};
|
|
2660
2666
|
function Y(s, a) {
|
|
2661
2667
|
var y = new p.Rectangle();
|
|
@@ -2666,32 +2672,32 @@ var ye = function() {
|
|
|
2666
2672
|
function U(s, a) {
|
|
2667
2673
|
return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
|
|
2668
2674
|
}
|
|
2669
|
-
function
|
|
2675
|
+
function A(s, a) {
|
|
2670
2676
|
if (s == null || typeof s != "object" || s.constructor != Object && s.constructor != Array)
|
|
2671
2677
|
return s;
|
|
2672
2678
|
if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
|
|
2673
2679
|
return new s.constructor(s);
|
|
2674
2680
|
a = a || new s.constructor();
|
|
2675
2681
|
for (var y in s)
|
|
2676
|
-
a[y] = typeof a[y] > "u" ?
|
|
2682
|
+
a[y] = typeof a[y] > "u" ? A(s[y], null) : a[y];
|
|
2677
2683
|
return a;
|
|
2678
2684
|
}
|
|
2679
2685
|
function $(s, a) {
|
|
2680
2686
|
s = s || {};
|
|
2681
2687
|
var y;
|
|
2682
2688
|
for (y in a)
|
|
2683
|
-
s[y] === void 0 && (s[y] =
|
|
2689
|
+
s[y] === void 0 && (s[y] = A(a[y]));
|
|
2684
2690
|
}
|
|
2685
|
-
function
|
|
2686
|
-
var y =
|
|
2691
|
+
function O(s, a) {
|
|
2692
|
+
var y = A(s), c;
|
|
2687
2693
|
for (c in a)
|
|
2688
|
-
y[c] === void 0 && (y[c] =
|
|
2694
|
+
y[c] === void 0 && (y[c] = A(a[c]));
|
|
2689
2695
|
return y;
|
|
2690
2696
|
}
|
|
2691
2697
|
function V(s, a, y) {
|
|
2692
2698
|
s[a] = y;
|
|
2693
2699
|
}
|
|
2694
|
-
function
|
|
2700
|
+
function te(s) {
|
|
2695
2701
|
s._listeners = {}, s.addListener = function(a, y) {
|
|
2696
2702
|
return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(y), this._listeners[a].length;
|
|
2697
2703
|
}, s.executeListeners = function(a, y) {
|
|
@@ -2704,22 +2710,22 @@ var ye = function() {
|
|
|
2704
2710
|
}
|
|
2705
2711
|
return i;
|
|
2706
2712
|
}();
|
|
2707
|
-
const
|
|
2713
|
+
const jr = 2, Kr = (e, n) => {
|
|
2708
2714
|
switch (e) {
|
|
2709
|
-
case
|
|
2710
|
-
if (n.features.length !==
|
|
2715
|
+
case se.BOX: {
|
|
2716
|
+
if (n.features.length !== jr)
|
|
2711
2717
|
throw new Error(`${e} must have 2 points`);
|
|
2712
|
-
const t =
|
|
2718
|
+
const t = ft(n.features, (o) => {
|
|
2713
2719
|
var r;
|
|
2714
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2715
|
-
}), i =
|
|
2720
|
+
return ((r = o.properties) == null ? void 0 : r.type) === it.BOTTOM_LEFT;
|
|
2721
|
+
}), i = ft(n.features, (o) => {
|
|
2716
2722
|
var r;
|
|
2717
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2723
|
+
return ((r = o.properties) == null ? void 0 : r.type) === it.TOP_RIGHT;
|
|
2718
2724
|
});
|
|
2719
2725
|
if (i && t) {
|
|
2720
2726
|
if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
|
|
2721
2727
|
throw new Error(`${e} must define BOTTOM_LEFT and TOP_RIGHT different points`);
|
|
2722
|
-
return
|
|
2728
|
+
return Se.fromDegrees(
|
|
2723
2729
|
t.geometry.coordinates[0],
|
|
2724
2730
|
t.geometry.coordinates[1],
|
|
2725
2731
|
i.geometry.coordinates[0],
|
|
@@ -2731,9 +2737,9 @@ const Ur = 2, jr = (e, n) => {
|
|
|
2731
2737
|
default:
|
|
2732
2738
|
throw new Error(`${e} type geoJSON still not supported`);
|
|
2733
2739
|
}
|
|
2734
|
-
},
|
|
2740
|
+
}, qr = (e) => {
|
|
2735
2741
|
const n = e.map((t) => {
|
|
2736
|
-
const i =
|
|
2742
|
+
const i = We.fromCartesian(t);
|
|
2737
2743
|
return [le.toDegrees(i.longitude), le.toDegrees(i.latitude)];
|
|
2738
2744
|
});
|
|
2739
2745
|
return n.push(n[0]), {
|
|
@@ -2744,51 +2750,51 @@ const Ur = 2, jr = (e, n) => {
|
|
|
2744
2750
|
coordinates: [n]
|
|
2745
2751
|
}
|
|
2746
2752
|
};
|
|
2747
|
-
},
|
|
2748
|
-
const n =
|
|
2753
|
+
}, Yr = (e) => {
|
|
2754
|
+
const n = Vt.lineString([
|
|
2749
2755
|
[le.toDegrees(e.west), le.toDegrees(e.south)],
|
|
2750
2756
|
[le.toDegrees(e.east), le.toDegrees(e.north)]
|
|
2751
2757
|
]);
|
|
2752
|
-
return
|
|
2753
|
-
},
|
|
2754
|
-
const n =
|
|
2758
|
+
return $t(zt(n));
|
|
2759
|
+
}, Xr = (e) => {
|
|
2760
|
+
const n = Vt.lineString([
|
|
2755
2761
|
[e.west, e.south],
|
|
2756
2762
|
[e.east, e.north]
|
|
2757
2763
|
]);
|
|
2758
|
-
return
|
|
2764
|
+
return $t(zt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
|
|
2759
2765
|
};
|
|
2760
|
-
class
|
|
2766
|
+
class vs extends hi {
|
|
2761
2767
|
}
|
|
2762
|
-
const
|
|
2763
|
-
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u =
|
|
2764
|
-
|
|
2768
|
+
const Es = (e) => {
|
|
2769
|
+
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = he(), [m, E] = D();
|
|
2770
|
+
k(() => {
|
|
2765
2771
|
E(
|
|
2766
2772
|
// eslint-disable-next-line
|
|
2767
|
-
new
|
|
2773
|
+
new Ee(u, t, i)
|
|
2768
2774
|
);
|
|
2769
|
-
}, []),
|
|
2775
|
+
}, []), k(() => {
|
|
2770
2776
|
if (m) {
|
|
2771
|
-
const
|
|
2777
|
+
const P = m;
|
|
2772
2778
|
if (n.drawing)
|
|
2773
2779
|
switch (n.type) {
|
|
2774
|
-
case
|
|
2775
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
2780
|
+
case se.POLYGON:
|
|
2781
|
+
u.scene.globe.depthTestAgainstTerrain = !1, P.startDrawingPolygon({
|
|
2776
2782
|
callback: (T) => {
|
|
2777
2783
|
n.handler({
|
|
2778
2784
|
primitive: T,
|
|
2779
|
-
type:
|
|
2780
|
-
geojson:
|
|
2785
|
+
type: se.POLYGON,
|
|
2786
|
+
geojson: qr(T)
|
|
2781
2787
|
});
|
|
2782
2788
|
}
|
|
2783
2789
|
});
|
|
2784
2790
|
break;
|
|
2785
|
-
case
|
|
2786
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
2791
|
+
case se.BOX:
|
|
2792
|
+
u.scene.globe.depthTestAgainstTerrain = !1, P.startDrawingExtent({
|
|
2787
2793
|
callback: (T) => {
|
|
2788
2794
|
n.handler({
|
|
2789
2795
|
primitive: T,
|
|
2790
|
-
type:
|
|
2791
|
-
geojson:
|
|
2796
|
+
type: se.BOX,
|
|
2797
|
+
geojson: Yr(T)
|
|
2792
2798
|
});
|
|
2793
2799
|
}
|
|
2794
2800
|
});
|
|
@@ -2797,78 +2803,78 @@ const ys = (e) => {
|
|
|
2797
2803
|
throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
|
|
2798
2804
|
}
|
|
2799
2805
|
else
|
|
2800
|
-
|
|
2806
|
+
P.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
|
|
2801
2807
|
}
|
|
2802
2808
|
}, [n, m]);
|
|
2803
|
-
const w = (
|
|
2809
|
+
const w = (P) => {
|
|
2804
2810
|
try {
|
|
2805
|
-
let T =
|
|
2811
|
+
let T = P.coordinates !== void 0 ? P.coordinates : Kr(P.type, P.geojson);
|
|
2806
2812
|
if (r !== !0)
|
|
2807
|
-
switch (
|
|
2808
|
-
case
|
|
2809
|
-
return /* @__PURE__ */ l(
|
|
2810
|
-
case
|
|
2811
|
-
return /* @__PURE__ */ l(
|
|
2813
|
+
switch (P.type) {
|
|
2814
|
+
case se.BOX:
|
|
2815
|
+
return /* @__PURE__ */ l($r, { coordinates: T, material: o ?? t });
|
|
2816
|
+
case se.POLYGON:
|
|
2817
|
+
return /* @__PURE__ */ l(zr, { hierarchy: new mi(T), material: o ?? t });
|
|
2812
2818
|
default:
|
|
2813
2819
|
return /* @__PURE__ */ l(ie, {});
|
|
2814
2820
|
}
|
|
2815
2821
|
else {
|
|
2816
|
-
switch (
|
|
2817
|
-
case
|
|
2818
|
-
T =
|
|
2822
|
+
switch (P.type) {
|
|
2823
|
+
case se.BOX:
|
|
2824
|
+
T = Xr(T);
|
|
2819
2825
|
break;
|
|
2820
|
-
case
|
|
2826
|
+
case se.POLYGON:
|
|
2821
2827
|
T = [...T, T[0]];
|
|
2822
2828
|
break;
|
|
2823
2829
|
default:
|
|
2824
2830
|
return /* @__PURE__ */ l(ie, {});
|
|
2825
2831
|
}
|
|
2826
|
-
return /* @__PURE__ */ l(
|
|
2832
|
+
return /* @__PURE__ */ l(Ur, { clampToGround: !0, positions: T, width: d ?? 1, material: o ?? t });
|
|
2827
2833
|
}
|
|
2828
2834
|
} catch (T) {
|
|
2829
2835
|
return console.error(T), /* @__PURE__ */ l(ie, {});
|
|
2830
2836
|
}
|
|
2831
2837
|
};
|
|
2832
|
-
return /* @__PURE__ */ l(
|
|
2833
|
-
/* @__PURE__ */
|
|
2834
|
-
/* @__PURE__ */
|
|
2838
|
+
return /* @__PURE__ */ l(Wr, { ...e, children: e.drawings.map((P, T) => /* @__PURE__ */ N(Gr, { name: P.name, children: [
|
|
2839
|
+
/* @__PURE__ */ N(Vr, { children: [
|
|
2840
|
+
/* @__PURE__ */ N("h1", { children: [
|
|
2835
2841
|
"Drawed Entity ",
|
|
2836
|
-
|
|
2842
|
+
P.name
|
|
2837
2843
|
] }),
|
|
2838
2844
|
/* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
|
|
2839
2845
|
] }),
|
|
2840
|
-
w(
|
|
2841
|
-
] },
|
|
2846
|
+
w(P)
|
|
2847
|
+
] }, P.id)) });
|
|
2842
2848
|
};
|
|
2843
|
-
class
|
|
2849
|
+
class Cs extends pi {
|
|
2844
2850
|
}
|
|
2845
|
-
class
|
|
2851
|
+
class ws extends gi {
|
|
2846
2852
|
}
|
|
2847
|
-
class
|
|
2853
|
+
class bs extends fi {
|
|
2848
2854
|
}
|
|
2849
|
-
class
|
|
2855
|
+
class Ts extends Me {
|
|
2850
2856
|
}
|
|
2851
|
-
class
|
|
2857
|
+
class _s extends pe {
|
|
2852
2858
|
}
|
|
2853
|
-
class
|
|
2859
|
+
class Ss extends We {
|
|
2854
2860
|
}
|
|
2855
|
-
class
|
|
2861
|
+
class Ls extends yi {
|
|
2856
2862
|
}
|
|
2857
|
-
class
|
|
2863
|
+
class Ps extends vi {
|
|
2858
2864
|
}
|
|
2859
|
-
class
|
|
2865
|
+
class Ms extends Ei {
|
|
2860
2866
|
}
|
|
2861
|
-
class
|
|
2867
|
+
class Ds extends Se {
|
|
2862
2868
|
}
|
|
2863
|
-
class
|
|
2869
|
+
class Is extends Ci {
|
|
2864
2870
|
}
|
|
2865
|
-
class
|
|
2871
|
+
class As extends wi {
|
|
2866
2872
|
}
|
|
2867
|
-
class
|
|
2873
|
+
class ks extends bi {
|
|
2868
2874
|
}
|
|
2869
|
-
const
|
|
2870
|
-
const
|
|
2871
|
-
const [n, t] =
|
|
2875
|
+
const xs = Ti, Os = _i;
|
|
2876
|
+
const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo = (e) => {
|
|
2877
|
+
const [n, t] = D(e.defaultValue ?? ""), [i, o] = D(!1), [r, d] = D({
|
|
2872
2878
|
helperVisible: !1,
|
|
2873
2879
|
left: 0,
|
|
2874
2880
|
right: 0,
|
|
@@ -2881,16 +2887,16 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
2881
2887
|
value: "",
|
|
2882
2888
|
caret: 0,
|
|
2883
2889
|
width: "unset"
|
|
2884
|
-
}), u =
|
|
2885
|
-
|
|
2890
|
+
}), u = we(null);
|
|
2891
|
+
k(() => (window.addEventListener("resize", G), () => {
|
|
2886
2892
|
try {
|
|
2887
|
-
window.removeEventListener("resize",
|
|
2893
|
+
window.removeEventListener("resize", G);
|
|
2888
2894
|
} catch (f) {
|
|
2889
2895
|
console.log('WINDOW "resize" remove listener failed', f);
|
|
2890
2896
|
}
|
|
2891
|
-
}), []),
|
|
2897
|
+
}), []), k(() => {
|
|
2892
2898
|
typeof e.value < "u" && t(e.value), typeof e.defaultValue < "u" && t(e.defaultValue);
|
|
2893
|
-
}, [e.value, e.defaultValue]),
|
|
2899
|
+
}, [e.value, e.defaultValue]), k(() => {
|
|
2894
2900
|
const { options: f } = e, { caret: h } = r;
|
|
2895
2901
|
Y(n, h, f);
|
|
2896
2902
|
}, [e]);
|
|
@@ -2899,40 +2905,40 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
2899
2905
|
let b = g;
|
|
2900
2906
|
Array.isArray(b) || (b = new Array(g)), b.sort();
|
|
2901
2907
|
const L = {};
|
|
2902
|
-
Array.isArray(v) && b.forEach((
|
|
2903
|
-
L[
|
|
2908
|
+
Array.isArray(v) && b.forEach((X) => {
|
|
2909
|
+
L[X] = v;
|
|
2904
2910
|
});
|
|
2905
|
-
const
|
|
2911
|
+
const M = E(b, _);
|
|
2906
2912
|
let W = {};
|
|
2907
|
-
for (let
|
|
2908
|
-
const { triggerStr:
|
|
2909
|
-
for (let
|
|
2910
|
-
const
|
|
2911
|
-
let
|
|
2912
|
-
if (
|
|
2913
|
-
const
|
|
2914
|
-
if (
|
|
2913
|
+
for (let X = 0; X < M.length; X++) {
|
|
2914
|
+
const { triggerStr: R, triggerMatch: z, triggerLength: Q } = M[X];
|
|
2915
|
+
for (let ne = h - 1; ne >= 0; --ne) {
|
|
2916
|
+
const B = f.substring(ne, h).match(_);
|
|
2917
|
+
let x = -1;
|
|
2918
|
+
if (Q > 0) {
|
|
2919
|
+
const j = z ? ne : ne - Q + 1;
|
|
2920
|
+
if (j < 0 || (w(R, f, j) && (x = j + Q), !B && x < 0))
|
|
2915
2921
|
break;
|
|
2916
2922
|
} else {
|
|
2917
|
-
if (
|
|
2923
|
+
if (B && ne > 0)
|
|
2918
2924
|
continue;
|
|
2919
|
-
if (
|
|
2925
|
+
if (x = ne === 0 && B ? 0 : ne + 1, h - x === 0)
|
|
2920
2926
|
break;
|
|
2921
2927
|
}
|
|
2922
|
-
if (
|
|
2923
|
-
const
|
|
2924
|
-
if (!Array.isArray(
|
|
2928
|
+
if (x >= 0) {
|
|
2929
|
+
const j = L[R];
|
|
2930
|
+
if (!Array.isArray(j))
|
|
2925
2931
|
continue;
|
|
2926
|
-
const
|
|
2927
|
-
const
|
|
2928
|
-
return
|
|
2929
|
-
}),
|
|
2932
|
+
const fe = f.substring(x, h), be = j.filter((Re) => {
|
|
2933
|
+
const De = Re.toLowerCase().indexOf(fe.toLowerCase());
|
|
2934
|
+
return De !== -1 && (C || De === 0);
|
|
2935
|
+
}), ye = R, Oe = fe.length;
|
|
2930
2936
|
W = {
|
|
2931
2937
|
...W,
|
|
2932
|
-
trigger:
|
|
2933
|
-
matchStart:
|
|
2934
|
-
matchLength:
|
|
2935
|
-
options:
|
|
2938
|
+
trigger: ye,
|
|
2939
|
+
matchStart: x,
|
|
2940
|
+
matchLength: Oe,
|
|
2941
|
+
options: be
|
|
2936
2942
|
};
|
|
2937
2943
|
}
|
|
2938
2944
|
}
|
|
@@ -2942,7 +2948,7 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
2942
2948
|
triggerStr: g,
|
|
2943
2949
|
triggerMatch: g.match(h),
|
|
2944
2950
|
triggerLength: g.length
|
|
2945
|
-
})), w = (f, h, v) => !f || !f.length || h.substr(v, f.length) === f,
|
|
2951
|
+
})), w = (f, h, v) => !f || !f.length || h.substr(v, f.length) === f, P = (f) => {
|
|
2946
2952
|
const { onChange: h, options: v, spaceRemovers: g, spacer: C, value: S } = e, _ = n, b = f.target.value, L = Mi(T(f.target)).end;
|
|
2947
2953
|
if (b.length || F({
|
|
2948
2954
|
...r,
|
|
@@ -2954,11 +2960,11 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
2954
2960
|
}), !b.length || !L)
|
|
2955
2961
|
return h(f.target.value);
|
|
2956
2962
|
if (i && g.length && b.length > 2 && C.length) {
|
|
2957
|
-
for (let
|
|
2958
|
-
if (_[
|
|
2959
|
-
if (
|
|
2960
|
-
const W = `${b.slice(0,
|
|
2961
|
-
return K(
|
|
2963
|
+
for (let M = 0; M < Math.max(_.length, b.length); ++M)
|
|
2964
|
+
if (_[M] !== b[M]) {
|
|
2965
|
+
if (M >= 2 && b[M - 1] === C && g.indexOf(b[M - 2]) === -1 && g.indexOf(b[M]) !== -1 && !nt(m(b.substring(0, M - 2), L - 3, v))) {
|
|
2966
|
+
const W = `${b.slice(0, M - 1)}${b.slice(M, M + 1)}${b.slice(M - 1, M)}${b.slice(M + 1)}`;
|
|
2967
|
+
return K(M + 1), u.current !== null && (u.current.value = W), S || F({
|
|
2962
2968
|
...r,
|
|
2963
2969
|
value: W
|
|
2964
2970
|
}), h(W);
|
|
@@ -2979,31 +2985,31 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
2979
2985
|
return v[0];
|
|
2980
2986
|
} else
|
|
2981
2987
|
return f;
|
|
2982
|
-
},
|
|
2988
|
+
}, I = (f) => {
|
|
2983
2989
|
const { helperVisible: h, options: v, selection: g } = r, { onKeyDown: C, passThroughEnter: S } = e;
|
|
2984
2990
|
if (h)
|
|
2985
2991
|
switch (f.keyCode) {
|
|
2986
|
-
case
|
|
2992
|
+
case to:
|
|
2987
2993
|
f.preventDefault(), U();
|
|
2988
2994
|
break;
|
|
2989
|
-
case
|
|
2995
|
+
case Zr:
|
|
2990
2996
|
f.preventDefault(), F({
|
|
2991
2997
|
...r,
|
|
2992
2998
|
selection: (v.length + g - 1) % v.length
|
|
2993
2999
|
});
|
|
2994
3000
|
break;
|
|
2995
|
-
case
|
|
3001
|
+
case Jr:
|
|
2996
3002
|
f.preventDefault(), F({
|
|
2997
3003
|
...r,
|
|
2998
3004
|
selection: (g + 1) % v.length
|
|
2999
3005
|
});
|
|
3000
3006
|
break;
|
|
3007
|
+
case eo:
|
|
3001
3008
|
case Qr:
|
|
3002
|
-
|
|
3003
|
-
S || f.preventDefault(), j(g);
|
|
3009
|
+
S || f.preventDefault(), q(g);
|
|
3004
3010
|
break;
|
|
3005
|
-
case
|
|
3006
|
-
|
|
3011
|
+
case no:
|
|
3012
|
+
q(g);
|
|
3007
3013
|
break;
|
|
3008
3014
|
default:
|
|
3009
3015
|
C(f);
|
|
@@ -3011,21 +3017,21 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3011
3017
|
}
|
|
3012
3018
|
else
|
|
3013
3019
|
C(f);
|
|
3014
|
-
},
|
|
3020
|
+
}, G = () => {
|
|
3015
3021
|
F({
|
|
3016
3022
|
...r,
|
|
3017
3023
|
helperVisible: !1
|
|
3018
3024
|
});
|
|
3019
|
-
},
|
|
3020
|
-
const { spacer: h, onSelect: v, changeOnSelect: g } = e, { matchStart: C, matchLength: S, options: _, trigger: b } = r, L = _[f],
|
|
3021
|
-
|
|
3025
|
+
}, q = (f) => {
|
|
3026
|
+
const { spacer: h, onSelect: v, changeOnSelect: g } = e, { matchStart: C, matchLength: S, options: _, trigger: b } = r, L = _[f], M = n, W = M.substring(0, C - b.length), X = M.substring(C + S), R = { target: u.current }, z = g(b, L);
|
|
3027
|
+
R.target !== null && (R.target.value = `${W}${z}${h}${X}`), P(R), R.target !== null && v(R.target.value), U(), K(W.length + z.length + 1), o(!0);
|
|
3022
3028
|
}, K = (f) => {
|
|
3023
3029
|
F({
|
|
3024
3030
|
...r,
|
|
3025
3031
|
caret: f
|
|
3026
3032
|
});
|
|
3027
3033
|
const h = T(u.current);
|
|
3028
|
-
|
|
3034
|
+
Di(h, f);
|
|
3029
3035
|
}, F = (f) => {
|
|
3030
3036
|
setTimeout(() => {
|
|
3031
3037
|
d({
|
|
@@ -3041,18 +3047,18 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3041
3047
|
return;
|
|
3042
3048
|
const S = g.getBoundingClientRect(), _ = m(f, h, v);
|
|
3043
3049
|
if (Object.keys(_).length > 0 && C !== null) {
|
|
3044
|
-
const b =
|
|
3045
|
-
let
|
|
3046
|
-
|
|
3050
|
+
const b = Pi(C, h), L = C.getBoundingClientRect(), { minChars: M, onRequestOptions: W, requestOnlyIfNoOptions: X, mode: R } = e;
|
|
3051
|
+
let z, Q, ne, ge = "unset";
|
|
3052
|
+
R === "assist" ? (z = g === C ? b.top + C.offsetTop : b.top + S.top, Q = Math.min(b.left + C.offsetLeft - io, C.offsetLeft + L.width - ro)) : (z = S.top + g.offsetHeight, Q = g.offsetLeft, ne = g.offsetLeft - g.offsetWidth, ge = `${S.width}px`), _.matchLength >= M && (_.options.length > 1 || _.options.length === 1 && _.options[0].length !== _.matchLength) ? F({
|
|
3047
3053
|
...r,
|
|
3048
3054
|
value: f,
|
|
3049
3055
|
helperVisible: !0,
|
|
3050
|
-
top:
|
|
3051
|
-
left:
|
|
3052
|
-
right:
|
|
3053
|
-
width:
|
|
3056
|
+
top: z,
|
|
3057
|
+
left: Q,
|
|
3058
|
+
right: ne,
|
|
3059
|
+
width: ge,
|
|
3054
3060
|
..._
|
|
3055
|
-
}) : ((!
|
|
3061
|
+
}) : ((!X || !_.options.length) && W(f.substr(_.matchStart, _.matchLength)), U());
|
|
3056
3062
|
} else
|
|
3057
3063
|
U();
|
|
3058
3064
|
}, U = () => {
|
|
@@ -3063,11 +3069,11 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3063
3069
|
selection: 0
|
|
3064
3070
|
});
|
|
3065
3071
|
}, 100);
|
|
3066
|
-
},
|
|
3067
|
-
const { helperVisible: f, left: h, right: v, matchStart: g, matchLength: C, options: S, selection: _, top: b, value: L, width:
|
|
3072
|
+
}, A = () => {
|
|
3073
|
+
const { helperVisible: f, left: h, right: v, matchStart: g, matchLength: C, options: S, selection: _, top: b, value: L, width: M } = r;
|
|
3068
3074
|
if (!f)
|
|
3069
3075
|
return null;
|
|
3070
|
-
const { maxOptions: W, offsetX:
|
|
3076
|
+
const { maxOptions: W, offsetX: X, offsetY: R, direction: z } = e;
|
|
3071
3077
|
if (S.length === 0)
|
|
3072
3078
|
return null;
|
|
3073
3079
|
if (_ >= S.length)
|
|
@@ -3075,48 +3081,48 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3075
3081
|
...r,
|
|
3076
3082
|
selection: 0
|
|
3077
3083
|
}), null;
|
|
3078
|
-
const
|
|
3079
|
-
const
|
|
3080
|
-
return /* @__PURE__ */
|
|
3084
|
+
const Q = W === 0 ? S.length : W, ne = S.slice(0, Q).map((B, x) => {
|
|
3085
|
+
const j = B.toLowerCase().indexOf(L.substr(g, C).toLowerCase());
|
|
3086
|
+
return /* @__PURE__ */ N(
|
|
3081
3087
|
"li",
|
|
3082
3088
|
{
|
|
3083
|
-
className:
|
|
3089
|
+
className: x === _ ? "active" : void 0,
|
|
3084
3090
|
onClick: () => {
|
|
3085
|
-
|
|
3091
|
+
q(x);
|
|
3086
3092
|
},
|
|
3087
3093
|
onMouseEnter: () => {
|
|
3088
3094
|
F({
|
|
3089
3095
|
...r,
|
|
3090
|
-
selection:
|
|
3096
|
+
selection: x
|
|
3091
3097
|
});
|
|
3092
3098
|
},
|
|
3093
3099
|
children: [
|
|
3094
|
-
|
|
3095
|
-
/* @__PURE__ */ l("strong", { children:
|
|
3096
|
-
|
|
3100
|
+
B.slice(0, j),
|
|
3101
|
+
/* @__PURE__ */ l("strong", { children: B.substr(j, C) }),
|
|
3102
|
+
B.slice(j + C)
|
|
3097
3103
|
]
|
|
3098
3104
|
},
|
|
3099
|
-
|
|
3105
|
+
B
|
|
3100
3106
|
);
|
|
3101
|
-
}),
|
|
3102
|
-
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...
|
|
3103
|
-
}, { Component: $, ComponentProps:
|
|
3107
|
+
}), ge = z === "ltr" ? { left: h + X } : { right: v + X };
|
|
3108
|
+
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top: b + R, width: M }, children: ne });
|
|
3109
|
+
}, { Component: $, ComponentProps: O, defaultValue: V, disabled: te, onBlur: s, value: a, ...y } = e, c = Object.assign({}, y);
|
|
3104
3110
|
return Object.keys(e).forEach((f) => {
|
|
3105
3111
|
delete c[f];
|
|
3106
|
-
}), /* @__PURE__ */
|
|
3107
|
-
|
|
3108
|
-
disabled:
|
|
3112
|
+
}), /* @__PURE__ */ N(ie, { children: [
|
|
3113
|
+
ve.cloneElement($, {
|
|
3114
|
+
disabled: te,
|
|
3109
3115
|
onBlur: s,
|
|
3110
|
-
onChange:
|
|
3111
|
-
onKeyDown:
|
|
3116
|
+
onChange: P,
|
|
3117
|
+
onKeyDown: I,
|
|
3112
3118
|
ref: u,
|
|
3113
3119
|
value: n,
|
|
3114
3120
|
...c,
|
|
3115
|
-
...
|
|
3121
|
+
...O
|
|
3116
3122
|
}),
|
|
3117
|
-
|
|
3123
|
+
A()
|
|
3118
3124
|
] });
|
|
3119
|
-
},
|
|
3125
|
+
}, so = {
|
|
3120
3126
|
Component: /* @__PURE__ */ l("textarea", {}),
|
|
3121
3127
|
ComponentProps: {},
|
|
3122
3128
|
defaultValue: void 0,
|
|
@@ -3147,9 +3153,9 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3147
3153
|
passThroughEnter: !1,
|
|
3148
3154
|
mode: "assist",
|
|
3149
3155
|
direction: "ltr"
|
|
3150
|
-
},
|
|
3156
|
+
}, Rs = (e) => {
|
|
3151
3157
|
let n = {
|
|
3152
|
-
...
|
|
3158
|
+
...so,
|
|
3153
3159
|
...e
|
|
3154
3160
|
};
|
|
3155
3161
|
return e.mode === "autocomplete" && (n = {
|
|
@@ -3157,10 +3163,10 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3157
3163
|
trigger: "",
|
|
3158
3164
|
regex: ".",
|
|
3159
3165
|
spacer: ""
|
|
3160
|
-
}), /* @__PURE__ */ l(
|
|
3161
|
-
},
|
|
3166
|
+
}), /* @__PURE__ */ l(oo, { ...n });
|
|
3167
|
+
}, ut = {
|
|
3162
3168
|
formatFileModDate: (e, n) => {
|
|
3163
|
-
const t =
|
|
3169
|
+
const t = Wt.getModDate(n);
|
|
3164
3170
|
return t ? e.formatDate(t, {
|
|
3165
3171
|
dateStyle: "short",
|
|
3166
3172
|
timeStyle: "short"
|
|
@@ -3169,18 +3175,18 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3169
3175
|
formatFileSize: (e, n) => {
|
|
3170
3176
|
if (!n || typeof n.size != "number")
|
|
3171
3177
|
return null;
|
|
3172
|
-
const t = n.size, i =
|
|
3178
|
+
const t = n.size, i = xi(t, {
|
|
3173
3179
|
bits: !1,
|
|
3174
3180
|
output: "object"
|
|
3175
3181
|
});
|
|
3176
3182
|
return i.symbol === "B" ? `${Math.round(i.value / 10) / 100} KB` : i.symbol === "KB" ? `${Math.round(i.value)} ${i.symbol}` : `${i.value} ${i.symbol.toUpperCase()}`;
|
|
3177
3183
|
}
|
|
3178
|
-
}, so = {
|
|
3179
|
-
locale: ce.EN,
|
|
3180
|
-
formatters: { ...at }
|
|
3181
3184
|
}, ao = {
|
|
3185
|
+
locale: ce.EN,
|
|
3186
|
+
formatters: { ...ut }
|
|
3187
|
+
}, lo = {
|
|
3182
3188
|
locale: ce.RU,
|
|
3183
|
-
formatters: { ...
|
|
3189
|
+
formatters: { ...ut },
|
|
3184
3190
|
messages: {
|
|
3185
3191
|
"chonky.toolbar.searchPlaceholder": "Поиск",
|
|
3186
3192
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3203,24 +3209,24 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3203
3209
|
// Actions
|
|
3204
3210
|
["chonky.actionGroups.Actions"]: "Действия",
|
|
3205
3211
|
["chonky.actionGroups.Options"]: "Опции",
|
|
3206
|
-
[`chonky.actions.${
|
|
3207
|
-
[`chonky.actions.${
|
|
3208
|
-
[`chonky.actions.${
|
|
3209
|
-
[`chonky.actions.${
|
|
3210
|
-
[`chonky.actions.${
|
|
3211
|
-
[`chonky.actions.${
|
|
3212
|
-
[`chonky.actions.${
|
|
3213
|
-
[`chonky.actions.${
|
|
3214
|
-
[`chonky.actions.${
|
|
3215
|
-
[`chonky.actions.${
|
|
3216
|
-
[`chonky.actions.${
|
|
3217
|
-
[`chonky.actions.${
|
|
3218
|
-
[`chonky.actions.${
|
|
3219
|
-
[`chonky.actions.${
|
|
3212
|
+
[`chonky.actions.${H.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
|
|
3213
|
+
[`chonky.actions.${H.CreateFolder.id}.button.name`]: "Новая папка",
|
|
3214
|
+
[`chonky.actions.${H.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
|
|
3215
|
+
[`chonky.actions.${H.DeleteFiles.id}.button.name`]: "Удалить файлы",
|
|
3216
|
+
[`chonky.actions.${H.OpenSelection.id}.button.name`]: "Открыть выделение",
|
|
3217
|
+
[`chonky.actions.${H.SelectAllFiles.id}.button.name`]: "Выделить все",
|
|
3218
|
+
[`chonky.actions.${H.ClearSelection.id}.button.name`]: "Сбросить выделение",
|
|
3219
|
+
[`chonky.actions.${H.EnableListView.id}.button.name`]: "Показать список",
|
|
3220
|
+
[`chonky.actions.${H.EnableGridView.id}.button.name`]: "Показать иконки",
|
|
3221
|
+
[`chonky.actions.${H.SortFilesByName.id}.button.name`]: "Сорт. по имени",
|
|
3222
|
+
[`chonky.actions.${H.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
|
|
3223
|
+
[`chonky.actions.${H.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
|
|
3224
|
+
[`chonky.actions.${H.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
|
|
3225
|
+
[`chonky.actions.${H.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
|
|
3220
3226
|
}
|
|
3221
|
-
},
|
|
3227
|
+
}, co = {
|
|
3222
3228
|
locale: ce.HE,
|
|
3223
|
-
formatters: { ...
|
|
3229
|
+
formatters: { ...ut },
|
|
3224
3230
|
messages: {
|
|
3225
3231
|
"chonky.toolbar.searchPlaceholder": "חיפוש",
|
|
3226
3232
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3242,39 +3248,39 @@ const Xr = 38, Zr = 40, Jr = 13, Qr = 14, eo = 27, to = 9, no = 10, io = 100, ro
|
|
|
3242
3248
|
// Actions
|
|
3243
3249
|
["chonky.actionGroups.Actions"]: "פעולות",
|
|
3244
3250
|
["chonky.actionGroups.Options"]: "אפשרויות",
|
|
3245
|
-
[`chonky.actions.${
|
|
3246
|
-
[`chonky.actions.${
|
|
3247
|
-
[`chonky.actions.${
|
|
3248
|
-
[`chonky.actions.${
|
|
3249
|
-
[`chonky.actions.${
|
|
3250
|
-
[`chonky.actions.${
|
|
3251
|
-
[`chonky.actions.${
|
|
3252
|
-
[`chonky.actions.${
|
|
3253
|
-
[`chonky.actions.${
|
|
3254
|
-
[`chonky.actions.${
|
|
3255
|
-
[`chonky.actions.${
|
|
3256
|
-
[`chonky.actions.${
|
|
3257
|
-
[`chonky.actions.${
|
|
3258
|
-
[`chonky.actions.${
|
|
3251
|
+
[`chonky.actions.${H.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
|
|
3252
|
+
[`chonky.actions.${H.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
|
|
3253
|
+
[`chonky.actions.${H.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
|
|
3254
|
+
[`chonky.actions.${H.DeleteFiles.id}.button.name`]: "מחק",
|
|
3255
|
+
[`chonky.actions.${H.OpenSelection.id}.button.name`]: "פתח את הבחירה",
|
|
3256
|
+
[`chonky.actions.${H.SelectAllFiles.id}.button.name`]: "בחר הכל",
|
|
3257
|
+
[`chonky.actions.${H.ClearSelection.id}.button.name`]: "אפס את הבחירה",
|
|
3258
|
+
[`chonky.actions.${H.EnableListView.id}.button.name`]: "תצוגת רשימה",
|
|
3259
|
+
[`chonky.actions.${H.EnableGridView.id}.button.name`]: "תצוגת גריד",
|
|
3260
|
+
[`chonky.actions.${H.SortFilesByName.id}.button.name`]: "מיון לפי שם",
|
|
3261
|
+
[`chonky.actions.${H.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
|
|
3262
|
+
[`chonky.actions.${H.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
|
|
3263
|
+
[`chonky.actions.${H.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
|
|
3264
|
+
[`chonky.actions.${H.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
|
|
3259
3265
|
}
|
|
3260
|
-
},
|
|
3261
|
-
[ce.EN]:
|
|
3262
|
-
[ce.RU]:
|
|
3263
|
-
[ce.HE]:
|
|
3266
|
+
}, uo = {
|
|
3267
|
+
[ce.EN]: ao,
|
|
3268
|
+
[ce.RU]: lo,
|
|
3269
|
+
[ce.HE]: co
|
|
3264
3270
|
};
|
|
3265
|
-
class
|
|
3271
|
+
class Ns extends Wt {
|
|
3266
3272
|
}
|
|
3267
|
-
const
|
|
3268
|
-
listView:
|
|
3269
|
-
gridView:
|
|
3273
|
+
const Bs = H, ho = {
|
|
3274
|
+
listView: H.EnableListView.id,
|
|
3275
|
+
gridView: H.EnableGridView.id
|
|
3270
3276
|
};
|
|
3271
|
-
|
|
3272
|
-
const
|
|
3273
|
-
|
|
3277
|
+
Ii({ iconComponent: ki });
|
|
3278
|
+
const Fs = ve.memo(
|
|
3279
|
+
ve.forwardRef(
|
|
3274
3280
|
({
|
|
3275
3281
|
theme: e,
|
|
3276
3282
|
styles: n = { height: "100%", minWidth: "600px" },
|
|
3277
|
-
defaultView: t =
|
|
3283
|
+
defaultView: t = ho.listView,
|
|
3278
3284
|
readOnlyMode: i = !1,
|
|
3279
3285
|
locale: o,
|
|
3280
3286
|
files: r,
|
|
@@ -3282,12 +3288,12 @@ const Ns = fe.memo(
|
|
|
3282
3288
|
onFileAction: u,
|
|
3283
3289
|
...m
|
|
3284
3290
|
}, E) => {
|
|
3285
|
-
const w =
|
|
3291
|
+
const w = me(
|
|
3286
3292
|
(V) => null,
|
|
3287
3293
|
// file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
|
|
3288
3294
|
[]
|
|
3289
3295
|
);
|
|
3290
|
-
|
|
3296
|
+
xe({
|
|
3291
3297
|
"@global": {
|
|
3292
3298
|
".chonky-dropdownList": {
|
|
3293
3299
|
backgroundColor: `${e == null ? void 0 : e.surface} !important`
|
|
@@ -3297,12 +3303,12 @@ const Ns = fe.memo(
|
|
|
3297
3303
|
}
|
|
3298
3304
|
}
|
|
3299
3305
|
})();
|
|
3300
|
-
const
|
|
3306
|
+
const P = (V) => V.replace(/([A-Z])/g, (te) => "-" + te.toLowerCase()), T = ze(() => e !== void 0 ? Object.keys(e).reduce((te, s) => {
|
|
3301
3307
|
const a = e[s];
|
|
3302
|
-
return s = s.startsWith("--") ? s : `--fp-theme-${
|
|
3303
|
-
}, {}) : {}, [e]), [
|
|
3304
|
-
return
|
|
3305
|
-
e &&
|
|
3308
|
+
return s = s.startsWith("--") ? s : `--fp-theme-${P(s)}`, te[s] = a, te;
|
|
3309
|
+
}, {}) : {}, [e]), [I, G] = D(!1), [q, K] = D(), [F, Y] = D(!1), [U, A] = D(), [$, O] = D();
|
|
3310
|
+
return k(() => {
|
|
3311
|
+
e && G(!0), K(t), i ? Y(!0) : A([H.CreateFolder, H.DeleteFiles]), o !== void 0 && O(uo[o]);
|
|
3306
3312
|
}, [e, t, i, o]), /* @__PURE__ */ l(
|
|
3307
3313
|
ae,
|
|
3308
3314
|
{
|
|
@@ -3311,7 +3317,7 @@ const Ns = fe.memo(
|
|
|
3311
3317
|
...T
|
|
3312
3318
|
},
|
|
3313
3319
|
children: /* @__PURE__ */ l(
|
|
3314
|
-
|
|
3320
|
+
Ai,
|
|
3315
3321
|
{
|
|
3316
3322
|
ref: E,
|
|
3317
3323
|
files: r ?? [],
|
|
@@ -3320,10 +3326,10 @@ const Ns = fe.memo(
|
|
|
3320
3326
|
typeof u == "function" && u(V);
|
|
3321
3327
|
},
|
|
3322
3328
|
thumbnailGenerator: w,
|
|
3323
|
-
defaultFileViewActionId:
|
|
3329
|
+
defaultFileViewActionId: q,
|
|
3324
3330
|
disableDragAndDrop: F,
|
|
3325
3331
|
fileActions: U,
|
|
3326
|
-
darkMode:
|
|
3332
|
+
darkMode: I,
|
|
3327
3333
|
i18n: $,
|
|
3328
3334
|
...m
|
|
3329
3335
|
}
|
|
@@ -3334,67 +3340,67 @@ const Ns = fe.memo(
|
|
|
3334
3340
|
)
|
|
3335
3341
|
);
|
|
3336
3342
|
export {
|
|
3337
|
-
|
|
3338
|
-
|
|
3343
|
+
Rs as Autocomplete,
|
|
3344
|
+
it as BboxCorner,
|
|
3339
3345
|
ae as Box,
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3346
|
+
ot as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
3347
|
+
rt as COORDINATES_WGS_FRACTION_DIGITS,
|
|
3348
|
+
us as Cesium3DTileset,
|
|
3349
|
+
Ls as CesiumBoundingSphere,
|
|
3350
|
+
Ts as CesiumCartesian2,
|
|
3351
|
+
_s as CesiumCartesian3,
|
|
3352
|
+
Ss as CesiumCartographic,
|
|
3353
|
+
ks as CesiumCesiumTerrainProvider,
|
|
3354
|
+
vs as CesiumColor,
|
|
3355
|
+
bs as CesiumConstantPositionProperty,
|
|
3356
|
+
ws as CesiumConstantProperty,
|
|
3357
|
+
Wr as CesiumCustomDataSource,
|
|
3358
|
+
Es as CesiumDrawingsDataSource,
|
|
3359
|
+
Ps as CesiumEllipsoid,
|
|
3360
|
+
As as CesiumEllipsoidTerrainProvider,
|
|
3361
|
+
Gr as CesiumEntity,
|
|
3362
|
+
ys as CesiumEntityDescription,
|
|
3363
|
+
Vr as CesiumEntityStaticDescription,
|
|
3364
|
+
Ms as CesiumGeographicTilingScheme,
|
|
3365
|
+
hs as CesiumGeojsonLayer,
|
|
3366
|
+
je as CesiumImageryLayer,
|
|
3367
|
+
Os as CesiumLabelStyle,
|
|
3368
|
+
ds as CesiumMap,
|
|
3369
|
+
$s as CesiumMath,
|
|
3370
|
+
fs as CesiumOSMLayer,
|
|
3371
|
+
zr as CesiumPolygonGraphics,
|
|
3372
|
+
Cs as CesiumPolylineDashMaterialProperty,
|
|
3373
|
+
Ds as CesiumRectangle,
|
|
3374
|
+
$r as CesiumRectangleGraphics,
|
|
3375
|
+
Is as CesiumResource,
|
|
3376
|
+
oe as CesiumSceneMode,
|
|
3377
|
+
xs as CesiumVerticalOrigin,
|
|
3378
|
+
cs as CesiumViewer,
|
|
3379
|
+
ms as CesiumWMSLayer,
|
|
3380
|
+
ps as CesiumWMTSLayer,
|
|
3381
|
+
gs as CesiumXYZLayer,
|
|
3382
|
+
as as CssBaseline,
|
|
3383
|
+
is as DateRangePicker,
|
|
3384
|
+
rs as DateTimePicker,
|
|
3385
|
+
Fi as DateTimeRangePicker,
|
|
3386
|
+
ts as DateTimeRangePickerFormControl,
|
|
3387
|
+
se as DrawType,
|
|
3388
|
+
Ns as FileHelper,
|
|
3389
|
+
Fs as FilePicker,
|
|
3390
|
+
Bs as FilePickerActions,
|
|
3391
|
+
ho as FilePickerViewObj,
|
|
3392
|
+
os as MapFilterContainer,
|
|
3393
|
+
Hi as Popover,
|
|
3394
|
+
ue as Proj,
|
|
3395
|
+
ls as ScopedCssBaseline,
|
|
3396
|
+
ss as SmartTable,
|
|
3391
3397
|
ce as SupportedLocales,
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3398
|
+
ns as TimeRangeInput,
|
|
3399
|
+
Ws as cesiumSampleTerrainMostDetailed,
|
|
3400
|
+
ut as defaultFormatters,
|
|
3401
|
+
Ye as isDateRange,
|
|
3402
|
+
Oi as mapMcToMuiTheme,
|
|
3403
|
+
he as useCesiumMap,
|
|
3404
|
+
Ut as useMappedMuiTheme,
|
|
3405
|
+
Vs as useMediaQuery
|
|
3400
3406
|
};
|