Tom Baku
12/20/2020, 1:54 PMgraphics {
position(leftIndent, leftIndent)
fill(Colors["#cec0b2"]) {
roundRect(cellSize, cellSize, 3.0) {
position(10, 10)
}
}
}
It seems that the first position method with leftIndent and leftIndent as parameters is not working. For me that roundRect is positioned at 10, 10. I would expect that 10, 10 is added to leftIndent for x and y.
I am sure that I misuse the parameters or have something configured wrongly.
Any idea?
Thx for helpRezMike
12/20/2020, 8:45 PMposition
call (with indents) is cleared by the second one (with 10, 10), since they both are called on the graphics instanceTom Baku
12/21/2020, 10:29 AMposition
call is called within the roundRect brackets. I would assume its called on the RoundRect instance and not on the Graphics instance.RezMike
12/21/2020, 10:32 AMroundRect(...) { position(...) }
without graphics { ... }
RezMike
12/21/2020, 10:33 AMroundRect
is a function with Container
receiver, in your case it's a function with `Graphics`/`VectorBuilder` receiver, they work differentlyTom Baku
12/21/2020, 10:34 AMRezMike
12/21/2020, 10:37 AMRezMike
12/21/2020, 10:38 AMTom Baku
12/21/2020, 10:41 AM