maria icon indicating copy to clipboard operation
maria copied to clipboard

Missing shape in layer

Open viebel opened this issue 4 years ago • 7 comments

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 image

viebel avatar Aug 27 '19 06:08 viebel

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!

jackrusher avatar Aug 27 '19 06:08 jackrusher

Thanks for the workaround.

viebel avatar Aug 29 '19 14:08 viebel

I believe this is related: https://www.maria.cloud/gist/cfd8e2fba4ae4048bf95513d7eaf9075

avidrucker avatar Jul 12 '21 12:07 avidrucker

How can we take the bounding box of shapes in Maria? This might help to debug the issue.

avidrucker avatar Sep 03 '23 02:09 avidrucker

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 avatar Sep 03 '23 14:09 avidrucker

@avidrucker sorry, no time this month to look into this

daveliepmann avatar Sep 11 '23 07:09 daveliepmann

That works me running the dev env... this issue should be closed. My question is, how old is the version deployed on maria.cloud?

coelias avatar Oct 18 '23 17:10 coelias