v0.7.1
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_mapworks 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 anArrayofFloat64Array, which the shape inference (Array.isArray(weights[0])) rejected. Both forms now render identically to the flat form.annotate("band", …)is reachable from Python.fromis a Python keyword, so the field is spelledfrom_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(notwidth/height/depth); aline/rayannotation runsx0,y0 → x1,y1(notx1,y1 → x2,y2);fibtakesx0,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/addScatterrefit 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
offscreenCullingon, a redraw is now unconditional on re-entry: an app that also skips its own data generation never calledrender()while away, so the catch-up never triggered.
Examples
- The svelte gallery's two linked-finance panels build from a
use:action rather thanonMount— Rollup was deleting the wholeonMount(...)call from the production bundle, leaving both panels empty with no error.
Housekeeping
plot.tsno longer contains literal NUL bytes, which madefile(1)classify it as binary andgrepsilently report no matches on the largest source file in the repo.