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
|
@@ -43,21 +43,21 @@ var ScaleLegend = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(ScaleLegend.prototype, "legendScaleElement", {
|
|
45
45
|
get: function () {
|
|
46
|
-
return this.bd.
|
|
46
|
+
return this.bd.bb;
|
|
47
47
|
},
|
|
48
48
|
enumerable: false,
|
|
49
49
|
configurable: true
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(ScaleLegend.prototype, "minText", {
|
|
52
52
|
get: function () {
|
|
53
|
-
return this.bd.
|
|
53
|
+
return this.bd.a7;
|
|
54
54
|
},
|
|
55
55
|
enumerable: false,
|
|
56
56
|
configurable: true
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(ScaleLegend.prototype, "maxText", {
|
|
59
59
|
get: function () {
|
|
60
|
-
return this.bd.
|
|
60
|
+
return this.bd.a6;
|
|
61
61
|
},
|
|
62
62
|
enumerable: false,
|
|
63
63
|
configurable: true
|
|
@@ -73,14 +73,14 @@ var ScaleLegend = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
73
73
|
configurable: true
|
|
74
74
|
});
|
|
75
75
|
ScaleLegend.prototype.bi = function () {
|
|
76
|
-
this.bd.
|
|
76
|
+
this.bd.a3();
|
|
77
77
|
};
|
|
78
78
|
ScaleLegend.prototype.restoreOriginalState = function () {
|
|
79
79
|
this.bi();
|
|
80
80
|
};
|
|
81
81
|
ScaleLegend.prototype.bl = function (a) {
|
|
82
82
|
if (a == null) {
|
|
83
|
-
return this.bd.
|
|
83
|
+
return this.bd.ba();
|
|
84
84
|
}
|
|
85
85
|
return ColorUtil.v(a);
|
|
86
86
|
};
|
|
@@ -105,11 +105,11 @@ var ScaleLegend = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
105
105
|
var a = false;
|
|
106
106
|
var b = typeCast(Shape.$, this.legendScaleElement);
|
|
107
107
|
if (b != null) {
|
|
108
|
-
var c_1 = this.bd.
|
|
109
|
-
if (!this.bc.forScaleColors(function (d, e) { return _this.bd.
|
|
108
|
+
var c_1 = this.bd.ax();
|
|
109
|
+
if (!this.bc.forScaleColors(function (d, e) { return _this.bd.az(c_1, _this.bl(d), e); })) {
|
|
110
110
|
a = true;
|
|
111
111
|
}
|
|
112
|
-
this.bd.
|
|
112
|
+
this.bd.a4(b, a, c_1);
|
|
113
113
|
}
|
|
114
114
|
if (this.minText != null) {
|
|
115
115
|
this.minText.al = this.bc.minScaleText;
|
|
@@ -129,34 +129,34 @@ var ScaleLegendView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
129
129
|
__extends(ScaleLegendView, _super);
|
|
130
130
|
function ScaleLegendView(a) {
|
|
131
131
|
var _this = _super.call(this, a) || this;
|
|
132
|
-
_this.ap = null;
|
|
133
|
-
_this.ba = null;
|
|
134
|
-
_this.a6 = null;
|
|
135
|
-
_this.a5 = null;
|
|
136
|
-
_this.ao = null;
|
|
137
132
|
_this.aq = null;
|
|
138
|
-
_this.bb =
|
|
139
|
-
_this.ar = false;
|
|
140
|
-
_this.as = 0;
|
|
141
|
-
_this.a8 = null;
|
|
133
|
+
_this.bb = null;
|
|
142
134
|
_this.a7 = null;
|
|
143
|
-
_this.
|
|
135
|
+
_this.a6 = null;
|
|
136
|
+
_this.ap = null;
|
|
137
|
+
_this.ar = null;
|
|
138
|
+
_this.bc = new Size();
|
|
139
|
+
_this.as = false;
|
|
140
|
+
_this.at = 0;
|
|
141
|
+
_this.a9 = null;
|
|
142
|
+
_this.a8 = null;
|
|
143
|
+
_this.aq = a;
|
|
144
|
+
_this.a7 = new TextBlock();
|
|
144
145
|
_this.a6 = new TextBlock();
|
|
145
|
-
_this.
|
|
146
|
-
_this.ba = new Polygon();
|
|
146
|
+
_this.bb = new Polygon();
|
|
147
147
|
return _this;
|
|
148
148
|
}
|
|
149
|
-
ScaleLegendView.prototype.
|
|
149
|
+
ScaleLegendView.prototype.a3 = function () {
|
|
150
150
|
};
|
|
151
|
-
ScaleLegendView.prototype.
|
|
151
|
+
ScaleLegendView.prototype.aa = function () {
|
|
152
152
|
};
|
|
153
|
-
ScaleLegendView.prototype.
|
|
153
|
+
ScaleLegendView.prototype.ba = function () {
|
|
154
154
|
return Color.u(0, 0, 0, 0);
|
|
155
155
|
};
|
|
156
|
-
ScaleLegendView.prototype.
|
|
156
|
+
ScaleLegendView.prototype.ax = function () {
|
|
157
157
|
return new GradientData();
|
|
158
158
|
};
|
|
159
|
-
ScaleLegendView.prototype.
|
|
159
|
+
ScaleLegendView.prototype.az = function (a, b, c) {
|
|
160
160
|
var d = a;
|
|
161
161
|
d.a.add(((function () {
|
|
162
162
|
var $ret = new GradientStopData();
|
|
@@ -169,77 +169,77 @@ var ScaleLegendView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
169
169
|
return $ret;
|
|
170
170
|
})()));
|
|
171
171
|
};
|
|
172
|
-
ScaleLegendView.prototype.
|
|
172
|
+
ScaleLegendView.prototype.a4 = function (a, b, c) {
|
|
173
173
|
if (b) {
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
174
|
+
this.a8 = this.aq.bc.actualMarkerBrush;
|
|
175
|
+
this.ap = null;
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
178
|
+
this.a8 = null;
|
|
179
|
+
this.ap = c;
|
|
180
|
+
this.ap.b();
|
|
181
181
|
}
|
|
182
|
-
this.
|
|
182
|
+
this.a0();
|
|
183
183
|
};
|
|
184
|
-
ScaleLegendView.prototype.
|
|
185
|
-
_super.prototype.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
184
|
+
ScaleLegendView.prototype.aj = function (a) {
|
|
185
|
+
_super.prototype.aj.call(this, a);
|
|
186
|
+
this.ar = this.d.b(a);
|
|
187
|
+
this.bc = this.d.ab();
|
|
188
|
+
this.a0();
|
|
189
189
|
};
|
|
190
|
-
ScaleLegendView.prototype.
|
|
191
|
-
if (!this.
|
|
192
|
-
this.
|
|
193
|
-
if (this.
|
|
194
|
-
this.
|
|
190
|
+
ScaleLegendView.prototype.a0 = function () {
|
|
191
|
+
if (!this.as) {
|
|
192
|
+
this.as = true;
|
|
193
|
+
if (this.d.g != null) {
|
|
194
|
+
this.d.g.setTimeout(runOn(this, this.a5), 0);
|
|
195
195
|
}
|
|
196
196
|
else {
|
|
197
|
-
window.setTimeout(runOn(this, this.
|
|
197
|
+
window.setTimeout(runOn(this, this.a5), 0);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
ScaleLegendView.prototype.
|
|
202
|
-
if (this.
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
201
|
+
ScaleLegendView.prototype.a5 = function () {
|
|
202
|
+
if (this.as) {
|
|
203
|
+
this.as = false;
|
|
204
|
+
this.a2();
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
ScaleLegendView.prototype.
|
|
208
|
-
if (this.
|
|
207
|
+
ScaleLegendView.prototype.a2 = function () {
|
|
208
|
+
if (this.ar == null) {
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
this.
|
|
211
|
+
this.a1();
|
|
212
212
|
};
|
|
213
|
-
ScaleLegendView.prototype.
|
|
213
|
+
ScaleLegendView.prototype.av = function (a) {
|
|
214
214
|
var b = typeCast(TextBlock.$, a);
|
|
215
215
|
if (b != null && b.al != null) {
|
|
216
|
-
return this.
|
|
216
|
+
return this.ar.f(b) + 0;
|
|
217
217
|
}
|
|
218
218
|
return 0;
|
|
219
219
|
};
|
|
220
|
-
ScaleLegendView.prototype.
|
|
221
|
-
return this.
|
|
220
|
+
ScaleLegendView.prototype.au = function (a) {
|
|
221
|
+
return this.at + 0;
|
|
222
222
|
};
|
|
223
|
-
ScaleLegendView.prototype.
|
|
224
|
-
if (this.
|
|
223
|
+
ScaleLegendView.prototype.a1 = function () {
|
|
224
|
+
if (this.aq.bc == null || this.aq.bc.container == null || (this.ap == null && this.a8 == null)) {
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
if (this.
|
|
228
|
-
var a = typeCast(IInternalLegendOwner_$type, this.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
232
|
-
var b = this.
|
|
233
|
-
var c = this.
|
|
227
|
+
if (this.ar.d) {
|
|
228
|
+
var a = typeCast(IInternalLegendOwner_$type, this.aq.bc.container);
|
|
229
|
+
this.ar.ad(a.getFontInfo());
|
|
230
|
+
this.at = a.getFontHeight();
|
|
231
|
+
this.a9 = a.getFontBrush();
|
|
232
|
+
var b = this.av(this.a7);
|
|
233
|
+
var c = this.av(this.a6);
|
|
234
234
|
var d = Math.max(b, c) + 4;
|
|
235
|
-
if (d >= this.
|
|
235
|
+
if (d >= this.bc.width) {
|
|
236
236
|
d = 0;
|
|
237
237
|
}
|
|
238
|
-
var e = this.
|
|
238
|
+
var e = this.bc.width - d;
|
|
239
239
|
var f = 2;
|
|
240
240
|
var g = 2;
|
|
241
241
|
e = e - 4;
|
|
242
|
-
var h = this.
|
|
242
|
+
var h = this.bc.height - 4;
|
|
243
243
|
var i = f + e + 4;
|
|
244
244
|
var j = g;
|
|
245
245
|
var k = h;
|
|
@@ -247,36 +247,36 @@ var ScaleLegendView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
247
247
|
var m = { $type: Point_$type, x: f + (5 / 5) * e, y: g };
|
|
248
248
|
var n = { $type: Point_$type, x: f + (5 / 5) * e, y: h };
|
|
249
249
|
var o = { $type: Point_$type, x: f, y: h };
|
|
250
|
-
var p = this.
|
|
250
|
+
var p = this.bb;
|
|
251
251
|
p.an.clear();
|
|
252
252
|
p.an.add(l);
|
|
253
253
|
p.an.add(m);
|
|
254
254
|
p.an.add(n);
|
|
255
255
|
p.an.add(o);
|
|
256
|
+
this.a7.n = i;
|
|
257
|
+
this.a7.o = j;
|
|
258
|
+
this.a7.ao = this.a9;
|
|
256
259
|
this.a6.n = i;
|
|
257
|
-
this.a6.o = j;
|
|
258
|
-
this.a6.ao = this.
|
|
259
|
-
this.
|
|
260
|
-
|
|
261
|
-
this.a5.ao = this.a8;
|
|
262
|
-
if (!this.aq.e) {
|
|
263
|
-
this.aq.l(0, 0, this.bb.width, this.bb.height);
|
|
260
|
+
this.a6.o = j + k - (this.au(this.a7));
|
|
261
|
+
this.a6.ao = this.a9;
|
|
262
|
+
if (!this.ar.e) {
|
|
263
|
+
this.ar.l(0, 0, this.bc.width, this.bc.height);
|
|
264
264
|
}
|
|
265
|
-
if (this.
|
|
266
|
-
p._fill = this.
|
|
267
|
-
this.
|
|
265
|
+
if (this.ap == null && this.a8 != null) {
|
|
266
|
+
p._fill = this.a8;
|
|
267
|
+
this.ar.u(p);
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
|
-
this.
|
|
270
|
+
this.d.y(this.ar, p, this.ap, new Rect(0, g, f, e, h));
|
|
271
271
|
}
|
|
272
272
|
if (d > 0) {
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
273
|
+
this.ar.x(this.a7);
|
|
274
|
+
this.ar.x(this.a6);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
|
-
ScaleLegendView.prototype.
|
|
279
|
-
_super.prototype.
|
|
278
|
+
ScaleLegendView.prototype.am = function () {
|
|
279
|
+
_super.prototype.am.call(this);
|
|
280
280
|
};
|
|
281
281
|
ScaleLegendView.$t = markType(ScaleLegendView, 'ScaleLegendView', LegendBaseView.$);
|
|
282
282
|
return ScaleLegendView;
|
|
@@ -1837,8 +1837,9 @@ var ScatterBase = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1837
1837
|
for (var ac = 0; ac < this.yo.c.count; ac++) {
|
|
1838
1838
|
t = v.item(ac);
|
|
1839
1839
|
u = w.item(ac);
|
|
1840
|
+
var ad = 1E-10;
|
|
1840
1841
|
if (x) {
|
|
1841
|
-
if (t >= k && t <= l && u >= m && u <= n) {
|
|
1842
|
+
if (t >= k - ad && t <= l + ad && u >= m - ad && u <= n + ad) {
|
|
1842
1843
|
c[ac].x = r.ek(t, h);
|
|
1843
1844
|
c[ac].y = s.ek(u, i);
|
|
1844
1845
|
}
|
|
@@ -1854,7 +1855,7 @@ var ScatterBase = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1854
1855
|
}
|
|
1855
1856
|
}
|
|
1856
1857
|
else {
|
|
1857
|
-
if (t >= k && t <= l && u >= m && u <= n) {
|
|
1858
|
+
if (t >= k - ad && t <= l + ad && u >= m - ad && u <= n + ad) {
|
|
1858
1859
|
c[ac].x = r.ek(t, h);
|
|
1859
1860
|
c[ac].y = s.ek(u, i);
|
|
1860
1861
|
}
|