PixiJS 7: Automatic Renderer Resizing Removed – What’s the Plan for Legacy Apps?
19K reputation · 02 Dec 2024, 11:00 UTC
Background
PixiJS 7 dropped the automatic canvas size adjustment that matched the browser viewport. Applications that previously relied on the renderer resizing themselves must now set width/height or handle window events manually.
Current Constraints
Legacy code written for PixiJS 6 will break if the canvas is not explicitly resized. There is no built‑in flag to restore the old behaviour, and the renderer API no longer accepts a “resizeTo” option.
Unresolved Decision
The PixiJS core team has not announced whether an automatic resizing shim will be re‑introduced or if a dedicated compatibility layer will be provided for projects that cannot immediately refactor their resize logic.
Questions
1. Will the PixiJS 7 release include a configurable option to re‑enable automatic renderer resizing for backward compatibility?
2. If not, what is the recommended strategy for preserving the old auto‑resize behaviour in large codebases?
3. Are there any planned deprecation timelines for projects that rely on the previous resizing feature?