@umriss-ui/charts 0.4.0 → 0.4.1

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/CHANGELOG.md CHANGED
@@ -29,6 +29,18 @@ interface was still expected to move before `0.3.0`.
29
29
 
30
30
  ---
31
31
 
32
+ ## 0.4.1 – The axis band after the web font (Sep. 2026)
33
+
34
+ ### Fixed
35
+
36
+ - **An axis band no longer keeps the width of the fallback font.** A chart
37
+ laid out before its web font had arrived remembered the wider band under the
38
+ hysteresis (R-3.4) and kept it - the plot stood up to seven pixels too far in,
39
+ or not, depending on which came first. The band is now measured anew once the
40
+ font is there, and on a change of theme.
41
+
42
+ ---
43
+
32
44
  ## 0.4.0 – The charts examined (Sep. 2026)
33
45
 
34
46
  The result of a review of the whole package (`.scratch/charts-review/spec.md`),
package/dist/charts.js CHANGED
@@ -1251,7 +1251,7 @@ class Ee {
1251
1251
  x(this, "onPerf", null);
1252
1252
  x(this, "onFontsLoaded", () => {
1253
1253
  var t;
1254
- (t = this.measurer) == null || t.clear(), this.markLayoutDirty();
1254
+ (t = this.measurer) == null || t.clear(), this.hysteresis.clear(), this.markLayoutDirty();
1255
1255
  });
1256
1256
  x(this, "themeRoot", null);
1257
1257
  /* ---------- Cursor sync (charts-long-series 04) ----------
@@ -1549,7 +1549,7 @@ class Ee {
1549
1549
  var r;
1550
1550
  this.container = t, this.themeRoot = s, this.seriesCanvas = e, this.overlayCanvas = n, this.seriesCtx = e.getContext("2d"), this.overlayCtx = n.getContext("2d"), this.measurer = new Ze(s), this.dpr = typeof devicePixelRatio == "number" ? devicePixelRatio : 1, this.rebindDprWatch(), this.unsubscribeTheme = Ue(() => {
1551
1551
  var a;
1552
- this.theme = null, this.painted.clear(), (a = this.measurer) == null || a.clear(), this.markLayoutDirty();
1552
+ this.theme = null, this.painted.clear(), (a = this.measurer) == null || a.clear(), this.hysteresis.clear(), this.markLayoutDirty();
1553
1553
  });
1554
1554
  const o = typeof document > "u" ? void 0 : document.fonts;
1555
1555
  (r = o == null ? void 0 : o.addEventListener) == null || r.call(o, "loadingdone", this.onFontsLoaded), this.theme = null, this.painted.clear(), this.markLayoutDirty();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/charts",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Canvas-based chart library - few chart kinds, uncompromisingly clean, high performance.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",
@@ -58,7 +58,7 @@
58
58
  "vite": "^6.0.0",
59
59
  "vite-plugin-dts": "^4.3.0",
60
60
  "@umriss-ui/demo": "0.0.0",
61
- "@umriss-ui/core": "0.4.0"
61
+ "@umriss-ui/core": "0.7.0"
62
62
  },
63
63
  "scripts": {
64
64
  "props": "node --disable-warning=ExperimentalWarning --experimental-strip-types demo/props.ts",