This commit is contained in:
Alexander Nozik 2022-11-20 20:28:16 +03:00
parent eae1316de5
commit b2624cb10b
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
package space.kscience.visionforge.gdml.demo
import kotlinx.browser.document
import kotlinx.css.*
import org.w3c.dom.Document
import react.dom.client.createRoot
import space.kscience.dataforge.context.Context
import space.kscience.dataforge.context.fetch
@ -20,7 +20,7 @@ import styled.injectGlobal
private class GDMLDemoApp : Application {
override fun start(state: Map<String, Any>) {
override fun start(document: Document, state: Map<String, Any>) {
val context = Context("gdml-demo"){
plugin(ThreePlugin)
}

View File

@ -1,5 +1,5 @@
import kotlinx.browser.document
import kotlinx.css.*
import org.w3c.dom.Document
import react.dom.client.createRoot
import ringui.SmartTabs
import ringui.Tab
@ -30,7 +30,7 @@ fun Trace.appendXYLatest(x: Number, y: Number, history: Int = 400, xErr: Number?
private class JsPlaygroundApp : Application {
override fun start(state: Map<String, Any>) {
override fun start(document: Document, state: Map<String, Any>) {
val playgroundContext = Context {
plugin(ThreeWithControlsPlugin)