Merge pull request #20 from pklimai/mmon-fix

Fixes #9
This commit is contained in:
Alexander Nozik 2020-02-06 16:30:05 +03:00 committed by GitHub
commit 07b19072de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ import hep.dataforge.vis.spatial.three.ThreePlugin
import hep.dataforge.vis.spatial.three.displayCanvasControls
import hep.dataforge.vis.spatial.three.output
import hep.dataforge.vis.spatial.visible
import info.laht.threekt.math.Vector3
import io.ktor.client.HttpClient
import io.ktor.client.features.json.JsonFeature
import io.ktor.client.features.json.serializer.KotlinxSerializer
@ -65,6 +66,7 @@ private class GDMLDemoApp : Application {
canvas.camera.layers.set(0)
canvas.camera.position.z = -2000.0
canvas.camera.position.y = 500.0
canvas.camera.lookAt(Vector3(0,0,0))
settingsElement.displayCanvasControls(canvas) {
card("Events") {
button {