@swimlane/ngx-charts 20.1.0 → 20.1.2

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.
Files changed (31) hide show
  1. package/esm2020/lib/box-chart/box.component.mjs +4 -3
  2. package/esm2020/lib/bubble-chart/bubble-chart.utils.mjs +2 -2
  3. package/esm2020/lib/bubble-chart/bubble-series.component.mjs +1 -1
  4. package/esm2020/lib/common/axes/x-axis-ticks.component.mjs +2 -1
  5. package/esm2020/lib/common/axes/y-axis-ticks.component.mjs +3 -3
  6. package/esm2020/lib/common/axes/y-axis.component.mjs +1 -2
  7. package/esm2020/lib/common/base-chart.component.mjs +1 -1
  8. package/esm2020/lib/common/charts/chart.component.mjs +3 -3
  9. package/esm2020/lib/common/timeline/timeline.component.mjs +1 -1
  10. package/esm2020/lib/common/tooltip/tooltip.directive.mjs +2 -2
  11. package/esm2020/lib/line-chart/line-chart.component.mjs +1 -1
  12. package/esm2020/lib/line-chart/line.component.mjs +1 -1
  13. package/esm2020/lib/models/chart-data.model.mjs +2 -1
  14. package/esm2020/lib/number-card/card.component.mjs +1 -1
  15. package/esm2020/lib/polar-chart/polar-chart.component.mjs +3 -2
  16. package/esm2020/lib/utils/calculate-width.mjs +1 -1
  17. package/esm2020/lib/utils/color-sets.mjs +2 -2
  18. package/esm2020/lib/utils/throttle.mjs +2 -1
  19. package/fesm2015/swimlane-ngx-charts.mjs +14 -11
  20. package/fesm2015/swimlane-ngx-charts.mjs.map +1 -1
  21. package/fesm2020/swimlane-ngx-charts.mjs +16 -11
  22. package/fesm2020/swimlane-ngx-charts.mjs.map +1 -1
  23. package/lib/bubble-chart/bubble-series.component.d.ts +2 -2
  24. package/lib/common/base-chart.component.d.ts +2 -2
  25. package/lib/line-chart/line-chart.component.d.ts +2 -2
  26. package/lib/line-chart/line.component.d.ts +2 -2
  27. package/lib/number-card/card.component.d.ts +2 -2
  28. package/lib/polar-chart/polar-chart.component.d.ts +2 -2
  29. package/lib/utils/calculate-width.d.ts +1 -1
  30. package/lib/utils/color-sets.d.ts +1 -1
  31. package/package.json +4 -4
@@ -1,11 +1,11 @@
1
- import { SimpleChanges, EventEmitter, OnChanges, TemplateRef } from '@angular/core';
1
+ import { SimpleChanges, EventEmitter, OnChanges, TemplateRef, OnInit } from '@angular/core';
2
2
  import { ColorHelper } from '../common/color.helper';
3
3
  import { BubbleChartSeries } from '../models/chart-data.model';
4
4
  import { PlacementTypes } from '../common/tooltip/position';
5
5
  import { StyleTypes } from '../common/tooltip/style.type';
6
6
  import { ScaleType } from '../common/types/scale-type.enum';
7
7
  import * as i0 from "@angular/core";
8
- export declare class BubbleSeriesComponent implements OnChanges {
8
+ export declare class BubbleSeriesComponent implements OnChanges, OnInit {
9
9
  private platformId;
10
10
  data: BubbleChartSeries;
11
11
  xScale: any;
@@ -1,10 +1,10 @@
1
- import { ElementRef, NgZone, ChangeDetectorRef, EventEmitter, AfterViewInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, NgZone, ChangeDetectorRef, EventEmitter, AfterViewInit, OnDestroy, OnChanges, SimpleChanges, OnInit } from '@angular/core';
2
2
  import { VisibilityObserver } from '../utils/visibility-observer';
3
3
  import { Color } from '../utils/color-sets';
4
4
  import { ScaleType } from './types/scale-type.enum';
5
5
  import { ViewDimensions } from './types/view-dimension.interface';
6
6
  import * as i0 from "@angular/core";
7
- export declare class BaseChartComponent implements OnChanges, AfterViewInit, OnDestroy {
7
+ export declare class BaseChartComponent implements OnChanges, AfterViewInit, OnDestroy, OnInit {
8
8
  protected chartElement: ElementRef;
9
9
  protected zone: NgZone;
10
10
  protected cd: ChangeDetectorRef;
@@ -1,11 +1,11 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, TemplateRef, OnInit } from '@angular/core';
2
2
  import { ColorHelper } from '../common/color.helper';
3
3
  import { BaseChartComponent } from '../common/base-chart.component';
4
4
  import { LegendOptions, LegendPosition } from '../common/types/legend.model';
5
5
  import { ScaleType } from '../common/types/scale-type.enum';
6
6
  import { ViewDimensions } from '../common/types/view-dimension.interface';
7
7
  import * as i0 from "@angular/core";
8
- export declare class LineChartComponent extends BaseChartComponent {
8
+ export declare class LineChartComponent extends BaseChartComponent implements OnInit {
9
9
  legend: boolean;
10
10
  legendTitle: string;
11
11
  legendPosition: LegendPosition;
@@ -1,7 +1,7 @@
1
- import { OnChanges, ElementRef, SimpleChanges } from '@angular/core';
1
+ import { OnChanges, ElementRef, SimpleChanges, OnInit } from '@angular/core';
2
2
  import { Series } from '../models/chart-data.model';
3
3
  import * as i0 from "@angular/core";
4
- export declare class LineComponent implements OnChanges {
4
+ export declare class LineComponent implements OnChanges, OnInit {
5
5
  private element;
6
6
  private platformId;
7
7
  path: string;
@@ -1,7 +1,7 @@
1
- import { EventEmitter, ElementRef, SimpleChanges, OnChanges, ChangeDetectorRef, NgZone, OnDestroy } from '@angular/core';
1
+ import { EventEmitter, ElementRef, SimpleChanges, OnChanges, ChangeDetectorRef, NgZone, OnDestroy, OnInit } from '@angular/core';
2
2
  import { GridData } from '../common/grid-layout.helper';
3
3
  import * as i0 from "@angular/core";
4
- export declare class CardComponent implements OnChanges, OnDestroy {
4
+ export declare class CardComponent implements OnChanges, OnDestroy, OnInit {
5
5
  private cd;
6
6
  private zone;
7
7
  private platformId;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, TemplateRef, OnInit } from '@angular/core';
2
2
  import { ColorHelper } from '../common/color.helper';
3
3
  import { BaseChartComponent } from '../common/base-chart.component';
4
4
  import { LegendPosition } from '../common/types/legend.model';
@@ -6,7 +6,7 @@ import { ScaleType } from '../common/types/scale-type.enum';
6
6
  import { ViewDimensions } from '../common/types/view-dimension.interface';
7
7
  import { Orientation } from '../common/types/orientation.enum';
8
8
  import * as i0 from "@angular/core";
9
- export declare class PolarChartComponent extends BaseChartComponent {
9
+ export declare class PolarChartComponent extends BaseChartComponent implements OnInit {
10
10
  legend: boolean;
11
11
  legendTitle: string;
12
12
  legendPosition: LegendPosition;
@@ -1 +1 @@
1
- export declare function calculateTextWidth(fontFamilyKey: {}, text: string, defaultWidth?: number): any;
1
+ export declare function calculateTextWidth(fontFamilyKey: Record<string, any>, text: string, defaultWidth?: number): any;
@@ -5,4 +5,4 @@ export interface Color {
5
5
  group: ScaleType;
6
6
  domain: string[];
7
7
  }
8
- export declare let colorSets: Color[];
8
+ export declare const colorSets: Color[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swimlane/ngx-charts",
3
- "version": "20.1.0",
3
+ "version": "20.1.2",
4
4
  "description": "Declarative Charting Framework for Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "d3-array": "^2.9.1",
49
49
  "d3-brush": "^2.1.0",
50
- "d3-color": "^2.0.0",
50
+ "d3-color": "^3.1.0",
51
51
  "d3-format": "^2.0.0",
52
52
  "d3-hierarchy": "^2.0.0",
53
53
  "d3-interpolate": "^2.0.1",
@@ -56,8 +56,8 @@
56
56
  "d3-shape": "^2.0.0",
57
57
  "d3-time-format": "^3.0.0",
58
58
  "d3-transition": "^2.0.0",
59
- "tslib": "^2.0.0",
60
- "@types/d3-shape": "^2.0.0"
59
+ "rfdc": "^1.3.0",
60
+ "tslib": "^2.0.0"
61
61
  },
62
62
  "module": "fesm2015/swimlane-ngx-charts.mjs",
63
63
  "es2020": "fesm2020/swimlane-ngx-charts.mjs",