Archie
02/08/2023, 6:10 AMPiotr Krzemiński
02/13/2023, 7:54 AMbashor
02/14/2023, 9:48 AMbashor
02/15/2023, 8:45 PMandylamax
02/16/2023, 9:15 AMkotlin {
js(IR) {
browser()
binaries.executable()
}
}
instead of
kotlin {
wasm {
browser()
binaries.executable()
}
}
this seems a bit offzfan93
02/17/2023, 6:21 AM// Include Lightbox
import PhotoSwipeLightbox from '/photoswipe/photoswipe-lightbox.esm.js';
const lightbox = new PhotoSwipeLightbox({
// may select multiple "galleries"
gallery: '#gallery--getting-started',
// Elements within gallery (slides)
children: 'a',
// setup PhotoSwipe Core dynamic import
pswpModule: () => import('/photoswipe/photoswipe.esm.js')
});
lightbox.init();
How do I define it in kotlin with @JsModule("") ?This seems a lot more complicated than the example on the website....Many thanks!!😒aluting_face:Arjan van Wieringen
02/17/2023, 8:22 AMcompose.web.targets
? I have multiple JS targets, and as such I need to specify it, but I can't find any way on how to do this?
EDIT: apparently this works:
compose.web {
targets(kotlin.js())
}
Slackbot
02/17/2023, 10:11 PMandylamax
02/19/2023, 7:56 AMSlackbot
02/21/2023, 11:37 AMWaqas Tahir
02/24/2023, 10:57 AMDaniele B
02/24/2023, 12:48 PMDavid Herman
02/27/2023, 5:55 PM정세현
02/28/2023, 8:21 AMdarkmoon_uk
02/28/2023, 10:36 AMdarkmoon_uk
03/02/2023, 1:39 PMspierce7
03/03/2023, 9:28 PMdarkmoon_uk
03/04/2023, 5:49 AMspierce7
03/06/2023, 1:49 AMDirk Hoffmann
03/06/2023, 11:44 AMSean Proctor
03/07/2023, 2:16 PMNick P
03/08/2023, 1:26 AMribesg
03/09/2023, 2:31 PMStyleSheet
instance? I would like to define my style with a StyleSheet
per component but using Style(stylesheet)
in each component creates a lot of empty <style>
dom elements.
I'm just playing with compose and trying to know how people do thingsGiorgi
03/13/2023, 4:34 PMAlina Dolgikh [JB]
03/15/2023, 1:34 PMAlina Dolgikh [JB]
03/15/2023, 1:39 PMAlina Dolgikh [JB]
03/15/2023, 1:39 PMAlina Dolgikh [JB]
03/15/2023, 1:41 PMbenkuly
03/15/2023, 1:46 PMSrSouza
03/17/2023, 12:51 PMSrSouza
03/17/2023, 12:51 PMCLOVIS
03/17/2023, 1:11 PMCanvas
composable to switch between themSrSouza
03/17/2023, 1:19 PMBox(modifer ...) {
DomInterop(...) {
DomDivComposable()
}
}
Div(...) {
CanvasInterop(..){
MaterialButton()
MultiplatformComponent()
}
}
CLOVIS
03/17/2023, 1:21 PMCanvasInterop
composable but I don't know how to.Arjan van Wieringen
03/17/2023, 1:53 PMOliver.O
03/17/2023, 9:22 PMGlobalSnapshotManager.ensureStarted(testScope)
withContext(headlessMonotonicFrameClock(fps)) {
val recomposer = Recomposer(coroutineContext)
val composition = Composition(applier, recomposer)
try {
composition.setContent {
// This is the place to insert the initial Composable
}
recomposer.runRecomposeAndApplyChanges() // <- This method will not return
// unless the Recomposer is closed and all effects in managed compositions
// complete.
} finally {
composition.dispose()
GlobalSnapshotManager.stop()
}
}
So suppose we'd use different coroutines to start up multiple Composers (which would be possible even in single-threaded environments). Then each Composer makes assumptions about how to schedule updates, and these assumptions depend on the frame clock. I'm not sure whether that works with multiple Composers unaware of each other but depending on the same frame clock.shikasd
03/19/2023, 5:52 AM