Arjan van Wieringen
05/06/2022, 7:29 AMOleksandr Karpovich [JB]
05/06/2022, 7:58 AMthey've decided to move away from canvas renderingold falling-balls-example for web was built using composable html-based widgets which got deprecated. There're some alternatives for those widgets developed and supported by the community. For example: https://github.com/varabyte/kobweb#k%EF%B8%8Fbweb among other things provides familiar Compose extensions like Modifier and components: Box, Column, Row... for web.
I see in the experimental folders something with webassembly? So Skia is running in wasm to a canvas maybe?Yes, that's correct.
Arjan van Wieringen
05/06/2022, 8:00 AMMichael Paus
05/06/2022, 9:23 AMthey’ve decided to move away from canvas renderingNow you have me confused. I thought it’s just the other way round.
Oleksandr Karpovich [JB]
05/06/2022, 9:29 AMThe old falling-balls-example is gone, and I think that is because they've decided to move away from canvas rendering?the old falling-balls-example is gone because it was built using deprecated widgets api. Deprecated widgets api was based on composable html api (not on canvas). Instead, there is another falling-balls experimental example (for MPP including web) https://github.com/JetBrains/compose-jb/tree/master/experimental/examples/falling-balls-mpp where all targets use the same composable api based on canvas.
Arjan van Wieringen
05/06/2022, 11:31 AMdarkmoon_uk
05/06/2022, 11:52 AMjb-compose
repo, linked above ☝️ ✨
On the down-side; it appears that JB's Compose Lead recently left the company, which along with other impacts from world events, has probably slowed-down the Compose/Multiplatform initiative. Hopefully JetBrains organised with enough contingency that the project can still succeed after this person leaving.
I also wonder if the current devs saw that 'Canvas' runtime characteristics were not too appealing when using JS and have decided to hold out for WASM migration before releasing anything to public; which we could expect to have smaller package size and perform better.Arjan van Wieringen
05/06/2022, 1:13 PMnschulzke
05/06/2022, 1:20 PMdarkmoon_uk
05/06/2022, 1:27 PM