hudsonb
09/27/2018, 5:58 PMNode
types, then allow users to set properties on all nodes in the selection. For example root.selectAll<Path>()
would select all Path
nodes that are descendants of root
as a Selection<Path>
. I then want the to be able to set all properties of Path
using the selection, for example:
root.selectAll<Path> {
fill = Color.RED
}
However, I don't want to pollute Selection<Button>
for example, with properties that apply only to `Shape`/`Path` so I was considering implementing fill
as an extension `val`/`fun` on Selection<Path>
.
Does that make any sense? Trying to sanity check myself before spending too much time developing it.