Skip to content

fix: live updates for rich-text and numeric merge values; internal editor accessors#142

Merged
dazzatronus merged 4 commits into
mainfrom
derk/clip-viewport-rect
Jul 17, 2026
Merged

fix: live updates for rich-text and numeric merge values; internal editor accessors#142
dazzatronus merged 4 commits into
mainfrom
derk/clip-viewport-rect

Conversation

@dazzatronus

Copy link
Copy Markdown
Contributor

Two live-update fixes and a set of @internal editor accessors.

Fixes

  • Rich-text updates on seek and during playback. A rich-text clip previously showed the first frame it rendered and never changed as the playhead moved; it now repaints each frame, so animated text and post-seek frames are correct.
  • Numeric-looking merge values stay strings on text/html assets. A value like "3" on a text field was being coerced to a number, which a text/html asset can't render, so the clip silently stopped updating. Text/html content now keeps its string form (numeric coercion still applies to numeric properties).

Internal accessors (@internal, not public API)

Adds accessors for anchoring external UI to the canvas: a clip's on-screen rect, the backing <canvas> element, the clip a merge field drives, and a wait-until-assets-settled promise. All are @internal and stripped from the published type declarations — no change to the public API surface.

Verify

tsc clean; rich-text and merge-field Jest suites pass, with added coverage for the texture re-upload and the string-preservation case. Rich-text behaviour verified live across seek, playback, and live merge-field edits.

Release note

On squash-merge, the merge message drives the version — the public-facing changes here are bug fixes.

@dazzatronus
dazzatronus force-pushed the derk/clip-viewport-rect branch from 91b6e3b to a36ef6b Compare July 17, 2026 01:28
@dazzatronus
dazzatronus merged commit 757b865 into main Jul 17, 2026
1 check passed
@dazzatronus
dazzatronus deleted the derk/clip-viewport-rect branch July 17, 2026 02:21
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.14.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant