chore: release version 2.1.0-alpha02#102
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second
2.1pre-release. Two additive seams for hosts that want to layer ontop of
DrawBoxController(an intentsSharedFlowand anoverlayslot onDrawBox), plus a fix for finger-drawn strokes on WASM/browser and fortranslucent pen colours rendering as beaded dots.
No breaking changes on top of
2.1.0-alpha01. New surfaces stay under thealpha stability bucket described in that release.
Added
DrawBoxController.intents: SharedFlow<Intent>— observable stream ofprocessed intents. Emission happens after the reducer runs and
statehasbeen updated, so subscribers can read
state.valueat emission time andsee the resulting state. Unblocks layered controllers (brush), collaboration
transports, and analytics recorders without subclassing or state-diffing.
Buffered so slow subscribers don't back-pressure the drawing loop. (Open extension seams on DrawBoxController + DrawBox for brush and future collab v2 #99)
overlayslot onDrawBox— newoverlay: @Composable BoxScope.() -> Unitparameter, composed inside the canvas
Boxabove strokes and selectionchrome. Renders in screen space; hosts anchor to world coordinates via
state.viewport. Default is a no-op, so existing call sites areunchanged. (Open extension seams on DrawBoxController + DrawBox for brush and future collab v2 #99)
Fixed
trusted only from
StylusandEraserinput types. WASM/browser touchreports the W3C default
0.5when there is no pressure sensor, whichwas silently halving finger strokes. Mouse and capacitive touch now fall
back to unit pressure.
pressure jitter was pushing uniform strokes into the variable-width
branch, where per-segment round caps stacked alpha and beaded
translucent colours. Also composites the variable-width path through
canvas.saveLayerwhenalpha < 1, so a legitimate pen stroke with atranslucent colour renders as a single translucent line instead of a
chain of overlapping dots. (fix: ignore touch/mouse pressure and composite alpha strokes via layer #101)