Skip to content

v0.7.1

Choose a tag to compare

@coredumpdev coredumpdev released this 26 Jul 23:13
· 45 commits to master since this release

A bug-fix release. Every item here was a chart that drew nothing at all, with no error — the failure mode that is hardest to notice and hardest to report.

Python bridge

  • attention_map works with a 2-D matrix again. A numpy array was ravelled into one buffer so its shape never reached the browser, and a list of lists arrived as an Array of Float64Array, which the shape inference (Array.isArray(weights[0])) rejected. Both forms now render identically to the flat form.
  • annotate("band", …) is reachable from Python. from is a Python keyword, so the field is spelled from_ and translated on the way out — previously there was no way to pass it.
  • Wrong field names raise instead of drawing nothing. A 3D box is sized with w/h/d (not width/height/depth); a line/ray annotation runs x0,y0 → x1,y1 (not x1,y1 → x2,y2); fib takes x0,x1,high,low. Each now reports which fields the type takes, and the Python docstrings list them.

Core

  • A polar series added after the first frame is drawn. PolarPlot.addLine/addScatter refit but never scheduled a render, so the series stayed invisible until something resized the container.
  • toDataURL() on a hidden or detached container returns the chart, not a 1×1 blank PNG.
  • A chart that scrolls back into view is current, not stale. With offscreenCulling on, a redraw is now unconditional on re-entry: an app that also skips its own data generation never called render() while away, so the catch-up never triggered.

Examples

  • The svelte gallery's two linked-finance panels build from a use: action rather than onMount — Rollup was deleting the whole onMount(...) call from the production bundle, leaving both panels empty with no error.

Housekeeping

  • plot.ts no longer contains literal NUL bytes, which made file(1) classify it as binary and grep silently report no matches on the largest source file in the repo.