Fix persistent bug with sat-demo updates

This commit is contained in:
Alexander Nozik 2021-01-02 11:30:39 +03:00
parent 3f9f253416
commit 33146fef1b
4 changed files with 10 additions and 4 deletions

View File

@ -10,6 +10,7 @@
## Table of Contents
* [Introduction](#introduction)
* [Requirements](#requirements)
* [Features](#features)
* [About DataForge](#about-dataforge)
* [Modules contained in this repository](#modules-contained-in-this-repository)
@ -34,6 +35,9 @@ Other applications including 2D plots are planned for the future.
The project is developed as a [Kotlin multiplatform](https://kotlinlang.org/docs/reference/multiplatform.html)
application, currently targeting browser JavaScript and JVM.
## Requirements
JVM backend requires JDK 11 or later
## Features

View File

@ -86,7 +86,9 @@ public open class VisionBase(internal var properties: Config? = null) : Vision {
if (inherit) {
yield(parent?.getProperty(name, inherit, includeStyles, includeDefaults))
}
yield(descriptor?.get(name)?.defaultItem())
if (includeDefaults) {
yield(descriptor?.get(name)?.defaultItem())
}
}.merge()
override fun setProperty(name: Name, item: MetaItem?, notify: Boolean) {

View File

@ -82,7 +82,7 @@ private fun CoroutineScope.collectChange(
//Collect properties change
source.onPropertyChange(this) { propertyName ->
val newItem = source.getProperty(propertyName, inherit = false, includeStyles = false, includeDefaults = false)
val newItem = source.getOwnProperty(propertyName)
collector().propertyChanged(name, propertyName, newItem)
}

View File

@ -12,7 +12,7 @@ import kotlinx.html.*
* A placeholder object to attach inline vision builders.
*/
@DFExperimental
public class VisionOutput @PublishedApi internal constructor(){
public class VisionOutput @PublishedApi internal constructor() {
public var meta: Meta = Meta.EMPTY
public inline fun meta(block: MetaBuilder.() -> Unit) {
@ -104,6 +104,6 @@ public abstract class VisionTagConsumer<R>(
public const val OUTPUT_ENDPOINT_ATTRIBUTE: String = "data-output-endpoint"
public const val DEFAULT_ENDPOINT: String = "."
public const val DEFAULT_VISION_NAME = "vision"
public const val DEFAULT_VISION_NAME: String = "vision"
}
}