Fix build import

This commit is contained in:
Alexander Nozik 2020-08-08 17:29:56 +03:00
parent 5e3e3908ea
commit 8c85804eb8
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import scientifik.DependencyConfiguration
import scientifik.FXModule
import scientifik.useFx
plugins {
id("scientifik.mpp")

View File

@ -49,7 +49,7 @@ class ValueChooserComponent(props: ValueChooserProps) : RComponent<ValueChooserP
}
}
private val commit: (Event) -> Unit = { event ->
private val commit: (Event) -> Unit = { _ ->
props.valueChanged?.invoke(getValue())
}

View File

@ -1,5 +1,6 @@
package hep.dataforge.vision.solid
import hep.dataforge.meta.DFExperimental
import hep.dataforge.meta.double
import hep.dataforge.names.NameToken
import hep.dataforge.vision.MutableVisionGroup
@ -118,8 +119,10 @@ internal object PrototypesSerializer : KSerializer<MutableVisionGroup> {
}
}
@OptIn(DFExperimental::class)
fun Vision.stringify(): String = SolidManager.jsonForSolids.stringify(Vision.serializer(), this)
@OptIn(DFExperimental::class)
fun Vision.Companion.parseJson(str: String) = SolidManager.jsonForSolids.parse(Vision.serializer(), str).also {
if(it is VisionGroup){
it.attachChildren()