mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
Inspector: live data updates under interactive selections
This commit is contained in:
@@ -61,6 +61,12 @@ when no chart is up), wrapping the view exactly like `toImageURL`. It works in t
|
||||
a collapsed inspector costs nothing, which is why the panel reads on demand rather than on
|
||||
every render. (A multi-view spec yields several tables; the panel's `SelectControl` picker
|
||||
chooses which to show — labels never expose Vega's compiler names, see arch 10.)
|
||||
- **Stay live under interaction.** A selection that _filters_ a downstream view recomputes
|
||||
that view's compiled table in place (no re-embed), so the open panel re-reads to track it —
|
||||
"what am I visualizing now". `RenderHandle.onDataChange` attaches a debounced
|
||||
`view.addDataListener` to each drawn table; a highlight selection (a `condition` encoding)
|
||||
changes no data, so it never fires. Always live, no toggle — gated on the panel being open
|
||||
like the read itself, and re-subscribed per settled render so it tracks the current handle.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user