@codeauradev/ngx-wind-charts 1.0.0 → 1.0.4

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/ngx-charts.css CHANGED
@@ -90,8 +90,11 @@
90
90
  .ngx-tip {
91
91
  position: absolute;
92
92
  z-index: 20;
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 0.25rem;
93
96
  width: max-content;
94
- max-width: 14rem;
97
+ max-width: 16rem;
95
98
  transform: translateY(-100%);
96
99
  border: 1px solid var(--color-border, #e2e8f0);
97
100
  border-radius: 0.5rem;
@@ -104,9 +107,16 @@
104
107
  pointer-events: none;
105
108
  }
106
109
 
110
+ .ngx-tip-row {
111
+ display: flex;
112
+ align-items: center;
113
+ gap: 0.4rem;
114
+ }
115
+
107
116
  .ngx-legend {
108
117
  display: flex;
109
118
  flex-wrap: wrap;
119
+ justify-content: center;
110
120
  gap: 0.5rem 1rem;
111
121
  margin: 0;
112
122
  padding: 0;
@@ -150,17 +160,69 @@
150
160
  animation: ngx-in 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
151
161
  }
152
162
 
163
+ .ngx-grow-y,
164
+ .ngx-grow-x,
165
+ .ngx-pop {
166
+ transform-box: fill-box;
167
+ }
168
+
169
+ .ngx-grow-bottom { transform-origin: center bottom; }
170
+ .ngx-grow-top { transform-origin: center top; }
171
+ .ngx-grow-left { transform-origin: left center; }
172
+ .ngx-grow-right { transform-origin: right center; }
173
+ .ngx-pop { transform-origin: center; }
174
+
175
+ .ngx-grow-y { animation: ngx-grow-y 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
176
+ .ngx-grow-x { animation: ngx-grow-x 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
177
+ .ngx-pop { animation: ngx-pop 280ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
178
+
179
+ .ngx-rise-on {
180
+ transform-box: view-box;
181
+ transform-origin: 50% var(--ngx-rise-origin);
182
+ animation: ngx-rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
183
+ }
184
+
185
+ .ngx-draw {
186
+ animation: ngx-draw 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
187
+ }
188
+
153
189
  @keyframes ngx-in {
154
- from {
155
- opacity: 0;
156
- }
157
- to {
158
- opacity: 1;
159
- }
190
+ from { opacity: 0; }
191
+ to { opacity: 1; }
192
+ }
193
+
194
+ @keyframes ngx-grow-y {
195
+ from { transform: scaleY(0); }
196
+ to { transform: scaleY(1); }
197
+ }
198
+
199
+ @keyframes ngx-grow-x {
200
+ from { transform: scaleX(0); }
201
+ to { transform: scaleX(1); }
202
+ }
203
+
204
+ @keyframes ngx-pop {
205
+ from { transform: scale(0); }
206
+ to { transform: scale(1); }
207
+ }
208
+
209
+ @keyframes ngx-rise {
210
+ from { transform: scaleY(0); }
211
+ to { transform: scaleY(1); }
212
+ }
213
+
214
+ @keyframes ngx-draw {
215
+ from { stroke-dashoffset: 1; }
216
+ to { stroke-dashoffset: 0; }
160
217
  }
161
218
 
162
219
  @media (prefers-reduced-motion: reduce) {
163
- .ngx-in {
220
+ .ngx-in,
221
+ .ngx-grow-y,
222
+ .ngx-grow-x,
223
+ .ngx-pop,
224
+ .ngx-rise-on,
225
+ .ngx-draw {
164
226
  animation: none;
165
227
  }
166
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeauradev/ngx-wind-charts",
3
- "version": "1.0.0",
3
+ "version": "1.0.4",
4
4
  "description": "Angular 22 charts styled with Tailwind CSS, including a USA choropleth. Pass data in, get SVG charts out.",
5
5
  "keywords": [
6
6
  "angular",
@@ -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;