Navigating charts too big to see on one screen.
Added
isolate(id)— show one branch as if it were the whole chart. Re-roots
the tree, so the layout, minimap, keyboard tree, search and export all follow
the one branch.isolate(null)restores the rest.fitSubtree(id)— frame one branch instead of the whole chart.getView()/setView(view)— the camera, open branches, highlight and
selection as one serialisable object. Put it in a URL, get a link to a place
in a chart.- Keyboard camera — arrows pan (Shift strides),
+/-zoom,ffits,0
resets,Homecentres the root,Escclears. The chart is now a tab stop.
keyboard: falseopts out. - Selection —
select(ids),getSelection(), aselectionChangeevent,
and, behindselection: true, pointer selection: click, ctrl/cmd-click,
shift-click, shift-drag for a box, alt-drag for a lasso. NewselectionStroke
theme tokens.
Changed
datais now the only required option.nodeSizedefaults to
{ w: 180, h: 64 }(exported asDEFAULT_NODE_SIZE);labeldefaults to a
node'sname,label,titleorid.createKlad(host, { data })draws a
chart.
Fixed
- The minimap refits after
isolateinstead of drawing the branch squashed
against its old corner.
Published from CI with provenance. Full notes per package in the changelogs:
@klad/core.