@map-colonies/react-components 4.3.1 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@map-colonies/react-components.es.js +1267 -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,
|
|
@@ -1561,165 +1561,166 @@ const en = Ae(null), Fr = en.Provider, he = () => {
|
|
|
1561
1561
|
navigationHelpButton: !1,
|
|
1562
1562
|
homeButton: !1,
|
|
1563
1563
|
sceneModePicker: !1,
|
|
1564
|
+
imageryProvider: !1,
|
|
1564
1565
|
...e
|
|
1565
|
-
}, _ = (
|
|
1566
|
-
const ye = t.container,
|
|
1566
|
+
}, _ = (F, k, j, fe, Te) => {
|
|
1567
|
+
const ye = t.container, Re = ye.clientWidth, Ne = ye.clientHeight, De = fe + Te;
|
|
1567
1568
|
return {
|
|
1568
|
-
left: `${
|
|
1569
|
-
top: `${
|
|
1569
|
+
left: `${Re - F < j ? F - (j - (Re - F)) : F}px`,
|
|
1570
|
+
top: `${Ne - k < De ? k - (De - (Ne - k)) : k}px`
|
|
1570
1571
|
};
|
|
1571
|
-
},
|
|
1572
|
+
}, T = me((F) => {
|
|
1572
1573
|
if (n.current !== null) {
|
|
1573
|
-
const
|
|
1574
|
-
a(!1), f(j),
|
|
1574
|
+
const k = n.current.cesiumElement, j = { x: F.offsetX, y: F.offsetY };
|
|
1575
|
+
a(!1), f(j), w(wr(k, j.x, j.y)), a(!0), y.current = F;
|
|
1575
1576
|
}
|
|
1576
1577
|
}, [n]);
|
|
1577
|
-
|
|
1578
|
-
var
|
|
1578
|
+
I(() => {
|
|
1579
|
+
var F;
|
|
1579
1580
|
if (n.current !== null) {
|
|
1580
|
-
const
|
|
1581
|
-
e.imageryContextMenu && (
|
|
1581
|
+
const k = n.current.cesiumElement;
|
|
1582
|
+
e.imageryContextMenu && (k.scene.canvas.removeEventListener("contextmenu", T), k.scene.canvas.addEventListener("contextmenu", T));
|
|
1582
1583
|
}
|
|
1583
|
-
i((
|
|
1584
|
-
}, [n, e.imageryContextMenu]),
|
|
1585
|
-
var
|
|
1586
|
-
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new
|
|
1584
|
+
i((F = n.current) == null ? void 0 : F.cesiumElement);
|
|
1585
|
+
}, [n, e.imageryContextMenu]), I(() => {
|
|
1586
|
+
var F;
|
|
1587
|
+
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new Hr(
|
|
1587
1588
|
t,
|
|
1588
|
-
(
|
|
1589
|
+
(F = e.legends) == null ? void 0 : F.mapLegendsExtractor,
|
|
1589
1590
|
() => {
|
|
1590
|
-
var
|
|
1591
|
-
O((
|
|
1591
|
+
var k;
|
|
1592
|
+
O((k = t.layersManager) == null ? void 0 : k.legendsList);
|
|
1592
1593
|
},
|
|
1593
1594
|
e.layerManagerFootprintMetaFieldPath
|
|
1594
1595
|
));
|
|
1595
|
-
}, [t]),
|
|
1596
|
+
}, [t]), I(() => {
|
|
1596
1597
|
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]),
|
|
1598
|
+
}, [e.useOptimizedTileRequests, t]), I(() => {
|
|
1599
|
+
x(e.sceneModes ?? [oe.SCENE2D, oe.SCENE3D, oe.COLUMBUS_VIEW]);
|
|
1600
|
+
}, [e.sceneModes]), I(() => {
|
|
1601
|
+
var k, j;
|
|
1602
|
+
ne(e.baseMaps);
|
|
1603
|
+
const F = (k = e.baseMaps) == null ? void 0 : k.maps.find((fe) => fe.isCurrent);
|
|
1604
|
+
F && t && ((j = t.layersManager) == null || j.setBaseMapLayers(F));
|
|
1605
|
+
}, [e.baseMaps, t]), I(() => {
|
|
1606
|
+
r(e.projection ?? he.WGS84);
|
|
1607
|
+
}, [e.projection]), I(() => {
|
|
1608
|
+
H(e.locale);
|
|
1609
|
+
}, [e.locale]), I(() => {
|
|
1609
1610
|
u(e.showMousePosition ?? !0);
|
|
1610
|
-
}, [e.showMousePosition]),
|
|
1611
|
+
}, [e.showMousePosition]), I(() => {
|
|
1611
1612
|
E(e.showZoomLevel ?? !0);
|
|
1612
|
-
}, [e.showZoomLevel]),
|
|
1613
|
-
|
|
1614
|
-
}, [e.showScale]),
|
|
1615
|
-
|
|
1616
|
-
}, [e.showLoadingProgress]),
|
|
1617
|
-
const
|
|
1613
|
+
}, [e.showZoomLevel]), I(() => {
|
|
1614
|
+
L(e.showScale ?? !0);
|
|
1615
|
+
}, [e.showScale]), I(() => {
|
|
1616
|
+
P(e.showLoadingProgress ?? !0);
|
|
1617
|
+
}, [e.showLoadingProgress]), I(() => {
|
|
1618
|
+
const F = () => {
|
|
1618
1619
|
if (t === void 0)
|
|
1619
1620
|
return {
|
|
1620
1621
|
longitude: 0,
|
|
1621
1622
|
latitude: 0,
|
|
1622
1623
|
height: 0
|
|
1623
1624
|
};
|
|
1624
|
-
const
|
|
1625
|
+
const k = () => {
|
|
1625
1626
|
const j = t.camera.positionCartographic;
|
|
1626
1627
|
return {
|
|
1627
|
-
longitude:
|
|
1628
|
-
latitude:
|
|
1628
|
+
longitude: Be(j.longitude),
|
|
1629
|
+
latitude: Be(j.latitude),
|
|
1629
1630
|
height: j.height
|
|
1630
1631
|
};
|
|
1631
1632
|
};
|
|
1632
|
-
if (t.scene.mode ===
|
|
1633
|
-
const j = new
|
|
1633
|
+
if (t.scene.mode === we.SCENE3D) {
|
|
1634
|
+
const j = new Ee(
|
|
1634
1635
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1635
1636
|
t.container.clientWidth / 2,
|
|
1636
1637
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1637
1638
|
t.container.clientHeight / 2
|
|
1638
|
-
), fe = t.scene.camera.getPickRay(j),
|
|
1639
|
-
if (!
|
|
1639
|
+
), fe = t.scene.camera.getPickRay(j), Te = t.scene.globe.pick(fe, t.scene);
|
|
1640
|
+
if (!Te)
|
|
1640
1641
|
return {
|
|
1641
1642
|
longitude: 0,
|
|
1642
1643
|
latitude: 0,
|
|
1643
1644
|
height: 0
|
|
1644
1645
|
};
|
|
1645
|
-
const ye = t.scene.globe.ellipsoid.cartesianToCartographic(
|
|
1646
|
+
const ye = t.scene.globe.ellipsoid.cartesianToCartographic(Te);
|
|
1646
1647
|
return ye !== void 0 ? {
|
|
1647
|
-
longitude:
|
|
1648
|
-
latitude:
|
|
1648
|
+
longitude: Be(ye.longitude),
|
|
1649
|
+
latitude: Be(ye.latitude),
|
|
1649
1650
|
height: t.scene.camera.positionCartographic.height
|
|
1650
|
-
} :
|
|
1651
|
+
} : k();
|
|
1651
1652
|
} else
|
|
1652
|
-
return
|
|
1653
|
+
return k();
|
|
1653
1654
|
};
|
|
1654
1655
|
t && (t.camera.moveEnd.addEventListener(() => {
|
|
1655
|
-
if (t.scene.mode !==
|
|
1656
|
-
const
|
|
1657
|
-
position:
|
|
1658
|
-
direction:
|
|
1659
|
-
up:
|
|
1660
|
-
right:
|
|
1661
|
-
transform:
|
|
1662
|
-
frustum:
|
|
1656
|
+
if (t.scene.mode !== we.MORPHING) {
|
|
1657
|
+
const k = t.camera, j = {
|
|
1658
|
+
position: F(),
|
|
1659
|
+
direction: k.direction.clone(),
|
|
1660
|
+
up: k.up.clone(),
|
|
1661
|
+
right: k.right.clone(),
|
|
1662
|
+
transform: k.transform.clone(),
|
|
1663
|
+
frustum: k.frustum.clone()
|
|
1663
1664
|
};
|
|
1664
1665
|
Y.current = j;
|
|
1665
1666
|
}
|
|
1666
|
-
}),
|
|
1667
|
-
t.scene.globe.tilesLoaded === !0 ?
|
|
1667
|
+
}), b && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
|
|
1668
|
+
t.scene.globe.tilesLoaded === !0 ? $(!1) : $(!0);
|
|
1668
1669
|
}));
|
|
1669
|
-
}, [t]),
|
|
1670
|
-
const
|
|
1670
|
+
}, [t]), I(() => {
|
|
1671
|
+
const F = () => {
|
|
1671
1672
|
if (t && Y.current) {
|
|
1672
|
-
const
|
|
1673
|
+
const k = Y.current;
|
|
1673
1674
|
t.camera.flyTo({
|
|
1674
|
-
destination: pe.fromDegrees(
|
|
1675
|
+
destination: pe.fromDegrees(k.position.longitude, k.position.latitude, k.position.height),
|
|
1675
1676
|
duration: 0
|
|
1676
1677
|
});
|
|
1677
1678
|
}
|
|
1678
1679
|
};
|
|
1679
|
-
return t && t.scene.morphComplete.addEventListener(
|
|
1680
|
+
return t && t.scene.morphComplete.addEventListener(F), () => {
|
|
1680
1681
|
if (t)
|
|
1681
1682
|
try {
|
|
1682
|
-
t.scene.morphComplete.removeEventListener(
|
|
1683
|
+
t.scene.morphComplete.removeEventListener(F);
|
|
1683
1684
|
} catch {
|
|
1684
1685
|
console.error("morphCompleteHandler event not cleaned");
|
|
1685
1686
|
}
|
|
1686
1687
|
};
|
|
1687
|
-
}, [t]),
|
|
1688
|
-
const
|
|
1689
|
-
t &&
|
|
1690
|
-
destination: pe.fromDegrees(
|
|
1688
|
+
}, [t]), I(() => {
|
|
1689
|
+
const F = e.zoom, k = e.center;
|
|
1690
|
+
t && Ve(F) && Pi(k) && t.camera.flyTo({
|
|
1691
|
+
destination: pe.fromDegrees(k[0], k[1], vr(F)),
|
|
1691
1692
|
duration: 0
|
|
1692
1693
|
});
|
|
1693
1694
|
}, [e.zoom, e.center, t]);
|
|
1694
|
-
const
|
|
1695
|
-
/* @__PURE__ */ N(
|
|
1696
|
-
|
|
1695
|
+
const M = me(() => t && Jn(
|
|
1696
|
+
/* @__PURE__ */ N(te, { children: [
|
|
1697
|
+
b === !0 ? B && /* @__PURE__ */ l(On, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(te, {}),
|
|
1697
1698
|
/* @__PURE__ */ N(ae, { className: "sideToolsContainer", children: [
|
|
1698
|
-
/* @__PURE__ */ l(
|
|
1699
|
-
/* @__PURE__ */ l(
|
|
1699
|
+
/* @__PURE__ */ l(Ar, { sceneModes: K, baseMaps: V, locale: q }),
|
|
1700
|
+
/* @__PURE__ */ l(xr, { onClick: () => v(!m) })
|
|
1700
1701
|
] }),
|
|
1701
1702
|
/* @__PURE__ */ N(ae, { className: "toolsContainer", children: [
|
|
1702
|
-
d === !0 ? /* @__PURE__ */ l(
|
|
1703
|
-
|
|
1704
|
-
|
|
1703
|
+
d === !0 ? /* @__PURE__ */ l(Er, { projection: o }) : /* @__PURE__ */ l(te, {}),
|
|
1704
|
+
h === !0 ? /* @__PURE__ */ l(Lr, { locale: q }) : /* @__PURE__ */ l(te, {}),
|
|
1705
|
+
C === !0 ? /* @__PURE__ */ l(Tr, { locale: q }) : /* @__PURE__ */ l(te, {})
|
|
1705
1706
|
] })
|
|
1706
1707
|
] }),
|
|
1707
1708
|
document.querySelector(".cesium-viewer")
|
|
1708
|
-
), [V,
|
|
1709
|
-
return /* @__PURE__ */ l(
|
|
1709
|
+
), [V, q, t, o, K, d, C, m, B]);
|
|
1710
|
+
return /* @__PURE__ */ l(Qn, { className: "viewer", full: !0, ref: n, ...S, children: /* @__PURE__ */ N(Vr, { value: t, children: [
|
|
1710
1711
|
/* @__PURE__ */ l(
|
|
1711
|
-
|
|
1712
|
+
Rr,
|
|
1712
1713
|
{
|
|
1713
|
-
title: (
|
|
1714
|
-
isOpen:
|
|
1715
|
-
toggleSidebar: () => v(!
|
|
1716
|
-
noLegendsText: (
|
|
1717
|
-
legends: ((X = e.legends) == null ? void 0 : X.legendsList) ??
|
|
1714
|
+
title: (D = e.legends) == null ? void 0 : D.title,
|
|
1715
|
+
isOpen: m,
|
|
1716
|
+
toggleSidebar: () => v(!m),
|
|
1717
|
+
noLegendsText: (U = e.legends) == null ? void 0 : U.emptyText,
|
|
1718
|
+
legends: ((X = e.legends) == null ? void 0 : X.legendsList) ?? W,
|
|
1718
1719
|
actionsTexts: (R = e.legends) == null ? void 0 : R.actionsTexts
|
|
1719
1720
|
}
|
|
1720
1721
|
),
|
|
1721
1722
|
e.children,
|
|
1722
|
-
|
|
1723
|
+
M(),
|
|
1723
1724
|
e.imageryContextMenu && s && c && g && ve.cloneElement(e.imageryContextMenu, {
|
|
1724
1725
|
data: (z = t == null ? void 0 : t.layersManager) == null ? void 0 : z.findLayerByPOI(c.x, c.y, !1),
|
|
1725
1726
|
position: {
|
|
@@ -1730,13 +1731,13 @@ const en = Ae(null), Fr = en.Provider, he = () => {
|
|
|
1730
1731
|
style: _(
|
|
1731
1732
|
c.x,
|
|
1732
1733
|
c.y,
|
|
1733
|
-
((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ??
|
|
1734
|
-
((
|
|
1735
|
-
((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ??
|
|
1734
|
+
((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ?? St,
|
|
1735
|
+
((ie = e.imageryContextMenuSize) == null ? void 0 : ie.height) ?? Lt,
|
|
1736
|
+
((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ?? Gr
|
|
1736
1737
|
),
|
|
1737
1738
|
size: e.imageryContextMenuSize ?? {
|
|
1738
|
-
height:
|
|
1739
|
-
width:
|
|
1739
|
+
height: Lt,
|
|
1740
|
+
width: St
|
|
1740
1741
|
},
|
|
1741
1742
|
handleClose: () => {
|
|
1742
1743
|
a(!s);
|
|
@@ -1744,66 +1745,66 @@ const en = Ae(null), Fr = en.Provider, he = () => {
|
|
|
1744
1745
|
contextEvt: y.current
|
|
1745
1746
|
})
|
|
1746
1747
|
] }) });
|
|
1747
|
-
},
|
|
1748
|
-
const n =
|
|
1748
|
+
}, zr = 0, gs = (e) => {
|
|
1749
|
+
const n = le();
|
|
1749
1750
|
return /* @__PURE__ */ l(
|
|
1750
|
-
|
|
1751
|
+
ei,
|
|
1751
1752
|
{
|
|
1752
1753
|
...e,
|
|
1753
1754
|
onReady: (t) => {
|
|
1754
1755
|
e.isZoomTo === !0 && n.zoomTo(t);
|
|
1755
1756
|
const i = n.scene;
|
|
1756
1757
|
i.globe.depthTestAgainstTerrain = !0;
|
|
1757
|
-
const o =
|
|
1758
|
+
const o = Oe.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? zr;
|
|
1758
1759
|
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 =
|
|
1760
|
+
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());
|
|
1761
|
+
t.modelMatrix = gi.fromTranslation(h);
|
|
1761
1762
|
}
|
|
1762
1763
|
}
|
|
1763
1764
|
}
|
|
1764
1765
|
);
|
|
1765
|
-
},
|
|
1766
|
-
Math.abs(e[0]) ===
|
|
1767
|
-
},
|
|
1766
|
+
}, Mt = 180, Pt = 1e-3, Dt = -1, At = (e) => Math.abs(e) / e, It = (e) => {
|
|
1767
|
+
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);
|
|
1768
|
+
}, xt = (e) => {
|
|
1768
1769
|
switch (e.type) {
|
|
1769
1770
|
case "LineString":
|
|
1770
1771
|
e.coordinates.forEach((n) => {
|
|
1771
|
-
|
|
1772
|
+
It(n);
|
|
1772
1773
|
});
|
|
1773
1774
|
break;
|
|
1774
1775
|
case "Polygon":
|
|
1775
1776
|
e.coordinates.forEach((n) => {
|
|
1776
1777
|
n.forEach((t) => {
|
|
1777
|
-
|
|
1778
|
+
It(t);
|
|
1778
1779
|
});
|
|
1779
1780
|
});
|
|
1780
1781
|
break;
|
|
1781
1782
|
}
|
|
1782
|
-
},
|
|
1783
|
+
}, fs = (e) => {
|
|
1783
1784
|
const { data: n, ...t } = e;
|
|
1784
1785
|
return n && (typeof n.features < "u" ? n.features.forEach((i) => {
|
|
1785
|
-
|
|
1786
|
-
}) :
|
|
1787
|
-
},
|
|
1788
|
-
const { meta: n, ...t } = e, i =
|
|
1789
|
-
return
|
|
1786
|
+
xt(i.geometry);
|
|
1787
|
+
}) : xt(n)), /* @__PURE__ */ l(ti, { data: n, ...t });
|
|
1788
|
+
}, Ke = (e) => {
|
|
1789
|
+
const { meta: n, ...t } = e, i = le();
|
|
1790
|
+
return dn(() => {
|
|
1790
1791
|
var o;
|
|
1791
1792
|
(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
|
-
},
|
|
1793
|
+
}, [n, i]), /* @__PURE__ */ l(ni, { ...t });
|
|
1794
|
+
}, ys = (e) => {
|
|
1795
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new rn(n, i) : new ct(n);
|
|
1796
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
|
|
1797
|
+
}, vs = (e) => {
|
|
1798
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new on(n, i) : new dt(n);
|
|
1799
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
|
|
1800
|
+
}, Es = (e) => {
|
|
1801
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new nn(n, i) : new lt(n);
|
|
1802
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: o });
|
|
1803
|
+
}, Cs = (e) => {
|
|
1803
1804
|
const { options: n, ...t } = e;
|
|
1804
|
-
return /* @__PURE__ */ l(
|
|
1805
|
-
},
|
|
1806
|
-
var
|
|
1805
|
+
return /* @__PURE__ */ l(Ke, { ...t, imageryProvider: new fi(n) });
|
|
1806
|
+
}, $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 });
|
|
1807
|
+
var Ce = function() {
|
|
1807
1808
|
var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
|
|
1808
1809
|
function i(s, a = new p.Color(1, 1, 0, 0.5), y = new p.Color(1, 1, 1, 1)) {
|
|
1809
1810
|
this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
|
|
@@ -1815,27 +1816,27 @@ var Ee = function() {
|
|
|
1815
1816
|
}
|
|
1816
1817
|
i.prototype.initialiseHandlers = function() {
|
|
1817
1818
|
var s = this._scene, a = this, y = new p.ScreenSpaceEventHandler(s.canvas);
|
|
1818
|
-
function c(
|
|
1819
|
+
function c(m, v) {
|
|
1819
1820
|
if (a._handlersMuted != !0) {
|
|
1820
1821
|
var g = s.pick(v);
|
|
1821
|
-
g && g.primitive && g.primitive[
|
|
1822
|
+
g && g.primitive && g.primitive[m] && g.primitive[m](v);
|
|
1822
1823
|
}
|
|
1823
1824
|
}
|
|
1824
|
-
y.setInputAction(function(
|
|
1825
|
-
c("leftClick",
|
|
1826
|
-
}, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(
|
|
1827
|
-
c("leftDoubleClick",
|
|
1825
|
+
y.setInputAction(function(m) {
|
|
1826
|
+
c("leftClick", m.position);
|
|
1827
|
+
}, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(m) {
|
|
1828
|
+
c("leftDoubleClick", m.position);
|
|
1828
1829
|
}, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
1829
1830
|
var f;
|
|
1830
|
-
y.setInputAction(function(
|
|
1831
|
+
y.setInputAction(function(m) {
|
|
1831
1832
|
if (a._handlersMuted != !0) {
|
|
1832
|
-
var v = s.pick(
|
|
1833
|
-
f && (!v || f != v.primitive) && (!(f.isDestroyed && f.isDestroyed()) && f.mouseOut(
|
|
1833
|
+
var v = s.pick(m.endPosition);
|
|
1834
|
+
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
1835
|
}
|
|
1835
|
-
}, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(
|
|
1836
|
-
c("leftUp",
|
|
1837
|
-
}, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(
|
|
1838
|
-
c("leftDown",
|
|
1836
|
+
}, p.ScreenSpaceEventType.MOUSE_MOVE), y.setInputAction(function(m) {
|
|
1837
|
+
c("leftUp", m.position);
|
|
1838
|
+
}, p.ScreenSpaceEventType.LEFT_UP), y.setInputAction(function(m) {
|
|
1839
|
+
c("leftDown", m.position);
|
|
1839
1840
|
}, p.ScreenSpaceEventType.LEFT_DOWN);
|
|
1840
1841
|
}, i.prototype.setListener = function(s, a, y) {
|
|
1841
1842
|
s[a] = y;
|
|
@@ -1876,9 +1877,9 @@ var Ee = function() {
|
|
|
1876
1877
|
}),
|
|
1877
1878
|
material: t,
|
|
1878
1879
|
granularity: Math.PI / 180
|
|
1879
|
-
}), d = O(o, {}), u = O(o, {}),
|
|
1880
|
+
}), d = O(o, {}), u = O(o, {}), h = O(o, {}), E = O(r, {
|
|
1880
1881
|
rotation: 0
|
|
1881
|
-
}),
|
|
1882
|
+
}), C = O(o, {
|
|
1882
1883
|
width: 5,
|
|
1883
1884
|
geodesic: !0,
|
|
1884
1885
|
granularity: 1e4,
|
|
@@ -1886,11 +1887,11 @@ var Ee = function() {
|
|
|
1886
1887
|
aboveGround: !1
|
|
1887
1888
|
}),
|
|
1888
1889
|
material: t
|
|
1889
|
-
}),
|
|
1890
|
+
}), L = function() {
|
|
1890
1891
|
function s() {
|
|
1891
1892
|
}
|
|
1892
1893
|
return s.prototype.initialiseOptions = function(a) {
|
|
1893
|
-
|
|
1894
|
+
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
1895
|
}, s.prototype.setAttribute = function(a, y) {
|
|
1895
1896
|
this[a] = y, this._createPrimitive = !0;
|
|
1896
1897
|
}, s.prototype.getAttribute = function(a) {
|
|
@@ -1935,8 +1936,8 @@ var Ee = function() {
|
|
|
1935
1936
|
})
|
|
1936
1937
|
}));
|
|
1937
1938
|
}
|
|
1938
|
-
var
|
|
1939
|
-
|
|
1939
|
+
var m = this._primitive;
|
|
1940
|
+
m.appearance.material = this.material, m.debugShowBoundingVolume = this.debugShowBoundingVolume, m.update(a, y, c), this._outlinePolygon && this._outlinePolygon.update(a, y, c);
|
|
1940
1941
|
}
|
|
1941
1942
|
}, s.prototype.isDestroyed = function() {
|
|
1942
1943
|
return !1;
|
|
@@ -1952,7 +1953,7 @@ var Ee = function() {
|
|
|
1952
1953
|
throw new p.DeveloperError("Extent is required");
|
|
1953
1954
|
a = O(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
|
|
1954
1955
|
}
|
|
1955
|
-
return s.prototype = new
|
|
1956
|
+
return s.prototype = new L(), s.prototype.setExtent = function(a) {
|
|
1956
1957
|
this.setAttribute("extent", a);
|
|
1957
1958
|
}, s.prototype.getExtent = function() {
|
|
1958
1959
|
return this.getAttribute("extent");
|
|
@@ -1975,7 +1976,7 @@ var Ee = function() {
|
|
|
1975
1976
|
function s(a) {
|
|
1976
1977
|
a = O(a, r), this.initialiseOptions(a), this.isPolygon = !0;
|
|
1977
1978
|
}
|
|
1978
|
-
return s.prototype = new
|
|
1979
|
+
return s.prototype = new L(), s.prototype.setPositions = function(a) {
|
|
1979
1980
|
this.setAttribute("positions", a);
|
|
1980
1981
|
}, s.prototype.getPositions = function() {
|
|
1981
1982
|
return this.getAttribute("positions");
|
|
@@ -2000,7 +2001,7 @@ var Ee = function() {
|
|
|
2000
2001
|
throw new p.DeveloperError("Center and radius are required");
|
|
2001
2002
|
a = O(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
|
|
2002
2003
|
}
|
|
2003
|
-
return s.prototype = new
|
|
2004
|
+
return s.prototype = new L(), s.prototype.setCenter = function(a) {
|
|
2004
2005
|
this.setAttribute("center", a);
|
|
2005
2006
|
}, s.prototype.setRadius = function(a) {
|
|
2006
2007
|
this.setAttribute("radius", Math.max(0.1, a));
|
|
@@ -2031,7 +2032,7 @@ var Ee = function() {
|
|
|
2031
2032
|
throw new p.DeveloperError("Center and semi major and semi minor axis are required");
|
|
2032
2033
|
a = O(a, E), this.initialiseOptions(a);
|
|
2033
2034
|
}
|
|
2034
|
-
return s.prototype = new
|
|
2035
|
+
return s.prototype = new L(), s.prototype.setCenter = function(a) {
|
|
2035
2036
|
this.setAttribute("center", a);
|
|
2036
2037
|
}, s.prototype.setSemiMajorAxis = function(a) {
|
|
2037
2038
|
a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
|
|
@@ -2070,9 +2071,9 @@ var Ee = function() {
|
|
|
2070
2071
|
}, s;
|
|
2071
2072
|
}(), i.PolylinePrimitive = function() {
|
|
2072
2073
|
function s(a) {
|
|
2073
|
-
a = O(a,
|
|
2074
|
+
a = O(a, C), this.initialiseOptions(a);
|
|
2074
2075
|
}
|
|
2075
|
-
return s.prototype = new
|
|
2076
|
+
return s.prototype = new L(), s.prototype.setPositions = function(a) {
|
|
2076
2077
|
this.setAttribute("positions", a);
|
|
2077
2078
|
}, s.prototype.setWidth = function(a) {
|
|
2078
2079
|
this.setAttribute("width", a);
|
|
@@ -2095,15 +2096,15 @@ var Ee = function() {
|
|
|
2095
2096
|
});
|
|
2096
2097
|
}, s;
|
|
2097
2098
|
}();
|
|
2098
|
-
var
|
|
2099
|
+
var b = {
|
|
2099
2100
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2100
2101
|
shiftX: 0,
|
|
2101
2102
|
shiftY: 0
|
|
2102
|
-
},
|
|
2103
|
+
}, P = {
|
|
2103
2104
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2104
2105
|
shiftX: 0,
|
|
2105
2106
|
shiftY: 0
|
|
2106
|
-
},
|
|
2107
|
+
}, B = {
|
|
2107
2108
|
iconUrl: "./assets/img/dragIconLight.png",
|
|
2108
2109
|
shiftX: 0,
|
|
2109
2110
|
shiftY: 0
|
|
@@ -2112,7 +2113,7 @@ var Ee = function() {
|
|
|
2112
2113
|
var c = new i.BillboardGroup(this, a);
|
|
2113
2114
|
return c.addBillboards(s, y), c;
|
|
2114
2115
|
}, i.BillboardGroup = function(s, a) {
|
|
2115
|
-
this._drawHelper = s, this._scene = s._scene, this._options = O(a,
|
|
2116
|
+
this._drawHelper = s, this._scene = s._scene, this._options = O(a, b);
|
|
2116
2117
|
var y = new p.BillboardCollection();
|
|
2117
2118
|
this._scene.primitives.add(y), this._billboards = y, this._orderedBillboards = [];
|
|
2118
2119
|
}, i.BillboardGroup.prototype.createBillboard = function(s, a) {
|
|
@@ -2128,33 +2129,33 @@ var Ee = function() {
|
|
|
2128
2129
|
color: n
|
|
2129
2130
|
});
|
|
2130
2131
|
if (a) {
|
|
2131
|
-
let
|
|
2132
|
+
let m = function(g) {
|
|
2132
2133
|
f.enableRotate = g;
|
|
2133
2134
|
}, v = function() {
|
|
2134
|
-
for (var g = 0,
|
|
2135
|
+
for (var g = 0, w = c._orderedBillboards.length; g < w && c._orderedBillboards[g] != y; ++g)
|
|
2135
2136
|
;
|
|
2136
2137
|
return g;
|
|
2137
2138
|
};
|
|
2138
2139
|
var c = this, f = this._scene.screenSpaceCameraController;
|
|
2139
2140
|
if (a.dragHandlers) {
|
|
2140
2141
|
var c = this;
|
|
2141
|
-
V(y, "leftDown", function(
|
|
2142
|
-
function S(
|
|
2143
|
-
y.position =
|
|
2144
|
-
for (var
|
|
2142
|
+
V(y, "leftDown", function(w) {
|
|
2143
|
+
function S(M) {
|
|
2144
|
+
y.position = M;
|
|
2145
|
+
for (var D = 0, U = c._orderedBillboards.length; D < U && c._orderedBillboards[D] != y; ++D)
|
|
2145
2146
|
;
|
|
2146
|
-
a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(),
|
|
2147
|
+
a.dragHandlers.onDrag && a.dragHandlers.onDrag(v(), M);
|
|
2147
2148
|
}
|
|
2148
|
-
function _(
|
|
2149
|
-
|
|
2149
|
+
function _(M) {
|
|
2150
|
+
T.destroy(), m(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(v(), M);
|
|
2150
2151
|
}
|
|
2151
|
-
var
|
|
2152
|
-
|
|
2153
|
-
var
|
|
2154
|
-
|
|
2155
|
-
}, p.ScreenSpaceEventType.MOUSE_MOVE),
|
|
2156
|
-
_(c._scene.camera.pickEllipsoid(
|
|
2157
|
-
}, p.ScreenSpaceEventType.LEFT_UP),
|
|
2152
|
+
var T = new p.ScreenSpaceEventHandler(c._scene.canvas);
|
|
2153
|
+
T.setInputAction(function(M) {
|
|
2154
|
+
var D = c._scene.camera.pickEllipsoid(M.endPosition, e);
|
|
2155
|
+
D ? S(D) : _(D);
|
|
2156
|
+
}, p.ScreenSpaceEventType.MOUSE_MOVE), T.setInputAction(function(M) {
|
|
2157
|
+
_(c._scene.camera.pickEllipsoid(M.position, e));
|
|
2158
|
+
}, p.ScreenSpaceEventType.LEFT_UP), m(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(v(), c._scene.camera.pickEllipsoid(w, e));
|
|
2158
2159
|
});
|
|
2159
2160
|
}
|
|
2160
2161
|
a.onDoubleClick && V(y, "leftDoubleClick", function(g) {
|
|
@@ -2189,69 +2190,69 @@ var Ee = function() {
|
|
|
2189
2190
|
}, i.BillboardGroup.prototype.setOnTop = function() {
|
|
2190
2191
|
this._scene.primitives.raiseToTop(this._billboards);
|
|
2191
2192
|
}, i.prototype.startDrawingMarker = function(a) {
|
|
2192
|
-
var a = O(a,
|
|
2193
|
+
var a = O(a, b);
|
|
2193
2194
|
this.startDrawing(function() {
|
|
2194
|
-
|
|
2195
|
+
m.remove(), v.destroy(), f.setVisible(!1);
|
|
2195
2196
|
});
|
|
2196
2197
|
var y = this, c = this._scene;
|
|
2197
2198
|
c.primitives;
|
|
2198
|
-
var f = this._tooltip,
|
|
2199
|
+
var f = this._tooltip, m = new i.BillboardGroup(this, a), v = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2199
2200
|
v.setInputAction(function(g) {
|
|
2200
2201
|
if (g.position != null) {
|
|
2201
|
-
var
|
|
2202
|
-
|
|
2202
|
+
var w = c.camera.pickEllipsoid(g.position, e);
|
|
2203
|
+
w && (m.addBillboard(w), y.stopDrawing(), a.callback(w));
|
|
2203
2204
|
}
|
|
2204
2205
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(g) {
|
|
2205
|
-
var
|
|
2206
|
-
if (
|
|
2207
|
-
var S = c.camera.pickEllipsoid(
|
|
2206
|
+
var w = g.endPosition;
|
|
2207
|
+
if (w != null) {
|
|
2208
|
+
var S = c.camera.pickEllipsoid(w, e);
|
|
2208
2209
|
S ? f.showAt(
|
|
2209
|
-
|
|
2210
|
-
"<p>Click to add your marker. Position is: </p>" +
|
|
2211
|
-
) : f.showAt(
|
|
2210
|
+
w,
|
|
2211
|
+
"<p>Click to add your marker. Position is: </p>" + K(e.cartesianToCartographic(S))
|
|
2212
|
+
) : f.showAt(w, "<p>Click on the globe to add your marker.</p>");
|
|
2212
2213
|
}
|
|
2213
2214
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2214
2215
|
}, i.prototype.startDrawingPolygon = function(a) {
|
|
2215
2216
|
var a = O(a, r);
|
|
2216
2217
|
this.startDrawingPolyshape(!0, a);
|
|
2217
2218
|
}, i.prototype.startDrawingPolyline = function(a) {
|
|
2218
|
-
var a = O(a,
|
|
2219
|
+
var a = O(a, C);
|
|
2219
2220
|
this.startDrawingPolyshape(!1, a);
|
|
2220
2221
|
}, i.prototype.startDrawingPolyshape = function(s, a) {
|
|
2221
2222
|
this.startDrawing(function() {
|
|
2222
|
-
f.remove(g), S.remove(), _.destroy(),
|
|
2223
|
+
f.remove(g), S.remove(), _.destroy(), m.setVisible(!1), H(c);
|
|
2223
2224
|
});
|
|
2224
|
-
var y = this, c = this._scene, f = c.primitives,
|
|
2225
|
-
s ? g = new
|
|
2226
|
-
var
|
|
2227
|
-
|
|
2228
|
-
if (
|
|
2229
|
-
var
|
|
2230
|
-
|
|
2225
|
+
var y = this, c = this._scene, f = c.primitives, m = this._tooltip, v = s ? 3 : 2, g;
|
|
2226
|
+
s ? g = new Ce.PolygonPrimitive(a) : g = new Ce.PolylinePrimitive(a), g.asynchronous = !1, f.add(g);
|
|
2227
|
+
var w = [], S = new i.BillboardGroup(this, b), _ = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2228
|
+
q(c), _.setInputAction(function(T) {
|
|
2229
|
+
if (T.position != null) {
|
|
2230
|
+
var M = c.camera.pickEllipsoid(T.position, e);
|
|
2231
|
+
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
2232
|
}
|
|
2232
|
-
}, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(
|
|
2233
|
-
var
|
|
2234
|
-
if (
|
|
2235
|
-
if (
|
|
2236
|
-
|
|
2233
|
+
}, p.ScreenSpaceEventType.LEFT_CLICK), _.setInputAction(function(T) {
|
|
2234
|
+
var M = T.endPosition;
|
|
2235
|
+
if (M != null)
|
|
2236
|
+
if (w.length == 0)
|
|
2237
|
+
m.showAt(M, "<p>Click to add first point</p>");
|
|
2237
2238
|
else {
|
|
2238
|
-
var
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
"<p>Click to add new point (" +
|
|
2239
|
+
var D = c.camera.pickEllipsoid(M, e);
|
|
2240
|
+
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(
|
|
2241
|
+
M,
|
|
2242
|
+
"<p>Click to add new point (" + w.length + ")</p>" + (w.length > v ? "<p>Double click to finish drawing</p>" : "")
|
|
2242
2243
|
));
|
|
2243
2244
|
}
|
|
2244
|
-
}, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(
|
|
2245
|
-
var
|
|
2246
|
-
if (
|
|
2247
|
-
if (
|
|
2245
|
+
}, p.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(T) {
|
|
2246
|
+
var M = T.position;
|
|
2247
|
+
if (M != null) {
|
|
2248
|
+
if (w.length < v + 2)
|
|
2248
2249
|
return;
|
|
2249
|
-
var
|
|
2250
|
-
|
|
2250
|
+
var D = c.camera.pickEllipsoid(M, e);
|
|
2251
|
+
D && (H(c), y.stopDrawing(), typeof a.callback == "function" && (w.length - 1, a.callback(w)));
|
|
2251
2252
|
}
|
|
2252
2253
|
}, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2253
2254
|
};
|
|
2254
|
-
function
|
|
2255
|
+
function $(s) {
|
|
2255
2256
|
return e.cartographicArrayToCartesianArray([
|
|
2256
2257
|
p.Rectangle.northwest(s),
|
|
2257
2258
|
p.Rectangle.northeast(s),
|
|
@@ -2259,58 +2260,58 @@ var Ee = function() {
|
|
|
2259
2260
|
p.Rectangle.southwest(s)
|
|
2260
2261
|
]);
|
|
2261
2262
|
}
|
|
2262
|
-
function
|
|
2263
|
+
function q(s) {
|
|
2263
2264
|
s && (s.canvas.style.cursor = "crosshair");
|
|
2264
2265
|
}
|
|
2265
|
-
function
|
|
2266
|
+
function H(s) {
|
|
2266
2267
|
s && (s.canvas.style.cursor = "");
|
|
2267
2268
|
}
|
|
2268
2269
|
i.prototype.startDrawingExtent = function(a) {
|
|
2269
2270
|
var a = O(a, r);
|
|
2270
2271
|
this.startDrawing(function() {
|
|
2271
|
-
g != null && f.remove(g),
|
|
2272
|
+
g != null && f.remove(g), w != null && w.remove(), S.destroy(), m.setVisible(!1), H(c);
|
|
2272
2273
|
});
|
|
2273
|
-
var y = this, c = this._scene, f = this._scene.primitives,
|
|
2274
|
-
|
|
2275
|
-
function _(
|
|
2276
|
-
g == null && (g = new
|
|
2277
|
-
extent:
|
|
2274
|
+
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);
|
|
2275
|
+
q(c);
|
|
2276
|
+
function _(T) {
|
|
2277
|
+
g == null && (g = new Ce.ExtentPrimitive({
|
|
2278
|
+
extent: T,
|
|
2278
2279
|
material: a.material
|
|
2279
|
-
}), g.asynchronous = !1, f.add(g)), g.setExtent(
|
|
2280
|
-
var
|
|
2281
|
-
|
|
2280
|
+
}), g.asynchronous = !1, f.add(g)), g.setExtent(T);
|
|
2281
|
+
var M = $(T);
|
|
2282
|
+
w == null ? (w = new i.BillboardGroup(y, b), w.addBillboards(M)) : w.updateBillboardsPositions(M);
|
|
2282
2283
|
}
|
|
2283
|
-
S.setInputAction(function(
|
|
2284
|
-
if (
|
|
2285
|
-
var
|
|
2286
|
-
if (
|
|
2284
|
+
S.setInputAction(function(T) {
|
|
2285
|
+
if (T.position != null) {
|
|
2286
|
+
var M = c.camera.pickEllipsoid(T.position, e);
|
|
2287
|
+
if (M)
|
|
2287
2288
|
if (g == null) {
|
|
2288
|
-
v = e.cartesianToCartographic(
|
|
2289
|
-
var
|
|
2290
|
-
_(
|
|
2289
|
+
v = e.cartesianToCartographic(M);
|
|
2290
|
+
var D = Y(v, v);
|
|
2291
|
+
_(D);
|
|
2291
2292
|
} else
|
|
2292
|
-
y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(
|
|
2293
|
+
y.stopDrawing(), typeof a.callback == "function" && a.callback(Y(v, e.cartesianToCartographic(M)));
|
|
2293
2294
|
}
|
|
2294
|
-
}, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(
|
|
2295
|
-
var
|
|
2296
|
-
if (
|
|
2295
|
+
}, p.ScreenSpaceEventType.LEFT_DOWN), S.setInputAction(function(T) {
|
|
2296
|
+
var M = T.endPosition;
|
|
2297
|
+
if (M != null)
|
|
2297
2298
|
if (g == null)
|
|
2298
|
-
|
|
2299
|
+
m.showAt(M, "<p>Click to start drawing rectangle</p>");
|
|
2299
2300
|
else {
|
|
2300
|
-
var
|
|
2301
|
-
if (
|
|
2302
|
-
var
|
|
2303
|
-
_(
|
|
2301
|
+
var D = c.camera.pickEllipsoid(M, e);
|
|
2302
|
+
if (D) {
|
|
2303
|
+
var U = Y(v, e.cartesianToCartographic(D));
|
|
2304
|
+
_(U), m.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
|
|
2304
2305
|
}
|
|
2305
2306
|
}
|
|
2306
2307
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2307
2308
|
}, i.prototype.startDrawingCircle = function(a) {
|
|
2308
2309
|
var a = O(a, r);
|
|
2309
2310
|
this.startDrawing(function() {
|
|
2310
|
-
v != null && f.remove(v), g.remove(),
|
|
2311
|
+
v != null && f.remove(v), g.remove(), w.destroy(), m.setVisible(!1);
|
|
2311
2312
|
});
|
|
2312
|
-
var y = this, c = this._scene, f = this._scene.primitives,
|
|
2313
|
-
|
|
2313
|
+
var y = this, c = this._scene, f = this._scene.primitives, m = this._tooltip, v = null, g = null, w = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2314
|
+
w.setInputAction(function(S) {
|
|
2314
2315
|
if (S.position != null) {
|
|
2315
2316
|
var _ = c.camera.pickEllipsoid(S.position, e);
|
|
2316
2317
|
_ && (v == null ? (v = new i.CirclePrimitive({
|
|
@@ -2318,16 +2319,16 @@ var Ee = function() {
|
|
|
2318
2319
|
radius: 0,
|
|
2319
2320
|
asynchronous: !1,
|
|
2320
2321
|
material: a.material
|
|
2321
|
-
}), f.add(v), g = new i.BillboardGroup(y,
|
|
2322
|
+
}), f.add(v), g = new i.BillboardGroup(y, b), g.addBillboards([_])) : (typeof a.callback == "function" && a.callback(v.getCenter(), v.getRadius()), y.stopDrawing()));
|
|
2322
2323
|
}
|
|
2323
|
-
}, p.ScreenSpaceEventType.LEFT_DOWN),
|
|
2324
|
+
}, p.ScreenSpaceEventType.LEFT_DOWN), w.setInputAction(function(S) {
|
|
2324
2325
|
var _ = S.endPosition;
|
|
2325
2326
|
if (_ != null)
|
|
2326
2327
|
if (v == null)
|
|
2327
|
-
|
|
2328
|
+
m.showAt(_, "<p>Click to start drawing the circle</p>");
|
|
2328
2329
|
else {
|
|
2329
|
-
var
|
|
2330
|
-
|
|
2330
|
+
var T = c.camera.pickEllipsoid(_, e);
|
|
2331
|
+
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
2332
|
}
|
|
2332
2333
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2333
2334
|
}, i.prototype.enhancePrimitives = function() {
|
|
@@ -2337,24 +2338,24 @@ var Ee = function() {
|
|
|
2337
2338
|
return;
|
|
2338
2339
|
this._editable = !0;
|
|
2339
2340
|
var c = this, f = this;
|
|
2340
|
-
function
|
|
2341
|
+
function m(v) {
|
|
2341
2342
|
s._scene.screenSpaceCameraController.enableRotate = v;
|
|
2342
2343
|
}
|
|
2343
2344
|
V(c, "leftDown", function(v) {
|
|
2344
2345
|
function g(_) {
|
|
2345
2346
|
c.position = _, f.executeListeners({ name: "drag", positions: _ });
|
|
2346
2347
|
}
|
|
2347
|
-
function
|
|
2348
|
-
S.destroy(),
|
|
2348
|
+
function w(_) {
|
|
2349
|
+
S.destroy(), m(!0), f.executeListeners({ name: "dragEnd", positions: _ });
|
|
2349
2350
|
}
|
|
2350
2351
|
var S = new p.ScreenSpaceEventHandler(s._scene.canvas);
|
|
2351
2352
|
S.setInputAction(function(_) {
|
|
2352
|
-
var
|
|
2353
|
-
|
|
2353
|
+
var T = s._scene.camera.pickEllipsoid(_.endPosition, e);
|
|
2354
|
+
T ? g(T) : w(T);
|
|
2354
2355
|
}, p.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(_) {
|
|
2355
|
-
|
|
2356
|
-
}, p.ScreenSpaceEventType.LEFT_UP),
|
|
2357
|
-
}),
|
|
2356
|
+
w(s._scene.camera.pickEllipsoid(_.position, e));
|
|
2357
|
+
}, p.ScreenSpaceEventType.LEFT_UP), m(!1);
|
|
2358
|
+
}), ne(c);
|
|
2358
2359
|
};
|
|
2359
2360
|
function a(c) {
|
|
2360
2361
|
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 +2364,18 @@ var Ee = function() {
|
|
|
2363
2364
|
if (this._editMode != c)
|
|
2364
2365
|
if (s.disableAllHighlights(), c) {
|
|
2365
2366
|
s.setEdited(this);
|
|
2366
|
-
var f = s._scene,
|
|
2367
|
+
var f = s._scene, m = this;
|
|
2367
2368
|
if (this._markers == null) {
|
|
2368
|
-
let
|
|
2369
|
+
let D = function(R, z) {
|
|
2369
2370
|
var Q = R - 1 < 0 ? z.length - 1 : R - 1;
|
|
2370
2371
|
Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q)), Q = R, Q < g.countBillboards() && (g.getBillboard(Q).position = X(Q));
|
|
2371
|
-
},
|
|
2372
|
-
|
|
2372
|
+
}, U = function() {
|
|
2373
|
+
m.executeListeners({
|
|
2373
2374
|
name: "onEdited",
|
|
2374
|
-
positions:
|
|
2375
|
+
positions: m.positions
|
|
2375
2376
|
});
|
|
2376
2377
|
}, X = function(R) {
|
|
2377
|
-
var z =
|
|
2378
|
+
var z = m.positions;
|
|
2378
2379
|
return e.cartographicToCartesian(
|
|
2379
2380
|
new p.EllipsoidGeodesic(
|
|
2380
2381
|
e.cartesianToCartographic(z[R]),
|
|
@@ -2382,93 +2383,93 @@ var Ee = function() {
|
|
|
2382
2383
|
).interpolateUsingFraction(0.5)
|
|
2383
2384
|
);
|
|
2384
2385
|
};
|
|
2385
|
-
var v = new i.BillboardGroup(s,
|
|
2386
|
+
var v = new i.BillboardGroup(s, P), g = new i.BillboardGroup(s, B), w = {
|
|
2386
2387
|
dragHandlers: {
|
|
2387
2388
|
onDrag: function(R, z) {
|
|
2388
|
-
|
|
2389
|
+
m.positions[R] = z, D(R, m.positions), m._createPrimitive = !0;
|
|
2389
2390
|
},
|
|
2390
2391
|
onDragEnd: function(R, z) {
|
|
2391
|
-
|
|
2392
|
+
m._createPrimitive = !0, U();
|
|
2392
2393
|
}
|
|
2393
2394
|
},
|
|
2394
2395
|
onDoubleClick: function(R) {
|
|
2395
|
-
|
|
2396
|
+
m.positions.length < 4 || (m.positions.splice(R, 1), m._createPrimitive = !0, v.removeBillboard(R), g.removeBillboard(R), D(R, m.positions), U());
|
|
2396
2397
|
},
|
|
2397
2398
|
tooltip: function() {
|
|
2398
|
-
if (
|
|
2399
|
+
if (m.positions.length > 3)
|
|
2399
2400
|
return "Double click to remove this point";
|
|
2400
2401
|
}
|
|
2401
2402
|
};
|
|
2402
|
-
v.addBillboards(
|
|
2403
|
-
for (var S = [], _ = 0,
|
|
2403
|
+
v.addBillboards(m.positions, w), this._markers = v;
|
|
2404
|
+
for (var S = [], _ = 0, T = m.positions.length + (this.isPolygon ? 0 : -1); _ < T; _++)
|
|
2404
2405
|
S.push(X(_));
|
|
2405
|
-
var
|
|
2406
|
+
var M = {
|
|
2406
2407
|
dragHandlers: {
|
|
2407
2408
|
onDragStart: function(R, z) {
|
|
2408
|
-
this.index = R + 1,
|
|
2409
|
+
this.index = R + 1, m.positions.splice(this.index, 0, z), m._createPrimitive = !0;
|
|
2409
2410
|
},
|
|
2410
2411
|
onDrag: function(R, z) {
|
|
2411
|
-
|
|
2412
|
+
m.positions[this.index] = z, m._createPrimitive = !0;
|
|
2412
2413
|
},
|
|
2413
2414
|
onDragEnd: function(R, z) {
|
|
2414
|
-
v.insertBillboard(this.index, z,
|
|
2415
|
+
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
2416
|
}
|
|
2416
2417
|
},
|
|
2417
2418
|
tooltip: function() {
|
|
2418
2419
|
return "Drag to create a new point";
|
|
2419
2420
|
}
|
|
2420
2421
|
};
|
|
2421
|
-
g.addBillboards(S,
|
|
2422
|
+
g.addBillboards(S, M), this._editMarkers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(R) {
|
|
2422
2423
|
var z = f.pick(R.position);
|
|
2423
|
-
z && z.primitive ||
|
|
2424
|
+
z && z.primitive || m.setEditMode(!1);
|
|
2424
2425
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop(), g.setOnTop();
|
|
2425
2426
|
}
|
|
2426
2427
|
this._editMode = !0;
|
|
2427
2428
|
} else
|
|
2428
2429
|
this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2429
2430
|
}
|
|
2430
|
-
|
|
2431
|
+
Ce.PolylinePrimitive.prototype.setEditable = function() {
|
|
2431
2432
|
if (!this.setEditMode) {
|
|
2432
2433
|
var c = this;
|
|
2433
2434
|
c.isPolygon = !1, c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = y;
|
|
2434
2435
|
var f = this.width;
|
|
2435
|
-
c.setHighlighted = function(
|
|
2436
|
-
this._editMode !== !0 && (
|
|
2436
|
+
c.setHighlighted = function(m) {
|
|
2437
|
+
this._editMode !== !0 && (m ? (s.setHighlighted(this), this.setWidth(f * 2)) : this.setWidth(f));
|
|
2437
2438
|
}, c.getExtent = function() {
|
|
2438
2439
|
return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
|
|
2439
|
-
},
|
|
2440
|
+
}, ne(c), c.setEditMode(!1);
|
|
2440
2441
|
}
|
|
2441
|
-
},
|
|
2442
|
+
}, Ce.PolygonPrimitive.prototype.setEditable = function() {
|
|
2442
2443
|
var c = this;
|
|
2443
|
-
c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a,
|
|
2444
|
-
},
|
|
2444
|
+
c.asynchronous = !1, s._scene, s.registerEditableShape(c), c.setEditMode = y, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2445
|
+
}, Ce.ExtentPrimitive.prototype.setEditable = function() {
|
|
2445
2446
|
if (!this.setEditMode) {
|
|
2446
2447
|
var c = this, f = s._scene;
|
|
2447
|
-
s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(
|
|
2448
|
-
if (this._editMode !=
|
|
2449
|
-
if (s.disableAllHighlights(),
|
|
2448
|
+
s.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(m) {
|
|
2449
|
+
if (this._editMode != m)
|
|
2450
|
+
if (s.disableAllHighlights(), m) {
|
|
2450
2451
|
if (s.setEdited(this), this._markers == null) {
|
|
2451
|
-
let
|
|
2452
|
+
let w = function() {
|
|
2452
2453
|
c.executeListeners({
|
|
2453
2454
|
name: "onEdited",
|
|
2454
2455
|
extent: c.extent
|
|
2455
2456
|
});
|
|
2456
2457
|
};
|
|
2457
|
-
var v = new i.BillboardGroup(s,
|
|
2458
|
+
var v = new i.BillboardGroup(s, P), g = {
|
|
2458
2459
|
dragHandlers: {
|
|
2459
2460
|
onDrag: function(S, _) {
|
|
2460
|
-
var
|
|
2461
|
-
c.setExtent(Y(e.cartesianToCartographic(
|
|
2461
|
+
var T = v.getBillboard((S + 2) % 4).position;
|
|
2462
|
+
c.setExtent(Y(e.cartesianToCartographic(T), e.cartesianToCartographic(_))), v.updateBillboardsPositions($(c.extent));
|
|
2462
2463
|
},
|
|
2463
2464
|
onDragEnd: function(S, _) {
|
|
2464
|
-
|
|
2465
|
+
w();
|
|
2465
2466
|
}
|
|
2466
2467
|
},
|
|
2467
2468
|
tooltip: function() {
|
|
2468
2469
|
return "Drag to change the corners of this extent";
|
|
2469
2470
|
}
|
|
2470
2471
|
};
|
|
2471
|
-
v.addBillboards(
|
|
2472
|
+
v.addBillboards($(c.extent), g), this._markers = v, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(S) {
|
|
2472
2473
|
var _ = f.pick(S.position);
|
|
2473
2474
|
_ && !_.isDestroyed() && _.primitive || c.setEditMode(!1);
|
|
2474
2475
|
}, p.ScreenSpaceEventType.LEFT_CLICK), v.setOnTop();
|
|
@@ -2476,14 +2477,14 @@ var Ee = function() {
|
|
|
2476
2477
|
this._editMode = !0;
|
|
2477
2478
|
} else
|
|
2478
2479
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2479
|
-
}, c.setHighlighted = a,
|
|
2480
|
+
}, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2480
2481
|
}
|
|
2481
2482
|
}, i.EllipsePrimitive.prototype.setEditable = function() {
|
|
2482
2483
|
if (!this.setEditMode) {
|
|
2483
2484
|
var c = this, f = s._scene;
|
|
2484
|
-
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(
|
|
2485
|
-
if (this._editMode !=
|
|
2486
|
-
if (s.disableAllHighlights(),
|
|
2485
|
+
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
|
|
2486
|
+
if (this._editMode != m)
|
|
2487
|
+
if (s.disableAllHighlights(), m) {
|
|
2487
2488
|
s.setEdited(this);
|
|
2488
2489
|
var v = this;
|
|
2489
2490
|
if (this._markers == null) {
|
|
@@ -2505,13 +2506,13 @@ var Ee = function() {
|
|
|
2505
2506
|
rotation: 0
|
|
2506
2507
|
});
|
|
2507
2508
|
};
|
|
2508
|
-
var g = new i.BillboardGroup(s,
|
|
2509
|
+
var g = new i.BillboardGroup(s, P), w = {
|
|
2509
2510
|
dragHandlers: {
|
|
2510
|
-
onDrag: function(
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2511
|
+
onDrag: function(T, M) {
|
|
2512
|
+
var D = p.Cartesian3.distance(c.getCenter(), M);
|
|
2513
|
+
T % 2 == 0 ? c.setSemiMajorAxis(D) : c.setSemiMinorAxis(D), g.updateBillboardsPositions(S());
|
|
2513
2514
|
},
|
|
2514
|
-
onDragEnd: function(
|
|
2515
|
+
onDragEnd: function(T, M) {
|
|
2515
2516
|
_();
|
|
2516
2517
|
}
|
|
2517
2518
|
},
|
|
@@ -2519,15 +2520,15 @@ var Ee = function() {
|
|
|
2519
2520
|
return "Drag to change the excentricity and radius";
|
|
2520
2521
|
}
|
|
2521
2522
|
};
|
|
2522
|
-
g.addBillboards(S(),
|
|
2523
|
-
var
|
|
2524
|
-
|
|
2523
|
+
g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
|
|
2524
|
+
var M = f.pick(T.position);
|
|
2525
|
+
M && M.primitive || v.setEditMode(!1);
|
|
2525
2526
|
}, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
|
|
2526
2527
|
}
|
|
2527
2528
|
this._editMode = !0;
|
|
2528
2529
|
} else
|
|
2529
2530
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2530
|
-
}, c.setHighlighted = a,
|
|
2531
|
+
}, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2531
2532
|
}
|
|
2532
2533
|
}, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(c) {
|
|
2533
2534
|
for (var f = p.CircleOutlineGeometry.createGeometry(
|
|
@@ -2537,15 +2538,15 @@ var Ee = function() {
|
|
|
2537
2538
|
radius: this.getRadius(),
|
|
2538
2539
|
granularity: c
|
|
2539
2540
|
})
|
|
2540
|
-
),
|
|
2541
|
-
v = f.attributes.position.values, g.push(new p.Cartesian3(v[
|
|
2541
|
+
), m = 0, v, g = []; m < f.attributes.position.values.length; m += 3)
|
|
2542
|
+
v = f.attributes.position.values, g.push(new p.Cartesian3(v[m], v[m + 1], v[m + 2]));
|
|
2542
2543
|
return g;
|
|
2543
2544
|
}, i.CirclePrimitive.prototype.setEditable = function() {
|
|
2544
2545
|
if (!this.setEditMode) {
|
|
2545
2546
|
var c = this, f = s._scene;
|
|
2546
|
-
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(
|
|
2547
|
-
if (this._editMode !=
|
|
2548
|
-
if (s.disableAllHighlights(),
|
|
2547
|
+
c.asynchronous = !1, s.registerEditableShape(c), c.setEditMode = function(m) {
|
|
2548
|
+
if (this._editMode != m)
|
|
2549
|
+
if (s.disableAllHighlights(), m) {
|
|
2549
2550
|
s.setEdited(this);
|
|
2550
2551
|
var v = this;
|
|
2551
2552
|
if (this._markers == null) {
|
|
@@ -2558,12 +2559,12 @@ var Ee = function() {
|
|
|
2558
2559
|
radius: c.getRadius()
|
|
2559
2560
|
});
|
|
2560
2561
|
};
|
|
2561
|
-
var g = new i.BillboardGroup(s,
|
|
2562
|
+
var g = new i.BillboardGroup(s, P), w = {
|
|
2562
2563
|
dragHandlers: {
|
|
2563
|
-
onDrag: function(
|
|
2564
|
-
c.setRadius(p.Cartesian3.distance(c.getCenter(),
|
|
2564
|
+
onDrag: function(T, M) {
|
|
2565
|
+
c.setRadius(p.Cartesian3.distance(c.getCenter(), M)), g.updateBillboardsPositions(S());
|
|
2565
2566
|
},
|
|
2566
|
-
onDragEnd: function(
|
|
2567
|
+
onDragEnd: function(T, M) {
|
|
2567
2568
|
_();
|
|
2568
2569
|
}
|
|
2569
2570
|
},
|
|
@@ -2571,15 +2572,15 @@ var Ee = function() {
|
|
|
2571
2572
|
return "Drag to change the radius";
|
|
2572
2573
|
}
|
|
2573
2574
|
};
|
|
2574
|
-
g.addBillboards(S(),
|
|
2575
|
-
var
|
|
2576
|
-
|
|
2575
|
+
g.addBillboards(S(), w), this._markers = g, this._globeClickhandler = new p.ScreenSpaceEventHandler(f.canvas), this._globeClickhandler.setInputAction(function(T) {
|
|
2576
|
+
var M = f.pick(T.position);
|
|
2577
|
+
M && M.primitive || v.setEditMode(!1);
|
|
2577
2578
|
}, p.ScreenSpaceEventType.LEFT_CLICK), g.setOnTop();
|
|
2578
2579
|
}
|
|
2579
2580
|
this._editMode = !0;
|
|
2580
2581
|
} else
|
|
2581
2582
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2582
|
-
}, c.setHighlighted = a,
|
|
2583
|
+
}, c.setHighlighted = a, ne(c), c.setEditMode(!1);
|
|
2583
2584
|
}
|
|
2584
2585
|
};
|
|
2585
2586
|
}, i.DrawHelperWidget = function() {
|
|
@@ -2593,21 +2594,21 @@ var Ee = function() {
|
|
|
2593
2594
|
circleIcon: "./assets/img/glyphicons_095_vector_path_circle.png",
|
|
2594
2595
|
extentIcon: "./assets/img/glyphicons_094_vector_path_square.png",
|
|
2595
2596
|
clearIcon: "./assets/img/glyphicons_067_cleaning.png",
|
|
2596
|
-
polylineDrawingOptions:
|
|
2597
|
+
polylineDrawingOptions: C,
|
|
2597
2598
|
polygonDrawingOptions: d,
|
|
2598
2599
|
extentDrawingOptions: u,
|
|
2599
|
-
circleDrawingOptions:
|
|
2600
|
+
circleDrawingOptions: h
|
|
2600
2601
|
};
|
|
2601
|
-
|
|
2602
|
-
var f = this,
|
|
2603
|
-
|
|
2604
|
-
function v(S, _,
|
|
2605
|
-
var
|
|
2606
|
-
|
|
2607
|
-
var
|
|
2608
|
-
|
|
2602
|
+
W(y, c);
|
|
2603
|
+
var f = this, m = document.createElement("DIV");
|
|
2604
|
+
m.className = "toolbar", y.container.appendChild(m);
|
|
2605
|
+
function v(S, _, T, M) {
|
|
2606
|
+
var D = document.createElement("DIV");
|
|
2607
|
+
D.className = "button", D.title = T, m.appendChild(D), D.onclick = M;
|
|
2608
|
+
var U = document.createElement("SPAN");
|
|
2609
|
+
D.appendChild(U);
|
|
2609
2610
|
var X = document.createElement("IMG");
|
|
2610
|
-
return X.src = _,
|
|
2611
|
+
return X.src = _, U.appendChild(X), D;
|
|
2611
2612
|
}
|
|
2612
2613
|
var g = a._scene;
|
|
2613
2614
|
v("marker", y.markerIcon, "Click to start drawing a 2D marker", function() {
|
|
@@ -2654,10 +2655,10 @@ var Ee = function() {
|
|
|
2654
2655
|
}
|
|
2655
2656
|
});
|
|
2656
2657
|
});
|
|
2657
|
-
var
|
|
2658
|
-
|
|
2658
|
+
var w = document.createElement("DIV");
|
|
2659
|
+
w.className = "divider", m.appendChild(w), v("clear", y.clearIcon, "Remove all primitives", function() {
|
|
2659
2660
|
g.primitives.removeAll();
|
|
2660
|
-
}),
|
|
2661
|
+
}), ne(this);
|
|
2661
2662
|
}
|
|
2662
2663
|
return s;
|
|
2663
2664
|
}(), i.prototype.addToolbar = function(s, a) {
|
|
@@ -2669,35 +2670,35 @@ var Ee = function() {
|
|
|
2669
2670
|
var c = p.Math.EPSILON7;
|
|
2670
2671
|
return y.east - y.west < c && (y.east += c * 2), y.north - y.south < c && (y.north += c * 2), y;
|
|
2671
2672
|
}
|
|
2672
|
-
function
|
|
2673
|
+
function K(s, a) {
|
|
2673
2674
|
return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
|
|
2674
2675
|
}
|
|
2675
|
-
function
|
|
2676
|
+
function x(s, a) {
|
|
2676
2677
|
if (s == null || typeof s != "object" || s.constructor != Object && s.constructor != Array)
|
|
2677
2678
|
return s;
|
|
2678
2679
|
if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
|
|
2679
2680
|
return new s.constructor(s);
|
|
2680
2681
|
a = a || new s.constructor();
|
|
2681
2682
|
for (var y in s)
|
|
2682
|
-
a[y] = typeof a[y] > "u" ?
|
|
2683
|
+
a[y] = typeof a[y] > "u" ? x(s[y], null) : a[y];
|
|
2683
2684
|
return a;
|
|
2684
2685
|
}
|
|
2685
|
-
function
|
|
2686
|
+
function W(s, a) {
|
|
2686
2687
|
s = s || {};
|
|
2687
2688
|
var y;
|
|
2688
2689
|
for (y in a)
|
|
2689
|
-
s[y] === void 0 && (s[y] =
|
|
2690
|
+
s[y] === void 0 && (s[y] = x(a[y]));
|
|
2690
2691
|
}
|
|
2691
2692
|
function O(s, a) {
|
|
2692
|
-
var y =
|
|
2693
|
+
var y = x(s), c;
|
|
2693
2694
|
for (c in a)
|
|
2694
|
-
y[c] === void 0 && (y[c] =
|
|
2695
|
+
y[c] === void 0 && (y[c] = x(a[c]));
|
|
2695
2696
|
return y;
|
|
2696
2697
|
}
|
|
2697
2698
|
function V(s, a, y) {
|
|
2698
2699
|
s[a] = y;
|
|
2699
2700
|
}
|
|
2700
|
-
function
|
|
2701
|
+
function ne(s) {
|
|
2701
2702
|
s._listeners = {}, s.addListener = function(a, y) {
|
|
2702
2703
|
return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(y), this._listeners[a].length;
|
|
2703
2704
|
}, s.executeListeners = function(a, y) {
|
|
@@ -2710,17 +2711,17 @@ var Ee = function() {
|
|
|
2710
2711
|
}
|
|
2711
2712
|
return i;
|
|
2712
2713
|
}();
|
|
2713
|
-
const
|
|
2714
|
+
const Yr = 2, Xr = (e, n) => {
|
|
2714
2715
|
switch (e) {
|
|
2715
2716
|
case se.BOX: {
|
|
2716
|
-
if (n.features.length !==
|
|
2717
|
+
if (n.features.length !== Yr)
|
|
2717
2718
|
throw new Error(`${e} must have 2 points`);
|
|
2718
|
-
const t =
|
|
2719
|
+
const t = vt(n.features, (o) => {
|
|
2719
2720
|
var r;
|
|
2720
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2721
|
-
}), i =
|
|
2721
|
+
return ((r = o.properties) == null ? void 0 : r.type) === ot.BOTTOM_LEFT;
|
|
2722
|
+
}), i = vt(n.features, (o) => {
|
|
2722
2723
|
var r;
|
|
2723
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2724
|
+
return ((r = o.properties) == null ? void 0 : r.type) === ot.TOP_RIGHT;
|
|
2724
2725
|
});
|
|
2725
2726
|
if (i && t) {
|
|
2726
2727
|
if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
|
|
@@ -2737,10 +2738,10 @@ const jr = 2, Kr = (e, n) => {
|
|
|
2737
2738
|
default:
|
|
2738
2739
|
throw new Error(`${e} type geoJSON still not supported`);
|
|
2739
2740
|
}
|
|
2740
|
-
},
|
|
2741
|
+
}, Zr = (e) => {
|
|
2741
2742
|
const n = e.map((t) => {
|
|
2742
|
-
const i =
|
|
2743
|
-
return [
|
|
2743
|
+
const i = Oe.fromCartesian(t);
|
|
2744
|
+
return [ce.toDegrees(i.longitude), ce.toDegrees(i.latitude)];
|
|
2744
2745
|
});
|
|
2745
2746
|
return n.push(n[0]), {
|
|
2746
2747
|
type: "Feature",
|
|
@@ -2750,51 +2751,51 @@ const jr = 2, Kr = (e, n) => {
|
|
|
2750
2751
|
coordinates: [n]
|
|
2751
2752
|
}
|
|
2752
2753
|
};
|
|
2753
|
-
},
|
|
2754
|
-
const n =
|
|
2755
|
-
[
|
|
2756
|
-
[
|
|
2754
|
+
}, Jr = (e) => {
|
|
2755
|
+
const n = Kt.lineString([
|
|
2756
|
+
[ce.toDegrees(e.west), ce.toDegrees(e.south)],
|
|
2757
|
+
[ce.toDegrees(e.east), ce.toDegrees(e.north)]
|
|
2757
2758
|
]);
|
|
2758
|
-
return
|
|
2759
|
-
},
|
|
2760
|
-
const n =
|
|
2759
|
+
return qt(jt(n));
|
|
2760
|
+
}, Qr = (e) => {
|
|
2761
|
+
const n = Kt.lineString([
|
|
2761
2762
|
[e.west, e.south],
|
|
2762
2763
|
[e.east, e.north]
|
|
2763
2764
|
]);
|
|
2764
|
-
return
|
|
2765
|
+
return qt(jt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
|
|
2765
2766
|
};
|
|
2766
|
-
class
|
|
2767
|
+
class bs extends nt {
|
|
2767
2768
|
}
|
|
2768
|
-
const
|
|
2769
|
-
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u =
|
|
2770
|
-
|
|
2769
|
+
const Ts = (e) => {
|
|
2770
|
+
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = le(), [h, E] = A();
|
|
2771
|
+
I(() => {
|
|
2771
2772
|
E(
|
|
2772
2773
|
// eslint-disable-next-line
|
|
2773
|
-
new
|
|
2774
|
+
new Ce(u, t, i)
|
|
2774
2775
|
);
|
|
2775
|
-
}, []),
|
|
2776
|
-
if (
|
|
2777
|
-
const
|
|
2776
|
+
}, []), I(() => {
|
|
2777
|
+
if (h) {
|
|
2778
|
+
const L = h;
|
|
2778
2779
|
if (n.drawing)
|
|
2779
2780
|
switch (n.type) {
|
|
2780
2781
|
case se.POLYGON:
|
|
2781
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
2782
|
-
callback: (
|
|
2782
|
+
u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingPolygon({
|
|
2783
|
+
callback: (b) => {
|
|
2783
2784
|
n.handler({
|
|
2784
|
-
primitive:
|
|
2785
|
+
primitive: b,
|
|
2785
2786
|
type: se.POLYGON,
|
|
2786
|
-
geojson:
|
|
2787
|
+
geojson: Zr(b)
|
|
2787
2788
|
});
|
|
2788
2789
|
}
|
|
2789
2790
|
});
|
|
2790
2791
|
break;
|
|
2791
2792
|
case se.BOX:
|
|
2792
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
2793
|
-
callback: (
|
|
2793
|
+
u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingExtent({
|
|
2794
|
+
callback: (b) => {
|
|
2794
2795
|
n.handler({
|
|
2795
|
-
primitive:
|
|
2796
|
+
primitive: b,
|
|
2796
2797
|
type: se.BOX,
|
|
2797
|
-
geojson:
|
|
2798
|
+
geojson: Jr(b)
|
|
2798
2799
|
});
|
|
2799
2800
|
}
|
|
2800
2801
|
});
|
|
@@ -2803,78 +2804,162 @@ const Es = (e) => {
|
|
|
2803
2804
|
throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
|
|
2804
2805
|
}
|
|
2805
2806
|
else
|
|
2806
|
-
|
|
2807
|
+
L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
|
|
2807
2808
|
}
|
|
2808
|
-
}, [n,
|
|
2809
|
-
const
|
|
2809
|
+
}, [n, h]);
|
|
2810
|
+
const C = (L) => {
|
|
2810
2811
|
try {
|
|
2811
|
-
let
|
|
2812
|
+
let b = L.coordinates !== void 0 ? L.coordinates : Xr(L.type, L.geojson);
|
|
2812
2813
|
if (r !== !0)
|
|
2813
|
-
switch (
|
|
2814
|
+
switch (L.type) {
|
|
2814
2815
|
case se.BOX:
|
|
2815
|
-
return /* @__PURE__ */ l(
|
|
2816
|
+
return /* @__PURE__ */ l(Kr, { coordinates: b, material: o ?? t });
|
|
2816
2817
|
case se.POLYGON:
|
|
2817
|
-
return /* @__PURE__ */ l(
|
|
2818
|
+
return /* @__PURE__ */ l(Ur, { hierarchy: new yi(b), material: o ?? t });
|
|
2818
2819
|
default:
|
|
2819
|
-
return /* @__PURE__ */ l(
|
|
2820
|
+
return /* @__PURE__ */ l(te, {});
|
|
2820
2821
|
}
|
|
2821
2822
|
else {
|
|
2822
|
-
switch (
|
|
2823
|
+
switch (L.type) {
|
|
2823
2824
|
case se.BOX:
|
|
2824
|
-
|
|
2825
|
+
b = Qr(b);
|
|
2825
2826
|
break;
|
|
2826
2827
|
case se.POLYGON:
|
|
2827
|
-
|
|
2828
|
+
b = [...b, b[0]];
|
|
2828
2829
|
break;
|
|
2829
2830
|
default:
|
|
2830
|
-
return /* @__PURE__ */ l(
|
|
2831
|
+
return /* @__PURE__ */ l(te, {});
|
|
2831
2832
|
}
|
|
2832
|
-
return /* @__PURE__ */ l(
|
|
2833
|
+
return /* @__PURE__ */ l(qr, { clampToGround: !0, positions: b, width: d ?? 1, material: o ?? t });
|
|
2833
2834
|
}
|
|
2834
|
-
} catch (
|
|
2835
|
-
return console.error(
|
|
2835
|
+
} catch (b) {
|
|
2836
|
+
return console.error(b), /* @__PURE__ */ l(te, {});
|
|
2836
2837
|
}
|
|
2837
2838
|
};
|
|
2838
|
-
return /* @__PURE__ */ l(
|
|
2839
|
-
/* @__PURE__ */ N(
|
|
2839
|
+
return /* @__PURE__ */ l(jr, { ...e, children: e.drawings.map((L, b) => /* @__PURE__ */ N($r, { name: L.name, children: [
|
|
2840
|
+
/* @__PURE__ */ N(Wr, { children: [
|
|
2840
2841
|
/* @__PURE__ */ N("h1", { children: [
|
|
2841
2842
|
"Drawed Entity ",
|
|
2842
|
-
|
|
2843
|
+
L.name
|
|
2843
2844
|
] }),
|
|
2844
2845
|
/* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
|
|
2845
2846
|
] }),
|
|
2846
|
-
|
|
2847
|
-
] },
|
|
2847
|
+
C(L)
|
|
2848
|
+
] }, L.id)) });
|
|
2848
2849
|
};
|
|
2849
|
-
class
|
|
2850
|
+
class _s extends vi {
|
|
2850
2851
|
}
|
|
2851
|
-
class
|
|
2852
|
+
class Ls extends Ei {
|
|
2852
2853
|
}
|
|
2853
|
-
class
|
|
2854
|
+
class Ss extends Ci {
|
|
2854
2855
|
}
|
|
2855
|
-
class
|
|
2856
|
+
class Ms extends Ee {
|
|
2856
2857
|
}
|
|
2857
|
-
class
|
|
2858
|
+
class Ps extends pe {
|
|
2858
2859
|
}
|
|
2859
|
-
class
|
|
2860
|
+
class Ds extends Oe {
|
|
2860
2861
|
}
|
|
2861
|
-
class
|
|
2862
|
+
class As extends wi {
|
|
2862
2863
|
}
|
|
2863
|
-
class
|
|
2864
|
+
class Is extends Wt {
|
|
2864
2865
|
}
|
|
2865
|
-
class
|
|
2866
|
+
class xs extends bi {
|
|
2866
2867
|
}
|
|
2867
|
-
class
|
|
2868
|
+
class ks extends Se {
|
|
2868
2869
|
}
|
|
2869
|
-
class
|
|
2870
|
+
class Os extends Ti {
|
|
2870
2871
|
}
|
|
2871
|
-
class
|
|
2872
|
+
class Rs extends _i {
|
|
2872
2873
|
}
|
|
2873
|
-
class
|
|
2874
|
+
class Ns extends Li {
|
|
2874
2875
|
}
|
|
2875
|
-
const
|
|
2876
|
-
const
|
|
2877
|
-
|
|
2876
|
+
const Bs = it, Fs = Ut, Hs = (e) => {
|
|
2877
|
+
const n = le();
|
|
2878
|
+
return I(() => {
|
|
2879
|
+
n.extend(Si);
|
|
2880
|
+
}, [n]), /* @__PURE__ */ l(te, {});
|
|
2881
|
+
}, eo = -25, kt = 2, Gs = (e) => {
|
|
2882
|
+
const n = le(), t = (r, d = ",") => r.slice(r.indexOf(`
|
|
2883
|
+
`) + 1).split(`
|
|
2884
|
+
`).map((E) => {
|
|
2885
|
+
const C = E.split(d);
|
|
2886
|
+
return {
|
|
2887
|
+
cartographic: Oe.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
|
|
2888
|
+
cartesian: new Ee(parseFloat(C[0]), parseFloat(C[1]))
|
|
2889
|
+
};
|
|
2890
|
+
}), i = (r) => {
|
|
2891
|
+
var u;
|
|
2892
|
+
r.preventDefault(), r.persist();
|
|
2893
|
+
const d = new FileReader();
|
|
2894
|
+
d.onload = (h) => {
|
|
2895
|
+
var b;
|
|
2896
|
+
const E = (b = h.target) == null ? void 0 : b.result, C = t(E), L = Wt.WGS84;
|
|
2897
|
+
console.log(`Loaded CSV content:
|
|
2898
|
+
`, E), Mi(
|
|
2899
|
+
n.terrainProvider,
|
|
2900
|
+
C.map((P) => P.cartographic)
|
|
2901
|
+
).then(
|
|
2902
|
+
(P) => {
|
|
2903
|
+
console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((B, $) => {
|
|
2904
|
+
n.entities.add({
|
|
2905
|
+
name: ($ + kt).toString(),
|
|
2906
|
+
position: L.cartographicToCartesian(B),
|
|
2907
|
+
billboard: {
|
|
2908
|
+
verticalOrigin: it.BOTTOM,
|
|
2909
|
+
scale: 0.7,
|
|
2910
|
+
image: "assets/img/map-marker.gif"
|
|
2911
|
+
},
|
|
2912
|
+
label: {
|
|
2913
|
+
text: ($ + kt).toString(),
|
|
2914
|
+
font: "14pt monospace",
|
|
2915
|
+
fillColor: nt.BLACK,
|
|
2916
|
+
style: Ut.FILL_AND_OUTLINE,
|
|
2917
|
+
outlineWidth: 4,
|
|
2918
|
+
outlineColor: nt.BLACK,
|
|
2919
|
+
verticalOrigin: it.BOTTOM,
|
|
2920
|
+
pixelOffset: new Ee(0, eo)
|
|
2921
|
+
},
|
|
2922
|
+
description: `
|
|
2923
|
+
Long: ${C[$].cartesian.x} </br>
|
|
2924
|
+
Lat: ${C[$].cartesian.y} </br>
|
|
2925
|
+
Height(m): <span style="font-weight: 500">${B.height}</span>
|
|
2926
|
+
`
|
|
2927
|
+
});
|
|
2928
|
+
}), 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);
|
|
2929
|
+
},
|
|
2930
|
+
(P) => {
|
|
2931
|
+
console.error("ERROR while sampleTerrainMostDetailed:", P);
|
|
2932
|
+
}
|
|
2933
|
+
);
|
|
2934
|
+
}, (u = r.target.files) != null && u[0] && d.readAsText(r.target.files[0]);
|
|
2935
|
+
}, o = (r, d) => {
|
|
2936
|
+
const u = (b) => {
|
|
2937
|
+
let P = "";
|
|
2938
|
+
return P += b.cartesian.x.toString() + ",", P += b.cartesian.y.toString() + ",", P += b.cartographic.height.toString(), P + `
|
|
2939
|
+
`;
|
|
2940
|
+
};
|
|
2941
|
+
let h = `long,lat,height
|
|
2942
|
+
`;
|
|
2943
|
+
d.forEach((b) => {
|
|
2944
|
+
h += u(b);
|
|
2945
|
+
});
|
|
2946
|
+
const E = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a"), L = URL.createObjectURL(E);
|
|
2947
|
+
C.setAttribute("href", L), C.setAttribute("download", r), C.style.visibility = "hidden", document.body.appendChild(C), C.click(), document.body.removeChild(C);
|
|
2948
|
+
};
|
|
2949
|
+
return /* @__PURE__ */ l(te, { children: /* @__PURE__ */ l(
|
|
2950
|
+
"input",
|
|
2951
|
+
{
|
|
2952
|
+
type: "file",
|
|
2953
|
+
id: "csvFile",
|
|
2954
|
+
accept: ".csv",
|
|
2955
|
+
onChange: (r) => {
|
|
2956
|
+
i(r);
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
) });
|
|
2960
|
+
};
|
|
2961
|
+
const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co = (e) => {
|
|
2962
|
+
const [n, t] = A(e.defaultValue ?? ""), [i, o] = A(!1), [r, d] = A({
|
|
2878
2963
|
helperVisible: !1,
|
|
2879
2964
|
left: 0,
|
|
2880
2965
|
right: 0,
|
|
@@ -2887,242 +2972,242 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
2887
2972
|
value: "",
|
|
2888
2973
|
caret: 0,
|
|
2889
2974
|
width: "unset"
|
|
2890
|
-
}), u =
|
|
2891
|
-
|
|
2975
|
+
}), u = be(null);
|
|
2976
|
+
I(() => (window.addEventListener("resize", B), () => {
|
|
2892
2977
|
try {
|
|
2893
|
-
window.removeEventListener("resize",
|
|
2978
|
+
window.removeEventListener("resize", B);
|
|
2894
2979
|
} catch (f) {
|
|
2895
2980
|
console.log('WINDOW "resize" remove listener failed', f);
|
|
2896
2981
|
}
|
|
2897
|
-
}), []),
|
|
2982
|
+
}), []), I(() => {
|
|
2898
2983
|
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,
|
|
2984
|
+
}, [e.value, e.defaultValue]), I(() => {
|
|
2985
|
+
const { options: f } = e, { caret: m } = r;
|
|
2986
|
+
Y(n, m, f);
|
|
2902
2987
|
}, [e]);
|
|
2903
|
-
const
|
|
2904
|
-
const { trigger: g, matchAny:
|
|
2905
|
-
let
|
|
2906
|
-
Array.isArray(
|
|
2907
|
-
const
|
|
2908
|
-
Array.isArray(v) &&
|
|
2909
|
-
|
|
2988
|
+
const h = (f, m, v) => {
|
|
2989
|
+
const { trigger: g, matchAny: w, regex: S } = e, _ = new RegExp(S);
|
|
2990
|
+
let T = g;
|
|
2991
|
+
Array.isArray(T) || (T = new Array(g)), T.sort();
|
|
2992
|
+
const M = {};
|
|
2993
|
+
Array.isArray(v) && T.forEach((X) => {
|
|
2994
|
+
M[X] = v;
|
|
2910
2995
|
});
|
|
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
|
|
2996
|
+
const D = E(T, _);
|
|
2997
|
+
let U = {};
|
|
2998
|
+
for (let X = 0; X < D.length; X++) {
|
|
2999
|
+
const { triggerStr: R, triggerMatch: z, triggerLength: Q } = D[X];
|
|
3000
|
+
for (let ie = m - 1; ie >= 0; --ie) {
|
|
3001
|
+
const F = f.substring(ie, m).match(_);
|
|
3002
|
+
let k = -1;
|
|
2918
3003
|
if (Q > 0) {
|
|
2919
|
-
const j = z ?
|
|
2920
|
-
if (j < 0 || (
|
|
3004
|
+
const j = z ? ie : ie - Q + 1;
|
|
3005
|
+
if (j < 0 || (C(R, f, j) && (k = j + Q), !F && k < 0))
|
|
2921
3006
|
break;
|
|
2922
3007
|
} else {
|
|
2923
|
-
if (
|
|
3008
|
+
if (F && ie > 0)
|
|
2924
3009
|
continue;
|
|
2925
|
-
if (
|
|
3010
|
+
if (k = ie === 0 && F ? 0 : ie + 1, m - k === 0)
|
|
2926
3011
|
break;
|
|
2927
3012
|
}
|
|
2928
|
-
if (
|
|
2929
|
-
const j =
|
|
3013
|
+
if (k >= 0) {
|
|
3014
|
+
const j = M[R];
|
|
2930
3015
|
if (!Array.isArray(j))
|
|
2931
3016
|
continue;
|
|
2932
|
-
const fe = f.substring(
|
|
2933
|
-
const De =
|
|
2934
|
-
return De !== -1 && (
|
|
2935
|
-
}), ye = R,
|
|
2936
|
-
|
|
2937
|
-
...
|
|
3017
|
+
const fe = f.substring(k, m), Te = j.filter((Ne) => {
|
|
3018
|
+
const De = Ne.toLowerCase().indexOf(fe.toLowerCase());
|
|
3019
|
+
return De !== -1 && (w || De === 0);
|
|
3020
|
+
}), ye = R, Re = fe.length;
|
|
3021
|
+
U = {
|
|
3022
|
+
...U,
|
|
2938
3023
|
trigger: ye,
|
|
2939
|
-
matchStart:
|
|
2940
|
-
matchLength:
|
|
2941
|
-
options:
|
|
3024
|
+
matchStart: k,
|
|
3025
|
+
matchLength: Re,
|
|
3026
|
+
options: Te
|
|
2942
3027
|
};
|
|
2943
3028
|
}
|
|
2944
3029
|
}
|
|
2945
3030
|
}
|
|
2946
|
-
return
|
|
2947
|
-
}, E = (f,
|
|
3031
|
+
return U;
|
|
3032
|
+
}, E = (f, m) => f.map((g) => ({
|
|
2948
3033
|
triggerStr: g,
|
|
2949
|
-
triggerMatch: g.match(
|
|
3034
|
+
triggerMatch: g.match(m),
|
|
2950
3035
|
triggerLength: g.length
|
|
2951
|
-
})),
|
|
2952
|
-
const { onChange:
|
|
2953
|
-
if (
|
|
3036
|
+
})), C = (f, m, v) => !f || !f.length || m.substr(v, f.length) === f, L = (f) => {
|
|
3037
|
+
const { onChange: m, options: v, spaceRemovers: g, spacer: w, value: S } = e, _ = n, T = f.target.value, M = Ii(b(f.target)).end;
|
|
3038
|
+
if (T.length || H({
|
|
2954
3039
|
...r,
|
|
2955
3040
|
helperVisible: !1
|
|
2956
|
-
}), t(
|
|
3041
|
+
}), t(T), H({
|
|
2957
3042
|
...r,
|
|
2958
|
-
caret:
|
|
3043
|
+
caret: M,
|
|
2959
3044
|
value: f.target.value
|
|
2960
|
-
}), !
|
|
2961
|
-
return
|
|
2962
|
-
if (i && g.length &&
|
|
2963
|
-
for (let
|
|
2964
|
-
if (_[
|
|
2965
|
-
if (
|
|
2966
|
-
const
|
|
2967
|
-
return
|
|
3045
|
+
}), !T.length || !M)
|
|
3046
|
+
return m(f.target.value);
|
|
3047
|
+
if (i && g.length && T.length > 2 && w.length) {
|
|
3048
|
+
for (let D = 0; D < Math.max(_.length, T.length); ++D)
|
|
3049
|
+
if (_[D] !== T[D]) {
|
|
3050
|
+
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))) {
|
|
3051
|
+
const U = `${T.slice(0, D - 1)}${T.slice(D, D + 1)}${T.slice(D - 1, D)}${T.slice(D + 1)}`;
|
|
3052
|
+
return q(D + 1), u.current !== null && (u.current.value = U), S || H({
|
|
2968
3053
|
...r,
|
|
2969
|
-
value:
|
|
2970
|
-
}),
|
|
3054
|
+
value: U
|
|
3055
|
+
}), m(U);
|
|
2971
3056
|
}
|
|
2972
3057
|
break;
|
|
2973
3058
|
}
|
|
2974
3059
|
o(!1);
|
|
2975
3060
|
}
|
|
2976
|
-
return Y(
|
|
2977
|
-
},
|
|
3061
|
+
return Y(T, M, v), m(f.target.value);
|
|
3062
|
+
}, b = (f) => {
|
|
2978
3063
|
if (f !== void 0)
|
|
2979
3064
|
if (f.children.length > 0) {
|
|
2980
|
-
const
|
|
2981
|
-
if (
|
|
2982
|
-
return
|
|
3065
|
+
const m = f.getElementsByTagName("textarea");
|
|
3066
|
+
if (m.length > 0)
|
|
3067
|
+
return m[0];
|
|
2983
3068
|
const v = f.getElementsByTagName("input");
|
|
2984
3069
|
if (v.length > 0)
|
|
2985
3070
|
return v[0];
|
|
2986
3071
|
} else
|
|
2987
3072
|
return f;
|
|
2988
|
-
},
|
|
2989
|
-
const { helperVisible:
|
|
2990
|
-
if (
|
|
3073
|
+
}, P = (f) => {
|
|
3074
|
+
const { helperVisible: m, options: v, selection: g } = r, { onKeyDown: w, passThroughEnter: S } = e;
|
|
3075
|
+
if (m)
|
|
2991
3076
|
switch (f.keyCode) {
|
|
2992
|
-
case
|
|
2993
|
-
f.preventDefault(),
|
|
3077
|
+
case oo:
|
|
3078
|
+
f.preventDefault(), K();
|
|
2994
3079
|
break;
|
|
2995
|
-
case
|
|
2996
|
-
f.preventDefault(),
|
|
3080
|
+
case to:
|
|
3081
|
+
f.preventDefault(), H({
|
|
2997
3082
|
...r,
|
|
2998
3083
|
selection: (v.length + g - 1) % v.length
|
|
2999
3084
|
});
|
|
3000
3085
|
break;
|
|
3001
|
-
case
|
|
3002
|
-
f.preventDefault(),
|
|
3086
|
+
case no:
|
|
3087
|
+
f.preventDefault(), H({
|
|
3003
3088
|
...r,
|
|
3004
3089
|
selection: (g + 1) % v.length
|
|
3005
3090
|
});
|
|
3006
3091
|
break;
|
|
3007
|
-
case
|
|
3008
|
-
case
|
|
3009
|
-
S || f.preventDefault(),
|
|
3092
|
+
case ro:
|
|
3093
|
+
case io:
|
|
3094
|
+
S || f.preventDefault(), $(g);
|
|
3010
3095
|
break;
|
|
3011
|
-
case
|
|
3012
|
-
|
|
3096
|
+
case so:
|
|
3097
|
+
$(g);
|
|
3013
3098
|
break;
|
|
3014
3099
|
default:
|
|
3015
|
-
|
|
3100
|
+
w(f);
|
|
3016
3101
|
break;
|
|
3017
3102
|
}
|
|
3018
3103
|
else
|
|
3019
|
-
|
|
3020
|
-
},
|
|
3021
|
-
|
|
3104
|
+
w(f);
|
|
3105
|
+
}, B = () => {
|
|
3106
|
+
H({
|
|
3022
3107
|
...r,
|
|
3023
3108
|
helperVisible: !1
|
|
3024
3109
|
});
|
|
3110
|
+
}, $ = (f) => {
|
|
3111
|
+
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);
|
|
3112
|
+
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
3113
|
}, 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({
|
|
3114
|
+
H({
|
|
3030
3115
|
...r,
|
|
3031
3116
|
caret: f
|
|
3032
3117
|
});
|
|
3033
|
-
const
|
|
3034
|
-
|
|
3035
|
-
},
|
|
3118
|
+
const m = b(u.current);
|
|
3119
|
+
xi(m, f);
|
|
3120
|
+
}, H = (f) => {
|
|
3036
3121
|
setTimeout(() => {
|
|
3037
3122
|
d({
|
|
3038
3123
|
...f
|
|
3039
3124
|
});
|
|
3040
3125
|
}, 0);
|
|
3041
|
-
}, Y = (f,
|
|
3126
|
+
}, Y = (f, m, v) => {
|
|
3042
3127
|
const g = u.current;
|
|
3043
3128
|
if (u.current === null)
|
|
3044
3129
|
return;
|
|
3045
|
-
const
|
|
3046
|
-
if (
|
|
3130
|
+
const w = b(g);
|
|
3131
|
+
if (w === void 0)
|
|
3047
3132
|
return;
|
|
3048
|
-
const S = g.getBoundingClientRect(), _ =
|
|
3049
|
-
if (Object.keys(_).length > 0 &&
|
|
3050
|
-
const
|
|
3051
|
-
let z, Q,
|
|
3052
|
-
R === "assist" ? (z = g ===
|
|
3133
|
+
const S = g.getBoundingClientRect(), _ = h(f, m, v);
|
|
3134
|
+
if (Object.keys(_).length > 0 && w !== null) {
|
|
3135
|
+
const T = Ai(w, m), M = w.getBoundingClientRect(), { minChars: D, onRequestOptions: U, requestOnlyIfNoOptions: X, mode: R } = e;
|
|
3136
|
+
let z, Q, ie, ge = "unset";
|
|
3137
|
+
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
3138
|
...r,
|
|
3054
3139
|
value: f,
|
|
3055
3140
|
helperVisible: !0,
|
|
3056
3141
|
top: z,
|
|
3057
3142
|
left: Q,
|
|
3058
|
-
right:
|
|
3143
|
+
right: ie,
|
|
3059
3144
|
width: ge,
|
|
3060
3145
|
..._
|
|
3061
|
-
}) : ((!X || !_.options.length) &&
|
|
3146
|
+
}) : ((!X || !_.options.length) && U(f.substr(_.matchStart, _.matchLength)), K());
|
|
3062
3147
|
} else
|
|
3063
|
-
|
|
3064
|
-
},
|
|
3148
|
+
K();
|
|
3149
|
+
}, K = () => {
|
|
3065
3150
|
setTimeout(() => {
|
|
3066
|
-
|
|
3151
|
+
H({
|
|
3067
3152
|
...r,
|
|
3068
3153
|
helperVisible: !1,
|
|
3069
3154
|
selection: 0
|
|
3070
3155
|
});
|
|
3071
3156
|
}, 100);
|
|
3072
|
-
},
|
|
3073
|
-
const { helperVisible: f, left:
|
|
3157
|
+
}, x = () => {
|
|
3158
|
+
const { helperVisible: f, left: m, right: v, matchStart: g, matchLength: w, options: S, selection: _, top: T, value: M, width: D } = r;
|
|
3074
3159
|
if (!f)
|
|
3075
3160
|
return null;
|
|
3076
|
-
const { maxOptions:
|
|
3161
|
+
const { maxOptions: U, offsetX: X, offsetY: R, direction: z } = e;
|
|
3077
3162
|
if (S.length === 0)
|
|
3078
3163
|
return null;
|
|
3079
3164
|
if (_ >= S.length)
|
|
3080
|
-
return
|
|
3165
|
+
return H({
|
|
3081
3166
|
...r,
|
|
3082
3167
|
selection: 0
|
|
3083
3168
|
}), null;
|
|
3084
|
-
const Q =
|
|
3085
|
-
const j =
|
|
3169
|
+
const Q = U === 0 ? S.length : U, ie = S.slice(0, Q).map((F, k) => {
|
|
3170
|
+
const j = F.toLowerCase().indexOf(M.substr(g, w).toLowerCase());
|
|
3086
3171
|
return /* @__PURE__ */ N(
|
|
3087
3172
|
"li",
|
|
3088
3173
|
{
|
|
3089
|
-
className:
|
|
3174
|
+
className: k === _ ? "active" : void 0,
|
|
3090
3175
|
onClick: () => {
|
|
3091
|
-
|
|
3176
|
+
$(k);
|
|
3092
3177
|
},
|
|
3093
3178
|
onMouseEnter: () => {
|
|
3094
|
-
|
|
3179
|
+
H({
|
|
3095
3180
|
...r,
|
|
3096
|
-
selection:
|
|
3181
|
+
selection: k
|
|
3097
3182
|
});
|
|
3098
3183
|
},
|
|
3099
3184
|
children: [
|
|
3100
|
-
|
|
3101
|
-
/* @__PURE__ */ l("strong", { children:
|
|
3102
|
-
|
|
3185
|
+
F.slice(0, j),
|
|
3186
|
+
/* @__PURE__ */ l("strong", { children: F.substr(j, w) }),
|
|
3187
|
+
F.slice(j + w)
|
|
3103
3188
|
]
|
|
3104
3189
|
},
|
|
3105
|
-
|
|
3190
|
+
F
|
|
3106
3191
|
);
|
|
3107
|
-
}), ge = z === "ltr" ? { left:
|
|
3108
|
-
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top:
|
|
3109
|
-
}, { Component:
|
|
3192
|
+
}), ge = z === "ltr" ? { left: m + X } : { right: v + X };
|
|
3193
|
+
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ge, top: T + R, width: D }, children: ie });
|
|
3194
|
+
}, { Component: W, ComponentProps: O, defaultValue: V, disabled: ne, onBlur: s, value: a, ...y } = e, c = Object.assign({}, y);
|
|
3110
3195
|
return Object.keys(e).forEach((f) => {
|
|
3111
3196
|
delete c[f];
|
|
3112
|
-
}), /* @__PURE__ */ N(
|
|
3113
|
-
ve.cloneElement(
|
|
3114
|
-
disabled:
|
|
3197
|
+
}), /* @__PURE__ */ N(te, { children: [
|
|
3198
|
+
ve.cloneElement(W, {
|
|
3199
|
+
disabled: ne,
|
|
3115
3200
|
onBlur: s,
|
|
3116
|
-
onChange:
|
|
3117
|
-
onKeyDown:
|
|
3201
|
+
onChange: L,
|
|
3202
|
+
onKeyDown: P,
|
|
3118
3203
|
ref: u,
|
|
3119
3204
|
value: n,
|
|
3120
3205
|
...c,
|
|
3121
3206
|
...O
|
|
3122
3207
|
}),
|
|
3123
|
-
|
|
3208
|
+
x()
|
|
3124
3209
|
] });
|
|
3125
|
-
},
|
|
3210
|
+
}, uo = {
|
|
3126
3211
|
Component: /* @__PURE__ */ l("textarea", {}),
|
|
3127
3212
|
ComponentProps: {},
|
|
3128
3213
|
defaultValue: void 0,
|
|
@@ -3153,9 +3238,9 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3153
3238
|
passThroughEnter: !1,
|
|
3154
3239
|
mode: "assist",
|
|
3155
3240
|
direction: "ltr"
|
|
3156
|
-
},
|
|
3241
|
+
}, Vs = (e) => {
|
|
3157
3242
|
let n = {
|
|
3158
|
-
...
|
|
3243
|
+
...uo,
|
|
3159
3244
|
...e
|
|
3160
3245
|
};
|
|
3161
3246
|
return e.mode === "autocomplete" && (n = {
|
|
@@ -3163,10 +3248,10 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3163
3248
|
trigger: "",
|
|
3164
3249
|
regex: ".",
|
|
3165
3250
|
spacer: ""
|
|
3166
|
-
}), /* @__PURE__ */ l(
|
|
3167
|
-
},
|
|
3251
|
+
}), /* @__PURE__ */ l(co, { ...n });
|
|
3252
|
+
}, mt = {
|
|
3168
3253
|
formatFileModDate: (e, n) => {
|
|
3169
|
-
const t =
|
|
3254
|
+
const t = Yt.getModDate(n);
|
|
3170
3255
|
return t ? e.formatDate(t, {
|
|
3171
3256
|
dateStyle: "short",
|
|
3172
3257
|
timeStyle: "short"
|
|
@@ -3175,18 +3260,18 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3175
3260
|
formatFileSize: (e, n) => {
|
|
3176
3261
|
if (!n || typeof n.size != "number")
|
|
3177
3262
|
return null;
|
|
3178
|
-
const t = n.size, i =
|
|
3263
|
+
const t = n.size, i = Ni(t, {
|
|
3179
3264
|
bits: !1,
|
|
3180
3265
|
output: "object"
|
|
3181
3266
|
});
|
|
3182
3267
|
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
3268
|
}
|
|
3184
|
-
},
|
|
3185
|
-
locale:
|
|
3186
|
-
formatters: { ...
|
|
3187
|
-
},
|
|
3188
|
-
locale:
|
|
3189
|
-
formatters: { ...
|
|
3269
|
+
}, ho = {
|
|
3270
|
+
locale: de.EN,
|
|
3271
|
+
formatters: { ...mt }
|
|
3272
|
+
}, mo = {
|
|
3273
|
+
locale: de.RU,
|
|
3274
|
+
formatters: { ...mt },
|
|
3190
3275
|
messages: {
|
|
3191
3276
|
"chonky.toolbar.searchPlaceholder": "Поиск",
|
|
3192
3277
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3209,24 +3294,24 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3209
3294
|
// Actions
|
|
3210
3295
|
["chonky.actionGroups.Actions"]: "Действия",
|
|
3211
3296
|
["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.${
|
|
3297
|
+
[`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
|
|
3298
|
+
[`chonky.actions.${G.CreateFolder.id}.button.name`]: "Новая папка",
|
|
3299
|
+
[`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
|
|
3300
|
+
[`chonky.actions.${G.DeleteFiles.id}.button.name`]: "Удалить файлы",
|
|
3301
|
+
[`chonky.actions.${G.OpenSelection.id}.button.name`]: "Открыть выделение",
|
|
3302
|
+
[`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "Выделить все",
|
|
3303
|
+
[`chonky.actions.${G.ClearSelection.id}.button.name`]: "Сбросить выделение",
|
|
3304
|
+
[`chonky.actions.${G.EnableListView.id}.button.name`]: "Показать список",
|
|
3305
|
+
[`chonky.actions.${G.EnableGridView.id}.button.name`]: "Показать иконки",
|
|
3306
|
+
[`chonky.actions.${G.SortFilesByName.id}.button.name`]: "Сорт. по имени",
|
|
3307
|
+
[`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
|
|
3308
|
+
[`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
|
|
3309
|
+
[`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
|
|
3310
|
+
[`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
|
|
3226
3311
|
}
|
|
3227
|
-
},
|
|
3228
|
-
locale:
|
|
3229
|
-
formatters: { ...
|
|
3312
|
+
}, po = {
|
|
3313
|
+
locale: de.HE,
|
|
3314
|
+
formatters: { ...mt },
|
|
3230
3315
|
messages: {
|
|
3231
3316
|
"chonky.toolbar.searchPlaceholder": "חיפוש",
|
|
3232
3317
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3248,52 +3333,52 @@ const Zr = 38, Jr = 40, Qr = 13, eo = 14, to = 27, no = 9, io = 10, ro = 100, oo
|
|
|
3248
3333
|
// Actions
|
|
3249
3334
|
["chonky.actionGroups.Actions"]: "פעולות",
|
|
3250
3335
|
["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.${
|
|
3336
|
+
[`chonky.actions.${G.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
|
|
3337
|
+
[`chonky.actions.${G.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
|
|
3338
|
+
[`chonky.actions.${G.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
|
|
3339
|
+
[`chonky.actions.${G.DeleteFiles.id}.button.name`]: "מחק",
|
|
3340
|
+
[`chonky.actions.${G.OpenSelection.id}.button.name`]: "פתח את הבחירה",
|
|
3341
|
+
[`chonky.actions.${G.SelectAllFiles.id}.button.name`]: "בחר הכל",
|
|
3342
|
+
[`chonky.actions.${G.ClearSelection.id}.button.name`]: "אפס את הבחירה",
|
|
3343
|
+
[`chonky.actions.${G.EnableListView.id}.button.name`]: "תצוגת רשימה",
|
|
3344
|
+
[`chonky.actions.${G.EnableGridView.id}.button.name`]: "תצוגת גריד",
|
|
3345
|
+
[`chonky.actions.${G.SortFilesByName.id}.button.name`]: "מיון לפי שם",
|
|
3346
|
+
[`chonky.actions.${G.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
|
|
3347
|
+
[`chonky.actions.${G.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
|
|
3348
|
+
[`chonky.actions.${G.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
|
|
3349
|
+
[`chonky.actions.${G.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
|
|
3265
3350
|
}
|
|
3266
|
-
},
|
|
3267
|
-
[
|
|
3268
|
-
[
|
|
3269
|
-
[
|
|
3351
|
+
}, go = {
|
|
3352
|
+
[de.EN]: ho,
|
|
3353
|
+
[de.RU]: mo,
|
|
3354
|
+
[de.HE]: po
|
|
3270
3355
|
};
|
|
3271
|
-
class
|
|
3356
|
+
class zs extends Yt {
|
|
3272
3357
|
}
|
|
3273
|
-
const
|
|
3274
|
-
listView:
|
|
3275
|
-
gridView:
|
|
3358
|
+
const $s = G, fo = {
|
|
3359
|
+
listView: G.EnableListView.id,
|
|
3360
|
+
gridView: G.EnableGridView.id
|
|
3276
3361
|
};
|
|
3277
|
-
|
|
3278
|
-
const
|
|
3362
|
+
ki({ iconComponent: Ri });
|
|
3363
|
+
const Ws = ve.memo(
|
|
3279
3364
|
ve.forwardRef(
|
|
3280
3365
|
({
|
|
3281
3366
|
theme: e,
|
|
3282
3367
|
styles: n = { height: "100%", minWidth: "600px" },
|
|
3283
|
-
defaultView: t =
|
|
3368
|
+
defaultView: t = fo.listView,
|
|
3284
3369
|
readOnlyMode: i = !1,
|
|
3285
3370
|
locale: o,
|
|
3286
3371
|
files: r,
|
|
3287
3372
|
folderChain: d,
|
|
3288
3373
|
onFileAction: u,
|
|
3289
|
-
...
|
|
3374
|
+
...h
|
|
3290
3375
|
}, E) => {
|
|
3291
|
-
const
|
|
3376
|
+
const C = me(
|
|
3292
3377
|
(V) => null,
|
|
3293
3378
|
// file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
|
|
3294
3379
|
[]
|
|
3295
3380
|
);
|
|
3296
|
-
|
|
3381
|
+
ke({
|
|
3297
3382
|
"@global": {
|
|
3298
3383
|
".chonky-dropdownList": {
|
|
3299
3384
|
backgroundColor: `${e == null ? void 0 : e.surface} !important`
|
|
@@ -3303,21 +3388,21 @@ const Fs = ve.memo(
|
|
|
3303
3388
|
}
|
|
3304
3389
|
}
|
|
3305
3390
|
})();
|
|
3306
|
-
const
|
|
3391
|
+
const L = (V) => V.replace(/([A-Z])/g, (ne) => "-" + ne.toLowerCase()), b = $e(() => e !== void 0 ? Object.keys(e).reduce((ne, s) => {
|
|
3307
3392
|
const a = e[s];
|
|
3308
|
-
return s = s.startsWith("--") ? s : `--fp-theme-${
|
|
3309
|
-
}, {}) : {}, [e]), [
|
|
3310
|
-
return
|
|
3311
|
-
e &&
|
|
3393
|
+
return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, ne[s] = a, ne;
|
|
3394
|
+
}, {}) : {}, [e]), [P, B] = A(!1), [$, q] = A(), [H, Y] = A(!1), [K, x] = A(), [W, O] = A();
|
|
3395
|
+
return I(() => {
|
|
3396
|
+
e && B(!0), q(t), i ? Y(!0) : x([G.CreateFolder, G.DeleteFiles]), o !== void 0 && O(go[o]);
|
|
3312
3397
|
}, [e, t, i, o]), /* @__PURE__ */ l(
|
|
3313
3398
|
ae,
|
|
3314
3399
|
{
|
|
3315
3400
|
style: {
|
|
3316
3401
|
...n,
|
|
3317
|
-
...
|
|
3402
|
+
...b
|
|
3318
3403
|
},
|
|
3319
3404
|
children: /* @__PURE__ */ l(
|
|
3320
|
-
|
|
3405
|
+
Oi,
|
|
3321
3406
|
{
|
|
3322
3407
|
ref: E,
|
|
3323
3408
|
files: r ?? [],
|
|
@@ -3325,13 +3410,13 @@ const Fs = ve.memo(
|
|
|
3325
3410
|
onFileAction: (V) => {
|
|
3326
3411
|
typeof u == "function" && u(V);
|
|
3327
3412
|
},
|
|
3328
|
-
thumbnailGenerator:
|
|
3329
|
-
defaultFileViewActionId:
|
|
3330
|
-
disableDragAndDrop:
|
|
3331
|
-
fileActions:
|
|
3332
|
-
darkMode:
|
|
3333
|
-
i18n:
|
|
3334
|
-
...
|
|
3413
|
+
thumbnailGenerator: C,
|
|
3414
|
+
defaultFileViewActionId: $,
|
|
3415
|
+
disableDragAndDrop: H,
|
|
3416
|
+
fileActions: K,
|
|
3417
|
+
darkMode: P,
|
|
3418
|
+
i18n: W,
|
|
3419
|
+
...h
|
|
3335
3420
|
}
|
|
3336
3421
|
)
|
|
3337
3422
|
}
|
|
@@ -3340,67 +3425,76 @@ const Fs = ve.memo(
|
|
|
3340
3425
|
)
|
|
3341
3426
|
);
|
|
3342
3427
|
export {
|
|
3343
|
-
|
|
3344
|
-
|
|
3428
|
+
Vs as Autocomplete,
|
|
3429
|
+
ot as BboxCorner,
|
|
3345
3430
|
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
|
-
|
|
3431
|
+
at as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
3432
|
+
st as COORDINATES_WGS_FRACTION_DIGITS,
|
|
3433
|
+
gs as Cesium3DTileset,
|
|
3434
|
+
As as CesiumBoundingSphere,
|
|
3435
|
+
Ms as CesiumCartesian2,
|
|
3436
|
+
Ps as CesiumCartesian3,
|
|
3437
|
+
Ds as CesiumCartographic,
|
|
3438
|
+
Ns as CesiumCesiumTerrainProvider,
|
|
3439
|
+
bs as CesiumColor,
|
|
3440
|
+
Ss as CesiumConstantPositionProperty,
|
|
3441
|
+
Ls as CesiumConstantProperty,
|
|
3442
|
+
jr as CesiumCustomDataSource,
|
|
3443
|
+
Ts as CesiumDrawingsDataSource,
|
|
3444
|
+
Is as CesiumEllipsoid,
|
|
3445
|
+
Rs as CesiumEllipsoidTerrainProvider,
|
|
3446
|
+
$r as CesiumEntity,
|
|
3447
|
+
ws as CesiumEntityDescription,
|
|
3448
|
+
Wr as CesiumEntityStaticDescription,
|
|
3449
|
+
xs as CesiumGeographicTilingScheme,
|
|
3450
|
+
fs as CesiumGeojsonLayer,
|
|
3451
|
+
Ke as CesiumImageryLayer,
|
|
3452
|
+
Fs as CesiumLabelStyle,
|
|
3453
|
+
ps as CesiumMap,
|
|
3454
|
+
Ys as CesiumMath,
|
|
3455
|
+
Cs as CesiumOSMLayer,
|
|
3456
|
+
Ur as CesiumPolygonGraphics,
|
|
3457
|
+
_s as CesiumPolylineDashMaterialProperty,
|
|
3458
|
+
ks as CesiumRectangle,
|
|
3459
|
+
Kr as CesiumRectangleGraphics,
|
|
3460
|
+
Os as CesiumResource,
|
|
3376
3461
|
oe as CesiumSceneMode,
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3462
|
+
Bs as CesiumVerticalOrigin,
|
|
3463
|
+
ms as CesiumViewer,
|
|
3464
|
+
ys as CesiumWMSLayer,
|
|
3465
|
+
vs as CesiumWMTSLayer,
|
|
3466
|
+
Es as CesiumXYZLayer,
|
|
3467
|
+
Er as CoordinatesTrackerTool,
|
|
3468
|
+
us as CssBaseline,
|
|
3469
|
+
as as DateRangePicker,
|
|
3470
|
+
ls as DateTimePicker,
|
|
3471
|
+
Vi as DateTimeRangePicker,
|
|
3472
|
+
os as DateTimeRangePickerFormControl,
|
|
3473
|
+
Ce as DrawHelper,
|
|
3387
3474
|
se as DrawType,
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3475
|
+
zs as FileHelper,
|
|
3476
|
+
Ws as FilePicker,
|
|
3477
|
+
$s as FilePickerActions,
|
|
3478
|
+
fo as FilePickerViewObj,
|
|
3479
|
+
Hs as InspectorTool,
|
|
3480
|
+
cs as MapFilterContainer,
|
|
3481
|
+
zi as Popover,
|
|
3482
|
+
he as Proj,
|
|
3483
|
+
Tr as ScaleTrackerTool,
|
|
3484
|
+
hs as ScopedCssBaseline,
|
|
3485
|
+
ds as SmartTable,
|
|
3486
|
+
de as SupportedLocales,
|
|
3487
|
+
Gs as TerrainianHeightTool,
|
|
3488
|
+
ss as TimeRangeInput,
|
|
3489
|
+
Lr as ZoomLevelTrackerTool,
|
|
3490
|
+
Xs as cesiumSampleTerrainMostDetailed,
|
|
3491
|
+
mt as defaultFormatters,
|
|
3401
3492
|
Ye as isDateRange,
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3493
|
+
Bi as mapMcToMuiTheme,
|
|
3494
|
+
Zr as polygonToGeoJSON,
|
|
3495
|
+
Jr as rectangleToGeoJSON,
|
|
3496
|
+
Qr as rectangleToPositions,
|
|
3497
|
+
le as useCesiumMap,
|
|
3498
|
+
Xt as useMappedMuiTheme,
|
|
3499
|
+
js as useMediaQuery
|
|
3406
3500
|
};
|