igniteui-webcomponents-charts 7.1.1-beta.14 → 7.1.1-beta.15
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/esm2022/lib/CalloutLayer_combined.d.ts +1 -1
- package/esm2022/lib/CalloutLayer_combined.js +34 -33
- package/esm2022/lib/CalloutViewHelper.d.ts +3 -2
- package/esm2022/lib/CalloutViewHelper.js +9 -3
- package/esm2022/lib/CategoryChart.js +2 -2
- package/esm2022/lib/DomainChartToolbarProvider.js +1 -1
- package/package.json +2 -2
|
@@ -259,7 +259,7 @@ export declare class CalloutLayerView extends AnnotationLayerView {
|
|
|
259
259
|
db(a: TextBlock): Size;
|
|
260
260
|
private cu;
|
|
261
261
|
private co;
|
|
262
|
-
da(a: any, b: Thickness, c: CalloutBadgeInfo): Size;
|
|
262
|
+
da(a: any, b: Thickness, c: CalloutBadgeInfo, d: number): Size;
|
|
263
263
|
c2(a: CalloutView, b: number, c: number): void;
|
|
264
264
|
c3(a: CalloutView, b: CalloutAnnotationWrapper, c: any): void;
|
|
265
265
|
c4(a: Series, b: Brush): Brush;
|
|
@@ -57,12 +57,12 @@ import { stringIsNullOrEmpty } from "igniteui-webcomponents-core";
|
|
|
57
57
|
import { FastItemObjectColumn } from "igniteui-webcomponents-core";
|
|
58
58
|
import { AnnotationLayerView } from "./AnnotationLayerView";
|
|
59
59
|
import { TextBlock } from "igniteui-webcomponents-core";
|
|
60
|
+
import { CalloutViewHelper } from "./CalloutViewHelper";
|
|
60
61
|
import { Color } from "igniteui-webcomponents-core";
|
|
61
62
|
import { Rectangle } from "igniteui-webcomponents-core";
|
|
62
63
|
import { Line } from "igniteui-webcomponents-core";
|
|
63
64
|
import { Image } from "igniteui-webcomponents-core";
|
|
64
65
|
import { TranslateTransform } from "igniteui-webcomponents-core";
|
|
65
|
-
import { CalloutViewHelper } from "./CalloutViewHelper";
|
|
66
66
|
/**
|
|
67
67
|
* @hidden
|
|
68
68
|
*/
|
|
@@ -229,7 +229,7 @@ class CalloutLayer extends AnnotationLayer {
|
|
|
229
229
|
let h = 0;
|
|
230
230
|
for (let i = 0; i < this.acz.count; i++) {
|
|
231
231
|
let j = this.acz._inner[i].b.text;
|
|
232
|
-
let k = this.aa6.da(j, d, null);
|
|
232
|
+
let k = this.aa6.da(j, d, null, this.adk);
|
|
233
233
|
if (!isNaN_(k.height)) {
|
|
234
234
|
f = Math.max(k.height, f);
|
|
235
235
|
}
|
|
@@ -1250,13 +1250,13 @@ class CalloutLayer extends AnnotationLayer {
|
|
|
1250
1250
|
return b;
|
|
1251
1251
|
}
|
|
1252
1252
|
let d = b.length;
|
|
1253
|
-
let e = this.aa6.da(b, a.b.backgroundPadding, null);
|
|
1253
|
+
let e = this.aa6.da(b, a.b.backgroundPadding, null, a.b.strokeThickness);
|
|
1254
1254
|
let f = e.width;
|
|
1255
1255
|
let g = f - c;
|
|
1256
1256
|
while (f - g > 0.0001 && d > 0) {
|
|
1257
1257
|
d--;
|
|
1258
1258
|
b = b.substr(0, d) + "…";
|
|
1259
|
-
e = this.aa6.da(b, a.b.backgroundPadding, null);
|
|
1259
|
+
e = this.aa6.da(b, a.b.backgroundPadding, null, a.b.strokeThickness);
|
|
1260
1260
|
f = e.width;
|
|
1261
1261
|
}
|
|
1262
1262
|
return b;
|
|
@@ -1457,7 +1457,7 @@ class CalloutLayer extends AnnotationLayer {
|
|
|
1457
1457
|
$ret.badgeImage = b.b.badgeImage;
|
|
1458
1458
|
return $ret;
|
|
1459
1459
|
})());
|
|
1460
|
-
let d = this.aa6.da(this.adt(b), b.b.backgroundPadding, c);
|
|
1460
|
+
let d = this.aa6.da(this.adt(b), b.b.backgroundPadding, c, b.b.strokeThickness);
|
|
1461
1461
|
a.o = d.height / 2;
|
|
1462
1462
|
a.p = d.width / 2;
|
|
1463
1463
|
}
|
|
@@ -2191,7 +2191,7 @@ class CalloutLayerView extends AnnotationLayerView {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
return this.ct;
|
|
2193
2193
|
}
|
|
2194
|
-
da(a, b, c) {
|
|
2194
|
+
da(a, b, c, d) {
|
|
2195
2195
|
if (this.co == null) {
|
|
2196
2196
|
this.co = new CalloutView(this);
|
|
2197
2197
|
}
|
|
@@ -2213,9 +2213,9 @@ class CalloutLayerView extends AnnotationLayerView {
|
|
|
2213
2213
|
this.co.aa = null;
|
|
2214
2214
|
this.co.h = false;
|
|
2215
2215
|
}
|
|
2216
|
-
let
|
|
2216
|
+
let e = this.co.aw();
|
|
2217
2217
|
this.co.x = null;
|
|
2218
|
-
return d;
|
|
2218
|
+
return CalloutViewHelper.d(e, d / 2);
|
|
2219
2219
|
}
|
|
2220
2220
|
c2(a, b, c) {
|
|
2221
2221
|
a.u = b;
|
|
@@ -2367,11 +2367,12 @@ class CalloutView extends Base {
|
|
|
2367
2367
|
this.e = a;
|
|
2368
2368
|
let b = CalloutViewHelper.a(this.ay, this.aj.m, this.aj.l, this.at.width, this.at.height, this.o, this.h);
|
|
2369
2369
|
a.ac();
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2370
|
+
let c = isNaN_(this.au.ad) || this.au.ad <= 0 ? 0 : this.au.ad / 2;
|
|
2371
|
+
a.ak(this.u + c, this.v + c);
|
|
2372
|
+
let d = new TranslateTransform();
|
|
2373
|
+
d.j = this.ax.left;
|
|
2374
|
+
d.k = this.ax.top;
|
|
2375
|
+
this.au.j = d;
|
|
2375
2376
|
a.s(this.as);
|
|
2376
2377
|
a.ac();
|
|
2377
2378
|
this.au.width = b.f.width;
|
|
@@ -2380,8 +2381,8 @@ class CalloutView extends Base {
|
|
|
2380
2381
|
this.au.aq = this.m;
|
|
2381
2382
|
a.k(this.au.j);
|
|
2382
2383
|
a.w(this.au);
|
|
2383
|
-
let
|
|
2384
|
-
let
|
|
2384
|
+
let e = b.e;
|
|
2385
|
+
let f = b.d;
|
|
2385
2386
|
if (b.a) {
|
|
2386
2387
|
this.at.n = b.b;
|
|
2387
2388
|
this.at.o = b.c;
|
|
@@ -2389,27 +2390,27 @@ class CalloutView extends Base {
|
|
|
2389
2390
|
this.at.aq = this.k;
|
|
2390
2391
|
a.w(this.at);
|
|
2391
2392
|
if (this.f && this.w != null) {
|
|
2392
|
-
let
|
|
2393
|
-
let
|
|
2394
|
-
let
|
|
2395
|
-
let
|
|
2396
|
-
let
|
|
2393
|
+
let g = this.q;
|
|
2394
|
+
let h = this.at.n + (g / 2);
|
|
2395
|
+
let i = this.at.o + (g / 2);
|
|
2396
|
+
let j = this.at.width - this.q;
|
|
2397
|
+
let k = this.at.height - this.q;
|
|
2397
2398
|
a.ac();
|
|
2398
|
-
let
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
a.af(
|
|
2406
|
-
a.o(this.w, 1,
|
|
2399
|
+
let l = new Rectangle();
|
|
2400
|
+
l.n = h;
|
|
2401
|
+
l.o = i;
|
|
2402
|
+
l.width = j;
|
|
2403
|
+
l.height = k;
|
|
2404
|
+
l.ap = this.at.ap;
|
|
2405
|
+
l.aq = this.at.aq;
|
|
2406
|
+
a.af(l);
|
|
2407
|
+
a.o(this.w, 1, h, i, j, k);
|
|
2407
2408
|
a.ab();
|
|
2408
2409
|
}
|
|
2409
2410
|
}
|
|
2410
2411
|
this.aj.ag = true;
|
|
2411
|
-
this.aj.o =
|
|
2412
|
-
this.aj.n =
|
|
2412
|
+
this.aj.o = e;
|
|
2413
|
+
this.aj.n = f;
|
|
2413
2414
|
a.y(this.aj);
|
|
2414
2415
|
a.ab();
|
|
2415
2416
|
a.ab();
|
|
@@ -2486,7 +2487,7 @@ class CalloutView extends Base {
|
|
|
2486
2487
|
this.ad();
|
|
2487
2488
|
this.as._visibility = 0;
|
|
2488
2489
|
let a = this.av();
|
|
2489
|
-
let b = CalloutViewHelper.
|
|
2490
|
+
let b = CalloutViewHelper.f(this.ar, a.width, a.height, this.as);
|
|
2490
2491
|
this.ax = b;
|
|
2491
2492
|
}
|
|
2492
2493
|
get ak() {
|
|
@@ -2582,7 +2583,7 @@ class CalloutView extends Base {
|
|
|
2582
2583
|
this.aj.l = a.height;
|
|
2583
2584
|
}
|
|
2584
2585
|
av() {
|
|
2585
|
-
return CalloutViewHelper.
|
|
2586
|
+
return CalloutViewHelper.e(this.ay, this.aj.m, this.aj.l, this.at.width, this.at.height, this.o, this.h);
|
|
2586
2587
|
}
|
|
2587
2588
|
af(a, b, c) {
|
|
2588
2589
|
if (this.c == null) {
|
|
@@ -9,8 +9,9 @@ import { CalloutLayout } from "./CalloutLayout";
|
|
|
9
9
|
export declare class CalloutViewHelper extends Base {
|
|
10
10
|
static $t: Type;
|
|
11
11
|
static c(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
12
|
-
static
|
|
12
|
+
static f(a: Point, b: number, c: number, d: Line): Thickness;
|
|
13
13
|
static b(a: boolean, b: number, c: number, d: number): boolean;
|
|
14
|
-
static d(a:
|
|
14
|
+
static d(a: Size, b: number): Size;
|
|
15
|
+
static e(a: Thickness, b: number, c: number, d: number, e: number, f: number, g: boolean): Size;
|
|
15
16
|
static a(a: Thickness, b: number, c: number, d: number, e: number, f: number, g: boolean): CalloutLayout;
|
|
16
17
|
}
|
|
@@ -34,7 +34,7 @@ class CalloutViewHelper extends Base {
|
|
|
34
34
|
}
|
|
35
35
|
return Number.POSITIVE_INFINITY;
|
|
36
36
|
}
|
|
37
|
-
static
|
|
37
|
+
static f(a, b, c, d) {
|
|
38
38
|
let e = a.x;
|
|
39
39
|
let f = a.y;
|
|
40
40
|
let g = 0;
|
|
@@ -91,7 +91,13 @@ class CalloutViewHelper extends Base {
|
|
|
91
91
|
static b(a, b, c, d) {
|
|
92
92
|
return a && b > 0 && c > 0;
|
|
93
93
|
}
|
|
94
|
-
static d(a, b
|
|
94
|
+
static d(a, b) {
|
|
95
|
+
if (isNaN_(b) || b <= 0) {
|
|
96
|
+
return a;
|
|
97
|
+
}
|
|
98
|
+
return new Size(1, a.width + b + b, a.height + b + b);
|
|
99
|
+
}
|
|
100
|
+
static e(a, b, c, d, e, f, g) {
|
|
95
101
|
let h = 0;
|
|
96
102
|
let i = 0;
|
|
97
103
|
let j = d;
|
|
@@ -115,7 +121,7 @@ class CalloutViewHelper extends Base {
|
|
|
115
121
|
}
|
|
116
122
|
static a(a, b, c, d, e, f, g) {
|
|
117
123
|
let h = new CalloutLayout();
|
|
118
|
-
h.f = CalloutViewHelper.
|
|
124
|
+
h.f = CalloutViewHelper.e(a, b, c, d, e, f, g);
|
|
119
125
|
if (g && d > 0 && e > 0) {
|
|
120
126
|
h.a = true;
|
|
121
127
|
if (c > e) {
|
|
@@ -65,7 +65,7 @@ class DomainChartToolbarProvider extends Base {
|
|
|
65
65
|
}
|
|
66
66
|
getDesiredToolbarActions(a, b, c) {
|
|
67
67
|
let d;
|
|
68
|
-
if (a.itemsSource != null && NativeUIComponent.
|
|
68
|
+
if (a.itemsSource != null && NativeUIComponent.ai(16, 0)) {
|
|
69
69
|
let e = new ToolActionGroupHeaderInfo();
|
|
70
70
|
e.name = "AxisFieldLabelHeader";
|
|
71
71
|
e.title = "Label Fields";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-webcomponents-charts",
|
|
3
|
-
"version": "7.1.1-beta.
|
|
3
|
+
"version": "7.1.1-beta.15",
|
|
4
4
|
"description": "Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.",
|
|
5
5
|
"homepage": "https://github.com/IgniteUI/igniteui-webcomponents-charts",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"tslib": "^2.3.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"igniteui-webcomponents-core": "7.1.1-beta.
|
|
39
|
+
"igniteui-webcomponents-core": "7.1.1-beta.15"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": [
|
|
42
42
|
"./esm2022/lib/category-chart-entrypoint.js",
|