@pioneer-code/pioneer-charts 22.2.14 → 22.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pioneer-code/pioneer-charts",
3
3
  "description": "Pioneer Charts, a library of data visualization charts built on top of Angular and D3.",
4
- "homepage": "https://charts.pioneercode.com",
4
+ "homepage": "https://pioneercharts.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/PioneerCode/pioneer-charts/issues"
7
7
  },
@@ -22,7 +22,7 @@
22
22
  "type": "git",
23
23
  "url": "git+https://github.com/PioneerCode/pioneer-charts.git"
24
24
  },
25
- "version": "22.2.14",
25
+ "version": "22.2.15",
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
28
  "@angular/common": "^22.1.0",
@@ -3,8 +3,4 @@
3
3
  width: 100%;
4
4
  display: block;
5
5
  }
6
- .dot {
7
- fill: none;
8
- stroke-width: 1px;
9
- }
10
6
  }
@@ -7,10 +7,10 @@ import { TemplateRef, ElementRef } from '@angular/core';
7
7
  * INewChart extends IChart
8
8
  */
9
9
  declare class PcacChartConfig {
10
+ data: PcacData[];
10
11
  /**
11
12
  * Height in pixels
12
13
  */
13
- data: PcacData[];
14
14
  height: number;
15
15
  /**
16
16
  * When true, `height` becomes a *minimum* height: if the container the chart is placed in is
@@ -392,6 +392,19 @@ declare class PcacColorService {
392
392
  private orange;
393
393
  private blue;
394
394
  private alert;
395
+ /**
396
+ * Bumped by every setter, and read by the getters, so anything reading colors inside a reactive
397
+ * context tracks palette changes: the legend's `colorScale` computed recomputes, and every chart
398
+ * (whose build runs in an `effect`) redraws - together, rather than the legend keeping the old
399
+ * swatches while newly built charts took the new palette.
400
+ */
401
+ private readonly version;
402
+ /**
403
+ * Bumps `version` from a setter. `untracked`, because Angular forbids writing a signal inside a
404
+ * `computed` - and a consumer deriving its theme reactively (`computed(() => { setScale(...);
405
+ * ... })`) called these setters there without error before they were reactive.
406
+ */
407
+ private changed;
395
408
  /** A consumer's own scale from `setScale()`; replaces the default palette while set. */
396
409
  private customScale;
397
410
  /**