• Arjan van Wieringen

    Arjan van Wieringen

    4 months ago
    I am seeing a lot happening in compose for web development I think, but I am not sure if I am correct. • The old falling-balls-example is gone, and I think that is because they've decided to move away from canvas rendering? • I see in the experimental folders something with webassembly? So Skia is running in wasm to a canvas maybe?
    Arjan van Wieringen
    o
    +3
    9 replies
    Copy to Clipboard
  • Paul Woitaschek

    Paul Woitaschek

    4 months ago
    Is there a way to use the regular compose API in a web app?
    Paul Woitaschek
    hfhbd
    +4
    14 replies
    Copy to Clipboard
  • Arjan van Wieringen

    Arjan van Wieringen

    4 months ago
    So, I've got a question again about the compose-web. I am just browsing the internals to learn from. At this moment I have reached the
    ComposeDomNode
    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?
    Arjan van Wieringen
    hfhbd
    +1
    5 replies
    Copy to Clipboard
  • Marius Ailinca

    Marius Ailinca

    4 months ago
    Hi!Can I run compose for web with https? I have an issues with clipboard not being available on http. Thanks!
    Marius Ailinca
    n
    2 replies
    Copy to Clipboard
  • d

    Dazai

    4 months ago
    hey so i'm trying out the minesweeper / falling balls demo. how can I make the canvas fill the max size of the screen on resize? and how do i get the screen size inside of compose? thanks in advance
    d
    1 replies
    Copy to Clipboard
  • Antonius Naumann

    Antonius Naumann

    4 months ago
    (Not sure if this is the right channel) I got a minor problem with IntelliJ Code Highlighting for a project which targets both Compose Android, Desktop and Web. (Problem description and Gradle snippet below)
    Antonius Naumann
    o
    4 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    4 months ago
    Any plans to un-deprecate
    DOMSideEffect
    or bring
    DOMScope
    to regular
    SideEffect
    ? My use-case involves wrapping external JS component library in #kmdc project and I need an effect which runs on
    every
    composition and provides access to native DOM element to sync-up the compose state with the external JS component. •
    DisposableEffect
    almost works as it has
    scopeElement
    , but it skips the initial composition •
    SideEffect
    runs on all compositions, but doesn't provide access to
    scopeElement
    DOMSideEffect
    covers everything I need, but is deprecated EDIT: looks like initial composition is "skipped" on my
    DisposableEffect
    handler due to missing js objects that I initialise in
    attrs::ref
    lambda. Shouldn't
    attrs::ref
    be invoked before
    DisposableEffect
    ?
    Big Chungus
    o
    4 replies
    Copy to Clipboard
  • spierce7

    spierce7

    4 months ago
    I thought I’d try to run one of my compose apps in the new alpha web. Ran into a hangup - How would I draw an SVG in compose web?
    spierce7
    Big Chungus
    +2
    22 replies
    Copy to Clipboard
  • spierce7

    spierce7

    4 months ago
    Let me clarify - how would I use an SVG inside the Compose Web Canvas alpha? Is there a way yet?
    spierce7
    o
    2 replies
    Copy to Clipboard
  • d

    Dragos Rachieru

    4 months ago
    Hello, I am trying to make an image loading library that loads images from urls and other stuff, is there a way to load an image on
    JS
    from local files?
    d
    hfhbd
    3 replies
    Copy to Clipboard