@codeauradev/ngx-wind-charts 1.0.0 → 1.0.8
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/fesm2022/codeauradev-ngx-wind-charts-map.mjs +13 -7
- package/fesm2022/codeauradev-ngx-wind-charts-map.mjs.map +1 -1
- package/fesm2022/codeauradev-ngx-wind-charts.mjs +270 -131
- package/fesm2022/codeauradev-ngx-wind-charts.mjs.map +1 -1
- package/ngx-charts.css +103 -8
- package/package.json +1 -1
- package/types/codeauradev-ngx-wind-charts.d.ts +13 -0
package/ngx-charts.css
CHANGED
|
@@ -27,6 +27,29 @@
|
|
|
27
27
|
line-height: 1.45;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
ngx-bar-chart > ngx-chart-frame {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex: 1 1 auto;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
min-height: 0;
|
|
37
|
+
min-width: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
ngx-bar-chart .ngx-charts {
|
|
41
|
+
flex: 1 1 auto;
|
|
42
|
+
height: 100%;
|
|
43
|
+
min-height: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ngx-bar-chart .ngx-plot {
|
|
47
|
+
position: relative;
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
height: auto;
|
|
50
|
+
min-height: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
30
53
|
.ngx-plot {
|
|
31
54
|
position: relative;
|
|
32
55
|
width: 100%;
|
|
@@ -34,6 +57,16 @@
|
|
|
34
57
|
min-width: 0;
|
|
35
58
|
}
|
|
36
59
|
|
|
60
|
+
.ngx-stretch {
|
|
61
|
+
position: absolute;
|
|
62
|
+
inset: 0;
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
max-width: 100%;
|
|
67
|
+
max-height: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
37
70
|
.ngx-fill {
|
|
38
71
|
position: absolute;
|
|
39
72
|
inset: 0;
|
|
@@ -90,8 +123,11 @@
|
|
|
90
123
|
.ngx-tip {
|
|
91
124
|
position: absolute;
|
|
92
125
|
z-index: 20;
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: 0.25rem;
|
|
93
129
|
width: max-content;
|
|
94
|
-
max-width:
|
|
130
|
+
max-width: 16rem;
|
|
95
131
|
transform: translateY(-100%);
|
|
96
132
|
border: 1px solid var(--color-border, #e2e8f0);
|
|
97
133
|
border-radius: 0.5rem;
|
|
@@ -104,9 +140,16 @@
|
|
|
104
140
|
pointer-events: none;
|
|
105
141
|
}
|
|
106
142
|
|
|
143
|
+
.ngx-tip-row {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
gap: 0.4rem;
|
|
147
|
+
}
|
|
148
|
+
|
|
107
149
|
.ngx-legend {
|
|
108
150
|
display: flex;
|
|
109
151
|
flex-wrap: wrap;
|
|
152
|
+
justify-content: center;
|
|
110
153
|
gap: 0.5rem 1rem;
|
|
111
154
|
margin: 0;
|
|
112
155
|
padding: 0;
|
|
@@ -150,17 +193,69 @@
|
|
|
150
193
|
animation: ngx-in 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
151
194
|
}
|
|
152
195
|
|
|
196
|
+
.ngx-grow-y,
|
|
197
|
+
.ngx-grow-x,
|
|
198
|
+
.ngx-pop {
|
|
199
|
+
transform-box: fill-box;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ngx-grow-bottom { transform-origin: center bottom; }
|
|
203
|
+
.ngx-grow-top { transform-origin: center top; }
|
|
204
|
+
.ngx-grow-left { transform-origin: left center; }
|
|
205
|
+
.ngx-grow-right { transform-origin: right center; }
|
|
206
|
+
.ngx-pop { transform-origin: center; }
|
|
207
|
+
|
|
208
|
+
.ngx-grow-y { animation: ngx-grow-y 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
|
|
209
|
+
.ngx-grow-x { animation: ngx-grow-x 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
|
|
210
|
+
.ngx-pop { animation: ngx-pop 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
|
|
211
|
+
|
|
212
|
+
.ngx-rise-on {
|
|
213
|
+
transform-box: view-box;
|
|
214
|
+
transform-origin: 50% var(--ngx-rise-origin);
|
|
215
|
+
animation: ngx-rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ngx-draw {
|
|
219
|
+
animation: ngx-draw 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
220
|
+
}
|
|
221
|
+
|
|
153
222
|
@keyframes ngx-in {
|
|
154
|
-
from {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
223
|
+
from { opacity: 0; }
|
|
224
|
+
to { opacity: 1; }
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes ngx-grow-y {
|
|
228
|
+
from { transform: scaleY(0); }
|
|
229
|
+
to { transform: scaleY(1); }
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@keyframes ngx-grow-x {
|
|
233
|
+
from { transform: scaleX(0); }
|
|
234
|
+
to { transform: scaleX(1); }
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@keyframes ngx-pop {
|
|
238
|
+
from { transform: scale(0); }
|
|
239
|
+
to { transform: scale(1); }
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@keyframes ngx-rise {
|
|
243
|
+
from { transform: scaleY(0); }
|
|
244
|
+
to { transform: scaleY(1); }
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@keyframes ngx-draw {
|
|
248
|
+
from { stroke-dashoffset: 1; }
|
|
249
|
+
to { stroke-dashoffset: 0; }
|
|
160
250
|
}
|
|
161
251
|
|
|
162
252
|
@media (prefers-reduced-motion: reduce) {
|
|
163
|
-
.ngx-in
|
|
253
|
+
.ngx-in,
|
|
254
|
+
.ngx-grow-y,
|
|
255
|
+
.ngx-grow-x,
|
|
256
|
+
.ngx-pop,
|
|
257
|
+
.ngx-rise-on,
|
|
258
|
+
.ngx-draw {
|
|
164
259
|
animation: none;
|
|
165
260
|
}
|
|
166
261
|
}
|
package/package.json
CHANGED
|
@@ -90,6 +90,7 @@ interface BarMark {
|
|
|
90
90
|
labelX: number;
|
|
91
91
|
labelY: number;
|
|
92
92
|
showLabel: boolean;
|
|
93
|
+
origin: 'top' | 'bottom' | 'left' | 'right';
|
|
93
94
|
}
|
|
94
95
|
interface BarLayout {
|
|
95
96
|
empty: boolean;
|
|
@@ -126,6 +127,8 @@ interface TrendLayout {
|
|
|
126
127
|
ticks: TickMark[];
|
|
127
128
|
categories: CategoryLabel[];
|
|
128
129
|
zero: ZeroLine | null;
|
|
130
|
+
baseline: number;
|
|
131
|
+
fromZero: boolean;
|
|
129
132
|
legend: LegendItem[];
|
|
130
133
|
}
|
|
131
134
|
interface PieSlice {
|
|
@@ -260,6 +263,7 @@ declare function layoutTrend(input: {
|
|
|
260
263
|
format: (value: number) => string;
|
|
261
264
|
filled?: boolean;
|
|
262
265
|
stacked?: boolean;
|
|
266
|
+
min?: number;
|
|
263
267
|
}): TrendLayout;
|
|
264
268
|
declare function layoutPie(input: {
|
|
265
269
|
data: {
|
|
@@ -314,6 +318,7 @@ declare function layoutHeatmap(input: {
|
|
|
314
318
|
}): HeatLayout;
|
|
315
319
|
export declare class NgxLineChart {
|
|
316
320
|
private readonly host;
|
|
321
|
+
readonly fillId: string;
|
|
317
322
|
readonly data: import("@angular/core").InputSignal<CategoryDatum[] | undefined>;
|
|
318
323
|
readonly series: import("@angular/core").InputSignal<ChartSeries[] | undefined>;
|
|
319
324
|
readonly categories: import("@angular/core").InputSignal<string[] | undefined>;
|
|
@@ -326,6 +331,7 @@ export declare class NgxLineChart {
|
|
|
326
331
|
readonly colors: import("@angular/core").InputSignal<readonly string[] | undefined>;
|
|
327
332
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
328
333
|
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
334
|
+
readonly min: import("@angular/core").InputSignal<number | undefined>;
|
|
329
335
|
readonly animate: import("@angular/core").InputSignal<boolean>;
|
|
330
336
|
readonly box: {
|
|
331
337
|
width: import("@angular/core").WritableSignal<number>;
|
|
@@ -336,8 +342,10 @@ export declare class NgxLineChart {
|
|
|
336
342
|
readonly normalized: import("@angular/core").Signal<NormalizedSeries>;
|
|
337
343
|
readonly layout: import("@angular/core").Signal<TrendLayout>;
|
|
338
344
|
readonly legendOn: import("@angular/core").Signal<boolean>;
|
|
345
|
+
readonly riseOrigin: import("@angular/core").Signal<number>;
|
|
339
346
|
readonly headers: import("@angular/core").Signal<string[]>;
|
|
340
347
|
readonly rows: import("@angular/core").Signal<string[][]>;
|
|
348
|
+
drawDelay(index: number, count: number): number;
|
|
341
349
|
onPoint(point: TrendPoint, event: PointerEvent): void;
|
|
342
350
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxLineChart, never>;
|
|
343
351
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgxLineChart, "ngx-line-chart, ngx-area-chart", never, {
|
|
@@ -401,6 +409,11 @@ export declare class NgxLineChart {
|
|
|
401
409
|
"required": false;
|
|
402
410
|
"isSignal": true;
|
|
403
411
|
};
|
|
412
|
+
"min": {
|
|
413
|
+
"alias": "min";
|
|
414
|
+
"required": false;
|
|
415
|
+
"isSignal": true;
|
|
416
|
+
};
|
|
404
417
|
"animate": {
|
|
405
418
|
"alias": "animate";
|
|
406
419
|
"required": false;
|