Fix API
This commit is contained in:
parent
eae1316de5
commit
b2624cb10b
@ -1,7 +1,7 @@
|
|||||||
package space.kscience.visionforge.gdml.demo
|
package space.kscience.visionforge.gdml.demo
|
||||||
|
|
||||||
import kotlinx.browser.document
|
|
||||||
import kotlinx.css.*
|
import kotlinx.css.*
|
||||||
|
import org.w3c.dom.Document
|
||||||
import react.dom.client.createRoot
|
import react.dom.client.createRoot
|
||||||
import space.kscience.dataforge.context.Context
|
import space.kscience.dataforge.context.Context
|
||||||
import space.kscience.dataforge.context.fetch
|
import space.kscience.dataforge.context.fetch
|
||||||
@ -20,7 +20,7 @@ import styled.injectGlobal
|
|||||||
|
|
||||||
private class GDMLDemoApp : Application {
|
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"){
|
val context = Context("gdml-demo"){
|
||||||
plugin(ThreePlugin)
|
plugin(ThreePlugin)
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import kotlinx.browser.document
|
|
||||||
import kotlinx.css.*
|
import kotlinx.css.*
|
||||||
|
import org.w3c.dom.Document
|
||||||
import react.dom.client.createRoot
|
import react.dom.client.createRoot
|
||||||
import ringui.SmartTabs
|
import ringui.SmartTabs
|
||||||
import ringui.Tab
|
import ringui.Tab
|
||||||
@ -30,7 +30,7 @@ fun Trace.appendXYLatest(x: Number, y: Number, history: Int = 400, xErr: Number?
|
|||||||
|
|
||||||
private class JsPlaygroundApp : Application {
|
private class JsPlaygroundApp : Application {
|
||||||
|
|
||||||
override fun start(state: Map<String, Any>) {
|
override fun start(document: Document, state: Map<String, Any>) {
|
||||||
|
|
||||||
val playgroundContext = Context {
|
val playgroundContext = Context {
|
||||||
plugin(ThreeWithControlsPlugin)
|
plugin(ThreeWithControlsPlugin)
|
||||||
|
Loading…
Reference in New Issue
Block a user