Skip to content

v0.0.0-alpha.10

Pre-release
Pre-release

Choose a tag to compare

@lrstanley lrstanley released this 20 Nov 06:53
· 1 commit to master since this release
v0.0.0-alpha.10
ade834e

Highlights

  • Windows you can drag, and a desktop example to show it. LayerNode.Place puts a layer at a rectangle your model keeps, and on.Down runs as soon as a button goes down on a node or anything in it, such as to bring a window to the front, without taking clicks or drags from what's inside. The new desktop example has windows dragged by their title bars, resized by their corners, snapped to the edges of the screen, a taskbar, a start menu, and themes. See dragging something that moves.
  • Layout animation carries on from where a node was. A slot or layer drawn without Animate on the frame before now glides from where it was then, rather than jumping to where it's going. Leave Animate off while a window follows the pointer, and it glides into place once dropped.
  • Nodes inside an ID stay the same nodes as it moves. A node without an ID is now known by where it is in the nearest node with an ID, rather than in the whole tree, so the buttons and title bar of a window brought to the front keep their clicks and drags.
  • Duplicate IDs fail your tests. Two nodes with the same ID in one frame now panic in a test binary, and bloom.Debug marks them as duplicate. Nothing is checked outside tests.
  • A drag is no longer a click. A press that moves away from where it went down no longer runs the click handlers of the node it comes up on, nor counts toward a double click.
  • Layouters don't need a View. Embed bloom.NoView instead of writing a View stub, and use bloom.Measure to size a tree without drawing it.
  • Ambient backdrops and a clock for them. fx.Ripple, fx.Drift, and fx.Rain draw moving textures behind a screen or under a layer, timed by the new anim.Ticker.
  • One cursor with WithFocus. With two text inputs in focusable boxes, only the focused one shows its cursor.

Changelog

✨ New Features

🐞 Bug Fixes

📚 Documentation

🧹 Misc

1 change

Full changelog: v0.0.0-alpha.9...v0.0.0-alpha.10

📦 Install

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

Docs: bloomfx.dev/bloom

💬 What to do next?