forked from kscience/visionforge
Fixed vertical size for demos
This commit is contained in:
parent
230cd5dc61
commit
a583030c1c
@ -1,10 +1,10 @@
|
|||||||
import space.kscience.dataforge.misc.DFExperimental
|
import space.kscience.dataforge.misc.DFExperimental
|
||||||
import space.kscience.visionforge.plotly.PlotlyPlugin
|
import space.kscience.visionforge.plotly.PlotlyPlugin
|
||||||
|
import space.kscience.visionforge.ring.ThreeWithControlsPlugin
|
||||||
import space.kscience.visionforge.runVisionClient
|
import space.kscience.visionforge.runVisionClient
|
||||||
import space.kscience.visionforge.solid.three.ThreePlugin
|
|
||||||
|
|
||||||
@DFExperimental
|
@DFExperimental
|
||||||
fun main() = runVisionClient {
|
fun main() = runVisionClient {
|
||||||
plugin(PlotlyPlugin)
|
plugin(PlotlyPlugin)
|
||||||
plugin(ThreePlugin)
|
plugin(ThreeWithControlsPlugin)
|
||||||
}
|
}
|
@ -95,6 +95,7 @@ public val ThreeCanvasWithControls: FunctionalComponent<ThreeCanvasWithControlsP
|
|||||||
|
|
||||||
flexRow {
|
flexRow {
|
||||||
css {
|
css {
|
||||||
|
height = 100.pct
|
||||||
flex(1.0, 1.0, FlexBasis.auto)
|
flex(1.0, 1.0, FlexBasis.auto)
|
||||||
flexWrap = FlexWrap.wrap
|
flexWrap = FlexWrap.wrap
|
||||||
alignItems = Align.stretch
|
alignItems = Align.stretch
|
||||||
|
@ -131,7 +131,7 @@ public class ThreePlugin : AbstractPlugin(), ElementVisionRenderer {
|
|||||||
override fun rateVision(vision: Vision): Int =
|
override fun rateVision(vision: Vision): Int =
|
||||||
if (vision is Solid) ElementVisionRenderer.DEFAULT_RATING else ElementVisionRenderer.ZERO_RATING
|
if (vision is Solid) ElementVisionRenderer.DEFAULT_RATING else ElementVisionRenderer.ZERO_RATING
|
||||||
|
|
||||||
fun renderSolid(
|
internal fun renderSolid(
|
||||||
element: Element,
|
element: Element,
|
||||||
vision: Solid,
|
vision: Solid,
|
||||||
): ThreeCanvas = getOrCreateCanvas(element).apply {
|
): ThreeCanvas = getOrCreateCanvas(element).apply {
|
||||||
|
Loading…
Reference in New Issue
Block a user