igniteui-webcomponents-charts 4.7.1 → 4.7.2-beta.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/bundles/igniteui-webcomponents-charts.umd.js +1138 -832
- package/bundles/igniteui-webcomponents-charts.umd.min.js +1 -1
- package/esm2015/lib/AngleAxisLabelPanel_combined.js +400 -235
- package/esm2015/lib/Arc_combined.js +1 -1
- package/esm2015/lib/AxisAngleLabelMode.js +28 -0
- package/esm2015/lib/AxisVisualDataManager.js +9 -9
- package/esm2015/lib/BubbleSeries_combined.js +1 -1
- package/esm2015/lib/CategoryDateTimeXAxis_combined.js +10 -10
- package/esm2015/lib/CategoryXAxis_combined.js +15 -15
- package/esm2015/lib/CategoryYAxis_combined.js +14 -14
- package/esm2015/lib/DataAbbreviator.js +1 -1
- package/esm2015/lib/DataLegendContent_combined.js +50 -47
- package/esm2015/lib/DomainChart_combined.js +1 -1
- package/esm2015/lib/FinancialEventArgs_combined.js +3 -3
- package/esm2015/lib/FinancialIndicator_combined.js +2 -2
- package/esm2015/lib/LegendBaseViewManager_combined.js +3 -3
- package/esm2015/lib/NumericXAxis_combined.js +4 -4
- package/esm2015/lib/NumericYAxis_combined.js +4 -4
- package/esm2015/lib/PieChartViewManager_combined.js +37 -37
- package/esm2015/lib/PointerTooltip_combined.js +1 -1
- package/esm2015/lib/PolarAxisRenderingManager.js +2 -2
- package/esm2015/lib/PolarBase_combined.js +2 -2
- package/esm2015/lib/PolarSplineSeries_combined.js +1 -1
- package/esm2015/lib/RadialBucketCalculator_combined.js +4 -4
- package/esm2015/lib/RangeCategoryBucketCalculator_combined.js +5 -5
- package/esm2015/lib/ScatterBase_combined.js +1 -1
- package/esm2015/lib/ScatterContourSeries_combined.js +1 -1
- package/esm2015/lib/ScatterSplineSeries.js +1 -1
- package/esm2015/lib/ScatterTriangulationSeries.js +5 -5
- package/esm2015/lib/SeriesViewer_combined.js +198 -190
- package/esm2015/lib/ShapeSeriesBase_combined.js +2 -2
- package/esm2015/lib/StraightNumericAxisBase_combined.js +6 -6
- package/esm2015/lib/TimeAxisBase.js +5 -5
- package/esm2015/lib/TimeXAxis.js +3 -3
- package/esm2015/lib/TreemapView_combined.js +8 -8
- package/esm2015/lib/XamFunnelView_combined.js +71 -65
- package/esm2015/lib/ZoomSliderView_combined.js +2 -2
- package/esm2015/lib/igc-axis-collection.js +6 -1
- package/esm2015/lib/igc-callout-annotation-collection.js +6 -1
- package/esm2015/lib/igc-category-angle-axis-component.js +28 -17
- package/esm2015/lib/igc-data-legend-component.js +4 -0
- package/esm2015/lib/igc-funnel-chart-component.js +51 -42
- package/esm2015/lib/igc-numeric-angle-axis-component.js +15 -4
- package/esm2015/lib/igc-pie-chart-base-component.js +9 -9
- package/esm2015/lib/igc-ring-series-collection.js +6 -1
- package/esm2015/lib/igc-series-collection.js +6 -1
- package/esm2015/lib/igc-series-layer-collection.js +6 -1
- package/esm2015/lib/igc-series-layer-property-overlay-collection.js +6 -1
- package/esm2015/lib/igc-stacked-series-collection.js +6 -1
- package/esm2015/lib/igc-time-axis-break-collection.js +6 -1
- package/esm2015/lib/igc-time-axis-interval-collection.js +6 -1
- package/esm2015/lib/igc-time-axis-label-format-collection.js +6 -1
- package/esm2015/lib/igc-treemap-node-style-mapping-collection.js +6 -1
- package/esm2015/public_api.js +1 -0
- package/esm5/lib/AngleAxisLabelPanel_combined.js +393 -228
- package/esm5/lib/Arc_combined.js +1 -1
- package/esm5/lib/AxisAngleLabelMode.js +28 -0
- package/esm5/lib/AxisVisualDataManager.js +9 -9
- package/esm5/lib/BubbleSeries_combined.js +1 -1
- package/esm5/lib/CategoryDateTimeXAxis_combined.js +10 -10
- package/esm5/lib/CategoryXAxis_combined.js +15 -15
- package/esm5/lib/CategoryYAxis_combined.js +14 -14
- package/esm5/lib/DataAbbreviator.js +1 -1
- package/esm5/lib/DataLegendContent_combined.js +50 -47
- package/esm5/lib/DomainChart_combined.js +1 -1
- package/esm5/lib/FinancialEventArgs_combined.js +3 -3
- package/esm5/lib/FinancialIndicator_combined.js +2 -2
- package/esm5/lib/LegendBaseViewManager_combined.js +3 -3
- package/esm5/lib/NumericXAxis_combined.js +4 -4
- package/esm5/lib/NumericYAxis_combined.js +4 -4
- package/esm5/lib/PieChartViewManager_combined.js +37 -37
- package/esm5/lib/PointerTooltip_combined.js +1 -1
- package/esm5/lib/PolarAxisRenderingManager.js +2 -2
- package/esm5/lib/PolarBase_combined.js +2 -2
- package/esm5/lib/PolarSplineSeries_combined.js +1 -1
- package/esm5/lib/RadialBucketCalculator_combined.js +4 -4
- package/esm5/lib/RangeCategoryBucketCalculator_combined.js +5 -5
- package/esm5/lib/ScatterBase_combined.js +1 -1
- package/esm5/lib/ScatterContourSeries_combined.js +1 -1
- package/esm5/lib/ScatterSplineSeries.js +1 -1
- package/esm5/lib/ScatterTriangulationSeries.js +5 -5
- package/esm5/lib/SeriesViewer_combined.js +198 -190
- package/esm5/lib/ShapeSeriesBase_combined.js +2 -2
- package/esm5/lib/StraightNumericAxisBase_combined.js +6 -6
- package/esm5/lib/TimeAxisBase.js +5 -5
- package/esm5/lib/TimeXAxis.js +3 -3
- package/esm5/lib/TreemapView_combined.js +8 -8
- package/esm5/lib/XamFunnelView_combined.js +70 -64
- package/esm5/lib/ZoomSliderView_combined.js +2 -2
- package/esm5/lib/igc-axis-collection.js +6 -1
- package/esm5/lib/igc-callout-annotation-collection.js +6 -1
- package/esm5/lib/igc-category-angle-axis-component.js +32 -17
- package/esm5/lib/igc-data-legend-component.js +4 -0
- package/esm5/lib/igc-funnel-chart-component.js +51 -42
- package/esm5/lib/igc-numeric-angle-axis-component.js +19 -4
- package/esm5/lib/igc-pie-chart-base-component.js +9 -9
- package/esm5/lib/igc-ring-series-collection.js +6 -1
- package/esm5/lib/igc-series-collection.js +6 -1
- package/esm5/lib/igc-series-layer-collection.js +6 -1
- package/esm5/lib/igc-series-layer-property-overlay-collection.js +6 -1
- package/esm5/lib/igc-stacked-series-collection.js +6 -1
- package/esm5/lib/igc-time-axis-break-collection.js +6 -1
- package/esm5/lib/igc-time-axis-interval-collection.js +6 -1
- package/esm5/lib/igc-time-axis-label-format-collection.js +6 -1
- package/esm5/lib/igc-treemap-node-style-mapping-collection.js +6 -1
- package/esm5/public_api.js +1 -0
- package/fesm2015/igniteui-webcomponents-charts.js +1125 -829
- package/fesm5/igniteui-webcomponents-charts.js +1137 -833
- package/lib/AngleAxisLabelPanel_combined.d.ts +69 -58
- package/lib/AxisAngleLabelMode.d.ts +21 -0
- package/lib/CategoryDateTimeXAxis_combined.d.ts +3 -3
- package/lib/CategoryXAxis_combined.d.ts +2 -2
- package/lib/CategoryYAxis_combined.d.ts +2 -2
- package/lib/NumericXAxis_combined.d.ts +2 -2
- package/lib/NumericYAxis_combined.d.ts +2 -2
- package/lib/PieChartViewManager_combined.d.ts +2 -2
- package/lib/SeriesViewer_combined.d.ts +66 -63
- package/lib/StraightNumericAxisBase_combined.d.ts +2 -2
- package/lib/XamFunnelView_combined.d.ts +21 -19
- package/lib/igc-category-angle-axis-component.d.ts +6 -0
- package/lib/igc-data-legend-component.d.ts +1 -0
- package/lib/igc-funnel-chart-component.d.ts +8 -1
- package/lib/igc-numeric-angle-axis-component.d.ts +6 -0
- package/lib/igc-pie-chart-base-component.d.ts +7 -7
- package/package.json +2 -2
- package/public_api.d.ts +1 -0
|
@@ -5,12 +5,13 @@ https://www.infragistics.com/legal/license/igultimate-eula
|
|
|
5
5
|
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
6
|
*/
|
|
7
7
|
import { AxisLabelPanelBase } from "./AxisLabelPanelBase";
|
|
8
|
-
import { Boolean_$type, typeCast, markType, Point_$type, typeGetValue, fromEnum, runOn, Number_$type, markDep } from "igniteui-webcomponents-core";
|
|
8
|
+
import { Boolean_$type, typeCast, markType, Point_$type, typeGetValue, fromEnum, runOn, Number_$type, enumGetBox, markDep } from "igniteui-webcomponents-core";
|
|
9
9
|
import { AxisLabelPanelBaseView } from "./AxisLabelPanelBaseView";
|
|
10
10
|
import { Rect } from "igniteui-webcomponents-core";
|
|
11
11
|
import { Extensions } from "igniteui-webcomponents-core";
|
|
12
12
|
import { Axis } from "./Axis";
|
|
13
13
|
import { List$1 } from "igniteui-webcomponents-core";
|
|
14
|
+
import { AxisAngleLabelMode_$type } from "./AxisAngleLabelMode";
|
|
14
15
|
import { LabelPosition } from "./LabelPosition";
|
|
15
16
|
import { XamDataChart } from "./XamDataChart";
|
|
16
17
|
import { CategoryAxisBase } from "./CategoryAxisBase";
|
|
@@ -20,6 +21,7 @@ import { DependencyProperty } from "igniteui-webcomponents-core";
|
|
|
20
21
|
import { PolarAxisRenderingManager } from "./PolarAxisRenderingManager";
|
|
21
22
|
import { AxisLabelManager } from "./AxisLabelManager";
|
|
22
23
|
import { ViewportUtils } from "./ViewportUtils";
|
|
24
|
+
import { GeometryUtil } from "igniteui-webcomponents-core";
|
|
23
25
|
import { RadialAxisRenderingParameters } from "./RadialAxisRenderingParameters";
|
|
24
26
|
import { CategoryTickmarkValues } from "./CategoryTickmarkValues";
|
|
25
27
|
import { SeriesViewer } from "./SeriesViewer";
|
|
@@ -58,11 +60,12 @@ export let AngleAxisLabelPanel = /*@__PURE__*/ (() => {
|
|
|
58
60
|
constructor() {
|
|
59
61
|
super();
|
|
60
62
|
this.da = false;
|
|
61
|
-
this.
|
|
63
|
+
this.di = null;
|
|
64
|
+
this.df = 0;
|
|
65
|
+
this.dc = 0;
|
|
62
66
|
this.de = 0;
|
|
63
|
-
this.db = 0;
|
|
64
67
|
this.dd = 0;
|
|
65
|
-
this.
|
|
68
|
+
this.db = 0;
|
|
66
69
|
}
|
|
67
70
|
at(a, b) {
|
|
68
71
|
if (!Extensions.b(b)) {
|
|
@@ -79,34 +82,105 @@ export let AngleAxisLabelPanel = /*@__PURE__*/ (() => {
|
|
|
79
82
|
if (this.bb.count != this.ba.count) {
|
|
80
83
|
return a;
|
|
81
84
|
}
|
|
82
|
-
|
|
83
|
-
|
|
85
|
+
let c = 1;
|
|
86
|
+
if (typeCast(CategoryAngleAxis.$, this.ad) !== null) {
|
|
87
|
+
c = this.ad.mh();
|
|
88
|
+
}
|
|
89
|
+
else if (typeCast(NumericAngleAxis.$, this.ad) !== null) {
|
|
90
|
+
c = this.ad.ni();
|
|
91
|
+
}
|
|
92
|
+
if (c == 2) {
|
|
93
|
+
this.c9.a0(a, b);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
this.c9.a1(a, b);
|
|
97
|
+
}
|
|
98
|
+
let d = false;
|
|
84
99
|
this.ao = this.an(a, b);
|
|
85
100
|
if (!this.ad.b8()) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
101
|
+
d = true;
|
|
102
|
+
switch (c) {
|
|
103
|
+
case 1:
|
|
104
|
+
this.dk();
|
|
105
|
+
break;
|
|
106
|
+
case 2:
|
|
107
|
+
this.dj();
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
89
110
|
}
|
|
90
111
|
else {
|
|
91
|
-
|
|
112
|
+
d = true;
|
|
92
113
|
this.c9.ac();
|
|
93
114
|
}
|
|
94
|
-
if (
|
|
95
|
-
for (let
|
|
96
|
-
let
|
|
97
|
-
let
|
|
98
|
-
let
|
|
99
|
-
let
|
|
100
|
-
let
|
|
101
|
-
let
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
a._inner[
|
|
115
|
+
if (d) {
|
|
116
|
+
for (let e = 0; e < a.count; e++) {
|
|
117
|
+
let f = this.bb._inner[e];
|
|
118
|
+
let g = this.ba._inner[e];
|
|
119
|
+
let h = a._inner[e];
|
|
120
|
+
let i = this.di(g.c, h.width, h.height);
|
|
121
|
+
let j = i.x - this.bk(f) / 2;
|
|
122
|
+
let k = i.y - this.bj(f) / 2;
|
|
123
|
+
h.x = j;
|
|
124
|
+
h.y = k;
|
|
125
|
+
a._inner[e] = h;
|
|
105
126
|
}
|
|
106
127
|
}
|
|
107
128
|
return a;
|
|
108
129
|
}
|
|
109
|
-
|
|
130
|
+
dk() {
|
|
131
|
+
this.bh = this.df / 2;
|
|
132
|
+
this.bh = this.bh + this.dg();
|
|
133
|
+
}
|
|
134
|
+
dj() {
|
|
135
|
+
this.bh = 5;
|
|
136
|
+
this.bh = this.bh + this.dh();
|
|
137
|
+
}
|
|
138
|
+
dh() {
|
|
139
|
+
let a;
|
|
140
|
+
let b;
|
|
141
|
+
b = this.ad;
|
|
142
|
+
a = null;
|
|
143
|
+
if (b != null) {
|
|
144
|
+
a = typeCast(XamDataChart.$, b.bi);
|
|
145
|
+
}
|
|
146
|
+
if (a == null || b == null) {
|
|
147
|
+
return 0;
|
|
148
|
+
}
|
|
149
|
+
let c = new List$1(Axis.$, 0);
|
|
150
|
+
for (let d = 0; d < a.axes.count; d++) {
|
|
151
|
+
let e = a.axes._inner[d];
|
|
152
|
+
if ((typeCast(NumericAngleAxis.$, e) !== null || typeCast(CategoryAngleAxis.$, e) !== null) && typeCast(AngleAxisLabelPanel.$, e.aw) !== null && e.aw.bb.count > 0 && (!e.b8()) && !e.b5() && (e.aj == null || this.ad.aj == null || e.aj.no == b.aj.no)) {
|
|
153
|
+
c.add(e);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
let f = c.indexOf(b);
|
|
157
|
+
if (f == -1) {
|
|
158
|
+
return 0;
|
|
159
|
+
}
|
|
160
|
+
let g = 0;
|
|
161
|
+
if (f > 0) {
|
|
162
|
+
if (typeCast(CategoryAngleAxis.$, c._inner[f - 1]) !== null) {
|
|
163
|
+
let h = c._inner[f - 1];
|
|
164
|
+
if (h.mg == 2) {
|
|
165
|
+
g += h.aw.db;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
g += c._inner[f - 1].aw.bh;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
else if (typeCast(NumericAngleAxis.$, c._inner[f - 1]) !== null) {
|
|
172
|
+
let i = c._inner[f - 1];
|
|
173
|
+
if (i.mg == 2) {
|
|
174
|
+
g += i.aw.db;
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
g += c._inner[f - 1].aw.bh;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return g;
|
|
182
|
+
}
|
|
183
|
+
dg() {
|
|
110
184
|
let a;
|
|
111
185
|
let b;
|
|
112
186
|
b = this.ad;
|
|
@@ -134,7 +208,24 @@ export let AngleAxisLabelPanel = /*@__PURE__*/ (() => {
|
|
|
134
208
|
g += h;
|
|
135
209
|
}
|
|
136
210
|
else {
|
|
137
|
-
|
|
211
|
+
if (typeCast(CategoryAngleAxis.$, c._inner[f - 1]) !== null) {
|
|
212
|
+
let i = c._inner[f - 1];
|
|
213
|
+
if (i.mg == 2) {
|
|
214
|
+
g += i.aw.db;
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
g += c._inner[f - 1].aw.bh;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
else if (typeCast(NumericAngleAxis.$, c._inner[f - 1]) !== null) {
|
|
221
|
+
let j = c._inner[f - 1];
|
|
222
|
+
if (j.mg == 2) {
|
|
223
|
+
g += j.aw.db;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
g += c._inner[f - 1].aw.bh;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
138
229
|
g += c._inner[f].aw.bh * 2 + h;
|
|
139
230
|
}
|
|
140
231
|
return g;
|
|
@@ -159,39 +250,44 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
159
250
|
}
|
|
160
251
|
hs(a) {
|
|
161
252
|
super.hs(a);
|
|
162
|
-
this.
|
|
253
|
+
this.mj = a;
|
|
163
254
|
}
|
|
164
255
|
get_b9() {
|
|
165
256
|
return true;
|
|
166
257
|
}
|
|
167
258
|
constructor() {
|
|
168
259
|
super();
|
|
260
|
+
this.mo = null;
|
|
261
|
+
this.ml = null;
|
|
262
|
+
this.mp = false;
|
|
263
|
+
this.mt = NaN;
|
|
169
264
|
this.mm = null;
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
172
|
-
this.mr = NaN;
|
|
173
|
-
this.mk = null;
|
|
265
|
+
this.mu = 0;
|
|
266
|
+
this.mr = 0;
|
|
174
267
|
this.ms = 0;
|
|
175
|
-
this.
|
|
176
|
-
this.mq = 0;
|
|
177
|
-
this.m3 = 1;
|
|
268
|
+
this.m5 = 1;
|
|
178
269
|
this.ab = CategoryAngleAxis.$;
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
270
|
+
this.ml = this.mk();
|
|
271
|
+
this.mo = new PolarAxisRenderingManager();
|
|
181
272
|
}
|
|
182
273
|
av() {
|
|
183
274
|
let a = new AngleAxisLabelPanel();
|
|
184
|
-
a.
|
|
185
|
-
let
|
|
186
|
-
let
|
|
187
|
-
|
|
275
|
+
a.di = (b, c, d) => {
|
|
276
|
+
let e = this.bi != null ? this.bi.tn : Rect.empty;
|
|
277
|
+
let f = !e.isEmpty ? this.kd : Rect.empty;
|
|
278
|
+
switch (this.mg) {
|
|
279
|
+
case 2: return this.nk(b, c, d, { $type: Point_$type, x: 0.5, y: 0.5 }, e, f, this.aw.bh);
|
|
280
|
+
case 0:
|
|
281
|
+
case 1:
|
|
282
|
+
default: return this.nl(b, { $type: Point_$type, x: 0.5, y: 0.5 }, e, f, this.aw.bh);
|
|
283
|
+
}
|
|
188
284
|
};
|
|
189
285
|
return a;
|
|
190
286
|
}
|
|
191
|
-
|
|
287
|
+
m3(a) {
|
|
192
288
|
return Math.round(a * Math.pow(10, 10)) / Math.pow(10, 10);
|
|
193
289
|
}
|
|
194
|
-
|
|
290
|
+
mk() {
|
|
195
291
|
let a = ((() => {
|
|
196
292
|
let $ret = new AxisLabelManager();
|
|
197
293
|
$ret.a = this;
|
|
@@ -205,23 +301,23 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
205
301
|
}
|
|
206
302
|
let b = new CategoryAxisRenderer(a);
|
|
207
303
|
b.u = () => {
|
|
208
|
-
let c = this.a5.
|
|
209
|
-
let d = this.a5.
|
|
210
|
-
let e = this.a5.
|
|
211
|
-
let f = this.a5.
|
|
304
|
+
let c = this.a5.a4();
|
|
305
|
+
let d = this.a5.a7();
|
|
306
|
+
let e = this.a5.a5();
|
|
307
|
+
let f = this.a5.a6();
|
|
212
308
|
this.il();
|
|
213
309
|
this.hi(c);
|
|
214
310
|
this.hi(d);
|
|
215
311
|
this.hi(e);
|
|
216
312
|
this.hi(f);
|
|
217
313
|
};
|
|
218
|
-
b.o = (c, d) => !d.isEmpty && !c.isEmpty && this.
|
|
219
|
-
b.d = (c, d, e, f) => this.
|
|
314
|
+
b.o = (c, d) => !d.isEmpty && !c.isEmpty && this.mn != null;
|
|
315
|
+
b.d = (c, d, e, f) => this.mi(c, d, e, f);
|
|
220
316
|
b.v = () => {
|
|
221
|
-
if (!this.
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
224
|
-
this.
|
|
317
|
+
if (!this.mp) {
|
|
318
|
+
this.mp = true;
|
|
319
|
+
this.mn.c1();
|
|
320
|
+
this.mp = false;
|
|
225
321
|
}
|
|
226
322
|
};
|
|
227
323
|
b.g = (c, d) => {
|
|
@@ -233,35 +329,35 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
233
329
|
return this.fz(f);
|
|
234
330
|
};
|
|
235
331
|
b.b.c = (c) => {
|
|
236
|
-
if ((this.az == null || this.az.visibility == 0) && this.
|
|
332
|
+
if ((this.az == null || this.az.visibility == 0) && this.mn != null && this.mt != c) {
|
|
237
333
|
let d = typeCast(XamDataChart.$, this.bi);
|
|
238
334
|
if (d == null) {
|
|
239
335
|
return;
|
|
240
336
|
}
|
|
241
|
-
this.
|
|
337
|
+
this.mt = c;
|
|
242
338
|
this.aw.bg = c;
|
|
243
339
|
d.mg();
|
|
244
340
|
for (let e of fromEnum(d.axes)) {
|
|
245
341
|
if (e != this && typeCast(AngleAxisLabelPanel.$, e.aw) !== null) {
|
|
246
|
-
e.a5.
|
|
342
|
+
e.a5.ai();
|
|
247
343
|
}
|
|
248
344
|
}
|
|
249
345
|
}
|
|
250
346
|
};
|
|
251
347
|
b.k = (c, d, e) => {
|
|
252
348
|
let f = typeCast(RadialAxisRenderingParameters.$, c);
|
|
253
|
-
this.
|
|
349
|
+
this.mo.m(d, e, c.z, c.aa, f.minLength, f.maxLength, f.center);
|
|
254
350
|
};
|
|
255
351
|
b.l = (c, d, e, f) => {
|
|
256
352
|
let g = typeCast(RadialAxisRenderingParameters.$, c);
|
|
257
|
-
this.
|
|
353
|
+
this.mo.n(d, e, f, g.z, c.aa, g.minLength, g.maxLength, g.center);
|
|
258
354
|
};
|
|
259
355
|
b.m = (c, d) => this.getScaledAngle(d);
|
|
260
356
|
b.q = (c, d) => {
|
|
261
|
-
if (this.
|
|
357
|
+
if (this.m3(d - this.mu) < 0) {
|
|
262
358
|
return false;
|
|
263
359
|
}
|
|
264
|
-
if (this.
|
|
360
|
+
if (this.m3(d - this.mu - (2 * Math.PI)) > 0) {
|
|
265
361
|
return false;
|
|
266
362
|
}
|
|
267
363
|
return true;
|
|
@@ -269,11 +365,11 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
269
365
|
b.j = (c) => {
|
|
270
366
|
let d = typeCast(RadialAxisRenderingParameters.$, c);
|
|
271
367
|
if (d.e == d.k._inner[0]) {
|
|
272
|
-
this.
|
|
368
|
+
this.mo.i(c.t, c.n, c.z, c.aa, d.center, d.minAngle, d.maxAngle);
|
|
273
369
|
}
|
|
274
370
|
};
|
|
275
371
|
b.e = (c) => {
|
|
276
|
-
c.n = this.
|
|
372
|
+
c.n = this.mx();
|
|
277
373
|
c.r = c.n;
|
|
278
374
|
};
|
|
279
375
|
b.p = (c, d, e) => {
|
|
@@ -281,7 +377,7 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
281
377
|
if (e) {
|
|
282
378
|
return false;
|
|
283
379
|
}
|
|
284
|
-
let g = this.
|
|
380
|
+
let g = this.nl(d, f.center, c.aa, c.z, 0);
|
|
285
381
|
if (g.x < c.z.right && g.x >= c.z.left && g.y < c.z.bottom && g.y >= c.z.top) {
|
|
286
382
|
return true;
|
|
287
383
|
}
|
|
@@ -300,11 +396,11 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
300
396
|
return i;
|
|
301
397
|
};
|
|
302
398
|
b.f = runOn(this, this.getGroupCenter);
|
|
303
|
-
b.i = runOn(this, this.
|
|
399
|
+
b.i = runOn(this, this.m0);
|
|
304
400
|
return b;
|
|
305
401
|
}
|
|
306
|
-
|
|
307
|
-
let f = this.
|
|
402
|
+
nl(a, b, c, d, e) {
|
|
403
|
+
let f = this.mx();
|
|
308
404
|
let g = ViewportUtils.b(e, c, d);
|
|
309
405
|
if (this.az != null && (this.az.c == 5 || this.az.c == 1)) {
|
|
310
406
|
g *= -1;
|
|
@@ -315,27 +411,44 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
315
411
|
i = ViewportUtils.f(i, c, d);
|
|
316
412
|
return { $type: Point_$type, x: h, y: i };
|
|
317
413
|
}
|
|
318
|
-
|
|
319
|
-
if (
|
|
414
|
+
nk(a, b, c, d, e, f, g) {
|
|
415
|
+
if (!isNaN_(b) && !isNaN_(c)) {
|
|
416
|
+
let h = this.mx();
|
|
417
|
+
let i = b / f.width;
|
|
418
|
+
let j = c / f.width;
|
|
419
|
+
let k = ViewportUtils.b(g, e, f);
|
|
420
|
+
let l = GeometryUtil.h(h, a, i, j);
|
|
421
|
+
let m = d.x + (l + k) * Math.cos(a);
|
|
422
|
+
let n = d.y + (l + k) * Math.sin(a);
|
|
423
|
+
m = ViewportUtils.c(m, e, f);
|
|
424
|
+
n = ViewportUtils.f(n, e, f);
|
|
425
|
+
return { $type: Point_$type, x: m, y: n };
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
return this.nl(a, d, e, f, g);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
mx() {
|
|
432
|
+
if (this.mn == null) {
|
|
320
433
|
return 0;
|
|
321
434
|
}
|
|
322
435
|
if (!this.b5()) {
|
|
323
|
-
return this.
|
|
436
|
+
return this.mn.nt();
|
|
324
437
|
}
|
|
325
438
|
else {
|
|
326
|
-
return this.
|
|
439
|
+
return this.mn.nu((this.fv));
|
|
327
440
|
}
|
|
328
441
|
}
|
|
329
|
-
|
|
442
|
+
mi(a, b, c, d) {
|
|
330
443
|
if (this.kr == null) {
|
|
331
444
|
return null;
|
|
332
445
|
}
|
|
333
446
|
let e = new RadialAxisRenderingParameters();
|
|
334
447
|
let f = this.kr.count - 1;
|
|
335
|
-
let g = this.a5.
|
|
336
|
-
let h = this.a5.
|
|
337
|
-
let i = this.a5.
|
|
338
|
-
let j = this.a5.
|
|
448
|
+
let g = this.a5.a4();
|
|
449
|
+
let h = this.a5.a7();
|
|
450
|
+
let i = this.a5.a5();
|
|
451
|
+
let j = this.a5.a6();
|
|
339
452
|
e.t = g;
|
|
340
453
|
e.w = h;
|
|
341
454
|
e.u = i;
|
|
@@ -347,18 +460,18 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
347
460
|
e.y = c;
|
|
348
461
|
e.x = d;
|
|
349
462
|
e.aa = b;
|
|
350
|
-
e.g = this.
|
|
351
|
-
e.p = this.
|
|
463
|
+
e.g = this.mq();
|
|
464
|
+
e.p = this.m1;
|
|
352
465
|
e.o = this.ey();
|
|
353
|
-
e.q = this.
|
|
466
|
+
e.q = this.m2;
|
|
354
467
|
e.s = this.f0;
|
|
355
|
-
let k = this.
|
|
356
|
-
let l = this.
|
|
357
|
-
let m = 0.5 * this.
|
|
358
|
-
let n = 0.5 * this.
|
|
468
|
+
let k = this.mo.f(b);
|
|
469
|
+
let l = this.mo.g(b);
|
|
470
|
+
let m = 0.5 * this.mn.no;
|
|
471
|
+
let n = 0.5 * this.mn.nn;
|
|
359
472
|
let o = k;
|
|
360
473
|
let p = l;
|
|
361
|
-
let q = this.
|
|
474
|
+
let q = this.mn.nt();
|
|
362
475
|
if (isNaN_(q) || isInfinity(q)) {
|
|
363
476
|
return null;
|
|
364
477
|
}
|
|
@@ -369,7 +482,7 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
369
482
|
o = n;
|
|
370
483
|
}
|
|
371
484
|
let r = a.width;
|
|
372
|
-
this.
|
|
485
|
+
this.mo.k(b, e, 0, this.kr.count, this.ch, runOn(this, this.getUnscaledAngle), r);
|
|
373
486
|
let s = { $type: Point_$type, x: 0.5, y: 0.5 };
|
|
374
487
|
e.center = s;
|
|
375
488
|
e.maxLength = p;
|
|
@@ -385,7 +498,7 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
385
498
|
return e;
|
|
386
499
|
}
|
|
387
500
|
getMinMaxAngle(a, b, c) {
|
|
388
|
-
let d = this.
|
|
501
|
+
let d = this.mo.l(a, b, c);
|
|
389
502
|
b = d.p1;
|
|
390
503
|
c = d.p2;
|
|
391
504
|
return {
|
|
@@ -397,9 +510,9 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
397
510
|
super.ac();
|
|
398
511
|
this.h8(false);
|
|
399
512
|
}
|
|
400
|
-
get
|
|
401
|
-
if (this.
|
|
402
|
-
return this.
|
|
513
|
+
get mn() {
|
|
514
|
+
if (this.mm != null) {
|
|
515
|
+
return this.mm;
|
|
403
516
|
}
|
|
404
517
|
let a = typeCast(XamDataChart.$, this.bi);
|
|
405
518
|
if (a != null) {
|
|
@@ -409,13 +522,21 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
409
522
|
}
|
|
410
523
|
}
|
|
411
524
|
}
|
|
412
|
-
return this.
|
|
525
|
+
return this.mm;
|
|
413
526
|
}
|
|
414
|
-
set
|
|
415
|
-
this.
|
|
527
|
+
set mn(a) {
|
|
528
|
+
this.mm = a;
|
|
416
529
|
}
|
|
417
530
|
ak() {
|
|
418
|
-
return this.
|
|
531
|
+
return this.mn;
|
|
532
|
+
}
|
|
533
|
+
mh() {
|
|
534
|
+
if (this.mg == 0) {
|
|
535
|
+
return 1;
|
|
536
|
+
}
|
|
537
|
+
else {
|
|
538
|
+
return this.mg;
|
|
539
|
+
}
|
|
419
540
|
}
|
|
420
541
|
getCategorySize(a, b, c) {
|
|
421
542
|
return 2 * Math.PI / this.lf;
|
|
@@ -444,7 +565,7 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
444
565
|
}
|
|
445
566
|
return this.getCategorySize(b, c, d) * e;
|
|
446
567
|
}
|
|
447
|
-
|
|
568
|
+
m0(a) {
|
|
448
569
|
let b = 0.5;
|
|
449
570
|
if (this.lh > 1) {
|
|
450
571
|
let c = this.lb(Rect.empty, Rect.empty, Rect.empty);
|
|
@@ -465,16 +586,16 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
465
586
|
let c = !b.isEmpty ? this.kd : Rect.empty;
|
|
466
587
|
let d = this.j8();
|
|
467
588
|
let e = this.j7();
|
|
468
|
-
let f = this.
|
|
589
|
+
let f = this.ml.c(a, c, b, d, e);
|
|
469
590
|
if (f != null) {
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
591
|
+
this.mv = f.f.m;
|
|
592
|
+
this.mw = f.f.l;
|
|
472
593
|
}
|
|
473
594
|
}
|
|
474
|
-
|
|
595
|
+
mz(a, b) {
|
|
475
596
|
let c;
|
|
476
597
|
let d;
|
|
477
|
-
let e = this.
|
|
598
|
+
let e = this.mo.l(b, c, d);
|
|
478
599
|
c = e.p1;
|
|
479
600
|
d = e.p2;
|
|
480
601
|
if (c == 0) {
|
|
@@ -491,10 +612,10 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
491
612
|
}
|
|
492
613
|
return f;
|
|
493
614
|
}
|
|
494
|
-
|
|
615
|
+
my(a, b) {
|
|
495
616
|
let c;
|
|
496
617
|
let d;
|
|
497
|
-
let e = this.
|
|
618
|
+
let e = this.mo.l(b, c, d);
|
|
498
619
|
c = e.p1;
|
|
499
620
|
d = e.p2;
|
|
500
621
|
if (d > Math.PI * 2) {
|
|
@@ -520,13 +641,13 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
520
641
|
if (this.ci) {
|
|
521
642
|
c = 1 - c;
|
|
522
643
|
}
|
|
523
|
-
return (c * 2 * Math.PI) + this.
|
|
644
|
+
return (c * 2 * Math.PI) + this.mu;
|
|
524
645
|
}
|
|
525
646
|
getUnscaledAngle(a) {
|
|
526
|
-
if (a < this.
|
|
647
|
+
if (a < this.mu) {
|
|
527
648
|
a += 2 * Math.PI;
|
|
528
649
|
}
|
|
529
|
-
let b = (a - this.
|
|
650
|
+
let b = (a - this.mu) / (2 * Math.PI);
|
|
530
651
|
if (this.ch) {
|
|
531
652
|
b = 1 - b;
|
|
532
653
|
}
|
|
@@ -544,22 +665,22 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
544
665
|
switch (b) {
|
|
545
666
|
case "CrossingAxis":
|
|
546
667
|
let f = typeCast(NumericRadiusAxis.$, d);
|
|
547
|
-
this.
|
|
668
|
+
this.nf(f);
|
|
548
669
|
if (f != null) {
|
|
549
670
|
f.n3(this);
|
|
550
671
|
}
|
|
551
672
|
this.cq = true;
|
|
552
673
|
this.h8(false);
|
|
553
674
|
break;
|
|
554
|
-
case CategoryAngleAxis.$$p[
|
|
555
|
-
this.
|
|
556
|
-
while (this.
|
|
557
|
-
this.
|
|
675
|
+
case CategoryAngleAxis.$$p[1]:
|
|
676
|
+
this.mu = this.m4;
|
|
677
|
+
while (this.mu < 0) {
|
|
678
|
+
this.mu += 360;
|
|
558
679
|
}
|
|
559
|
-
while (this.
|
|
560
|
-
this.
|
|
680
|
+
while (this.mu >= 360) {
|
|
681
|
+
this.mu -= 360;
|
|
561
682
|
}
|
|
562
|
-
this.
|
|
683
|
+
this.mu = (this.mu * Math.PI) / 180;
|
|
563
684
|
this.cq = true;
|
|
564
685
|
this.h8(false);
|
|
565
686
|
for (let g of fromEnum(this.de)) {
|
|
@@ -586,56 +707,56 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
586
707
|
}
|
|
587
708
|
break;
|
|
588
709
|
case "LabelSettings":
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
710
|
+
this.ml = this.mk();
|
|
711
|
+
this.nd();
|
|
591
712
|
this.cq = true;
|
|
592
713
|
this.h8(false);
|
|
593
714
|
break;
|
|
594
715
|
}
|
|
595
716
|
}
|
|
596
|
-
|
|
597
|
-
this.
|
|
717
|
+
nd() {
|
|
718
|
+
this.mt = NaN;
|
|
598
719
|
}
|
|
599
|
-
|
|
600
|
-
this.
|
|
720
|
+
nf(a) {
|
|
721
|
+
this.mn = a;
|
|
601
722
|
}
|
|
602
|
-
get
|
|
603
|
-
return this.c(CategoryAngleAxis.
|
|
723
|
+
get m1() {
|
|
724
|
+
return this.c(CategoryAngleAxis.ng);
|
|
604
725
|
}
|
|
605
|
-
set
|
|
606
|
-
this.h(CategoryAngleAxis.
|
|
726
|
+
set m1(a) {
|
|
727
|
+
this.h(CategoryAngleAxis.ng, a);
|
|
607
728
|
}
|
|
608
|
-
get
|
|
609
|
-
return this.
|
|
729
|
+
get mv() {
|
|
730
|
+
return this.mr;
|
|
610
731
|
}
|
|
611
|
-
set
|
|
612
|
-
if (this.
|
|
613
|
-
let b = this.
|
|
614
|
-
this.
|
|
615
|
-
this.h2("ActualInterval", b, this.
|
|
732
|
+
set mv(a) {
|
|
733
|
+
if (this.mv != a) {
|
|
734
|
+
let b = this.mr;
|
|
735
|
+
this.mr = a;
|
|
736
|
+
this.h2("ActualInterval", b, this.mv);
|
|
616
737
|
}
|
|
617
738
|
}
|
|
618
739
|
ev() {
|
|
619
|
-
return this.
|
|
740
|
+
return this.mv;
|
|
620
741
|
}
|
|
621
|
-
get
|
|
622
|
-
return this.c(CategoryAngleAxis.
|
|
742
|
+
get m2() {
|
|
743
|
+
return this.c(CategoryAngleAxis.ni);
|
|
623
744
|
}
|
|
624
|
-
set
|
|
625
|
-
this.h(CategoryAngleAxis.
|
|
745
|
+
set m2(a) {
|
|
746
|
+
this.h(CategoryAngleAxis.ni, a);
|
|
626
747
|
}
|
|
627
|
-
get
|
|
628
|
-
return this.
|
|
748
|
+
get mw() {
|
|
749
|
+
return this.ms;
|
|
629
750
|
}
|
|
630
|
-
set
|
|
631
|
-
if (this.
|
|
632
|
-
let b = this.
|
|
633
|
-
this.
|
|
634
|
-
this.h2("ActualMinorInterval", b, this.
|
|
751
|
+
set mw(a) {
|
|
752
|
+
if (this.mw != a) {
|
|
753
|
+
let b = this.ms;
|
|
754
|
+
this.ms = a;
|
|
755
|
+
this.h2("ActualMinorInterval", b, this.mw);
|
|
635
756
|
}
|
|
636
757
|
}
|
|
637
|
-
|
|
638
|
-
return !isNaN_(this.
|
|
758
|
+
mq() {
|
|
759
|
+
return !isNaN_(this.m1);
|
|
639
760
|
}
|
|
640
761
|
get_a2() {
|
|
641
762
|
return 2;
|
|
@@ -651,22 +772,22 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
651
772
|
return false;
|
|
652
773
|
}
|
|
653
774
|
let a = this.kr.count;
|
|
654
|
-
if (a != this.
|
|
655
|
-
let b = new AxisRangeChangedEventArgs(0, 1, 1, this.
|
|
656
|
-
this.
|
|
775
|
+
if (a != this.m6) {
|
|
776
|
+
let b = new AxisRangeChangedEventArgs(0, 1, 1, this.m6, a);
|
|
777
|
+
this.m6 = a;
|
|
657
778
|
this.h3(b);
|
|
658
779
|
return true;
|
|
659
780
|
}
|
|
660
781
|
return false;
|
|
661
782
|
}
|
|
662
|
-
get
|
|
663
|
-
return this.
|
|
783
|
+
get m6() {
|
|
784
|
+
return this.m5;
|
|
664
785
|
}
|
|
665
|
-
set
|
|
666
|
-
this.
|
|
786
|
+
set m6(a) {
|
|
787
|
+
this.m5 = a;
|
|
667
788
|
}
|
|
668
789
|
j5(a, b, c, d = null, e = null) {
|
|
669
|
-
let f = typeCast(RadialAxisRenderingParameters.$, this.
|
|
790
|
+
let f = typeCast(RadialAxisRenderingParameters.$, this.ml.d(c, b, d, e));
|
|
670
791
|
if (f == null) {
|
|
671
792
|
return null;
|
|
672
793
|
}
|
|
@@ -711,15 +832,15 @@ export let CategoryAngleAxis = /*@__PURE__*/ (() => {
|
|
|
711
832
|
}
|
|
712
833
|
}
|
|
713
834
|
CategoryAngleAxis.$t = /*@__PURE__*/ markType(CategoryAngleAxis, 'CategoryAngleAxis', CategoryAxisBase.$, [IAngleScaler_$type]);
|
|
714
|
-
CategoryAngleAxis.
|
|
835
|
+
CategoryAngleAxis.ng = /*@__PURE__*/ DependencyProperty.i("Interval", Number_$type, CategoryAngleAxis.$, /*@__PURE__*/ new PropertyMetadata(2, NaN, (a, b) => {
|
|
715
836
|
a.h2("Interval", b.oldValue, b.newValue);
|
|
716
837
|
a.h8(false);
|
|
717
838
|
}));
|
|
718
|
-
CategoryAngleAxis.
|
|
839
|
+
CategoryAngleAxis.ni = /*@__PURE__*/ DependencyProperty.i("MinorInterval", Number_$type, CategoryAngleAxis.$, /*@__PURE__*/ new PropertyMetadata(2, NaN, (a, b) => {
|
|
719
840
|
(typeCast(CategoryAngleAxis.$, a)).h2("MinorInterval", b.oldValue, b.newValue);
|
|
720
841
|
(typeCast(CategoryAngleAxis.$, a)).h8(false);
|
|
721
842
|
}));
|
|
722
|
-
CategoryAngleAxis.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, CategoryAngleAxis, 'h2', ['StartAngleOffset:
|
|
843
|
+
CategoryAngleAxis.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, CategoryAngleAxis, 'h2', ['LabelMode:mg:nh', [AxisAngleLabelMode_$type, /*@__PURE__*/ enumGetBox(AxisAngleLabelMode_$type, 0)], 'StartAngleOffset:m4:nj', [1, 0]]);
|
|
723
844
|
return CategoryAngleAxis;
|
|
724
845
|
})();
|
|
725
846
|
/**
|
|
@@ -732,107 +853,107 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
732
853
|
}
|
|
733
854
|
hs(a) {
|
|
734
855
|
super.hs(a);
|
|
735
|
-
this.
|
|
856
|
+
this.nj = a;
|
|
736
857
|
}
|
|
737
858
|
get_b9() {
|
|
738
859
|
return true;
|
|
739
860
|
}
|
|
740
861
|
constructor() {
|
|
741
862
|
super();
|
|
863
|
+
this.nm = null;
|
|
864
|
+
this.nn = false;
|
|
865
|
+
this.no = NaN;
|
|
866
|
+
this.np = 0;
|
|
742
867
|
this.nk = null;
|
|
743
|
-
this.nl = false;
|
|
744
|
-
this.nm = NaN;
|
|
745
|
-
this.nn = 0;
|
|
746
|
-
this.ni = null;
|
|
747
868
|
this.ab = NumericAngleAxis.$;
|
|
748
|
-
this.
|
|
869
|
+
this.nm = new PolarAxisRenderingManager();
|
|
749
870
|
this.k0 = this.ky();
|
|
750
871
|
}
|
|
751
872
|
av() {
|
|
752
873
|
let a = new AngleAxisLabelPanel();
|
|
753
|
-
a.
|
|
754
|
-
let
|
|
755
|
-
let
|
|
756
|
-
return this.
|
|
874
|
+
a.di = (b, c, d) => {
|
|
875
|
+
let e = this.bi != null ? this.bi.tn : Rect.empty;
|
|
876
|
+
let f = !e.isEmpty ? this.kd : Rect.empty;
|
|
877
|
+
return this.n1(b, { $type: Point_$type, x: 0.5, y: 0.5 }, e, f, this.aw.bh);
|
|
757
878
|
};
|
|
758
879
|
return a;
|
|
759
880
|
}
|
|
760
|
-
|
|
761
|
-
if (this.
|
|
881
|
+
nq() {
|
|
882
|
+
if (this.nl == null) {
|
|
762
883
|
return 0;
|
|
763
884
|
}
|
|
764
885
|
if (!this.b5()) {
|
|
765
|
-
return this.
|
|
886
|
+
return this.nl.nt();
|
|
766
887
|
}
|
|
767
888
|
else {
|
|
768
|
-
return this.
|
|
889
|
+
return this.nl.nu((this.fv));
|
|
769
890
|
}
|
|
770
891
|
}
|
|
771
|
-
|
|
892
|
+
ns(a) {
|
|
772
893
|
return Math.round(a * Math.pow(10, 10)) / Math.pow(10, 10);
|
|
773
894
|
}
|
|
774
895
|
ky() {
|
|
775
896
|
let a = super.ky();
|
|
776
897
|
a.b.c = (b) => {
|
|
777
|
-
if ((this.az == null || this.az.visibility == 0) && this.
|
|
898
|
+
if ((this.az == null || this.az.visibility == 0) && this.nl != null && this.no != b) {
|
|
778
899
|
let c = typeCast(XamDataChart.$, this.bi);
|
|
779
900
|
if (c == null) {
|
|
780
901
|
return;
|
|
781
902
|
}
|
|
782
|
-
this.
|
|
903
|
+
this.no = b;
|
|
783
904
|
this.aw.bg = b;
|
|
784
905
|
c.mg();
|
|
785
906
|
for (let d of fromEnum(c.axes)) {
|
|
786
907
|
if (d != this && typeCast(AngleAxisLabelPanel.$, d.aw) !== null) {
|
|
787
|
-
d.a5.
|
|
908
|
+
d.a5.ai();
|
|
788
909
|
}
|
|
789
910
|
}
|
|
790
911
|
}
|
|
791
912
|
};
|
|
792
913
|
a.e = (b) => {
|
|
793
|
-
b.n = this.
|
|
914
|
+
b.n = this.nq();
|
|
794
915
|
b.r = b.n;
|
|
795
916
|
};
|
|
796
917
|
a.j = (b) => {
|
|
797
918
|
let c = typeCast(PolarAxisRenderingParameters.$, b);
|
|
798
919
|
if (c.e == c.k._inner[0]) {
|
|
799
|
-
this.
|
|
920
|
+
this.nm.i(b.t, b.n, b.z, b.aa, c.center, c.minAngle, c.maxAngle);
|
|
800
921
|
}
|
|
801
922
|
};
|
|
802
923
|
a.k = (b, c, d) => {
|
|
803
924
|
let e = typeCast(PolarAxisRenderingParameters.$, b);
|
|
804
|
-
this.
|
|
925
|
+
this.nm.m(c, d, b.z, b.aa, e.minLength, e.maxLength, e.center);
|
|
805
926
|
};
|
|
806
927
|
a.l = (b, c, d, e) => {
|
|
807
928
|
let f = typeCast(PolarAxisRenderingParameters.$, b);
|
|
808
|
-
this.
|
|
929
|
+
this.nm.n(c, d, e, f.z, b.aa, f.minLength, f.maxLength, f.center);
|
|
809
930
|
};
|
|
810
931
|
a.d = (b, c, d, e) => {
|
|
811
932
|
let f = typeCast(PolarAxisRenderingParameters.$, this.k1(b, c, d, e));
|
|
812
933
|
return f;
|
|
813
934
|
};
|
|
814
935
|
a.v = () => {
|
|
815
|
-
if (!this.
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
936
|
+
if (!this.nn) {
|
|
937
|
+
this.nn = true;
|
|
938
|
+
this.nl.c1();
|
|
939
|
+
this.nn = false;
|
|
819
940
|
}
|
|
820
941
|
};
|
|
821
942
|
a.m = (b, c) => this.getScaledAngle(c);
|
|
822
|
-
a.o = (b, c) => !c.isEmpty && !b.isEmpty && this.
|
|
943
|
+
a.o = (b, c) => !c.isEmpty && !b.isEmpty && this.nl != null;
|
|
823
944
|
a.q = (b, c) => {
|
|
824
|
-
if (this.
|
|
945
|
+
if (this.ns(c - this.np) < 0) {
|
|
825
946
|
return false;
|
|
826
947
|
}
|
|
827
|
-
if (this.
|
|
948
|
+
if (this.ns(c - this.np - (2 * Math.PI)) > 0) {
|
|
828
949
|
return false;
|
|
829
950
|
}
|
|
830
951
|
return true;
|
|
831
952
|
};
|
|
832
953
|
a.p = (b, c, d) => {
|
|
833
954
|
let e = typeCast(PolarAxisRenderingParameters.$, b);
|
|
834
|
-
let f = this.
|
|
835
|
-
let g = this.
|
|
955
|
+
let f = this.n1(this.getScaledAngle(e.l), e.center, b.aa, b.z, 0);
|
|
956
|
+
let g = this.n1(c, e.center, b.aa, b.z, 0);
|
|
836
957
|
if (d && MathUtil.g(f.x - g.x, f.y - g.y) < 2) {
|
|
837
958
|
return false;
|
|
838
959
|
}
|
|
@@ -852,8 +973,8 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
852
973
|
};
|
|
853
974
|
return a;
|
|
854
975
|
}
|
|
855
|
-
|
|
856
|
-
let f = this.
|
|
976
|
+
n1(a, b, c, d, e) {
|
|
977
|
+
let f = this.nq();
|
|
857
978
|
let g = ViewportUtils.b(e, c, d);
|
|
858
979
|
if (this.az != null && (this.az.c == 5 || this.az.c == 1)) {
|
|
859
980
|
g *= -1;
|
|
@@ -878,7 +999,7 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
878
999
|
if (c) {
|
|
879
1000
|
d = 1 - d;
|
|
880
1001
|
}
|
|
881
|
-
return (d * 2 * Math.PI) + this.
|
|
1002
|
+
return (d * 2 * Math.PI) + this.np;
|
|
882
1003
|
}
|
|
883
1004
|
getScaledAngle(a) {
|
|
884
1005
|
return this.getScaledAngle1(a, this.lj, this.ci);
|
|
@@ -887,7 +1008,7 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
887
1008
|
return this.getUnscaledAngle(a);
|
|
888
1009
|
}
|
|
889
1010
|
getUnscaledAngle(a) {
|
|
890
|
-
let b = (a - this.
|
|
1011
|
+
let b = (a - this.np) / (2 * Math.PI);
|
|
891
1012
|
if (this.ch) {
|
|
892
1013
|
b = 1 - b;
|
|
893
1014
|
}
|
|
@@ -898,27 +1019,35 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
898
1019
|
return this.lx + b * (this.lw - this.lx);
|
|
899
1020
|
}
|
|
900
1021
|
}
|
|
1022
|
+
ni() {
|
|
1023
|
+
if (this.nh == 0) {
|
|
1024
|
+
return 1;
|
|
1025
|
+
}
|
|
1026
|
+
else {
|
|
1027
|
+
return this.nh;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
901
1030
|
hw(a, b, c, d) {
|
|
902
1031
|
super.hw(a, b, c, d);
|
|
903
1032
|
let e = typeCast(XamDataChart.$, this.bi);
|
|
904
1033
|
switch (b) {
|
|
905
1034
|
case "CrossingAxis":
|
|
906
1035
|
let f = typeCast(NumericRadiusAxis.$, d);
|
|
907
|
-
this.
|
|
1036
|
+
this.ny(f);
|
|
908
1037
|
if (f != null) {
|
|
909
1038
|
f.n3(this);
|
|
910
1039
|
}
|
|
911
1040
|
this.h8(false);
|
|
912
1041
|
break;
|
|
913
|
-
case NumericAngleAxis.$$p[
|
|
914
|
-
this.
|
|
915
|
-
while (this.
|
|
916
|
-
this.
|
|
1042
|
+
case NumericAngleAxis.$$p[1]:
|
|
1043
|
+
this.np = this.nt;
|
|
1044
|
+
while (this.np < 0) {
|
|
1045
|
+
this.np += 360;
|
|
917
1046
|
}
|
|
918
|
-
while (this.
|
|
919
|
-
this.
|
|
1047
|
+
while (this.np >= 360) {
|
|
1048
|
+
this.np -= 360;
|
|
920
1049
|
}
|
|
921
|
-
this.
|
|
1050
|
+
this.np = (this.nt * Math.PI) / 180;
|
|
922
1051
|
this.h8(false);
|
|
923
1052
|
for (let g of fromEnum(this.db())) {
|
|
924
1053
|
g.pq(false);
|
|
@@ -943,27 +1072,27 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
943
1072
|
break;
|
|
944
1073
|
case "LabelSettings":
|
|
945
1074
|
this.k0 = this.ky();
|
|
946
|
-
this.
|
|
1075
|
+
this.nw();
|
|
947
1076
|
this.cq = true;
|
|
948
1077
|
this.h8(false);
|
|
949
1078
|
break;
|
|
950
1079
|
}
|
|
951
1080
|
}
|
|
952
|
-
|
|
953
|
-
this.
|
|
1081
|
+
nw() {
|
|
1082
|
+
this.no = NaN;
|
|
954
1083
|
}
|
|
955
1084
|
k2() {
|
|
956
1085
|
return new PolarAxisRenderingParameters();
|
|
957
1086
|
}
|
|
958
1087
|
k1(a, b, c, d) {
|
|
959
1088
|
let e = typeCast(PolarAxisRenderingParameters.$, super.k1(a, b, c, d));
|
|
960
|
-
let f = this.
|
|
961
|
-
let g = this.
|
|
962
|
-
let h = 0.5 * this.
|
|
963
|
-
let i = 0.5 * this.
|
|
1089
|
+
let f = this.nm.f(b);
|
|
1090
|
+
let g = this.nm.g(b);
|
|
1091
|
+
let h = 0.5 * this.nl.no;
|
|
1092
|
+
let i = 0.5 * this.nl.nn;
|
|
964
1093
|
let j = f;
|
|
965
1094
|
let k = g;
|
|
966
|
-
let l = this.
|
|
1095
|
+
let l = this.nl.nt();
|
|
967
1096
|
if (isNaN_(l) || isInfinity(l)) {
|
|
968
1097
|
return null;
|
|
969
1098
|
}
|
|
@@ -974,7 +1103,7 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
974
1103
|
j = i;
|
|
975
1104
|
}
|
|
976
1105
|
let m = a.width;
|
|
977
|
-
this.
|
|
1106
|
+
this.nm.k(b, e, this.lx, this.lw, this.ch, runOn(this, this.getUnscaledAngle), m);
|
|
978
1107
|
let n = { $type: Point_$type, x: 0.5, y: 0.5 };
|
|
979
1108
|
e.center = n;
|
|
980
1109
|
e.maxLength = k;
|
|
@@ -983,7 +1112,7 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
983
1112
|
return e;
|
|
984
1113
|
}
|
|
985
1114
|
getMinMaxAngle(a, b, c) {
|
|
986
|
-
let d = this.
|
|
1115
|
+
let d = this.nm.l(a, b, c);
|
|
987
1116
|
b = d.p1;
|
|
988
1117
|
c = d.p2;
|
|
989
1118
|
return {
|
|
@@ -1003,9 +1132,9 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
1003
1132
|
this.ly = f.f.l;
|
|
1004
1133
|
}
|
|
1005
1134
|
}
|
|
1006
|
-
get
|
|
1007
|
-
if (this.
|
|
1008
|
-
return this.
|
|
1135
|
+
get nl() {
|
|
1136
|
+
if (this.nk != null) {
|
|
1137
|
+
return this.nk;
|
|
1009
1138
|
}
|
|
1010
1139
|
let a = typeCast(XamDataChart.$, this.bi);
|
|
1011
1140
|
if (a != null) {
|
|
@@ -1015,16 +1144,16 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
1015
1144
|
}
|
|
1016
1145
|
}
|
|
1017
1146
|
}
|
|
1018
|
-
return this.
|
|
1147
|
+
return this.nk;
|
|
1019
1148
|
}
|
|
1020
|
-
set
|
|
1021
|
-
this.
|
|
1149
|
+
set nl(a) {
|
|
1150
|
+
this.nk = a;
|
|
1022
1151
|
}
|
|
1023
1152
|
ak() {
|
|
1024
|
-
return this.
|
|
1153
|
+
return this.nl;
|
|
1025
1154
|
}
|
|
1026
|
-
|
|
1027
|
-
this.
|
|
1155
|
+
ny(a) {
|
|
1156
|
+
this.nl = a;
|
|
1028
1157
|
}
|
|
1029
1158
|
ip(a, b) {
|
|
1030
1159
|
super.ip(a, b);
|
|
@@ -1039,7 +1168,7 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
1039
1168
|
return this.get_a2();
|
|
1040
1169
|
}
|
|
1041
1170
|
j5(a, b, c, d = null, e = null) {
|
|
1042
|
-
if (this.
|
|
1171
|
+
if (this.nl == null) {
|
|
1043
1172
|
return null;
|
|
1044
1173
|
}
|
|
1045
1174
|
let f = typeCast(PolarAxisRenderingParameters.$, this.k1(c, b, d, e));
|
|
@@ -1063,7 +1192,7 @@ export let NumericAngleAxis = /*@__PURE__*/ (() => {
|
|
|
1063
1192
|
}
|
|
1064
1193
|
}
|
|
1065
1194
|
NumericAngleAxis.$t = /*@__PURE__*/ markType(NumericAngleAxis, 'NumericAngleAxis', NumericAxisBase.$, [IAngleScaler_$type]);
|
|
1066
|
-
NumericAngleAxis.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, NumericAngleAxis, 'h2', ['StartAngleOffset:
|
|
1195
|
+
NumericAngleAxis.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, NumericAngleAxis, 'h2', ['LabelMode:nh:nz', [AxisAngleLabelMode_$type, /*@__PURE__*/ enumGetBox(AxisAngleLabelMode_$type, 0)], 'StartAngleOffset:nt:n0', [1, 0]]);
|
|
1067
1196
|
return NumericAngleAxis;
|
|
1068
1197
|
})();
|
|
1069
1198
|
/**
|
|
@@ -1320,11 +1449,11 @@ export let NumericRadiusAxis = /*@__PURE__*/ (() => {
|
|
|
1320
1449
|
}
|
|
1321
1450
|
if (g != null) {
|
|
1322
1451
|
this.n3(g);
|
|
1323
|
-
g.
|
|
1452
|
+
g.ny(this);
|
|
1324
1453
|
}
|
|
1325
1454
|
if (h != null) {
|
|
1326
1455
|
this.n3(h);
|
|
1327
|
-
h.
|
|
1456
|
+
h.nf(this);
|
|
1328
1457
|
}
|
|
1329
1458
|
this.cq = true;
|
|
1330
1459
|
this.h8(false);
|
|
@@ -1599,31 +1728,67 @@ export let AngleAxisLabelPanelView = /*@__PURE__*/ (() => {
|
|
|
1599
1728
|
super.an();
|
|
1600
1729
|
this.az.da = true;
|
|
1601
1730
|
}
|
|
1602
|
-
|
|
1731
|
+
a1(a, b) {
|
|
1732
|
+
this.az.df = -1.7976931348623157E+308;
|
|
1733
|
+
this.az.dc = -1.7976931348623157E+308;
|
|
1603
1734
|
this.az.de = -1.7976931348623157E+308;
|
|
1604
|
-
this.az.db = -1.7976931348623157E+308;
|
|
1605
1735
|
this.az.dd = -1.7976931348623157E+308;
|
|
1606
|
-
this.az.dc = -1.7976931348623157E+308;
|
|
1607
1736
|
for (let c = 0; c < this.a.bb.count; c++) {
|
|
1608
1737
|
let d = this.a.bb._inner[c];
|
|
1609
1738
|
let e = this.a.ba._inner[c];
|
|
1610
1739
|
let f = e.a;
|
|
1611
|
-
let g = this.az.
|
|
1740
|
+
let g = this.az.di(e.c, NaN, NaN);
|
|
1612
1741
|
let h = this.m(d);
|
|
1613
1742
|
let i = this.l(d);
|
|
1614
1743
|
let j = h + this.p() + this.q();
|
|
1615
1744
|
let k = i + this.r() + this.o();
|
|
1616
1745
|
let l = g.x - j / 2;
|
|
1617
1746
|
let m = g.y - k / 2;
|
|
1618
|
-
this.az.
|
|
1619
|
-
this.az.
|
|
1620
|
-
this.az.
|
|
1621
|
-
this.az.
|
|
1747
|
+
this.az.de = Math.max(h, this.az.de);
|
|
1748
|
+
this.az.dd = Math.max(i, this.az.dd);
|
|
1749
|
+
this.az.df = Math.max(j, this.az.df);
|
|
1750
|
+
this.az.dc = Math.max(k, this.az.dc);
|
|
1622
1751
|
let n = new Rect(0, l, m, j, k);
|
|
1623
1752
|
a.add(n);
|
|
1624
1753
|
b.add(f);
|
|
1625
1754
|
}
|
|
1626
1755
|
}
|
|
1756
|
+
a0(a, b) {
|
|
1757
|
+
this.az.db = -1.7976931348623157E+308;
|
|
1758
|
+
let c = 0;
|
|
1759
|
+
if (typeCast(CategoryAngleAxis.$, this.az.ad) !== null) {
|
|
1760
|
+
c = this.az.ad.mx() * this.az.ad.kd.width;
|
|
1761
|
+
}
|
|
1762
|
+
else if (typeCast(NumericAngleAxis.$, this.az.ad) !== null) {
|
|
1763
|
+
c = this.az.ad.nq() * this.az.ad.kd.width;
|
|
1764
|
+
}
|
|
1765
|
+
let d = { $type: Point_$type, x: this.az.ad.kd.width * 0.5, y: this.az.ad.kd.width * 0.5 };
|
|
1766
|
+
for (let e = 0; e < this.a.bb.count; e++) {
|
|
1767
|
+
let f = this.a.bb._inner[e];
|
|
1768
|
+
let g = this.a.ba._inner[e];
|
|
1769
|
+
let h = g.a;
|
|
1770
|
+
let i = this.m(f);
|
|
1771
|
+
let j = this.l(f);
|
|
1772
|
+
let k = i + this.p() + this.q();
|
|
1773
|
+
let l = j + this.r() + this.o();
|
|
1774
|
+
let m = this.az.di(g.c, k, l);
|
|
1775
|
+
let n = m.x - k / 2;
|
|
1776
|
+
let o = m.y - l / 2;
|
|
1777
|
+
let p = new Rect(0, n, o, i, j);
|
|
1778
|
+
if (!h) {
|
|
1779
|
+
let q = Math.sqrt((p.left - d.x) * (p.left - d.x) + (p.top - d.y) * (p.top - d.y));
|
|
1780
|
+
let r = Math.sqrt((p.right - d.x) * (p.right - d.x) + (p.top - d.y) * (p.top - d.y));
|
|
1781
|
+
let s = Math.sqrt((p.left - d.x) * (p.left - d.x) + (p.bottom - d.y) * (p.bottom - d.y));
|
|
1782
|
+
let t = Math.sqrt((p.right - d.x) * (p.right - d.x) + (p.bottom - d.y) * (p.bottom - d.y));
|
|
1783
|
+
this.az.db = Math.max(q - c, this.az.db);
|
|
1784
|
+
this.az.db = Math.max(r - c, this.az.db);
|
|
1785
|
+
this.az.db = Math.max(s - c, this.az.db);
|
|
1786
|
+
this.az.db = Math.max(t - c, this.az.db);
|
|
1787
|
+
}
|
|
1788
|
+
a.add(p);
|
|
1789
|
+
b.add(h);
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1627
1792
|
o() {
|
|
1628
1793
|
return 0;
|
|
1629
1794
|
}
|
|
@@ -1647,11 +1812,11 @@ export let CategoryAngleAxisView = /*@__PURE__*/ (() => {
|
|
|
1647
1812
|
class CategoryAngleAxisView extends CategoryAxisBaseView {
|
|
1648
1813
|
constructor(a) {
|
|
1649
1814
|
super(a);
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1815
|
+
this.bm = null;
|
|
1816
|
+
this.bm = a;
|
|
1652
1817
|
}
|
|
1653
|
-
|
|
1654
|
-
super.
|
|
1818
|
+
al() {
|
|
1819
|
+
super.al();
|
|
1655
1820
|
this.a.jw = AxisDefaults.h;
|
|
1656
1821
|
this.a.jz = AxisDefaults.g;
|
|
1657
1822
|
}
|
|
@@ -1666,11 +1831,11 @@ export let NumericAngleAxisView = /*@__PURE__*/ (() => {
|
|
|
1666
1831
|
class NumericAngleAxisView extends NumericAxisBaseView {
|
|
1667
1832
|
constructor(a) {
|
|
1668
1833
|
super(a);
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1834
|
+
this.bm = null;
|
|
1835
|
+
this.bm = a;
|
|
1671
1836
|
}
|
|
1672
|
-
|
|
1673
|
-
super.
|
|
1837
|
+
al() {
|
|
1838
|
+
super.al();
|
|
1674
1839
|
this.a.jw = AxisDefaults.h;
|
|
1675
1840
|
this.a.jz = AxisDefaults.g;
|
|
1676
1841
|
}
|
|
@@ -1685,11 +1850,11 @@ export let NumericRadiusAxisView = /*@__PURE__*/ (() => {
|
|
|
1685
1850
|
class NumericRadiusAxisView extends NumericAxisBaseView {
|
|
1686
1851
|
constructor(a) {
|
|
1687
1852
|
super(a);
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1853
|
+
this.bm = null;
|
|
1854
|
+
this.bm = a;
|
|
1690
1855
|
}
|
|
1691
|
-
|
|
1692
|
-
super.
|
|
1856
|
+
al() {
|
|
1857
|
+
super.al();
|
|
1693
1858
|
this.a.jw = AxisDefaults.h;
|
|
1694
1859
|
this.a.jz = AxisDefaults.g;
|
|
1695
1860
|
}
|