@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,261 @@
|
|
|
1
|
+
import { x as Re, a as he, P as ne, f as ce } from "./ColorSet-C7vpNXhM.js";
|
|
2
|
+
import { w as ye, x as re, L as pe, t as be, m as H, s as J, G as me } from "./AnimatedTheme-jnasw6rT.js";
|
|
3
|
+
import { w as xe, c as I } from "./path-CNVruS--.js";
|
|
4
|
+
class Q extends ye {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments), Object.defineProperty(this, "_display", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: this._root._renderer.makeRadialText("", this.textStyle)
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
_afterNew() {
|
|
14
|
+
super._afterNew();
|
|
15
|
+
}
|
|
16
|
+
_beforeChanged() {
|
|
17
|
+
super._beforeChanged(), this._display.clear(), this.isDirty("textType") && (this._display.textType = this.get("textType"), this.markDirtyBounds()), this.isDirty("radius") && (this._display.radius = this.get("radius"), this.markDirtyBounds()), this.isDirty("startAngle") && (this._display.startAngle = (this.get("startAngle", 0) + 90) * re, this.markDirtyBounds()), this.isDirty("inside") && (this._display.inside = this.get("inside"), this.markDirtyBounds()), this.isDirty("orientation") && (this._display.orientation = this.get("orientation"), this.markDirtyBounds()), this.isDirty("kerning") && (this._display.kerning = this.get("kerning"), this.markDirtyBounds());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(Q, "className", {
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
configurable: !0,
|
|
23
|
+
writable: !0,
|
|
24
|
+
value: "RadialText"
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(Q, "classNames", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
writable: !0,
|
|
30
|
+
value: ye.classNames.concat([Q.className])
|
|
31
|
+
});
|
|
32
|
+
class ue extends pe {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments), Object.defineProperty(this, "_flipped", {
|
|
35
|
+
enumerable: !0,
|
|
36
|
+
configurable: !0,
|
|
37
|
+
writable: !0,
|
|
38
|
+
value: !1
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
_afterNew() {
|
|
42
|
+
this._textKeys.push("textType", "kerning"), super._afterNew();
|
|
43
|
+
}
|
|
44
|
+
_makeText() {
|
|
45
|
+
this._text = this.children.push(Q.new(this._root, {}));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns base radius in pixels.
|
|
49
|
+
*
|
|
50
|
+
* @return Base radius
|
|
51
|
+
*/
|
|
52
|
+
baseRadius() {
|
|
53
|
+
const a = this.getPrivate("radius", 0), d = this.getPrivate("innerRadius", 0), h = this.get("baseRadius", 0);
|
|
54
|
+
return d + Re(h, a - d);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns radius adjustment in pixels.
|
|
58
|
+
*
|
|
59
|
+
* @return Radius
|
|
60
|
+
*/
|
|
61
|
+
radius() {
|
|
62
|
+
const a = this.get("inside", !1);
|
|
63
|
+
return this.baseRadius() + this.get("radius", 0) * (a ? -1 : 1);
|
|
64
|
+
}
|
|
65
|
+
_updateChildren() {
|
|
66
|
+
if (super._updateChildren(), this.isDirty("baseRadius") || this.isPrivateDirty("radius") || this.isPrivateDirty("innerRadius") || this.isDirty("labelAngle") || this.isDirty("radius") || this.isDirty("inside") || this.isDirty("orientation") || this.isDirty("textType")) {
|
|
67
|
+
const a = this.get("textType", "adjusted"), d = this.get("inside", !1), h = this.get("orientation");
|
|
68
|
+
let r = be(this.get("labelAngle", 0));
|
|
69
|
+
this._text.set("startAngle", this.get("labelAngle", 0)), this._text.set("inside", d);
|
|
70
|
+
const l = J(r), c = H(r);
|
|
71
|
+
let t = this.baseRadius(), y = this.radius();
|
|
72
|
+
if (this._display.angle = 0, a == "circular")
|
|
73
|
+
this.setAll({
|
|
74
|
+
paddingTop: 0,
|
|
75
|
+
paddingBottom: 0,
|
|
76
|
+
paddingLeft: 0,
|
|
77
|
+
paddingRight: 0
|
|
78
|
+
}), this.setRaw("x", void 0), this.setRaw("y", void 0), this._text.set("orientation", h), this._text.set("radius", y);
|
|
79
|
+
else {
|
|
80
|
+
t == 0 && (r = 0, y = 0);
|
|
81
|
+
let s = y * c, e = y * l;
|
|
82
|
+
a == "radial" ? (this.setRaw("x", s), this.setRaw("y", e), r < 90 || r > 270 || h != "auto" ? (this._display.angle = r, this._flipped = !1) : (this._display.angle = r + 180, this._flipped = !0), this._dirty.rotation = !1) : a == "adjusted" ? (this.setRaw("centerX", he), this.setRaw("centerY", he), this.setRaw("x", s), this.setRaw("y", e)) : a == "regular" && (this.setRaw("x", s), this.setRaw("y", e));
|
|
83
|
+
}
|
|
84
|
+
this.markDirtyPosition(), this.markDirtyBounds();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
_updatePosition() {
|
|
88
|
+
const a = this.get("textType", "regular"), d = this.get("inside", !1);
|
|
89
|
+
let h = 0, r = 0, l = this.get("labelAngle", 0), c = this.localBounds(), t = c.right - c.left, y = c.bottom - c.top;
|
|
90
|
+
if (a == "radial") {
|
|
91
|
+
if (this._flipped) {
|
|
92
|
+
let s = this.get("centerX");
|
|
93
|
+
s instanceof ne && (t = t * (1 - s.value * 2)), h = t * H(l), r = t * J(l);
|
|
94
|
+
}
|
|
95
|
+
} else !d && a == "adjusted" && (h = t / 2 * H(l), r = y / 2 * J(l));
|
|
96
|
+
this.setRaw("dx", h), this.setRaw("dy", r), super._updatePosition();
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @ignore
|
|
100
|
+
*/
|
|
101
|
+
get text() {
|
|
102
|
+
return this._text;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
Object.defineProperty(ue, "className", {
|
|
106
|
+
enumerable: !0,
|
|
107
|
+
configurable: !0,
|
|
108
|
+
writable: !0,
|
|
109
|
+
value: "RadialLabel"
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(ue, "classNames", {
|
|
112
|
+
enumerable: !0,
|
|
113
|
+
configurable: !0,
|
|
114
|
+
writable: !0,
|
|
115
|
+
value: pe.classNames.concat([ue.className])
|
|
116
|
+
});
|
|
117
|
+
const fe = Math.abs, p = Math.atan2, L = Math.cos, ve = Math.max, ae = Math.min, j = Math.sin, q = Math.sqrt, b = 1e-12, G = Math.PI, U = G / 2, we = 2 * G;
|
|
118
|
+
function De(n) {
|
|
119
|
+
return n > 1 ? 0 : n < -1 ? G : Math.acos(n);
|
|
120
|
+
}
|
|
121
|
+
function ge(n) {
|
|
122
|
+
return n >= 1 ? U : n <= -1 ? -U : Math.asin(n);
|
|
123
|
+
}
|
|
124
|
+
function Ae(n) {
|
|
125
|
+
return n.innerRadius;
|
|
126
|
+
}
|
|
127
|
+
function _e(n) {
|
|
128
|
+
return n.outerRadius;
|
|
129
|
+
}
|
|
130
|
+
function Pe(n) {
|
|
131
|
+
return n.startAngle;
|
|
132
|
+
}
|
|
133
|
+
function Te(n) {
|
|
134
|
+
return n.endAngle;
|
|
135
|
+
}
|
|
136
|
+
function Ne(n) {
|
|
137
|
+
return n && n.padAngle;
|
|
138
|
+
}
|
|
139
|
+
function je(n, a, d, h, r, l, c, t) {
|
|
140
|
+
var y = d - n, s = h - a, e = c - r, v = t - l, u = v * y - e * s;
|
|
141
|
+
if (!(u * u < b))
|
|
142
|
+
return u = (e * (a - l) - v * (n - r)) / u, [n + u * y, a + u * s];
|
|
143
|
+
}
|
|
144
|
+
function F(n, a, d, h, r, l, c) {
|
|
145
|
+
var t = n - d, y = a - h, s = (c ? l : -l) / q(t * t + y * y), e = s * y, v = -s * t, u = n + e, f = a + v, m = d + e, R = h + v, C = (u + m) / 2, g = (f + R) / 2, w = m - u, x = R - f, _ = w * w + x * x, P = r - l, T = u * R - m * f, O = (x < 0 ? -1 : 1) * q(ve(0, P * P * _ - T * T)), M = (T * x - w * O) / _, B = (-T * w - x * O) / _, N = (T * x + w * O) / _, D = (-T * w + x * O) / _, A = M - C, i = B - g, o = N - C, S = D - g;
|
|
146
|
+
return A * A + i * i > o * o + S * S && (M = N, B = D), {
|
|
147
|
+
cx: M,
|
|
148
|
+
cy: B,
|
|
149
|
+
x01: -e,
|
|
150
|
+
y01: -v,
|
|
151
|
+
x11: M * (r / P - 1),
|
|
152
|
+
y11: B * (r / P - 1)
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function ke() {
|
|
156
|
+
var n = Ae, a = _e, d = I(0), h = null, r = Pe, l = Te, c = Ne, t = null, y = xe(s);
|
|
157
|
+
function s() {
|
|
158
|
+
var e, v, u = +n.apply(this, arguments), f = +a.apply(this, arguments), m = r.apply(this, arguments) - U, R = l.apply(this, arguments) - U, C = fe(R - m), g = R > m;
|
|
159
|
+
if (t || (t = e = y()), f < u && (v = f, f = u, u = v), !(f > b)) t.moveTo(0, 0);
|
|
160
|
+
else if (C > we - b)
|
|
161
|
+
t.moveTo(f * L(m), f * j(m)), t.arc(0, 0, f, m, R, !g), u > b && (t.moveTo(u * L(R), u * j(R)), t.arc(0, 0, u, R, m, g));
|
|
162
|
+
else {
|
|
163
|
+
var w = m, x = R, _ = m, P = R, T = C, O = C, M = c.apply(this, arguments) / 2, B = M > b && (h ? +h.apply(this, arguments) : q(u * u + f * f)), N = ae(fe(f - u) / 2, +d.apply(this, arguments)), D = N, A = N, i, o;
|
|
164
|
+
if (B > b) {
|
|
165
|
+
var S = ge(B / u * j(M)), $ = ge(B / f * j(M));
|
|
166
|
+
(T -= S * 2) > b ? (S *= g ? 1 : -1, _ += S, P -= S) : (T = 0, _ = P = (m + R) / 2), (O -= $ * 2) > b ? ($ *= g ? 1 : -1, w += $, x -= $) : (O = 0, w = x = (m + R) / 2);
|
|
167
|
+
}
|
|
168
|
+
var X = f * L(w), Y = f * j(w), z = u * L(P), E = u * j(P);
|
|
169
|
+
if (N > b) {
|
|
170
|
+
var K = f * L(x), V = f * j(x), W = u * L(_), Z = u * j(_), k;
|
|
171
|
+
if (C < G)
|
|
172
|
+
if (k = je(X, Y, W, Z, K, V, z, E)) {
|
|
173
|
+
var ee = X - k[0], te = Y - k[1], ie = K - k[0], se = V - k[1], oe = 1 / j(De((ee * ie + te * se) / (q(ee * ee + te * te) * q(ie * ie + se * se))) / 2), de = q(k[0] * k[0] + k[1] * k[1]);
|
|
174
|
+
D = ae(N, (u - de) / (oe - 1)), A = ae(N, (f - de) / (oe + 1));
|
|
175
|
+
} else
|
|
176
|
+
D = A = 0;
|
|
177
|
+
}
|
|
178
|
+
O > b ? A > b ? (i = F(W, Z, X, Y, f, A, g), o = F(K, V, z, E, f, A, g), t.moveTo(i.cx + i.x01, i.cy + i.y01), A < N ? t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, f, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), !g), t.arc(o.cx, o.cy, A, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : (t.moveTo(X, Y), t.arc(0, 0, f, w, x, !g)) : t.moveTo(X, Y), !(u > b) || !(T > b) ? t.lineTo(z, E) : D > b ? (i = F(z, E, K, V, u, -D, g), o = F(X, Y, W, Z, u, -D, g), t.lineTo(i.cx + i.x01, i.cy + i.y01), D < N ? t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, u, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), g), t.arc(o.cx, o.cy, D, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : t.arc(0, 0, u, P, _, g);
|
|
179
|
+
}
|
|
180
|
+
if (t.closePath(), e) return t = null, e + "" || null;
|
|
181
|
+
}
|
|
182
|
+
return s.centroid = function() {
|
|
183
|
+
var e = (+n.apply(this, arguments) + +a.apply(this, arguments)) / 2, v = (+r.apply(this, arguments) + +l.apply(this, arguments)) / 2 - G / 2;
|
|
184
|
+
return [L(v) * e, j(v) * e];
|
|
185
|
+
}, s.innerRadius = function(e) {
|
|
186
|
+
return arguments.length ? (n = typeof e == "function" ? e : I(+e), s) : n;
|
|
187
|
+
}, s.outerRadius = function(e) {
|
|
188
|
+
return arguments.length ? (a = typeof e == "function" ? e : I(+e), s) : a;
|
|
189
|
+
}, s.cornerRadius = function(e) {
|
|
190
|
+
return arguments.length ? (d = typeof e == "function" ? e : I(+e), s) : d;
|
|
191
|
+
}, s.padRadius = function(e) {
|
|
192
|
+
return arguments.length ? (h = e == null ? null : typeof e == "function" ? e : I(+e), s) : h;
|
|
193
|
+
}, s.startAngle = function(e) {
|
|
194
|
+
return arguments.length ? (r = typeof e == "function" ? e : I(+e), s) : r;
|
|
195
|
+
}, s.endAngle = function(e) {
|
|
196
|
+
return arguments.length ? (l = typeof e == "function" ? e : I(+e), s) : l;
|
|
197
|
+
}, s.padAngle = function(e) {
|
|
198
|
+
return arguments.length ? (c = typeof e == "function" ? e : I(+e), s) : c;
|
|
199
|
+
}, s.context = function(e) {
|
|
200
|
+
return arguments.length ? (t = e ?? null, s) : t;
|
|
201
|
+
}, s;
|
|
202
|
+
}
|
|
203
|
+
class le extends me {
|
|
204
|
+
constructor() {
|
|
205
|
+
super(...arguments), Object.defineProperty(this, "ix", {
|
|
206
|
+
enumerable: !0,
|
|
207
|
+
configurable: !0,
|
|
208
|
+
writable: !0,
|
|
209
|
+
value: 0
|
|
210
|
+
}), Object.defineProperty(this, "iy", {
|
|
211
|
+
enumerable: !0,
|
|
212
|
+
configurable: !0,
|
|
213
|
+
writable: !0,
|
|
214
|
+
value: 0
|
|
215
|
+
}), Object.defineProperty(this, "_generator", {
|
|
216
|
+
enumerable: !0,
|
|
217
|
+
configurable: !0,
|
|
218
|
+
writable: !0,
|
|
219
|
+
value: ke()
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
_getTooltipPoint() {
|
|
223
|
+
let a = this.get("tooltipX"), d = this.get("tooltipY"), h = 0, r = 0;
|
|
224
|
+
ce(a) && (h = a), ce(d) && (r = d);
|
|
225
|
+
let l = this.get("radius", 0), c = this.get("innerRadius", 0), t = this.get("dRadius", 0), y = this.get("dInnerRadius", 0);
|
|
226
|
+
return l += t, c += y, c < 0 && (c = l + c), a instanceof ne && (h = this.ix * (c + (l - c) * a.value)), d instanceof ne && (r = this.iy * (c + (l - c) * d.value)), this.get("arc") >= 360 && c == 0 && (h = 0, r = 0), { x: h, y: r };
|
|
227
|
+
}
|
|
228
|
+
_beforeChanged() {
|
|
229
|
+
super._beforeChanged(), (this.isDirty("radius") || this.isDirty("arc") || this.isDirty("innerRadius") || this.isDirty("startAngle") || this.isDirty("dRadius") || this.isDirty("dInnerRadius") || this.isDirty("cornerRadius") || this.isDirty("shiftRadius")) && (this._clear = !0);
|
|
230
|
+
}
|
|
231
|
+
_changed() {
|
|
232
|
+
if (super._changed(), this._clear) {
|
|
233
|
+
let a = this.get("startAngle", 0), d = this.get("arc", 0);
|
|
234
|
+
const h = this._generator;
|
|
235
|
+
d < 0 && (a = a + d, d = d * -1), d > 0.1 && h.cornerRadius(this.get("cornerRadius", 0)), h.context(this._display);
|
|
236
|
+
let r = this.get("radius", 0), l = this.get("innerRadius", 0), c = this.get("dRadius", 0), t = this.get("dInnerRadius", 0);
|
|
237
|
+
r += c, l += t, l < 0 && (l = r + l), h({ innerRadius: l, outerRadius: r, startAngle: (a + 90) * re, endAngle: (a + d + 90) * re });
|
|
238
|
+
let y = a + d / 2;
|
|
239
|
+
this.ix = H(y), this.iy = J(y);
|
|
240
|
+
const s = this.get("shiftRadius", 0);
|
|
241
|
+
this.setRaw("dx", this.ix * s), this.setRaw("dy", this.iy * s), this.markDirtyPosition();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
Object.defineProperty(le, "className", {
|
|
246
|
+
enumerable: !0,
|
|
247
|
+
configurable: !0,
|
|
248
|
+
writable: !0,
|
|
249
|
+
value: "Slice"
|
|
250
|
+
});
|
|
251
|
+
Object.defineProperty(le, "classNames", {
|
|
252
|
+
enumerable: !0,
|
|
253
|
+
configurable: !0,
|
|
254
|
+
writable: !0,
|
|
255
|
+
value: me.classNames.concat([le.className])
|
|
256
|
+
});
|
|
257
|
+
export {
|
|
258
|
+
ue as R,
|
|
259
|
+
le as S,
|
|
260
|
+
ke as a
|
|
261
|
+
};
|