Skip to content

Conversation

Schahen
Copy link

@Schahen Schahen commented Aug 4, 2025

This PR deprecates CanvasBasedWindow on web platforms, making an attempt to use it a compilation error

Testing

./gradlew testWeb plus manual

Release Notes

Migration Notes - Web

  • CanvasBasedWindow is deprecated, use ComposeViewport instead. Unlike CanvasBasedWindow, which expect as an input param the id to the HTMLCanvasElement that will be used for rendering, ComposeViewport one passes parentContainer (and corresponding HTML Canvas element will be created automatically). By default such container is document.body.

@Schahen Schahen requested review from eymar and igordmn August 4, 2025 09:42
@Schahen Schahen removed the request for review from igordmn August 4, 2025 09:49
@MatkovIvan
Copy link
Member

Please change "Breaking Changes" to "Migration Notes" and use `` for all class/function names

…ow/ComposeWindow.w3c.kt

Co-authored-by: Oleksandr Karpovich <[email protected]>
@Schahen Schahen merged commit dde7660 into jb-main Aug 4, 2025
12 checks passed
@Schahen Schahen deleted the sh/web-deprecate-CanvasBasedWindow branch August 4, 2025 12:05
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.

4 participants