@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
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { C as m, G as X, r as v } from "./AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { m as Y, b, s as y, d as T, e as C, i as L, k as w, g as A, f as P } from "./ColorSet-C7vpNXhM.js";
|
|
3
|
+
import { G as x } from "./AxisRenderer-DTyLLA6c.js";
|
|
4
|
+
class c extends m {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments), Object.defineProperty(this, "_alwaysShow", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: !1
|
|
11
|
+
}), Object.defineProperty(this, "lineX", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
configurable: !0,
|
|
14
|
+
writable: !0,
|
|
15
|
+
value: this.children.push(x.new(this._root, {
|
|
16
|
+
themeTags: ["x"]
|
|
17
|
+
}))
|
|
18
|
+
}), Object.defineProperty(this, "lineY", {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
configurable: !0,
|
|
21
|
+
writable: !0,
|
|
22
|
+
value: this.children.push(x.new(this._root, {
|
|
23
|
+
themeTags: ["y"]
|
|
24
|
+
}))
|
|
25
|
+
}), Object.defineProperty(this, "selection", {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
configurable: !0,
|
|
28
|
+
writable: !0,
|
|
29
|
+
value: this.children.push(X.new(this._root, {
|
|
30
|
+
themeTags: ["selection", "cursor"],
|
|
31
|
+
layer: 30
|
|
32
|
+
}))
|
|
33
|
+
}), Object.defineProperty(this, "_movePoint", {
|
|
34
|
+
enumerable: !0,
|
|
35
|
+
configurable: !0,
|
|
36
|
+
writable: !0,
|
|
37
|
+
value: void 0
|
|
38
|
+
}), Object.defineProperty(this, "_lastPoint", {
|
|
39
|
+
enumerable: !0,
|
|
40
|
+
configurable: !0,
|
|
41
|
+
writable: !0,
|
|
42
|
+
value: { x: 0, y: 0 }
|
|
43
|
+
}), Object.defineProperty(this, "_lastPoint2", {
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
configurable: !0,
|
|
46
|
+
writable: !0,
|
|
47
|
+
value: { x: 0, y: 0 }
|
|
48
|
+
}), Object.defineProperty(this, "_tooltipX", {
|
|
49
|
+
enumerable: !0,
|
|
50
|
+
configurable: !0,
|
|
51
|
+
writable: !0,
|
|
52
|
+
value: !1
|
|
53
|
+
}), Object.defineProperty(this, "_tooltipY", {
|
|
54
|
+
enumerable: !0,
|
|
55
|
+
configurable: !0,
|
|
56
|
+
writable: !0,
|
|
57
|
+
value: !1
|
|
58
|
+
}), Object.defineProperty(this, "chart", {
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
configurable: !0,
|
|
61
|
+
writable: !0,
|
|
62
|
+
value: void 0
|
|
63
|
+
}), Object.defineProperty(this, "_toX", {
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
configurable: !0,
|
|
66
|
+
writable: !0,
|
|
67
|
+
value: void 0
|
|
68
|
+
}), Object.defineProperty(this, "_toY", {
|
|
69
|
+
enumerable: !0,
|
|
70
|
+
configurable: !0,
|
|
71
|
+
writable: !0,
|
|
72
|
+
value: void 0
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
_afterNew() {
|
|
76
|
+
this._settings.themeTags = Y(this._settings.themeTags, ["xy", "cursor"]), super._afterNew(), this.setAll({ width: b, height: b, isMeasured: !0, position: "absolute" }), this.states.create("hidden", { visible: !0, opacity: 0 }), this._drawLines(), this.setPrivateRaw("visible", !1), this._disposers.push(this.setTimeout(() => {
|
|
77
|
+
this.setPrivate("visible", !0);
|
|
78
|
+
}, 500)), this._disposers.push(this.lineX.events.on("positionchanged", () => {
|
|
79
|
+
this._handleXLine();
|
|
80
|
+
})), this._disposers.push(this.lineY.events.on("positionchanged", () => {
|
|
81
|
+
this._handleYLine();
|
|
82
|
+
})), this._disposers.push(this.lineX.events.on("focus", () => this._handleLineFocus())), this._disposers.push(this.lineX.events.on("blur", () => this._handleLineBlur())), this._disposers.push(this.lineY.events.on("focus", () => this._handleLineFocus())), this._disposers.push(this.lineY.events.on("blur", () => this._handleLineBlur())), y("keyboardevents") && this._disposers.push(T(document, "keydown", (t) => {
|
|
83
|
+
this._handleLineMove(A(t), t.ctrlKey);
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
_setUpTouch() {
|
|
87
|
+
const t = this.chart;
|
|
88
|
+
t && (t.plotContainer._display.cancelTouch = this.get("behavior") != "none");
|
|
89
|
+
}
|
|
90
|
+
_handleXLine() {
|
|
91
|
+
let t = this.lineX.x(), e = !0;
|
|
92
|
+
(t < 0 || t > this.width()) && (e = !1), this.lineX.setPrivate("visible", e);
|
|
93
|
+
}
|
|
94
|
+
_handleYLine() {
|
|
95
|
+
let t = this.lineY.y(), e = !0;
|
|
96
|
+
(t < 0 || t > this.height()) && (e = !1), this.lineY.setPrivate("visible", e);
|
|
97
|
+
}
|
|
98
|
+
_handleLineMove(t, e) {
|
|
99
|
+
let s = "";
|
|
100
|
+
const i = this.chart;
|
|
101
|
+
let h;
|
|
102
|
+
if (i && i.xAxes.length) {
|
|
103
|
+
this._root.focused(this.lineX) ? (s = "positionX", h = i.xAxes.getIndex(0)) : this._root.focused(this.lineY) && (h = i.yAxes.getIndex(0), s = "positionY");
|
|
104
|
+
let o = 1;
|
|
105
|
+
if (e && (o = 5), h) {
|
|
106
|
+
let n = h.get("renderer").get("inversed", !1), r;
|
|
107
|
+
t == "ArrowRight" || t == "ArrowDown" ? r = 1 : t == "ArrowLeft" || t == "ArrowUp" ? r = -1 : t == "Tab" && (r = 0), r != null && (n && (r *= -1), this.set(s, h.nextPosition(r * o)));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
_handleLineFocus() {
|
|
112
|
+
this._alwaysShow = this.get("alwaysShow", !1), this.setAll({
|
|
113
|
+
positionX: this.getPrivate("positionX", 0),
|
|
114
|
+
positionY: this.getPrivate("positionY", 0),
|
|
115
|
+
alwaysShow: !0
|
|
116
|
+
}), this._handleLineMove("Tab");
|
|
117
|
+
}
|
|
118
|
+
_handleLineBlur() {
|
|
119
|
+
(this.lineX.isFocus() || this.lineY.isFocus()) && this.setAll({
|
|
120
|
+
positionX: void 0,
|
|
121
|
+
positionY: void 0,
|
|
122
|
+
alwaysShow: this._alwaysShow
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
_prepareChildren() {
|
|
126
|
+
if (super._prepareChildren(), this.isDirty("xAxis")) {
|
|
127
|
+
this._tooltipX = !1;
|
|
128
|
+
const t = this.get("xAxis");
|
|
129
|
+
if (t) {
|
|
130
|
+
const e = t.get("tooltip");
|
|
131
|
+
e && (this._tooltipX = !0, this._disposers.push(e.on("pointTo", () => {
|
|
132
|
+
this._updateXLine(e);
|
|
133
|
+
})));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (this.isDirty("yAxis")) {
|
|
137
|
+
this._tooltipY = !1;
|
|
138
|
+
const t = this.get("yAxis");
|
|
139
|
+
if (t) {
|
|
140
|
+
const e = t.get("tooltip");
|
|
141
|
+
e && (this._tooltipY = !0, this._disposers.push(e.on("pointTo", () => {
|
|
142
|
+
this._updateYLine(e);
|
|
143
|
+
})));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
_handleSyncWith() {
|
|
148
|
+
const t = this.chart;
|
|
149
|
+
if (t) {
|
|
150
|
+
const e = this.get("syncWith"), s = [];
|
|
151
|
+
e && C(e, (i) => {
|
|
152
|
+
const h = i.chart;
|
|
153
|
+
h && s.push(h);
|
|
154
|
+
}), t._otherCharts = s;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
_updateChildren() {
|
|
158
|
+
if (super._updateChildren(), this._handleSyncWith(), this.isDirty("positionX") || this.isDirty("positionY")) {
|
|
159
|
+
const t = this.get("positionX"), e = this.get("positionY");
|
|
160
|
+
t == null && e == null ? this.hide(0) : (this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0))), this.handleMove());
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
_updateXLine(t) {
|
|
164
|
+
let e = v(this._display.toLocal(t.get("pointTo", { x: 0, y: 0 })).x, 3);
|
|
165
|
+
this._toX != e && (this.lineX.animate({ key: "x", to: e, duration: t.get("animationDuration", 0), easing: t.get("animationEasing") }), this._toX = e);
|
|
166
|
+
}
|
|
167
|
+
_updateYLine(t) {
|
|
168
|
+
let e = v(this._display.toLocal(t.get("pointTo", { x: 0, y: 0 })).y, 3);
|
|
169
|
+
this._toY != e && (this.lineY.animate({ key: "y", to: e, duration: t.get("animationDuration", 0), easing: t.get("animationEasing") }), this._toY = e);
|
|
170
|
+
}
|
|
171
|
+
_drawLines() {
|
|
172
|
+
this.lineX.set("draw", (t) => {
|
|
173
|
+
t.moveTo(0, 0), t.lineTo(0, this.height());
|
|
174
|
+
}), this.lineY.set("draw", (t) => {
|
|
175
|
+
t.moveTo(0, 0), t.lineTo(this.width(), 0);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
updateCursor() {
|
|
179
|
+
this.get("alwaysShow") && (this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0)))), this.handleMove();
|
|
180
|
+
}
|
|
181
|
+
_setChart(t) {
|
|
182
|
+
this.chart = t, this._handleSyncWith();
|
|
183
|
+
const e = t.plotContainer;
|
|
184
|
+
this.events.on("boundschanged", () => {
|
|
185
|
+
this._disposers.push(this.setTimeout(() => {
|
|
186
|
+
this.updateCursor();
|
|
187
|
+
}, 50));
|
|
188
|
+
}), y("touchevents") && (this._disposers.push(e.events.on("click", (i) => {
|
|
189
|
+
L(i.originalEvent) && this._handleMove(i);
|
|
190
|
+
})), this._setUpTouch()), this._disposers.push(e.events.on("pointerdown", (i) => {
|
|
191
|
+
this._handleCursorDown(i);
|
|
192
|
+
})), this._disposers.push(e.events.on("globalpointerup", (i) => {
|
|
193
|
+
this._handleCursorUp(i), !i.native && !this.isHidden() && this._handleMove(i);
|
|
194
|
+
})), this._disposers.push(e.events.on("globalpointermove", (i) => {
|
|
195
|
+
!this.get("syncWith") && w(e._downPoints).length == 0 && !i.native && this.isHidden() || (this._handleMove(i), Math.hypot(this._lastPoint2.x - i.point.x, this._lastPoint2.y - i.point.y) > 1 && (this._handleLineBlur(), this._lastPoint2 = i.point));
|
|
196
|
+
}));
|
|
197
|
+
const s = this.parent;
|
|
198
|
+
s && s.children.moveValue(this.selection);
|
|
199
|
+
}
|
|
200
|
+
_inPlot(t) {
|
|
201
|
+
const e = this.chart;
|
|
202
|
+
return e ? e.inPlot(t) : !1;
|
|
203
|
+
}
|
|
204
|
+
_handleCursorDown(t) {
|
|
205
|
+
if (t.originalEvent.button == 2)
|
|
206
|
+
return;
|
|
207
|
+
const e = t.point;
|
|
208
|
+
let s = this._display.toLocal(e);
|
|
209
|
+
const i = this.chart;
|
|
210
|
+
if (this.selection.set("draw", () => {
|
|
211
|
+
}), i && this._inPlot(s)) {
|
|
212
|
+
if (this._downPoint = s, this.get("behavior") != "none") {
|
|
213
|
+
this.selection.show();
|
|
214
|
+
const n = "selectstarted";
|
|
215
|
+
this.events.isEnabled(n) && this.events.dispatch(n, { type: n, target: this, originalEvent: t.originalEvent });
|
|
216
|
+
}
|
|
217
|
+
let h = this._getPosition(s).x, o = this._getPosition(s).y;
|
|
218
|
+
this.setPrivate("downPositionX", h), this.setPrivate("downPositionY", o);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
_handleCursorUp(t) {
|
|
222
|
+
if (this._downPoint) {
|
|
223
|
+
const e = this.get("behavior", "none");
|
|
224
|
+
if (e != "none") {
|
|
225
|
+
e.charAt(0) === "z" && this.selection.hide();
|
|
226
|
+
const s = t.point;
|
|
227
|
+
let i = this._display.toLocal(s);
|
|
228
|
+
const h = this._downPoint, o = this.get("moveThreshold", 1);
|
|
229
|
+
if (i && h) {
|
|
230
|
+
let n = !1;
|
|
231
|
+
if ((e === "zoomX" || e === "zoomXY" || e === "selectX" || e === "selectXY") && Math.abs(i.x - h.x) > o && (n = !0), (e === "zoomY" || e === "zoomXY" || e === "selectY" || e === "selectXY") && Math.abs(i.y - h.y) > o && (n = !0), n) {
|
|
232
|
+
const r = "selectended";
|
|
233
|
+
this.events.isEnabled(r) && this.events.dispatch(r, { type: r, target: this, originalEvent: t.originalEvent });
|
|
234
|
+
} else {
|
|
235
|
+
const r = "selectcancelled";
|
|
236
|
+
this.events.isEnabled(r) && this.events.dispatch(r, { type: r, target: this, originalEvent: t.originalEvent });
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
this._downPoint = void 0;
|
|
242
|
+
}
|
|
243
|
+
_handleMove(t) {
|
|
244
|
+
if (this.getPrivate("visible")) {
|
|
245
|
+
const e = this.chart;
|
|
246
|
+
if (e && w(e.plotContainer._downPoints).length > 1) {
|
|
247
|
+
this.set("forceHidden", !0);
|
|
248
|
+
return;
|
|
249
|
+
} else
|
|
250
|
+
this.set("forceHidden", !1);
|
|
251
|
+
const s = t.point, i = this._lastPoint;
|
|
252
|
+
if (Math.round(i.x) === Math.round(s.x) && Math.round(i.y) === Math.round(s.y))
|
|
253
|
+
return;
|
|
254
|
+
this._lastPoint = s, this.setPrivate("lastPoint", s), this.handleMove({ x: s.x, y: s.y }, !1, t.originalEvent);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
_getPosition(t) {
|
|
258
|
+
return { x: t.x / this.width(), y: t.y / this.height() };
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Moves the cursor to X/Y coordinates within chart container (`point`).
|
|
262
|
+
*
|
|
263
|
+
* If `skipEvent` parameter is set to `true`, the move will not invoke
|
|
264
|
+
* the `"cursormoved"` event.
|
|
265
|
+
*
|
|
266
|
+
* @param point X/Y to move cursor to
|
|
267
|
+
* @param skipEvent Do not fire "cursormoved" event
|
|
268
|
+
*/
|
|
269
|
+
handleMove(t, e, s) {
|
|
270
|
+
t || (t = this._movePoint);
|
|
271
|
+
const i = this.get("alwaysShow");
|
|
272
|
+
if (!t) {
|
|
273
|
+
this.hide(0);
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
this._movePoint = t;
|
|
277
|
+
let h = this._display.toLocal(t), o = this.chart;
|
|
278
|
+
if (o && (this._inPlot(h) || this._downPoint)) {
|
|
279
|
+
o._movePoint = t, this.isHidden() && (this.show(), this.get("behavior", "").charAt(0) == "z" && this.selection.set("draw", () => {
|
|
280
|
+
}));
|
|
281
|
+
let n = h.x, r = h.y, f = this._getPosition(h);
|
|
282
|
+
this.setPrivate("point", h);
|
|
283
|
+
let d = this.get("snapToSeries");
|
|
284
|
+
this._downPoint && (d = void 0);
|
|
285
|
+
let p = this.get("positionX"), l = f.x;
|
|
286
|
+
P(p) && (l = p);
|
|
287
|
+
let _ = this.get("positionY"), u = f.y;
|
|
288
|
+
P(_) && (u = _), this.setPrivate("positionX", l), this.setPrivate("positionY", u);
|
|
289
|
+
const g = this._getPoint(l, u);
|
|
290
|
+
if (n = g.x, r = g.y, o.xAxes.each((a) => {
|
|
291
|
+
a._handleCursorPosition(l, d), i && a.handleCursorShow();
|
|
292
|
+
}), o.yAxes.each((a) => {
|
|
293
|
+
a._handleCursorPosition(u, d), i && a.handleCursorShow();
|
|
294
|
+
}), !e) {
|
|
295
|
+
o._handleCursorPosition();
|
|
296
|
+
const a = "cursormoved";
|
|
297
|
+
this.events.isEnabled(a) && this.events.dispatch(a, { type: a, target: this, point: t, originalEvent: s });
|
|
298
|
+
}
|
|
299
|
+
this._updateLines(n, r), o.arrangeTooltips();
|
|
300
|
+
} else if (!this._downPoint && !i) {
|
|
301
|
+
this.hide(0);
|
|
302
|
+
const n = "cursorhidden";
|
|
303
|
+
this.events.isEnabled(n) && this.events.dispatch(n, { type: n, target: this });
|
|
304
|
+
}
|
|
305
|
+
this._downPoint && this.get("behavior") != "none" && this._updateSelection(h);
|
|
306
|
+
}
|
|
307
|
+
_getPoint(t, e) {
|
|
308
|
+
return { x: this.width() * t, y: this.height() * e };
|
|
309
|
+
}
|
|
310
|
+
_updateLines(t, e) {
|
|
311
|
+
this._tooltipX || this.lineX.set("x", t), this._tooltipY || this.lineY.set("y", e), this._drawLines();
|
|
312
|
+
}
|
|
313
|
+
_updateSelection(t) {
|
|
314
|
+
const e = this.selection, s = this.get("behavior"), i = this.width(), h = this.height();
|
|
315
|
+
t.x < 0 && (t.x = 0), t.x > i && (t.x = i), t.y < 0 && (t.y = 0), t.y > h && (t.y = h), e.set("draw", (o) => {
|
|
316
|
+
const n = this._downPoint;
|
|
317
|
+
n && (s === "zoomXY" || s === "selectXY" ? (o.moveTo(n.x, n.y), o.lineTo(n.x, t.y), o.lineTo(t.x, t.y), o.lineTo(t.x, n.y), o.lineTo(n.x, n.y)) : s === "zoomX" || s === "selectX" ? (o.moveTo(n.x, 0), o.lineTo(n.x, h), o.lineTo(t.x, h), o.lineTo(t.x, 0), o.lineTo(n.x, 0)) : (s === "zoomY" || s === "selectY") && (o.moveTo(0, n.y), o.lineTo(i, n.y), o.lineTo(i, t.y), o.lineTo(0, t.y), o.lineTo(0, n.y)));
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
_onHide() {
|
|
321
|
+
if (this.isHidden()) {
|
|
322
|
+
let t = this.chart;
|
|
323
|
+
t && (t.xAxes.each((e) => {
|
|
324
|
+
e.handleCursorHide();
|
|
325
|
+
}), t.yAxes.each((e) => {
|
|
326
|
+
e.handleCursorHide();
|
|
327
|
+
}), t.series.each((e) => {
|
|
328
|
+
e.handleCursorHide();
|
|
329
|
+
}));
|
|
330
|
+
}
|
|
331
|
+
super._onHide();
|
|
332
|
+
}
|
|
333
|
+
_onShow() {
|
|
334
|
+
if (!this.isHidden()) {
|
|
335
|
+
let t = this.chart;
|
|
336
|
+
t && (t.xAxes.each((e) => {
|
|
337
|
+
e.handleCursorShow();
|
|
338
|
+
}), t.yAxes.each((e) => {
|
|
339
|
+
e.handleCursorShow();
|
|
340
|
+
}));
|
|
341
|
+
}
|
|
342
|
+
super._onShow();
|
|
343
|
+
}
|
|
344
|
+
_dispose() {
|
|
345
|
+
super._dispose(), this.selection.dispose();
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
Object.defineProperty(c, "className", {
|
|
349
|
+
enumerable: !0,
|
|
350
|
+
configurable: !0,
|
|
351
|
+
writable: !0,
|
|
352
|
+
value: "XYCursor"
|
|
353
|
+
});
|
|
354
|
+
Object.defineProperty(c, "classNames", {
|
|
355
|
+
enumerable: !0,
|
|
356
|
+
configurable: !0,
|
|
357
|
+
writable: !0,
|
|
358
|
+
value: m.classNames.concat([c.className])
|
|
359
|
+
});
|
|
360
|
+
export {
|
|
361
|
+
c as X
|
|
362
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { C as c, b as x, j as v } from "./AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { b as g, c as D, f as b, w as O, k as f, r as z } from "./ColorSet-C7vpNXhM.js";
|
|
3
|
+
class d extends c {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments), Object.defineProperty(this, "_za", {
|
|
6
|
+
enumerable: !0,
|
|
7
|
+
configurable: !0,
|
|
8
|
+
writable: !0,
|
|
9
|
+
value: void 0
|
|
10
|
+
}), Object.defineProperty(this, "_txa", {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
configurable: !0,
|
|
13
|
+
writable: !0,
|
|
14
|
+
value: void 0
|
|
15
|
+
}), Object.defineProperty(this, "_tya", {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
configurable: !0,
|
|
18
|
+
writable: !0,
|
|
19
|
+
value: void 0
|
|
20
|
+
}), Object.defineProperty(this, "_movePoints", {
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
configurable: !0,
|
|
23
|
+
writable: !0,
|
|
24
|
+
value: {}
|
|
25
|
+
}), Object.defineProperty(this, "_downScale", {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
configurable: !0,
|
|
28
|
+
writable: !0,
|
|
29
|
+
value: 1
|
|
30
|
+
}), Object.defineProperty(this, "_downX", {
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
configurable: !0,
|
|
33
|
+
writable: !0,
|
|
34
|
+
value: 0
|
|
35
|
+
}), Object.defineProperty(this, "_downY", {
|
|
36
|
+
enumerable: !0,
|
|
37
|
+
configurable: !0,
|
|
38
|
+
writable: !0,
|
|
39
|
+
value: 0
|
|
40
|
+
}), Object.defineProperty(this, "_pinchDP", {
|
|
41
|
+
enumerable: !0,
|
|
42
|
+
configurable: !0,
|
|
43
|
+
writable: !0,
|
|
44
|
+
value: void 0
|
|
45
|
+
}), Object.defineProperty(this, "contents", {
|
|
46
|
+
enumerable: !0,
|
|
47
|
+
configurable: !0,
|
|
48
|
+
writable: !0,
|
|
49
|
+
value: this.children.push(c.new(this._root, {
|
|
50
|
+
width: g,
|
|
51
|
+
height: g,
|
|
52
|
+
x: 0,
|
|
53
|
+
y: 0,
|
|
54
|
+
draggable: !0,
|
|
55
|
+
background: x.new(this._root, {
|
|
56
|
+
fill: D(16777215),
|
|
57
|
+
fillOpacity: 0
|
|
58
|
+
})
|
|
59
|
+
}))
|
|
60
|
+
}), Object.defineProperty(this, "_wheelDp", {
|
|
61
|
+
enumerable: !0,
|
|
62
|
+
configurable: !0,
|
|
63
|
+
writable: !0,
|
|
64
|
+
value: void 0
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
_afterNew() {
|
|
68
|
+
super._afterNew();
|
|
69
|
+
const s = this.contents.events;
|
|
70
|
+
this._disposers.push(s.on("pointerdown", (e) => {
|
|
71
|
+
this._handleThisDown(e);
|
|
72
|
+
})), this._disposers.push(s.on("globalpointerup", (e) => {
|
|
73
|
+
this._handleThisUp(e);
|
|
74
|
+
})), this._disposers.push(s.on("globalpointermove", (e) => {
|
|
75
|
+
this._handleThisMove(e);
|
|
76
|
+
}));
|
|
77
|
+
const i = this.contents.get("background");
|
|
78
|
+
i && (i.adapters.add("width", (e) => Number(e) * 20), i.adapters.add("height", (e) => Number(e) * 20), i.adapters.add("x", (e) => Number(e) - i.width() / 2), i.adapters.add("y", (e) => Number(e) - i.height() / 2));
|
|
79
|
+
const n = this.contents;
|
|
80
|
+
n.adapters.add("x", (e) => {
|
|
81
|
+
const t = n.get("scale", 1);
|
|
82
|
+
if (b(e) && t >= 1) {
|
|
83
|
+
let o = this.get("maxPanOut", 0.4), a = n.width();
|
|
84
|
+
e = Math.min(a * o, e), e = Math.max(this.width() - a * t * (1 + o), e);
|
|
85
|
+
}
|
|
86
|
+
return e;
|
|
87
|
+
}), n.adapters.add("y", (e) => {
|
|
88
|
+
const t = n.get("scale", 1);
|
|
89
|
+
if (b(e) && t >= 1) {
|
|
90
|
+
let o = this.get("maxPanOut", 0.4), a = n.height();
|
|
91
|
+
e = Math.min(a * o, e), e = Math.max(this.height() - a * t * (1 + o), e);
|
|
92
|
+
}
|
|
93
|
+
return e;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
_prepareChildren() {
|
|
97
|
+
super._prepareChildren(), this.isDirty("wheelable") && this._handleSetWheel(), this.contents._display.cancelTouch = this.get("pinchZoom", !1);
|
|
98
|
+
}
|
|
99
|
+
_handleSetWheel() {
|
|
100
|
+
this.get("wheelable") ? (this._wheelDp && this._wheelDp.dispose(), this._wheelDp = this.events.on("wheel", (s) => {
|
|
101
|
+
const i = s.originalEvent;
|
|
102
|
+
if (O(i, this))
|
|
103
|
+
i.preventDefault();
|
|
104
|
+
else
|
|
105
|
+
return;
|
|
106
|
+
const n = this.toLocal(s.point);
|
|
107
|
+
this._handleWheelZoom(i.deltaY, n);
|
|
108
|
+
}), this._disposers.push(this._wheelDp)) : this._wheelDp && this._wheelDp.dispose();
|
|
109
|
+
}
|
|
110
|
+
_handleWheelZoom(s, i) {
|
|
111
|
+
let n = this.get("zoomStep", 2), e = this.contents.get("scale", 1), t = e;
|
|
112
|
+
s > 0 ? t = e / n : s < 0 && (t = e * n), t != e && this.zoomToPoint(i, t);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Zooms to specific X/Y point.
|
|
116
|
+
*
|
|
117
|
+
* @param point Center point
|
|
118
|
+
* @param level Zoom level
|
|
119
|
+
* @return Zoom Animation object
|
|
120
|
+
*/
|
|
121
|
+
zoomToPoint(s, i) {
|
|
122
|
+
i && (i = v(i, this.get("minZoomLevel", 1), this.get("maxZoomLevel", 32)));
|
|
123
|
+
const n = this.contents.get("scale", 1);
|
|
124
|
+
let e = s.x, t = s.y, o = e, a = t;
|
|
125
|
+
const h = this.contents;
|
|
126
|
+
let m = h.x(), r = h.y(), l = o - (e - m) / n * i, u = a - (t - r) / n * i;
|
|
127
|
+
return this._animateTo(l, u, i), this._za;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Zooms the container contents in by `zoomStep`.
|
|
131
|
+
*
|
|
132
|
+
* @return Zoom Animation object
|
|
133
|
+
*/
|
|
134
|
+
zoomIn() {
|
|
135
|
+
return this.zoomToPoint({ x: this.width() / 2, y: this.height() / 2 }, this.contents.get("scale", 1) * this.get("zoomStep", 2));
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Zooms the container contents out by `zoomStep`.
|
|
139
|
+
*
|
|
140
|
+
* @return Zoom Animation object
|
|
141
|
+
*/
|
|
142
|
+
zoomOut() {
|
|
143
|
+
return this.zoomToPoint({ x: this.width() / 2, y: this.height() / 2 }, this.contents.get("scale", 1) / this.get("zoomStep", 2));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Fully zooms out the container contents.
|
|
147
|
+
*
|
|
148
|
+
* @return Zoom Animation object
|
|
149
|
+
*/
|
|
150
|
+
goHome() {
|
|
151
|
+
return this._animateTo(0, 0, 1);
|
|
152
|
+
}
|
|
153
|
+
_animateTo(s, i, n) {
|
|
154
|
+
const e = this.get("animationDuration", 0), t = this.get("animationEasing"), o = this.contents;
|
|
155
|
+
this._txa = o.animate({ key: "x", to: s, duration: e, easing: t }), this._tya = o.animate({ key: "y", to: i, duration: e, easing: t }), this._za = o.animate({ key: "scale", to: n, duration: e, easing: t });
|
|
156
|
+
}
|
|
157
|
+
_handleThisUp(s) {
|
|
158
|
+
this._downPoints = {};
|
|
159
|
+
}
|
|
160
|
+
_handleThisDown(s) {
|
|
161
|
+
const i = this.contents;
|
|
162
|
+
this._downScale = i.get("scale", 1);
|
|
163
|
+
const n = i._downPoints;
|
|
164
|
+
let e = f(n).length;
|
|
165
|
+
if (e == 1) {
|
|
166
|
+
let t = n[1];
|
|
167
|
+
t || (t = n[0]), t && t.x == s.point.x && t.y == s.point.y && (e = 0);
|
|
168
|
+
}
|
|
169
|
+
if (e > 0) {
|
|
170
|
+
this._downX = i.x(), this._downY = i.y();
|
|
171
|
+
const t = i._getDownPointId();
|
|
172
|
+
if (t) {
|
|
173
|
+
let o = this._movePoints[t];
|
|
174
|
+
o && (i._downPoints[t] = o);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
_handleThisMove(s) {
|
|
179
|
+
const n = s.originalEvent.pointerId;
|
|
180
|
+
if (this.get("pinchZoom") && n && (this._movePoints[n] = s.point, f(this.contents._downPoints).length > 1)) {
|
|
181
|
+
this._handlePinch();
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
_handlePinch() {
|
|
186
|
+
let s = 0, i = [], n = [];
|
|
187
|
+
if (z(this.contents._downPoints, (e, t) => {
|
|
188
|
+
i[s] = t;
|
|
189
|
+
let o = this._movePoints[e];
|
|
190
|
+
o && (n[s] = o), s++;
|
|
191
|
+
}), i.length > 1 && n.length > 1) {
|
|
192
|
+
this.contents._isDragging = !1;
|
|
193
|
+
let e = i[0], t = i[1], o = n[0], a = n[1];
|
|
194
|
+
if (e && t && o && a) {
|
|
195
|
+
e = this.toLocal(e), t = this.toLocal(t), o = this.toLocal(o), a = this.toLocal(a);
|
|
196
|
+
let h = Math.hypot(t.x - e.x, t.y - e.y), r = Math.hypot(a.x - o.x, a.y - o.y) / h * this._downScale, l = { x: o.x + (a.x - o.x) / 2, y: o.y + (a.y - o.y) / 2 }, u = { x: e.x + (t.x - e.x) / 2, y: e.y + (t.y - e.y) / 2 }, w = this._downX || 0, _ = this._downY || 0, p = this._downScale, y = l.x - (-w + u.x) / p * r, P = l.y - (-_ + u.y) / p * r;
|
|
197
|
+
this.contents.setAll({
|
|
198
|
+
x: y,
|
|
199
|
+
y: P,
|
|
200
|
+
scale: r
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
Object.defineProperty(d, "className", {
|
|
207
|
+
enumerable: !0,
|
|
208
|
+
configurable: !0,
|
|
209
|
+
writable: !0,
|
|
210
|
+
value: "ZoomableContainer"
|
|
211
|
+
});
|
|
212
|
+
Object.defineProperty(d, "classNames", {
|
|
213
|
+
enumerable: !0,
|
|
214
|
+
configurable: !0,
|
|
215
|
+
writable: !0,
|
|
216
|
+
value: c.classNames.concat([d.className])
|
|
217
|
+
});
|
|
218
|
+
export {
|
|
219
|
+
d as Z
|
|
220
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function f(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
function l(e) {
|
|
6
|
+
if (e.__esModule) return e;
|
|
7
|
+
var r = e.default;
|
|
8
|
+
if (typeof r == "function") {
|
|
9
|
+
var t = function o() {
|
|
10
|
+
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
t.prototype = r.prototype;
|
|
13
|
+
} else t = {};
|
|
14
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
15
|
+
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
16
|
+
Object.defineProperty(t, o, n.get ? n : {
|
|
17
|
+
enumerable: !0,
|
|
18
|
+
get: function() {
|
|
19
|
+
return e[o];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}), t;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
f as a,
|
|
26
|
+
u as c,
|
|
27
|
+
l as g
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { f as e } from "./createTheme-DYxDnE9u.js";
|
|
2
|
+
function o(r) {
|
|
3
|
+
if (typeof r != "string")
|
|
4
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : e(7));
|
|
5
|
+
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
o as c
|
|
9
|
+
};
|
|
@@ -3,12 +3,12 @@ import { Skeleton as o, Box as u, Avatar as M } from "@mui/material";
|
|
|
3
3
|
import { LandscapeCardRoot as A, LandscapeInfoBox as P, LandscapeCardExtraActions as _, PortraitCardRoot as L, PortraitCardExtraActions as U } from "./styled.js";
|
|
4
4
|
import { a as x, _ as T } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
5
5
|
import * as S from "react";
|
|
6
|
-
import { P as i } from "../../index-
|
|
7
|
-
import { g as N, u as k, c as B, a as j, b as H } from "../../useThemeProps-
|
|
8
|
-
import { s as R } from "../../styled-
|
|
9
|
-
import { g as E } from "../../createTheme-
|
|
10
|
-
import { C as O } from "../../CardContent-
|
|
11
|
-
import { T as g } from "../../Typography-
|
|
6
|
+
import { P as i } from "../../index-C__OZmYy.js";
|
|
7
|
+
import { g as N, u as k, c as B, a as j, b as H } from "../../useThemeProps-BzzHcQyd.js";
|
|
8
|
+
import { s as R } from "../../styled-eZwjUruw.js";
|
|
9
|
+
import { g as E } from "../../createTheme-DYxDnE9u.js";
|
|
10
|
+
import { C as O } from "../../CardContent-CSHh-ZlM.js";
|
|
11
|
+
import { T as g } from "../../Typography-CxbneZy_.js";
|
|
12
12
|
function D(t) {
|
|
13
13
|
return E("MuiCardActions", t);
|
|
14
14
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { C as t, c as F } from "../../../ColorSet-C7vpNXhM.js";
|
|
2
|
+
const c = [
|
|
3
|
+
"#294D94",
|
|
4
|
+
"#375F97",
|
|
5
|
+
"#44729C",
|
|
6
|
+
"#5286A1",
|
|
7
|
+
"#6199A7",
|
|
8
|
+
"#74ABAE",
|
|
9
|
+
"#88BDB6",
|
|
10
|
+
"#9FCFBF",
|
|
11
|
+
"#B9E1C9",
|
|
12
|
+
"#D6F1D5"
|
|
13
|
+
], C = (o, r = c) => t.new(o, {
|
|
14
|
+
colors: r.map((e) => F(e)),
|
|
15
|
+
reuse: !0
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
c as DEFAULT_VIRIDIS_COOL,
|
|
19
|
+
C as colorSetFromPalette
|
|
20
|
+
};
|