Skip to content

v1.1.0

Latest

Choose a tag to compare

@n1crack n1crack released this 23 Jul 17:35

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, f fits, 0
    resets, Home centres the root, Esc clears. The chart is now a tab stop.
    keyboard: false opts out.
  • Selectionselect(ids), getSelection(), a selectionChange event,
    and, behind selection: true, pointer selection: click, ctrl/cmd-click,
    shift-click, shift-drag for a box, alt-drag for a lasso. New selectionStroke
    theme tokens.

Changed

  • data is now the only required option. nodeSize defaults to
    { w: 180, h: 64 } (exported as DEFAULT_NODE_SIZE); label defaults to a
    node's name, label, title or id. createKlad(host, { data }) draws a
    chart.

Fixed

  • The minimap refits after isolate instead of drawing the branch squashed
    against its old corner.

Published from CI with provenance. Full notes per package in the changelogs:
@klad/core.