Skip to content

v0.0.0-alpha.6

Pre-release
Pre-release

Choose a tag to compare

@lrstanley lrstanley released this 18 Nov 08:30
v0.0.0-alpha.6
4854719

✨ Highlights

  • Built-in tooltips: give any node a tooltip with Tooltip(text), and text cut by Truncate unfolds its full
    text in place under the pointer. They are off until the Root is given WithTooltips. A tooltip opens once the
    pointer rests on its node or the focus moves onto it, closes on the next key, click, wheel event, or when the
    pointer leaves, and is placed where it hides the least of the frame. NoTooltip opts a node out, such as a secret,
    TooltipOpen pins one open, and TipSink sends them to a node such as a status line.
  • Breaking: the Root sets the mouse mode: Root.View now sets the view's MouseMode to the least the frame needs,
    so a program no longer sets it, though it can still overwrite it. Centered, Transition, Present, and Drawable
    return their own node types rather than a Child.
  • Editing text in a viewport: Buffer is a balanced tree of lines with Replace, Insert, Delete, and Edit,
    each returning a Change that maps positions through the edit, and snapshots that cost nothing until the next
    edit. A Viewport given a Caret gets a range and a caret that the mouse, the program, SelectAll, and
    CopySelection all work on.
  • Selections stay on their text: a selection in a viewport or TextMap is kept as positions in its text rather
    than as cells, so it holds through scrolling, wrapping, and edits. A selection in a List keeps the items its ends
    are in when they scroll out of view, and copies the items between them that were never built.
  • The copy flash respects motion: CopySelection no longer sweeps its band while anim.SetMotion(false) is in
    effect, and a sweep already running ends once motion is turned off.

Changelog

⚠️ Breaking Changes

  • 216c11f: add built-in tooltips (@lrstanley)
    • Root.View sets the view's MouseMode to the least the frame needs, so a program no longer sets it, though it may still overwrite it. Centered returns a CenterNode, Transition and Present a TransitionNode, and Drawable a DrawableNode, rather than a Child.

✨ New Features

🐞 Bug Fixes

📚 Documentation

📦 Dependency Updates

1 change

Full changelog: v0.0.0-alpha.5...v0.0.0-alpha.6

📦 Install

go get bloomfx.dev/bloom@v0.0.0-alpha.6

Docs: bloomfx.dev/bloom

💬 What to do next?