@map-colonies/react-components 4.3.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@map-colonies/react-components.es.js +1266 -1173
- package/dist/@map-colonies/react-components.umd.js +12 -3
- package/dist/cesium-map/index.d.ts +1 -0
- package/dist/cesium-map/tools/index.d.ts +8 -0
- package/dist/cesium-map/tools/inspector.tool.d.ts +4 -0
- package/dist/cesium-map/tools/terranian-height.tool.d.ts +4 -0
- package/package.json +3 -3
|
@@ -1,54 +1,54 @@
|
|
|
1
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
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Z = (e, n, t) => (
|
|
5
|
-
import { jsx as l, jsxs as N, Fragment as
|
|
6
|
-
import * as
|
|
7
|
-
import ve, { useState as
|
|
8
|
-
import { isValid as
|
|
9
|
-
import { he as
|
|
10
|
-
import { MuiPickersUtilsProvider as
|
|
11
|
-
import
|
|
12
|
-
import { createTheme as
|
|
13
|
-
import { Box as
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import { default as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { Map as
|
|
2
|
+
var an = Object.defineProperty;
|
|
3
|
+
var ln = (e, n, t) => n in e ? an(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
4
|
+
var Z = (e, n, t) => (ln(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
5
|
+
import { jsx as l, jsxs as N, Fragment as te } from "react/jsx-runtime";
|
|
6
|
+
import * as Ot from "react";
|
|
7
|
+
import ve, { useState as A, useEffect as I, useMemo as $e, forwardRef as cn, createContext as Ie, useRef as be, useContext as xe, useCallback as me, useLayoutEffect as dn } from "react";
|
|
8
|
+
import { isValid as _e, isBefore as un, format as pt, endOfDay as hn, isSameDay as gt } from "date-fns";
|
|
9
|
+
import { he as Rt, enUS as Nt } from "date-fns/locale";
|
|
10
|
+
import { MuiPickersUtilsProvider as Bt, KeyboardDateTimePicker as Qe, KeyboardDatePicker as mn } from "@material-ui/pickers";
|
|
11
|
+
import Ft from "@date-io/date-fns";
|
|
12
|
+
import { createTheme as pn, makeStyles as ke, createStyles as We } from "@material-ui/core/styles";
|
|
13
|
+
import { Box as gn, ThemeProvider as Ht, Popover as fn, Paper as et, TableRow as He, TableCell as Me, TableSortLabel as yn, IconButton as vn, Collapse as En, TableContainer as Cn, Table as wn, TableBody as bn, Typography as Tn, TablePagination as _n } from "@material-ui/core";
|
|
14
|
+
import { useTheme as Gt, ThemeProvider as Ln, Button as Ae, TextField as Ge, Tooltip as tt, Menu as Sn, MenuItem as je, Icon as Pe, Dialog as Mn, DialogTitle as Pn, DialogContent as Dn, Drawer as An, DrawerHeader as In, DrawerTitle as xn, DrawerContent as kn, LinearProgress as On } from "@map-colonies/react-core";
|
|
15
|
+
import { default as js } from "@material-ui/core/useMediaQuery";
|
|
16
|
+
import Rn, { registerLocale as Nn } from "react-datepicker";
|
|
17
|
+
import Bn from "date-fns/locale/he";
|
|
18
|
+
import Le from "moment";
|
|
19
|
+
import Fn from "@turf/rewind";
|
|
20
|
+
import { Map as Hn, View as Gn } from "ol";
|
|
21
21
|
import "ol/ol.css";
|
|
22
|
-
import { format as
|
|
23
|
-
import { defaults as
|
|
22
|
+
import { format as ft } from "ol/coordinate";
|
|
23
|
+
import { defaults as Vn, FullScreen as yt } from "ol/control";
|
|
24
24
|
import qe from "ol/control/MousePosition";
|
|
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
|
|
25
|
+
import { transform as zn } from "ol/proj";
|
|
26
|
+
import { Tile as $n, Vector as Wn } from "ol/layer";
|
|
27
|
+
import { Vector as Un, OSM as Kn } from "ol/source";
|
|
28
|
+
import { GeoJSON as Vt } from "ol/format";
|
|
29
|
+
import { Draw as jn } from "ol/interaction";
|
|
30
|
+
import { createBox as qn } from "ol/interaction/Draw";
|
|
31
|
+
import Yn from "@material-ui/core/TableHead";
|
|
32
|
+
import { createSvgIcon as zt } from "@material-ui/core/utils";
|
|
33
|
+
import Xn from "@material-ui/core/CssBaseline";
|
|
34
|
+
import Zn from "@material-ui/core/ScopedCssBaseline";
|
|
35
|
+
import { createPortal as Jn } from "react-dom";
|
|
36
|
+
import { Viewer as Qn, Cesium3DTileset as ei, GeoJsonDataSource as ti, ImageryLayer as ni, Entity as ii, EntityDescription as $t, PolygonGraphics as ri, RectangleGraphics as oi, CustomDataSource as si, PolylineGraphics as ai } from "resium";
|
|
37
37
|
import * as p from "cesium";
|
|
38
|
-
import { ScreenSpaceEventType as
|
|
39
|
-
import { Math as
|
|
40
|
-
import { get as ee, isNumber as
|
|
41
|
-
import
|
|
38
|
+
import { ScreenSpaceEventType as li, Cartesian3 as pe, Math as ce, WebMercatorProjection as ci, SceneMode as we, Cartesian2 as Ee, Cartographic as Oe, EventHelper as di, EllipsoidGeodesic as ui, UrlTemplateImageryProvider as lt, WebMapServiceImageryProvider as ct, WebMapTileServiceImageryProvider as dt, Event as hi, SingleTileImageryProvider as mi, Rectangle as Se, Viewer as pi, Matrix4 as gi, OpenStreetMapImageryProvider as fi, Color as nt, PolygonHierarchy as yi, PolylineDashMaterialProperty as vi, ConstantProperty as Ei, ConstantPositionProperty as Ci, BoundingSphere as wi, Ellipsoid as Wt, GeographicTilingScheme as bi, Resource as Ti, EllipsoidTerrainProvider as _i, CesiumTerrainProvider as Li, VerticalOrigin as it, LabelStyle as Ut, viewerCesiumInspectorMixin as Si, sampleTerrainMostDetailed as Mi } from "cesium";
|
|
39
|
+
import { Math as Ys, sampleTerrainMostDetailed as Xs } from "cesium";
|
|
40
|
+
import { get as ee, isNumber as Ve, isEmpty as rt, isArray as Pi, find as vt } from "lodash";
|
|
41
|
+
import Di from "@turf/boolean-point-in-polygon";
|
|
42
42
|
import "@map-colonies/react-core/dist/linear-progress/styles";
|
|
43
|
-
import * as
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import { ChonkyActions as
|
|
49
|
-
import { ChonkyIconFA as
|
|
50
|
-
import
|
|
51
|
-
var se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(se || {}),
|
|
43
|
+
import * as Kt from "@turf/helpers";
|
|
44
|
+
import jt from "@turf/bbox";
|
|
45
|
+
import qt from "@turf/bbox-polygon";
|
|
46
|
+
import Ai from "textarea-caret";
|
|
47
|
+
import Ii, { setCaretPosition as xi } from "get-input-selection";
|
|
48
|
+
import { ChonkyActions as G, FileHelper as Yt, setChonkyDefaults as ki, FullFileBrowser as Oi } from "chonky";
|
|
49
|
+
import { ChonkyIconFA as Ri } from "chonky-icon-fontawesome";
|
|
50
|
+
import Ni from "filesize";
|
|
51
|
+
var se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(se || {}), de = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(de || {}), ot = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(ot || {});
|
|
52
52
|
const J = {
|
|
53
53
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
54
54
|
DATE_PICKER: {
|
|
@@ -56,7 +56,7 @@ const J = {
|
|
|
56
56
|
local: {
|
|
57
57
|
setText: "set",
|
|
58
58
|
placeHolderText: "Enter the Date",
|
|
59
|
-
calendarLocale:
|
|
59
|
+
calendarLocale: de.EN
|
|
60
60
|
},
|
|
61
61
|
disableFuture: !0,
|
|
62
62
|
showTime: !1,
|
|
@@ -70,7 +70,7 @@ const J = {
|
|
|
70
70
|
setText: "set",
|
|
71
71
|
startPlaceHolderText: "Start of time",
|
|
72
72
|
endPlaceHolderText: "End of time",
|
|
73
|
-
calendarLocale:
|
|
73
|
+
calendarLocale: de.EN
|
|
74
74
|
},
|
|
75
75
|
renderAsButton: !0,
|
|
76
76
|
offset: 0,
|
|
@@ -78,11 +78,11 @@ const J = {
|
|
|
78
78
|
}
|
|
79
79
|
}, ae = (e) => {
|
|
80
80
|
const { children: n, ...t } = e;
|
|
81
|
-
return /* @__PURE__ */ l(
|
|
82
|
-
},
|
|
81
|
+
return /* @__PURE__ */ l(gn, { ...t, children: n });
|
|
82
|
+
}, Xt = (e) => {
|
|
83
83
|
const n = e.type === "dark";
|
|
84
|
-
return ve.useMemo(() =>
|
|
85
|
-
},
|
|
84
|
+
return ve.useMemo(() => Bi(e, n), [n, e]);
|
|
85
|
+
}, Bi = (e, n = !1) => pn({
|
|
86
86
|
palette: {
|
|
87
87
|
type: n ? "dark" : "light",
|
|
88
88
|
primary: {
|
|
@@ -104,54 +104,54 @@ const J = {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
const
|
|
108
|
-
(e) =>
|
|
107
|
+
const Fi = 2, Hi = 0.5, Gi = ke(
|
|
108
|
+
(e) => We({
|
|
109
109
|
container: {
|
|
110
|
-
padding: e.spacing(
|
|
110
|
+
padding: e.spacing(Fi),
|
|
111
111
|
alignItems: "center"
|
|
112
112
|
},
|
|
113
113
|
setButton: {
|
|
114
114
|
marginTop: e.spacing(1)
|
|
115
115
|
},
|
|
116
116
|
margin: {
|
|
117
|
-
marginLeft: e.spacing(
|
|
117
|
+
marginLeft: e.spacing(Hi)
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
|
-
),
|
|
121
|
-
var
|
|
122
|
-
const n =
|
|
123
|
-
|
|
120
|
+
), Vi = (e) => {
|
|
121
|
+
var K, x, W, O;
|
|
122
|
+
const n = Gi(), t = Gt(), i = Xt(t), [o, r] = A(null), [d, u] = A(null), [h, E] = A(J.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, b = ((K = e.local) == null ? void 0 : K.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((x = e.local) == null ? void 0 : x.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, B = ((W = e.local) == null ? void 0 : W.setText) ?? J.DATE_RANGE_PICKER.local.setText, q = (((O = e.local) == null ? void 0 : O.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === de.HE ? Rt : Nt;
|
|
123
|
+
I(() => {
|
|
124
124
|
r(e.from ?? null);
|
|
125
|
-
}, [e.from]),
|
|
125
|
+
}, [e.from]), I(() => {
|
|
126
126
|
u(e.to ?? null);
|
|
127
|
-
}, [e.to]),
|
|
127
|
+
}, [e.to]), I(() => {
|
|
128
128
|
E(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
129
129
|
}, [e.dateFormat]);
|
|
130
|
-
const
|
|
131
|
-
|
|
130
|
+
const H = Boolean(
|
|
131
|
+
_e(o) && !d || _e(d) && !o || o && d && _e(o) && _e(d) && un(o, d)
|
|
132
132
|
), Y = () => {
|
|
133
133
|
e.onChange({
|
|
134
|
-
from: o &&
|
|
135
|
-
to: d &&
|
|
134
|
+
from: o && _e(o) ? o : void 0,
|
|
135
|
+
to: d && _e(d) ? d : void 0
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
|
-
return /* @__PURE__ */ l(
|
|
138
|
+
return /* @__PURE__ */ l(Ht, { theme: i, children: /* @__PURE__ */ l(
|
|
139
139
|
ae,
|
|
140
140
|
{
|
|
141
141
|
className: `${n.container} drpContainer`,
|
|
142
142
|
display: "flex",
|
|
143
|
-
flexDirection:
|
|
144
|
-
width:
|
|
145
|
-
children: /* @__PURE__ */ N(
|
|
143
|
+
flexDirection: C,
|
|
144
|
+
width: C === "column" ? e.contentWidth : "unset",
|
|
145
|
+
children: /* @__PURE__ */ N(Bt, { utils: Ft, locale: q, children: [
|
|
146
146
|
/* @__PURE__ */ l(
|
|
147
147
|
Qe,
|
|
148
148
|
{
|
|
149
149
|
variant: "inline",
|
|
150
|
-
placeholder:
|
|
150
|
+
placeholder: b,
|
|
151
151
|
onChange: (V) => r(V),
|
|
152
152
|
value: o,
|
|
153
|
-
disableFuture:
|
|
154
|
-
format:
|
|
153
|
+
disableFuture: L,
|
|
154
|
+
format: h,
|
|
155
155
|
maxDate: e.maxDate,
|
|
156
156
|
minDate: e.minDate
|
|
157
157
|
}
|
|
@@ -160,71 +160,71 @@ const Ri = 2, Ni = 0.5, Bi = xe(
|
|
|
160
160
|
Qe,
|
|
161
161
|
{
|
|
162
162
|
variant: "inline",
|
|
163
|
-
placeholder:
|
|
163
|
+
placeholder: P,
|
|
164
164
|
className: n.margin,
|
|
165
165
|
onChange: (V) => u(V),
|
|
166
166
|
value: d,
|
|
167
|
-
disableFuture:
|
|
168
|
-
format:
|
|
167
|
+
disableFuture: L,
|
|
168
|
+
format: h,
|
|
169
169
|
maxDate: e.maxDate,
|
|
170
170
|
minDate: e.minDate
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ l(
|
|
174
|
-
|
|
173
|
+
/* @__PURE__ */ l(Ln, { options: t, children: /* @__PURE__ */ l(
|
|
174
|
+
Ae,
|
|
175
175
|
{
|
|
176
176
|
className: `${n.setButton} ${n.margin}`,
|
|
177
177
|
raised: !0,
|
|
178
178
|
onClick: Y,
|
|
179
|
-
disabled: !
|
|
180
|
-
children:
|
|
179
|
+
disabled: !H,
|
|
180
|
+
children: B
|
|
181
181
|
}
|
|
182
182
|
) })
|
|
183
183
|
] })
|
|
184
184
|
}
|
|
185
185
|
) });
|
|
186
|
-
},
|
|
186
|
+
}, zi = (e) => {
|
|
187
187
|
const { children: n, ...t } = e;
|
|
188
|
-
return /* @__PURE__ */ l(
|
|
188
|
+
return /* @__PURE__ */ l(fn, { ...t, children: n });
|
|
189
189
|
};
|
|
190
|
-
const
|
|
191
|
-
var
|
|
192
|
-
const [n, t] =
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
O.currentTarget.tagName === "I" ?
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
|
|
190
|
+
const os = (e) => {
|
|
191
|
+
var x, W;
|
|
192
|
+
const [n, t] = A(null), [i, o] = A(null), [r, d] = A(J.DATE_RANGE_PICKER.dateFormat), [u, h] = ve.useState(null), E = (O) => {
|
|
193
|
+
h(O.currentTarget);
|
|
194
|
+
}, C = (O) => {
|
|
195
|
+
O.currentTarget.tagName === "I" ? h(O.currentTarget.previousElementSibling) : h(O.currentTarget);
|
|
196
|
+
}, L = () => {
|
|
197
|
+
h(null);
|
|
198
|
+
}, b = Boolean(u), P = e.controlsLayout ?? "column";
|
|
199
|
+
I(() => {
|
|
200
200
|
t(e.from ?? null);
|
|
201
|
-
}, [e.from]),
|
|
201
|
+
}, [e.from]), I(() => {
|
|
202
202
|
o(e.to ?? null);
|
|
203
|
-
}, [e.to]),
|
|
203
|
+
}, [e.to]), I(() => {
|
|
204
204
|
d(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
205
205
|
}, [e.dateFormat]);
|
|
206
|
-
const
|
|
207
|
-
return /* @__PURE__ */ N(
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
const B = ((x = e.local) == null ? void 0 : x.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, $ = ((W = e.local) == null ? void 0 : W.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, q = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, H = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, Y = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, K = $e(() => `${n ? pt(n, r) : B} - ${i ? pt(i, r) : $}`, [n, i, r, B, $]);
|
|
207
|
+
return /* @__PURE__ */ N(te, { children: [
|
|
208
|
+
q ? /* @__PURE__ */ l(Ae, { style: { width: e.width }, raised: !0, onClick: E, className: "drpOpener", children: K }) : /* @__PURE__ */ l(
|
|
209
|
+
Ge,
|
|
210
210
|
{
|
|
211
211
|
className: "drpOpener",
|
|
212
212
|
readOnly: !0,
|
|
213
213
|
style: { width: e.width },
|
|
214
|
-
value:
|
|
215
|
-
onClick:
|
|
214
|
+
value: K,
|
|
215
|
+
onClick: C,
|
|
216
216
|
trailingIcon: {
|
|
217
217
|
icon: "date_range",
|
|
218
218
|
tabIndex: 0,
|
|
219
|
-
onClick:
|
|
219
|
+
onClick: C
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
),
|
|
223
|
-
/* @__PURE__ */ l(
|
|
224
|
-
|
|
223
|
+
/* @__PURE__ */ l(zi, { open: b, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
|
|
224
|
+
Vi,
|
|
225
225
|
{
|
|
226
|
-
controlsLayout:
|
|
227
|
-
contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) -
|
|
226
|
+
controlsLayout: P,
|
|
227
|
+
contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - H,
|
|
228
228
|
dateFormat: r,
|
|
229
229
|
disableFuture: Y,
|
|
230
230
|
minDate: e.minDate,
|
|
@@ -233,12 +233,12 @@ const ts = (e) => {
|
|
|
233
233
|
from: n ?? void 0,
|
|
234
234
|
to: i ?? void 0,
|
|
235
235
|
onChange: ({ from: O, to: V }) => {
|
|
236
|
-
t(O ?? null), o(V ?? null), e.onChange({ from: O, to: V }),
|
|
236
|
+
t(O ?? null), o(V ?? null), e.onChange({ from: O, to: V }), L();
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
) })
|
|
240
240
|
] });
|
|
241
|
-
}, Ye = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e,
|
|
241
|
+
}, Ye = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ss = ({
|
|
242
242
|
endDate: e,
|
|
243
243
|
startDate: n,
|
|
244
244
|
setEndDate: t = () => {
|
|
@@ -249,49 +249,49 @@ const ts = (e) => {
|
|
|
249
249
|
endTimeLabel: r = "",
|
|
250
250
|
endTimeWrapperClassName: d = "",
|
|
251
251
|
timeRangeInputsWrapperClassName: u = "",
|
|
252
|
-
startTimeInputClassName:
|
|
252
|
+
startTimeInputClassName: h = "",
|
|
253
253
|
startTimeLabel: E = "",
|
|
254
|
-
startTimeWrapperClassName:
|
|
254
|
+
startTimeWrapperClassName: C = ""
|
|
255
255
|
}) => /* @__PURE__ */ N("div", { className: `timeRangeWrapper ${u}`, children: [
|
|
256
|
-
/* @__PURE__ */ l("div", { className: `startTimeWrapper ${
|
|
257
|
-
|
|
256
|
+
/* @__PURE__ */ l("div", { className: `startTimeWrapper ${C}`, children: /* @__PURE__ */ l(
|
|
257
|
+
Ge,
|
|
258
258
|
{
|
|
259
259
|
label: E,
|
|
260
260
|
disabled: n === null,
|
|
261
|
-
className: `timeRangeInput ${
|
|
261
|
+
className: `timeRangeInput ${h}`,
|
|
262
262
|
name: "start-time",
|
|
263
263
|
type: "time",
|
|
264
|
-
value:
|
|
265
|
-
onChange: (
|
|
266
|
-
const
|
|
267
|
-
hours:
|
|
268
|
-
minutes:
|
|
264
|
+
value: Le(n).format("HH:mm"),
|
|
265
|
+
onChange: (L) => {
|
|
266
|
+
const b = Le(n), P = Le(L.currentTarget.value, "HH:mm"), B = b.set({
|
|
267
|
+
hours: P.get("hours"),
|
|
268
|
+
minutes: P.get("minutes")
|
|
269
269
|
});
|
|
270
|
-
i(
|
|
270
|
+
i(B.toDate());
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
) }),
|
|
274
274
|
/* @__PURE__ */ l("div", { className: `endTimeWrapper ${d}`, children: /* @__PURE__ */ l(
|
|
275
|
-
|
|
275
|
+
Ge,
|
|
276
276
|
{
|
|
277
277
|
label: r,
|
|
278
278
|
disabled: e === null,
|
|
279
279
|
className: `timeRangeInput ${o}`,
|
|
280
280
|
name: "end-time",
|
|
281
281
|
type: "time",
|
|
282
|
-
value:
|
|
283
|
-
onChange: (
|
|
284
|
-
const
|
|
285
|
-
hours:
|
|
286
|
-
minutes:
|
|
282
|
+
value: Le(e).format("HH:mm"),
|
|
283
|
+
onChange: (L) => {
|
|
284
|
+
const b = Le(e), P = Le(L.currentTarget.value, "HH:mm"), B = b.set({
|
|
285
|
+
hours: P.get("hours"),
|
|
286
|
+
minutes: P.get("minutes")
|
|
287
287
|
});
|
|
288
|
-
t(
|
|
288
|
+
t(B.toDate());
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
) })
|
|
292
|
-
] }),
|
|
292
|
+
] }), $i = cn(
|
|
293
293
|
({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
|
|
294
|
-
|
|
294
|
+
Ge,
|
|
295
295
|
{
|
|
296
296
|
...i,
|
|
297
297
|
className: "dateRangeCustomInput",
|
|
@@ -303,37 +303,37 @@ const ts = (e) => {
|
|
|
303
303
|
value: e
|
|
304
304
|
}
|
|
305
305
|
)
|
|
306
|
-
),
|
|
306
|
+
), Wi = ({ setStartDate: e = () => {
|
|
307
307
|
}, setEndDate: n = () => {
|
|
308
308
|
}, shortcuts: t, dateRange: i, onShortcut: o }) => {
|
|
309
|
-
const [r, d] =
|
|
310
|
-
() => t.map((
|
|
309
|
+
const [r, d] = A(), u = $e(
|
|
310
|
+
() => t.map((h) => h instanceof Function ? h() : h),
|
|
311
311
|
[t]
|
|
312
312
|
);
|
|
313
|
-
return
|
|
314
|
-
for (const
|
|
315
|
-
const E = i.startDate && i.endDate &&
|
|
316
|
-
r ?
|
|
313
|
+
return I(() => {
|
|
314
|
+
for (const h of u) {
|
|
315
|
+
const E = i.startDate && i.endDate && gt(h.startDate, i.startDate) && gt(h.endDate, i.endDate);
|
|
316
|
+
r ? h.id === r && (E || d(void 0)) : E && d(h.id);
|
|
317
317
|
}
|
|
318
|
-
}, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((
|
|
319
|
-
const
|
|
320
|
-
e(
|
|
318
|
+
}, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((h, E) => {
|
|
319
|
+
const C = () => {
|
|
320
|
+
e(h.startDate), n(h.endDate);
|
|
321
321
|
};
|
|
322
322
|
return /* @__PURE__ */ l(
|
|
323
|
-
|
|
323
|
+
Ae,
|
|
324
324
|
{
|
|
325
325
|
type: "button",
|
|
326
|
-
className: `shortcut ${r ===
|
|
327
|
-
onClick: (
|
|
328
|
-
|
|
326
|
+
className: `shortcut ${r === h.id ? "selected" : ""}`,
|
|
327
|
+
onClick: (L) => {
|
|
328
|
+
C(), o == null || o({ startDate: h.startDate, endDate: h.endDate });
|
|
329
329
|
},
|
|
330
330
|
outlined: !0,
|
|
331
|
-
children:
|
|
331
|
+
children: h.label
|
|
332
332
|
},
|
|
333
|
-
|
|
333
|
+
h.id + E
|
|
334
334
|
);
|
|
335
335
|
}) });
|
|
336
|
-
},
|
|
336
|
+
}, as = ve.forwardRef((e, n) => {
|
|
337
337
|
const {
|
|
338
338
|
// Time range input props
|
|
339
339
|
// endTimeInputClassName,
|
|
@@ -350,129 +350,129 @@ const ts = (e) => {
|
|
|
350
350
|
selectsRange: r,
|
|
351
351
|
onChange: d,
|
|
352
352
|
inputName: u,
|
|
353
|
-
showMonthYearDropdown:
|
|
353
|
+
showMonthYearDropdown: h,
|
|
354
354
|
// withTimeRange,
|
|
355
355
|
withShortcuts: E,
|
|
356
|
-
locale:
|
|
357
|
-
} = e, [
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}, [
|
|
361
|
-
var
|
|
362
|
-
((
|
|
363
|
-
}, [e.startDate, e.endDate,
|
|
364
|
-
const Y =
|
|
365
|
-
let
|
|
366
|
-
return E && r && (
|
|
367
|
-
}, [
|
|
356
|
+
locale: C = "en"
|
|
357
|
+
} = e, [L, b] = A(null), [P, B] = A(null), [$, q] = A(!1), H = r ? { startDate: L, endDate: P } : L;
|
|
358
|
+
I(() => {
|
|
359
|
+
C === "he" && Nn("he", Bn);
|
|
360
|
+
}, [C]), I(() => {
|
|
361
|
+
var x, W;
|
|
362
|
+
((x = e.startDate) == null ? void 0 : x.toString()) !== (L == null ? void 0 : L.toString()) && b(e.startDate), ((W = e.endDate) == null ? void 0 : W.toString()) !== (P == null ? void 0 : P.toString()) && B(e.endDate);
|
|
363
|
+
}, [e.startDate, e.endDate, L, P]);
|
|
364
|
+
const Y = $e(() => {
|
|
365
|
+
let x = "pickerContainer" + (C === "he" ? " pickerContainer-rtl" : "");
|
|
366
|
+
return E && r && (x += " pickerContainer-withShortcuts"), x;
|
|
367
|
+
}, [C, E, r]), K = h ? {
|
|
368
368
|
showMonthDropdown: !0,
|
|
369
369
|
showYearDropdown: !0,
|
|
370
370
|
dropdownMode: "select"
|
|
371
371
|
} : {};
|
|
372
|
-
return /* @__PURE__ */ l("div", { className: Y, style: { direction:
|
|
373
|
-
|
|
372
|
+
return /* @__PURE__ */ l("div", { className: Y, style: { direction: C === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
|
|
373
|
+
Rn,
|
|
374
374
|
{
|
|
375
375
|
...e,
|
|
376
376
|
ref: n,
|
|
377
|
-
onClickOutside: () =>
|
|
378
|
-
open:
|
|
379
|
-
startDate: Ye(
|
|
380
|
-
selected:
|
|
381
|
-
endDate: Ye(
|
|
377
|
+
onClickOutside: () => q(!1),
|
|
378
|
+
open: $,
|
|
379
|
+
startDate: Ye(H) ? L : void 0,
|
|
380
|
+
selected: L,
|
|
381
|
+
endDate: Ye(H) ? P : void 0,
|
|
382
382
|
monthsShown: e.monthsShown ?? 2,
|
|
383
383
|
calendarClassName: `pickerCalendar ${t}`,
|
|
384
|
-
weekDayClassName: (
|
|
385
|
-
dayClassName: (
|
|
386
|
-
monthClassName: (
|
|
387
|
-
onChange: (
|
|
388
|
-
if (Array.isArray(
|
|
389
|
-
const [O, V] =
|
|
390
|
-
|
|
384
|
+
weekDayClassName: (x) => `pickerWeek ${(i == null ? void 0 : i(x)) ?? ""}`,
|
|
385
|
+
dayClassName: (x) => `pickerDay ${(i == null ? void 0 : i(x)) ?? ""}`,
|
|
386
|
+
monthClassName: (x) => `pickerMonth ${(o == null ? void 0 : o(x)) ?? ""}`,
|
|
387
|
+
onChange: (x, W) => {
|
|
388
|
+
if (Array.isArray(x)) {
|
|
389
|
+
const [O, V] = x;
|
|
390
|
+
b(O), B(V), d == null || d({ startDate: O, endDate: V && hn(V) }, W);
|
|
391
391
|
} else
|
|
392
|
-
|
|
392
|
+
b(x), d == null || d(x, W);
|
|
393
393
|
},
|
|
394
|
-
customInput: /* @__PURE__ */ l(
|
|
395
|
-
|
|
394
|
+
customInput: /* @__PURE__ */ l($i, { name: u, onInputClick: () => {
|
|
395
|
+
q(!0);
|
|
396
396
|
} }),
|
|
397
397
|
showTimeInput: !!(E && r),
|
|
398
398
|
timeInputLabel: "",
|
|
399
|
-
customTimeInput: E && Ye(
|
|
400
|
-
d == null || d(
|
|
401
|
-
}, shortcuts: E, setEndDate:
|
|
399
|
+
customTimeInput: E && Ye(H) && /* @__PURE__ */ l(Wi, { onShortcut: (x) => {
|
|
400
|
+
d == null || d(x), q(!1);
|
|
401
|
+
}, shortcuts: E, setEndDate: B, setStartDate: b, dateRange: H }),
|
|
402
402
|
showMonthYearDropdown: void 0,
|
|
403
|
-
...
|
|
403
|
+
...K
|
|
404
404
|
}
|
|
405
405
|
) });
|
|
406
406
|
});
|
|
407
|
-
const
|
|
408
|
-
const n =
|
|
407
|
+
const ls = (e) => {
|
|
408
|
+
const n = Gt(), t = Xt(n), [i, o] = A(e.value), {
|
|
409
409
|
format: r = J.DATE_PICKER.dateFormat,
|
|
410
410
|
variant: d = J.DATE_PICKER.variant,
|
|
411
411
|
disableFuture: u = J.DATE_PICKER.disableFuture,
|
|
412
|
-
local:
|
|
412
|
+
local: h,
|
|
413
413
|
onChange: E,
|
|
414
|
-
showTime:
|
|
415
|
-
value:
|
|
416
|
-
...
|
|
417
|
-
} = e, { placeHolderText:
|
|
414
|
+
showTime: C = J.DATE_PICKER.showTime,
|
|
415
|
+
value: L,
|
|
416
|
+
...b
|
|
417
|
+
} = e, { placeHolderText: P = J.DATE_PICKER.local.placeHolderText, calendarLocale: B } = h ?? {
|
|
418
418
|
placeHolderText: J.DATE_PICKER.local.placeHolderText,
|
|
419
|
-
calendarLocale:
|
|
420
|
-
},
|
|
421
|
-
o(
|
|
419
|
+
calendarLocale: de.EN
|
|
420
|
+
}, $ = B === de.HE ? Rt : Nt, q = (H) => {
|
|
421
|
+
o(H), E(H);
|
|
422
422
|
};
|
|
423
|
-
return /* @__PURE__ */ l(
|
|
424
|
-
|
|
423
|
+
return /* @__PURE__ */ l(Ht, { theme: t, children: /* @__PURE__ */ N(Bt, { utils: Ft, locale: $, children: [
|
|
424
|
+
C && /* @__PURE__ */ l(
|
|
425
425
|
Qe,
|
|
426
426
|
{
|
|
427
427
|
variant: d,
|
|
428
|
-
placeholder:
|
|
429
|
-
onChange:
|
|
428
|
+
placeholder: P,
|
|
429
|
+
onChange: q,
|
|
430
430
|
value: i,
|
|
431
431
|
disableFuture: u,
|
|
432
432
|
format: r,
|
|
433
|
-
...
|
|
433
|
+
...b
|
|
434
434
|
}
|
|
435
435
|
),
|
|
436
|
-
!
|
|
437
|
-
|
|
436
|
+
!C && /* @__PURE__ */ l(
|
|
437
|
+
mn,
|
|
438
438
|
{
|
|
439
439
|
variant: d,
|
|
440
|
-
placeholder:
|
|
441
|
-
onChange:
|
|
440
|
+
placeholder: P,
|
|
441
|
+
onChange: q,
|
|
442
442
|
value: i,
|
|
443
443
|
disableFuture: u,
|
|
444
444
|
format: r,
|
|
445
|
-
...
|
|
445
|
+
...b
|
|
446
446
|
}
|
|
447
447
|
)
|
|
448
448
|
] }) });
|
|
449
|
-
},
|
|
450
|
-
(e) =>
|
|
449
|
+
}, Ui = 18, Ki = ke(
|
|
450
|
+
(e) => We({
|
|
451
451
|
drawingButton: {
|
|
452
|
-
width: e.spacing(
|
|
452
|
+
width: e.spacing(Ui)
|
|
453
453
|
},
|
|
454
454
|
fullWidth: {
|
|
455
455
|
width: "100%",
|
|
456
456
|
marginTop: "36px"
|
|
457
457
|
}
|
|
458
458
|
})
|
|
459
|
-
),
|
|
460
|
-
const n =
|
|
461
|
-
i(
|
|
459
|
+
), ji = (e) => {
|
|
460
|
+
const n = Ki(), [t, i] = ve.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: d, onReset: u } = e, h = (C) => {
|
|
461
|
+
i(C.currentTarget);
|
|
462
462
|
}, E = () => {
|
|
463
463
|
i(null);
|
|
464
464
|
};
|
|
465
|
-
return o ? /* @__PURE__ */ l(tt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(
|
|
466
|
-
/* @__PURE__ */ l(tt, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(
|
|
465
|
+
return o ? /* @__PURE__ */ l(tt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ae, { 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(Ae, { className: n.drawingButton, raised: !0, onClick: h, children: "Draw AOI" }) }),
|
|
467
467
|
/* @__PURE__ */ N(
|
|
468
|
-
|
|
468
|
+
Sn,
|
|
469
469
|
{
|
|
470
470
|
className: n.fullWidth,
|
|
471
471
|
open: Boolean(t),
|
|
472
472
|
onClose: E,
|
|
473
473
|
children: [
|
|
474
474
|
/* @__PURE__ */ l(
|
|
475
|
-
|
|
475
|
+
je,
|
|
476
476
|
{
|
|
477
477
|
onClick: () => {
|
|
478
478
|
d(se.POLYGON), E();
|
|
@@ -481,7 +481,7 @@ const rs = (e) => {
|
|
|
481
481
|
}
|
|
482
482
|
),
|
|
483
483
|
/* @__PURE__ */ l(
|
|
484
|
-
|
|
484
|
+
je,
|
|
485
485
|
{
|
|
486
486
|
onClick: () => {
|
|
487
487
|
d(se.BOX), E();
|
|
@@ -490,7 +490,7 @@ const rs = (e) => {
|
|
|
490
490
|
}
|
|
491
491
|
),
|
|
492
492
|
/* @__PURE__ */ l(
|
|
493
|
-
|
|
493
|
+
je,
|
|
494
494
|
{
|
|
495
495
|
onClick: () => {
|
|
496
496
|
u(), E();
|
|
@@ -503,107 +503,107 @@ const rs = (e) => {
|
|
|
503
503
|
)
|
|
504
504
|
] });
|
|
505
505
|
};
|
|
506
|
-
var
|
|
507
|
-
const
|
|
506
|
+
var he = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(he || {});
|
|
507
|
+
const st = 5, at = 2, Zt = Ie(null), qi = Zt.Provider, Et = 35, Ct = 32, Yi = 10, Xi = (e) => e !== void 0 && e !== he.WGS84 ? zn([Et, Ct], he.WGS84, e) : [Et, Ct], Zi = (e) => {
|
|
508
508
|
switch (e) {
|
|
509
|
-
case
|
|
510
|
-
return (n) =>
|
|
511
|
-
case
|
|
512
|
-
return (n) =>
|
|
509
|
+
case he.WEB_MERCATOR:
|
|
510
|
+
return (n) => ft(n, "Mercator: {y}m, {x}m", at);
|
|
511
|
+
case he.WGS84:
|
|
512
|
+
return (n) => ft(n, "WGS84: {y}°N {x}°E", st);
|
|
513
513
|
default:
|
|
514
514
|
return (n) => "";
|
|
515
515
|
}
|
|
516
|
-
},
|
|
517
|
-
const e =
|
|
516
|
+
}, ut = () => {
|
|
517
|
+
const e = xe(Zt);
|
|
518
518
|
if (e === null)
|
|
519
519
|
throw new Error("map context is null, please check the provider");
|
|
520
520
|
return e;
|
|
521
|
-
},
|
|
522
|
-
const n =
|
|
523
|
-
new
|
|
524
|
-
view: new
|
|
525
|
-
projection: o ??
|
|
521
|
+
}, Ji = (e) => {
|
|
522
|
+
const n = be(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = A(
|
|
523
|
+
new Hn({
|
|
524
|
+
view: new Gn({
|
|
525
|
+
projection: o ?? he.WGS84
|
|
526
526
|
}),
|
|
527
|
-
controls:
|
|
527
|
+
controls: Vn()
|
|
528
528
|
})
|
|
529
529
|
);
|
|
530
|
-
|
|
531
|
-
r.getView().setCenter(e.center ??
|
|
532
|
-
}, [r, e.center, e.projection]),
|
|
533
|
-
r.getView().setZoom(e.zoom ??
|
|
530
|
+
I(() => {
|
|
531
|
+
r.getView().setCenter(e.center ?? Xi(e.projection));
|
|
532
|
+
}, [r, e.center, e.projection]), I(() => {
|
|
533
|
+
r.getView().setZoom(e.zoom ?? Yi);
|
|
534
534
|
}, [r, e.zoom, e.projection]);
|
|
535
|
-
const d = (u,
|
|
536
|
-
|
|
537
|
-
|
|
535
|
+
const d = (u, h) => {
|
|
536
|
+
h.getControls().forEach((C) => {
|
|
537
|
+
C instanceof u && h.removeControl(C);
|
|
538
538
|
});
|
|
539
539
|
};
|
|
540
|
-
return
|
|
541
|
-
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new
|
|
542
|
-
}, [r, t]),
|
|
540
|
+
return I(() => {
|
|
541
|
+
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new yt()) : d(yt, r);
|
|
542
|
+
}, [r, t]), I(() => {
|
|
543
543
|
i !== void 0 && i ? (d(qe, r), r.addControl(
|
|
544
544
|
new qe({
|
|
545
|
-
coordinateFormat:
|
|
546
|
-
projection: o ??
|
|
545
|
+
coordinateFormat: Zi(o ?? he.WGS84),
|
|
546
|
+
projection: o ?? he.WGS84,
|
|
547
547
|
undefinedHTML: " "
|
|
548
548
|
})
|
|
549
549
|
)) : d(qe, r);
|
|
550
|
-
}, [r, i, o]), /* @__PURE__ */ N(
|
|
550
|
+
}, [r, i, o]), /* @__PURE__ */ N(qi, { value: r, children: [
|
|
551
551
|
/* @__PURE__ */ l("div", { className: "map", ref: n }),
|
|
552
552
|
e.children
|
|
553
553
|
] });
|
|
554
|
-
},
|
|
555
|
-
const e =
|
|
554
|
+
}, Jt = Ie(null), Qi = Jt.Provider, er = () => {
|
|
555
|
+
const e = xe(Jt);
|
|
556
556
|
if (e === null)
|
|
557
557
|
throw new Error("tile layer context is null, please check the provider");
|
|
558
558
|
return e;
|
|
559
|
-
},
|
|
560
|
-
const t =
|
|
561
|
-
return
|
|
559
|
+
}, tr = ({ options: e, children: n }) => {
|
|
560
|
+
const t = ut(), [i] = A(new $n(e));
|
|
561
|
+
return I(() => (t.addLayer(i), () => {
|
|
562
562
|
t.removeLayer(i);
|
|
563
|
-
}), [t, i]), /* @__PURE__ */ l(
|
|
564
|
-
},
|
|
565
|
-
const e =
|
|
563
|
+
}), [t, i]), /* @__PURE__ */ l(Qi, { value: i, children: n });
|
|
564
|
+
}, Qt = Ie(null), nr = Qt.Provider, ir = () => {
|
|
565
|
+
const e = xe(Qt);
|
|
566
566
|
if (e === null)
|
|
567
567
|
throw new Error("vector layer context is null, please check the provider");
|
|
568
568
|
return e;
|
|
569
|
-
},
|
|
570
|
-
const n =
|
|
571
|
-
return
|
|
569
|
+
}, rr = ({ children: e }) => {
|
|
570
|
+
const n = ut(), [t] = A(new Wn());
|
|
571
|
+
return I(() => (n.addLayer(t), () => {
|
|
572
572
|
n.removeLayer(t);
|
|
573
|
-
}), [n, t]), /* @__PURE__ */ l(
|
|
574
|
-
},
|
|
575
|
-
const e =
|
|
573
|
+
}), [n, t]), /* @__PURE__ */ l(nr, { value: t, children: e });
|
|
574
|
+
}, en = Ie(null), or = en.Provider, sr = () => {
|
|
575
|
+
const e = xe(en);
|
|
576
576
|
if (e === null)
|
|
577
577
|
throw new Error("vector source context is null, please check the provider");
|
|
578
578
|
return e;
|
|
579
|
-
},
|
|
580
|
-
const n =
|
|
581
|
-
return
|
|
579
|
+
}, ar = ({ children: e }) => {
|
|
580
|
+
const n = ir(), [t] = A(new Un());
|
|
581
|
+
return I(() => {
|
|
582
582
|
n.setSource(t);
|
|
583
|
-
}, [t, n]), /* @__PURE__ */ l(
|
|
584
|
-
},
|
|
585
|
-
const n =
|
|
586
|
-
return
|
|
587
|
-
const i = new
|
|
583
|
+
}, [t, n]), /* @__PURE__ */ l(or, { value: t, children: e });
|
|
584
|
+
}, lr = ({ geometry: e }) => {
|
|
585
|
+
const n = sr();
|
|
586
|
+
return I(() => {
|
|
587
|
+
const i = new Vt().readFeature(e);
|
|
588
588
|
return n.addFeature(i), () => {
|
|
589
589
|
n.removeFeature(i);
|
|
590
590
|
};
|
|
591
591
|
}, [e, n]), null;
|
|
592
|
-
},
|
|
593
|
-
const n =
|
|
594
|
-
return
|
|
595
|
-
n.setSource(new
|
|
592
|
+
}, cr = (e) => {
|
|
593
|
+
const n = er();
|
|
594
|
+
return I(() => {
|
|
595
|
+
n.setSource(new Kn());
|
|
596
596
|
}, [n]), null;
|
|
597
|
-
},
|
|
598
|
-
const t =
|
|
599
|
-
return
|
|
597
|
+
}, dr = ({ drawType: e, onPolygonSelected: n }) => {
|
|
598
|
+
const t = ut();
|
|
599
|
+
return I(() => {
|
|
600
600
|
const i = {
|
|
601
601
|
type: "Circle"
|
|
602
602
|
/* CIRCLE */
|
|
603
603
|
};
|
|
604
604
|
switch (e) {
|
|
605
605
|
case se.BOX:
|
|
606
|
-
i.geometryFunction =
|
|
606
|
+
i.geometryFunction = qn();
|
|
607
607
|
break;
|
|
608
608
|
case se.POLYGON:
|
|
609
609
|
i.type = "Polygon";
|
|
@@ -611,30 +611,30 @@ const rt = 5, ot = 2, jt = Ae(null), Ui = jt.Provider, yt = 35, vt = 32, ji = 10
|
|
|
611
611
|
default:
|
|
612
612
|
return;
|
|
613
613
|
}
|
|
614
|
-
const o = new
|
|
614
|
+
const o = new jn(i);
|
|
615
615
|
t.addInteraction(o);
|
|
616
616
|
const r = (d) => {
|
|
617
|
-
const
|
|
618
|
-
n == null || n(
|
|
617
|
+
const h = new Vt().writeGeometryObject(d.feature.getGeometry());
|
|
618
|
+
n == null || n(h);
|
|
619
619
|
};
|
|
620
620
|
return o.on("drawend", r), () => {
|
|
621
621
|
o.un("drawend", r), t.removeInteraction(o);
|
|
622
622
|
};
|
|
623
623
|
}, [n, e, t]), null;
|
|
624
624
|
};
|
|
625
|
-
const
|
|
625
|
+
const ur = (e) => {
|
|
626
626
|
const n = (t) => {
|
|
627
|
-
const i =
|
|
627
|
+
const i = Fn(t);
|
|
628
628
|
e.onPolygonSelection(i);
|
|
629
629
|
};
|
|
630
|
-
return /* @__PURE__ */ N(
|
|
631
|
-
/* @__PURE__ */ l(
|
|
632
|
-
e.selectionPolygon && /* @__PURE__ */ l(
|
|
630
|
+
return /* @__PURE__ */ N(Ji, { allowFullScreen: !0, showMousePosition: !0, children: [
|
|
631
|
+
/* @__PURE__ */ l(tr, { children: /* @__PURE__ */ l(cr, {}) }),
|
|
632
|
+
e.selectionPolygon && /* @__PURE__ */ l(rr, { children: /* @__PURE__ */ l(ar, { children: /* @__PURE__ */ l(lr, { geometry: e.selectionPolygon }) }) }),
|
|
633
633
|
e.children,
|
|
634
|
-
e.drawType !== void 0 && /* @__PURE__ */ l(
|
|
634
|
+
e.drawType !== void 0 && /* @__PURE__ */ l(dr, { drawType: e.drawType, onPolygonSelected: n })
|
|
635
635
|
] });
|
|
636
|
-
}, Xe = 1.5,
|
|
637
|
-
(e) =>
|
|
636
|
+
}, Xe = 1.5, hr = 80, mr = ke(
|
|
637
|
+
(e) => We({
|
|
638
638
|
map: {
|
|
639
639
|
height: "100%",
|
|
640
640
|
width: "100%",
|
|
@@ -648,7 +648,7 @@ const lr = (e) => {
|
|
|
648
648
|
},
|
|
649
649
|
contentContainer: {
|
|
650
650
|
marginTop: e.spacing(Xe),
|
|
651
|
-
width: e.spacing(
|
|
651
|
+
width: e.spacing(hr)
|
|
652
652
|
},
|
|
653
653
|
filtersContainer: {
|
|
654
654
|
display: "flex",
|
|
@@ -658,9 +658,9 @@ const lr = (e) => {
|
|
|
658
658
|
marginLeft: e.spacing(1)
|
|
659
659
|
}
|
|
660
660
|
})
|
|
661
|
-
),
|
|
662
|
-
var
|
|
663
|
-
const [n, t] =
|
|
661
|
+
), cs = (e) => {
|
|
662
|
+
var h;
|
|
663
|
+
const [n, t] = A(), [i, o] = A(), r = mr(), d = (E) => {
|
|
664
664
|
o(E), t(void 0), e.handlePolygonSelected(E);
|
|
665
665
|
}, u = () => {
|
|
666
666
|
o(void 0), e.handlePolygonReset();
|
|
@@ -669,7 +669,7 @@ const lr = (e) => {
|
|
|
669
669
|
/* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
|
|
670
670
|
/* @__PURE__ */ N(et, { className: r.filtersContainer, children: [
|
|
671
671
|
/* @__PURE__ */ l(
|
|
672
|
-
|
|
672
|
+
ji,
|
|
673
673
|
{
|
|
674
674
|
onCancelDraw: () => t(void 0),
|
|
675
675
|
onReset: u,
|
|
@@ -677,27 +677,27 @@ const lr = (e) => {
|
|
|
677
677
|
isSelectionEnabled: n !== void 0
|
|
678
678
|
}
|
|
679
679
|
),
|
|
680
|
-
(
|
|
680
|
+
(h = e.filters) == null ? void 0 : h.map((E, C) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: E }, C))
|
|
681
681
|
] }),
|
|
682
682
|
/* @__PURE__ */ l(et, { color: "red", className: `${r.contentContainer}`, children: e.children })
|
|
683
683
|
] }),
|
|
684
|
-
/* @__PURE__ */ l(
|
|
684
|
+
/* @__PURE__ */ l(ur, { children: e.mapContent, onPolygonSelection: d, drawType: n, selectionPolygon: i })
|
|
685
685
|
] });
|
|
686
686
|
};
|
|
687
|
-
function
|
|
688
|
-
const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (
|
|
689
|
-
o(
|
|
687
|
+
function pr(e) {
|
|
688
|
+
const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (h) => {
|
|
689
|
+
o(h, u);
|
|
690
690
|
};
|
|
691
|
-
return /* @__PURE__ */ l(
|
|
692
|
-
r && /* @__PURE__ */ l(
|
|
691
|
+
return /* @__PURE__ */ l(Yn, { children: /* @__PURE__ */ N(He, { children: [
|
|
692
|
+
r && /* @__PURE__ */ l(Me, {}),
|
|
693
693
|
n.map((u) => /* @__PURE__ */ l(
|
|
694
|
-
|
|
694
|
+
Me,
|
|
695
695
|
{
|
|
696
696
|
align: u.numeric ? "right" : "left",
|
|
697
697
|
padding: u.disablePadding ? "none" : "default",
|
|
698
698
|
sortDirection: i === u.id ? t : !1,
|
|
699
699
|
children: /* @__PURE__ */ l(
|
|
700
|
-
|
|
700
|
+
yn,
|
|
701
701
|
{
|
|
702
702
|
active: i === u.id,
|
|
703
703
|
direction: i === u.id ? t : "asc",
|
|
@@ -710,178 +710,178 @@ function ur(e) {
|
|
|
710
710
|
))
|
|
711
711
|
] }) });
|
|
712
712
|
}
|
|
713
|
-
const
|
|
714
|
-
/* @__PURE__ */
|
|
713
|
+
const gr = zt(
|
|
714
|
+
/* @__PURE__ */ Ot.createElement("path", {
|
|
715
715
|
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
716
716
|
}),
|
|
717
717
|
"KeyboardArrowDown"
|
|
718
|
-
),
|
|
719
|
-
/* @__PURE__ */
|
|
718
|
+
), fr = zt(
|
|
719
|
+
/* @__PURE__ */ Ot.createElement("path", {
|
|
720
720
|
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
721
721
|
}),
|
|
722
722
|
"KeyboardArrowUp"
|
|
723
723
|
);
|
|
724
|
-
function
|
|
725
|
-
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [
|
|
726
|
-
return /* @__PURE__ */ N(
|
|
727
|
-
/* @__PURE__ */ N(
|
|
724
|
+
function yr(e) {
|
|
725
|
+
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [h, E] = A(!1), C = n.length;
|
|
726
|
+
return /* @__PURE__ */ N(te, { children: [
|
|
727
|
+
/* @__PURE__ */ N(He, { hover: !0, selected: t, onClick: () => {
|
|
728
728
|
o == null || o(r);
|
|
729
729
|
}, children: [
|
|
730
|
-
d && /* @__PURE__ */ l(
|
|
731
|
-
|
|
730
|
+
d && /* @__PURE__ */ l(Me, { padding: "checkbox", children: /* @__PURE__ */ l(
|
|
731
|
+
vn,
|
|
732
732
|
{
|
|
733
733
|
"aria-label": "expand row",
|
|
734
734
|
size: "small",
|
|
735
|
-
onClick: (
|
|
736
|
-
|
|
735
|
+
onClick: (b) => {
|
|
736
|
+
b.stopPropagation(), E(!h);
|
|
737
737
|
},
|
|
738
|
-
children:
|
|
738
|
+
children: h ? /* @__PURE__ */ l(fr, {}) : /* @__PURE__ */ l(gr, {})
|
|
739
739
|
}
|
|
740
740
|
) }),
|
|
741
|
-
n.map((
|
|
742
|
-
|
|
741
|
+
n.map((b) => /* @__PURE__ */ l(
|
|
742
|
+
Me,
|
|
743
743
|
{
|
|
744
|
-
align:
|
|
745
|
-
padding:
|
|
746
|
-
children:
|
|
744
|
+
align: b.numeric ? "right" : "left",
|
|
745
|
+
padding: b.disablePadding ? "none" : "default",
|
|
746
|
+
children: b.transform ? b.transform(i[b.id]) : i[b.id]
|
|
747
747
|
},
|
|
748
|
-
|
|
748
|
+
b.id + r.toString()
|
|
749
749
|
))
|
|
750
750
|
] }),
|
|
751
|
-
d && /* @__PURE__ */ l(
|
|
751
|
+
d && /* @__PURE__ */ l(He, { children: /* @__PURE__ */ l(Me, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: C + 1, children: /* @__PURE__ */ l(En, { in: h, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
|
|
752
752
|
] });
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
const [n, t] =
|
|
754
|
+
function ds(e) {
|
|
755
|
+
const [n, t] = A(""), [i, o] = A("asc"), {
|
|
756
756
|
cellsMetadata: r,
|
|
757
757
|
items: d,
|
|
758
758
|
onRequestSort: u,
|
|
759
|
-
onRowSelected:
|
|
759
|
+
onRowSelected: h,
|
|
760
760
|
isCollapseable: E,
|
|
761
|
-
collapsedElement:
|
|
762
|
-
isDense:
|
|
763
|
-
page:
|
|
764
|
-
rowsPerPage:
|
|
765
|
-
count:
|
|
766
|
-
handleChangePage:
|
|
767
|
-
handleChangeRowsPerPage:
|
|
761
|
+
collapsedElement: C,
|
|
762
|
+
isDense: L,
|
|
763
|
+
page: b,
|
|
764
|
+
rowsPerPage: P,
|
|
765
|
+
count: B,
|
|
766
|
+
handleChangePage: $,
|
|
767
|
+
handleChangeRowsPerPage: q
|
|
768
768
|
} = e;
|
|
769
|
-
return /* @__PURE__ */ N(
|
|
770
|
-
/* @__PURE__ */ N(
|
|
769
|
+
return /* @__PURE__ */ N(Cn, { component: et, children: [
|
|
770
|
+
/* @__PURE__ */ N(wn, { size: L ? "small" : "medium", children: [
|
|
771
771
|
/* @__PURE__ */ l(
|
|
772
|
-
|
|
772
|
+
pr,
|
|
773
773
|
{
|
|
774
774
|
headCells: r,
|
|
775
|
-
onRequestSort: (Y,
|
|
776
|
-
const
|
|
777
|
-
o(
|
|
775
|
+
onRequestSort: (Y, K) => {
|
|
776
|
+
const x = n === K && i === "asc";
|
|
777
|
+
o(x ? "desc" : "asc"), t(K), u(K, x ? "desc" : "asc");
|
|
778
778
|
},
|
|
779
779
|
order: i,
|
|
780
780
|
orderBy: n,
|
|
781
781
|
isCollapseable: E
|
|
782
782
|
}
|
|
783
783
|
),
|
|
784
|
-
/* @__PURE__ */ N(
|
|
785
|
-
d.map((Y,
|
|
786
|
-
|
|
784
|
+
/* @__PURE__ */ N(bn, { children: [
|
|
785
|
+
d.map((Y, K) => /* @__PURE__ */ l(
|
|
786
|
+
yr,
|
|
787
787
|
{
|
|
788
788
|
item: Y,
|
|
789
|
-
rowIndex:
|
|
789
|
+
rowIndex: K,
|
|
790
790
|
isCollapseable: E,
|
|
791
791
|
cellsMetadata: r,
|
|
792
|
-
collapsedElement:
|
|
792
|
+
collapsedElement: C,
|
|
793
793
|
isRowSelected: !1,
|
|
794
|
-
onRowSelected:
|
|
794
|
+
onRowSelected: h
|
|
795
795
|
},
|
|
796
|
-
|
|
796
|
+
K
|
|
797
797
|
)),
|
|
798
|
-
(d.length === 0 ||
|
|
799
|
-
|
|
798
|
+
(d.length === 0 || P > d.length) && /* @__PURE__ */ l(
|
|
799
|
+
He,
|
|
800
800
|
{
|
|
801
801
|
style: {
|
|
802
|
-
height: (
|
|
802
|
+
height: (L ? 33 : 53) * (P - d.length)
|
|
803
803
|
},
|
|
804
|
-
children: /* @__PURE__ */ l(
|
|
804
|
+
children: /* @__PURE__ */ l(Me, { colSpan: E ? r.length + 1 : r.length, children: d.length === 0 && /* @__PURE__ */ l(Tn, { align: "center", children: "No results :(" }) })
|
|
805
805
|
}
|
|
806
806
|
)
|
|
807
807
|
] })
|
|
808
808
|
] }),
|
|
809
809
|
/* @__PURE__ */ l(
|
|
810
|
-
|
|
810
|
+
_n,
|
|
811
811
|
{
|
|
812
|
-
rowsPerPage:
|
|
812
|
+
rowsPerPage: P,
|
|
813
813
|
rowsPerPageOptions: [5, 10],
|
|
814
814
|
component: "div",
|
|
815
|
-
count:
|
|
816
|
-
page:
|
|
817
|
-
onPageChange:
|
|
818
|
-
onRowsPerPageChange:
|
|
815
|
+
count: B,
|
|
816
|
+
page: b,
|
|
817
|
+
onPageChange: $,
|
|
818
|
+
onRowsPerPageChange: q
|
|
819
819
|
}
|
|
820
820
|
)
|
|
821
821
|
] });
|
|
822
822
|
}
|
|
823
|
-
const
|
|
823
|
+
const us = (e) => {
|
|
824
824
|
const { children: n, ...t } = e;
|
|
825
|
-
return /* @__PURE__ */ l(
|
|
826
|
-
},
|
|
825
|
+
return /* @__PURE__ */ l(Xn, { ...t, children: n });
|
|
826
|
+
}, hs = (e) => {
|
|
827
827
|
const { children: n, ...t } = e;
|
|
828
|
-
return /* @__PURE__ */ l(
|
|
829
|
-
},
|
|
830
|
-
const
|
|
831
|
-
const n =
|
|
832
|
-
return
|
|
828
|
+
return /* @__PURE__ */ l(Zn, { ...t, children: n });
|
|
829
|
+
}, wt = (e) => e * Math.PI / 180, Be = (e) => e * (180 / Math.PI), vr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(wt(85.362 / 2)) / Math.sin(wt(85.362 / 2)));
|
|
830
|
+
const Er = (e) => {
|
|
831
|
+
const n = le(), t = be(null), [i, o] = A({ x: 0, y: 0 });
|
|
832
|
+
return I(() => {
|
|
833
833
|
n.screenSpaceEventHandler.setInputAction((r) => {
|
|
834
834
|
r != null && r.endPosition && o({ ...r.endPosition });
|
|
835
|
-
},
|
|
836
|
-
}, [t, n]),
|
|
835
|
+
}, li.MOUSE_MOVE);
|
|
836
|
+
}, [t, n]), I(() => {
|
|
837
837
|
const r = n.scene.globe.ellipsoid, d = n.camera.pickEllipsoid(new pe(i.x, i.y), r);
|
|
838
838
|
if (d) {
|
|
839
839
|
const u = r.cartesianToCartographic(d);
|
|
840
840
|
if (t.current) {
|
|
841
|
-
let
|
|
841
|
+
let h = "";
|
|
842
842
|
switch (e.projection) {
|
|
843
|
-
case
|
|
844
|
-
const
|
|
845
|
-
|
|
846
|
-
|
|
843
|
+
case he.WEB_MERCATOR: {
|
|
844
|
+
const C = new ci(r).project(u);
|
|
845
|
+
h = `Mercator: ${C.y.toFixed(at)}m, ${C.x.toFixed(
|
|
846
|
+
at
|
|
847
847
|
)}m`, t.current.style.width = "220px";
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
850
|
-
case
|
|
851
|
-
const E =
|
|
852
|
-
|
|
850
|
+
case he.WGS84: {
|
|
851
|
+
const E = ce.toDegrees(u.longitude).toFixed(st);
|
|
852
|
+
h = `WGS84: ${ce.toDegrees(u.latitude).toFixed(st)}°N ${E}°E`, t.current.style.width = "200px";
|
|
853
853
|
break;
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
t.current.innerHTML =
|
|
856
|
+
t.current.innerHTML = h;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
}, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
|
|
860
|
-
},
|
|
860
|
+
}, tn = (e, n, t) => {
|
|
861
861
|
let i;
|
|
862
|
-
if (e.scene.mode !==
|
|
863
|
-
i = e.scene.pickPosition(new
|
|
862
|
+
if (e.scene.mode !== we.SCENE2D)
|
|
863
|
+
i = e.scene.pickPosition(new Ee(n, t));
|
|
864
864
|
else {
|
|
865
865
|
const o = e.scene.globe.ellipsoid;
|
|
866
|
-
i = e.camera.pickEllipsoid(new
|
|
866
|
+
i = e.camera.pickEllipsoid(new Ee(n, t), o);
|
|
867
867
|
}
|
|
868
|
-
return
|
|
869
|
-
},
|
|
870
|
-
const i =
|
|
868
|
+
return Oe.fromCartesian(i);
|
|
869
|
+
}, Cr = (e, n, t) => {
|
|
870
|
+
const i = tn(e, n, t);
|
|
871
871
|
return {
|
|
872
872
|
type: "Feature",
|
|
873
873
|
properties: {},
|
|
874
874
|
geometry: {
|
|
875
875
|
type: "Point",
|
|
876
|
-
coordinates: [
|
|
876
|
+
coordinates: [ce.toDegrees(i.longitude), ce.toDegrees(i.latitude)]
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
|
-
},
|
|
879
|
+
}, wr = (e, n, t) => {
|
|
880
880
|
try {
|
|
881
|
-
const i =
|
|
881
|
+
const i = tn(e, n, t);
|
|
882
882
|
return {
|
|
883
|
-
longitude:
|
|
884
|
-
latitude:
|
|
883
|
+
longitude: ce.toDegrees(i.longitude),
|
|
884
|
+
latitude: ce.toDegrees(i.latitude)
|
|
885
885
|
};
|
|
886
886
|
} catch {
|
|
887
887
|
return;
|
|
@@ -920,51 +920,51 @@ const Ze = [
|
|
|
920
920
|
2e7,
|
|
921
921
|
3e7,
|
|
922
922
|
5e7
|
|
923
|
-
],
|
|
923
|
+
], br = (e, n, t, i) => {
|
|
924
924
|
const o = ee(i, "METERS_UNIT") ?? "m", r = ee(i, "KILOMETERS_UNIT") ?? "km", d = {
|
|
925
925
|
barWidth: void 0,
|
|
926
926
|
distanceLabel: void 0,
|
|
927
927
|
lastLegendUpdate: n.lastLegendUpdate
|
|
928
|
-
}, u = new
|
|
929
|
-
if (
|
|
928
|
+
}, u = new ui(), h = new Date().getTime();
|
|
929
|
+
if (h < d.lastLegendUpdate + 250)
|
|
930
930
|
return;
|
|
931
|
-
d.lastLegendUpdate =
|
|
932
|
-
const E = e.scene.canvas.clientWidth,
|
|
933
|
-
if (!
|
|
931
|
+
d.lastLegendUpdate = h;
|
|
932
|
+
const E = e.scene.canvas.clientWidth, C = e.scene.canvas.clientHeight, L = e.scene.camera.getPickRay(new Ee(E / 2 | 0, C - 1)), b = e.scene.camera.getPickRay(new Ee(1 + E / 2 | 0, C - 1)), P = e.scene.globe, B = P.pick(L, e.scene), $ = P.pick(b, e.scene);
|
|
933
|
+
if (!B || !$)
|
|
934
934
|
return;
|
|
935
|
-
const
|
|
936
|
-
u.setEndPoints(
|
|
937
|
-
const Y = u.surfaceDistance,
|
|
938
|
-
let
|
|
939
|
-
for (let
|
|
940
|
-
Ze[
|
|
941
|
-
if (
|
|
942
|
-
let
|
|
943
|
-
|
|
935
|
+
const q = P.ellipsoid.cartesianToCartographic(B), H = P.ellipsoid.cartesianToCartographic($);
|
|
936
|
+
u.setEndPoints(q, H);
|
|
937
|
+
const Y = u.surfaceDistance, K = 100;
|
|
938
|
+
let x;
|
|
939
|
+
for (let W = Ze.length - 1; !Ve(x) && W >= 0; --W)
|
|
940
|
+
Ze[W] / Y < K && (x = Ze[W]);
|
|
941
|
+
if (Ve(x)) {
|
|
942
|
+
let W = "";
|
|
943
|
+
x >= 1e3 ? W = `${(x / 1e3).toString()} ${r}` : W = `${x.toString()} ${o}`, d.barWidth = x / Y | 0, d.distanceLabel = W;
|
|
944
944
|
}
|
|
945
945
|
t(d);
|
|
946
|
-
},
|
|
947
|
-
const n =
|
|
946
|
+
}, Tr = (e) => {
|
|
947
|
+
const n = le(), [t, i] = A({
|
|
948
948
|
barWidth: void 0,
|
|
949
949
|
distanceLabel: void 0,
|
|
950
950
|
lastLegendUpdate: -1
|
|
951
951
|
});
|
|
952
|
-
|
|
953
|
-
const r = (
|
|
954
|
-
|
|
955
|
-
}, d = new
|
|
952
|
+
I(() => {
|
|
953
|
+
const r = (h) => {
|
|
954
|
+
br(n, t, i, e.locale);
|
|
955
|
+
}, d = new di(), u = (h) => {
|
|
956
956
|
n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), d.removeAll());
|
|
957
957
|
};
|
|
958
958
|
return d.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
|
|
959
959
|
try {
|
|
960
960
|
ee(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(r);
|
|
961
|
-
} catch (
|
|
962
|
-
console.log('CESIUM camera "moveEnd" remove listener failed',
|
|
961
|
+
} catch (h) {
|
|
962
|
+
console.log('CESIUM camera "moveEnd" remove listener failed', h);
|
|
963
963
|
}
|
|
964
964
|
};
|
|
965
965
|
}, [n, e.locale, t]);
|
|
966
966
|
const o = (r) => 5 + (125 - r) / 2;
|
|
967
|
-
return /* @__PURE__ */ l("div", { className: "scalePosition", children:
|
|
967
|
+
return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ve(t.barWidth) && /* @__PURE__ */ N(te, { children: [
|
|
968
968
|
/* @__PURE__ */ l("div", { className: "distance-legend-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
|
|
969
969
|
/* @__PURE__ */ l(
|
|
970
970
|
"div",
|
|
@@ -979,29 +979,29 @@ const Ze = [
|
|
|
979
979
|
)
|
|
980
980
|
] }) });
|
|
981
981
|
}, oe = {
|
|
982
|
-
MORPHING:
|
|
983
|
-
COLUMBUS_VIEW:
|
|
984
|
-
SCENE2D:
|
|
985
|
-
SCENE3D:
|
|
982
|
+
MORPHING: we.MORPHING,
|
|
983
|
+
COLUMBUS_VIEW: we.COLUMBUS_VIEW,
|
|
984
|
+
SCENE2D: we.SCENE2D,
|
|
985
|
+
SCENE3D: we.SCENE3D
|
|
986
986
|
};
|
|
987
|
-
const
|
|
987
|
+
const bt = (e, n) => {
|
|
988
988
|
const i = ee(n.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = n.canvas.height, d = ee(n.camera.frustum, "sseDenominator") ?? 1;
|
|
989
989
|
for (let u = 0; u <= 19; u++)
|
|
990
990
|
if (i.getLevelMaximumGeometricError(u) * r / (e * d) < o.maximumScreenSpaceError)
|
|
991
991
|
return u;
|
|
992
992
|
return null;
|
|
993
|
-
},
|
|
993
|
+
}, _r = (e, n) => {
|
|
994
994
|
e = e || 10;
|
|
995
995
|
const t = [];
|
|
996
996
|
let i = 1e5, o = 0;
|
|
997
997
|
for (let r = 1e8; r > i; r = r - i) {
|
|
998
|
-
const d =
|
|
998
|
+
const d = bt(r, n);
|
|
999
999
|
if (d === null)
|
|
1000
1000
|
break;
|
|
1001
1001
|
if (d !== o) {
|
|
1002
|
-
let u = r,
|
|
1003
|
-
for (;
|
|
1004
|
-
r = u + (
|
|
1002
|
+
let u = r, h = r + i;
|
|
1003
|
+
for (; h - u > e; )
|
|
1004
|
+
r = u + (h - u) / 2, bt(r, n) === d ? u = r : h = r;
|
|
1005
1005
|
t.push({
|
|
1006
1006
|
level: d,
|
|
1007
1007
|
height: Math.round(r)
|
|
@@ -1009,28 +1009,28 @@ const Ct = (e, n) => {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
return t;
|
|
1012
|
-
},
|
|
1013
|
-
const n =
|
|
1014
|
-
return
|
|
1012
|
+
}, Lr = (e) => {
|
|
1013
|
+
const n = le(), [t, i] = A(1), o = _r(1, n);
|
|
1014
|
+
return I(() => {
|
|
1015
1015
|
const r = () => {
|
|
1016
1016
|
const d = n.camera, u = 0.5;
|
|
1017
|
-
let
|
|
1017
|
+
let h = 0;
|
|
1018
1018
|
switch (n.scene.mode) {
|
|
1019
1019
|
case oe.SCENE3D:
|
|
1020
|
-
|
|
1020
|
+
h = n.scene.mapProjection.ellipsoid.cartesianToCartographic(d.positionWC).height;
|
|
1021
1021
|
break;
|
|
1022
1022
|
case oe.SCENE2D:
|
|
1023
|
-
|
|
1023
|
+
h = (d.frustum.right - d.frustum.left) * u;
|
|
1024
1024
|
break;
|
|
1025
1025
|
case oe.COLUMBUS_VIEW:
|
|
1026
|
-
|
|
1026
|
+
h = d.position.z;
|
|
1027
1027
|
break;
|
|
1028
1028
|
default:
|
|
1029
|
-
|
|
1029
|
+
h = 0;
|
|
1030
1030
|
break;
|
|
1031
1031
|
}
|
|
1032
1032
|
if (o.length > 0) {
|
|
1033
|
-
const E = o.reduce((
|
|
1033
|
+
const E = o.reduce((C, L) => Math.abs(L.height - h) < Math.abs(C.height - h) ? L : C);
|
|
1034
1034
|
i(E.level);
|
|
1035
1035
|
}
|
|
1036
1036
|
};
|
|
@@ -1046,11 +1046,11 @@ const Ct = (e, n) => {
|
|
|
1046
1046
|
/* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: ee(e.locale, "ZOOM_LABEL") ?? "zoom" })
|
|
1047
1047
|
] });
|
|
1048
1048
|
};
|
|
1049
|
-
const
|
|
1050
|
-
const n =
|
|
1051
|
-
return
|
|
1049
|
+
const Sr = -1, Mr = (e) => {
|
|
1050
|
+
const n = le(), [t, i] = A(), { sceneModes: o } = e, r = (d) => o.findIndex((u) => u === d) > Sr;
|
|
1051
|
+
return I(() => {
|
|
1052
1052
|
i(n.scene.mode);
|
|
1053
|
-
}, []), /* @__PURE__ */ N(
|
|
1053
|
+
}, []), /* @__PURE__ */ N(te, { children: [
|
|
1054
1054
|
r(oe.SCENE3D) && /* @__PURE__ */ l(
|
|
1055
1055
|
Pe,
|
|
1056
1056
|
{
|
|
@@ -1080,31 +1080,31 @@ const Tr = -1, _r = (e) => {
|
|
|
1080
1080
|
)
|
|
1081
1081
|
] });
|
|
1082
1082
|
};
|
|
1083
|
-
const
|
|
1084
|
-
(e) =>
|
|
1083
|
+
const Pr = ke(
|
|
1084
|
+
(e) => We({
|
|
1085
1085
|
mapContainer: {
|
|
1086
1086
|
width: "60px",
|
|
1087
1087
|
height: "60px",
|
|
1088
1088
|
border: `${e.palette.background.paper} 2px solid`
|
|
1089
1089
|
}
|
|
1090
1090
|
})
|
|
1091
|
-
),
|
|
1092
|
-
const n =
|
|
1093
|
-
|
|
1094
|
-
const E = t == null ? void 0 : t.maps.find((
|
|
1091
|
+
), Dr = (e) => {
|
|
1092
|
+
const n = le(), { baseMaps: t } = e, [i, o] = A(" "), [r, d] = A(), u = Pr();
|
|
1093
|
+
I(() => {
|
|
1094
|
+
const E = t == null ? void 0 : t.maps.find((C) => C.isCurrent);
|
|
1095
1095
|
E && (d(E), o(E.title !== void 0 ? E.title : " "));
|
|
1096
1096
|
}, [t]);
|
|
1097
|
-
const
|
|
1098
|
-
var
|
|
1097
|
+
const h = (E) => {
|
|
1098
|
+
var C, L;
|
|
1099
1099
|
if (t) {
|
|
1100
|
-
(
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
|
|
1100
|
+
(C = n.layersManager) == null || C.removeBaseMapLayers();
|
|
1101
|
+
const b = t.maps.find((P) => P.id === E);
|
|
1102
|
+
b && ((L = n.layersManager) == null || L.setBaseMapLayers(b), d(b), t.maps.forEach((P) => {
|
|
1103
|
+
P.isCurrent = b === P;
|
|
1104
1104
|
}));
|
|
1105
1105
|
}
|
|
1106
1106
|
};
|
|
1107
|
-
return /* @__PURE__ */ N(
|
|
1107
|
+
return /* @__PURE__ */ N(te, { children: [
|
|
1108
1108
|
/* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
|
|
1109
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(
|
|
1110
1110
|
"img",
|
|
@@ -1119,24 +1119,24 @@ const Sr = xe(
|
|
|
1119
1119
|
o((r == null ? void 0 : r.title) !== void 0 ? r.title : " ");
|
|
1120
1120
|
},
|
|
1121
1121
|
onClick: () => {
|
|
1122
|
-
|
|
1122
|
+
h(E.id);
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
) }, E.id)) })
|
|
1126
1126
|
] });
|
|
1127
1127
|
};
|
|
1128
|
-
const Je = "ic_settings_24px",
|
|
1129
|
-
const [n, t] =
|
|
1130
|
-
return
|
|
1131
|
-
const
|
|
1132
|
-
var
|
|
1133
|
-
const
|
|
1134
|
-
|
|
1128
|
+
const Je = "ic_settings_24px", Ar = (e) => {
|
|
1129
|
+
const [n, t] = A(!1), { sceneModes: i, baseMaps: o, locale: r } = e, d = be(null), u = ee(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", h = ee(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", E = ee(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
|
|
1130
|
+
return I(() => {
|
|
1131
|
+
const C = (L) => {
|
|
1132
|
+
var B;
|
|
1133
|
+
const b = L.target, P = ee(d, "current");
|
|
1134
|
+
P && !P.contains(b) && b.id !== Je && ((B = b.parentElement) == null ? void 0 : B.id) !== Je && (document.removeEventListener("click", C, !1), t(!1));
|
|
1135
1135
|
};
|
|
1136
|
-
return document.addEventListener("click",
|
|
1137
|
-
document.removeEventListener("click",
|
|
1136
|
+
return document.addEventListener("click", C, !1), () => {
|
|
1137
|
+
document.removeEventListener("click", C, !1);
|
|
1138
1138
|
};
|
|
1139
|
-
}), /* @__PURE__ */ N(
|
|
1139
|
+
}), /* @__PURE__ */ N(te, { children: [
|
|
1140
1140
|
/* @__PURE__ */ l(
|
|
1141
1141
|
Pe,
|
|
1142
1142
|
{
|
|
@@ -1147,20 +1147,20 @@ const Je = "ic_settings_24px", Pr = (e) => {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
),
|
|
1149
1149
|
n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: d, children: /* @__PURE__ */ N(
|
|
1150
|
-
|
|
1150
|
+
Mn,
|
|
1151
1151
|
{
|
|
1152
1152
|
open: n,
|
|
1153
1153
|
onClosed: () => {
|
|
1154
1154
|
t(!1);
|
|
1155
1155
|
},
|
|
1156
1156
|
children: [
|
|
1157
|
-
/* @__PURE__ */ l(
|
|
1158
|
-
/* @__PURE__ */ N(
|
|
1159
|
-
/* @__PURE__ */ l("h4", { className: "sectionLabel", children:
|
|
1160
|
-
/* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(
|
|
1161
|
-
/* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(
|
|
1157
|
+
/* @__PURE__ */ l(Pn, { children: u }),
|
|
1158
|
+
/* @__PURE__ */ N(Dn, { children: [
|
|
1159
|
+
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: h }),
|
|
1160
|
+
/* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(Mr, { sceneModes: i }) }),
|
|
1161
|
+
/* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(te, { children: [
|
|
1162
1162
|
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: E }),
|
|
1163
|
-
/* @__PURE__ */ l(
|
|
1163
|
+
/* @__PURE__ */ l(Dr, { baseMaps: o })
|
|
1164
1164
|
] }) })
|
|
1165
1165
|
] })
|
|
1166
1166
|
]
|
|
@@ -1168,10 +1168,10 @@ const Je = "ic_settings_24px", Pr = (e) => {
|
|
|
1168
1168
|
) })
|
|
1169
1169
|
] });
|
|
1170
1170
|
};
|
|
1171
|
-
const
|
|
1171
|
+
const Ir = /* @__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: [
|
|
1172
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" }),
|
|
1173
1173
|
/* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
|
|
1174
|
-
] }) }),
|
|
1174
|
+
] }) }), xr = ({ onClick: e }) => /* @__PURE__ */ l(ae, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(Pe, { icon: Ir, className: "mapLegendIcon" }) }), kr = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
|
|
1175
1175
|
const r = me(() => {
|
|
1176
1176
|
window.open(e, "_blank");
|
|
1177
1177
|
}, [e]);
|
|
@@ -1190,75 +1190,75 @@ const Mr = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1190
1190
|
/* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
|
|
1191
1191
|
/* @__PURE__ */ l(ae, { className: "legendActionsContainer", children: u() })
|
|
1192
1192
|
] });
|
|
1193
|
-
},
|
|
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(
|
|
1193
|
+
}, Or = ({ 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(kr, { legend: d, docText: n, imgText: t }, `${d.layer}_${u}`)) : o(), [e]);
|
|
1195
1195
|
return /* @__PURE__ */ l(ae, { className: "mapLegendsList", children: r() });
|
|
1196
|
-
},
|
|
1196
|
+
}, Rr = ({
|
|
1197
1197
|
isOpen: e,
|
|
1198
1198
|
toggleSidebar: n,
|
|
1199
1199
|
title: t = "Map Legends",
|
|
1200
1200
|
noLegendsText: i = "No legends to display...",
|
|
1201
1201
|
actionsTexts: o = { docText: "Docs", imgText: "View Image" },
|
|
1202
1202
|
legends: r = []
|
|
1203
|
-
}) => e ? /* @__PURE__ */ N(
|
|
1204
|
-
/* @__PURE__ */ l(
|
|
1205
|
-
/* @__PURE__ */ N(
|
|
1203
|
+
}) => e ? /* @__PURE__ */ N(An, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
|
|
1204
|
+
/* @__PURE__ */ l(In, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(xn, { className: "sidebarTitle", children: t }) }),
|
|
1205
|
+
/* @__PURE__ */ N(kn, { className: "sidebarContent", children: [
|
|
1206
1206
|
/* @__PURE__ */ l(Pe, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
|
|
1207
|
-
/* @__PURE__ */ l(
|
|
1207
|
+
/* @__PURE__ */ l(Or, { noLegendsText: i, legends: r, actionsTexts: o })
|
|
1208
1208
|
] })
|
|
1209
|
-
] }) : null,
|
|
1209
|
+
] }) : null, ue = document.createElement("canvas"), re = ue.getContext("2d"), Tt = (e) => {
|
|
1210
1210
|
const i = (e == null ? void 0 : e.data) ?? [];
|
|
1211
1211
|
for (let o = 3; o < i.length; o += 4)
|
|
1212
1212
|
if (i[o] < 255)
|
|
1213
1213
|
return !0;
|
|
1214
1214
|
return !1;
|
|
1215
|
-
},
|
|
1215
|
+
}, Nr = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
|
|
1216
1216
|
try {
|
|
1217
|
-
re == null || re.clearRect(0, 0,
|
|
1217
|
+
re == null || re.clearRect(0, 0, ue.width, ue.height);
|
|
1218
1218
|
let o;
|
|
1219
1219
|
if (e instanceof HTMLImageElement)
|
|
1220
1220
|
o = e;
|
|
1221
1221
|
else if (e instanceof ImageBitmap) {
|
|
1222
|
-
|
|
1223
|
-
const r = re == null ? void 0 : re.getImageData(0, 0,
|
|
1222
|
+
ue.width = e.width, ue.height = e.height, re == null || re.drawImage(e, 0, 0);
|
|
1223
|
+
const r = re == null ? void 0 : re.getImageData(0, 0, ue.width, ue.height), d = Tt(r);
|
|
1224
1224
|
d && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(d);
|
|
1225
1225
|
return;
|
|
1226
1226
|
} else
|
|
1227
1227
|
o = new Image(), o.crossOrigin = "anonymous", o.src = e;
|
|
1228
1228
|
o.onload = () => {
|
|
1229
|
-
|
|
1230
|
-
const r = re == null ? void 0 : re.getImageData(0, 0,
|
|
1231
|
-
|
|
1229
|
+
ue.width = o.width, ue.height = o.height, re == null || re.drawImage(o, 0, 0);
|
|
1230
|
+
const r = re == null ? void 0 : re.getImageData(0, 0, ue.width, ue.height);
|
|
1231
|
+
Tt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
|
|
1232
1232
|
};
|
|
1233
1233
|
} catch (o) {
|
|
1234
1234
|
console.error("Could not determine image transparency. Error => ", o), i(o);
|
|
1235
1235
|
}
|
|
1236
|
-
})),
|
|
1237
|
-
const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north:
|
|
1238
|
-
return t >= d && i <= u && o <=
|
|
1239
|
-
}, Ue = 3,
|
|
1240
|
-
function
|
|
1236
|
+
})), Fe = (e, n) => {
|
|
1237
|
+
const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north: h, south: E } = n;
|
|
1238
|
+
return t >= d && i <= u && o <= h && r >= E;
|
|
1239
|
+
}, Ue = 3, ze = "hasTransparency";
|
|
1240
|
+
function ht(e, n, t, i, o) {
|
|
1241
1241
|
return setTimeout(() => {
|
|
1242
1242
|
var u;
|
|
1243
1243
|
const r = (u = this.layerListInstance.find(
|
|
1244
1244
|
/* eslint-disable */
|
|
1245
|
-
(
|
|
1246
|
-
var E,
|
|
1247
|
-
return ((E =
|
|
1245
|
+
(h) => {
|
|
1246
|
+
var E, C;
|
|
1247
|
+
return ((E = h._imageryProvider._resource) == null ? void 0 : E._url) === ((C = this._resource) == null ? void 0 : C._url);
|
|
1248
1248
|
}
|
|
1249
1249
|
/* eslint-enable */
|
|
1250
|
-
)) == null ? void 0 : u.meta, d = ee(r,
|
|
1251
|
-
this.tileTransparencyCheckedCounter < Ue && !d &&
|
|
1250
|
+
)) == null ? void 0 : u.meta, d = ee(r, ze) === !0;
|
|
1251
|
+
this.tileTransparencyCheckedCounter < Ue && !d && Nr(o == null ? void 0 : o.url, this).then((h) => {
|
|
1252
1252
|
var E;
|
|
1253
1253
|
(E = this.mapViewer.layersManager) == null || E.addMetaToLayer(
|
|
1254
|
-
{ [
|
|
1254
|
+
{ [ze]: h },
|
|
1255
1255
|
/* eslint-disable */
|
|
1256
|
-
(
|
|
1256
|
+
(C) => C._imageryProvider._resource._url === this._resource._url
|
|
1257
1257
|
);
|
|
1258
1258
|
});
|
|
1259
1259
|
}, 0), e(n, t, i, o);
|
|
1260
1260
|
}
|
|
1261
|
-
class
|
|
1261
|
+
class nn extends lt {
|
|
1262
1262
|
constructor(t, i) {
|
|
1263
1263
|
var o;
|
|
1264
1264
|
super(t);
|
|
@@ -1269,10 +1269,10 @@ class Zt extends st {
|
|
|
1269
1269
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1270
1270
|
}
|
|
1271
1271
|
requestImage(t, i, o, r) {
|
|
1272
|
-
return
|
|
1272
|
+
return ht.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
class
|
|
1275
|
+
class rn extends ct {
|
|
1276
1276
|
constructor(t, i) {
|
|
1277
1277
|
var o;
|
|
1278
1278
|
super(t);
|
|
@@ -1283,10 +1283,10 @@ class Jt extends at {
|
|
|
1283
1283
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1284
1284
|
}
|
|
1285
1285
|
requestImage(t, i, o, r) {
|
|
1286
|
-
return
|
|
1286
|
+
return ht.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
class
|
|
1289
|
+
class on extends dt {
|
|
1290
1290
|
constructor(t, i) {
|
|
1291
1291
|
var o;
|
|
1292
1292
|
super(t);
|
|
@@ -1297,11 +1297,11 @@ class Qt extends lt {
|
|
|
1297
1297
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1298
1298
|
}
|
|
1299
1299
|
requestImage(t, i, o, r) {
|
|
1300
|
-
return
|
|
1300
|
+
return ht.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
const
|
|
1304
|
-
class
|
|
1303
|
+
const Br = 1, Fr = -1, _t = "TRANSPARENT_BASE_LAYER";
|
|
1304
|
+
class Hr {
|
|
1305
1305
|
constructor(n, t, i, o) {
|
|
1306
1306
|
Z(this, "mapViewer");
|
|
1307
1307
|
Z(this, "legendsList");
|
|
@@ -1309,9 +1309,9 @@ class Nr {
|
|
|
1309
1309
|
Z(this, "layers");
|
|
1310
1310
|
Z(this, "legendsExtractor");
|
|
1311
1311
|
Z(this, "layerManagerFootprintMetaFieldPath");
|
|
1312
|
-
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 hi(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
|
|
1313
1313
|
const d = Object.keys(r);
|
|
1314
|
-
d.length === 1 && d[0] ===
|
|
1314
|
+
d.length === 1 && d[0] === ze && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
|
|
1315
1315
|
}), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
|
|
1316
1316
|
this.setLegends(), this.markRelevantLayersForExtent(), this.hideNonRelevantLayers();
|
|
1317
1317
|
}), this.mapViewer.imageryLayers.layerMoved.addEventListener(() => {
|
|
@@ -1336,23 +1336,23 @@ class Nr {
|
|
|
1336
1336
|
setBaseMapLayers(n) {
|
|
1337
1337
|
n.baseRasteLayers.sort((i, o) => i.zIndex - o.zIndex).forEach((i, o) => {
|
|
1338
1338
|
this.addRasterLayer(i, o, n.id);
|
|
1339
|
-
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(
|
|
1339
|
+
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(_t), this.addTransparentImageryProvider());
|
|
1340
1340
|
}
|
|
1341
1341
|
addRasterLayer(n, t, i) {
|
|
1342
1342
|
let o;
|
|
1343
1343
|
switch (n.type) {
|
|
1344
1344
|
case "XYZ_LAYER": {
|
|
1345
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1345
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new nn(r, this.mapViewer) : new lt(r);
|
|
1346
1346
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1347
1347
|
break;
|
|
1348
1348
|
}
|
|
1349
1349
|
case "WMS_LAYER": {
|
|
1350
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1350
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new rn(r, this.mapViewer) : new ct(r);
|
|
1351
1351
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1352
1352
|
break;
|
|
1353
1353
|
}
|
|
1354
1354
|
case "WMTS_LAYER": {
|
|
1355
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1355
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new on(r, this.mapViewer) : new dt(r);
|
|
1356
1356
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1357
1357
|
break;
|
|
1358
1358
|
}
|
|
@@ -1424,24 +1424,24 @@ class Nr {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
findLayerByPOI(n, t, i = !0) {
|
|
1426
1426
|
if (this.layerManagerFootprintMetaFieldPath) {
|
|
1427
|
-
const o =
|
|
1427
|
+
const o = Cr(this.mapViewer, n, t);
|
|
1428
1428
|
return this.layers.filter((u) => !ee(u.meta, "parentBasetMapId")).filter((u) => {
|
|
1429
|
-
const
|
|
1430
|
-
return
|
|
1429
|
+
const h = ee(u.meta, this.layerManagerFootprintMetaFieldPath);
|
|
1430
|
+
return h !== void 0 ? Di(o.geometry, {
|
|
1431
1431
|
type: "Feature",
|
|
1432
1432
|
properties: {},
|
|
1433
|
-
geometry:
|
|
1433
|
+
geometry: h
|
|
1434
1434
|
}) && (i ? u.show : !0) : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", u.meta), !1);
|
|
1435
|
-
}).sort((u,
|
|
1436
|
-
var E,
|
|
1437
|
-
return ((E =
|
|
1435
|
+
}).sort((u, h) => {
|
|
1436
|
+
var E, C;
|
|
1437
|
+
return ((E = h.meta) == null ? void 0 : E.zIndex) - ((C = u.meta) == null ? void 0 : C.zIndex);
|
|
1438
1438
|
});
|
|
1439
1439
|
} else
|
|
1440
1440
|
return console.warn("[LayerManager] [findLayerByPOI]layerManagerFootprintMetaFieldPath is not defined"), [];
|
|
1441
1441
|
}
|
|
1442
1442
|
addTransparentImageryProvider() {
|
|
1443
1443
|
const n = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1444
|
-
new
|
|
1444
|
+
new mi({
|
|
1445
1445
|
url: "./assets/img/transparent-tile.png",
|
|
1446
1446
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1447
1447
|
rectangle: new Se(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
|
|
@@ -1450,7 +1450,7 @@ class Nr {
|
|
|
1450
1450
|
0
|
|
1451
1451
|
);
|
|
1452
1452
|
n.meta = {
|
|
1453
|
-
id:
|
|
1453
|
+
id: _t,
|
|
1454
1454
|
skipRelevancyCheck: !0,
|
|
1455
1455
|
parentBasetMapId: "TRANSPARENT_LAYER"
|
|
1456
1456
|
};
|
|
@@ -1465,12 +1465,12 @@ class Nr {
|
|
|
1465
1465
|
return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
|
|
1466
1466
|
}
|
|
1467
1467
|
updateLayersOrder(n, t, i) {
|
|
1468
|
-
const o = t > i ?
|
|
1468
|
+
const o = t > i ? Br : Fr, r = t < i ? t : i, d = t < i ? i : t;
|
|
1469
1469
|
this.layers.forEach((u) => {
|
|
1470
1470
|
var E;
|
|
1471
1471
|
if (!ee(u.meta, "parentBasetMapId")) {
|
|
1472
|
-
const
|
|
1473
|
-
u.meta.zIndex =
|
|
1472
|
+
const C = (E = u.meta) == null ? void 0 : E.zIndex;
|
|
1473
|
+
u.meta.zIndex = C >= r && C <= d && C !== t ? C + o : C === t ? i : C;
|
|
1474
1474
|
}
|
|
1475
1475
|
});
|
|
1476
1476
|
}
|
|
@@ -1484,17 +1484,17 @@ class Nr {
|
|
|
1484
1484
|
try {
|
|
1485
1485
|
const i = this.mapViewer.camera.computeViewRectangle();
|
|
1486
1486
|
for (let o = this.layers.length - 1; o >= 0; o--) {
|
|
1487
|
-
const r = this.layers[o], d = !
|
|
1487
|
+
const r = this.layers[o], d = !rt(i) && !rt(r.rectangle) && Se.intersection(i, r.rectangle);
|
|
1488
1488
|
for (let u = this.layers.length - 1; u >= o; u--) {
|
|
1489
1489
|
if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
|
|
1490
1490
|
r.meta = { ...r.meta, relevantToExtent: !0 };
|
|
1491
1491
|
continue;
|
|
1492
1492
|
}
|
|
1493
|
-
const
|
|
1494
|
-
if (r !==
|
|
1493
|
+
const h = this.layers[u], E = ((t = h.meta) == null ? void 0 : t[ze]) === !0;
|
|
1494
|
+
if (r !== h)
|
|
1495
1495
|
if (d instanceof Se) {
|
|
1496
|
-
if (
|
|
1497
|
-
if (
|
|
1496
|
+
if (Fe(i, r.rectangle))
|
|
1497
|
+
if (Fe(i, h.rectangle) && !E) {
|
|
1498
1498
|
r.meta = {
|
|
1499
1499
|
...r.meta ?? {},
|
|
1500
1500
|
relevantToExtent: !1
|
|
@@ -1505,11 +1505,11 @@ class Nr {
|
|
|
1505
1505
|
...r.meta ?? {},
|
|
1506
1506
|
relevantToExtent: !0
|
|
1507
1507
|
};
|
|
1508
|
-
if (
|
|
1508
|
+
if (Fe(i, h.rectangle) && !E) {
|
|
1509
1509
|
r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
|
|
1510
1510
|
break;
|
|
1511
1511
|
}
|
|
1512
|
-
if (
|
|
1512
|
+
if (Fe(r.rectangle, h.rectangle)) {
|
|
1513
1513
|
if (r.meta = {
|
|
1514
1514
|
...r.meta ?? {},
|
|
1515
1515
|
relevantToExtent: E
|
|
@@ -1531,8 +1531,8 @@ class Nr {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
|
-
const
|
|
1535
|
-
class
|
|
1534
|
+
const Lt = 212, St = 260, Gr = 0;
|
|
1535
|
+
class ms extends pi {
|
|
1536
1536
|
constructor(t, i) {
|
|
1537
1537
|
super(t, i);
|
|
1538
1538
|
Z(this, "layersManager");
|
|
@@ -1545,14 +1545,14 @@ class cs extends ci {
|
|
|
1545
1545
|
this.useOptimizedTileRequests = t;
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
const
|
|
1549
|
-
const e =
|
|
1548
|
+
const sn = Ie(null), Vr = sn.Provider, le = () => {
|
|
1549
|
+
const e = xe(sn);
|
|
1550
1550
|
if (e === null)
|
|
1551
1551
|
throw new Error("map context is null, please check the provider");
|
|
1552
1552
|
return e;
|
|
1553
|
-
},
|
|
1554
|
-
var
|
|
1555
|
-
const n =
|
|
1553
|
+
}, ps = (e) => {
|
|
1554
|
+
var D, U, X, R, z, Q, ie, ge;
|
|
1555
|
+
const n = be(null), [t, i] = A(), [o, r] = A(), [d, u] = A(), [h, E] = A(), [C, L] = A(), [b, P] = A(), [B, $] = A(!1), [q, H] = A(), Y = be(), [K, x] = A(), [W, O] = A([]), [V, ne] = A(), [s, a] = A(!1), y = be(), [c, f] = A(void 0), [m, v] = A(!1), [g, w] = A(), S = {
|
|
1556
1556
|
fullscreenButton: !0,
|
|
1557
1557
|
timeline: !1,
|
|
1558
1558
|
animation: !1,
|
|
@@ -1562,164 +1562,164 @@ const en = Ae(null), Fr = en.Provider, he = () => {
|
|
|
1562
1562
|
homeButton: !1,
|
|
1563
1563
|
sceneModePicker: !1,
|
|
1564
1564
|
...e
|
|
1565
|
-
}, _ = (
|
|
1566
|
-
const ye = t.container,
|
|
1565
|
+
}, _ = (F, k, j, fe, Te) => {
|
|
1566
|
+
const ye = t.container, Re = ye.clientWidth, Ne = ye.clientHeight, De = fe + Te;
|
|
1567
1567
|
return {
|
|
1568
|
-
left: `${
|
|
1569
|
-
top: `${
|
|
1568
|
+
left: `${Re - F < j ? F - (j - (Re - F)) : F}px`,
|
|
1569
|
+
top: `${Ne - k < De ? k - (De - (Ne - k)) : k}px`
|
|
1570
1570
|
};
|
|
1571
|
-
},
|
|
1571
|
+
}, T = me((F) => {
|
|
1572
1572
|
if (n.current !== null) {
|
|
1573
|
-
const
|
|
1574
|
-
a(!1), f(j),
|
|
1573
|
+
const k = n.current.cesiumElement, j = { x: F.offsetX, y: F.offsetY };
|
|
1574
|
+
a(!1), f(j), w(wr(k, j.x, j.y)), a(!0), y.current = F;
|
|
1575
1575
|
}
|
|
1576
1576
|
}, [n]);
|
|
1577
|
-
|
|
1578
|
-
var
|
|
1577
|
+
I(() => {
|
|
1578
|
+
var F;
|
|
1579
1579
|
if (n.current !== null) {
|
|
1580
|
-
const
|
|
1581
|
-
e.imageryContextMenu && (
|
|
1580
|
+
const k = n.current.cesiumElement;
|
|
1581
|
+
e.imageryContextMenu && (k.scene.canvas.removeEventListener("contextmenu", T), k.scene.canvas.addEventListener("contextmenu", T));
|
|
1582
1582
|
}
|
|
1583
|
-
i((
|
|
1584
|
-
}, [n, e.imageryContextMenu]),
|
|
1585
|
-
var
|
|
1586
|
-
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new
|
|
1583
|
+
i((F = n.current) == null ? void 0 : F.cesiumElement);
|
|
1584
|
+
}, [n, e.imageryContextMenu]), I(() => {
|
|
1585
|
+
var F;
|
|
1586
|
+
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new Hr(
|
|
1587
1587
|
t,
|
|
1588
|
-
(
|
|
1588
|
+
(F = e.legends) == null ? void 0 : F.mapLegendsExtractor,
|
|
1589
1589
|
() => {
|
|
1590
|
-
var
|
|
1591
|
-
O((
|
|
1590
|
+
var k;
|
|
1591
|
+
O((k = t.layersManager) == null ? void 0 : k.legendsList);
|
|
1592
1592
|
},
|
|
1593
1593
|
e.layerManagerFootprintMetaFieldPath
|
|
1594
1594
|
));
|
|
1595
|
-
}, [t]),
|
|
1595
|
+
}, [t]), I(() => {
|
|
1596
1596
|
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1);
|
|
1597
|
-
}, [e.useOptimizedTileRequests, t]),
|
|
1598
|
-
|
|
1599
|
-
}, [e.sceneModes]),
|
|
1600
|
-
var
|
|
1601
|
-
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
}, [e.baseMaps, t]),
|
|
1605
|
-
r(e.projection ??
|
|
1606
|
-
}, [e.projection]),
|
|
1607
|
-
|
|
1608
|
-
}, [e.locale]),
|
|
1597
|
+
}, [e.useOptimizedTileRequests, t]), I(() => {
|
|
1598
|
+
x(e.sceneModes ?? [oe.SCENE2D, oe.SCENE3D, oe.COLUMBUS_VIEW]);
|
|
1599
|
+
}, [e.sceneModes]), I(() => {
|
|
1600
|
+
var k, j;
|
|
1601
|
+
ne(e.baseMaps);
|
|
1602
|
+
const F = (k = e.baseMaps) == null ? void 0 : k.maps.find((fe) => fe.isCurrent);
|
|
1603
|
+
F && t && ((j = t.layersManager) == null || j.setBaseMapLayers(F));
|
|
1604
|
+
}, [e.baseMaps, t]), I(() => {
|
|
1605
|
+
r(e.projection ?? he.WGS84);
|
|
1606
|
+
}, [e.projection]), I(() => {
|
|
1607
|
+
H(e.locale);
|
|
1608
|
+
}, [e.locale]), I(() => {
|
|
1609
1609
|
u(e.showMousePosition ?? !0);
|
|
1610
|
-
}, [e.showMousePosition]),
|
|
1610
|
+
}, [e.showMousePosition]), I(() => {
|
|
1611
1611
|
E(e.showZoomLevel ?? !0);
|
|
1612
|
-
}, [e.showZoomLevel]),
|
|
1613
|
-
|
|
1614
|
-
}, [e.showScale]),
|
|
1615
|
-
|
|
1616
|
-
}, [e.showLoadingProgress]),
|
|
1617
|
-
const
|
|
1612
|
+
}, [e.showZoomLevel]), I(() => {
|
|
1613
|
+
L(e.showScale ?? !0);
|
|
1614
|
+
}, [e.showScale]), I(() => {
|
|
1615
|
+
P(e.showLoadingProgress ?? !0);
|
|
1616
|
+
}, [e.showLoadingProgress]), I(() => {
|
|
1617
|
+
const F = () => {
|
|
1618
1618
|
if (t === void 0)
|
|
1619
1619
|
return {
|
|
1620
1620
|
longitude: 0,
|
|
1621
1621
|
latitude: 0,
|
|
1622
1622
|
height: 0
|
|
1623
1623
|
};
|
|
1624
|
-
const
|
|
1624
|
+
const k = () => {
|
|
1625
1625
|
const j = t.camera.positionCartographic;
|
|
1626
1626
|
return {
|
|
1627
|
-
longitude:
|
|
1628
|
-
latitude:
|
|
1627
|
+
longitude: Be(j.longitude),
|
|
1628
|
+
latitude: Be(j.latitude),
|
|
1629
1629
|
height: j.height
|
|
1630
1630
|
};
|
|
1631
1631
|
};
|
|
1632
|
-
if (t.scene.mode ===
|
|
1633
|
-
const j = new
|
|
1632
|
+
if (t.scene.mode === we.SCENE3D) {
|
|
1633
|
+
const j = new Ee(
|
|
1634
1634
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1635
1635
|
t.container.clientWidth / 2,
|
|
1636
1636
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1637
1637
|
t.container.clientHeight / 2
|
|
1638
|
-
), fe = t.scene.camera.getPickRay(j),
|
|
1639
|
-
if (!
|
|
1638
|
+
), fe = t.scene.camera.getPickRay(j), Te = t.scene.globe.pick(fe, t.scene);
|
|
1639
|
+
if (!Te)
|
|
1640
1640
|
return {
|
|
1641
1641
|
longitude: 0,
|
|
1642
1642
|
latitude: 0,
|
|
1643
1643
|
height: 0
|
|
1644
1644
|
};
|
|
1645
|
-
const ye = t.scene.globe.ellipsoid.cartesianToCartographic(
|
|
1645
|
+
const ye = t.scene.globe.ellipsoid.cartesianToCartographic(Te);
|
|
1646
1646
|
return ye !== void 0 ? {
|
|
1647
|
-
longitude:
|
|
1648
|
-
latitude:
|
|
1647
|
+
longitude: Be(ye.longitude),
|
|
1648
|
+
latitude: Be(ye.latitude),
|
|
1649
1649
|
height: t.scene.camera.positionCartographic.height
|
|
1650
|
-
} :
|
|
1650
|
+
} : k();
|
|
1651
1651
|
} else
|
|
1652
|
-
return
|
|
1652
|
+
return k();
|
|
1653
1653
|
};
|
|
1654
1654
|
t && (t.camera.moveEnd.addEventListener(() => {
|
|
1655
|
-
if (t.scene.mode !==
|
|
1656
|
-
const
|
|
1657
|
-
position:
|
|
1658
|
-
direction:
|
|
1659
|
-
up:
|
|
1660
|
-
right:
|
|
1661
|
-
transform:
|
|
1662
|
-
frustum:
|
|
1655
|
+
if (t.scene.mode !== we.MORPHING) {
|
|
1656
|
+
const k = t.camera, j = {
|
|
1657
|
+
position: F(),
|
|
1658
|
+
direction: k.direction.clone(),
|
|
1659
|
+
up: k.up.clone(),
|
|
1660
|
+
right: k.right.clone(),
|
|
1661
|
+
transform: k.transform.clone(),
|
|
1662
|
+
frustum: k.frustum.clone()
|
|
1663
1663
|
};
|
|
1664
1664
|
Y.current = j;
|
|
1665
1665
|
}
|
|
1666
|
-
}),
|
|
1667
|
-
t.scene.globe.tilesLoaded === !0 ?
|
|
1666
|
+
}), b && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
|
|
1667
|
+
t.scene.globe.tilesLoaded === !0 ? $(!1) : $(!0);
|
|
1668
1668
|
}));
|
|
1669
|
-
}, [t]),
|
|
1670
|
-
const
|
|
1669
|
+
}, [t]), I(() => {
|
|
1670
|
+
const F = () => {
|
|
1671
1671
|
if (t && Y.current) {
|
|
1672
|
-
const
|
|
1672
|
+
const k = Y.current;
|
|
1673
1673
|
t.camera.flyTo({
|
|
1674
|
-
destination: pe.fromDegrees(
|
|
1674
|
+
destination: pe.fromDegrees(k.position.longitude, k.position.latitude, k.position.height),
|
|
1675
1675
|
duration: 0
|
|
1676
1676
|
});
|
|
1677
1677
|
}
|
|
1678
1678
|
};
|
|
1679
|
-
return t && t.scene.morphComplete.addEventListener(
|
|
1679
|
+
return t && t.scene.morphComplete.addEventListener(F), () => {
|
|
1680
1680
|
if (t)
|
|
1681
1681
|
try {
|
|
1682
|
-
t.scene.morphComplete.removeEventListener(
|
|
1682
|
+
t.scene.morphComplete.removeEventListener(F);
|
|
1683
1683
|
} catch {
|
|
1684
1684
|
console.error("morphCompleteHandler event not cleaned");
|
|
1685
1685
|
}
|
|
1686
1686
|
};
|
|
1687
|
-
}, [t]),
|
|
1688
|
-
const
|
|
1689
|
-
t &&
|
|
1690
|
-
destination: pe.fromDegrees(
|
|
1687
|
+
}, [t]), I(() => {
|
|
1688
|
+
const F = e.zoom, k = e.center;
|
|
1689
|
+
t && Ve(F) && Pi(k) && t.camera.flyTo({
|
|
1690
|
+
destination: pe.fromDegrees(k[0], k[1], vr(F)),
|
|
1691
1691
|
duration: 0
|
|
1692
1692
|
});
|
|
1693
1693
|
}, [e.zoom, e.center, t]);
|
|
1694
|
-
const
|
|
1695
|
-
/* @__PURE__ */ N(
|
|
1696
|
-
|
|
1694
|
+
const M = me(() => t && Jn(
|
|
1695
|
+
/* @__PURE__ */ N(te, { children: [
|
|
1696
|
+
b === !0 ? B && /* @__PURE__ */ l(On, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(te, {}),
|
|
1697
1697
|
/* @__PURE__ */ N(ae, { className: "sideToolsContainer", children: [
|
|
1698
|
-
/* @__PURE__ */ l(
|
|
1699
|
-
/* @__PURE__ */ l(
|
|
1698
|
+
/* @__PURE__ */ l(Ar, { sceneModes: K, baseMaps: V, locale: q }),
|
|
1699
|
+
/* @__PURE__ */ l(xr, { onClick: () => v(!m) })
|
|
1700
1700
|
] }),
|
|
1701
1701
|
/* @__PURE__ */ N(ae, { className: "toolsContainer", children: [
|
|
1702
|
-
d === !0 ? /* @__PURE__ */ l(
|
|
1703
|
-
|
|
1704
|
-
|
|
1702
|
+
d === !0 ? /* @__PURE__ */ l(Er, { projection: o }) : /* @__PURE__ */ l(te, {}),
|
|
1703
|
+
h === !0 ? /* @__PURE__ */ l(Lr, { locale: q }) : /* @__PURE__ */ l(te, {}),
|
|
1704
|
+
C === !0 ? /* @__PURE__ */ l(Tr, { locale: q }) : /* @__PURE__ */ l(te, {})
|
|
1705
1705
|
] })
|
|
1706
1706
|
] }),
|
|
1707
1707
|
document.querySelector(".cesium-viewer")
|
|
1708
|
-
), [V,
|
|
1709
|
-
return /* @__PURE__ */ l(
|
|
1708
|
+
), [V, q, t, o, K, d, C, m, B]);
|
|
1709
|
+
return /* @__PURE__ */ l(Qn, { className: "viewer", full: !0, ref: n, ...S, children: /* @__PURE__ */ N(Vr, { value: t, children: [
|
|
1710
1710
|
/* @__PURE__ */ l(
|
|
1711
|
-
|
|
1711
|
+
Rr,
|
|
1712
1712
|
{
|
|
1713
|
-
title: (
|
|
1714
|
-
isOpen:
|
|
1715
|
-
toggleSidebar: () => v(!
|
|
1716
|
-
noLegendsText: (
|
|
1717
|
-
legends: ((X = e.legends) == null ? void 0 : X.legendsList) ??
|
|
1713
|
+
title: (D = e.legends) == null ? void 0 : D.title,
|
|
1714
|
+
isOpen: m,
|
|
1715
|
+
toggleSidebar: () => v(!m),
|
|
1716
|
+
noLegendsText: (U = e.legends) == null ? void 0 : U.emptyText,
|
|
1717
|
+
legends: ((X = e.legends) == null ? void 0 : X.legendsList) ?? W,
|
|
1718
1718
|
actionsTexts: (R = e.legends) == null ? void 0 : R.actionsTexts
|
|
1719
1719
|
}
|
|
1720
1720
|
),
|
|
1721
1721
|
e.children,
|
|
1722
|
-
|
|
1722
|
+
M(),
|
|
1723
1723
|
e.imageryContextMenu && s && c && g && ve.cloneElement(e.imageryContextMenu, {
|
|
1724
1724
|
data: (z = t == null ? void 0 : t.layersManager) == null ? void 0 : z.findLayerByPOI(c.x, c.y, !1),
|
|
1725
1725
|
position: {
|
|
@@ -1730,13 +1730,13 @@ const en = Ae(null), Fr = en.Provider, he = () => {
|
|
|
1730
1730
|
style: _(
|
|
1731
1731
|
c.x,
|
|
1732
1732
|
c.y,
|
|
1733
|
-
((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ??
|
|
1734
|
-
((
|
|
1735
|
-
((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ??
|
|
1733
|
+
((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ?? St,
|
|
1734
|
+
((ie = e.imageryContextMenuSize) == null ? void 0 : ie.height) ?? Lt,
|
|
1735
|
+
((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ?? Gr
|
|
1736
1736
|
),
|
|
1737
1737
|
size: e.imageryContextMenuSize ?? {
|
|
1738
|
-
height:
|
|
1739
|
-
width:
|
|
1738
|
+
height: Lt,
|
|
1739
|
+
width: St
|
|
1740
1740
|
},
|
|
1741
1741
|
handleClose: () => {
|
|
1742
1742
|
a(!s);
|
|
@@ -1744,66 +1744,66 @@ const en = Ae(null), Fr = en.Provider, he = () => {
|
|
|
1744
1744
|
contextEvt: y.current
|
|
1745
1745
|
})
|
|
1746
1746
|
] }) });
|
|
1747
|
-
},
|
|
1748
|
-
const n =
|
|
1747
|
+
}, zr = 0, gs = (e) => {
|
|
1748
|
+
const n = le();
|
|
1749
1749
|
return /* @__PURE__ */ l(
|
|
1750
|
-
|
|
1750
|
+
ei,
|
|
1751
1751
|
{
|
|
1752
1752
|
...e,
|
|
1753
1753
|
onReady: (t) => {
|
|
1754
1754
|
e.isZoomTo === !0 && n.zoomTo(t);
|
|
1755
1755
|
const i = n.scene;
|
|
1756
1756
|
i.globe.depthTestAgainstTerrain = !0;
|
|
1757
|
-
const o =
|
|
1757
|
+
const o = Oe.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? zr;
|
|
1758
1758
|
if (r) {
|
|
1759
|
-
const d = pe.fromRadians(o.longitude, o.latitude, o.height), u = pe.fromRadians(o.longitude, o.latitude, o.height + r),
|
|
1760
|
-
t.modelMatrix =
|
|
1759
|
+
const d = pe.fromRadians(o.longitude, o.latitude, o.height), u = pe.fromRadians(o.longitude, o.latitude, o.height + r), h = pe.subtract(u, d, new pe());
|
|
1760
|
+
t.modelMatrix = gi.fromTranslation(h);
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
1763
|
}
|
|
1764
1764
|
);
|
|
1765
|
-
},
|
|
1766
|
-
Math.abs(e[0]) ===
|
|
1767
|
-
},
|
|
1765
|
+
}, Mt = 180, Pt = 1e-3, Dt = -1, At = (e) => Math.abs(e) / e, It = (e) => {
|
|
1766
|
+
Math.abs(e[0]) === Mt && (e[0] += Dt * At(e[0]) * Pt), Math.abs(e[1]) === Mt / 2 && (e[1] += Dt * At(e[1]) * Pt);
|
|
1767
|
+
}, xt = (e) => {
|
|
1768
1768
|
switch (e.type) {
|
|
1769
1769
|
case "LineString":
|
|
1770
1770
|
e.coordinates.forEach((n) => {
|
|
1771
|
-
|
|
1771
|
+
It(n);
|
|
1772
1772
|
});
|
|
1773
1773
|
break;
|
|
1774
1774
|
case "Polygon":
|
|
1775
1775
|
e.coordinates.forEach((n) => {
|
|
1776
1776
|
n.forEach((t) => {
|
|
1777
|
-
|
|
1777
|
+
It(t);
|
|
1778
1778
|
});
|
|
1779
1779
|
});
|
|
1780
1780
|
break;
|
|
1781
1781
|
}
|
|
1782
|
-
},
|
|
1782
|
+
}, fs = (e) => {
|
|
1783
1783
|
const { data: n, ...t } = e;
|
|
1784
1784
|
return n && (typeof n.features < "u" ? n.features.forEach((i) => {
|
|
1785
|
-
|
|
1786
|
-
}) :
|
|
1787
|
-
},
|
|
1788
|
-
const { meta: n, ...t } = e, i =
|
|
1789
|
-
return
|
|
1785
|
+
xt(i.geometry);
|
|
1786
|
+
}) : xt(n)), /* @__PURE__ */ l(ti, { data: n, ...t });
|
|
1787
|
+
}, Ke = (e) => {
|
|
1788
|
+
const { meta: n, ...t } = e, i = le();
|
|
1789
|
+
return dn(() => {
|
|
1790
1790
|
var o;
|
|
1791
1791
|
(o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
|
|
1792
|
-
}, [n, i]), /* @__PURE__ */ l(
|
|
1793
|
-
},
|
|
1794
|
-
const { options: n, ...t } = e, i =
|
|
1795
|
-
return /* @__PURE__ */ l(
|
|
1796
|
-
},
|
|
1797
|
-
const { options: n, ...t } = e, i =
|
|
1798
|
-
return /* @__PURE__ */ l(
|
|
1799
|
-
},
|
|
1800
|
-
const { options: n, ...t } = e, i =
|
|
1801
|
-
return /* @__PURE__ */ l(
|
|
1802
|
-
},
|
|
1792
|
+
}, [n, i]), /* @__PURE__ */ l(ni, { ...t });
|
|
1793
|
+
}, ys = (e) => {
|
|
1794
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new rn(n, i) : new ct(n);
|
|
1795
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
|
|
1796
|
+
}, vs = (e) => {
|
|
1797
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new on(n, i) : new dt(n);
|
|
1798
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
|
|
1799
|
+
}, Es = (e) => {
|
|
1800
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new nn(n, i) : new lt(n);
|
|
1801
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
|
|
1802
|
+
}, Cs = (e) => {
|
|
1803
1803
|
const { options: n, ...t } = e;
|
|
1804
|
-
return /* @__PURE__ */ l(
|
|
1805
|
-
},
|
|
1806
|
-
var
|
|
1804
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: new fi(n) });
|
|
1805
|
+
}, $r = (e) => /* @__PURE__ */ l(ii, { ...e }), ws = (e) => /* @__PURE__ */ l($t, { ...e }), Wr = (e) => /* @__PURE__ */ l($t, { ...e }), Ur = (e) => /* @__PURE__ */ l(ri, { ...e }), Kr = (e) => /* @__PURE__ */ l(oi, { ...e }), jr = (e) => /* @__PURE__ */ l(si, { ...e }), qr = (e) => /* @__PURE__ */ l(ai, { ...e });
|
|
1806
|
+
var Ce = function() {
|
|
1807
1807
|
var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
|
|
1808
1808
|
function i(s, a = new p.Color(1, 1, 0, 0.5), y = new p.Color(1, 1, 1, 1)) {
|
|
1809
1809
|
this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
|
|
@@ -1815,27 +1815,27 @@ var Ee = function() {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
i.prototype.initialiseHandlers = function() {
|
|
1817
1817
|
var s = this._scene, a = this, y = new p.ScreenSpaceEventHandler(s.canvas);
|
|
1818
|
-
function c(
|
|
1818
|
+
function c(m, v) {
|
|
1819
1819
|
if (a._handlersMuted != !0) {
|
|
1820
1820
|
var g = s.pick(v);
|
|
1821
|
-
g && g.primitive && g.primitive[
|
|
1821
|
+
g && g.primitive && g.primitive[m] && g.primitive[m](v);
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
|
-
y.setInputAction(function(
|
|
1825
|
-
c("leftClick",
|
|
1826
|
-
}, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(
|
|
1827
|
-
c("leftDoubleClick",
|
|
1824
|
+
y.setInputAction(function(m) {
|
|
1825
|
+
c("leftClick", m.position);
|
|
1826
|
+
}, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(m) {
|
|
1827
|
+
c("leftDoubleClick", m.position);
|
|
1828
1828
|
}, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
1829
1829
|
var f;
|
|
1830
|
-
y.setInputAction(function(
|
|
1830
|
+
y.setInputAction(function(m) {
|
|
1831
1831
|
if (a._handlersMuted != !0) {
|
|
1832
|
-
var v = s.pick(
|
|
1833
|
-
f && (!v || f != v.primitive) && (!(f.isDestroyed && f.isDestroyed()) && f.mouseOut(
|
|
1832
|
+
var v = s.pick(m.endPosition);
|
|
1833
|
+
f && (!v || f != v.primitive) && (!(f.isDestroyed && f.isDestroyed()) && f.mouseOut(m.endPosition), f = null), v && v.primitive && (v = v.primitive, v.mouseOut && (f = v), v.mouseMove && v.mouseMove(m.endPosition));
|
|
1834
1834
|
}
|
|
1835
|
-
}, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(
|
|
1836
|
-
c("leftUp",
|
|
1837
|
-
}, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(
|
|
1838
|
-
c("leftDown",
|
|
1835
|
+
}, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(m) {
|
|
1836
|
+
c("leftUp", m.position);
|
|
1837
|
+
}, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(m) {
|
|
1838
|
+
c("leftDown", m.position);
|
|
1839
1839
|
}, p.ScreenSpaceEventType.LEFT_DOWN);
|
|
1840
1840
|
}, i.prototype.setListener = function(s, a, y) {
|
|
1841
1841
|
s[a] = y;
|
|
@@ -1876,9 +1876,9 @@ var Ee = function() {
|
|
|
1876
1876
|
}),
|
|
1877
1877
|
material: t,
|
|
1878
1878
|
granularity: Math.PI / 180
|
|
1879
|
-
}), d = O(o, {}), u = O(o, {}),
|
|
1879
|
+
}), d = O(o, {}), u = O(o, {}), h = O(o, {}), E = O(r, {
|
|
1880
1880
|
rotation: 0
|
|
1881
|
-
}),
|
|
1881
|
+
}), C = O(o, {
|
|
1882
1882
|
width: 5,
|
|
1883
1883
|
geodesic: !0,
|
|
1884
1884
|
granularity: 1e4,
|
|
@@ -1886,11 +1886,11 @@ var Ee = function() {
|
|
|
1886
1886
|
aboveGround: !1
|
|
1887
1887
|
}),
|
|
1888
1888
|
material: t
|
|
1889
|
-
}),
|
|
1889
|
+
}), L = function() {
|
|
1890
1890
|
function s() {
|
|
1891
1891
|
}
|
|
1892
1892
|
return s.prototype.initialiseOptions = function(a) {
|
|
1893
|
-
|
|
1893
|
+
W(this, a), this._ellipsoid = void 0, this._granularity = void 0, this._height = void 0, this._textureRotationAngle = void 0, this._id = void 0, this._createPrimitive = !0, this._primitive = void 0, this._outlinePolygon = void 0;
|
|
1894
1894
|
}, s.prototype.setAttribute = function(a, y) {
|
|
1895
1895
|
this[a] = y, this._createPrimitive = !0;
|
|
1896
1896
|
}, s.prototype.getAttribute = function(a) {
|
|
@@ -1935,8 +1935,8 @@ var Ee = function() {
|
|
|
1935
1935
|
})
|
|
1936
1936
|
}));
|
|
1937
1937
|
}
|
|
1938
|
-
var
|
|
1939
|
-
|
|
1938
|
+
var m = this._primitive;
|
|
1939
|
+
m.appearance.material = this.material, m.debugShowBoundingVolume = this.debugShowBoundingVolume, m.update(a, y, c), this._outlinePolygon && this._outlinePolygon.update(a, y, c);
|
|
1940
1940
|
}
|
|
1941
1941
|
}, s.prototype.isDestroyed = function() {
|
|
1942
1942
|
return !1;
|
|
@@ -1952,7 +1952,7 @@ var Ee = function() {
|
|
|
1952
1952
|
throw new p.DeveloperError("Extent is required");
|
|
1953
1953
|
a = O(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
|
|
1954
1954
|
}
|
|
1955
|
-
return s.prototype = new
|
|
1955
|
+
return s.prototype = new L(), s.prototype.setExtent = function(a) {
|
|
1956
1956
|
this.setAttribute("extent", a);
|
|
1957
1957
|
}, s.prototype.getExtent = function() {
|
|
1958
1958
|
return this.getAttribute("extent");
|
|
@@ -1975,7 +1975,7 @@ var Ee = function() {
|
|
|
1975
1975
|
function s(a) {
|
|
1976
1976
|
a = O(a, r), this.initialiseOptions(a), this.isPolygon = !0;
|
|
1977
1977
|
}
|
|
1978
|
-
return s.prototype = new
|
|
1978
|
+
return s.prototype = new L(), s.prototype.setPositions = function(a) {
|
|
1979
1979
|
this.setAttribute("positions", a);
|
|
1980
1980
|
}, s.prototype.getPositions = function() {
|
|
1981
1981
|
return this.getAttribute("positions");
|
|
@@ -2000,7 +2000,7 @@ var Ee = function() {
|
|
|
2000
2000
|
throw new p.DeveloperError("Center and radius are required");
|
|
2001
2001
|
a = O(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
|
|
2002
2002
|
}
|
|
2003
|
-
return s.prototype = new
|
|
2003
|
+
return s.prototype = new L(), s.prototype.setCenter = function(a) {
|
|
2004
2004
|
this.setAttribute("center", a);
|
|
2005
2005
|
}, s.prototype.setRadius = function(a) {
|
|
2006
2006
|
this.setAttribute("radius", Math.max(0.1, a));
|
|
@@ -2031,7 +2031,7 @@ var Ee = function() {
|
|
|
2031
2031
|
throw new p.DeveloperError("Center and semi major and semi minor axis are required");
|
|
2032
2032
|
a = O(a, E), this.initialiseOptions(a);
|
|
2033
2033
|
}
|
|
2034
|
-
return s.prototype = new
|
|
2034
|
+
return s.prototype = new L(), s.prototype.setCenter = function(a) {
|
|
2035
2035
|
this.setAttribute("center", a);
|
|
2036
2036
|
}, s.prototype.setSemiMajorAxis = function(a) {
|
|
2037
2037
|
a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
|
|
@@ -2070,9 +2070,9 @@ var Ee = function() {
|
|
|
2070
2070
|
}, s;
|
|
2071
2071
|
}(), i.PolylinePrimitive = function() {
|
|
2072
2072
|
function s(a) {
|
|
2073
|
-
a = O(a,
|
|
2073
|
+
a = O(a, C), this.initialiseOptions(a);
|
|
2074
2074
|
}
|
|
2075
|
-
return s.prototype = new
|
|
2075
|
+
return s.prototype = new L(), s.prototype.setPositions = function(a) {
|
|
2076
2076
|
this.setAttribute("positions", a);
|
|
2077
2077
|
}, s.prototype.setWidth = function(a) {
|
|
2078
2078
|
this.setAttribute("width", a);
|
|
@@ -2095,15 +2095,15 @@ var Ee = function() {
|
|
|
2095
2095
|
});
|
|
2096
2096
|
}, s;
|
|
2097
2097
|
}();
|
|
2098
|
-
var
|
|
2098
|
+
var b = {
|
|
2099
2099
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2100
2100
|
shiftX: 0,
|
|
2101
2101
|
shiftY: 0
|
|
2102
|
-
},
|
|
2102
|
+
}, P = {
|
|
2103
2103
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2104
2104
|
shiftX: 0,
|
|
2105
2105
|
shiftY: 0
|
|
2106
|
-
},
|
|
2106
|
+
}, B = {
|
|
2107
2107
|
iconUrl: "./assets/img/dragIconLight.png",
|
|
2108
2108
|
shiftX: 0,
|
|
2109
2109
|
shiftY: 0
|
|
@@ -2112,7 +2112,7 @@ var Ee = function() {
|
|
|
2112
2112
|
var c = new i.BillboardGroup(this, a);
|
|
2113
2113
|
return c.addBillboards(s, y), c;
|
|
2114
2114
|
}, i.BillboardGroup = function(s, a) {
|
|
2115
|
-
this._drawHelper = s, this._scene = s._scene, this._options = O(a,
|
|
2115
|
+
this._drawHelper = s, this._scene = s._scene, this._options = O(a, b);
|
|
2116
2116
|
var y = new p.BillboardCollection();
|
|
2117
2117
|
this._scene.primitives.add(y), this._billboards = y, this._orderedBillboards = [];
|
|
2118
2118
|
}, i.BillboardGroup.prototype.createBillboard = function(s, a) {
|
|
@@ -2128,33 +2128,33 @@ var Ee = function() {
|
|
|
2128
2128
|
color: n
|
|
2129
2129
|
});
|
|
2130
2130
|
if (a) {
|
|
2131
|
-
let
|
|
2131
|
+
let m = function(g) {
|
|
2132
2132
|
f.enableRotate = g;
|
|
2133
2133
|
}, v = function() {
|
|
2134
|
-
for (var g = 0,
|
|
2134
|
+
for (var g = 0, w = c._orderedBillboards.length; g < w && c._orderedBillboards[g] != y; ++g)
|
|
2135
2135
|
;
|
|
2136
2136
|
return g;
|
|
2137
2137
|
};
|
|
2138
2138
|
var c = this, f = this._scene.screenSpaceCameraController;
|
|
2139
2139
|
if (a.dragHandlers) {
|
|
2140
2140
|
var c = this;
|
|
2141
|
-
V(y, "leftDown", function(
|
|
2142
|
-
function S(
|
|
2143
|
-
y.position =
|
|
2144
|
-
for (var
|
|
2141
|
+
V(y, "leftDown", function(w) {
|
|
2142
|
+
function S(M) {
|
|
2143
|
+
y.position = M;
|
|
2144
|
+
for (var D = 0, U = c._orderedBillboards.length; D < U && c._orderedBillboards[D] != y; ++D)
|
|
2145
2145
|
;
|
|
2146
|
-
a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(),
|
|
2146
|
+
a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), M);
|
|
2147
2147
|
}
|
|
2148
|
-
function _(
|
|
2149
|
-
|
|
2148
|
+
function _(M) {
|
|
2149
|
+
T.destroy(), m(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), M);
|
|
2150
2150
|
}
|
|
2151
|
-
var
|
|
2152
|
-
|
|
2153
|
-
var
|
|
2154
|
-
|
|
2155
|
-
}, p.ScreenSpaceEventType.MOUSE_MOVE),
|
|
2156
|
-
_(c._scene.camera.pickEllipsoid(
|
|
2157
|
-
}, p.ScreenSpaceEventType.LEFT_UP),
|
|
2151
|
+
var T = new p.ScreenSpaceEventHandler(c._scene.canvas);
|
|
2152
|
+
T.setInputAction(function(M) {
|
|
2153
|
+
var D = c._scene.camera.pickEllipsoid(M.endPosition, e);
|
|
2154
|
+
D ? S(D) : _(D);
|
|
2155
|
+
}, p.ScreenSpaceEventType.MOUSE_MOVE), T.setInputAction(function(M) {
|
|
2156
|
+
_(c._scene.camera.pickEllipsoid(M.position, e));
|
|
2157
|
+
}, p.ScreenSpaceEventType.LEFT_UP), m(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(w, e));
|
|
2158
2158
|
});
|
|
2159
2159
|
}
|
|
2160
2160
|
a.onDoubleClick && V(y, "leftDoubleClick", function(g) {
|
|
@@ -2189,69 +2189,69 @@ var Ee = function() {
|
|
|
2189
2189
|
}, i.BillboardGroup.prototype.setOnTop = function() {
|
|
2190
2190
|
this._scene.primitives.raiseToTop(this._billboards);
|
|
2191
2191
|
}, i.prototype.startDrawingMarker = function(a) {
|
|
2192
|
-
var a = O(a,
|
|
2192
|
+
var a = O(a, b);
|
|
2193
2193
|
this.startDrawing(function() {
|
|
2194
|
-
|
|
2194
|
+
m.remove(), v.destroy(), f.setVisible(!1);
|
|
2195
2195
|
});
|
|
2196
2196
|
var y = this, c = this._scene;
|
|
2197
2197
|
c.primitives;
|
|
2198
|
-
var f = this._tooltip,
|
|
2198
|
+
var f = this._tooltip, m = new i.BillboardGroup(this, a), v = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2199
2199
|
v.setInputAction(function(g) {
|
|
2200
2200
|
if (g.position != null) {
|
|
2201
|
-
var
|
|
2202
|
-
|
|
2201
|
+
var w = c.camera.pickEllipsoid(g.position, e);
|
|
2202
|
+
w && (m.addBillboard(w), y.stopDrawing(), a.callback(w));
|
|
2203
2203
|
}
|
|
2204
2204
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(g) {
|
|
2205
|
-
var
|
|
2206
|
-
if (
|
|
2207
|
-
var S = c.camera.pickEllipsoid(
|
|
2205
|
+
var w = g.endPosition;
|
|
2206
|
+
if (w != null) {
|
|
2207
|
+
var S = c.camera.pickEllipsoid(w, e);
|
|
2208
2208
|
S ? f.showAt(
|
|
2209
|
-
|
|
2210
|
-
"<p>Click to add your marker. Position is: </p>" +
|
|
2211
|
-
) : f.showAt(
|
|
2209
|
+
w,
|
|
2210
|
+
"<p>Click to add your marker. Position is: </p>" + K(e.cartesianToCartographic(S))
|
|
2211
|
+
) : f.showAt(w, "<p>Click on the globe to add your marker.</p>");
|
|
2212
2212
|
}
|
|
2213
2213
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2214
2214
|
}, i.prototype.startDrawingPolygon = function(a) {
|
|
2215
2215
|
var a = O(a, r);
|
|
2216
2216
|
this.startDrawingPolyshape(!0, a);
|
|
2217
2217
|
}, i.prototype.startDrawingPolyline = function(a) {
|
|
2218
|
-
var a = O(a,
|
|
2218
|
+
var a = O(a, C);
|
|
2219
2219
|
this.startDrawingPolyshape(!1, a);
|
|
2220
2220
|
}, i.prototype.startDrawingPolyshape = function(s, a) {
|
|
2221
2221
|
this.startDrawing(function() {
|
|
2222
|
-
f.remove(g), S.remove(), _.destroy(),
|
|
2222
|
+
f.remove(g), S.remove(), _.destroy(), m.setVisible(!1), H(c);
|
|
2223
2223
|
});
|
|
2224
|
-
var y = this, c = this._scene, f = c.primitives,
|
|
2225
|
-
s ? g = new
|
|
2226
|
-
var
|
|
2227
|
-
|
|
2228
|
-
if (
|
|
2229
|
-
var
|
|
2230
|
-
|
|
2224
|
+
var y = this, c = this._scene, f = c.primitives, m = this._tooltip, v = s ? 3 : 2, g;
|
|
2225
|
+
s ? g = new Ce.PolygonPrimitive(a) : g = new Ce.PolylinePrimitive(a), g.asynchronous = !1, f.add(g);
|
|
2226
|
+
var w = [], S = new i.BillboardGroup(this, b), _ = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2227
|
+
q(c), _.setInputAction(function(T) {
|
|
2228
|
+
if (T.position != null) {
|
|
2229
|
+
var M = c.camera.pickEllipsoid(T.position, e);
|
|
2230
|
+
M && (w.length == 0 && (w.push(M.clone()), S.addBillboard(w[0])), w.length >= v && (g.positions = w, g._createPrimitive = !0), w.push(M), S.addBillboard(M));
|
|
2231
2231
|
}
|
|
2232
|
-
}, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(
|
|
2233
|
-
var
|
|
2234
|
-
if (
|
|
2235
|
-
if (
|
|
2236
|
-
|
|
2232
|
+
}, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(T) {
|
|
2233
|
+
var M = T.endPosition;
|
|
2234
|
+
if (M != null)
|
|
2235
|
+
if (w.length == 0)
|
|
2236
|
+
m.showAt(M, "<p>Click to add first point</p>");
|
|
2237
2237
|
else {
|
|
2238
|
-
var
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
"<p>Click to add new point (" +
|
|
2238
|
+
var D = c.camera.pickEllipsoid(M, e);
|
|
2239
|
+
D && (w.pop(), D.y += 1 + Math.random(), w.push(D), w.length >= v && (g.positions = w, g._createPrimitive = !0), S.getBillboard(w.length - 1).position = D, m.showAt(
|
|
2240
|
+
M,
|
|
2241
|
+
"<p>Click to add new point (" + w.length + ")</p>" + (w.length > v ? "<p>Double click to finish drawing</p>" : "")
|
|
2242
2242
|
));
|
|
2243
2243
|
}
|
|
2244
|
-
}, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(
|
|
2245
|
-
var
|
|
2246
|
-
if (
|
|
2247
|
-
if (
|
|
2244
|
+
}, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(T) {
|
|
2245
|
+
var M = T.position;
|
|
2246
|
+
if (M != null) {
|
|
2247
|
+
if (w.length < v + 2)
|
|
2248
2248
|
return;
|
|
2249
|
-
var
|
|
2250
|
-
|
|
2249
|
+
var D = c.camera.pickEllipsoid(M, e);
|
|
2250
|
+
D && (H(c), y.stopDrawing(), typeof a.callback == "function" && (w.length - 1, a.callback(w)));
|
|
2251
2251
|
}
|
|
2252
2252
|
}, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2253
2253
|
};
|
|
2254
|
-
function
|
|
2254
|
+
function $(s) {
|
|
2255
2255
|
return e.cartographicArrayToCartesianArray([
|
|
2256
2256
|
p.Rectangle.northwest(s),
|
|
2257
2257
|
p.Rectangle.northeast(s),
|
|
@@ -2259,58 +2259,58 @@ var Ee = function() {
|
|
|
2259
2259
|
p.Rectangle.southwest(s)
|
|
2260
2260
|
]);
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function q(s) {
|
|
2263
2263
|
s && (s.canvas.style.cursor = "crosshair");
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function H(s) {
|
|
2266
2266
|
s && (s.canvas.style.cursor = "");
|
|
2267
2267
|
}
|
|
2268
2268
|
i.prototype.startDrawingExtent = function(a) {
|
|
2269
2269
|
var a = O(a, r);
|
|
2270
2270
|
this.startDrawing(function() {
|
|
2271
|
-
g != null && f.remove(g),
|
|
2271
|
+
g != null && f.remove(g), w != null && w.remove(), S.destroy(), m.setVisible(!1), H(c);
|
|
2272
2272
|
});
|
|
2273
|
-
var y = this, c = this._scene, f = this._scene.primitives,
|
|
2274
|
-
|
|
2275
|
-
function _(
|
|
2276
|
-
g == null && (g = new
|
|
2277
|
-
extent:
|
|
2273
|
+
var y = this, c = this._scene, f = this._scene.primitives, m = this._tooltip, v = null, g = null, w = null, S = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2274
|
+
q(c);
|
|
2275
|
+
function _(T) {
|
|
2276
|
+
g == null && (g = new Ce.ExtentPrimitive({
|
|
2277
|
+
extent: T,
|
|
2278
2278
|
material: a.material
|
|
2279
|
-
}), g.asynchronous = !1, f.add(g)), g.setExtent(
|
|
2280
|
-
var
|
|
2281
|
-
|
|
2279
|
+
}), g.asynchronous = !1, f.add(g)), g.setExtent(T);
|
|
2280
|
+
var M = $(T);
|
|
2281
|
+
w == null ? (w = new i.BillboardGroup(y, b), w.addBillboards(M)) : w.updateBillboardsPositions(M);
|
|
2282
2282
|
}
|
|
2283
|
-
S.setInputAction(function(
|
|
2284
|
-
if (
|
|
2285
|
-
var
|
|
2286
|
-
if (
|
|
2283
|
+
S.setInputAction(function(T) {
|
|
2284
|
+
if (T.position != null) {
|
|
2285
|
+
var M = c.camera.pickEllipsoid(T.position, e);
|
|
2286
|
+
if (M)
|
|
2287
2287
|
if (g == null) {
|
|
2288
|
-
v = e.cartesianToCartographic(
|
|
2289
|
-
var
|
|
2290
|
-
_(
|
|
2288
|
+
v = e.cartesianToCartographic(M);
|
|
2289
|
+
var D = Y(v, v);
|
|
2290
|
+
_(D);
|
|
2291
2291
|
} else
|
|
2292
|
-
y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(
|
|
2292
|
+
y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(M)));
|
|
2293
2293
|
}
|
|
2294
|
-
}, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(
|
|
2295
|
-
var
|
|
2296
|
-
if (
|
|
2294
|
+
}, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(T) {
|
|
2295
|
+
var M = T.endPosition;
|
|
2296
|
+
if (M != null)
|
|
2297
2297
|
if (g == null)
|
|
2298
|
-
|
|
2298
|
+
m.showAt(M, "<p>Click to start drawing rectangle</p>");
|
|
2299
2299
|
else {
|
|
2300
|
-
var
|
|
2301
|
-
if (
|
|
2302
|
-
var
|
|
2303
|
-
_(
|
|
2300
|
+
var D = c.camera.pickEllipsoid(M, e);
|
|
2301
|
+
if (D) {
|
|
2302
|
+
var U = Y(v, e.cartesianToCartographic(D));
|
|
2303
|
+
_(U), m.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2307
2307
|
}, i.prototype.startDrawingCircle = function(a) {
|
|
2308
2308
|
var a = O(a, r);
|
|
2309
2309
|
this.startDrawing(function() {
|
|
2310
|
-
v != null && f.remove(v), g.remove(),
|
|
2310
|
+
v != null && f.remove(v), g.remove(), w.destroy(), m.setVisible(!1);
|
|
2311
2311
|
});
|
|
2312
|
-
var y = this, c = this._scene, f = this._scene.primitives,
|
|
2313
|
-
|
|
2312
|
+
var y = this, c = this._scene, f = this._scene.primitives, m = this._tooltip, v = null, g = null, w = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2313
|
+
w.setInputAction(function(S) {
|
|
2314
2314
|
if (S.position != null) {
|
|
2315
2315
|
var _ = c.camera.pickEllipsoid(S.position, e);
|
|
2316
2316
|
_ && (v == null ? (v = new i.CirclePrimitive({
|
|
@@ -2318,16 +2318,16 @@ var Ee = function() {
|
|
|
2318
2318
|
radius: 0,
|
|
2319
2319
|
asynchronous: !1,
|
|
2320
2320
|
material: a.material
|
|
2321
|
-
}), f.add(v), g = new i.BillboardGroup(y,
|
|
2321
|
+
}), f.add(v), g = new i.BillboardGroup(y, b), g.addBillboards([_])) : (typeof a.callback == "function" && a.callback(v.getCenter(), v.getRadius()), y.stopDrawing()));
|
|
2322
2322
|
}
|
|
2323
|
-
}, p.ScreenSpaceEventType.LEFT_DOWN),
|
|
2323
|
+
}, p.ScreenSpaceEventType.LEFT_DOWN), w.setInputAction(function(S) {
|
|
2324
2324
|
var _ = S.endPosition;
|
|
2325
2325
|
if (_ != null)
|
|
2326
2326
|
if (v == null)
|
|
2327
|
-
|
|
2327
|
+
m.showAt(_, "<p>Click to start drawing the circle</p>");
|
|
2328
2328
|
else {
|
|
2329
|
-
var
|
|
2330
|
-
|
|
2329
|
+
var T = c.camera.pickEllipsoid(_, e);
|
|
2330
|
+
T && (v.setRadius(p.Cartesian3.distance(v.getCenter(), T)), g.updateBillboardsPositions(T), m.showAt(_, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
|
|
2331
2331
|
}
|
|
2332
2332
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2333
2333
|
}, i.prototype.enhancePrimitives = function() {
|
|
@@ -2337,24 +2337,24 @@ var Ee = function() {
|
|
|
2337
2337
|
return;
|
|
2338
2338
|
this._editable = !0;
|
|
2339
2339
|
var c = this, f = this;
|
|
2340
|
-
function
|
|
2340
|
+
function m(v) {
|
|
2341
2341
|
s._scene.screenSpaceCameraController.enableRotate = v;
|
|
2342
2342
|
}
|
|
2343
2343
|
V(c, "leftDown", function(v) {
|
|
2344
2344
|
function g(_) {
|
|
2345
2345
|
c.position = _, f.executeListeners({ name: "drag", positions: _ });
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2348
|
-
S.destroy(),
|
|
2347
|
+
function w(_) {
|
|
2348
|
+
S.destroy(), m(!0), f.executeListeners({ name: "dragEnd", positions: _ });
|
|
2349
2349
|
}
|
|
2350
2350
|
var S = new p.ScreenSpaceEventHandler(s._scene.canvas);
|
|
2351
2351
|
S.setInputAction(function(_) {
|
|
2352
|
-
var
|
|
2353
|
-
|
|
2352
|
+
var T = s._scene.camera.pickEllipsoid(_.endPosition, e);
|
|
2353
|
+
T ? g(T) : w(T);
|
|
2354
2354
|
}, p.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(_) {
|
|
2355
|
-
|
|
2356
|
-
}, p.ScreenSpaceEventType.LEFT_UP),
|
|
2357
|
-
}),
|
|
2355
|
+
w(s._scene.camera.pickEllipsoid(_.position, e));
|
|
2356
|
+
}, p.ScreenSpaceEventType.LEFT_UP), m(!1);
|
|
2357
|
+
}), ne(c);
|
|
2358
2358
|
};
|
|
2359
2359
|
function a(c) {
|
|
2360
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));
|
|
@@ -2363,18 +2363,18 @@ var Ee = function() {
|
|
|
2363
2363
|
if (this._editMode != c)
|
|
2364
2364
|
if (s.disableAllHighlights(), c) {
|
|
2365
2365
|
s.setEdited(this);
|
|
2366
|
-
var f = s._scene,
|
|
2366
|
+
var f = s._scene, m = this;
|
|
2367
2367
|
if (this._markers == null) {
|
|
2368
|
-
let
|
|
2368
|
+
let D = function(R, z) {
|
|
2369
2369
|
var Q = R - 1 < 0 ? z.length - 1 : R - 1;
|
|
2370
2370
|
Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q)), Q = R, Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q));
|
|
2371
|
-
},
|
|
2372
|
-
|
|
2371
|
+
}, U = function() {
|
|
2372
|
+
m.executeListeners({
|
|
2373
2373
|
name: "onEdited",
|
|
2374
|
-
positions:
|
|
2374
|
+
positions: m.positions
|
|
2375
2375
|
});
|
|
2376
2376
|
}, X = function(R) {
|
|
2377
|
-
var z =
|
|
2377
|
+
var z = m.positions;
|
|
2378
2378
|
return e.cartographicToCartesian(
|
|
2379
2379
|
new p.EllipsoidGeodesic(
|
|
2380
2380
|
e.cartesianToCartographic(z[R]),
|
|
@@ -2382,93 +2382,93 @@ var Ee = function() {
|
|
|
2382
2382
|
).interpolateUsingFraction(0.5)
|
|
2383
2383
|
);
|
|
2384
2384
|
};
|
|
2385
|
-
var v = new i.BillboardGroup(s,
|
|
2385
|
+
var v = new i.BillboardGroup(s, P), g = new i.BillboardGroup(s, B), w = {
|
|
2386
2386
|
dragHandlers: {
|
|
2387
2387
|
onDrag: function(R, z) {
|
|
2388
|
-
|
|
2388
|
+
m.positions[R] = z, D(R, m.positions), m._createPrimitive = !0;
|
|
2389
2389
|
},
|
|
2390
2390
|
onDragEnd: function(R, z) {
|
|
2391
|
-
|
|
2391
|
+
m._createPrimitive = !0, U();
|
|
2392
2392
|
}
|
|
2393
2393
|
},
|
|
2394
2394
|
onDoubleClick: function(R) {
|
|
2395
|
-
|
|
2395
|
+
m.positions.length < 4 || (m.positions.splice(R, 1), m._createPrimitive = !0, v.removeBillboard(R), g.removeBillboard(R), D(R, m.positions), U());
|
|
2396
2396
|
},
|
|
2397
2397
|
tooltip: function() {
|
|
2398
|
-
if (
|
|
2398
|
+
if (m.positions.length > 3)
|
|
2399
2399
|
return "Double click to remove this point";
|
|
2400
2400
|
}
|
|
2401
2401
|
};
|
|
2402
|
-
v.addBillboards(
|
|
2403
|
-
for (var S = [], _ = 0,
|
|
2402
|
+
v.addBillboards(m.positions, w), this._markers = v;
|
|
2403
|
+
for (var S = [], _ = 0, T = m.positions.length + (this.isPolygon ? 0 : -1); _ < T; _++)
|
|
2404
2404
|
S.push(X(_));
|
|
2405
|
-
var
|
|
2405
|
+
var M = {
|
|
2406
2406
|
dragHandlers: {
|
|
2407
2407
|
onDragStart: function(R, z) {
|
|
2408
|
-
this.index = R + 1,
|
|
2408
|
+
this.index = R + 1, m.positions.splice(this.index, 0, z), m._createPrimitive = !0;
|
|
2409
2409
|
},
|
|
2410
2410
|
onDrag: function(R, z) {
|
|
2411
|
-
|
|
2411
|
+
m.positions[this.index] = z, m._createPrimitive = !0;
|
|
2412
2412
|
},
|
|
2413
2413
|
onDragEnd: function(R, z) {
|
|
2414
|
-
v.insertBillboard(this.index, z,
|
|
2414
|
+
v.insertBillboard(this.index, z, w), g.getBillboard(this.index - 1).position = X(this.index - 1), g.insertBillboard(this.index, X(this.index), M), m._createPrimitive = !0, U();
|
|
2415
2415
|
}
|
|
2416
2416
|
},
|
|
2417
2417
|
tooltip: function() {
|
|
2418
2418
|
return "Drag to create a new point";
|
|
2419
2419
|
}
|
|
2420
2420
|
};
|
|
2421
|
-
g.addBillboards(S,
|
|
2421
|
+
g.addBillboards(S, M), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(R) {
|
|
2422
2422
|
var z = f.pick(R.position);
|
|
2423
|
-
z && z.primitive ||
|
|
2423
|
+
z && z.primitive || m.setEditMode(!1);
|
|
2424
2424
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop(), g.setOnTop();
|
|
2425
2425
|
}
|
|
2426
2426
|
this._editMode = !0;
|
|
2427
2427
|
} else
|
|
2428
2428
|
this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2429
2429
|
}
|
|
2430
|
-
|
|
2430
|
+
Ce.PolylinePrimitive.prototype.setEditable = function() {
|
|
2431
2431
|
if (!this.setEditMode) {
|
|
2432
2432
|
var c = this;
|
|
2433
2433
|
c.isPolygon = !1, c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = y;
|
|
2434
2434
|
var f = this.width;
|
|
2435
|
-
c.setHighlighted = function(
|
|
2436
|
-
this._editMode !== !0 && (
|
|
2435
|
+
c.setHighlighted = function(m) {
|
|
2436
|
+
this._editMode !== !0 && (m ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
|
|
2437
2437
|
}, c.getExtent = function() {
|
|
2438
2438
|
return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
|
|
2439
|
-
},
|
|
2439
|
+
}, ne(c), c.setEditMode(!1);
|
|
2440
2440
|
}
|
|
2441
|
-
},
|
|
2441
|
+
}, Ce.PolygonPrimitive.prototype.setEditable = function() {
|
|
2442
2442
|
var c = this;
|
|
2443
|
-
c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a,
|
|
2444
|
-
},
|
|
2443
|
+
c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2444
|
+
}, Ce.ExtentPrimitive.prototype.setEditable = function() {
|
|
2445
2445
|
if (!this.setEditMode) {
|
|
2446
2446
|
var c = this, f = s._scene;
|
|
2447
|
-
s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(
|
|
2448
|
-
if (this._editMode !=
|
|
2449
|
-
if (s.disableAllHighlights(),
|
|
2447
|
+
s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(m) {
|
|
2448
|
+
if (this._editMode != m)
|
|
2449
|
+
if (s.disableAllHighlights(), m) {
|
|
2450
2450
|
if (s.setEdited(this), this._markers == null) {
|
|
2451
|
-
let
|
|
2451
|
+
let w = function() {
|
|
2452
2452
|
c.executeListeners({
|
|
2453
2453
|
name: "onEdited",
|
|
2454
2454
|
extent: c.extent
|
|
2455
2455
|
});
|
|
2456
2456
|
};
|
|
2457
|
-
var v = new i.BillboardGroup(s,
|
|
2457
|
+
var v = new i.BillboardGroup(s, P), g = {
|
|
2458
2458
|
dragHandlers: {
|
|
2459
2459
|
onDrag: function(S, _) {
|
|
2460
|
-
var
|
|
2461
|
-
c.setExtent(Y(e.cartesianToCartographic(
|
|
2460
|
+
var T = v.getBillboard((S + 2) % 4).position;
|
|
2461
|
+
c.setExtent(Y(e.cartesianToCartographic(T), e.cartesianToCartographic(_))), v.updateBillboardsPositions($(c.extent));
|
|
2462
2462
|
},
|
|
2463
2463
|
onDragEnd: function(S, _) {
|
|
2464
|
-
|
|
2464
|
+
w();
|
|
2465
2465
|
}
|
|
2466
2466
|
},
|
|
2467
2467
|
tooltip: function() {
|
|
2468
2468
|
return "Drag to change the corners of this extent";
|
|
2469
2469
|
}
|
|
2470
2470
|
};
|
|
2471
|
-
v.addBillboards(
|
|
2471
|
+
v.addBillboards($(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
|
|
2472
2472
|
var _ = f.pick(S.position);
|
|
2473
2473
|
_ && !_.isDestroyed() && _.primitive || c.setEditMode(!1);
|
|
2474
2474
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop();
|
|
@@ -2476,14 +2476,14 @@ var Ee = function() {
|
|
|
2476
2476
|
this._editMode = !0;
|
|
2477
2477
|
} else
|
|
2478
2478
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2479
|
-
}, c.setHighlighted = a,
|
|
2479
|
+
}, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2480
2480
|
}
|
|
2481
2481
|
}, i.EllipsePrimitive.prototype.setEditable = function() {
|
|
2482
2482
|
if (!this.setEditMode) {
|
|
2483
2483
|
var c = this, f = s._scene;
|
|
2484
|
-
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(
|
|
2485
|
-
if (this._editMode !=
|
|
2486
|
-
if (s.disableAllHighlights(),
|
|
2484
|
+
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
|
|
2485
|
+
if (this._editMode != m)
|
|
2486
|
+
if (s.disableAllHighlights(), m) {
|
|
2487
2487
|
s.setEdited(this);
|
|
2488
2488
|
var v = this;
|
|
2489
2489
|
if (this._markers == null) {
|
|
@@ -2505,13 +2505,13 @@ var Ee = function() {
|
|
|
2505
2505
|
rotation: 0
|
|
2506
2506
|
});
|
|
2507
2507
|
};
|
|
2508
|
-
var g = new i.BillboardGroup(s,
|
|
2508
|
+
var g = new i.BillboardGroup(s, P), w = {
|
|
2509
2509
|
dragHandlers: {
|
|
2510
|
-
onDrag: function(
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2510
|
+
onDrag: function(T, M) {
|
|
2511
|
+
var D = p.Cartesian3.distance(c.getCenter(), M);
|
|
2512
|
+
T % 2 == 0 ? c.setSemiMajorAxis(D) : c.setSemiMinorAxis(D), g.updateBillboardsPositions(S());
|
|
2513
2513
|
},
|
|
2514
|
-
onDragEnd: function(
|
|
2514
|
+
onDragEnd: function(T, M) {
|
|
2515
2515
|
_();
|
|
2516
2516
|
}
|
|
2517
2517
|
},
|
|
@@ -2519,15 +2519,15 @@ var Ee = function() {
|
|
|
2519
2519
|
return "Drag to change the excentricity and radius";
|
|
2520
2520
|
}
|
|
2521
2521
|
};
|
|
2522
|
-
g.addBillboards(S(),
|
|
2523
|
-
var
|
|
2524
|
-
|
|
2522
|
+
g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
|
|
2523
|
+
var M = f.pick(T.position);
|
|
2524
|
+
M && M.primitive || v.setEditMode(!1);
|
|
2525
2525
|
}, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
|
|
2526
2526
|
}
|
|
2527
2527
|
this._editMode = !0;
|
|
2528
2528
|
} else
|
|
2529
2529
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2530
|
-
}, c.setHighlighted = a,
|
|
2530
|
+
}, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2531
2531
|
}
|
|
2532
2532
|
}, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(c) {
|
|
2533
2533
|
for (var f = p.CircleOutlineGeometry.createGeometry(
|
|
@@ -2537,15 +2537,15 @@ var Ee = function() {
|
|
|
2537
2537
|
radius: this.getRadius(),
|
|
2538
2538
|
granularity: c
|
|
2539
2539
|
})
|
|
2540
|
-
),
|
|
2541
|
-
v = f.attributes.position.values, g.push(new p.Cartesian3(v[
|
|
2540
|
+
), m = 0, v, g = []; m < f.attributes.position.values.length; m += 3)
|
|
2541
|
+
v = f.attributes.position.values, g.push(new p.Cartesian3(v[m], v[m + 1], v[m + 2]));
|
|
2542
2542
|
return g;
|
|
2543
2543
|
}, i.CirclePrimitive.prototype.setEditable = function() {
|
|
2544
2544
|
if (!this.setEditMode) {
|
|
2545
2545
|
var c = this, f = s._scene;
|
|
2546
|
-
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(
|
|
2547
|
-
if (this._editMode !=
|
|
2548
|
-
if (s.disableAllHighlights(),
|
|
2546
|
+
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
|
|
2547
|
+
if (this._editMode != m)
|
|
2548
|
+
if (s.disableAllHighlights(), m) {
|
|
2549
2549
|
s.setEdited(this);
|
|
2550
2550
|
var v = this;
|
|
2551
2551
|
if (this._markers == null) {
|
|
@@ -2558,12 +2558,12 @@ var Ee = function() {
|
|
|
2558
2558
|
radius: c.getRadius()
|
|
2559
2559
|
});
|
|
2560
2560
|
};
|
|
2561
|
-
var g = new i.BillboardGroup(s,
|
|
2561
|
+
var g = new i.BillboardGroup(s, P), w = {
|
|
2562
2562
|
dragHandlers: {
|
|
2563
|
-
onDrag: function(
|
|
2564
|
-
c.setRadius(p.Cartesian3.distance(c.getCenter(),
|
|
2563
|
+
onDrag: function(T, M) {
|
|
2564
|
+
c.setRadius(p.Cartesian3.distance(c.getCenter(), M)), g.updateBillboardsPositions(S());
|
|
2565
2565
|
},
|
|
2566
|
-
onDragEnd: function(
|
|
2566
|
+
onDragEnd: function(T, M) {
|
|
2567
2567
|
_();
|
|
2568
2568
|
}
|
|
2569
2569
|
},
|
|
@@ -2571,15 +2571,15 @@ var Ee = function() {
|
|
|
2571
2571
|
return "Drag to change the radius";
|
|
2572
2572
|
}
|
|
2573
2573
|
};
|
|
2574
|
-
g.addBillboards(S(),
|
|
2575
|
-
var
|
|
2576
|
-
|
|
2574
|
+
g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
|
|
2575
|
+
var M = f.pick(T.position);
|
|
2576
|
+
M && M.primitive || v.setEditMode(!1);
|
|
2577
2577
|
}, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
|
|
2578
2578
|
}
|
|
2579
2579
|
this._editMode = !0;
|
|
2580
2580
|
} else
|
|
2581
2581
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2582
|
-
}, c.setHighlighted = a,
|
|
2582
|
+
}, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2583
2583
|
}
|
|
2584
2584
|
};
|
|
2585
2585
|
}, i.DrawHelperWidget = function() {
|
|
@@ -2593,21 +2593,21 @@ var Ee = function() {
|
|
|
2593
2593
|
circleIcon: "./assets/img/glyphicons_095_vector_path_circle.png",
|
|
2594
2594
|
extentIcon: "./assets/img/glyphicons_094_vector_path_square.png",
|
|
2595
2595
|
clearIcon: "./assets/img/glyphicons_067_cleaning.png",
|
|
2596
|
-
polylineDrawingOptions:
|
|
2596
|
+
polylineDrawingOptions: C,
|
|
2597
2597
|
polygonDrawingOptions: d,
|
|
2598
2598
|
extentDrawingOptions: u,
|
|
2599
|
-
circleDrawingOptions:
|
|
2599
|
+
circleDrawingOptions: h
|
|
2600
2600
|
};
|
|
2601
|
-
|
|
2602
|
-
var f = this,
|
|
2603
|
-
|
|
2604
|
-
function v(S, _,
|
|
2605
|
-
var
|
|
2606
|
-
|
|
2607
|
-
var
|
|
2608
|
-
|
|
2601
|
+
W(y, c);
|
|
2602
|
+
var f = this, m = document.createElement("DIV");
|
|
2603
|
+
m.className = "toolbar", y.container.appendChild(m);
|
|
2604
|
+
function v(S, _, T, M) {
|
|
2605
|
+
var D = document.createElement("DIV");
|
|
2606
|
+
D.className = "button", D.title = T, m.appendChild(D), D.onclick = M;
|
|
2607
|
+
var U = document.createElement("SPAN");
|
|
2608
|
+
D.appendChild(U);
|
|
2609
2609
|
var X = document.createElement("IMG");
|
|
2610
|
-
return X.src = _,
|
|
2610
|
+
return X.src = _, U.appendChild(X), D;
|
|
2611
2611
|
}
|
|
2612
2612
|
var g = a._scene;
|
|
2613
2613
|
v("marker", y.markerIcon, "Click to start drawing a 2D marker", function() {
|
|
@@ -2654,10 +2654,10 @@ var Ee = function() {
|
|
|
2654
2654
|
}
|
|
2655
2655
|
});
|
|
2656
2656
|
});
|
|
2657
|
-
var
|
|
2658
|
-
|
|
2657
|
+
var w = document.createElement("DIV");
|
|
2658
|
+
w.className = "divider", m.appendChild(w), v("clear", y.clearIcon, "Remove all primitives", function() {
|
|
2659
2659
|
g.primitives.removeAll();
|
|
2660
|
-
}),
|
|
2660
|
+
}), ne(this);
|
|
2661
2661
|
}
|
|
2662
2662
|
return s;
|
|
2663
2663
|
}(), i.prototype.addToolbar = function(s, a) {
|
|
@@ -2669,35 +2669,35 @@ var Ee = function() {
|
|
|
2669
2669
|
var c = p.Math.EPSILON7;
|
|
2670
2670
|
return y.east - y.west < c && (y.east += c * 2), y.north - y.south < c && (y.north += c * 2), y;
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function K(s, a) {
|
|
2673
2673
|
return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function x(s, a) {
|
|
2676
2676
|
if (s == null || typeof s != "object" || s.constructor != Object && s.constructor != Array)
|
|
2677
2677
|
return s;
|
|
2678
2678
|
if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
|
|
2679
2679
|
return new s.constructor(s);
|
|
2680
2680
|
a = a || new s.constructor();
|
|
2681
2681
|
for (var y in s)
|
|
2682
|
-
a[y] = typeof a[y] > "u" ?
|
|
2682
|
+
a[y] = typeof a[y] > "u" ? x(s[y], null) : a[y];
|
|
2683
2683
|
return a;
|
|
2684
2684
|
}
|
|
2685
|
-
function
|
|
2685
|
+
function W(s, a) {
|
|
2686
2686
|
s = s || {};
|
|
2687
2687
|
var y;
|
|
2688
2688
|
for (y in a)
|
|
2689
|
-
s[y] === void 0 && (s[y] =
|
|
2689
|
+
s[y] === void 0 && (s[y] = x(a[y]));
|
|
2690
2690
|
}
|
|
2691
2691
|
function O(s, a) {
|
|
2692
|
-
var y =
|
|
2692
|
+
var y = x(s), c;
|
|
2693
2693
|
for (c in a)
|
|
2694
|
-
y[c] === void 0 && (y[c] =
|
|
2694
|
+
y[c] === void 0 && (y[c] = x(a[c]));
|
|
2695
2695
|
return y;
|
|
2696
2696
|
}
|
|
2697
2697
|
function V(s, a, y) {
|
|
2698
2698
|
s[a] = y;
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function ne(s) {
|
|
2701
2701
|
s._listeners = {}, s.addListener = function(a, y) {
|
|
2702
2702
|
return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(y), this._listeners[a].length;
|
|
2703
2703
|
}, s.executeListeners = function(a, y) {
|
|
@@ -2710,17 +2710,17 @@ var Ee = function() {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
return i;
|
|
2712
2712
|
}();
|
|
2713
|
-
const
|
|
2713
|
+
const Yr = 2, Xr = (e, n) => {
|
|
2714
2714
|
switch (e) {
|
|
2715
2715
|
case se.BOX: {
|
|
2716
|
-
if (n.features.length !==
|
|
2716
|
+
if (n.features.length !== Yr)
|
|
2717
2717
|
throw new Error(`${e} must have 2 points`);
|
|
2718
|
-
const t =
|
|
2718
|
+
const t = vt(n.features, (o) => {
|
|
2719
2719
|
var r;
|
|
2720
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2721
|
-
}), i =
|
|
2720
|
+
return ((r = o.properties) == null ? void 0 : r.type) === ot.BOTTOM_LEFT;
|
|
2721
|
+
}), i = vt(n.features, (o) => {
|
|
2722
2722
|
var r;
|
|
2723
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2723
|
+
return ((r = o.properties) == null ? void 0 : r.type) === ot.TOP_RIGHT;
|
|
2724
2724
|
});
|
|
2725
2725
|
if (i && t) {
|
|
2726
2726
|
if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
|
|
@@ -2737,10 +2737,10 @@ const jr = 2, Kr = (e, n) => {
|
|
|
2737
2737
|
default:
|
|
2738
2738
|
throw new Error(`${e} type geoJSON still not supported`);
|
|
2739
2739
|
}
|
|
2740
|
-
},
|
|
2740
|
+
}, Zr = (e) => {
|
|
2741
2741
|
const n = e.map((t) => {
|
|
2742
|
-
const i =
|
|
2743
|
-
return [
|
|
2742
|
+
const i = Oe.fromCartesian(t);
|
|
2743
|
+
return [ce.toDegrees(i.longitude), ce.toDegrees(i.latitude)];
|
|
2744
2744
|
});
|
|
2745
2745
|
return n.push(n[0]), {
|
|
2746
2746
|
type: "Feature",
|
|
@@ -2750,51 +2750,51 @@ const jr = 2, Kr = (e, n) => {
|
|
|
2750
2750
|
coordinates: [n]
|
|
2751
2751
|
}
|
|
2752
2752
|
};
|
|
2753
|
-
},
|
|
2754
|
-
const n =
|
|
2755
|
-
[
|
|
2756
|
-
[
|
|
2753
|
+
}, Jr = (e) => {
|
|
2754
|
+
const n = Kt.lineString([
|
|
2755
|
+
[ce.toDegrees(e.west), ce.toDegrees(e.south)],
|
|
2756
|
+
[ce.toDegrees(e.east), ce.toDegrees(e.north)]
|
|
2757
2757
|
]);
|
|
2758
|
-
return
|
|
2759
|
-
},
|
|
2760
|
-
const n =
|
|
2758
|
+
return qt(jt(n));
|
|
2759
|
+
}, Qr = (e) => {
|
|
2760
|
+
const n = Kt.lineString([
|
|
2761
2761
|
[e.west, e.south],
|
|
2762
2762
|
[e.east, e.north]
|
|
2763
2763
|
]);
|
|
2764
|
-
return
|
|
2764
|
+
return qt(jt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
|
|
2765
2765
|
};
|
|
2766
|
-
class
|
|
2766
|
+
class bs extends nt {
|
|
2767
2767
|
}
|
|
2768
|
-
const
|
|
2769
|
-
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u =
|
|
2770
|
-
|
|
2768
|
+
const Ts = (e) => {
|
|
2769
|
+
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = le(), [h, E] = A();
|
|
2770
|
+
I(() => {
|
|
2771
2771
|
E(
|
|
2772
2772
|
// eslint-disable-next-line
|
|
2773
|
-
new
|
|
2773
|
+
new Ce(u, t, i)
|
|
2774
2774
|
);
|
|
2775
|
-
}, []),
|
|
2776
|
-
if (
|
|
2777
|
-
const
|
|
2775
|
+
}, []), I(() => {
|
|
2776
|
+
if (h) {
|
|
2777
|
+
const L = h;
|
|
2778
2778
|
if (n.drawing)
|
|
2779
2779
|
switch (n.type) {
|
|
2780
2780
|
case se.POLYGON:
|
|
2781
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
2782
|
-
callback: (
|
|
2781
|
+
u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingPolygon({
|
|
2782
|
+
callback: (b) => {
|
|
2783
2783
|
n.handler({
|
|
2784
|
-
primitive:
|
|
2784
|
+
primitive: b,
|
|
2785
2785
|
type: se.POLYGON,
|
|
2786
|
-
geojson:
|
|
2786
|
+
geojson: Zr(b)
|
|
2787
2787
|
});
|
|
2788
2788
|
}
|
|
2789
2789
|
});
|
|
2790
2790
|
break;
|
|
2791
2791
|
case se.BOX:
|
|
2792
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
2793
|
-
callback: (
|
|
2792
|
+
u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingExtent({
|
|
2793
|
+
callback: (b) => {
|
|
2794
2794
|
n.handler({
|
|
2795
|
-
primitive:
|
|
2795
|
+
primitive: b,
|
|
2796
2796
|
type: se.BOX,
|
|
2797
|
-
geojson:
|
|
2797
|
+
geojson: Jr(b)
|
|
2798
2798
|
});
|
|
2799
2799
|
}
|
|
2800
2800
|
});
|
|
@@ -2803,78 +2803,162 @@ const Es = (e) => {
|
|
|
2803
2803
|
throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
|
|
2804
2804
|
}
|
|
2805
2805
|
else
|
|
2806
|
-
|
|
2806
|
+
L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
|
|
2807
2807
|
}
|
|
2808
|
-
}, [n,
|
|
2809
|
-
const
|
|
2808
|
+
}, [n, h]);
|
|
2809
|
+
const C = (L) => {
|
|
2810
2810
|
try {
|
|
2811
|
-
let
|
|
2811
|
+
let b = L.coordinates !== void 0 ? L.coordinates : Xr(L.type, L.geojson);
|
|
2812
2812
|
if (r !== !0)
|
|
2813
|
-
switch (
|
|
2813
|
+
switch (L.type) {
|
|
2814
2814
|
case se.BOX:
|
|
2815
|
-
return /* @__PURE__ */ l(
|
|
2815
|
+
return /* @__PURE__ */ l(Kr, { coordinates: b, material: o ?? t });
|
|
2816
2816
|
case se.POLYGON:
|
|
2817
|
-
return /* @__PURE__ */ l(
|
|
2817
|
+
return /* @__PURE__ */ l(Ur, { hierarchy: new yi(b), material: o ?? t });
|
|
2818
2818
|
default:
|
|
2819
|
-
return /* @__PURE__ */ l(
|
|
2819
|
+
return /* @__PURE__ */ l(te, {});
|
|
2820
2820
|
}
|
|
2821
2821
|
else {
|
|
2822
|
-
switch (
|
|
2822
|
+
switch (L.type) {
|
|
2823
2823
|
case se.BOX:
|
|
2824
|
-
|
|
2824
|
+
b = Qr(b);
|
|
2825
2825
|
break;
|
|
2826
2826
|
case se.POLYGON:
|
|
2827
|
-
|
|
2827
|
+
b = [...b, b[0]];
|
|
2828
2828
|
break;
|
|
2829
2829
|
default:
|
|
2830
|
-
return /* @__PURE__ */ l(
|
|
2830
|
+
return /* @__PURE__ */ l(te, {});
|
|
2831
2831
|
}
|
|
2832
|
-
return /* @__PURE__ */ l(
|
|
2832
|
+
return /* @__PURE__ */ l(qr, { clampToGround: !0, positions: b, width: d ?? 1, material: o ?? t });
|
|
2833
2833
|
}
|
|
2834
|
-
} catch (
|
|
2835
|
-
return console.error(
|
|
2834
|
+
} catch (b) {
|
|
2835
|
+
return console.error(b), /* @__PURE__ */ l(te, {});
|
|
2836
2836
|
}
|
|
2837
2837
|
};
|
|
2838
|
-
return /* @__PURE__ */ l(
|
|
2839
|
-
/* @__PURE__ */ N(
|
|
2838
|
+
return /* @__PURE__ */ l(jr, { ...e, children: e.drawings.map((L, b) => /* @__PURE__ */ N($r, { name: L.name, children: [
|
|
2839
|
+
/* @__PURE__ */ N(Wr, { children: [
|
|
2840
2840
|
/* @__PURE__ */ N("h1", { children: [
|
|
2841
2841
|
"Drawed Entity ",
|
|
2842
|
-
|
|
2842
|
+
L.name
|
|
2843
2843
|
] }),
|
|
2844
2844
|
/* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
|
|
2845
2845
|
] }),
|
|
2846
|
-
|
|
2847
|
-
] },
|
|
2846
|
+
C(L)
|
|
2847
|
+
] }, L.id)) });
|
|
2848
2848
|
};
|
|
2849
|
-
class
|
|
2849
|
+
class _s extends vi {
|
|
2850
2850
|
}
|
|
2851
|
-
class
|
|
2851
|
+
class Ls extends Ei {
|
|
2852
2852
|
}
|
|
2853
|
-
class
|
|
2853
|
+
class Ss extends Ci {
|
|
2854
2854
|
}
|
|
2855
|
-
class
|
|
2855
|
+
class Ms extends Ee {
|
|
2856
2856
|
}
|
|
2857
|
-
class
|
|
2857
|
+
class Ps extends pe {
|
|
2858
2858
|
}
|
|
2859
|
-
class
|
|
2859
|
+
class Ds extends Oe {
|
|
2860
2860
|
}
|
|
2861
|
-
class
|
|
2861
|
+
class As extends wi {
|
|
2862
2862
|
}
|
|
2863
|
-
class
|
|
2863
|
+
class Is extends Wt {
|
|
2864
2864
|
}
|
|
2865
|
-
class
|
|
2865
|
+
class xs extends bi {
|
|
2866
2866
|
}
|
|
2867
|
-
class
|
|
2867
|
+
class ks extends Se {
|
|
2868
2868
|
}
|
|
2869
|
-
class
|
|
2869
|
+
class Os extends Ti {
|
|
2870
2870
|
}
|
|
2871
|
-
class
|
|
2871
|
+
class Rs extends _i {
|
|
2872
2872
|
}
|
|
2873
|
-
class
|
|
2873
|
+
class Ns extends Li {
|
|
2874
2874
|
}
|
|
2875
|
-
const
|
|
2876
|
-
const
|
|
2877
|
-
|
|
2875
|
+
const Bs = it, Fs = Ut, Hs = (e) => {
|
|
2876
|
+
const n = le();
|
|
2877
|
+
return I(() => {
|
|
2878
|
+
n.extend(Si);
|
|
2879
|
+
}, [n]), /* @__PURE__ */ l(te, {});
|
|
2880
|
+
}, eo = -25, kt = 2, Gs = (e) => {
|
|
2881
|
+
const n = le(), t = (r, d = ",") => r.slice(r.indexOf(`
|
|
2882
|
+
`) + 1).split(`
|
|
2883
|
+
`).map((E) => {
|
|
2884
|
+
const C = E.split(d);
|
|
2885
|
+
return {
|
|
2886
|
+
cartographic: Oe.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
|
|
2887
|
+
cartesian: new Ee(parseFloat(C[0]), parseFloat(C[1]))
|
|
2888
|
+
};
|
|
2889
|
+
}), i = (r) => {
|
|
2890
|
+
var u;
|
|
2891
|
+
r.preventDefault(), r.persist();
|
|
2892
|
+
const d = new FileReader();
|
|
2893
|
+
d.onload = (h) => {
|
|
2894
|
+
var b;
|
|
2895
|
+
const E = (b = h.target) == null ? void 0 : b.result, C = t(E), L = Wt.WGS84;
|
|
2896
|
+
console.log(`Loaded CSV content:
|
|
2897
|
+
`, E), Mi(
|
|
2898
|
+
n.terrainProvider,
|
|
2899
|
+
C.map((P) => P.cartographic)
|
|
2900
|
+
).then(
|
|
2901
|
+
(P) => {
|
|
2902
|
+
console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((B, $) => {
|
|
2903
|
+
n.entities.add({
|
|
2904
|
+
name: ($ + kt).toString(),
|
|
2905
|
+
position: L.cartographicToCartesian(B),
|
|
2906
|
+
billboard: {
|
|
2907
|
+
verticalOrigin: it.BOTTOM,
|
|
2908
|
+
scale: 0.7,
|
|
2909
|
+
image: "assets/img/map-marker.gif"
|
|
2910
|
+
},
|
|
2911
|
+
label: {
|
|
2912
|
+
text: ($ + kt).toString(),
|
|
2913
|
+
font: "14pt monospace",
|
|
2914
|
+
fillColor: nt.BLACK,
|
|
2915
|
+
style: Ut.FILL_AND_OUTLINE,
|
|
2916
|
+
outlineWidth: 4,
|
|
2917
|
+
outlineColor: nt.BLACK,
|
|
2918
|
+
verticalOrigin: it.BOTTOM,
|
|
2919
|
+
pixelOffset: new Ee(0, eo)
|
|
2920
|
+
},
|
|
2921
|
+
description: `
|
|
2922
|
+
Long: ${C[$].cartesian.x} </br>
|
|
2923
|
+
Lat: ${C[$].cartesian.y} </br>
|
|
2924
|
+
Height(m): <span style="font-weight: 500">${B.height}</span>
|
|
2925
|
+
`
|
|
2926
|
+
});
|
|
2927
|
+
}), n.entities.resumeEvents(), r.target.files !== null && (o(`terranian_heights_${r.target.files[0].name}`, C), r.target.value = ""), console.log("Pinned point count is ", n.entities.values.length);
|
|
2928
|
+
},
|
|
2929
|
+
(P) => {
|
|
2930
|
+
console.error("ERROR while sampleTerrainMostDetailed:", P);
|
|
2931
|
+
}
|
|
2932
|
+
);
|
|
2933
|
+
}, (u = r.target.files) != null && u[0] && d.readAsText(r.target.files[0]);
|
|
2934
|
+
}, o = (r, d) => {
|
|
2935
|
+
const u = (b) => {
|
|
2936
|
+
let P = "";
|
|
2937
|
+
return P += b.cartesian.x.toString() + ",", P += b.cartesian.y.toString() + ",", P += b.cartographic.height.toString(), P + `
|
|
2938
|
+
`;
|
|
2939
|
+
};
|
|
2940
|
+
let h = `long,lat,height
|
|
2941
|
+
`;
|
|
2942
|
+
d.forEach((b) => {
|
|
2943
|
+
h += u(b);
|
|
2944
|
+
});
|
|
2945
|
+
const E = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a"), L = URL.createObjectURL(E);
|
|
2946
|
+
C.setAttribute("href", L), C.setAttribute("download", r), C.style.visibility = "hidden", document.body.appendChild(C), C.click(), document.body.removeChild(C);
|
|
2947
|
+
};
|
|
2948
|
+
return /* @__PURE__ */ l(te, { children: /* @__PURE__ */ l(
|
|
2949
|
+
"input",
|
|
2950
|
+
{
|
|
2951
|
+
type: "file",
|
|
2952
|
+
id: "csvFile",
|
|
2953
|
+
accept: ".csv",
|
|
2954
|
+
onChange: (r) => {
|
|
2955
|
+
i(r);
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
) });
|
|
2959
|
+
};
|
|
2960
|
+
const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co = (e) => {
|
|
2961
|
+
const [n, t] = A(e.defaultValue ?? ""), [i, o] = A(!1), [r, d] = A({
|
|
2878
2962
|
helperVisible: !1,
|
|
2879
2963
|
left: 0,
|
|
2880
2964
|
right: 0,
|
|
@@ -2887,242 +2971,242 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
2887
2971
|
value: "",
|
|
2888
2972
|
caret: 0,
|
|
2889
2973
|
width: "unset"
|
|
2890
|
-
}), u =
|
|
2891
|
-
|
|
2974
|
+
}), u = be(null);
|
|
2975
|
+
I(() => (window.addEventListener("resize", B), () => {
|
|
2892
2976
|
try {
|
|
2893
|
-
window.removeEventListener("resize",
|
|
2977
|
+
window.removeEventListener("resize", B);
|
|
2894
2978
|
} catch (f) {
|
|
2895
2979
|
console.log('WINDOW "resize" remove listener failed', f);
|
|
2896
2980
|
}
|
|
2897
|
-
}), []),
|
|
2981
|
+
}), []), I(() => {
|
|
2898
2982
|
typeof e.value < "u" && t(e.value), typeof e.defaultValue < "u" && t(e.defaultValue);
|
|
2899
|
-
}, [e.value, e.defaultValue]),
|
|
2900
|
-
const { options: f } = e, { caret:
|
|
2901
|
-
Y(n,
|
|
2983
|
+
}, [e.value, e.defaultValue]), I(() => {
|
|
2984
|
+
const { options: f } = e, { caret: m } = r;
|
|
2985
|
+
Y(n, m, f);
|
|
2902
2986
|
}, [e]);
|
|
2903
|
-
const
|
|
2904
|
-
const { trigger: g, matchAny:
|
|
2905
|
-
let
|
|
2906
|
-
Array.isArray(
|
|
2907
|
-
const
|
|
2908
|
-
Array.isArray(v) &&
|
|
2909
|
-
|
|
2987
|
+
const h = (f, m, v) => {
|
|
2988
|
+
const { trigger: g, matchAny: w, regex: S } = e, _ = new RegExp(S);
|
|
2989
|
+
let T = g;
|
|
2990
|
+
Array.isArray(T) || (T = new Array(g)), T.sort();
|
|
2991
|
+
const M = {};
|
|
2992
|
+
Array.isArray(v) && T.forEach((X) => {
|
|
2993
|
+
M[X] = v;
|
|
2910
2994
|
});
|
|
2911
|
-
const
|
|
2912
|
-
let
|
|
2913
|
-
for (let X = 0; X <
|
|
2914
|
-
const { triggerStr: R, triggerMatch: z, triggerLength: Q } =
|
|
2915
|
-
for (let
|
|
2916
|
-
const
|
|
2917
|
-
let
|
|
2995
|
+
const D = E(T, _);
|
|
2996
|
+
let U = {};
|
|
2997
|
+
for (let X = 0; X < D.length; X++) {
|
|
2998
|
+
const { triggerStr: R, triggerMatch: z, triggerLength: Q } = D[X];
|
|
2999
|
+
for (let ie = m - 1; ie >= 0; --ie) {
|
|
3000
|
+
const F = f.substring(ie, m).match(_);
|
|
3001
|
+
let k = -1;
|
|
2918
3002
|
if (Q > 0) {
|
|
2919
|
-
const j = z ?
|
|
2920
|
-
if (j < 0 || (
|
|
3003
|
+
const j = z ? ie : ie - Q + 1;
|
|
3004
|
+
if (j < 0 || (C(R, f, j) && (k = j + Q), !F && k < 0))
|
|
2921
3005
|
break;
|
|
2922
3006
|
} else {
|
|
2923
|
-
if (
|
|
3007
|
+
if (F && ie > 0)
|
|
2924
3008
|
continue;
|
|
2925
|
-
if (
|
|
3009
|
+
if (k = ie === 0 && F ? 0 : ie + 1, m - k === 0)
|
|
2926
3010
|
break;
|
|
2927
3011
|
}
|
|
2928
|
-
if (
|
|
2929
|
-
const j =
|
|
3012
|
+
if (k >= 0) {
|
|
3013
|
+
const j = M[R];
|
|
2930
3014
|
if (!Array.isArray(j))
|
|
2931
3015
|
continue;
|
|
2932
|
-
const fe = f.substring(
|
|
2933
|
-
const De =
|
|
2934
|
-
return De !== -1 && (
|
|
2935
|
-
}), ye = R,
|
|
2936
|
-
|
|
2937
|
-
...
|
|
3016
|
+
const fe = f.substring(k, m), Te = j.filter((Ne) => {
|
|
3017
|
+
const De = Ne.toLowerCase().indexOf(fe.toLowerCase());
|
|
3018
|
+
return De !== -1 && (w || De === 0);
|
|
3019
|
+
}), ye = R, Re = fe.length;
|
|
3020
|
+
U = {
|
|
3021
|
+
...U,
|
|
2938
3022
|
trigger: ye,
|
|
2939
|
-
matchStart:
|
|
2940
|
-
matchLength:
|
|
2941
|
-
options:
|
|
3023
|
+
matchStart: k,
|
|
3024
|
+
matchLength: Re,
|
|
3025
|
+
options: Te
|
|
2942
3026
|
};
|
|
2943
3027
|
}
|
|
2944
3028
|
}
|
|
2945
3029
|
}
|
|
2946
|
-
return
|
|
2947
|
-
}, E = (f,
|
|
3030
|
+
return U;
|
|
3031
|
+
}, E = (f, m) => f.map((g) => ({
|
|
2948
3032
|
triggerStr: g,
|
|
2949
|
-
triggerMatch: g.match(
|
|
3033
|
+
triggerMatch: g.match(m),
|
|
2950
3034
|
triggerLength: g.length
|
|
2951
|
-
})),
|
|
2952
|
-
const { onChange:
|
|
2953
|
-
if (
|
|
3035
|
+
})), C = (f, m, v) => !f || !f.length || m.substr(v, f.length) === f, L = (f) => {
|
|
3036
|
+
const { onChange: m, options: v, spaceRemovers: g, spacer: w, value: S } = e, _ = n, T = f.target.value, M = Ii(b(f.target)).end;
|
|
3037
|
+
if (T.length || H({
|
|
2954
3038
|
...r,
|
|
2955
3039
|
helperVisible: !1
|
|
2956
|
-
}), t(
|
|
3040
|
+
}), t(T), H({
|
|
2957
3041
|
...r,
|
|
2958
|
-
caret:
|
|
3042
|
+
caret: M,
|
|
2959
3043
|
value: f.target.value
|
|
2960
|
-
}), !
|
|
2961
|
-
return
|
|
2962
|
-
if (i && g.length &&
|
|
2963
|
-
for (let
|
|
2964
|
-
if (_[
|
|
2965
|
-
if (
|
|
2966
|
-
const
|
|
2967
|
-
return
|
|
3044
|
+
}), !T.length || !M)
|
|
3045
|
+
return m(f.target.value);
|
|
3046
|
+
if (i && g.length && T.length > 2 && w.length) {
|
|
3047
|
+
for (let D = 0; D < Math.max(_.length, T.length); ++D)
|
|
3048
|
+
if (_[D] !== T[D]) {
|
|
3049
|
+
if (D >= 2 && T[D - 1] === w && g.indexOf(T[D - 2]) === -1 && g.indexOf(T[D]) !== -1 && !rt(h(T.substring(0, D - 2), M - 3, v))) {
|
|
3050
|
+
const U = `${T.slice(0, D - 1)}${T.slice(D, D + 1)}${T.slice(D - 1, D)}${T.slice(D + 1)}`;
|
|
3051
|
+
return q(D + 1), u.current !== null && (u.current.value = U), S || H({
|
|
2968
3052
|
...r,
|
|
2969
|
-
value:
|
|
2970
|
-
}),
|
|
3053
|
+
value: U
|
|
3054
|
+
}), m(U);
|
|
2971
3055
|
}
|
|
2972
3056
|
break;
|
|
2973
3057
|
}
|
|
2974
3058
|
o(!1);
|
|
2975
3059
|
}
|
|
2976
|
-
return Y(
|
|
2977
|
-
},
|
|
3060
|
+
return Y(T, M, v), m(f.target.value);
|
|
3061
|
+
}, b = (f) => {
|
|
2978
3062
|
if (f !== void 0)
|
|
2979
3063
|
if (f.children.length > 0) {
|
|
2980
|
-
const
|
|
2981
|
-
if (
|
|
2982
|
-
return
|
|
3064
|
+
const m = f.getElementsByTagName("textarea");
|
|
3065
|
+
if (m.length > 0)
|
|
3066
|
+
return m[0];
|
|
2983
3067
|
const v = f.getElementsByTagName("input");
|
|
2984
3068
|
if (v.length > 0)
|
|
2985
3069
|
return v[0];
|
|
2986
3070
|
} else
|
|
2987
3071
|
return f;
|
|
2988
|
-
},
|
|
2989
|
-
const { helperVisible:
|
|
2990
|
-
if (
|
|
3072
|
+
}, P = (f) => {
|
|
3073
|
+
const { helperVisible: m, options: v, selection: g } = r, { onKeyDown: w, passThroughEnter: S } = e;
|
|
3074
|
+
if (m)
|
|
2991
3075
|
switch (f.keyCode) {
|
|
2992
|
-
case
|
|
2993
|
-
f.preventDefault(),
|
|
3076
|
+
case oo:
|
|
3077
|
+
f.preventDefault(), K();
|
|
2994
3078
|
break;
|
|
2995
|
-
case
|
|
2996
|
-
f.preventDefault(),
|
|
3079
|
+
case to:
|
|
3080
|
+
f.preventDefault(), H({
|
|
2997
3081
|
...r,
|
|
2998
3082
|
selection: (v.length + g - 1) % v.length
|
|
2999
3083
|
});
|
|
3000
3084
|
break;
|
|
3001
|
-
case
|
|
3002
|
-
f.preventDefault(),
|
|
3085
|
+
case no:
|
|
3086
|
+
f.preventDefault(), H({
|
|
3003
3087
|
...r,
|
|
3004
3088
|
selection: (g + 1) % v.length
|
|
3005
3089
|
});
|
|
3006
3090
|
break;
|
|
3007
|
-
case
|
|
3008
|
-
case
|
|
3009
|
-
S || f.preventDefault(),
|
|
3091
|
+
case ro:
|
|
3092
|
+
case io:
|
|
3093
|
+
S || f.preventDefault(), $(g);
|
|
3010
3094
|
break;
|
|
3011
|
-
case
|
|
3012
|
-
|
|
3095
|
+
case so:
|
|
3096
|
+
$(g);
|
|
3013
3097
|
break;
|
|
3014
3098
|
default:
|
|
3015
|
-
|
|
3099
|
+
w(f);
|
|
3016
3100
|
break;
|
|
3017
3101
|
}
|
|
3018
3102
|
else
|
|
3019
|
-
|
|
3020
|
-
},
|
|
3021
|
-
|
|
3103
|
+
w(f);
|
|
3104
|
+
}, B = () => {
|
|
3105
|
+
H({
|
|
3022
3106
|
...r,
|
|
3023
3107
|
helperVisible: !1
|
|
3024
3108
|
});
|
|
3109
|
+
}, $ = (f) => {
|
|
3110
|
+
const { spacer: m, onSelect: v, changeOnSelect: g } = e, { matchStart: w, matchLength: S, options: _, trigger: T } = r, M = _[f], D = n, U = D.substring(0, w - T.length), X = D.substring(w + S), R = { target: u.current }, z = g(T, M);
|
|
3111
|
+
R.target !== null && (R.target.value = `${U}${z}${m}${X}`), L(R), R.target !== null && v(R.target.value), K(), q(U.length + z.length + 1), o(!0);
|
|
3025
3112
|
}, q = (f) => {
|
|
3026
|
-
|
|
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);
|
|
3028
|
-
}, K = (f) => {
|
|
3029
|
-
F({
|
|
3113
|
+
H({
|
|
3030
3114
|
...r,
|
|
3031
3115
|
caret: f
|
|
3032
3116
|
});
|
|
3033
|
-
const
|
|
3034
|
-
|
|
3035
|
-
},
|
|
3117
|
+
const m = b(u.current);
|
|
3118
|
+
xi(m, f);
|
|
3119
|
+
}, H = (f) => {
|
|
3036
3120
|
setTimeout(() => {
|
|
3037
3121
|
d({
|
|
3038
3122
|
...f
|
|
3039
3123
|
});
|
|
3040
3124
|
}, 0);
|
|
3041
|
-
}, Y = (f,
|
|
3125
|
+
}, Y = (f, m, v) => {
|
|
3042
3126
|
const g = u.current;
|
|
3043
3127
|
if (u.current === null)
|
|
3044
3128
|
return;
|
|
3045
|
-
const
|
|
3046
|
-
if (
|
|
3129
|
+
const w = b(g);
|
|
3130
|
+
if (w === void 0)
|
|
3047
3131
|
return;
|
|
3048
|
-
const S = g.getBoundingClientRect(), _ =
|
|
3049
|
-
if (Object.keys(_).length > 0 &&
|
|
3050
|
-
const
|
|
3051
|
-
let z, Q,
|
|
3052
|
-
R === "assist" ? (z = g ===
|
|
3132
|
+
const S = g.getBoundingClientRect(), _ = h(f, m, v);
|
|
3133
|
+
if (Object.keys(_).length > 0 && w !== null) {
|
|
3134
|
+
const T = Ai(w, m), M = w.getBoundingClientRect(), { minChars: D, onRequestOptions: U, requestOnlyIfNoOptions: X, mode: R } = e;
|
|
3135
|
+
let z, Q, ie, ge = "unset";
|
|
3136
|
+
R === "assist" ? (z = g === w ? T.top + w.offsetTop : T.top + S.top, Q = Math.min(T.left + w.offsetLeft - ao, w.offsetLeft + M.width - lo)) : (z = S.top + g.offsetHeight, Q = g.offsetLeft, ie = g.offsetLeft - g.offsetWidth, ge = `${S.width}px`), _.matchLength >= D && (_.options.length > 1 || _.options.length === 1 && _.options[0].length !== _.matchLength) ? H({
|
|
3053
3137
|
...r,
|
|
3054
3138
|
value: f,
|
|
3055
3139
|
helperVisible: !0,
|
|
3056
3140
|
top: z,
|
|
3057
3141
|
left: Q,
|
|
3058
|
-
right:
|
|
3142
|
+
right: ie,
|
|
3059
3143
|
width: ge,
|
|
3060
3144
|
..._
|
|
3061
|
-
}) : ((!X || !_.options.length) &&
|
|
3145
|
+
}) : ((!X || !_.options.length) && U(f.substr(_.matchStart, _.matchLength)), K());
|
|
3062
3146
|
} else
|
|
3063
|
-
|
|
3064
|
-
},
|
|
3147
|
+
K();
|
|
3148
|
+
}, K = () => {
|
|
3065
3149
|
setTimeout(() => {
|
|
3066
|
-
|
|
3150
|
+
H({
|
|
3067
3151
|
...r,
|
|
3068
3152
|
helperVisible: !1,
|
|
3069
3153
|
selection: 0
|
|
3070
3154
|
});
|
|
3071
3155
|
}, 100);
|
|
3072
|
-
},
|
|
3073
|
-
const { helperVisible: f, left:
|
|
3156
|
+
}, x = () => {
|
|
3157
|
+
const { helperVisible: f, left: m, right: v, matchStart: g, matchLength: w, options: S, selection: _, top: T, value: M, width: D } = r;
|
|
3074
3158
|
if (!f)
|
|
3075
3159
|
return null;
|
|
3076
|
-
const { maxOptions:
|
|
3160
|
+
const { maxOptions: U, offsetX: X, offsetY: R, direction: z } = e;
|
|
3077
3161
|
if (S.length === 0)
|
|
3078
3162
|
return null;
|
|
3079
3163
|
if (_ >= S.length)
|
|
3080
|
-
return
|
|
3164
|
+
return H({
|
|
3081
3165
|
...r,
|
|
3082
3166
|
selection: 0
|
|
3083
3167
|
}), null;
|
|
3084
|
-
const Q =
|
|
3085
|
-
const j =
|
|
3168
|
+
const Q = U === 0 ? S.length : U, ie = S.slice(0, Q).map((F, k) => {
|
|
3169
|
+
const j = F.toLowerCase().indexOf(M.substr(g, w).toLowerCase());
|
|
3086
3170
|
return /* @__PURE__ */ N(
|
|
3087
3171
|
"li",
|
|
3088
3172
|
{
|
|
3089
|
-
className:
|
|
3173
|
+
className: k === _ ? "active" : void 0,
|
|
3090
3174
|
onClick: () => {
|
|
3091
|
-
|
|
3175
|
+
$(k);
|
|
3092
3176
|
},
|
|
3093
3177
|
onMouseEnter: () => {
|
|
3094
|
-
|
|
3178
|
+
H({
|
|
3095
3179
|
...r,
|
|
3096
|
-
selection:
|
|
3180
|
+
selection: k
|
|
3097
3181
|
});
|
|
3098
3182
|
},
|
|
3099
3183
|
children: [
|
|
3100
|
-
|
|
3101
|
-
/* @__PURE__ */ l("strong", { children:
|
|
3102
|
-
|
|
3184
|
+
F.slice(0, j),
|
|
3185
|
+
/* @__PURE__ */ l("strong", { children: F.substr(j, w) }),
|
|
3186
|
+
F.slice(j + w)
|
|
3103
3187
|
]
|
|
3104
3188
|
},
|
|
3105
|
-
|
|
3189
|
+
F
|
|
3106
3190
|
);
|
|
3107
|
-
}), ge = z === "ltr" ? { left:
|
|
3108
|
-
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top:
|
|
3109
|
-
}, { Component:
|
|
3191
|
+
}), ge = z === "ltr" ? { left: m + X } : { right: v + X };
|
|
3192
|
+
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top: T + R, width: D }, children: ie });
|
|
3193
|
+
}, { Component: W, ComponentProps: O, defaultValue: V, disabled: ne, onBlur: s, value: a, ...y } = e, c = Object.assign({}, y);
|
|
3110
3194
|
return Object.keys(e).forEach((f) => {
|
|
3111
3195
|
delete c[f];
|
|
3112
|
-
}), /* @__PURE__ */ N(
|
|
3113
|
-
ve.cloneElement(
|
|
3114
|
-
disabled:
|
|
3196
|
+
}), /* @__PURE__ */ N(te, { children: [
|
|
3197
|
+
ve.cloneElement(W, {
|
|
3198
|
+
disabled: ne,
|
|
3115
3199
|
onBlur: s,
|
|
3116
|
-
onChange:
|
|
3117
|
-
onKeyDown:
|
|
3200
|
+
onChange: L,
|
|
3201
|
+
onKeyDown: P,
|
|
3118
3202
|
ref: u,
|
|
3119
3203
|
value: n,
|
|
3120
3204
|
...c,
|
|
3121
3205
|
...O
|
|
3122
3206
|
}),
|
|
3123
|
-
|
|
3207
|
+
x()
|
|
3124
3208
|
] });
|
|
3125
|
-
},
|
|
3209
|
+
}, uo = {
|
|
3126
3210
|
Component: /* @__PURE__ */ l("textarea", {}),
|
|
3127
3211
|
ComponentProps: {},
|
|
3128
3212
|
defaultValue: void 0,
|
|
@@ -3153,9 +3237,9 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3153
3237
|
passThroughEnter: !1,
|
|
3154
3238
|
mode: "assist",
|
|
3155
3239
|
direction: "ltr"
|
|
3156
|
-
},
|
|
3240
|
+
}, Vs = (e) => {
|
|
3157
3241
|
let n = {
|
|
3158
|
-
...
|
|
3242
|
+
...uo,
|
|
3159
3243
|
...e
|
|
3160
3244
|
};
|
|
3161
3245
|
return e.mode === "autocomplete" && (n = {
|
|
@@ -3163,10 +3247,10 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3163
3247
|
trigger: "",
|
|
3164
3248
|
regex: ".",
|
|
3165
3249
|
spacer: ""
|
|
3166
|
-
}), /* @__PURE__ */ l(
|
|
3167
|
-
},
|
|
3250
|
+
}), /* @__PURE__ */ l(co, { ...n });
|
|
3251
|
+
}, mt = {
|
|
3168
3252
|
formatFileModDate: (e, n) => {
|
|
3169
|
-
const t =
|
|
3253
|
+
const t = Yt.getModDate(n);
|
|
3170
3254
|
return t ? e.formatDate(t, {
|
|
3171
3255
|
dateStyle: "short",
|
|
3172
3256
|
timeStyle: "short"
|
|
@@ -3175,18 +3259,18 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3175
3259
|
formatFileSize: (e, n) => {
|
|
3176
3260
|
if (!n || typeof n.size != "number")
|
|
3177
3261
|
return null;
|
|
3178
|
-
const t = n.size, i =
|
|
3262
|
+
const t = n.size, i = Ni(t, {
|
|
3179
3263
|
bits: !1,
|
|
3180
3264
|
output: "object"
|
|
3181
3265
|
});
|
|
3182
3266
|
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()}`;
|
|
3183
3267
|
}
|
|
3184
|
-
},
|
|
3185
|
-
locale:
|
|
3186
|
-
formatters: { ...
|
|
3187
|
-
},
|
|
3188
|
-
locale:
|
|
3189
|
-
formatters: { ...
|
|
3268
|
+
}, ho = {
|
|
3269
|
+
locale: de.EN,
|
|
3270
|
+
formatters: { ...mt }
|
|
3271
|
+
}, mo = {
|
|
3272
|
+
locale: de.RU,
|
|
3273
|
+
formatters: { ...mt },
|
|
3190
3274
|
messages: {
|
|
3191
3275
|
"chonky.toolbar.searchPlaceholder": "Поиск",
|
|
3192
3276
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3209,24 +3293,24 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3209
3293
|
// Actions
|
|
3210
3294
|
["chonky.actionGroups.Actions"]: "Действия",
|
|
3211
3295
|
["chonky.actionGroups.Options"]: "Опции",
|
|
3212
|
-
[`chonky.actions.${
|
|
3213
|
-
[`chonky.actions.${
|
|
3214
|
-
[`chonky.actions.${
|
|
3215
|
-
[`chonky.actions.${
|
|
3216
|
-
[`chonky.actions.${
|
|
3217
|
-
[`chonky.actions.${
|
|
3218
|
-
[`chonky.actions.${
|
|
3219
|
-
[`chonky.actions.${
|
|
3220
|
-
[`chonky.actions.${
|
|
3221
|
-
[`chonky.actions.${
|
|
3222
|
-
[`chonky.actions.${
|
|
3223
|
-
[`chonky.actions.${
|
|
3224
|
-
[`chonky.actions.${
|
|
3225
|
-
[`chonky.actions.${
|
|
3296
|
+
[`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
|
|
3297
|
+
[`chonky.actions.${G.CreateFolder.id}.button.name`]: "Новая папка",
|
|
3298
|
+
[`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
|
|
3299
|
+
[`chonky.actions.${G.DeleteFiles.id}.button.name`]: "Удалить файлы",
|
|
3300
|
+
[`chonky.actions.${G.OpenSelection.id}.button.name`]: "Открыть выделение",
|
|
3301
|
+
[`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "Выделить все",
|
|
3302
|
+
[`chonky.actions.${G.ClearSelection.id}.button.name`]: "Сбросить выделение",
|
|
3303
|
+
[`chonky.actions.${G.EnableListView.id}.button.name`]: "Показать список",
|
|
3304
|
+
[`chonky.actions.${G.EnableGridView.id}.button.name`]: "Показать иконки",
|
|
3305
|
+
[`chonky.actions.${G.SortFilesByName.id}.button.name`]: "Сорт. по имени",
|
|
3306
|
+
[`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
|
|
3307
|
+
[`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
|
|
3308
|
+
[`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
|
|
3309
|
+
[`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
|
|
3226
3310
|
}
|
|
3227
|
-
},
|
|
3228
|
-
locale:
|
|
3229
|
-
formatters: { ...
|
|
3311
|
+
}, po = {
|
|
3312
|
+
locale: de.HE,
|
|
3313
|
+
formatters: { ...mt },
|
|
3230
3314
|
messages: {
|
|
3231
3315
|
"chonky.toolbar.searchPlaceholder": "חיפוש",
|
|
3232
3316
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3248,52 +3332,52 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3248
3332
|
// Actions
|
|
3249
3333
|
["chonky.actionGroups.Actions"]: "פעולות",
|
|
3250
3334
|
["chonky.actionGroups.Options"]: "אפשרויות",
|
|
3251
|
-
[`chonky.actions.${
|
|
3252
|
-
[`chonky.actions.${
|
|
3253
|
-
[`chonky.actions.${
|
|
3254
|
-
[`chonky.actions.${
|
|
3255
|
-
[`chonky.actions.${
|
|
3256
|
-
[`chonky.actions.${
|
|
3257
|
-
[`chonky.actions.${
|
|
3258
|
-
[`chonky.actions.${
|
|
3259
|
-
[`chonky.actions.${
|
|
3260
|
-
[`chonky.actions.${
|
|
3261
|
-
[`chonky.actions.${
|
|
3262
|
-
[`chonky.actions.${
|
|
3263
|
-
[`chonky.actions.${
|
|
3264
|
-
[`chonky.actions.${
|
|
3335
|
+
[`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
|
|
3336
|
+
[`chonky.actions.${G.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
|
|
3337
|
+
[`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
|
|
3338
|
+
[`chonky.actions.${G.DeleteFiles.id}.button.name`]: "מחק",
|
|
3339
|
+
[`chonky.actions.${G.OpenSelection.id}.button.name`]: "פתח את הבחירה",
|
|
3340
|
+
[`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "בחר הכל",
|
|
3341
|
+
[`chonky.actions.${G.ClearSelection.id}.button.name`]: "אפס את הבחירה",
|
|
3342
|
+
[`chonky.actions.${G.EnableListView.id}.button.name`]: "תצוגת רשימה",
|
|
3343
|
+
[`chonky.actions.${G.EnableGridView.id}.button.name`]: "תצוגת גריד",
|
|
3344
|
+
[`chonky.actions.${G.SortFilesByName.id}.button.name`]: "מיון לפי שם",
|
|
3345
|
+
[`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
|
|
3346
|
+
[`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
|
|
3347
|
+
[`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
|
|
3348
|
+
[`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
|
|
3265
3349
|
}
|
|
3266
|
-
},
|
|
3267
|
-
[
|
|
3268
|
-
[
|
|
3269
|
-
[
|
|
3350
|
+
}, go = {
|
|
3351
|
+
[de.EN]: ho,
|
|
3352
|
+
[de.RU]: mo,
|
|
3353
|
+
[de.HE]: po
|
|
3270
3354
|
};
|
|
3271
|
-
class
|
|
3355
|
+
class zs extends Yt {
|
|
3272
3356
|
}
|
|
3273
|
-
const
|
|
3274
|
-
listView:
|
|
3275
|
-
gridView:
|
|
3357
|
+
const $s = G, fo = {
|
|
3358
|
+
listView: G.EnableListView.id,
|
|
3359
|
+
gridView: G.EnableGridView.id
|
|
3276
3360
|
};
|
|
3277
|
-
|
|
3278
|
-
const
|
|
3361
|
+
ki({ iconComponent: Ri });
|
|
3362
|
+
const Ws = ve.memo(
|
|
3279
3363
|
ve.forwardRef(
|
|
3280
3364
|
({
|
|
3281
3365
|
theme: e,
|
|
3282
3366
|
styles: n = { height: "100%", minWidth: "600px" },
|
|
3283
|
-
defaultView: t =
|
|
3367
|
+
defaultView: t = fo.listView,
|
|
3284
3368
|
readOnlyMode: i = !1,
|
|
3285
3369
|
locale: o,
|
|
3286
3370
|
files: r,
|
|
3287
3371
|
folderChain: d,
|
|
3288
3372
|
onFileAction: u,
|
|
3289
|
-
...
|
|
3373
|
+
...h
|
|
3290
3374
|
}, E) => {
|
|
3291
|
-
const
|
|
3375
|
+
const C = me(
|
|
3292
3376
|
(V) => null,
|
|
3293
3377
|
// file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
|
|
3294
3378
|
[]
|
|
3295
3379
|
);
|
|
3296
|
-
|
|
3380
|
+
ke({
|
|
3297
3381
|
"@global": {
|
|
3298
3382
|
".chonky-dropdownList": {
|
|
3299
3383
|
backgroundColor: `${e == null ? void 0 : e.surface} !important`
|
|
@@ -3303,21 +3387,21 @@ const Fs = ve.memo(
|
|
|
3303
3387
|
}
|
|
3304
3388
|
}
|
|
3305
3389
|
})();
|
|
3306
|
-
const
|
|
3390
|
+
const L = (V) => V.replace(/([A-Z])/g, (ne) => "-" + ne.toLowerCase()), b = $e(() => e !== void 0 ? Object.keys(e).reduce((ne, s) => {
|
|
3307
3391
|
const a = e[s];
|
|
3308
|
-
return s = s.startsWith("--") ? s : `--fp-theme-${
|
|
3309
|
-
}, {}) : {}, [e]), [
|
|
3310
|
-
return
|
|
3311
|
-
e &&
|
|
3392
|
+
return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, ne[s] = a, ne;
|
|
3393
|
+
}, {}) : {}, [e]), [P, B] = A(!1), [$, q] = A(), [H, Y] = A(!1), [K, x] = A(), [W, O] = A();
|
|
3394
|
+
return I(() => {
|
|
3395
|
+
e && B(!0), q(t), i ? Y(!0) : x([G.CreateFolder, G.DeleteFiles]), o !== void 0 && O(go[o]);
|
|
3312
3396
|
}, [e, t, i, o]), /* @__PURE__ */ l(
|
|
3313
3397
|
ae,
|
|
3314
3398
|
{
|
|
3315
3399
|
style: {
|
|
3316
3400
|
...n,
|
|
3317
|
-
...
|
|
3401
|
+
...b
|
|
3318
3402
|
},
|
|
3319
3403
|
children: /* @__PURE__ */ l(
|
|
3320
|
-
|
|
3404
|
+
Oi,
|
|
3321
3405
|
{
|
|
3322
3406
|
ref: E,
|
|
3323
3407
|
files: r ?? [],
|
|
@@ -3325,13 +3409,13 @@ const Fs = ve.memo(
|
|
|
3325
3409
|
onFileAction: (V) => {
|
|
3326
3410
|
typeof u == "function" && u(V);
|
|
3327
3411
|
},
|
|
3328
|
-
thumbnailGenerator:
|
|
3329
|
-
defaultFileViewActionId:
|
|
3330
|
-
disableDragAndDrop:
|
|
3331
|
-
fileActions:
|
|
3332
|
-
darkMode:
|
|
3333
|
-
i18n:
|
|
3334
|
-
...
|
|
3412
|
+
thumbnailGenerator: C,
|
|
3413
|
+
defaultFileViewActionId: $,
|
|
3414
|
+
disableDragAndDrop: H,
|
|
3415
|
+
fileActions: K,
|
|
3416
|
+
darkMode: P,
|
|
3417
|
+
i18n: W,
|
|
3418
|
+
...h
|
|
3335
3419
|
}
|
|
3336
3420
|
)
|
|
3337
3421
|
}
|
|
@@ -3340,67 +3424,76 @@ const Fs = ve.memo(
|
|
|
3340
3424
|
)
|
|
3341
3425
|
);
|
|
3342
3426
|
export {
|
|
3343
|
-
|
|
3344
|
-
|
|
3427
|
+
Vs as Autocomplete,
|
|
3428
|
+
ot as BboxCorner,
|
|
3345
3429
|
ae as Box,
|
|
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
|
-
|
|
3430
|
+
at as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
3431
|
+
st as COORDINATES_WGS_FRACTION_DIGITS,
|
|
3432
|
+
gs as Cesium3DTileset,
|
|
3433
|
+
As as CesiumBoundingSphere,
|
|
3434
|
+
Ms as CesiumCartesian2,
|
|
3435
|
+
Ps as CesiumCartesian3,
|
|
3436
|
+
Ds as CesiumCartographic,
|
|
3437
|
+
Ns as CesiumCesiumTerrainProvider,
|
|
3438
|
+
bs as CesiumColor,
|
|
3439
|
+
Ss as CesiumConstantPositionProperty,
|
|
3440
|
+
Ls as CesiumConstantProperty,
|
|
3441
|
+
jr as CesiumCustomDataSource,
|
|
3442
|
+
Ts as CesiumDrawingsDataSource,
|
|
3443
|
+
Is as CesiumEllipsoid,
|
|
3444
|
+
Rs as CesiumEllipsoidTerrainProvider,
|
|
3445
|
+
$r as CesiumEntity,
|
|
3446
|
+
ws as CesiumEntityDescription,
|
|
3447
|
+
Wr as CesiumEntityStaticDescription,
|
|
3448
|
+
xs as CesiumGeographicTilingScheme,
|
|
3449
|
+
fs as CesiumGeojsonLayer,
|
|
3450
|
+
Ke as CesiumImageryLayer,
|
|
3451
|
+
Fs as CesiumLabelStyle,
|
|
3452
|
+
ps as CesiumMap,
|
|
3453
|
+
Ys as CesiumMath,
|
|
3454
|
+
Cs as CesiumOSMLayer,
|
|
3455
|
+
Ur as CesiumPolygonGraphics,
|
|
3456
|
+
_s as CesiumPolylineDashMaterialProperty,
|
|
3457
|
+
ks as CesiumRectangle,
|
|
3458
|
+
Kr as CesiumRectangleGraphics,
|
|
3459
|
+
Os as CesiumResource,
|
|
3376
3460
|
oe as CesiumSceneMode,
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3461
|
+
Bs as CesiumVerticalOrigin,
|
|
3462
|
+
ms as CesiumViewer,
|
|
3463
|
+
ys as CesiumWMSLayer,
|
|
3464
|
+
vs as CesiumWMTSLayer,
|
|
3465
|
+
Es as CesiumXYZLayer,
|
|
3466
|
+
Er as CoordinatesTrackerTool,
|
|
3467
|
+
us as CssBaseline,
|
|
3468
|
+
as as DateRangePicker,
|
|
3469
|
+
ls as DateTimePicker,
|
|
3470
|
+
Vi as DateTimeRangePicker,
|
|
3471
|
+
os as DateTimeRangePickerFormControl,
|
|
3472
|
+
Ce as DrawHelper,
|
|
3387
3473
|
se as DrawType,
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3474
|
+
zs as FileHelper,
|
|
3475
|
+
Ws as FilePicker,
|
|
3476
|
+
$s as FilePickerActions,
|
|
3477
|
+
fo as FilePickerViewObj,
|
|
3478
|
+
Hs as InspectorTool,
|
|
3479
|
+
cs as MapFilterContainer,
|
|
3480
|
+
zi as Popover,
|
|
3481
|
+
he as Proj,
|
|
3482
|
+
Tr as ScaleTrackerTool,
|
|
3483
|
+
hs as ScopedCssBaseline,
|
|
3484
|
+
ds as SmartTable,
|
|
3485
|
+
de as SupportedLocales,
|
|
3486
|
+
Gs as TerrainianHeightTool,
|
|
3487
|
+
ss as TimeRangeInput,
|
|
3488
|
+
Lr as ZoomLevelTrackerTool,
|
|
3489
|
+
Xs as cesiumSampleTerrainMostDetailed,
|
|
3490
|
+
mt as defaultFormatters,
|
|
3401
3491
|
Ye as isDateRange,
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3492
|
+
Bi as mapMcToMuiTheme,
|
|
3493
|
+
Zr as polygonToGeoJSON,
|
|
3494
|
+
Jr as rectangleToGeoJSON,
|
|
3495
|
+
Qr as rectangleToPositions,
|
|
3496
|
+
le as useCesiumMap,
|
|
3497
|
+
Xt as useMappedMuiTheme,
|
|
3498
|
+
js as useMediaQuery
|
|
3406
3499
|
};
|