diff --git a/dataforge-vis-jsroot/build.gradle.kts b/dataforge-vis-jsroot/build.gradle.kts index 0129a2cf..4cc5e20d 100644 --- a/dataforge-vis-jsroot/build.gradle.kts +++ b/dataforge-vis-jsroot/build.gradle.kts @@ -13,7 +13,6 @@ val kotlinVersion: String by rootProject.extra dependencies { implementation(project(":dataforge-vis-spatial-js")) - implementation("info.laht.threekt:threejs-wrapper:0.106-npm-2") testCompile(kotlin("test-js")) } @@ -22,6 +21,9 @@ configure { configure { dependency("three","0.106.2") + dependency("@hi-level/three-csg") + dependency("style-loader") + dependency("element-resize-event") devDependency("karma") } diff --git a/dataforge-vis-spatial-js/build.gradle.kts b/dataforge-vis-spatial-js/build.gradle.kts index 68be367d..6e008e34 100644 --- a/dataforge-vis-spatial-js/build.gradle.kts +++ b/dataforge-vis-spatial-js/build.gradle.kts @@ -12,8 +12,8 @@ plugins { val kotlinVersion: String by rootProject.extra dependencies { - implementation(project(":dataforge-vis-spatial")) - implementation("info.laht.threekt:threejs-wrapper:0.106-npm-2") + api(project(":dataforge-vis-spatial")) + api("info.laht.threekt:threejs-wrapper:0.106-npm-2") testCompile(kotlin("test-js")) } diff --git a/dataforge-vis-spatial-js/src/main/kotlin/hep/dataforge/vis/spatial/demo/ThreeDemoApp.kt b/dataforge-vis-spatial-js/src/main/kotlin/hep/dataforge/vis/spatial/demo/ThreeDemoApp.kt index b3397b16..77759c74 100644 --- a/dataforge-vis-spatial-js/src/main/kotlin/hep/dataforge/vis/spatial/demo/ThreeDemoApp.kt +++ b/dataforge-vis-spatial-js/src/main/kotlin/hep/dataforge/vis/spatial/demo/ThreeDemoApp.kt @@ -3,6 +3,7 @@ package hep.dataforge.vis.spatial.demo import hep.dataforge.context.ContextBuilder import hep.dataforge.meta.number import hep.dataforge.vis.common.Colors +import hep.dataforge.vis.common.color import hep.dataforge.vis.spatial.* import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.delay