@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,693 @@
|
|
|
1
|
+
import { C as H, b as T, p as Y, a as f, e as p, _ as k, f as j, P as z, x as b, m as w } from "./ColorSet-C7vpNXhM.js";
|
|
2
|
+
import { S as B, T as V } from "./Tick-2bcLyHpF.js";
|
|
3
|
+
import { a as X, n as W, S as F, C as A, v as U, o as M, q, k as x, l as D, m as P, s as m, t as K } from "./AnimatedTheme-jnasw6rT.js";
|
|
4
|
+
import { S as E, R as $ } from "./Slice-B19rbYDZ.js";
|
|
5
|
+
class G extends X {
|
|
6
|
+
setupDefaultRules() {
|
|
7
|
+
super.setupDefaultRules();
|
|
8
|
+
const t = this._root.interfaceColors, e = this.rule.bind(this);
|
|
9
|
+
e("PercentSeries").setAll({
|
|
10
|
+
legendLabelText: "{category}",
|
|
11
|
+
legendValueText: "{valuePercentTotal.formatNumber('0.00p')}",
|
|
12
|
+
colors: H.new(this._root, {}),
|
|
13
|
+
width: T,
|
|
14
|
+
height: T
|
|
15
|
+
}), e("PieChart").setAll({
|
|
16
|
+
radius: Y(80),
|
|
17
|
+
startAngle: -90,
|
|
18
|
+
endAngle: 270
|
|
19
|
+
}), e("PieSeries").setAll({
|
|
20
|
+
alignLabels: !0,
|
|
21
|
+
startAngle: -90,
|
|
22
|
+
endAngle: 270
|
|
23
|
+
}), e("PieSeries").states.create("hidden", { endAngle: -90, opacity: 0 }), e("Slice", ["pie"]).setAll({
|
|
24
|
+
position: "absolute",
|
|
25
|
+
isMeasured: !1,
|
|
26
|
+
x: 0,
|
|
27
|
+
y: 0,
|
|
28
|
+
toggleKey: "active",
|
|
29
|
+
tooltipText: "{category}: {valuePercentTotal.formatNumber('0.00p')}",
|
|
30
|
+
strokeWidth: 1,
|
|
31
|
+
strokeOpacity: 1,
|
|
32
|
+
role: "figure",
|
|
33
|
+
lineJoin: "round"
|
|
34
|
+
}), e("Slice", ["pie"]).states.create("active", { shiftRadius: 20, scale: 1 }), e("Slice", ["pie"]).states.create("hoverActive", { scale: 1.04 }), e("Slice", ["pie"]).states.create("hover", { scale: 1.04 }), e("RadialLabel", ["pie"]).setAll({
|
|
35
|
+
textType: "aligned",
|
|
36
|
+
radius: 10,
|
|
37
|
+
text: "{category}: {valuePercentTotal.formatNumber('0.00p')}",
|
|
38
|
+
paddingTop: 5,
|
|
39
|
+
paddingBottom: 5,
|
|
40
|
+
populateText: !0
|
|
41
|
+
}), e("Tick", ["pie"]).setAll({
|
|
42
|
+
location: 1
|
|
43
|
+
}), e("SlicedChart").setAll({
|
|
44
|
+
paddingLeft: 10,
|
|
45
|
+
paddingRight: 10,
|
|
46
|
+
paddingTop: 10,
|
|
47
|
+
paddingBottom: 10
|
|
48
|
+
}), e("FunnelSeries").setAll({
|
|
49
|
+
startLocation: 0,
|
|
50
|
+
endLocation: 1,
|
|
51
|
+
orientation: "vertical",
|
|
52
|
+
alignLabels: !0,
|
|
53
|
+
sequencedInterpolation: !0
|
|
54
|
+
}), e("FunnelSlice").setAll({
|
|
55
|
+
interactive: !0,
|
|
56
|
+
expandDistance: 0
|
|
57
|
+
//tooltipText: "{category}: {valuePercentTotal.formatNumber('0.00p')}"
|
|
58
|
+
}), e("FunnelSlice").states.create("hover", { expandDistance: 0.15 }), e("Label", ["funnel"]).setAll({
|
|
59
|
+
populateText: !0,
|
|
60
|
+
text: "{category}: {valuePercentTotal.formatNumber('0.00p')}",
|
|
61
|
+
centerY: f
|
|
62
|
+
}), e("Label", ["funnel", "horizontal"]).setAll({
|
|
63
|
+
centerX: 0,
|
|
64
|
+
centerY: f,
|
|
65
|
+
rotation: -90
|
|
66
|
+
}), e("Label", ["funnel", "vertical"]).setAll({
|
|
67
|
+
centerY: f,
|
|
68
|
+
centerX: 0
|
|
69
|
+
}), e("Tick", ["funnel"]).setAll({
|
|
70
|
+
location: 1
|
|
71
|
+
}), e("FunnelSlice", ["funnel", "link"]).setAll({
|
|
72
|
+
fillOpacity: 0.5,
|
|
73
|
+
strokeOpacity: 0,
|
|
74
|
+
expandDistance: -0.1
|
|
75
|
+
}), e("FunnelSlice", ["funnel", "link", "vertical"]).setAll({
|
|
76
|
+
height: 10
|
|
77
|
+
}), e("FunnelSlice", ["funnel", "link", "horizontal"]).setAll({
|
|
78
|
+
width: 10
|
|
79
|
+
}), e("PyramidSeries").setAll({
|
|
80
|
+
valueIs: "area"
|
|
81
|
+
}), e("FunnelSlice", ["pyramid", "link"]).setAll({
|
|
82
|
+
fillOpacity: 0.5
|
|
83
|
+
}), e("FunnelSlice", ["pyramid", "link", "vertical"]).setAll({
|
|
84
|
+
height: 0
|
|
85
|
+
}), e("FunnelSlice", ["pyramid", "link", "horizontal"]).setAll({
|
|
86
|
+
width: 0
|
|
87
|
+
}), e("FunnelSlice", ["pyramid"]).setAll({
|
|
88
|
+
interactive: !0,
|
|
89
|
+
expandDistance: 0
|
|
90
|
+
}), e("FunnelSlice", ["pyramid"]).states.create("hover", { expandDistance: 0.15 }), e("Label", ["pyramid"]).setAll({
|
|
91
|
+
populateText: !0,
|
|
92
|
+
text: "{category}: {valuePercentTotal.formatNumber('0.00p')}",
|
|
93
|
+
centerY: f
|
|
94
|
+
}), e("Label", ["pyramid", "horizontal"]).setAll({
|
|
95
|
+
centerX: 0,
|
|
96
|
+
centerY: f,
|
|
97
|
+
rotation: -90
|
|
98
|
+
}), e("Label", ["pyramid", "vertical"]).setAll({
|
|
99
|
+
centerY: f,
|
|
100
|
+
centerX: 0
|
|
101
|
+
}), e("Tick", ["pyramid"]).setAll({
|
|
102
|
+
location: 1
|
|
103
|
+
}), e("FunnelSlice", ["pictorial"]).setAll({
|
|
104
|
+
interactive: !0,
|
|
105
|
+
tooltipText: "{category}: {valuePercentTotal.formatNumber('0.00p')}"
|
|
106
|
+
}), e("Label", ["pictorial"]).setAll({
|
|
107
|
+
populateText: !0,
|
|
108
|
+
text: "{category}: {valuePercentTotal.formatNumber('0.00p')}",
|
|
109
|
+
centerY: f
|
|
110
|
+
}), e("Label", ["pictorial", "horizontal"]).setAll({
|
|
111
|
+
centerX: 0,
|
|
112
|
+
centerY: f,
|
|
113
|
+
rotation: -90
|
|
114
|
+
}), e("Label", ["pictorial", "vertical"]).setAll({
|
|
115
|
+
centerY: f,
|
|
116
|
+
centerX: 0
|
|
117
|
+
}), e("FunnelSlice", ["pictorial", "link"]).setAll({
|
|
118
|
+
fillOpacity: 0.5,
|
|
119
|
+
width: 0,
|
|
120
|
+
height: 0
|
|
121
|
+
}), e("Tick", ["pictorial"]).setAll({
|
|
122
|
+
location: 0.5
|
|
123
|
+
});
|
|
124
|
+
{
|
|
125
|
+
const i = e("Graphics", ["pictorial", "background"]);
|
|
126
|
+
i.setAll({
|
|
127
|
+
fillOpacity: 0.2
|
|
128
|
+
}), W(i, "fill", t, "alternativeBackground");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class y extends B {
|
|
133
|
+
_afterNew() {
|
|
134
|
+
this._defaultThemes.push(G.new(this._root)), super._afterNew(), this.chartContainer.children.push(this.seriesContainer), this.seriesContainer.children.push(this.bulletsContainer);
|
|
135
|
+
}
|
|
136
|
+
_processSeries(t) {
|
|
137
|
+
super._processSeries(t), this.seriesContainer.children.moveValue(this.bulletsContainer, this.seriesContainer.children.length - 1);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
Object.defineProperty(y, "className", {
|
|
141
|
+
enumerable: !0,
|
|
142
|
+
configurable: !0,
|
|
143
|
+
writable: !0,
|
|
144
|
+
value: "PercentChart"
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(y, "classNames", {
|
|
147
|
+
enumerable: !0,
|
|
148
|
+
configurable: !0,
|
|
149
|
+
writable: !0,
|
|
150
|
+
value: B.classNames.concat([y.className])
|
|
151
|
+
});
|
|
152
|
+
class _ extends F {
|
|
153
|
+
constructor() {
|
|
154
|
+
super(...arguments), Object.defineProperty(this, "slicesContainer", {
|
|
155
|
+
enumerable: !0,
|
|
156
|
+
configurable: !0,
|
|
157
|
+
writable: !0,
|
|
158
|
+
value: this.children.push(A.new(this._root, { position: "absolute", isMeasured: !1 }))
|
|
159
|
+
}), Object.defineProperty(this, "labelsContainer", {
|
|
160
|
+
enumerable: !0,
|
|
161
|
+
configurable: !0,
|
|
162
|
+
writable: !0,
|
|
163
|
+
value: this.children.push(A.new(this._root, { position: "absolute", isMeasured: !1 }))
|
|
164
|
+
}), Object.defineProperty(this, "ticksContainer", {
|
|
165
|
+
enumerable: !0,
|
|
166
|
+
configurable: !0,
|
|
167
|
+
writable: !0,
|
|
168
|
+
value: this.children.push(A.new(this._root, { position: "absolute", isMeasured: !1 }))
|
|
169
|
+
}), Object.defineProperty(this, "_lLabels", {
|
|
170
|
+
enumerable: !0,
|
|
171
|
+
configurable: !0,
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: []
|
|
174
|
+
}), Object.defineProperty(this, "_rLabels", {
|
|
175
|
+
enumerable: !0,
|
|
176
|
+
configurable: !0,
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: []
|
|
179
|
+
}), Object.defineProperty(this, "_hLabels", {
|
|
180
|
+
enumerable: !0,
|
|
181
|
+
configurable: !0,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: []
|
|
184
|
+
}), Object.defineProperty(this, "slices", {
|
|
185
|
+
enumerable: !0,
|
|
186
|
+
configurable: !0,
|
|
187
|
+
writable: !0,
|
|
188
|
+
value: this.addDisposer(this._makeSlices())
|
|
189
|
+
}), Object.defineProperty(this, "labels", {
|
|
190
|
+
enumerable: !0,
|
|
191
|
+
configurable: !0,
|
|
192
|
+
writable: !0,
|
|
193
|
+
value: this.addDisposer(this._makeLabels())
|
|
194
|
+
}), Object.defineProperty(this, "ticks", {
|
|
195
|
+
enumerable: !0,
|
|
196
|
+
configurable: !0,
|
|
197
|
+
writable: !0,
|
|
198
|
+
value: this.addDisposer(this._makeTicks())
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @ignore
|
|
203
|
+
*/
|
|
204
|
+
makeSlice(t) {
|
|
205
|
+
const e = this.slicesContainer.children.push(this.slices.make());
|
|
206
|
+
return e.on("fill", () => {
|
|
207
|
+
this.updateLegendMarker(t);
|
|
208
|
+
}), e.on("fillPattern", () => {
|
|
209
|
+
this.updateLegendMarker(t);
|
|
210
|
+
}), e.on("stroke", () => {
|
|
211
|
+
this.updateLegendMarker(t);
|
|
212
|
+
}), e._setDataItem(t), t.set("slice", e), this.slices.push(e), e;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @ignore
|
|
216
|
+
*/
|
|
217
|
+
makeLabel(t) {
|
|
218
|
+
const e = this.labelsContainer.children.push(this.labels.make());
|
|
219
|
+
return e._setDataItem(t), t.set("label", e), this.labels.push(e), e;
|
|
220
|
+
}
|
|
221
|
+
_shouldMakeBullet(t) {
|
|
222
|
+
return t.get("value") != null;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @ignore
|
|
226
|
+
*/
|
|
227
|
+
makeTick(t) {
|
|
228
|
+
const e = this.ticksContainer.children.push(this.ticks.make());
|
|
229
|
+
return e._setDataItem(t), t.set("tick", e), this.ticks.push(e), e;
|
|
230
|
+
}
|
|
231
|
+
_afterNew() {
|
|
232
|
+
this.fields.push("category", "fill"), super._afterNew();
|
|
233
|
+
}
|
|
234
|
+
_onDataClear() {
|
|
235
|
+
const t = this.get("colors");
|
|
236
|
+
t && t.reset();
|
|
237
|
+
const e = this.get("patterns");
|
|
238
|
+
e && e.reset();
|
|
239
|
+
}
|
|
240
|
+
_prepareChildren() {
|
|
241
|
+
if (super._prepareChildren(), this._lLabels = [], this._rLabels = [], this._hLabels = [], this._valuesDirty) {
|
|
242
|
+
let t = 0, e = 0, i = 0, s = 1 / 0, a = 0;
|
|
243
|
+
p(this._dataItems, (l) => {
|
|
244
|
+
let r = l.get("valueWorking", 0);
|
|
245
|
+
t += r, e += Math.abs(r);
|
|
246
|
+
}), p(this._dataItems, (l) => {
|
|
247
|
+
let r = l.get("valueWorking", 0);
|
|
248
|
+
r > i && (i = r), r < s && (s = r), a++;
|
|
249
|
+
let u = r / e;
|
|
250
|
+
e == 0 && (u = 0), l.setRaw("valuePercentTotal", u * 100);
|
|
251
|
+
}), this.setPrivateRaw("valueLow", s), this.setPrivateRaw("valueHigh", i), this.setPrivateRaw("valueSum", t), this.setPrivateRaw("valueAverage", t / a), this.setPrivateRaw("valueAbsoluteSum", e);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Shows hidden series.
|
|
256
|
+
*
|
|
257
|
+
* @param duration Animation duration in milliseconds
|
|
258
|
+
* @return Animation promise
|
|
259
|
+
*/
|
|
260
|
+
show(t) {
|
|
261
|
+
const e = Object.create(null, {
|
|
262
|
+
show: { get: () => super.show }
|
|
263
|
+
});
|
|
264
|
+
return k(this, void 0, void 0, function* () {
|
|
265
|
+
let i = [];
|
|
266
|
+
i.push(e.show.call(this, t)), i.push(this._sequencedShowHide(!0, t)), yield Promise.all(i);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Hide whole series.
|
|
271
|
+
*
|
|
272
|
+
* @param duration Animation duration in milliseconds
|
|
273
|
+
* @return Animation promise
|
|
274
|
+
*/
|
|
275
|
+
hide(t) {
|
|
276
|
+
const e = Object.create(null, {
|
|
277
|
+
hide: { get: () => super.hide }
|
|
278
|
+
});
|
|
279
|
+
return k(this, void 0, void 0, function* () {
|
|
280
|
+
let i = [];
|
|
281
|
+
i.push(e.hide.call(this, t)), i.push(this._sequencedShowHide(!1, t)), yield Promise.all(i);
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* @ignore
|
|
286
|
+
*/
|
|
287
|
+
_updateChildren() {
|
|
288
|
+
super._updateChildren(), this._valuesDirty && p(this._dataItems, (t) => {
|
|
289
|
+
t.get("label").text.markDirtyText();
|
|
290
|
+
}), (this.isDirty("legendLabelText") || this.isDirty("legendValueText")) && p(this._dataItems, (t) => {
|
|
291
|
+
this.updateLegendValue(t);
|
|
292
|
+
}), this._arrange();
|
|
293
|
+
}
|
|
294
|
+
_arrange() {
|
|
295
|
+
this._arrangeDown(this._lLabels), this._arrangeUp(this._lLabels), this._arrangeDown(this._rLabels), this._arrangeUp(this._rLabels), this._arrangeLeft(this._hLabels), this._arrangeRight(this._hLabels), p(this.dataItems, (t) => {
|
|
296
|
+
this._updateTick(t);
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
_afterChanged() {
|
|
300
|
+
super._afterChanged(), this._arrange();
|
|
301
|
+
}
|
|
302
|
+
processDataItem(t) {
|
|
303
|
+
if (super.processDataItem(t), t.get("fill") == null) {
|
|
304
|
+
let e = this.get("colors");
|
|
305
|
+
e && t.setRaw("fill", e.next());
|
|
306
|
+
}
|
|
307
|
+
if (t.get("fillPattern") == null) {
|
|
308
|
+
let e = this.get("patterns");
|
|
309
|
+
e && t.setRaw("fillPattern", e.next());
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Shows series's data item.
|
|
314
|
+
*
|
|
315
|
+
* @param dataItem Data item
|
|
316
|
+
* @param duration Animation duration in milliseconds
|
|
317
|
+
* @return Promise
|
|
318
|
+
*/
|
|
319
|
+
showDataItem(t, e) {
|
|
320
|
+
const i = Object.create(null, {
|
|
321
|
+
showDataItem: { get: () => super.showDataItem }
|
|
322
|
+
});
|
|
323
|
+
return k(this, void 0, void 0, function* () {
|
|
324
|
+
const s = [i.showDataItem.call(this, t, e)];
|
|
325
|
+
j(e) || (e = this.get("stateAnimationDuration", 0));
|
|
326
|
+
const a = this.get("stateAnimationEasing");
|
|
327
|
+
let l = t.get("value");
|
|
328
|
+
const r = t.animate({ key: "valueWorking", to: l, duration: e, easing: a });
|
|
329
|
+
r && s.push(r.waitForStop());
|
|
330
|
+
const u = t.get("tick");
|
|
331
|
+
u && s.push(u.show(e));
|
|
332
|
+
const h = t.get("label");
|
|
333
|
+
h && s.push(h.show(e));
|
|
334
|
+
const o = t.get("slice");
|
|
335
|
+
o && s.push(o.show(e)), o.get("active") && o.states.applyAnimate("active"), yield Promise.all(s);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Hides series's data item.
|
|
340
|
+
*
|
|
341
|
+
* @param dataItem Data item
|
|
342
|
+
* @param duration Animation duration in milliseconds
|
|
343
|
+
* @return Promise
|
|
344
|
+
*/
|
|
345
|
+
hideDataItem(t, e) {
|
|
346
|
+
const i = Object.create(null, {
|
|
347
|
+
hideDataItem: { get: () => super.hideDataItem }
|
|
348
|
+
});
|
|
349
|
+
return k(this, void 0, void 0, function* () {
|
|
350
|
+
const s = [i.hideDataItem.call(this, t, e)], a = this.states.create("hidden", {});
|
|
351
|
+
j(e) || (e = a.get("stateAnimationDuration", this.get("stateAnimationDuration", 0)));
|
|
352
|
+
const l = a.get("stateAnimationEasing", this.get("stateAnimationEasing")), r = t.animate({ key: "valueWorking", to: 0, duration: e, easing: l });
|
|
353
|
+
r && s.push(r.waitForStop());
|
|
354
|
+
const u = t.get("tick");
|
|
355
|
+
u && s.push(u.hide(e));
|
|
356
|
+
const h = t.get("label");
|
|
357
|
+
h && s.push(h.hide(e));
|
|
358
|
+
const o = t.get("slice");
|
|
359
|
+
o.hideTooltip(), o && s.push(o.hide(e)), yield Promise.all(s);
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @ignore
|
|
364
|
+
*/
|
|
365
|
+
disposeDataItem(t) {
|
|
366
|
+
super.disposeDataItem(t);
|
|
367
|
+
let e = t.get("label");
|
|
368
|
+
e && (this.labels.removeValue(e), e.dispose());
|
|
369
|
+
let i = t.get("tick");
|
|
370
|
+
i && (this.ticks.removeValue(i), i.dispose());
|
|
371
|
+
let s = t.get("slice");
|
|
372
|
+
s && (this.slices.removeValue(s), s.dispose());
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Triggers hover on a series data item.
|
|
376
|
+
*
|
|
377
|
+
* @since 5.0.7
|
|
378
|
+
* @param dataItem Target data item
|
|
379
|
+
*/
|
|
380
|
+
hoverDataItem(t) {
|
|
381
|
+
const e = t.get("slice");
|
|
382
|
+
e && !e.isHidden() && e.hover();
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Triggers un-hover on a series data item.
|
|
386
|
+
*
|
|
387
|
+
* @since 5.0.7
|
|
388
|
+
* @param dataItem Target data item
|
|
389
|
+
*/
|
|
390
|
+
unhoverDataItem(t) {
|
|
391
|
+
const e = t.get("slice");
|
|
392
|
+
e && e.unhover();
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @ignore
|
|
396
|
+
*/
|
|
397
|
+
updateLegendMarker(t) {
|
|
398
|
+
if (t) {
|
|
399
|
+
const e = t.get("slice");
|
|
400
|
+
if (e) {
|
|
401
|
+
const i = t.get("legendDataItem");
|
|
402
|
+
if (i) {
|
|
403
|
+
const s = i.get("markerRectangle");
|
|
404
|
+
p(U, (a) => {
|
|
405
|
+
e.get(a) != null && s.set(a, e.get(a));
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
_arrangeDown(t) {
|
|
412
|
+
if (t) {
|
|
413
|
+
let e = this._getNextDown();
|
|
414
|
+
t.sort((i, s) => i.y > s.y ? 1 : i.y < s.y ? -1 : 0), p(t, (i) => {
|
|
415
|
+
const s = i.label.adjustedLocalBounds();
|
|
416
|
+
let a = s.top;
|
|
417
|
+
i.y + a < e && (i.y = e - a), i.label.set("y", i.y), e = i.y + s.bottom;
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
_getNextUp() {
|
|
422
|
+
return this.labelsContainer.maxHeight();
|
|
423
|
+
}
|
|
424
|
+
_getNextDown() {
|
|
425
|
+
return 0;
|
|
426
|
+
}
|
|
427
|
+
_arrangeUp(t) {
|
|
428
|
+
if (t) {
|
|
429
|
+
let e = this._getNextUp();
|
|
430
|
+
t.sort((i, s) => i.y < s.y ? 1 : i.y > s.y ? -1 : 0), p(t, (i) => {
|
|
431
|
+
const s = i.label.adjustedLocalBounds();
|
|
432
|
+
let a = s.bottom;
|
|
433
|
+
i.y + a > e && (i.y = e - a), i.label.set("y", i.y), e = i.y + s.top;
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
_arrangeRight(t) {
|
|
438
|
+
if (t) {
|
|
439
|
+
let e = 0;
|
|
440
|
+
t.sort((i, s) => i.y > s.y ? 1 : i.y < s.y ? -1 : 0), p(t, (i) => {
|
|
441
|
+
const s = i.label.adjustedLocalBounds();
|
|
442
|
+
let a = s.left;
|
|
443
|
+
i.y + a < e && (i.y = e - a), i.label.set("x", i.y), e = i.y + s.right;
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
_arrangeLeft(t) {
|
|
448
|
+
if (t) {
|
|
449
|
+
let e = this.labelsContainer.maxWidth();
|
|
450
|
+
t.sort((i, s) => i.y < s.y ? 1 : i.y > s.y ? -1 : 0), p(t, (i) => {
|
|
451
|
+
const s = i.label.adjustedLocalBounds();
|
|
452
|
+
let a = s.right;
|
|
453
|
+
i.y + a > e && (i.y = e - a), i.label.set("x", i.y), e = i.y + s.left;
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
_updateSize() {
|
|
458
|
+
super._updateSize(), this.markDirty();
|
|
459
|
+
}
|
|
460
|
+
_updateTick(t) {
|
|
461
|
+
}
|
|
462
|
+
_dispose() {
|
|
463
|
+
super._dispose();
|
|
464
|
+
const t = this.chart;
|
|
465
|
+
t && t.series.removeValue(this);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
Object.defineProperty(_, "className", {
|
|
469
|
+
enumerable: !0,
|
|
470
|
+
configurable: !0,
|
|
471
|
+
writable: !0,
|
|
472
|
+
value: "PercentSeries"
|
|
473
|
+
});
|
|
474
|
+
Object.defineProperty(_, "classNames", {
|
|
475
|
+
enumerable: !0,
|
|
476
|
+
configurable: !0,
|
|
477
|
+
writable: !0,
|
|
478
|
+
value: F.classNames.concat([_.className])
|
|
479
|
+
});
|
|
480
|
+
class R extends y {
|
|
481
|
+
constructor() {
|
|
482
|
+
super(...arguments), Object.defineProperty(this, "_maxRadius", {
|
|
483
|
+
enumerable: !0,
|
|
484
|
+
configurable: !0,
|
|
485
|
+
writable: !0,
|
|
486
|
+
value: 1
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
_afterNew() {
|
|
490
|
+
super._afterNew(), this.seriesContainer.setAll({ x: f, y: f });
|
|
491
|
+
}
|
|
492
|
+
_prepareChildren() {
|
|
493
|
+
super._prepareChildren();
|
|
494
|
+
const t = this.chartContainer, e = t.innerWidth(), i = t.innerHeight(), s = this.get("startAngle", 0), a = this.get("endAngle", 0), l = this.get("innerRadius");
|
|
495
|
+
let r = M(0, 0, s, a, 1);
|
|
496
|
+
const u = e / (r.right - r.left), h = i / (r.bottom - r.top);
|
|
497
|
+
let o = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
498
|
+
if (l instanceof z) {
|
|
499
|
+
let c = l.value, g = Math.min(u, h);
|
|
500
|
+
c = Math.max(g * c, g - Math.min(i, e)) / g, o = M(0, 0, s, a, c), this.setPrivateRaw("irModifyer", c / l.value);
|
|
501
|
+
}
|
|
502
|
+
r = q([r, o]);
|
|
503
|
+
const d = this._maxRadius;
|
|
504
|
+
this._maxRadius = Math.min(u, h);
|
|
505
|
+
const n = b(this.get("radius", 0), this._maxRadius);
|
|
506
|
+
this.seriesContainer.setAll({
|
|
507
|
+
dy: -n * (r.bottom + r.top) / 2,
|
|
508
|
+
dx: -n * (r.right + r.left) / 2
|
|
509
|
+
}), (this.isDirty("startAngle") || this.isDirty("endAngle") || d != this._maxRadius) && this.series.each((c) => {
|
|
510
|
+
c._markDirtyKey("startAngle");
|
|
511
|
+
}), (this.isDirty("innerRadius") || this.isDirty("radius")) && this.series.each((c) => {
|
|
512
|
+
c._markDirtyKey("innerRadius");
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Returns outer radius in pixels.
|
|
517
|
+
*
|
|
518
|
+
* If optional series parameter is passed in, it will return outer radius
|
|
519
|
+
* of that particular series.
|
|
520
|
+
*
|
|
521
|
+
* @param series Series
|
|
522
|
+
* @return Radius in pixels
|
|
523
|
+
*/
|
|
524
|
+
radius(t) {
|
|
525
|
+
let e = b(this.get("radius", 0), this._maxRadius), i = b(this.get("innerRadius", 0), e);
|
|
526
|
+
if (t) {
|
|
527
|
+
let s = this.series.indexOf(t), a = this.series.length, l = t.get("radius");
|
|
528
|
+
return l != null ? i + b(l, e - i) : i + (e - i) / a * (s + 1);
|
|
529
|
+
}
|
|
530
|
+
return e;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Returns inner radius in pixels.
|
|
534
|
+
*
|
|
535
|
+
* If optional series parameter is passed in, it will return inner radius
|
|
536
|
+
* of that particular series.
|
|
537
|
+
*
|
|
538
|
+
* @param series Series
|
|
539
|
+
* @return Radius in pixels
|
|
540
|
+
*/
|
|
541
|
+
innerRadius(t) {
|
|
542
|
+
const e = this.radius();
|
|
543
|
+
let i = b(this.get("innerRadius", 0), e);
|
|
544
|
+
if (i < 0 && (i = e + i), t) {
|
|
545
|
+
let s = this.series.indexOf(t), a = this.series.length, l = t.get("innerRadius");
|
|
546
|
+
return l != null ? i + b(l, e - i) : i + (e - i) / a * s;
|
|
547
|
+
}
|
|
548
|
+
return i;
|
|
549
|
+
}
|
|
550
|
+
_updateSize() {
|
|
551
|
+
super._updateSize(), this.markDirtyKey("radius");
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
Object.defineProperty(R, "className", {
|
|
555
|
+
enumerable: !0,
|
|
556
|
+
configurable: !0,
|
|
557
|
+
writable: !0,
|
|
558
|
+
value: "PieChart"
|
|
559
|
+
});
|
|
560
|
+
Object.defineProperty(R, "classNames", {
|
|
561
|
+
enumerable: !0,
|
|
562
|
+
configurable: !0,
|
|
563
|
+
writable: !0,
|
|
564
|
+
value: y.classNames.concat([R.className])
|
|
565
|
+
});
|
|
566
|
+
class L extends _ {
|
|
567
|
+
_makeSlices() {
|
|
568
|
+
return new x(D.new({}), () => E._new(this._root, {
|
|
569
|
+
themeTags: w(this.slices.template.get("themeTags", []), ["pie", "series"])
|
|
570
|
+
}, [this.slices.template]));
|
|
571
|
+
}
|
|
572
|
+
_makeLabels() {
|
|
573
|
+
return new x(D.new({}), () => $._new(this._root, {
|
|
574
|
+
themeTags: w(this.labels.template.get("themeTags", []), ["pie", "series"])
|
|
575
|
+
}, [this.labels.template]));
|
|
576
|
+
}
|
|
577
|
+
_makeTicks() {
|
|
578
|
+
return new x(D.new({}), () => V._new(this._root, {
|
|
579
|
+
themeTags: w(this.ticks.template.get("themeTags", []), ["pie", "series"])
|
|
580
|
+
}, [this.ticks.template]));
|
|
581
|
+
}
|
|
582
|
+
processDataItem(t) {
|
|
583
|
+
super.processDataItem(t);
|
|
584
|
+
const e = this.makeSlice(t);
|
|
585
|
+
e.on("scale", () => {
|
|
586
|
+
this._updateTick(t);
|
|
587
|
+
}), e.on("shiftRadius", () => {
|
|
588
|
+
this._updateTick(t);
|
|
589
|
+
}), e.events.on("positionchanged", () => {
|
|
590
|
+
this._updateTick(t);
|
|
591
|
+
});
|
|
592
|
+
const i = this.makeLabel(t);
|
|
593
|
+
i.events.on("positionchanged", () => {
|
|
594
|
+
this._updateTick(t);
|
|
595
|
+
}), this.makeTick(t), e.events.on("positionchanged", () => {
|
|
596
|
+
i.markDirty();
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
_getNextUp() {
|
|
600
|
+
const t = this.chart;
|
|
601
|
+
return t ? t._maxRadius : this.labelsContainer.maxHeight() / 2;
|
|
602
|
+
}
|
|
603
|
+
_getNextDown() {
|
|
604
|
+
const t = this.chart;
|
|
605
|
+
return t ? -t._maxRadius : -this.labelsContainer.maxHeight() / 2;
|
|
606
|
+
}
|
|
607
|
+
_prepareChildren() {
|
|
608
|
+
super._prepareChildren();
|
|
609
|
+
const t = this.chart;
|
|
610
|
+
if (t) {
|
|
611
|
+
if (this.isDirty("alignLabels")) {
|
|
612
|
+
let e = this.labels.template;
|
|
613
|
+
if (this.get("alignLabels"))
|
|
614
|
+
e.set("textType", "aligned");
|
|
615
|
+
else {
|
|
616
|
+
let i = e.get("textType");
|
|
617
|
+
(i == null || i == "aligned") && e.set("textType", "adjusted");
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
if (this._valuesDirty || this.isDirty("radius") || this.isDirty("innerRadius") || this.isDirty("startAngle") || this.isDirty("endAngle") || this.isDirty("alignLabels")) {
|
|
621
|
+
this.markDirtyBounds();
|
|
622
|
+
const e = this.get("startAngle", t.get("startAngle", -90)), s = this.get("endAngle", t.get("endAngle", 270)) - e;
|
|
623
|
+
let a = e;
|
|
624
|
+
const l = t.radius(this);
|
|
625
|
+
this.setPrivateRaw("radius", l);
|
|
626
|
+
let r = t.innerRadius(this) * t.getPrivate("irModifyer", 1);
|
|
627
|
+
r < 0 && (r = l + r), p(this._dataItems, (u) => {
|
|
628
|
+
this.updateLegendValue(u);
|
|
629
|
+
let h = s * u.get("valuePercentTotal") / 100;
|
|
630
|
+
const o = u.get("slice");
|
|
631
|
+
if (o) {
|
|
632
|
+
o.set("radius", l), o.set("innerRadius", r), o.set("startAngle", a), o.set("arc", h);
|
|
633
|
+
const c = u.get("fill");
|
|
634
|
+
o._setDefault("fill", c), o._setDefault("stroke", c);
|
|
635
|
+
const g = u.get("fillPattern");
|
|
636
|
+
o._setDefault("fillPattern", g);
|
|
637
|
+
}
|
|
638
|
+
let d = K(a + h / 2);
|
|
639
|
+
const n = u.get("label");
|
|
640
|
+
if (n && (n.setPrivate("radius", l), n.setPrivate("innerRadius", r), n.set("labelAngle", d), n.get("textType") == "aligned")) {
|
|
641
|
+
let c = l + n.get("radius", 0), g = l * m(d);
|
|
642
|
+
d > 90 && d <= 270 ? (!n.isHidden() && !n.isHiding() && this._lLabels.push({ label: n, y: g }), c *= -1, c -= this.labelsContainer.get("paddingLeft", 0), n.set("centerX", T), n.setPrivateRaw("left", !0)) : (!n.isHidden() && !n.isHiding() && this._rLabels.push({ label: n, y: g }), c += this.labelsContainer.get("paddingRight", 0), n.set("centerX", 0), n.setPrivateRaw("left", !1)), n.set("x", c), n.set("y", l * m(d));
|
|
643
|
+
}
|
|
644
|
+
a += h, this._updateTick(u);
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
_updateTick(t) {
|
|
650
|
+
const e = t.get("tick"), i = t.get("label"), s = t.get("slice"), a = e.get("location", 1);
|
|
651
|
+
if (e && i && s) {
|
|
652
|
+
const l = (s.get("shiftRadius", 0) + s.get("radius", 0)) * s.get("scale", 1) * a, r = i.get("labelAngle", 0), u = P(r), h = m(r), o = this.labelsContainer, d = o.get("paddingLeft", 0), n = o.get("paddingRight", 0);
|
|
653
|
+
let c = 0, g = 0;
|
|
654
|
+
c = i.x(), g = i.y();
|
|
655
|
+
let S = [];
|
|
656
|
+
if (c != 0 || g != 0) {
|
|
657
|
+
if (i.get("textType") == "circular") {
|
|
658
|
+
const N = i.radius() - i.get("paddingBottom", 0), O = i.get("labelAngle", 0);
|
|
659
|
+
c = N * P(O), g = N * m(O);
|
|
660
|
+
}
|
|
661
|
+
let C = -n;
|
|
662
|
+
i.getPrivate("left") && (C = d), S = [{ x: s.x() + l * u, y: s.y() + l * h }, { x: c + C, y: g }, { x: c, y: g }];
|
|
663
|
+
}
|
|
664
|
+
e.set("points", S);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
_positionBullet(t) {
|
|
668
|
+
const e = t.get("sprite");
|
|
669
|
+
if (e) {
|
|
670
|
+
const s = e.dataItem.get("slice");
|
|
671
|
+
if (s) {
|
|
672
|
+
const a = s.get("innerRadius", 0), l = s.get("radius", 0), r = s.get("startAngle", 0), u = s.get("arc", 0), h = t.get("locationX", 0.5), o = t.get("locationY", 0.5), d = r + u * h, n = a + (l - a) * o;
|
|
673
|
+
e.setAll({ x: P(d) * n, y: m(d) * n });
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
Object.defineProperty(L, "className", {
|
|
679
|
+
enumerable: !0,
|
|
680
|
+
configurable: !0,
|
|
681
|
+
writable: !0,
|
|
682
|
+
value: "PieSeries"
|
|
683
|
+
});
|
|
684
|
+
Object.defineProperty(L, "classNames", {
|
|
685
|
+
enumerable: !0,
|
|
686
|
+
configurable: !0,
|
|
687
|
+
writable: !0,
|
|
688
|
+
value: _.classNames.concat([L.className])
|
|
689
|
+
});
|
|
690
|
+
export {
|
|
691
|
+
R as P,
|
|
692
|
+
L as a
|
|
693
|
+
};
|