Skip to content

1.1.0

Choose a tag to compare

@yanqingwang yanqingwang released this 03 Oct 01:18
· 7 commits to main since this release

1.1.0

Two additions, both closing gaps where the format supported something the UI did not.

Label font size

items[].size was in the file format, honoured by the canvas and honoured by the image exporter —
and there was no interface anywhere that could set it. A format field with no writer is a field only
a hand-editor can reach.

Select a label → Label → Text size. Fixed steps of 8 / 11 / 14 / 18 / 24 / 32 / 48 px, plus
Custom… for anything else, plus Default to clear the override and go back to following the
chart's base size.

Fixed steps rather than a slider or a number field, because neither of those shows the result before
you commit to it. The steps are spread far enough apart that you can tell at a glance which one is
checked.

Overlapping labels

A label sitting under another was unreachable. Two labels at the same coordinate are identical in the
file except for which comes first, and a pointer event only ever reports the topmost one — so clicking
the lower one always hit the upper one.

Two ways out, both now available:

  • Click the same spot repeatedly to step down through the stack. It wraps round rather than
    sticking.
  • Label → Bring to front / Send to back, for when you would rather not hunt. Both are disabled
    when they would change nothing.

Order is stored in the file, so it survives a reload.

Also

  • The two new actions are undoable like everything else.
  • Script/mdx_chart.py gains set_item_size, bring_to_front, send_to_back, and the matching
    set-item-size / reorder-item CLI commands.

No format changes: 1.0.0 files open in 1.1.0 unchanged.