maria
maria copied to clipboard
Missing shape in layer
Issue:
I am trying to draw a triangle and a square on the same layer but only the square is drawn
Here is the code:
(layer
(position 100 0 (triangle 100))
(position 0 100 (square 100)))
Here what maria renders
It looks like the width of the drawing is only equal to the width of the square, so the triangle is cropped. A short term workaround is to draw a larger background square:
(layer
(colorize "white" (position 0 0 (square 200)))
(position 100 0 (triangle 100))
(position 0 100 (square 100)))
We'll look into the underlying bug!
Thanks for the workaround.
I believe this is related: https://www.maria.cloud/gist/cfd8e2fba4ae4048bf95513d7eaf9075
How can we take the bounding box of shapes in Maria? This might help to debug the issue.
Note: Another useful workaround is to lastly render a transparent rectangle (using the color "transparent"). This appears to forces the bounding box to the dimensions of the lastly rendered item.
@avidrucker sorry, no time this month to look into this
That works me running the dev env... this issue should be closed. My question is, how old is the version deployed on maria.cloud?