Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing shape in layer #220

Open
viebel opened this issue Aug 27, 2019 · 7 comments
Open

Missing shape in layer #220

viebel opened this issue Aug 27, 2019 · 7 comments

Comments

@viebel
Copy link

viebel commented Aug 27, 2019

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

@jackrusher
Copy link
Collaborator

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!

@viebel
Copy link
Author

viebel commented Aug 29, 2019

Thanks for the workaround.

This was referenced Jul 18, 2020
@avidrucker
Copy link
Contributor

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

@avidrucker
Copy link
Contributor

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

@avidrucker
Copy link
Contributor

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.

@daveliepmann
Copy link
Collaborator

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

@coelias
Copy link

coelias commented Oct 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants