@hybridcore/ui 1.5.89 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
- package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Box-p6OtTUEo.js +30 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
- package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
- package/dist/Circle-Cy5s-pVc.js +27 -0
- package/dist/ColorSet-C7vpNXhM.js +2957 -0
- package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
- package/dist/DataProcessor-CHDO51q4.js +83 -0
- package/dist/DateAxis-YX3QNIB-.js +569 -0
- package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
- package/dist/FormControl-BLbrq4C7.js +1636 -0
- package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
- package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
- package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
- package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
- package/dist/Slice-B19rbYDZ.js +261 -0
- package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
- package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
- package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/XYCursor-C8WktvKM.js +362 -0
- package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
- package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/capitalize-ciszXJ7R.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/charts/_common/utils.js +20 -0
- package/dist/components/charts/candlestick/logic.js +170 -140
- package/dist/components/charts/chart-wrapper/helpers.js +27 -0
- package/dist/components/charts/chart-wrapper/index.js +44 -0
- package/dist/components/charts/chart-wrapper/logic.js +47 -0
- package/dist/components/charts/chart-wrapper/styled.js +44 -0
- package/dist/components/charts/column-line-mix/index.js +10 -0
- package/dist/components/charts/column-line-mix/logic.js +162 -0
- package/dist/components/charts/column-line-mix/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-treemap/logic.js +391 -0
- package/dist/components/charts/drill-down-treemap/styled.js +12 -0
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
- package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
- package/dist/components/charts/heatmap/index.js +10 -0
- package/dist/components/charts/heatmap/logic.js +361 -0
- package/dist/components/charts/heatmap/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/logic.js +89 -256
- package/dist/components/charts/line/index.js +10 -0
- package/dist/components/charts/line/logic.js +148 -0
- package/dist/components/charts/line/styled.js +12 -0
- package/dist/components/charts/logaritmic-scale/index.js +10 -0
- package/dist/components/charts/logaritmic-scale/logic.js +119 -0
- package/dist/components/charts/logaritmic-scale/styled.js +12 -0
- package/dist/components/charts/multiple-value-axes/index.js +10 -0
- package/dist/components/charts/multiple-value-axes/logic.js +191 -0
- package/dist/components/charts/multiple-value-axes/styled.js +12 -0
- package/dist/components/charts/nested-pie/index.js +10 -0
- package/dist/components/charts/nested-pie/logic.js +110 -0
- package/dist/components/charts/nested-pie/styled.js +12 -0
- package/dist/components/charts/packed-circles/index.js +10 -0
- package/dist/components/charts/packed-circles/logic.js +423 -0
- package/dist/components/charts/packed-circles/styled.js +12 -0
- package/dist/components/charts/pie-chart/index.js +10 -0
- package/dist/components/charts/pie-chart/logic.js +70 -0
- package/dist/components/charts/pie-chart/styled.js +12 -0
- package/dist/components/charts/stacked-area-radar/index.js +10 -0
- package/dist/components/charts/stacked-area-radar/logic.js +868 -0
- package/dist/components/charts/stacked-area-radar/styled.js +12 -0
- package/dist/components/charts/stacked-column-chart/index.js +10 -0
- package/dist/components/charts/stacked-column-chart/logic.js +148 -0
- package/dist/components/charts/stacked-column-chart/styled.js +12 -0
- package/dist/components/charts/xy-chart/index.js +10 -0
- package/dist/components/charts/xy-chart/logic.js +170 -0
- package/dist/components/charts/xy-chart/styled.js +12 -0
- package/dist/components/collapsible-card/index.js +58 -32
- package/dist/components/collapsible-card/logic.js +20 -0
- package/dist/components/collapsible-card/styled.js +52 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +153 -253
- package/dist/components/data-map/components/controls/index.js +12 -0
- package/dist/components/data-map/components/controls/styled.js +34 -0
- package/dist/components/data-map/index.js +51 -0
- package/dist/components/data-map/logic.js +108 -0
- package/dist/components/data-map/styled.js +32 -0
- package/dist/components/data-security-selectors/security-level/index.js +5 -5
- package/dist/components/date-picker-with-custom-range/index.js +9 -0
- package/dist/components/date-picker-with-custom-range/logic.js +66 -0
- package/dist/components/date-picker-with-custom-range/styled.js +43 -0
- package/dist/components/divider/index.js +18 -0
- package/dist/components/divider/logic.js +13 -0
- package/dist/components/divider/styled.js +14 -0
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +7 -8
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +65 -62
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/heat-map/components/controls/index.js +12 -0
- package/dist/components/heat-map/components/controls/styled.js +34 -0
- package/dist/components/heat-map/components/legend/index.js +26 -0
- package/dist/components/heat-map/components/legend/styled.js +14 -0
- package/dist/components/heat-map/index.js +37 -0
- package/dist/components/heat-map/logic.js +1945 -0
- package/dist/components/heat-map/styled.js +32 -0
- package/dist/components/icon-button/index.js +22 -15
- package/dist/components/icon-button/logic.js +15 -0
- package/dist/components/icon-button/styled.js +22 -10
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
- package/dist/components/instance-form/components/variable/index.js +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +34 -29
- package/dist/components/instance-variable-list/styled.js +21 -21
- package/dist/components/instance-variable-list/variable.js +44 -74
- package/dist/components/linear-indicator/index.js +10 -67
- package/dist/components/linear-indicator/logic.js +47 -0
- package/dist/components/linear-indicator/styled.js +39 -40
- package/dist/components/map/helpers/kml.js +1 -1
- package/dist/components/map/helpers/mapbox.js +14 -14
- package/dist/components/map/helpers/ol.js +23 -19
- package/dist/components/map/helpers/wkt.js +26 -1314
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +113 -101
- package/dist/components/map/styled.js +39 -31
- package/dist/components/metric-card/MetricChart.js +50 -498
- package/dist/components/metric-card/index.js +94 -115
- package/dist/components/metric-card/logic.js +70 -131
- package/dist/components/object-profile-card/components/avatar/index.js +44 -0
- package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
- package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
- package/dist/components/object-profile-card/index.js +90 -0
- package/dist/components/object-profile-card/logic.js +33 -0
- package/dist/components/object-profile-card/styled.js +48 -0
- package/dist/components/paginated-list/index.js +93 -89
- package/dist/components/paginated-list/logic.js +51 -40
- package/dist/components/paginated-list/styled.js +25 -21
- package/dist/components/property-mapping/index.js +2 -2
- package/dist/components/prr-map/components/controls/index.js +12 -0
- package/dist/components/prr-map/components/controls/styled.js +34 -0
- package/dist/components/prr-map/components/legend/index.js +36 -0
- package/dist/components/prr-map/components/legend/styled.js +21 -0
- package/dist/components/prr-map/index.js +38 -0
- package/dist/components/prr-map/logic.js +104 -0
- package/dist/components/prr-map/styled.js +32 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +4282 -7
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/raster-grid-map/components/controls/index.js +12 -0
- package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
- package/dist/components/raster-grid-map/components/legend/index.js +14 -0
- package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
- package/dist/components/raster-grid-map/helpers.js +190 -0
- package/dist/components/raster-grid-map/index.js +38 -0
- package/dist/components/raster-grid-map/logic.js +172 -0
- package/dist/components/raster-grid-map/styled.js +32 -0
- package/dist/components/search-input/index.js +62 -140
- package/dist/components/search-input/logic.js +43 -0
- package/dist/components/search-input/styled.js +33 -0
- package/dist/components/simple-pivot-table/index.js +66 -0
- package/dist/components/simple-pivot-table/logic.js +51 -0
- package/dist/components/simple-pivot-table/styled.js +45 -0
- package/dist/components/static-text/index.js +18 -0
- package/dist/components/static-text/logic.js +13 -0
- package/dist/components/static-text/styled.js +45 -0
- package/dist/components/tabs/index.js +56 -2160
- package/dist/components/tabs/logic.js +36 -0
- package/dist/components/tabs/styled.js +94 -16
- package/dist/components/tabs/tab-panel.js +11 -10
- package/dist/components/template-filters/components/tab-panel/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +7 -7
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- package/dist/components/timeline/index.js +61 -0
- package/dist/components/timeline/logic.js +40 -0
- package/dist/components/timeline/styled.js +48 -0
- package/dist/components/tree-select/index.js +5 -5
- package/dist/components/treeview-filter/item-label/index.js +3 -3
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
- package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
- package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index-syTc6m_V.js +1934 -0
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
- package/dist/main.d.ts +1226 -358
- package/dist/main.js +141 -443
- package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/path-CNVruS--.js +84 -0
- package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
- package/dist/styled-eZwjUruw.js +12 -0
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
- package/dist/useThemeProps-BzzHcQyd.js +58 -0
- package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
- package/package.json +42 -9
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/profile-card/index.js +0 -80
- package/dist/components/profile-card/logic.js +0 -33
- package/dist/components/profile-card/styled.js +0 -43
- package/dist/components/tabs/appleTabs.style.js +0 -55
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/exactProp-cjT0t_Pt.js +0 -36
- package/dist/extendSxProp-FEpqY5_S.js +0 -30
- package/dist/index-DMSHuq6l.js +0 -688
- package/dist/index-SpeaLUQD.js +0 -10963
- package/dist/ol-lGwSyEIV.js +0 -15050
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/styled-B8ugzvji.js +0 -12
- package/dist/useId-BHG98T5I.js +0 -26
- package/dist/useTheme-C15Eq8KG.js +0 -18
- package/dist/useTheme-D-uii9iX.js +0 -10
- package/dist/useThemeProps-DRP1dikX.js +0 -95
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import v from "react";
|
|
2
2
|
import { createMapboxLayer as Tt } from "../../map/helpers/mapbox.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { C as we, b as A, c as Be, V as De, a as he } from "../../../Vector-DfTqQEln.js";
|
|
4
|
+
import { T as ce, g as C, j as Ft, e as Oe, f as J, E as $, k as pt, F as We, t as Et, s as He, m as $e, l as B, u as me, a as M, p as St, q as wt, r as ee, v as te, b as Pt, w as Lt } from "../../../math-Bvt2Ubuz.js";
|
|
5
|
+
import { F as G, L as le, M as Dt, a as Je, b as Qe, G as Mt } from "../../../WKT-2wsDT-nq.js";
|
|
6
|
+
import { I as kt, s as et, n as Pe, e as tt, P as Me, p as Gt, f as vt, h as Le, M as D, C as Rt, i as At, j as bt, l as It, T as jt, m as z, o as j, q as Ot, R as Ut, r as zt, a as Ue, t as ze, u as Kt } from "../../../ol-yOE-NV0X.js";
|
|
7
|
+
import { V as ge } from "../../../Vector-BmuhQO4p.js";
|
|
8
|
+
import { e as ke, f as I, s as Nt } from "../../../Text-ChJRuaD8.js";
|
|
6
9
|
import { defaultStyle as Vt, selectStyleFunction as Xt, markerStyle as Zt } from "./style.js";
|
|
7
|
-
import {
|
|
10
|
+
import { a8 as P, a9 as ye, P as W, aa as ue, ab as p, ac as b, ad as de, ae as qt, af as it, a4 as nt, ag as O, ah as st, ai as Yt, aj as Ke, I as rt, y as Bt, ak as Wt, al as Ht, am as $t, an as ot, T as at, ao as Jt, c as Ge, ap as Qt, a2 as lt, aq as ei, ar as ti, as as ii, at as ni, S as si, e as N } from "../../../Source-BSZST_GH.js";
|
|
8
11
|
import { alert as ri } from "../../confirm/index.js";
|
|
9
12
|
const oi = {
|
|
10
13
|
/**
|
|
@@ -27,12 +30,12 @@ class ai extends J {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
const ie = {};
|
|
30
|
-
class ve extends
|
|
33
|
+
class ve extends kt {
|
|
31
34
|
/**
|
|
32
35
|
* @param {Options} [options] Options.
|
|
33
36
|
*/
|
|
34
37
|
constructor(e) {
|
|
35
|
-
super(), this.on, this.once, this.un, e = e || {}, this.boundAddFeature_ = this.addFeature_.bind(this), this.boundRemoveFeature_ = this.removeFeature_.bind(this), this.condition_ = e.condition ? e.condition :
|
|
38
|
+
super(), this.on, this.once, this.un, e = e || {}, this.boundAddFeature_ = this.addFeature_.bind(this), this.boundRemoveFeature_ = this.removeFeature_.bind(this), this.condition_ = e.condition ? e.condition : et, this.addCondition_ = e.addCondition ? e.addCondition : Pe, this.removeCondition_ = e.removeCondition ? e.removeCondition : Pe, this.toggleCondition_ = e.toggleCondition ? e.toggleCondition : tt, this.multi_ = e.multi ? e.multi : !1, this.filter_ = e.filter ? e.filter : ce, this.hitTolerance_ = e.hitTolerance ? e.hitTolerance : 0, this.style_ = e.style !== void 0 ? e.style : li(), this.features_ = e.features || new we();
|
|
36
39
|
let t;
|
|
37
40
|
if (e.layers)
|
|
38
41
|
if (typeof e.layers == "function")
|
|
@@ -186,7 +189,7 @@ class ve extends Ft {
|
|
|
186
189
|
return !0;
|
|
187
190
|
const t = this.addCondition_(e), i = this.removeCondition_(e), n = this.toggleCondition_(e), s = !t && !i && !n, r = e.map, o = this.getFeatures(), a = [], h = [];
|
|
188
191
|
if (s) {
|
|
189
|
-
|
|
192
|
+
Ft(this.featureLayerAssociation_), r.forEachFeatureAtPixel(
|
|
190
193
|
e.pixel,
|
|
191
194
|
/**
|
|
192
195
|
* @param {import("../Feature.js").FeatureLike} feature Feature.
|
|
@@ -240,7 +243,7 @@ class ve extends Ft {
|
|
|
240
243
|
}
|
|
241
244
|
function li() {
|
|
242
245
|
const l = ke();
|
|
243
|
-
return
|
|
246
|
+
return Oe(l.Polygon, l.LineString), Oe(l.GeometryCollection, l.LineString), function(e) {
|
|
244
247
|
return e.getGeometry() ? l[e.getGeometry().getType()] : null;
|
|
245
248
|
};
|
|
246
249
|
}
|
|
@@ -270,7 +273,7 @@ class Ce extends J {
|
|
|
270
273
|
super(e), this.features = t, this.mapBrowserEvent = i;
|
|
271
274
|
}
|
|
272
275
|
}
|
|
273
|
-
class hi extends
|
|
276
|
+
class hi extends Me {
|
|
274
277
|
/**
|
|
275
278
|
* @param {Options} options Options.
|
|
276
279
|
*/
|
|
@@ -278,10 +281,10 @@ class hi extends De {
|
|
|
278
281
|
super(
|
|
279
282
|
/** @type {import("./Pointer.js").Options} */
|
|
280
283
|
e
|
|
281
|
-
), this.on, this.once, this.un, this.boundHandleFeatureChange_ = this.handleFeatureChange_.bind(this), this.condition_ = e.condition ? e.condition :
|
|
282
|
-
return
|
|
283
|
-
}, this.deleteCondition_ = e.deleteCondition ? e.deleteCondition : this.defaultDeleteCondition_, this.insertVertexCondition_ = e.insertVertexCondition ? e.insertVertexCondition : Le, this.vertexFeature_ = null, this.vertexSegments_ = null, this.lastPixel_ = [0, 0], this.ignoreNextSingleClick_ = !1, this.featuresBeingModified_ = null, this.rBush_ = new
|
|
284
|
-
source: new
|
|
284
|
+
), this.on, this.once, this.un, this.boundHandleFeatureChange_ = this.handleFeatureChange_.bind(this), this.condition_ = e.condition ? e.condition : Gt, this.defaultDeleteCondition_ = function(i) {
|
|
285
|
+
return vt(i) && et(i);
|
|
286
|
+
}, this.deleteCondition_ = e.deleteCondition ? e.deleteCondition : this.defaultDeleteCondition_, this.insertVertexCondition_ = e.insertVertexCondition ? e.insertVertexCondition : Le, this.vertexFeature_ = null, this.vertexSegments_ = null, this.lastPixel_ = [0, 0], this.ignoreNextSingleClick_ = !1, this.featuresBeingModified_ = null, this.rBush_ = new Be(), this.pixelTolerance_ = e.pixelTolerance !== void 0 ? e.pixelTolerance : 10, this.snappedToVertex_ = !1, this.changingFeature_ = !1, this.dragSegments_ = [], this.overlay_ = new ge({
|
|
287
|
+
source: new De({
|
|
285
288
|
useSpatialIndex: !1,
|
|
286
289
|
wrapX: !!e.wrapX
|
|
287
290
|
}),
|
|
@@ -300,7 +303,7 @@ class hi extends De {
|
|
|
300
303
|
GeometryCollection: this.writeGeometryCollectionGeometry_.bind(this)
|
|
301
304
|
}, this.source_ = null, this.hitDetection_ = null;
|
|
302
305
|
let t;
|
|
303
|
-
if (e.features ? t = e.features : e.source && (this.source_ = e.source, t = new
|
|
306
|
+
if (e.features ? t = e.features : e.source && (this.source_ = e.source, t = new we(this.source_.getFeatures()), this.source_.addEventListener(
|
|
304
307
|
he.ADDFEATURE,
|
|
305
308
|
this.handleSourceAdd_.bind(this)
|
|
306
309
|
), this.source_.addEventListener(
|
|
@@ -338,7 +341,7 @@ class hi extends De {
|
|
|
338
341
|
*/
|
|
339
342
|
willModifyFeatures_(e, t) {
|
|
340
343
|
if (!this.featuresBeingModified_) {
|
|
341
|
-
this.featuresBeingModified_ = new
|
|
344
|
+
this.featuresBeingModified_ = new we();
|
|
342
345
|
const i = this.featuresBeingModified_.getArray();
|
|
343
346
|
for (let n = 0, s = t.length; n < s; ++n) {
|
|
344
347
|
const r = t[n];
|
|
@@ -997,7 +1000,7 @@ class hi extends De {
|
|
|
997
1000
|
this.rBush_.forEachInExtent(
|
|
998
1001
|
e.getExtent(),
|
|
999
1002
|
function(s) {
|
|
1000
|
-
s.geometry === e && (i === void 0 || s.depth === void 0 ||
|
|
1003
|
+
s.geometry === e && (i === void 0 || s.depth === void 0 || pt(s.depth, i)) && s.index > t && (s.index += n);
|
|
1001
1004
|
}
|
|
1002
1005
|
);
|
|
1003
1006
|
}
|
|
@@ -1021,7 +1024,7 @@ function Xe(l, e, t) {
|
|
|
1021
1024
|
}
|
|
1022
1025
|
}
|
|
1023
1026
|
const n = p(l);
|
|
1024
|
-
return Z[0] = p(e.segment[0]), Z[1] = p(e.segment[1]),
|
|
1027
|
+
return Z[0] = p(e.segment[0]), Z[1] = p(e.segment[1]), Yt(n, Z);
|
|
1025
1028
|
}
|
|
1026
1029
|
function Ze(l, e, t) {
|
|
1027
1030
|
const i = e.geometry;
|
|
@@ -1081,7 +1084,7 @@ function di(l, e) {
|
|
|
1081
1084
|
return t;
|
|
1082
1085
|
}
|
|
1083
1086
|
function re(l, e) {
|
|
1084
|
-
return
|
|
1087
|
+
return He(l[0], l[1], e[0], e[1]);
|
|
1085
1088
|
}
|
|
1086
1089
|
function V(l, e) {
|
|
1087
1090
|
const t = l.length;
|
|
@@ -1115,7 +1118,7 @@ function ht(l, e, t) {
|
|
|
1115
1118
|
ae(l, e.getCoordinates(), !1, t);
|
|
1116
1119
|
return;
|
|
1117
1120
|
}
|
|
1118
|
-
if (e instanceof
|
|
1121
|
+
if (e instanceof Je) {
|
|
1119
1122
|
const i = e.getCoordinates();
|
|
1120
1123
|
for (let n = 0, s = i.length; n < s; ++n)
|
|
1121
1124
|
ae(l, i[n], !1, t);
|
|
@@ -1127,7 +1130,7 @@ function ht(l, e, t) {
|
|
|
1127
1130
|
ae(l, i[n], !0, t);
|
|
1128
1131
|
return;
|
|
1129
1132
|
}
|
|
1130
|
-
if (e instanceof
|
|
1133
|
+
if (e instanceof Qe) {
|
|
1131
1134
|
const i = e.getCoordinates();
|
|
1132
1135
|
for (let n = 0, s = i.length; n < s; ++n) {
|
|
1133
1136
|
const r = i[n];
|
|
@@ -1213,7 +1216,7 @@ const Fe = { along: 0, squaredDistance: 0 };
|
|
|
1213
1216
|
function ct(l, e, t, i) {
|
|
1214
1217
|
const n = t[0], s = t[1], r = i[0], o = i[1], a = r - n, h = o - s;
|
|
1215
1218
|
let c = 0, u = n, g = s;
|
|
1216
|
-
return (a !== 0 || h !== 0) && (c =
|
|
1219
|
+
return (a !== 0 || h !== 0) && (c = $e(((l - n) * a + (e - s) * h) / (a * a + h * h), 0, 1), u += a * c, g += h * c), Fe.along = c, Fe.squaredDistance = Et(He(l, e, u, g), 10), Fe;
|
|
1217
1220
|
}
|
|
1218
1221
|
function X(l, e) {
|
|
1219
1222
|
const t = l.length;
|
|
@@ -1225,7 +1228,7 @@ function X(l, e) {
|
|
|
1225
1228
|
const r = l[i], o = r[0], a = r[1], h = l[s], c = h[0] - o, u = h[1] - a;
|
|
1226
1229
|
return [o + c * n, a + u * n];
|
|
1227
1230
|
}
|
|
1228
|
-
class fi extends
|
|
1231
|
+
class fi extends Me {
|
|
1229
1232
|
/**
|
|
1230
1233
|
* @param {Options} options Options.
|
|
1231
1234
|
*/
|
|
@@ -1234,14 +1237,14 @@ class fi extends De {
|
|
|
1234
1237
|
/** @type {import("./Pointer.js").Options} */
|
|
1235
1238
|
e
|
|
1236
1239
|
);
|
|
1237
|
-
t.stopDown || (t.stopDown =
|
|
1240
|
+
t.stopDown || (t.stopDown = We), super(t), this.on, this.once, this.un, this.shouldHandle_ = !1, this.downPx_ = null, this.downTimeout_, this.lastDragTime_, this.pointerType_, this.freehand_ = !1, this.source_ = e.source ? e.source : null, this.features_ = e.features ? e.features : null, this.snapTolerance_ = e.snapTolerance ? e.snapTolerance : 12, this.type_ = /** @type {import("../geom/Geometry.js").Type} */
|
|
1238
1241
|
e.type, this.mode_ = mi(this.type_), this.stopClick_ = !!e.stopClick, this.minPoints_ = e.minPoints ? e.minPoints : this.mode_ === "Polygon" ? 3 : 2, this.maxPoints_ = this.mode_ === "Circle" ? 2 : e.maxPoints ? e.maxPoints : 1 / 0, this.finishCondition_ = e.finishCondition ? e.finishCondition : ce, this.geometryLayout_ = e.geometryLayout ? e.geometryLayout : "XY";
|
|
1239
1242
|
let i = e.geometryFunction;
|
|
1240
1243
|
if (!i) {
|
|
1241
1244
|
const n = this.mode_;
|
|
1242
1245
|
if (n === "Circle")
|
|
1243
1246
|
i = function(s, r, o) {
|
|
1244
|
-
const a = r || new
|
|
1247
|
+
const a = r || new Rt([NaN, NaN]), h = p(s[0]), c = O(
|
|
1245
1248
|
h,
|
|
1246
1249
|
p(s[s.length - 1])
|
|
1247
1250
|
);
|
|
@@ -1262,13 +1265,13 @@ class fi extends De {
|
|
|
1262
1265
|
}
|
|
1263
1266
|
}
|
|
1264
1267
|
this.geometryFunction_ = i, this.dragVertexDelay_ = e.dragVertexDelay !== void 0 ? e.dragVertexDelay : 500, this.finishCoordinate_ = null, this.sketchFeature_ = null, this.sketchPoint_ = null, this.sketchCoords_ = null, this.sketchLine_ = null, this.sketchLineCoords_ = null, this.squaredClickTolerance_ = e.clickTolerance ? e.clickTolerance * e.clickTolerance : 36, this.overlay_ = new ge({
|
|
1265
|
-
source: new
|
|
1268
|
+
source: new De({
|
|
1266
1269
|
useSpatialIndex: !1,
|
|
1267
1270
|
wrapX: e.wrapX ? e.wrapX : !1
|
|
1268
1271
|
}),
|
|
1269
1272
|
style: e.style ? e.style : _i(),
|
|
1270
1273
|
updateWhileInteracting: !0
|
|
1271
|
-
}), this.geometryName_ = e.geometryName, this.condition_ = e.condition ? e.condition :
|
|
1274
|
+
}), this.geometryName_ = e.geometryName, this.condition_ = e.condition ? e.condition : At, this.freehandCondition_, e.freehand ? this.freehandCondition_ = Le : this.freehandCondition_ = e.freehandCondition ? e.freehandCondition : tt, this.traceCondition_, this.setTrace(e.trace || !1), this.traceState_ = { active: !1 }, this.traceSource_ = e.traceSource || e.source || null, this.addChangeListener(bt.ACTIVE, this.updateState_);
|
|
1272
1275
|
}
|
|
1273
1276
|
/**
|
|
1274
1277
|
* Toggle tracing mode or set a tracing condition.
|
|
@@ -1278,7 +1281,7 @@ class fi extends De {
|
|
|
1278
1281
|
*/
|
|
1279
1282
|
setTrace(e) {
|
|
1280
1283
|
let t;
|
|
1281
|
-
e ? e === !0 ? t = Le : t = e : t =
|
|
1284
|
+
e ? e === !0 ? t = Le : t = e : t = Pe, this.traceCondition_ = t;
|
|
1282
1285
|
}
|
|
1283
1286
|
/**
|
|
1284
1287
|
* Remove the interaction from its current map and attach it to the new map.
|
|
@@ -1316,7 +1319,7 @@ class fi extends De {
|
|
|
1316
1319
|
handleDownEvent(e) {
|
|
1317
1320
|
return this.shouldHandle_ = !this.freehand_, this.freehand_ ? (this.downPx_ = e.pixel, this.finishCoordinate_ || this.startDrawing_(e.coordinate), !0) : this.condition_(e) ? (this.lastDragTime_ = Date.now(), this.downTimeout_ = setTimeout(() => {
|
|
1318
1321
|
this.handlePointerMove_(
|
|
1319
|
-
new
|
|
1322
|
+
new It(
|
|
1320
1323
|
D.POINTERMOVE,
|
|
1321
1324
|
e.map,
|
|
1322
1325
|
e.originalEvent,
|
|
@@ -1671,12 +1674,12 @@ class fi extends De {
|
|
|
1671
1674
|
t
|
|
1672
1675
|
])
|
|
1673
1676
|
) : this.type_ === "MultiLineString" ? e.setGeometry(
|
|
1674
|
-
new
|
|
1677
|
+
new Je([
|
|
1675
1678
|
/** @type {LineCoordType} */
|
|
1676
1679
|
t
|
|
1677
1680
|
])
|
|
1678
1681
|
) : this.type_ === "MultiPolygon" && e.setGeometry(
|
|
1679
|
-
new
|
|
1682
|
+
new Qe([
|
|
1680
1683
|
/** @type {PolyCoordType} */
|
|
1681
1684
|
t
|
|
1682
1685
|
])
|
|
@@ -1826,7 +1829,7 @@ function qe(l) {
|
|
|
1826
1829
|
);
|
|
1827
1830
|
}
|
|
1828
1831
|
const pe = [];
|
|
1829
|
-
class Ci extends
|
|
1832
|
+
class Ci extends Me {
|
|
1830
1833
|
/**
|
|
1831
1834
|
* @param {Options} [options] Options.
|
|
1832
1835
|
*/
|
|
@@ -1836,7 +1839,7 @@ class Ci extends De {
|
|
|
1836
1839
|
/** @type {import("./Pointer.js").Options} */
|
|
1837
1840
|
e
|
|
1838
1841
|
);
|
|
1839
|
-
t.handleDownEvent || (t.handleDownEvent = ce), t.stopDown || (t.stopDown =
|
|
1842
|
+
t.handleDownEvent || (t.handleDownEvent = ce), t.stopDown || (t.stopDown = We), super(t), this.on, this.once, this.un, this.source_ = e.source ? e.source : null, this.vertex_ = e.vertex !== void 0 ? e.vertex : !0, this.edge_ = e.edge !== void 0 ? e.edge : !0, this.features_ = e.features ? e.features : null, this.featuresListenerKeys_ = [], this.featureChangeListenerKeys_ = {}, this.indexedFeaturesExtents_ = {}, this.pendingFeatures_ = {}, this.pixelTolerance_ = e.pixelTolerance !== void 0 ? e.pixelTolerance : 10, this.rBush_ = new Be(), this.GEOMETRY_SEGMENTERS_ = {
|
|
1840
1843
|
Point: this.segmentPointGeometry_.bind(this),
|
|
1841
1844
|
LineString: this.segmentLineStringGeometry_.bind(this),
|
|
1842
1845
|
LinearRing: this.segmentLineStringGeometry_.bind(this),
|
|
@@ -1862,7 +1865,7 @@ class Ci extends De {
|
|
|
1862
1865
|
const s = this.GEOMETRY_SEGMENTERS_[n.getType()];
|
|
1863
1866
|
if (s) {
|
|
1864
1867
|
this.indexedFeaturesExtents_[i] = n.getExtent(
|
|
1865
|
-
|
|
1868
|
+
Bt()
|
|
1866
1869
|
);
|
|
1867
1870
|
const r = (
|
|
1868
1871
|
/** @type {Array<Array<import('../coordinate.js').Coordinate>>} */
|
|
@@ -1882,7 +1885,7 @@ class Ci extends De {
|
|
|
1882
1885
|
}
|
|
1883
1886
|
}
|
|
1884
1887
|
}
|
|
1885
|
-
t && (this.featureChangeListenerKeys_[i] =
|
|
1888
|
+
t && (this.featureChangeListenerKeys_[i] = B(
|
|
1886
1889
|
e,
|
|
1887
1890
|
$.CHANGE,
|
|
1888
1891
|
this.handleFeatureChange_,
|
|
@@ -1983,26 +1986,26 @@ class Ci extends De {
|
|
|
1983
1986
|
this.getFeatures_()
|
|
1984
1987
|
);
|
|
1985
1988
|
t && (i.forEach(me), i.length = 0, this.rBush_.clear(), Object.values(this.featureChangeListenerKeys_).forEach(me), this.featureChangeListenerKeys_ = {}), super.setMap(e), e && (this.features_ ? i.push(
|
|
1986
|
-
|
|
1989
|
+
B(
|
|
1987
1990
|
this.features_,
|
|
1988
1991
|
A.ADD,
|
|
1989
1992
|
this.handleFeatureAdd_,
|
|
1990
1993
|
this
|
|
1991
1994
|
),
|
|
1992
|
-
|
|
1995
|
+
B(
|
|
1993
1996
|
this.features_,
|
|
1994
1997
|
A.REMOVE,
|
|
1995
1998
|
this.handleFeatureRemove_,
|
|
1996
1999
|
this
|
|
1997
2000
|
)
|
|
1998
2001
|
) : this.source_ && i.push(
|
|
1999
|
-
|
|
2002
|
+
B(
|
|
2000
2003
|
this.source_,
|
|
2001
2004
|
he.ADDFEATURE,
|
|
2002
2005
|
this.handleFeatureAdd_,
|
|
2003
2006
|
this
|
|
2004
2007
|
),
|
|
2005
|
-
|
|
2008
|
+
B(
|
|
2006
2009
|
this.source_,
|
|
2007
2010
|
he.REMOVEFEATURE,
|
|
2008
2011
|
this.handleFeatureRemove_,
|
|
@@ -2339,7 +2342,7 @@ class Ti {
|
|
|
2339
2342
|
this.highWaterMark = e;
|
|
2340
2343
|
}
|
|
2341
2344
|
}
|
|
2342
|
-
function
|
|
2345
|
+
function Ye(l, e, t, i) {
|
|
2343
2346
|
return i !== void 0 ? (i[0] = l, i[1] = e, i[2] = t, i) : [l, e, t];
|
|
2344
2347
|
}
|
|
2345
2348
|
function fe(l, e, t) {
|
|
@@ -2415,7 +2418,7 @@ class gt {
|
|
|
2415
2418
|
*/
|
|
2416
2419
|
constructor(e) {
|
|
2417
2420
|
this.minZoom = e.minZoom !== void 0 ? e.minZoom : 0, this.resolutions_ = e.resolutions, M(
|
|
2418
|
-
|
|
2421
|
+
St(
|
|
2419
2422
|
this.resolutions_,
|
|
2420
2423
|
function(n, s) {
|
|
2421
2424
|
return s - n;
|
|
@@ -2442,7 +2445,7 @@ class gt {
|
|
|
2442
2445
|
!this.tileSize_ && this.tileSizes_ || this.tileSize_ && !this.tileSizes_,
|
|
2443
2446
|
22
|
|
2444
2447
|
), this.extent_ = i !== void 0 ? i : null, this.fullTileRanges_ = null, this.tmpSize_ = [0, 0], this.tmpExtent_ = [0, 0, 0, 0], e.sizes !== void 0 ? this.fullTileRanges_ = e.sizes.map(function(n, s) {
|
|
2445
|
-
const r = new
|
|
2448
|
+
const r = new jt(
|
|
2446
2449
|
Math.min(0, n[0]),
|
|
2447
2450
|
Math.max(n[0] - 1, -1),
|
|
2448
2451
|
Math.min(0, n[1]),
|
|
@@ -2670,7 +2673,7 @@ class gt {
|
|
|
2670
2673
|
getTileCoordForXYAndResolution_(e, t, i, n, s) {
|
|
2671
2674
|
const r = this.getZForResolution(i), o = i / this.getResolution(r), a = this.getOrigin(r), h = I(this.getTileSize(r), this.tmpSize_);
|
|
2672
2675
|
let c = o * (e - a[0]) / i / h[0], u = o * (a[1] - t) / i / h[1];
|
|
2673
|
-
return n ? (c = ee(c, R) - 1, u = ee(u, R) - 1) : (c = te(c, R), u = te(u, R)),
|
|
2676
|
+
return n ? (c = ee(c, R) - 1, u = ee(u, R) - 1) : (c = te(c, R), u = te(u, R)), Ye(r, c, u, s);
|
|
2674
2677
|
}
|
|
2675
2678
|
/**
|
|
2676
2679
|
* Although there is repetition between this method and `getTileCoordForXYAndResolution_`,
|
|
@@ -2690,7 +2693,7 @@ class gt {
|
|
|
2690
2693
|
getTileCoordForXYAndZ_(e, t, i, n, s) {
|
|
2691
2694
|
const r = this.getOrigin(i), o = this.getResolution(i), a = I(this.getTileSize(i), this.tmpSize_);
|
|
2692
2695
|
let h = (e - r[0]) / o / a[0], c = (r[1] - t) / o / a[1];
|
|
2693
|
-
return n ? (h = ee(h, R) - 1, c = ee(c, R) - 1) : (h = te(h, R), c = te(c, R)),
|
|
2696
|
+
return n ? (h = ee(h, R) - 1, c = ee(c, R) - 1) : (h = te(h, R), c = te(c, R)), Ye(i, h, c, s);
|
|
2694
2697
|
}
|
|
2695
2698
|
/**
|
|
2696
2699
|
* Get a tile coordinate given a map coordinate and zoom level.
|
|
@@ -2752,12 +2755,12 @@ class gt {
|
|
|
2752
2755
|
* @api
|
|
2753
2756
|
*/
|
|
2754
2757
|
getZForResolution(e, t) {
|
|
2755
|
-
const i =
|
|
2758
|
+
const i = wt(
|
|
2756
2759
|
this.resolutions_,
|
|
2757
2760
|
e,
|
|
2758
2761
|
t || 0
|
|
2759
2762
|
);
|
|
2760
|
-
return
|
|
2763
|
+
return $e(i, this.minZoom, this.maxZoom);
|
|
2761
2764
|
}
|
|
2762
2765
|
/**
|
|
2763
2766
|
* The tile with the provided tile coordinate intersects the given viewport.
|
|
@@ -2945,7 +2948,7 @@ class Di extends si {
|
|
|
2945
2948
|
* @return {!import("../Tile.js").default} Tile.
|
|
2946
2949
|
*/
|
|
2947
2950
|
getTile(e, t, i, n, s) {
|
|
2948
|
-
return
|
|
2951
|
+
return Pt();
|
|
2949
2952
|
}
|
|
2950
2953
|
/**
|
|
2951
2954
|
* Return the tile grid of the tile source.
|
|
@@ -3083,7 +3086,7 @@ function vi(l) {
|
|
|
3083
3086
|
function(e, t, i) {
|
|
3084
3087
|
if (!e)
|
|
3085
3088
|
return;
|
|
3086
|
-
const n = pi(e), s =
|
|
3089
|
+
const n = pi(e), s = Lt(n, l.length);
|
|
3087
3090
|
return l[s](e, t, i);
|
|
3088
3091
|
}
|
|
3089
3092
|
);
|
|
@@ -3245,7 +3248,7 @@ class Ai extends Ae {
|
|
|
3245
3248
|
key: e.key,
|
|
3246
3249
|
attributionsCollapsible: e.attributionsCollapsible,
|
|
3247
3250
|
zDirection: e.zDirection
|
|
3248
|
-
}), this.crossOrigin = e.crossOrigin !== void 0 ? e.crossOrigin : null, this.tileClass = e.tileClass !== void 0 ? e.tileClass :
|
|
3251
|
+
}), this.crossOrigin = e.crossOrigin !== void 0 ? e.crossOrigin : null, this.tileClass = e.tileClass !== void 0 ? e.tileClass : Ot, this.tileCacheForProjection = {}, this.tileGridForProjection = {}, this.reprojectionErrorThreshold_ = e.reprojectionErrorThreshold, this.renderReprojectionEdges_ = !1;
|
|
3249
3252
|
}
|
|
3250
3253
|
/**
|
|
3251
3254
|
* @return {boolean} Can expire cache.
|
|
@@ -3376,7 +3379,7 @@ class Ai extends Ae {
|
|
|
3376
3379
|
const g = this.getTileGridForProjection(r), d = this.getTileGridForProjection(s), f = this.getTileCoordForTileUrlFunction(
|
|
3377
3380
|
a,
|
|
3378
3381
|
s
|
|
3379
|
-
), _ = new
|
|
3382
|
+
), _ = new Ut(
|
|
3380
3383
|
r,
|
|
3381
3384
|
g,
|
|
3382
3385
|
s,
|
|
@@ -3521,7 +3524,7 @@ class Oi extends Ii {
|
|
|
3521
3524
|
}
|
|
3522
3525
|
}
|
|
3523
3526
|
let Se = null;
|
|
3524
|
-
const L = new
|
|
3527
|
+
const L = new De(), w = {
|
|
3525
3528
|
layer: new ge({
|
|
3526
3529
|
source: L,
|
|
3527
3530
|
style: Vt
|
|
@@ -3530,11 +3533,11 @@ const L = new Me(), w = {
|
|
|
3530
3533
|
draw: null,
|
|
3531
3534
|
snap: null,
|
|
3532
3535
|
select: new ve({
|
|
3533
|
-
condition:
|
|
3536
|
+
condition: zt,
|
|
3534
3537
|
style: Xt
|
|
3535
3538
|
})
|
|
3536
3539
|
};
|
|
3537
|
-
function
|
|
3540
|
+
function Hi(l) {
|
|
3538
3541
|
const e = v.useRef(null), [t, i] = v.useState("Pointer"), [n, s] = v.useState(!1), [r, o] = v.useState({
|
|
3539
3542
|
open: !1,
|
|
3540
3543
|
buttons: [],
|
|
@@ -3542,7 +3545,7 @@ function Bi(l) {
|
|
|
3542
3545
|
}), a = () => {
|
|
3543
3546
|
if (l.defaultExtent && je(l.defaultExtent), h(), c(), u(), k(), l.drawingWKTData && l.drawingWKTData !== "GEOMETRYCOLLECTION()") {
|
|
3544
3547
|
q(l.drawingWKTData);
|
|
3545
|
-
const m =
|
|
3548
|
+
const m = ze(l.drawingWKTData);
|
|
3546
3549
|
m && Ie(m[0], [100, 100, 100, 100]);
|
|
3547
3550
|
}
|
|
3548
3551
|
};
|
|
@@ -3572,7 +3575,7 @@ function Bi(l) {
|
|
|
3572
3575
|
center: [0, 0],
|
|
3573
3576
|
style: "mapbox://styles/mapbox/streets-v11",
|
|
3574
3577
|
accessToken: l.mapboxAccessToken
|
|
3575
|
-
}).layer : Se = new
|
|
3578
|
+
}).layer : Se = new Kt({
|
|
3576
3579
|
source: new Oi()
|
|
3577
3580
|
}), (m = e.current) == null || m.addLayer(Se);
|
|
3578
3581
|
}, d = () => {
|
|
@@ -3595,9 +3598,9 @@ function Bi(l) {
|
|
|
3595
3598
|
(m = e.current) == null || m.on(
|
|
3596
3599
|
"contextmenu",
|
|
3597
3600
|
async (y) => {
|
|
3598
|
-
var
|
|
3601
|
+
var Y;
|
|
3599
3602
|
y.preventDefault();
|
|
3600
|
-
const S = (
|
|
3603
|
+
const S = (Y = e.current) == null ? void 0 : Y.getEventPixel(y.originalEvent);
|
|
3601
3604
|
if (S) {
|
|
3602
3605
|
const U = await w.layer.getFeatures(S);
|
|
3603
3606
|
if (U && U.length > 0) {
|
|
@@ -3627,7 +3630,7 @@ function Bi(l) {
|
|
|
3627
3630
|
}
|
|
3628
3631
|
);
|
|
3629
3632
|
}, T = (m) => {
|
|
3630
|
-
var
|
|
3633
|
+
var Y, U;
|
|
3631
3634
|
F();
|
|
3632
3635
|
const y = new fi({
|
|
3633
3636
|
source: L,
|
|
@@ -3637,15 +3640,15 @@ function Bi(l) {
|
|
|
3637
3640
|
setTimeout(() => {
|
|
3638
3641
|
l.onDrawEnd && l.onDrawEnd(L.getFeatures());
|
|
3639
3642
|
}, 250), F(), i("Pointer");
|
|
3640
|
-
}), w.draw = y, w.snap = S, (
|
|
3643
|
+
}), w.draw = y, w.snap = S, (Y = e.current) == null || Y.addInteraction(y), (U = e.current) == null || U.addInteraction(S);
|
|
3641
3644
|
}, F = () => {
|
|
3642
3645
|
var m, y;
|
|
3643
3646
|
w.draw && ((m = e.current) == null || m.removeInteraction(w.draw)), w.snap && ((y = e.current) == null || y.removeInteraction(w.snap));
|
|
3644
3647
|
}, E = (m) => {
|
|
3645
|
-
const y =
|
|
3648
|
+
const y = Ue(m);
|
|
3646
3649
|
y && L.addFeatures(y);
|
|
3647
3650
|
}, q = (m) => {
|
|
3648
|
-
const y =
|
|
3651
|
+
const y = ze(m, Zt);
|
|
3649
3652
|
y && L.addFeatures(y);
|
|
3650
3653
|
}, k = () => {
|
|
3651
3654
|
L.clear();
|
|
@@ -3660,7 +3663,7 @@ function Bi(l) {
|
|
|
3660
3663
|
s((m) => !m);
|
|
3661
3664
|
}, mt = (m) => {
|
|
3662
3665
|
var S;
|
|
3663
|
-
const y =
|
|
3666
|
+
const y = Ue(m);
|
|
3664
3667
|
y ? (_e(), L.addFeatures(y), (S = e.current) == null || S.centerToFeature(y[0]), l.onDrawEnd && l.onDrawEnd(y)) : ri("Error!", "Feature(s) could not be loaded! Check your KML data!");
|
|
3665
3668
|
}, yt = (m) => {
|
|
3666
3669
|
var y;
|
|
@@ -3702,5 +3705,5 @@ function Bi(l) {
|
|
|
3702
3705
|
};
|
|
3703
3706
|
}
|
|
3704
3707
|
export {
|
|
3705
|
-
|
|
3708
|
+
Hi as default
|
|
3706
3709
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as e, F as t, a as c, I as o, C as w, T as g } from "../../../Text-
|
|
1
|
+
import { S as e, F as t, a as c, I as o, C as w, T as g } from "../../../Text-ChJRuaD8.js";
|
|
2
2
|
const i = "data:image/svg+xml,%3csvg%20id='Layer_1'%20height='512'%20viewBox='0%200%2064%2064'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20data-name='Layer%201'%3e%3clinearGradient%20id='linear-gradient'%20gradientUnits='userSpaceOnUse'%20x1='63.568'%20x2='14.149'%20y1='60.512'%20y2='11.093'%3e%3cstop%20offset='0'%20stop-color='%23c21500'/%3e%3cstop%20offset='1'%20stop-color='%23f85032'/%3e%3c/linearGradient%3e%3cpath%20d='m48.19%2017.36a19.2%2019.2%200%200%200%20-17.18-9.33%2018.905%2018.905%200%200%200%20-17.94%2018.9c0%2012.74%2013%2024.93%2016.98%2028.36a2.969%202.969%200%200%200%203.9%200c5.77-4.97%2023.84-22.39%2014.24-37.93zm-16.19%2018.54a9.825%209.825%200%201%201%209.82-9.83%209.833%209.833%200%200%201%20-9.82%209.83z'%20fill='url(%23linear-gradient)'/%3e%3c/svg%3e", s = 0.5, h = new e({
|
|
3
3
|
fill: new t({
|
|
4
4
|
color: "rgba(255, 255, 255, 0.2)"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Container as t, Button as r } from "./styled.js";
|
|
3
|
+
import { I as s, a as l } from "../../../../IconPlus-yPkff_Vj.js";
|
|
4
|
+
function m({ mapRef: n }) {
|
|
5
|
+
return n ? /* @__PURE__ */ i(t, { children: [
|
|
6
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomIn, children: /* @__PURE__ */ o(s, { size: 18 }) }),
|
|
7
|
+
/* @__PURE__ */ o(r, { onClick: n.zoomOut, children: /* @__PURE__ */ o(l, { size: 18 }) })
|
|
8
|
+
] }) : null;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as Controls
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { styled as a, Box as n, IconButton as t } from "@mui/material";
|
|
2
|
+
const r = a(n, {
|
|
3
|
+
name: "HCHeatMapControls",
|
|
4
|
+
slot: "Root"
|
|
5
|
+
})(({ theme: o }) => ({
|
|
6
|
+
position: "absolute",
|
|
7
|
+
left: o.spacing(1),
|
|
8
|
+
bottom: o.spacing(1),
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: o.spacing(0.5)
|
|
12
|
+
})), p = a(t, {
|
|
13
|
+
name: "HCHeatMapControls",
|
|
14
|
+
slot: "Button"
|
|
15
|
+
})(({ theme: o }) => ({
|
|
16
|
+
borderRadius: o.shape.borderRadius,
|
|
17
|
+
backgroundColor: o.palette.background.paper,
|
|
18
|
+
border: "1px solid",
|
|
19
|
+
borderColor: o.palette.divider,
|
|
20
|
+
width: o.spacing(3),
|
|
21
|
+
height: o.spacing(3),
|
|
22
|
+
padding: o.spacing(0.5),
|
|
23
|
+
".MuiSvgIcon-root": {
|
|
24
|
+
width: o.spacing(2),
|
|
25
|
+
height: o.spacing(2)
|
|
26
|
+
},
|
|
27
|
+
"&:hover": {
|
|
28
|
+
backgroundColor: o.palette.background.default
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
31
|
+
export {
|
|
32
|
+
p as Button,
|
|
33
|
+
r as Container
|
|
34
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { Box as n, Typography as i } from "@mui/material";
|
|
3
|
+
import { FlexCol as t } from "../../../flex-col/index.js";
|
|
4
|
+
import { FlexRow as h } from "../../../flex-row/index.js";
|
|
5
|
+
import { Container as a } from "./styled.js";
|
|
6
|
+
function g({ gradient: o }) {
|
|
7
|
+
return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ e(h, { gap: 0.5, children: [
|
|
8
|
+
/* @__PURE__ */ r(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
width: 24,
|
|
12
|
+
height: 90,
|
|
13
|
+
sx: {
|
|
14
|
+
background: `linear-gradient(${[...o].reverse().join(", ")})`
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ e(t, { justifyContent: "space-between", height: 90, children: [
|
|
19
|
+
/* @__PURE__ */ r(i, { variant: "overline", children: "High" }),
|
|
20
|
+
/* @__PURE__ */ r(i, { variant: "overline", children: "Low" })
|
|
21
|
+
] })
|
|
22
|
+
] }) });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
g as Legend
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { styled as a, Paper as t } from "@mui/material";
|
|
2
|
+
const p = a(t, {
|
|
3
|
+
name: "HCHeatMapLegend",
|
|
4
|
+
slot: "Root"
|
|
5
|
+
})(({ theme: o }) => ({
|
|
6
|
+
position: "absolute",
|
|
7
|
+
right: o.spacing(1),
|
|
8
|
+
bottom: o.spacing(1),
|
|
9
|
+
padding: o.spacing(0.5),
|
|
10
|
+
backgroundColor: o.palette.background.default
|
|
11
|
+
}));
|
|
12
|
+
export {
|
|
13
|
+
p as Container
|
|
14
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as d } from "@mui/material";
|
|
3
|
+
import { useEffect as u } from "react";
|
|
4
|
+
import { u as l } from "../../index.esm-BLLrbTzY.js";
|
|
5
|
+
import { M as h } from "../../index-kCJ_Zvl8.js";
|
|
6
|
+
import { Controls as M } from "./components/controls/index.js";
|
|
7
|
+
import { Legend as R } from "./components/legend/index.js";
|
|
8
|
+
import { useHeatMapLogic as g } from "./logic.js";
|
|
9
|
+
import { HeatMapRoot as H, HeatMapHeader as z, HeatMapContent as x } from "./styled.js";
|
|
10
|
+
function E(r) {
|
|
11
|
+
const { refs: t, actions: i, gradient: p, ownerState: o, sx: s, other: f } = g(r), { width: n, height: a, ref: c } = l();
|
|
12
|
+
return u(() => (n && a && i.onMapResize(), () => {
|
|
13
|
+
}), [n, a]), /* @__PURE__ */ m(H, { ownerState: o, sx: s, ref: c, ...f, children: [
|
|
14
|
+
/* @__PURE__ */ e(z, { ownerState: o, children: /* @__PURE__ */ e(d, { variant: "h3", children: r.title }) }),
|
|
15
|
+
/* @__PURE__ */ m(x, { ownerState: o, children: [
|
|
16
|
+
/* @__PURE__ */ e(
|
|
17
|
+
h,
|
|
18
|
+
{
|
|
19
|
+
id: t.mapId.current,
|
|
20
|
+
ref: t.mapRef,
|
|
21
|
+
center: { latitude: 0, longitude: 0 },
|
|
22
|
+
zoom: 3,
|
|
23
|
+
options: {
|
|
24
|
+
cssPosition: "absolute",
|
|
25
|
+
controls: { zoom: !1 }
|
|
26
|
+
},
|
|
27
|
+
onInit: i.onInit
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ e(R, { gradient: p }),
|
|
31
|
+
/* @__PURE__ */ e(M, { mapRef: t.mapRef.current })
|
|
32
|
+
] })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
E as HeatMap
|
|
37
|
+
};
|