You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ui: migrate remaining shorts to anchor-based positioning
Followup to the anchor commit (01db8ff). The previous commit migrated
uiSystem and uiLayout shorts but missed nine others that also constructed
root UIObjects with manual canvas-relative positions. Those positions
were being overwritten to canvas-center by the new updateTransforms,
breaking each demo's layout.
Migrated shorts:
- music.js, musicPlayer.js: drop redundant constructor center
- sound.js, speak.js, vibrate.js: drop center add in makeButton helper
- piano.js: drop center add in PianoKey constructor
- timers.js: pass center-relative offset directly
- videoPlayer.js: pass center-relative offsets directly
- sequencer.js: convert absolute pixel coords by subtracting canvas
center (grid was designed around canvas top-left origin)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments