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.DependencyConfiguration
import scientifik.FXModule import scientifik.FXModule
import scientifik.useFx
plugins { plugins {
id("scientifik.mpp") 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()) props.valueChanged?.invoke(getValue())
} }

View File

@ -1,5 +1,6 @@
package hep.dataforge.vision.solid package hep.dataforge.vision.solid
import hep.dataforge.meta.DFExperimental
import hep.dataforge.meta.double import hep.dataforge.meta.double
import hep.dataforge.names.NameToken import hep.dataforge.names.NameToken
import hep.dataforge.vision.MutableVisionGroup 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) 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 { fun Vision.Companion.parseJson(str: String) = SolidManager.jsonForSolids.parse(Vision.serializer(), str).also {
if(it is VisionGroup){ if(it is VisionGroup){
it.attachChildren() it.attachChildren()