From 55e75ba6dfd240f1a551c5c13903457c3504fb37 Mon Sep 17 00:00:00 2001 From: Peter Klimai Date: Thu, 6 Feb 2020 15:52:37 +0300 Subject: [PATCH] Fixes #9 --- .../src/jsMain/kotlin/ru/mipt/npm/muon/monitor/MMDemoApp.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/muon-monitor/src/jsMain/kotlin/ru/mipt/npm/muon/monitor/MMDemoApp.kt b/demo/muon-monitor/src/jsMain/kotlin/ru/mipt/npm/muon/monitor/MMDemoApp.kt index a9f7dd3d..83c3f4d1 100644 --- a/demo/muon-monitor/src/jsMain/kotlin/ru/mipt/npm/muon/monitor/MMDemoApp.kt +++ b/demo/muon-monitor/src/jsMain/kotlin/ru/mipt/npm/muon/monitor/MMDemoApp.kt @@ -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 {