Skip to content

Improve safety checks in resize.ts & fit.ts - #255

Open
jeth88 wants to merge 1 commit into
pixijs:mainfrom
jeth88:utils-safety-checks
Open

Improve safety checks in resize.ts & fit.ts#255
jeth88 wants to merge 1 commit into
pixijs:mainfrom
jeth88:utils-safety-checks

Conversation

@jeth88

@jeth88 jeth88 commented Apr 3, 2026

Copy link
Copy Markdown
  • Added guard condition for undefined view in resize.tscenterView
  • Throw error when child is undefined in fit.tsfitToView
  • Deferred assignment of child.scaleX/scaleY until all parameters are validated (related to the above change)

@jeth88
jeth88 marked this pull request as ready for review April 3, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant