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.
Files changed (79) hide show
  1. package/bundles/igniteui-webcomponents-charts.umd.js +1088 -948
  2. package/bundles/igniteui-webcomponents-charts.umd.min.js +1 -1
  3. package/esm2015/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
  4. package/esm2015/lib/CalloutLayer_combined.js +1 -1
  5. package/esm2015/lib/CategoryBucketCalculator_combined.js +50 -50
  6. package/esm2015/lib/DataLegendContent_combined.js +7 -0
  7. package/esm2015/lib/DataLegendVisualData_combined.js +24 -14
  8. package/esm2015/lib/DataPieBaseChart.js +311 -298
  9. package/esm2015/lib/DataPieChart.js +73 -73
  10. package/esm2015/lib/FinancialLegend_combined.js +3 -3
  11. package/esm2015/lib/ItemLegend_combined.js +26 -25
  12. package/esm2015/lib/LegendBaseViewManager_combined.js +118 -100
  13. package/esm2015/lib/Legend_combined.js +13 -13
  14. package/esm2015/lib/PieChartViewManager_combined.js +11 -1
  15. package/esm2015/lib/PolarBase_combined.js +24 -24
  16. package/esm2015/lib/RadialBucketCalculator_combined.js +32 -32
  17. package/esm2015/lib/RadialPieSeries_combined.js +153 -78
  18. package/esm2015/lib/ScaleLegend_combined.js +82 -82
  19. package/esm2015/lib/ScatterBase_combined.js +23 -22
  20. package/esm2015/lib/ScatterPolygonSeries_combined.js +20 -20
  21. package/esm2015/lib/SeriesViewer_combined.js +2 -2
  22. package/esm2015/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
  23. package/esm2015/lib/igc-data-pie-base-chart-component.js +91 -83
  24. package/esm2015/lib/igc-data-pie-chart-component.js +23 -23
  25. package/esm2015/lib/igc-pie-chart-base-component.js +1 -1
  26. package/esm2015/lib/igc-radial-pie-series-component.js +20 -9
  27. package/esm2015/public_api.js +0 -1
  28. package/esm5/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
  29. package/esm5/lib/CalloutLayer_combined.js +1 -1
  30. package/esm5/lib/CategoryBucketCalculator_combined.js +50 -50
  31. package/esm5/lib/DataLegendContent_combined.js +7 -0
  32. package/esm5/lib/DataLegendVisualData_combined.js +28 -14
  33. package/esm5/lib/DataPieBaseChart.js +285 -268
  34. package/esm5/lib/DataPieChart.js +65 -65
  35. package/esm5/lib/FinancialLegend_combined.js +3 -3
  36. package/esm5/lib/ItemLegend_combined.js +26 -25
  37. package/esm5/lib/LegendBaseViewManager_combined.js +118 -100
  38. package/esm5/lib/Legend_combined.js +13 -13
  39. package/esm5/lib/PieChartViewManager_combined.js +11 -1
  40. package/esm5/lib/PolarBase_combined.js +24 -24
  41. package/esm5/lib/RadialBucketCalculator_combined.js +32 -32
  42. package/esm5/lib/RadialPieSeries_combined.js +160 -76
  43. package/esm5/lib/ScaleLegend_combined.js +82 -82
  44. package/esm5/lib/ScatterBase_combined.js +23 -22
  45. package/esm5/lib/ScatterPolygonSeries_combined.js +20 -20
  46. package/esm5/lib/SeriesViewer_combined.js +2 -2
  47. package/esm5/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
  48. package/esm5/lib/igc-data-pie-base-chart-component.js +95 -83
  49. package/esm5/lib/igc-data-pie-chart-component.js +23 -23
  50. package/esm5/lib/igc-pie-chart-base-component.js +1 -1
  51. package/esm5/lib/igc-radial-pie-series-component.js +24 -9
  52. package/esm5/public_api.js +0 -1
  53. package/fesm2015/igniteui-webcomponents-charts.js +1101 -984
  54. package/fesm5/igniteui-webcomponents-charts.js +1087 -945
  55. package/lib/AnchoredRadialBucketCalculator_combined.d.ts +1 -1
  56. package/lib/CategoryBucketCalculator_combined.d.ts +1 -1
  57. package/lib/DataLegendVisualData_combined.d.ts +5 -1
  58. package/lib/DataPieBaseChart.d.ts +96 -92
  59. package/lib/DataPieChart.d.ts +26 -26
  60. package/lib/ItemLegend_combined.d.ts +5 -5
  61. package/lib/LegendBaseViewManager_combined.d.ts +33 -32
  62. package/lib/Legend_combined.d.ts +2 -2
  63. package/lib/PieChartViewManager_combined.d.ts +1 -1
  64. package/lib/PolarBase_combined.d.ts +1 -1
  65. package/lib/RadialBucketCalculator_combined.d.ts +2 -2
  66. package/lib/RadialPieSeries_combined.d.ts +18 -12
  67. package/lib/ScaleLegend_combined.d.ts +23 -23
  68. package/lib/ScatterBase_combined.d.ts +1 -1
  69. package/lib/ScatterPolygonSeries_combined.d.ts +1 -1
  70. package/lib/SeriesViewer_combined.d.ts +1 -1
  71. package/lib/StackedSeriesCreatedEventArgs_combined.d.ts +1 -1
  72. package/lib/igc-data-pie-base-chart-component.d.ts +3 -0
  73. package/lib/igc-pie-chart-base-component.d.ts +1 -1
  74. package/lib/igc-radial-pie-series-component.d.ts +6 -0
  75. package/package.json +2 -2
  76. package/public_api.d.ts +0 -1
  77. package/esm2015/lib/LegendEmptyValuesMode.js +0 -29
  78. package/esm5/lib/LegendEmptyValuesMode.js +0 -29
  79. 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.add = a;
