molikto
05/04/2020, 9:40 AMmolikto
05/04/2020, 9:43 AMmolikto
05/05/2020, 4:30 AMBruno_
07/10/2020, 4:04 PMif (node.visible)
when (node) {
is CircleNode -> node.render(gc)
is RectNode -> node.render(gc)
is GroupNode -> node.render(gc)
is PathNode -> node.render(gc)
is TextNode -> node.render(gc)
is LineNode -> node.render(gc)
else -> error("Unknow type ${node::class}")
}
what do you think about making a Renderable
interface which every node type would implement?
class RectNode(rect: Rect = RectGeom()) : Node(),
Rect by rect,
HasFill,
HasStroke,
Renderable {
override fun render(gc: GraphicsContext) {...}
}
or alternatively make a RectRenderable
interfaceBruno_
07/10/2020, 4:06 PMBruno_
07/10/2020, 4:08 PMgaetan
07/10/2020, 4:29 PMBruno_
07/10/2020, 4:40 PMCandle
(pic rel) extension, what I want to do is technically possible by composing two rectangles (or rectangle + path) and I thought that it would be nicer to create a CandleNode etcgaetan
07/10/2020, 4:48 PMfun Group.candle(width: Double, height …) {
line{...}
rect {...}
}
It will then be usable out of the box on Kotlin/JS JFx, Android.Nikky
12/07/2020, 7:21 PMsteamstreet
12/15/2020, 8:19 PMsteamstreet
12/15/2020, 8:20 PMgaetan
12/17/2020, 2:21 PMmbonnin
03/15/2021, 10:43 AMTreeLayout
is what I want to use to position my nodes. I guess I'll have to do the drawing myself? Is there anything in the library to draw connectors ?pmariac
03/15/2021, 2:26 PMpmariac
03/15/2021, 2:26 PMBryson Prince
07/05/2021, 5:14 PMpmariac
07/06/2021, 10:43 AMSrSouza
12/01/2021, 1:23 AMholgerbrandl
12/14/2021, 9:44 PMSebastian Schuberth
01/02/2023, 7:08 AMgaetan
01/02/2023, 8:46 AMgaetan
01/02/2023, 9:03 AMSebastian Schuberth
01/04/2023, 4:22 PMgaetan
01/04/2023, 4:33 PMDominik
02/22/2023, 10:31 AMJoffrey
09/13/2023, 7:08 PMpmariac
09/14/2023, 8:15 AMSplitProfit
are mapped, then the series will be drawn in a different order.pmariac
09/14/2023, 8:16 AMJoffrey
09/14/2023, 11:53 AMchart(data = props.simulation.monthlyPayments.seriesBreakdown()) {
title = "Monthly payments (${props.simulation.name})"
config {
config {
config {
val time = discrete({ domain.month }) { name = "Time" }
val value = quantitative({ domain.amount }) { name = "Amount" }
area(time, value)
}
}
events {
config {
selection {
series = discrete({ domain.type })
zoom {
selectionMode = SelectionMode.Disabled
}
}
zoomMode = ZoomMode.X
}
}
}
}
This could be prevented by creating an annotation to mark the charts DSL using `@DslMarker`:
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-dsl-marker/