Skip to content

Object ordering #8

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

Open
prabuvenkat-gh opened this issue Nov 7, 2024 · 0 comments
Open

Object ordering #8

prabuvenkat-gh opened this issue Nov 7, 2024 · 0 comments

Comments

@prabuvenkat-gh
Copy link

prabuvenkat-gh commented Nov 7, 2024

I would like to render a circle (solid fill white) on top of a line such that the occulted portion of the line is not visible. However irrespective of the order in which I render the two objects, I am unable to achieve the desired results. Am I doing something fundametally wrong?

<ReactRough>
  <Circle
    x={100}
    y={100}
    diameter={50}
    fill={palColors.white}
    fillStyle={'solid'}
  />
  <Line x1={50} y1={50} x2={200} y2={200} stroke={palColors.red} />
</ReactRough>

(and the same snippet with the line first and the circle afterwards).. Either way the output is the same --

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

No branches or pull requests

1 participant