igniteui-webcomponents-charts 5.0.0 → 5.0.1
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 +279 -240
- package/bundles/igniteui-webcomponents-charts.umd.min.js +1 -1
- package/esm2015/lib/DataLegendContent_combined.js +7 -0
- package/esm2015/lib/DataLegendVisualData_combined.js +24 -14
- 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/ScaleLegend_combined.js +82 -82
- package/esm2015/lib/ScatterBase_combined.js +3 -2
- package/esm5/lib/DataLegendContent_combined.js +7 -0
- package/esm5/lib/DataLegendVisualData_combined.js +28 -14
- 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/ScaleLegend_combined.js +82 -82
- package/esm5/lib/ScatterBase_combined.js +3 -2
- package/fesm2015/igniteui-webcomponents-charts.js +276 -241
- package/fesm5/igniteui-webcomponents-charts.js +280 -241
- package/lib/DataLegendVisualData_combined.d.ts +5 -1
- 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/ScaleLegend_combined.d.ts +23 -23
- package/package.json +2 -2
|
@@ -33,8 +33,10 @@ import { Extensions } from "igniteui-webcomponents-core";
|
|
|
33
33
|
import { TextBlock } from "igniteui-webcomponents-core";
|
|
34
34
|
import { DataLegendVisualDataRow } from "./DataLegendVisualDataRow";
|
|
35
35
|
import { DataLegendVisualDataColumn } from "./DataLegendVisualDataColumn";
|
|
36
|
+
import { ILegendContext_$type } from "igniteui-webcomponents-core";
|
|
36
37
|
import { RectData } from "igniteui-webcomponents-core";
|
|
37
38
|
import { AppearanceHelper } from "igniteui-webcomponents-core";
|
|
39
|
+
import { PrimitiveAppearanceData } from "igniteui-webcomponents-core";
|
|
38
40
|
import { FrameworkElement } from "igniteui-webcomponents-core";
|
|
39
41
|
import { DataLegendSummaryEventArgs } from "./DataLegendSummaryEventArgs";
|
|
40
42
|
import { DataLegendSummaryCalculationTotal } from "./DataLegendSummaryCalculationTotal";
|
|
@@ -642,6 +644,11 @@ export let XamDataLegend = /*@__PURE__*/ (() => {
|
|
|
642
644
|
l.badgeMarginBottom = k.z.bottom;
|
|
643
645
|
l.badgeMarginRight = k.z.right;
|
|
644
646
|
l.badgeMarginLeft = k.z.left;
|
|
647
|
+
l.badgeAppearance = new PrimitiveAppearanceData();
|
|
648
|
+
let aa = typeCast(ILegendContext_$type, k.n);
|
|
649
|
+
let ab = typeCast(ILegendContext_$type, k.i);
|
|
650
|
+
l.badgeAppearance.fill = AppearanceHelper.b(aa.actualItemBrush);
|
|
651
|
+
l.badgeAppearance.stroke = AppearanceHelper.b(aa.outline);
|
|
645
652
|
l.badgeShape = k.o;
|
|
646
653
|
}
|
|
647
654
|
l.rowBounds = RectData.b(m);
|
|
@@ -227,6 +227,7 @@ export let DataLegendVisualDataRow = /*@__PURE__*/ (() => {
|
|
|
227
227
|
this._badgeMarginRight = 0;
|
|
228
228
|
this._badgeMarginBottom = 0;
|
|
229
229
|
this._badgeShape = null;
|
|
230
|
+
this._badgeAppearance = null;
|
|
230
231
|
this._rowBounds = null;
|
|
231
232
|
this._rowMarginLeft = 0;
|
|
232
233
|
this._rowMarginTop = 0;
|
|
@@ -283,6 +284,12 @@ export let DataLegendVisualDataRow = /*@__PURE__*/ (() => {
|
|
|
283
284
|
set badgeShape(a) {
|
|
284
285
|
this._badgeShape = a;
|
|
285
286
|
}
|
|
287
|
+
get badgeAppearance() {
|
|
288
|
+
return this._badgeAppearance;
|
|
289
|
+
}
|
|
290
|
+
set badgeAppearance(a) {
|
|
291
|
+
this._badgeAppearance = a;
|
|
292
|
+
}
|
|
286
293
|
get rowBounds() {
|
|
287
294
|
return this._rowBounds;
|
|
288
295
|
}
|
|
@@ -318,33 +325,36 @@ export let DataLegendVisualDataRow = /*@__PURE__*/ (() => {
|
|
|
318
325
|
let b = " ";
|
|
319
326
|
let c = new StringBuilder(0);
|
|
320
327
|
c.u("{");
|
|
321
|
-
c.u(b + this.
|
|
322
|
-
c.u(b + this.
|
|
323
|
-
c.u(b + this.
|
|
324
|
-
c.u(b + this.
|
|
328
|
+
c.u(b + this.o("badgeMarginLeft") + this.badgeMarginLeft + a);
|
|
329
|
+
c.u(b + this.o("badgeMarginTop") + this.badgeMarginTop + a);
|
|
330
|
+
c.u(b + this.o("badgeMarginRight") + this.badgeMarginRight + a);
|
|
331
|
+
c.u(b + this.o("badgeMarginBottom") + this.badgeMarginBottom + a);
|
|
325
332
|
if (this.badgeBounds == null) {
|
|
326
|
-
c.u(b + this.
|
|
333
|
+
c.u(b + this.o("badgeBounds") + "{}" + a);
|
|
327
334
|
}
|
|
328
335
|
else {
|
|
329
|
-
c.u(b + this.
|
|
336
|
+
c.u(b + this.o("badgeBounds") + DataLegendVisualData.serialize1(this.badgeBounds) + a);
|
|
337
|
+
}
|
|
338
|
+
c.u(b + this.o("badgeShape") + DataLegendVisualData.serialize1(this.badgeShape) + a);
|
|
339
|
+
if (this.badgeAppearance != null) {
|
|
340
|
+
c.u(b + this.o("badgeAppearance") + this.badgeAppearance.serialize() + a);
|
|
330
341
|
}
|
|
331
|
-
c.u(b + this.
|
|
332
|
-
c.u(b + this.
|
|
333
|
-
c.u(b + this.
|
|
334
|
-
c.u(b + this.
|
|
335
|
-
c.u(b + this.
|
|
336
|
-
c.u(b + this.n("rowMarginBottom") + this.rowMarginBottom + a);
|
|
342
|
+
c.u(b + this.o("rowBounds") + DataLegendVisualData.serialize1(this.rowBounds) + a);
|
|
343
|
+
c.u(b + this.o("rowMarginLeft") + this.rowMarginLeft + a);
|
|
344
|
+
c.u(b + this.o("rowMarginTop") + this.rowMarginTop + a);
|
|
345
|
+
c.u(b + this.o("rowMarginRight") + this.rowMarginRight + a);
|
|
346
|
+
c.u(b + this.o("rowMarginBottom") + this.rowMarginBottom + a);
|
|
337
347
|
let d = new List$1(String_$type, 0);
|
|
338
348
|
for (let e of fromEnum(this.columns)) {
|
|
339
349
|
d.add(e.serialize());
|
|
340
350
|
}
|
|
341
|
-
c.u(b + this.
|
|
351
|
+
c.u(b + this.o("columns") + "[");
|
|
342
352
|
c.u(b + b + stringJoin(", \n" + b + b, ...d.toArray()));
|
|
343
353
|
c.u(b + "]");
|
|
344
354
|
c.u("}");
|
|
345
355
|
return c.toString();
|
|
346
356
|
}
|
|
347
|
-
|
|
357
|
+
o(a) {
|
|
348
358
|
return a + ": ";
|
|
349
359
|
}
|
|
350
360
|
}
|
|
@@ -26,12 +26,12 @@ export let FinancialLegend = /*@__PURE__*/ (() => {
|
|
|
26
26
|
a.collectionChanged = delegateCombine(a.collectionChanged, (a, b) => {
|
|
27
27
|
if (b.oldItems != null) {
|
|
28
28
|
for (let c of fromEn(b.oldItems)) {
|
|
29
|
-
this.bb.
|
|
29
|
+
this.bb.ao(c);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
if (b.newItems != null) {
|
|
33
33
|
for (let d of fromEn(b.newItems)) {
|
|
34
|
-
this.bb.
|
|
34
|
+
this.bb.y(d);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -53,7 +53,7 @@ export let FinancialLegendView = /*@__PURE__*/ (() => {
|
|
|
53
53
|
class FinancialLegendView extends LegendBaseView {
|
|
54
54
|
constructor(a) {
|
|
55
55
|
super(a);
|
|
56
|
-
this.
|
|
56
|
+
this.d = new FinancialLegendViewManager(this);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
FinancialLegendView.$t = /*@__PURE__*/ markType(FinancialLegendView, 'FinancialLegendView', LegendBaseView.$);
|
|
@@ -38,18 +38,18 @@ export let ItemLegend = /*@__PURE__*/ (() => {
|
|
|
38
38
|
a.collectionChanged = delegateCombine(a.collectionChanged, (a, b) => {
|
|
39
39
|
if (b.oldItems != null) {
|
|
40
40
|
for (let c of fromEn(b.oldItems)) {
|
|
41
|
-
this.bb.
|
|
41
|
+
this.bb.ao(c);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
if (b.newItems != null) {
|
|
45
45
|
for (let d of fromEn(b.newItems)) {
|
|
46
|
-
this.bb.
|
|
46
|
+
this.bb.y(d);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
addChildInOrder(a, b) {
|
|
52
|
-
if (!this.ak.
|
|
52
|
+
if (!this.ak.n()) {
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
55
|
this.bl(b);
|
|
@@ -61,7 +61,7 @@ export let ItemLegend = /*@__PURE__*/ (() => {
|
|
|
61
61
|
this.a0(a, b);
|
|
62
62
|
}
|
|
63
63
|
a0(a, b) {
|
|
64
|
-
this.ak.
|
|
64
|
+
this.ak.ag();
|
|
65
65
|
this.clearLegendItemsForSeries(b);
|
|
66
66
|
if (b == null || a == null || a.count == 0) {
|
|
67
67
|
return;
|
|
@@ -85,13 +85,13 @@ export let ItemLegend = /*@__PURE__*/ (() => {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
this.ak.
|
|
88
|
+
this.ak.ah();
|
|
89
89
|
}
|
|
90
90
|
createLegendItemsInsert(a, b) {
|
|
91
91
|
this.bk(a, b);
|
|
92
92
|
}
|
|
93
93
|
bk(a, b) {
|
|
94
|
-
this.ak.
|
|
94
|
+
this.ak.ag();
|
|
95
95
|
try {
|
|
96
96
|
let c = this.bf(b);
|
|
97
97
|
if (b == null || a == null || a.count == 0) {
|
|
@@ -114,7 +114,7 @@ export let ItemLegend = /*@__PURE__*/ (() => {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
finally {
|
|
117
|
-
this.ak.
|
|
117
|
+
this.ak.ah();
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
renderItemwiseContent(a) {
|
|
@@ -192,25 +192,25 @@ export let ItemLegend = /*@__PURE__*/ (() => {
|
|
|
192
192
|
return c;
|
|
193
193
|
}
|
|
194
194
|
be(a) {
|
|
195
|
-
return this.bb.
|
|
195
|
+
return this.bb.aq(a);
|
|
196
196
|
}
|
|
197
197
|
get bc() {
|
|
198
|
-
return this.ak.
|
|
198
|
+
return this.ak.l ? 0 : 1;
|
|
199
199
|
}
|
|
200
200
|
set bc(a) {
|
|
201
|
-
this.ak.
|
|
201
|
+
this.ak.l = a == 0;
|
|
202
202
|
}
|
|
203
203
|
get bi() {
|
|
204
|
-
return this.ak.
|
|
204
|
+
return this.ak.w;
|
|
205
205
|
}
|
|
206
206
|
set bi(a) {
|
|
207
|
-
this.ak.
|
|
207
|
+
this.ak.w = a;
|
|
208
208
|
}
|
|
209
209
|
get bj() {
|
|
210
|
-
return this.ak.
|
|
210
|
+
return this.ak.x;
|
|
211
211
|
}
|
|
212
212
|
set bj(a) {
|
|
213
|
-
this.ak.
|
|
213
|
+
this.ak.x = a;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
ItemLegend.$t = /*@__PURE__*/ markType(ItemLegend, 'ItemLegend', LegendBase.$, [IChartItemLegend_$type]);
|
|
@@ -223,21 +223,21 @@ export let ItemLegendView = /*@__PURE__*/ (() => {
|
|
|
223
223
|
class ItemLegendView extends LegendBaseView {
|
|
224
224
|
constructor(a) {
|
|
225
225
|
super(a);
|
|
226
|
-
this.
|
|
227
|
-
this.
|
|
226
|
+
this.ap = null;
|
|
227
|
+
this.ap = a;
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
super.
|
|
229
|
+
al() {
|
|
230
|
+
super.al();
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
get_k() {
|
|
233
233
|
return true;
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
return this.
|
|
235
|
+
aq(a) {
|
|
236
|
+
return this.d.e(a);
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
g() {
|
|
239
239
|
let a = new LegendVisualData();
|
|
240
|
-
let b = this.
|
|
240
|
+
let b = this.d.g.rootWrapper;
|
|
241
241
|
b = b.getChildAt(0);
|
|
242
242
|
let c = b.getChildCount();
|
|
243
243
|
for (let d = 0; d < c; d++) {
|
|
@@ -246,13 +246,14 @@ export let ItemLegendView = /*@__PURE__*/ (() => {
|
|
|
246
246
|
e.label = f.getText();
|
|
247
247
|
e.label = e.label != null ? e.label.trim() : null;
|
|
248
248
|
e.bounds = new RectData(f.getOffset().left, f.getOffset().top, f.width(), f.height());
|
|
249
|
-
e.labelBounds = this.
|
|
250
|
-
e.badgeBounds = this.
|
|
249
|
+
e.labelBounds = this.i(f);
|
|
250
|
+
e.badgeBounds = this.h(f);
|
|
251
251
|
a.items.add(e);
|
|
252
252
|
}
|
|
253
253
|
if (c == a.items.count) {
|
|
254
254
|
for (let g = 0; g < c; g++) {
|
|
255
255
|
a.items._inner[g].appearance.fill = this.a(g);
|
|
256
|
+
a.items._inner[g].appearance.stroke = this.b(g);
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
259
|
return a;
|
|
@@ -54,7 +54,7 @@ export let LegendBaseViewManager = /*@__PURE__*/ (() => {
|
|
|
54
54
|
let a = LegendItemHelper.b;
|
|
55
55
|
if (window.devicePixelRatio != undefined && (isNaN_(a) || window.devicePixelRatio != a)) {
|
|
56
56
|
LegendItemHelper.b = window.devicePixelRatio;
|
|
57
|
-
this.a.
|
|
57
|
+
this.a.am();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
u() {
|
|
@@ -70,7 +70,7 @@ export let LegendBaseViewManager = /*@__PURE__*/ (() => {
|
|
|
70
70
|
}
|
|
71
71
|
this.g = a;
|
|
72
72
|
this.l = this.i();
|
|
73
|
-
this.l.addClass(this.a.
|
|
73
|
+
this.l.addClass(this.a.t);
|
|
74
74
|
this.g.append(this.l);
|
|
75
75
|
}
|
|
76
76
|
i() {
|
|
@@ -78,8 +78,8 @@ export let LegendBaseViewManager = /*@__PURE__*/ (() => {
|
|
|
78
78
|
}
|
|
79
79
|
h() {
|
|
80
80
|
let a = this.g.createElement("tr");
|
|
81
|
-
a.addClass(this.a.
|
|
82
|
-
let b = this.a.
|
|
81
|
+
a.addClass(this.a.u);
|
|
82
|
+
let b = this.a.l;
|
|
83
83
|
if (b) {
|
|
84
84
|
a.setStyleProperty("display", "block");
|
|
85
85
|
a.setStyleProperty("float", "left");
|
|
@@ -120,14 +120,14 @@ export let LegendBaseViewManager = /*@__PURE__*/ (() => {
|
|
|
120
120
|
c.ah.render(h);
|
|
121
121
|
let i = d.findByClass(".ui-legend-item-badge");
|
|
122
122
|
for (let j = 0; j < i.length; j++) {
|
|
123
|
-
i[j].removeClass("ui-legend-item-badge").addClass(this.a.
|
|
123
|
+
i[j].removeClass("ui-legend-item-badge").addClass(this.a.s);
|
|
124
124
|
}
|
|
125
125
|
i = d.findByClass(".ui-legend-item-text");
|
|
126
126
|
for (let k = 0; k < i.length; k++) {
|
|
127
|
-
if (this.a.
|
|
127
|
+
if (this.a.l) {
|
|
128
128
|
i[k].setStyleProperty("white-space", "nowrap");
|
|
129
129
|
}
|
|
130
|
-
i[k].removeClass("ui-legend-item-text").addClass(this.a.
|
|
130
|
+
i[k].removeClass("ui-legend-item-text").addClass(this.a.v);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -135,10 +135,10 @@ export let LegendBaseViewManager = /*@__PURE__*/ (() => {
|
|
|
135
135
|
}
|
|
136
136
|
o(a, b) {
|
|
137
137
|
let c = this.k(a, this.l);
|
|
138
|
-
c.listen("mouseup", runOn(this.a, this.a.
|
|
139
|
-
c.listen("mousedown", runOn(this.a, this.a.
|
|
140
|
-
c.listen("mouseleave", runOn(this.a, this.a.
|
|
141
|
-
c.listen("mousemove", runOn(this.a, this.a.
|
|
138
|
+
c.listen("mouseup", runOn(this.a, this.a.af));
|
|
139
|
+
c.listen("mousedown", runOn(this.a, this.a.ac));
|
|
140
|
+
c.listen("mouseleave", runOn(this.a, this.a.ad));
|
|
141
|
+
c.listen("mousemove", runOn(this.a, this.a.ae));
|
|
142
142
|
this.f.addItem(a, c);
|
|
143
143
|
if ((this.l.getChildCount() == 0) || (b >= this.l.getChildCount())) {
|
|
144
144
|
this.l.append(c);
|
|
@@ -248,10 +248,10 @@ export let LegendBaseViewManager = /*@__PURE__*/ (() => {
|
|
|
248
248
|
export let LegendBase = /*@__PURE__*/ (() => {
|
|
249
249
|
class LegendBase extends ContentControl {
|
|
250
250
|
onDetachedFromUI() {
|
|
251
|
-
this.ak.
|
|
251
|
+
this.ak.ak();
|
|
252
252
|
}
|
|
253
253
|
onAttachedToUI() {
|
|
254
|
-
this.ak.
|
|
254
|
+
this.ak.ai();
|
|
255
255
|
}
|
|
256
256
|
aj() {
|
|
257
257
|
return new LegendBaseView(this);
|
|
@@ -274,7 +274,7 @@ export let LegendBase = /*@__PURE__*/ (() => {
|
|
|
274
274
|
this.legendItemMouseMove = null;
|
|
275
275
|
let a = this.aj();
|
|
276
276
|
this.a8(a);
|
|
277
|
-
a.
|
|
277
|
+
a.al();
|
|
278
278
|
this.at = new ObservableCollection$1(UIElement.$, 0);
|
|
279
279
|
this.aw = "ig-chart-legend-items-list";
|
|
280
280
|
this.ax = "ig-chart-legend-item";
|
|
@@ -390,34 +390,34 @@ export let LegendBase = /*@__PURE__*/ (() => {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
provideContainer(a) {
|
|
393
|
-
this.ak.
|
|
393
|
+
this.ak.aj(a);
|
|
394
394
|
}
|
|
395
395
|
get aw() {
|
|
396
|
-
return this.ak.
|
|
396
|
+
return this.ak.t;
|
|
397
397
|
}
|
|
398
398
|
set aw(a) {
|
|
399
|
-
this.ak.
|
|
399
|
+
this.ak.t = a;
|
|
400
400
|
}
|
|
401
401
|
get ax() {
|
|
402
|
-
return this.ak.
|
|
402
|
+
return this.ak.u;
|
|
403
403
|
}
|
|
404
404
|
set ax(a) {
|
|
405
|
-
this.ak.
|
|
405
|
+
this.ak.u = a;
|
|
406
406
|
}
|
|
407
407
|
get av() {
|
|
408
|
-
return this.ak.
|
|
408
|
+
return this.ak.s;
|
|
409
409
|
}
|
|
410
410
|
set av(a) {
|
|
411
|
-
this.ak.
|
|
411
|
+
this.ak.s = a;
|
|
412
412
|
}
|
|
413
413
|
get ay() {
|
|
414
|
-
return this.ak.
|
|
414
|
+
return this.ak.v;
|
|
415
415
|
}
|
|
416
416
|
set ay(a) {
|
|
417
|
-
this.ak.
|
|
417
|
+
this.ak.v = a;
|
|
418
418
|
}
|
|
419
419
|
exportVisualData() {
|
|
420
|
-
return this.ak.
|
|
420
|
+
return this.ak.g();
|
|
421
421
|
}
|
|
422
422
|
exportSerializedVisualData() {
|
|
423
423
|
let a = this.exportVisualData();
|
|
@@ -440,39 +440,39 @@ export let LegendBaseView = /*@__PURE__*/ (() => {
|
|
|
440
440
|
class LegendBaseView extends Base {
|
|
441
441
|
constructor(a) {
|
|
442
442
|
super();
|
|
443
|
+
this.d = null;
|
|
443
444
|
this.c = null;
|
|
444
|
-
this.b = null;
|
|
445
|
-
this.s = null;
|
|
446
445
|
this.t = null;
|
|
447
|
-
this.r = null;
|
|
448
446
|
this.u = null;
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
447
|
+
this.s = null;
|
|
448
|
+
this.v = null;
|
|
449
|
+
this.m = false;
|
|
450
|
+
this.j = false;
|
|
452
451
|
this.q = null;
|
|
453
|
-
this.
|
|
454
|
-
this.c =
|
|
455
|
-
this.
|
|
452
|
+
this.r = null;
|
|
453
|
+
this.c = a;
|
|
454
|
+
this.d = new LegendBaseViewManager(this);
|
|
455
|
+
this.d.p();
|
|
456
456
|
}
|
|
457
|
-
|
|
458
|
-
this.
|
|
457
|
+
ak() {
|
|
458
|
+
this.d.u();
|
|
459
459
|
}
|
|
460
|
-
|
|
461
|
-
this.
|
|
460
|
+
ai() {
|
|
461
|
+
this.d.s();
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
al() {
|
|
464
464
|
}
|
|
465
|
-
|
|
465
|
+
get_k() {
|
|
466
466
|
return false;
|
|
467
467
|
}
|
|
468
|
-
get
|
|
469
|
-
return this.
|
|
468
|
+
get k() {
|
|
469
|
+
return this.get_k();
|
|
470
470
|
}
|
|
471
|
-
|
|
471
|
+
e(a) {
|
|
472
472
|
let b;
|
|
473
473
|
let c;
|
|
474
474
|
let d;
|
|
475
|
-
let e = this.
|
|
475
|
+
let e = this.ab(a, b, c, d);
|
|
476
476
|
b = e.p1;
|
|
477
477
|
c = e.p2;
|
|
478
478
|
d = e.p3;
|
|
@@ -480,11 +480,11 @@ export let LegendBaseView = /*@__PURE__*/ (() => {
|
|
|
480
480
|
let g = new LegendMouseButtonEventArgs(b, c, d, f, a);
|
|
481
481
|
return g;
|
|
482
482
|
}
|
|
483
|
-
|
|
483
|
+
f(a) {
|
|
484
484
|
let b;
|
|
485
485
|
let c;
|
|
486
486
|
let d;
|
|
487
|
-
let e = this.
|
|
487
|
+
let e = this.ab(a, b, c, d);
|
|
488
488
|
b = e.p1;
|
|
489
489
|
c = e.p2;
|
|
490
490
|
d = e.p3;
|
|
@@ -492,8 +492,8 @@ export let LegendBaseView = /*@__PURE__*/ (() => {
|
|
|
492
492
|
let g = new LegendMouseEventArgs(b, c, d, f, a);
|
|
493
493
|
return g;
|
|
494
494
|
}
|
|
495
|
-
|
|
496
|
-
b = this.
|
|
495
|
+
ab(a, b, c, d) {
|
|
496
|
+
b = this.c.ai;
|
|
497
497
|
c = null;
|
|
498
498
|
d = null;
|
|
499
499
|
if (a != null) {
|
|
@@ -513,81 +513,81 @@ export let LegendBaseView = /*@__PURE__*/ (() => {
|
|
|
513
513
|
p3: d
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
aa() {
|
|
517
517
|
}
|
|
518
|
-
|
|
518
|
+
n() {
|
|
519
519
|
return true;
|
|
520
520
|
}
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
am(a) {
|
|
524
|
-
}
|
|
525
|
-
ai(a) {
|
|
526
|
-
this.c.t(a);
|
|
521
|
+
z(a) {
|
|
527
522
|
}
|
|
528
523
|
an(a) {
|
|
529
|
-
this.c.x(a);
|
|
530
524
|
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
this.c.o(a, b);
|
|
525
|
+
aj(a) {
|
|
526
|
+
this.d.t(a);
|
|
534
527
|
}
|
|
535
|
-
|
|
536
|
-
this.
|
|
528
|
+
ao(a) {
|
|
529
|
+
this.d.x(a);
|
|
537
530
|
}
|
|
538
|
-
|
|
539
|
-
this.c.
|
|
531
|
+
y(a) {
|
|
532
|
+
let b = this.c.at.indexOf(a);
|
|
533
|
+
this.d.o(a, b);
|
|
540
534
|
}
|
|
541
|
-
|
|
542
|
-
|
|
535
|
+
ag() {
|
|
536
|
+
this.d.q();
|
|
543
537
|
}
|
|
544
|
-
|
|
545
|
-
this.
|
|
546
|
-
this.c.v(this.i);
|
|
538
|
+
ah() {
|
|
539
|
+
this.d.r();
|
|
547
540
|
}
|
|
548
|
-
get
|
|
549
|
-
return this.
|
|
541
|
+
get l() {
|
|
542
|
+
return this.j;
|
|
550
543
|
}
|
|
551
|
-
set
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
544
|
+
set l(a) {
|
|
545
|
+
this.j = a;
|
|
546
|
+
this.d.v(this.j);
|
|
554
547
|
}
|
|
555
548
|
get w() {
|
|
556
549
|
return this.q;
|
|
557
550
|
}
|
|
558
551
|
set w(a) {
|
|
559
552
|
this.q = a;
|
|
560
|
-
this.
|
|
553
|
+
this.d.z(this.q);
|
|
561
554
|
}
|
|
562
|
-
|
|
563
|
-
this.
|
|
555
|
+
get x() {
|
|
556
|
+
return this.r;
|
|
557
|
+
}
|
|
558
|
+
set x(a) {
|
|
559
|
+
this.r = a;
|
|
560
|
+
this.d.aa(this.r);
|
|
564
561
|
}
|
|
565
|
-
|
|
562
|
+
am() {
|
|
563
|
+
this.d.p();
|
|
564
|
+
}
|
|
565
|
+
o(e_) {
|
|
566
566
|
let ev_ = e_.originalEvent;
|
|
567
567
|
return ev_.currentTarget;
|
|
568
568
|
}
|
|
569
|
-
|
|
570
|
-
return this.
|
|
569
|
+
p(e_) {
|
|
570
|
+
return this.d.n(this.o(e_));
|
|
571
571
|
}
|
|
572
|
-
|
|
573
|
-
if (!this.
|
|
574
|
-
this.
|
|
572
|
+
ae(a) {
|
|
573
|
+
if (!this.m) {
|
|
574
|
+
this.c.a3(this.f(this.p(a)));
|
|
575
575
|
}
|
|
576
|
-
this.
|
|
576
|
+
this.m = true;
|
|
577
577
|
}
|
|
578
|
-
|
|
579
|
-
if (this.
|
|
580
|
-
this.
|
|
578
|
+
ad(a) {
|
|
579
|
+
if (this.m) {
|
|
580
|
+
this.c.a4(this.f(this.p(a)));
|
|
581
581
|
}
|
|
582
|
-
this.
|
|
582
|
+
this.m = false;
|
|
583
583
|
}
|
|
584
|
-
|
|
585
|
-
this.
|
|
584
|
+
ac(a) {
|
|
585
|
+
this.c.a5(this.e(this.p(a)));
|
|
586
586
|
}
|
|
587
|
-
|
|
588
|
-
this.
|
|
587
|
+
af(a) {
|
|
588
|
+
this.c.a6(this.e(this.p(a)));
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
i(a) {
|
|
591
591
|
let b = a.querySelectorAll("span *");
|
|
592
592
|
let c = Rect.empty;
|
|
593
593
|
for (let e = 0; e < b.length; e++) {
|
|
@@ -601,16 +601,16 @@ export let LegendBaseView = /*@__PURE__*/ (() => {
|
|
|
601
601
|
}
|
|
602
602
|
return RectData.b(c);
|
|
603
603
|
}
|
|
604
|
-
|
|
604
|
+
h(a) {
|
|
605
605
|
let b = a.querySelectorAll("canvas");
|
|
606
606
|
let c = b.length > 0 ? b[0] : null;
|
|
607
607
|
return c != null ? new RectData(c.getOffset().left, c.getOffset().top, c.width(), c.height()) : null;
|
|
608
608
|
}
|
|
609
609
|
a(a) {
|
|
610
|
-
if (this.
|
|
610
|
+
if (this.c == null || this.c.at == null || this.c.at.count <= a) {
|
|
611
611
|
return null;
|
|
612
612
|
}
|
|
613
|
-
let b = this.
|
|
613
|
+
let b = this.c.at._inner[a];
|
|
614
614
|
if (b == null) {
|
|
615
615
|
return null;
|
|
616
616
|
}
|
|
@@ -621,9 +621,24 @@ export let LegendBaseView = /*@__PURE__*/ (() => {
|
|
|
621
621
|
let d = c.actualItemBrush != null ? c.actualItemBrush : c.itemBrush;
|
|
622
622
|
return AppearanceHelper.b(d);
|
|
623
623
|
}
|
|
624
|
-
|
|
624
|
+
b(a) {
|
|
625
|
+
if (this.c == null || this.c.at == null || this.c.at.count <= a) {
|
|
626
|
+
return null;
|
|
627
|
+
}
|
|
628
|
+
let b = this.c.at._inner[a];
|
|
629
|
+
if (b == null) {
|
|
630
|
+
return null;
|
|
631
|
+
}
|
|
632
|
+
let c = b.content;
|
|
633
|
+
if (c == null) {
|
|
634
|
+
return null;
|
|
635
|
+
}
|
|
636
|
+
let d = c.outline;
|
|
637
|
+
return AppearanceHelper.b(d);
|
|
638
|
+
}
|
|
639
|
+
g() {
|
|
625
640
|
let a = new LegendVisualData();
|
|
626
|
-
let b = this.
|
|
641
|
+
let b = this.d.l;
|
|
627
642
|
let c = b.getChildCount();
|
|
628
643
|
for (let d = 0; d < c; d++) {
|
|
629
644
|
let e = new LegendItemVisualData();
|
|
@@ -631,12 +646,15 @@ export let LegendBaseView = /*@__PURE__*/ (() => {
|
|
|
631
646
|
e.label = f.getText();
|
|
632
647
|
e.label = e.label != null ? e.label.trim() : null;
|
|
633
648
|
e.bounds = new RectData(f.getOffset().left, f.getOffset().top, f.width(), f.height());
|
|
634
|
-
e.labelBounds = this.
|
|
635
|
-
e.badgeBounds = this.
|
|
649
|
+
e.labelBounds = this.i(f);
|
|
650
|
+
e.badgeBounds = this.h(f);
|
|
651
|
+
e.appearance.fill = this.a(d);
|
|
652
|
+
e.appearance.stroke = this.b(d);
|
|
636
653
|
a.items.add(e);
|
|
637
654
|
}
|
|
638
|
-
for (let g = 0; g < this.
|
|
655
|
+
for (let g = 0; g < this.c.at.count; g++) {
|
|
639
656
|
a.items._inner[g].appearance.fill = this.a(g);
|
|
657
|
+
a.items._inner[g].appearance.stroke = this.b(g);
|
|
640
658
|
}
|
|
641
659
|
return a;
|
|
642
660
|
}
|