58
+ this.adf = a;
56
59
  }
57
60
  constructor() {
58
61
  super();
59
- this.ade = null;
60
- this.adj = null;
62
+ this.adg = null;
63
+ this.adl = null;
64
+ this.add = 0;
61
65
  this.ab = RadialPieSeries.$;
62
66
  }
63
- get adf() {
64
- return this.ade;
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 adf(a) {
67
- if (this.ade != a) {
68
- let b = this.adf;
69
- this.ade = a;
70
- this.raisePropertyChanged("LegendLabelColumn", b, this.adf);
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 adl() {
74
- return this.adj;
87
+ get ade() {
88
+ return this.add;
75
89
  }
76
- set adl(a) {
77
- if (this.adj != a) {
78
- let b = this.adj;
79
- this.adj = a;
80
- this.raisePropertyChanged("LegendLabelMemberPath", b, this.adj);
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.adg(d, e, f, p - (m * 0.5), p + (m * 0.5), l, q, i);
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.adh;
152
- let q = this.adi;
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.adh;
157
- this.y7.s = this.adi;
158
- this.y7.k = this.adh;
159
- this.y7.l = this.adi;
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.adr(d, e, f, aa - (m * 0.5), aa + (m * 0.5), l, ab, o, ah, ai);
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.ads(d, e, f, aa - (m * 0.5), aa + (m * 0.5), l, ab, o);
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
- ads(a, b, c, d, e, f, g, h) {
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
- adg(a, b, c, d, e, f, g, h) {
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
- adr(a, b, c, d, e, f, g, h, i, j) {
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.ads(a, b, c, d, e, f, g, h);
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.adf != null) {
348
- c.deregisterColumn(this.adf);
361
+ if (this.adh != null) {
362
+ c.deregisterColumn(this.adh);
349
363
  }
350
364
  }
351
365
  if (d != null) {
352
- if (this.adl != null) {
353
- this.adf = this.dk(this.adl);
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.adf);
360
- this.adf = this.dk(this.adl);
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.add.by;
369
- let c = this.add.bx;
370
- let d = this.getEffectiveViewport1(this.add);
371
- let e = this.wd(this.add);
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
- for (let j = 0; j < i.count; j++) {
377
- let k = i._inner[j][0];
378
- let l = Math.min(i._inner[j][2], f.maxLength);
379
- let m = i._inner[j][3];
380
- if (h >= k - (m * 0.5) && h <= k + (m * 0.5)) {
381
- let n = Math.max(0, 0.5 * this.yw.no);
382
- let o = n;
383
- o = Math.max(o, f.minLength);
384
- let p = SliceCoords.b(b, c, d, k - (m * 0.5), k + (m * 0.5), o, l, g);
385
- let q = GeometryUtil.q({ $type: Point_$type, x: ViewportUtils.e(g.x, b, c, d), y: ViewportUtils.i(g.y, b, c, d) }, MathUtil.f(k), p.n.width);
386
- let r = 1.7976931348623157E+308;
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 = -1.7976931348623157E+308;
409
+ let t = 1.7976931348623157E+308;
389
410
  let u = -1.7976931348623157E+308;
390
- r = Math.min(r, p.d.x);
391
- r = Math.min(r, p.f.x);
392
- r = Math.min(r, p.h.x);
393
- r = Math.min(r, p.j.x);
394
- r = Math.min(r, q.x);
395
- s = Math.min(s, p.d.y);
396
- s = Math.min(s, p.f.y);
397
- s = Math.min(s, p.h.y);
398
- s = Math.min(s, p.j.y);
399
- s = Math.min(s, q.y);
400
- t = Math.max(t, p.d.x);
401
- t = Math.max(t, p.f.x);
402
- t = Math.max(t, p.h.x);
403
- t = Math.max(t, p.j.x);
404
- t = Math.max(t, q.x);
405
- u = Math.max(u, p.d.y);
406
- u = Math.max(u, p.f.y);
407
- u = Math.max(u, p.h.y);
408
- u = Math.max(u, p.j.y);
409
- u = Math.max(u, q.y);
410
- return new Rect(0, r, s, t - r, u - s);
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.adf != null) {
417
- return this.adf.item(a);
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:adh:adp', [1, 2], 'RadiusY:adi:adq', [1, 2]]);
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.ba;
35
+ return this.bd.bb;
36
36
  }
37
37
  get minText() {
38
- return this.bd.a6;
38
+ return this.bd.a7;
39
39
  }
40
40
  get maxText() {
41
- return this.bd.a5;
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.a2();
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.a9();
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.aw();
90
- if (!this.bc.forScaleColors((d, e) => this.bd.ay(c, this.bl(d), e))) {
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.a3(b, a, c);
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 = new Size();
120
- this.ar = false;
121
- this.as = 0;
122
- this.a8 = null;
114
+ this.bb = null;
123
115
  this.a7 = null;
124
- this.ap = a;
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.a5 = new TextBlock();
127
- this.ba = new Polygon();
127
+ this.bb = new Polygon();
128
128
  }
129
- a2() {
129
+ a3() {
130
130
  }
131
- z() {
131
+ aa() {
132
132
  }
133
- a9() {
133
+ ba() {
134
134
  return Color.u(0, 0, 0, 0);
135
135
  }
136
- aw() {
136
+ ax() {
137
137
  return new GradientData();
138
138
  }
139
- ay(a, b, c) {
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
- a3(a, b, c) {
152
+ a4(a, b, c) {
153
153
  if (b) {
154
- this.a7 = this.ap.bc.actualMarkerBrush;
155
- this.ao = null;
154
+ this.a8 = this.aq.bc.actualMarkerBrush;
155
+ this.ap = null;
156
156
  }
157
157
  else {
158
- this.a7 = null;
159
- this.ao = c;
160
- this.ao.b();
158
+ this.a8 = null;
159
+ this.ap = c;
160
+ this.ap.b();
161
161
  }
162
- this.az();
162
+ this.a0();
163
163
  }
164
- ai(a) {
165
- super.ai(a);
166
- this.aq = this.c.b(a);
167
- this.bb = this.c.ab();
168
- this.az();
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
- az() {
171
- if (!this.ar) {
172
- this.ar = true;
173
- if (this.c.g != null) {
174
- this.c.g.setTimeout(runOn(this, this.a4), 0);
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.a4), 0);
177
+ window.setTimeout(runOn(this, this.a5), 0);
178
178
  }
179
179
  }
180
180
  }
181
- a4() {
182
- if (this.ar) {
183
- this.ar = false;
184
- this.a1();
181
+ a5() {
182
+ if (this.as) {
183
+ this.as = false;
184
+ this.a2();
185
185
  }
186
186
  }
187
- a1() {
188
- if (this.aq == null) {
187
+ a2() {
188
+ if (this.ar == null) {
189
189
  return;
190
190
  }
191
- this.a0();
191
+ this.a1();
192
192
  }
193
- au(a) {
193
+ av(a) {
194
194
  let b = typeCast(TextBlock.$, a);
195
195
  if (b != null && b.al != null) {
196
- return this.aq.f(b) + 0;
196
+ return this.ar.f(b) + 0;
197
197
  }
198
198
  return 0;
199
199
  }
200
- at(a) {
201
- return this.as + 0;
200
+ au(a) {
201
+ return this.at + 0;
202
202
  }
203
- a0() {
204
- if (this.ap.bc == null || this.ap.bc.container == null || (this.ao == null && this.a7 == null)) {
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.aq.d) {
208
- let a = typeCast(IInternalLegendOwner_$type, this.ap.bc.container);
209
- this.aq.ad(a.getFontInfo());
210
- this.as = a.getFontHeight();
211
- this.a8 = a.getFontBrush();
212
- let b = this.au(this.a6);
213
- let c = this.au(this.a5);
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.bb.width) {
215
+ if (d >= this.bc.width) {
216
216
  d = 0;
217
217
  }
218
- let e = this.bb.width - d;
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.bb.height - 4;
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.ba;
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.a8;
239
- this.a5.n = i;
240
- this.a5.o = j + k - (this.at(this.a6));
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.ao == null && this.a7 != null) {
246
- p._fill = this.a7;
247
- this.aq.u(p);
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.c.y(this.aq, p, this.ao, new Rect(0, g, f, e, h));
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.aq.x(this.a6);
254
- this.aq.x(this.a5);
253
+ this.ar.x(this.a7);
254
+ this.ar.x(this.a6);
255
255
  }
256
256
  }
257
257
  }
258
- al() {
259
- super.al();
258
+ am() {
259
+ super.am();
260
260
  }
261
261
  }
262
262
  ScaleLegendView.$t = /*@__PURE__*/ markType(ScaleLegendView, 'ScaleLegendView', LegendBaseView.$);