visionforge/demo/playground/src/jsMain/kotlin/playgroundMain.kt

14 lines
458 B
Kotlin
Raw Normal View History

2021-03-01 21:33:25 +03:00
import hep.dataforge.misc.DFExperimental
2021-02-26 13:03:40 +03:00
import hep.dataforge.vision.VisionForge
2021-02-24 22:48:17 +03:00
import hep.dataforge.vision.plotly.usePlotly
import hep.dataforge.vision.solid.three.useThreeJs
2021-03-01 21:33:25 +03:00
import kotlinx.browser.window
2020-12-29 15:00:11 +03:00
2021-03-01 21:33:25 +03:00
@DFExperimental
2021-02-26 13:03:40 +03:00
fun main(): Unit = VisionForge.run{
2021-02-24 22:48:17 +03:00
usePlotly()
useThreeJs()
2021-01-12 12:52:22 +03:00
renderVisionsInWindow()
2021-03-01 21:33:25 +03:00
window.asDynamic()["renderVisionsAt"] = ::renderVisionsAt
window.asDynamic()["renderVisionsInWindow"] = ::renderVisionsInWindow
2020-12-29 15:00:11 +03:00
}