Arjan van Wieringen
05/07/2022, 7:38 AMComposeDomNode
Composable (https://github.com/JetBrains/compose-jb/blob/master/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt) which look to be at the center of all of it. I have a few questions related to the compose-web part:
1. The DomNodeWrapper
handles the insertion and deletion of actual DOM nodes, triggered by the DomApplier
. Correct?
2. The ComposeDomNode
really ties into the internals of the composer. Is this because DOM recomposition requires only updating DOM elements and/or inserting/deleting them, instead of the clear-screen-redraw-routine of canvas/skia based rendering?
3. In the Applier I see (just like in Jake Whartons Mosaic demo) that they always assume the tree is built bottom-up. How is this known / enforced?hfhbd
05/07/2022, 8:29 AMOleksandr Karpovich [JB]
05/09/2022, 7:51 AMTScope
), otherwise, I think ComposeNode would fit as well.
3. It's enforced by Applier implementation https://github.com/JetBrains/compose-jb/blob/master/web/internal-web-core-runtime/[…]kotlin/org/jetbrains/compose/web/internal/runtime/DomApplier.ktArjan van Wieringen
05/09/2022, 10:42 AMOleksandr Karpovich [JB]
05/09/2022, 10:47 AMArjan van Wieringen
05/10/2022, 9:55 AM