Stacked preview package: transitions, floating, measurement#54
Open
rauhryan wants to merge 41 commits into
Open
Stacked preview package: transitions, floating, measurement#54rauhryan wants to merge 41 commits into
rauhryan wants to merge 41 commits into
Conversation
Design spec for clayterm transitions: frame-snapshot-compatible interpolation of element position, size, and color properties. Defines the deltaTime convention, the animating signal on RenderResult, declarative enter/exit semantics that replace Clay's function-pointer callbacks, and cancellation as a structural consequence of re-describing state. Implementation is gated on bumping the Clay submodule past the upstream transition commit.
Scope v1 to what Clay currently supports without userData on transition callbacks: one duration and one easing per element, applied to all listed properties. Drop per-property longhand, enter/exit deltas, cubicBezier, and corner radius — each with an explicit "Deferred Until Upstream Clay" entry in §13 referencing nicbarker/clay#603 and the forthcoming exit-flag work. Easings are plain string literals ("linear" | "easeIn" | "easeOut" | "easeInOut") since v1 has no parametric easings.
Co-Authored-By:
Ports the spirit of the raylib-transitions demo to clayterm: a 4×4 grid of colored boxes that animate position, size, and bg color. Shuffle (s) animates positions via Clay's transition system; recolor (c) toggles between two palettes with animated bg interpolation; hover tints each box by blending its bg toward white (overlay-color field is not yet in the v1 command buffer, so lighten-on-hover substitutes). Full mouse tracking is wired via mouseTracking() + pointer state from input events.
- merge origin/main into the PR branch - keep both floating and snapshot term tests after conflict resolution - validate floating zIndex as signed 16-bit - remove temporal current wording from floating spec section
# Conflicts: # examples/keyboard/clay-transitions.ts # examples/keyboard/transitions.ts
commit: |
Collaborator
Author
|
Y'all can ignore this PR Its a hack to produce a preview package I can use to update the solidjs bindings |
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.
Summary
Replacement for #31: a fresh stacked preview branch built from latest
main, merging the intended stack in order:This PR is intended to create a preview package we can work from while preserving the individual feature PRs as the preferred review path.
Notes
origin/main.Validation
scripts/run-checks 3113 passed (171 steps) | 0 failedlogs/pr-31/check-20260531-101457-45256.log