igniteui-webcomponents-charts 5.0.0 → 5.0.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 +1088 -948
- package/bundles/igniteui-webcomponents-charts.umd.min.js +1 -1
- package/esm2015/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
- package/esm2015/lib/CalloutLayer_combined.js +1 -1
- package/esm2015/lib/CategoryBucketCalculator_combined.js +50 -50
- package/esm2015/lib/DataLegendContent_combined.js +7 -0
- package/esm2015/lib/DataLegendVisualData_combined.js +24 -14
- package/esm2015/lib/DataPieBaseChart.js +311 -298
- package/esm2015/lib/DataPieChart.js +73 -73
- package/esm2015/lib/FinancialLegend_combined.js +3 -3
- package/esm2015/lib/ItemLegend_combined.js +26 -25
- package/esm2015/lib/LegendBaseViewManager_combined.js +118 -100
- package/esm2015/lib/Legend_combined.js +13 -13
- package/esm2015/lib/PieChartViewManager_combined.js +11 -1
- package/esm2015/lib/PolarBase_combined.js +24 -24
- package/esm2015/lib/RadialBucketCalculator_combined.js +32 -32
- package/esm2015/lib/RadialPieSeries_combined.js +153 -78
- package/esm2015/lib/ScaleLegend_combined.js +82 -82
- package/esm2015/lib/ScatterBase_combined.js +23 -22
- package/esm2015/lib/ScatterPolygonSeries_combined.js +20 -20
- package/esm2015/lib/SeriesViewer_combined.js +2 -2
- package/esm2015/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
- package/esm2015/lib/igc-data-pie-base-chart-component.js +91 -83
- package/esm2015/lib/igc-data-pie-chart-component.js +23 -23
- package/esm2015/lib/igc-pie-chart-base-component.js +1 -1
- package/esm2015/lib/igc-radial-pie-series-component.js +20 -9
- package/esm2015/public_api.js +0 -1
- package/esm5/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
- package/esm5/lib/CalloutLayer_combined.js +1 -1
- package/esm5/lib/CategoryBucketCalculator_combined.js +50 -50
- package/esm5/lib/DataLegendContent_combined.js +7 -0
- package/esm5/lib/DataLegendVisualData_combined.js +28 -14
- package/esm5/lib/DataPieBaseChart.js +285 -268
- package/esm5/lib/DataPieChart.js +65 -65
- package/esm5/lib/FinancialLegend_combined.js +3 -3
- package/esm5/lib/ItemLegend_combined.js +26 -25
- package/esm5/lib/LegendBaseViewManager_combined.js +118 -100
- package/esm5/lib/Legend_combined.js +13 -13
- package/esm5/lib/PieChartViewManager_combined.js +11 -1
- package/esm5/lib/PolarBase_combined.js +24 -24
- package/esm5/lib/RadialBucketCalculator_combined.js +32 -32
- package/esm5/lib/RadialPieSeries_combined.js +160 -76
- package/esm5/lib/ScaleLegend_combined.js +82 -82
- package/esm5/lib/ScatterBase_combined.js +23 -22
- package/esm5/lib/ScatterPolygonSeries_combined.js +20 -20
- package/esm5/lib/SeriesViewer_combined.js +2 -2
- package/esm5/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
- package/esm5/lib/igc-data-pie-base-chart-component.js +95 -83
- package/esm5/lib/igc-data-pie-chart-component.js +23 -23
- package/esm5/lib/igc-pie-chart-base-component.js +1 -1
- package/esm5/lib/igc-radial-pie-series-component.js +24 -9
- package/esm5/public_api.js +0 -1
- package/fesm2015/igniteui-webcomponents-charts.js +1101 -984
- package/fesm5/igniteui-webcomponents-charts.js +1087 -945
- package/lib/AnchoredRadialBucketCalculator_combined.d.ts +1 -1
- package/lib/CategoryBucketCalculator_combined.d.ts +1 -1
- package/lib/DataLegendVisualData_combined.d.ts +5 -1
- package/lib/DataPieBaseChart.d.ts +96 -92
- package/lib/DataPieChart.d.ts +26 -26
- package/lib/ItemLegend_combined.d.ts +5 -5
- package/lib/LegendBaseViewManager_combined.d.ts +33 -32
- package/lib/Legend_combined.d.ts +2 -2
- package/lib/PieChartViewManager_combined.d.ts +1 -1
- package/lib/PolarBase_combined.d.ts +1 -1
- package/lib/RadialBucketCalculator_combined.d.ts +2 -2
- package/lib/RadialPieSeries_combined.d.ts +18 -12
- package/lib/ScaleLegend_combined.d.ts +23 -23
- package/lib/ScatterBase_combined.d.ts +1 -1
- package/lib/ScatterPolygonSeries_combined.d.ts +1 -1
- package/lib/SeriesViewer_combined.d.ts +1 -1
- package/lib/StackedSeriesCreatedEventArgs_combined.d.ts +1 -1
- package/lib/igc-data-pie-base-chart-component.d.ts +3 -0
- package/lib/igc-pie-chart-base-component.d.ts +1 -1
- package/lib/igc-radial-pie-series-component.d.ts +6 -0
- package/package.json +2 -2
- package/public_api.d.ts +0 -1
- package/esm2015/lib/LegendEmptyValuesMode.js +0 -29
- package/esm5/lib/LegendEmptyValuesMode.js +0 -29
- package/lib/LegendEmptyValuesMode.d.ts +0 -22
|
@@ -6,7 +6,8 @@ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOA
|
|
|
6
6
|
*/
|
|
7
7
|
import { AnchoredRadialSeries } from "./AnchoredRadialSeries";
|
|
8
8
|
import { DependencyProperty } from "igniteui-webcomponents-core";
|
|
9
|
-
import { Point_$type, runOn, markType, markDep, fromEnum } from "igniteui-webcomponents-core";
|
|
9
|
+
import { enumGetBox, Point_$type, runOn, typeCast, markType, markDep, fromEnum } from "igniteui-webcomponents-core";
|
|
10
|
+
import { LegendEmptyValuesMode_$type } from "igniteui-webcomponents-core";
|
|
10
11
|
import { Defaults } from "./Defaults";
|
|
11
12
|
import { Pool$1 } from "igniteui-webcomponents-core";
|
|
12
13
|
import { Path } from "igniteui-webcomponents-core";
|
|
@@ -23,10 +24,12 @@ import { PieSliceCollisionGeometry } from "igniteui-webcomponents-core";
|
|
|
23
24
|
import { Size } from "igniteui-webcomponents-core";
|
|
24
25
|
import { GeometryUtil } from "igniteui-webcomponents-core";
|
|
25
26
|
import { MathUtil } from "igniteui-webcomponents-core";
|
|
27
|
+
import { ProportionalCategoryAngleAxis } from "./ProportionalCategoryAngleAxis";
|
|
28
|
+
import { SeriesPointOfInterest } from "./SeriesPointOfInterest";
|
|
29
|
+
import { DataContext } from "igniteui-webcomponents-core";
|
|
26
30
|
import { PropertyMetadata } from "igniteui-webcomponents-core";
|
|
27
31
|
import { intDivide, isNaN_ } from "igniteui-webcomponents-core";
|
|
28
32
|
import { AnchoredRadialSeriesView } from "./AnchoredRadialSeriesView";
|
|
29
|
-
import { DataContext } from "igniteui-webcomponents-core";
|
|
30
33
|
/**
|
|
31
34
|
* @hidden
|
|
32
35
|
*/
|
|
@@ -52,32 +55,43 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
52
55
|
}
|
|
53
56
|
qx(a) {
|
|
54
57
|
super.qx(a);
|
|
55
|
-
this.
|
|
58
|
+
this.adf = a;
|
|
56
59
|
}
|
|
57
60
|
constructor() {
|
|
58
61
|
super();
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
62
|
+
this.adg = null;
|
|
63
|
+
this.adl = null;
|
|
64
|
+
this.add = 0;
|
|
61
65
|
this.ab = RadialPieSeries.$;
|
|
62
66
|
}
|
|
63
|
-
get
|
|
64
|
-
return this.
|
|
67
|
+
get adh() {
|
|
68
|
+
return this.adg;
|
|
69
|
+
}
|
|
70
|
+
set adh(a) {
|
|
71
|
+
if (this.adg != a) {
|
|
72
|
+
let b = this.adh;
|
|
73
|
+
this.adg = a;
|
|
74
|
+
this.raisePropertyChanged("LegendLabelColumn", b, this.adh);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
get ado() {
|
|
78
|
+
return this.adl;
|
|
65
79
|
}
|
|
66
|
-
set
|
|
67
|
-
if (this.
|
|
68
|
-
let b = this.
|
|
69
|
-
this.
|
|
70
|
-
this.raisePropertyChanged("
|
|
80
|
+
set ado(a) {
|
|
81
|
+
if (this.adl != a) {
|
|
82
|
+
let b = this.adl;
|
|
83
|
+
this.adl = a;
|
|
84
|
+
this.raisePropertyChanged("LegendLabelMemberPath", b, this.adl);
|
|
71
85
|
}
|
|
72
86
|
}
|
|
73
|
-
get
|
|
74
|
-
return this.
|
|
87
|
+
get ade() {
|
|
88
|
+
return this.add;
|
|
75
89
|
}
|
|
76
|
-
set
|
|
77
|
-
if (this.
|
|
78
|
-
let b = this.
|
|
79
|
-
this.
|
|
80
|
-
this.raisePropertyChanged("
|
|
90
|
+
set ade(a) {
|
|
91
|
+
if (this.add != a) {
|
|
92
|
+
let b = this.add;
|
|
93
|
+
this.add = a;
|
|
94
|
+
this.raisePropertyChanged("LegendEmptyValuesMode", enumGetBox(LegendEmptyValuesMode_$type, b), enumGetBox(LegendEmptyValuesMode_$type, this.add));
|
|
81
95
|
}
|
|
82
96
|
}
|
|
83
97
|
preferredCategoryMode(a) {
|
|
@@ -120,7 +134,7 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
120
134
|
}
|
|
121
135
|
let p = o.f._inner[b][0];
|
|
122
136
|
let q = Math.min(o.f._inner[b][2], h.maxLength);
|
|
123
|
-
return this.
|
|
137
|
+
return this.adi(d, e, f, p - (m * 0.5), p + (m * 0.5), l, q, i);
|
|
124
138
|
}
|
|
125
139
|
}
|
|
126
140
|
get_eb() {
|
|
@@ -148,15 +162,15 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
148
162
|
let m = this.yr.k5(d, e, f);
|
|
149
163
|
let n = this.yr.cl;
|
|
150
164
|
let o = { $type: Point_$type, x: 0.5, y: 0.5 };
|
|
151
|
-
let p = this.
|
|
152
|
-
let q = this.
|
|
165
|
+
let p = this.adj;
|
|
166
|
+
let q = this.adk;
|
|
153
167
|
let r = (p > 0 && q > 0);
|
|
154
168
|
let s = this.abx.count;
|
|
155
169
|
this.y7.a2(this, this.zo(), runOn(this, this.yf), this.zx(b), this.zy(b));
|
|
156
|
-
this.y7.r = this.
|
|
157
|
-
this.y7.s = this.
|
|
158
|
-
this.y7.k = this.
|
|
159
|
-
this.y7.l = this.
|
|
170
|
+
this.y7.r = this.adj;
|
|
171
|
+
this.y7.s = this.adk;
|
|
172
|
+
this.y7.k = this.adj;
|
|
173
|
+
this.y7.l = this.adk;
|
|
160
174
|
let t = false;
|
|
161
175
|
let u = this.y7.b;
|
|
162
176
|
if (u != null) {
|
|
@@ -198,10 +212,10 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
198
212
|
r = (ah > 0 && ai > 0);
|
|
199
213
|
let aj = null;
|
|
200
214
|
if (r) {
|
|
201
|
-
aj = this.
|
|
215
|
+
aj = this.adu(d, e, f, aa - (m * 0.5), aa + (m * 0.5), l, ab, o, ah, ai);
|
|
202
216
|
}
|
|
203
217
|
else {
|
|
204
|
-
aj = this.
|
|
218
|
+
aj = this.adv(d, e, f, aa - (m * 0.5), aa + (m * 0.5), l, ab, o);
|
|
205
219
|
}
|
|
206
220
|
ag.an = aj;
|
|
207
221
|
this.y7.ad(ag, false, false, false, false);
|
|
@@ -215,7 +229,7 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
215
229
|
c.c6.count = x;
|
|
216
230
|
c.db();
|
|
217
231
|
}
|
|
218
|
-
|
|
232
|
+
adv(a, b, c, d, e, f, g, h) {
|
|
219
233
|
let i = SliceCoords.b(a, b, c, d, e, f, g, h);
|
|
220
234
|
let j = new PathFigure();
|
|
221
235
|
j._startPoint = i.d;
|
|
@@ -250,7 +264,7 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
250
264
|
k.c.add(j);
|
|
251
265
|
return k;
|
|
252
266
|
}
|
|
253
|
-
|
|
267
|
+
adi(a, b, c, d, e, f, g, h) {
|
|
254
268
|
let i = SliceCoords.b(a, b, c, d, e, f, g, h);
|
|
255
269
|
if (isNaN_(i.n.width) || isNaN_(d) || isNaN_(e)) {
|
|
256
270
|
return null;
|
|
@@ -259,10 +273,10 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
259
273
|
let k = ViewportUtils.i(0.5, a, b, c);
|
|
260
274
|
return new PieSliceCollisionGeometry(j, k, i.n.width, i.m.width, d, e);
|
|
261
275
|
}
|
|
262
|
-
|
|
276
|
+
adu(a, b, c, d, e, f, g, h, i, j) {
|
|
263
277
|
let k = SliceCoords.a(a, b, c, d, e, f, g, h, i, j);
|
|
264
278
|
if (k == null) {
|
|
265
|
-
return this.
|
|
279
|
+
return this.adv(a, b, c, d, e, f, g, h);
|
|
266
280
|
}
|
|
267
281
|
let l = new PathFigure();
|
|
268
282
|
l._startPoint = k.d;
|
|
@@ -344,20 +358,20 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
344
358
|
break;
|
|
345
359
|
case "FastItemsSource":
|
|
346
360
|
if (c != null) {
|
|
347
|
-
if (this.
|
|
348
|
-
c.deregisterColumn(this.
|
|
361
|
+
if (this.adh != null) {
|
|
362
|
+
c.deregisterColumn(this.adh);
|
|
349
363
|
}
|
|
350
364
|
}
|
|
351
365
|
if (d != null) {
|
|
352
|
-
if (this.
|
|
353
|
-
this.
|
|
366
|
+
if (this.ado != null) {
|
|
367
|
+
this.adh = this.dk(this.ado);
|
|
354
368
|
}
|
|
355
369
|
}
|
|
356
370
|
break;
|
|
357
371
|
case "LegendLabelMemberPath":
|
|
358
372
|
if (this.dl != null) {
|
|
359
|
-
this.dl.deregisterColumn(this.
|
|
360
|
-
this.
|
|
373
|
+
this.dl.deregisterColumn(this.adh);
|
|
374
|
+
this.adh = this.dk(this.ado);
|
|
361
375
|
this.pc();
|
|
362
376
|
this.pq();
|
|
363
377
|
}
|
|
@@ -365,62 +379,123 @@ export let RadialPieSeries = /*@__PURE__*/ (() => {
|
|
|
365
379
|
}
|
|
366
380
|
}
|
|
367
381
|
wh(a) {
|
|
368
|
-
let b = this.
|
|
369
|
-
let c = this.
|
|
370
|
-
let d = this.getEffectiveViewport1(this.
|
|
371
|
-
let e = this.wd(this.
|
|
382
|
+
let b = this.adf.by;
|
|
383
|
+
let c = this.adf.bx;
|
|
384
|
+
let d = this.getEffectiveViewport1(this.adf);
|
|
385
|
+
let e = this.wd(this.adf);
|
|
372
386
|
let f = this.yw.k2(c, b, d, e);
|
|
373
387
|
let g = { $type: Point_$type, x: 0.5, y: 0.5 };
|
|
374
388
|
let h = GeometryUtil.i(g, a);
|
|
375
389
|
let i = this.y1.f;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
let l =
|
|
379
|
-
let m = i._inner[
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
390
|
+
let j = 0;
|
|
391
|
+
for (let k = 0; k < i.count; k++) {
|
|
392
|
+
let l = i._inner[k][0];
|
|
393
|
+
let m = Math.min(i._inner[k][2], f.maxLength);
|
|
394
|
+
let n = i._inner[k][3];
|
|
395
|
+
if (isNaN_(n)) {
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
l = l % 6.28318531;
|
|
399
|
+
if (l < 0) {
|
|
400
|
+
l += 6.28318531;
|
|
401
|
+
}
|
|
402
|
+
if (h >= l - (n * 0.5) && h <= l + (n * 0.5)) {
|
|
403
|
+
let o = Math.max(0, 0.5 * this.yw.no);
|
|
404
|
+
let p = o;
|
|
405
|
+
p = Math.max(p, f.minLength);
|
|
406
|
+
let q = SliceCoords.b(b, c, d, l - (n * 0.5), l + (n * 0.5), p, m, g);
|
|
407
|
+
let r = GeometryUtil.q({ $type: Point_$type, x: ViewportUtils.e(g.x, b, c, d), y: ViewportUtils.i(g.y, b, c, d) }, MathUtil.f(l), q.n.width);
|
|
387
408
|
let s = 1.7976931348623157E+308;
|
|
388
|
-
let t =
|
|
409
|
+
let t = 1.7976931348623157E+308;
|
|
389
410
|
let u = -1.7976931348623157E+308;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
s = Math.min(s,
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
t = Math.
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
u = Math.max(u,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
+
let v = -1.7976931348623157E+308;
|
|
412
|
+
s = Math.min(s, q.d.x);
|
|
413
|
+
s = Math.min(s, q.f.x);
|
|
414
|
+
s = Math.min(s, q.h.x);
|
|
415
|
+
s = Math.min(s, q.j.x);
|
|
416
|
+
s = Math.min(s, r.x);
|
|
417
|
+
t = Math.min(t, q.d.y);
|
|
418
|
+
t = Math.min(t, q.f.y);
|
|
419
|
+
t = Math.min(t, q.h.y);
|
|
420
|
+
t = Math.min(t, q.j.y);
|
|
421
|
+
t = Math.min(t, r.y);
|
|
422
|
+
u = Math.max(u, q.d.x);
|
|
423
|
+
u = Math.max(u, q.f.x);
|
|
424
|
+
u = Math.max(u, q.h.x);
|
|
425
|
+
u = Math.max(u, q.j.x);
|
|
426
|
+
u = Math.max(u, r.x);
|
|
427
|
+
v = Math.max(v, q.d.y);
|
|
428
|
+
v = Math.max(v, q.f.y);
|
|
429
|
+
v = Math.max(v, q.h.y);
|
|
430
|
+
v = Math.max(v, q.j.y);
|
|
431
|
+
v = Math.max(v, r.y);
|
|
432
|
+
return new Rect(0, s, t, u - s, v - t);
|
|
411
433
|
}
|
|
434
|
+
j++;
|
|
412
435
|
}
|
|
413
436
|
return new Rect(0, 0, 0, 0, 0);
|
|
414
437
|
}
|
|
415
438
|
ks(a) {
|
|
416
|
-
if (this.
|
|
417
|
-
return
|
|
439
|
+
if (this.yr != null && this.yr.cl && a == this.yr.othersIndex) {
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
442
|
+
if (this.adh != null) {
|
|
443
|
+
return this.adh.item(a);
|
|
418
444
|
}
|
|
419
445
|
return null;
|
|
420
446
|
}
|
|
447
|
+
d9(a, b, c, d, e) {
|
|
448
|
+
if (super.d9(a, b, c, d, e)) {
|
|
449
|
+
let f = typeCast(ProportionalCategoryAngleAxis.$, this.yr) !== null && this.yr.hasOthersCategory;
|
|
450
|
+
if (e && (this.ade == 1 || (this.ade == 2 && !f))) {
|
|
451
|
+
let g = this.yr;
|
|
452
|
+
let h = new ScalerParams(1, this.c9.vl, this.wl, g.ch);
|
|
453
|
+
h.c = this.getEffectiveViewport1(this.ct);
|
|
454
|
+
let i = this.yw;
|
|
455
|
+
let j = new ScalerParams(1, this.c9.vl, this.wl, i.ch);
|
|
456
|
+
j.c = this.getEffectiveViewport1(this.ct);
|
|
457
|
+
let k = this.zw;
|
|
458
|
+
for (let l = 0; l < this.dl.count; l++) {
|
|
459
|
+
let m = this.dl.item(l);
|
|
460
|
+
let n = NaN;
|
|
461
|
+
if (m != null) {
|
|
462
|
+
n = this.ja(m);
|
|
463
|
+
}
|
|
464
|
+
if (n == 0) {
|
|
465
|
+
let o = new SeriesPointOfInterest();
|
|
466
|
+
o.f = this.aav(n, m, l, d, k, c, b, false);
|
|
467
|
+
o.b = ((() => {
|
|
468
|
+
let $ret = new DataContext();
|
|
469
|
+
$ret.item = m;
|
|
470
|
+
$ret.series = this;
|
|
471
|
+
return $ret;
|
|
472
|
+
})());
|
|
473
|
+
o.g = this.va;
|
|
474
|
+
o.c = l;
|
|
475
|
+
if (this.g7) {
|
|
476
|
+
o.g = this.vh(l);
|
|
477
|
+
}
|
|
478
|
+
let p = false;
|
|
479
|
+
for (let q = 0; q < a.count; q++) {
|
|
480
|
+
if (o.c < a._inner[q].c) {
|
|
481
|
+
a.insert(q, o);
|
|
482
|
+
p = true;
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
if (!p) {
|
|
487
|
+
a.add(o);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return true;
|
|
493
|
+
}
|
|
494
|
+
return false;
|
|
495
|
+
}
|
|
421
496
|
}
|
|
422
497
|
RadialPieSeries.$t = /*@__PURE__*/ markType(RadialPieSeries, 'RadialPieSeries', AnchoredRadialSeries.$);
|
|
423
|
-
RadialPieSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, RadialPieSeries, 'raisePropertyChanged', ['RadiusX:
|
|
498
|
+
RadialPieSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, RadialPieSeries, 'raisePropertyChanged', ['RadiusX:adj:ads', [1, 2], 'RadiusY:adk:adt', [1, 2]]);
|
|
424
499
|
return RadialPieSeries;
|
|
425
500
|
})();
|
|
426
501
|
/**
|
|
@@ -32,13 +32,13 @@ export let ScaleLegend = /*@__PURE__*/ (() => {
|
|
|
32
32
|
this.bd = a;
|
|
33
33
|
}
|
|
34
34
|
get legendScaleElement() {
|
|
35
|
-
return this.bd.
|
|
35
|
+
return this.bd.bb;
|
|
36
36
|
}
|
|
37
37
|
get minText() {
|
|
38
|
-
return this.bd.
|
|
38
|
+
return this.bd.a7;
|
|
39
39
|
}
|
|
40
40
|
get maxText() {
|
|
41
|
-
return this.bd.
|
|
41
|
+
return this.bd.a6;
|
|
42
42
|
}
|
|
43
43
|
constructor() {
|
|
44
44
|
super();
|
|
@@ -55,14 +55,14 @@ export let ScaleLegend = /*@__PURE__*/ (() => {
|
|
|
55
55
|
this.bb = a;
|
|
56
56
|
}
|
|
57
57
|
bi() {
|
|
58
|
-
this.bd.
|
|
58
|
+
this.bd.a3();
|
|
59
59
|
}
|
|
60
60
|
restoreOriginalState() {
|
|
61
61
|
this.bi();
|
|
62
62
|
}
|
|
63
63
|
bl(a) {
|
|
64
64
|
if (a == null) {
|
|
65
|
-
return this.bd.
|
|
65
|
+
return this.bd.ba();
|
|
66
66
|
}
|
|
67
67
|
return ColorUtil.v(a);
|
|
68
68
|
}
|
|
@@ -86,11 +86,11 @@ export let ScaleLegend = /*@__PURE__*/ (() => {
|
|
|
86
86
|
let a = false;
|
|
87
87
|
let b = typeCast(Shape.$, this.legendScaleElement);
|
|
88
88
|
if (b != null) {
|
|
89
|
-
let c = this.bd.
|
|
90
|
-
if (!this.bc.forScaleColors((d, e) => this.bd.
|
|
89
|
+
let c = this.bd.ax();
|
|
90
|
+
if (!this.bc.forScaleColors((d, e) => this.bd.az(c, this.bl(d), e))) {
|
|
91
91
|
a = true;
|
|
92
92
|
}
|
|
93
|
-
this.bd.
|
|
93
|
+
this.bd.a4(b, a, c);
|
|
94
94
|
}
|
|
95
95
|
if (this.minText != null) {
|
|
96
96
|
this.minText.al = this.bc.minScaleText;
|
|
@@ -110,33 +110,33 @@ export let ScaleLegendView = /*@__PURE__*/ (() => {
|
|
|
110
110
|
class ScaleLegendView extends LegendBaseView {
|
|
111
111
|
constructor(a) {
|
|
112
112
|
super(a);
|
|
113
|
-
this.ap = null;
|
|
114
|
-
this.ba = null;
|
|
115
|
-
this.a6 = null;
|
|
116
|
-
this.a5 = null;
|
|
117
|
-
this.ao = null;
|
|
118
113
|
this.aq = null;
|
|
119
|
-
this.bb =
|
|
120
|
-
this.ar = false;
|
|
121
|
-
this.as = 0;
|
|
122
|
-
this.a8 = null;
|
|
114
|
+
this.bb = null;
|
|
123
115
|
this.a7 = null;
|
|
124
|
-
this.
|
|
116
|
+
this.a6 = null;
|
|
117
|
+
this.ap = null;
|
|
118
|
+
this.ar = null;
|
|
119
|
+
this.bc = new Size();
|
|
120
|
+
this.as = false;
|
|
121
|
+
this.at = 0;
|
|
122
|
+
this.a9 = null;
|
|
123
|
+
this.a8 = null;
|
|
124
|
+
this.aq = a;
|
|
125
|
+
this.a7 = new TextBlock();
|
|
125
126
|
this.a6 = new TextBlock();
|
|
126
|
-
this.
|
|
127
|
-
this.ba = new Polygon();
|
|
127
|
+
this.bb = new Polygon();
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
a3() {
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
aa() {
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
ba() {
|
|
134
134
|
return Color.u(0, 0, 0, 0);
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
ax() {
|
|
137
137
|
return new GradientData();
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
az(a, b, c) {
|
|
140
140
|
let d = a;
|
|
141
141
|
d.a.add(((() => {
|
|
142
142
|
let $ret = new GradientStopData();
|
|
@@ -149,77 +149,77 @@ export let ScaleLegendView = /*@__PURE__*/ (() => {
|
|
|
149
149
|
return $ret;
|
|
150
150
|
})()));
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
a4(a, b, c) {
|
|
153
153
|
if (b) {
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
154
|
+
this.a8 = this.aq.bc.actualMarkerBrush;
|
|
155
|
+
this.ap = null;
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
158
|
+
this.a8 = null;
|
|
159
|
+
this.ap = c;
|
|
160
|
+
this.ap.b();
|
|
161
161
|
}
|
|
162
|
-
this.
|
|
162
|
+
this.a0();
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
super.
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
164
|
+
aj(a) {
|
|
165
|
+
super.aj(a);
|
|
166
|
+
this.ar = this.d.b(a);
|
|
167
|
+
this.bc = this.d.ab();
|
|
168
|
+
this.a0();
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
if (!this.
|
|
172
|
-
this.
|
|
173
|
-
if (this.
|
|
174
|
-
this.
|
|
170
|
+
a0() {
|
|
171
|
+
if (!this.as) {
|
|
172
|
+
this.as = true;
|
|
173
|
+
if (this.d.g != null) {
|
|
174
|
+
this.d.g.setTimeout(runOn(this, this.a5), 0);
|
|
175
175
|
}
|
|
176
176
|
else {
|
|
177
|
-
window.setTimeout(runOn(this, this.
|
|
177
|
+
window.setTimeout(runOn(this, this.a5), 0);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
|
|
182
|
-
if (this.
|
|
183
|
-
this.
|
|
184
|
-
this.
|
|
181
|
+
a5() {
|
|
182
|
+
if (this.as) {
|
|
183
|
+
this.as = false;
|
|
184
|
+
this.a2();
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
|
|
188
|
-
if (this.
|
|
187
|
+
a2() {
|
|
188
|
+
if (this.ar == null) {
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
this.
|
|
191
|
+
this.a1();
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
av(a) {
|
|
194
194
|
let b = typeCast(TextBlock.$, a);
|
|
195
195
|
if (b != null && b.al != null) {
|
|
196
|
-
return this.
|
|
196
|
+
return this.ar.f(b) + 0;
|
|
197
197
|
}
|
|
198
198
|
return 0;
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
return this.
|
|
200
|
+
au(a) {
|
|
201
|
+
return this.at + 0;
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
if (this.
|
|
203
|
+
a1() {
|
|
204
|
+
if (this.aq.bc == null || this.aq.bc.container == null || (this.ap == null && this.a8 == null)) {
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
|
-
if (this.
|
|
208
|
-
let a = typeCast(IInternalLegendOwner_$type, this.
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
let b = this.
|
|
213
|
-
let c = this.
|
|
207
|
+
if (this.ar.d) {
|
|
208
|
+
let a = typeCast(IInternalLegendOwner_$type, this.aq.bc.container);
|
|
209
|
+
this.ar.ad(a.getFontInfo());
|
|
210
|
+
this.at = a.getFontHeight();
|
|
211
|
+
this.a9 = a.getFontBrush();
|
|
212
|
+
let b = this.av(this.a7);
|
|
213
|
+
let c = this.av(this.a6);
|
|
214
214
|
let d = Math.max(b, c) + 4;
|
|
215
|
-
if (d >= this.
|
|
215
|
+
if (d >= this.bc.width) {
|
|
216
216
|
d = 0;
|
|
217
217
|
}
|
|
218
|
-
let e = this.
|
|
218
|
+
let e = this.bc.width - d;
|
|
219
219
|
let f = 2;
|
|
220
220
|
let g = 2;
|
|
221
221
|
e = e - 4;
|
|
222
|
-
let h = this.
|
|
222
|
+
let h = this.bc.height - 4;
|
|
223
223
|
let i = f + e + 4;
|
|
224
224
|
let j = g;
|
|
225
225
|
let k = h;
|
|
@@ -227,36 +227,36 @@ export let ScaleLegendView = /*@__PURE__*/ (() => {
|
|
|
227
227
|
let m = { $type: Point_$type, x: f + (5 / 5) * e, y: g };
|
|
228
228
|
let n = { $type: Point_$type, x: f + (5 / 5) * e, y: h };
|
|
229
229
|
let o = { $type: Point_$type, x: f, y: h };
|
|
230
|
-
let p = this.
|
|
230
|
+
let p = this.bb;
|
|
231
231
|
p.an.clear();
|
|
232
232
|
p.an.add(l);
|
|
233
233
|
p.an.add(m);
|
|
234
234
|
p.an.add(n);
|
|
235
235
|
p.an.add(o);
|
|
236
|
+
this.a7.n = i;
|
|
237
|
+
this.a7.o = j;
|
|
238
|
+
this.a7.ao = this.a9;
|
|
236
239
|
this.a6.n = i;
|
|
237
|
-
this.a6.o = j;
|
|
238
|
-
this.a6.ao = this.
|
|
239
|
-
this.
|
|
240
|
-
|
|
241
|
-
this.a5.ao = this.a8;
|
|
242
|
-
if (!this.aq.e) {
|
|
243
|
-
this.aq.l(0, 0, this.bb.width, this.bb.height);
|
|
240
|
+
this.a6.o = j + k - (this.au(this.a7));
|
|
241
|
+
this.a6.ao = this.a9;
|
|
242
|
+
if (!this.ar.e) {
|
|
243
|
+
this.ar.l(0, 0, this.bc.width, this.bc.height);
|
|
244
244
|
}
|
|
245
|
-
if (this.
|
|
246
|
-
p._fill = this.
|
|
247
|
-
this.
|
|
245
|
+
if (this.ap == null && this.a8 != null) {
|
|
246
|
+
p._fill = this.a8;
|
|
247
|
+
this.ar.u(p);
|
|
248
248
|
}
|
|
249
249
|
else {
|
|
250
|
-
this.
|
|
250
|
+
this.d.y(this.ar, p, this.ap, new Rect(0, g, f, e, h));
|
|
251
251
|
}
|
|
252
252
|
if (d > 0) {
|
|
253
|
-
this.
|
|
254
|
-
this.
|
|
253
|
+
this.ar.x(this.a7);
|
|
254
|
+
this.ar.x(this.a6);
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
|
|
259
|
-
super.
|
|
258
|
+
am() {
|
|
259
|
+
super.am();
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
ScaleLegendView.$t = /*@__PURE__*/ markType(ScaleLegendView, 'ScaleLegendView', LegendBaseView.$);
|