Skip to content

Object ordering #8

Description

@prabuvenkat-gh

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions