cats-charts 0.0.90 → 0.0.91

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.
@@ -5299,7 +5299,10 @@ class GaugeChart {
5299
5299
  chartInstance;
5300
5300
  chartResizeObserver;
5301
5301
  previousReactiveSignature = '';
5302
- constructor(chartService) {
5302
+ // Keep direct construction backwards compatible for consumers that build chart
5303
+ // options outside Angular's DI context. Angular still injects the root service
5304
+ // when this class is created as a component.
5305
+ constructor(chartService = new Charts()) {
5303
5306
  this.chartService = chartService;
5304
5307
  }
5305
5308
  ngOnChanges(changes) {
@@ -5524,7 +5527,7 @@ class GaugeChart {
5524
5527
  axisLine: {
5525
5528
  lineStyle: {
5526
5529
  width: 0,
5527
- color: [1, 'transparent'],
5530
+ color: [[1, 'transparent']],
5528
5531
  },
5529
5532
  },
5530
5533
  pointer: {
@@ -6267,6 +6270,10 @@ class GanttChart {
6267
6270
  zoomWheelHandler;
6268
6271
  visibleRows = [];
6269
6272
  rowIndexMap = new Map();
6273
+ constructor(chartService, cdr) {
6274
+ this.chartService = chartService;
6275
+ this.cdr = cdr;
6276
+ }
6270
6277
  get deafultColors() {
6271
6278
  return this.chartService.defaultColors;
6272
6279
  }
@@ -6446,10 +6453,6 @@ class GanttChart {
6446
6453
  return (this.config?.customLegend?.position === 'left' ||
6447
6454
  this.config?.customLegend?.position === 'right');
6448
6455
  }
6449
- constructor(chartService, cdr) {
6450
- this.chartService = chartService;
6451
- this.cdr = cdr;
6452
- }
6453
6456
  /* ------------------ CHANGE HANDLING ------------------ */
6454
6457
  ngOnChanges(changes) {
6455
6458
  if (!this.config)