Repository navigation
v0.0.0-alpha.10
Pre-release
Pre-release
·
1 commit
to master
since this release
Highlights
- Windows you can drag, and a desktop example to show it.
LayerNode.Placeputs a layer at a rectangle your model keeps, andon.Downruns 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
Animateon the frame before now glides from where it was then, rather than jumping to where it's going. LeaveAnimateoff 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.Debugmarks them asduplicate. 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.NoViewinstead of writing aViewstub, and usebloom.Measureto size a tree without drawing it. - Ambient backdrops and a clock for them.
fx.Ripple,fx.Drift, andfx.Raindraw moving textures behind a screen or under a layer, timed by the newanim.Ticker. - One cursor with
WithFocus. With two text inputs in focusable boxes, only the focused one shows its cursor.
Changelog
✨ New Features
- 045a05c: let a Layouter go without a View (@lrstanley)
- 9387cd9: panic on duplicate IDs in tests, and mark them in Debug (@lrstanley)
- 34e2c9a: add on.Down and LayerNode.Place (@lrstanley)
- f8ae620: carry layout animation on from where a node was last drawn (@lrstanley)
- 361eda4: anim: add Ticker, a clock for animations without an end (@lrstanley)
- dd7f386: fx: add Ripple, Drift, and Rain ambient backdrops (@lrstanley)
🐞 Bug Fixes
- ea70a7a: show only the focused node's cursor with WithFocus (@lrstanley)
- a8eb21b: keep a transparent layer's blank cells clear of its effects (@lrstanley)
- 0cd6eda: know nodes without an ID by where they are in the nearest one with an ID (@lrstanley)
- c1d50d2: don't count a drag as a click (@lrstanley)
📚 Documentation
- 1418a07: examples: add an inputs example with two text inputs side by side (@lrstanley)
- bcebe8d: examples: add a desktop example with draggable windows (@lrstanley)
🧹 Misc
1 change
- 10c25ea: move layer layout out of engine.go (@lrstanley)
Full changelog: v0.0.0-alpha.9...v0.0.0-alpha.10
📦 Install
go get bloomfx.dev/bloom@v0.0.0-alpha.10Docs: bloomfx.dev/bloom
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🗝️ Find a vulnerability? Check out our Security and Disclosure policy.
- 🔗 Other useful links: