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

Implement ClipPath #6

Open
marlenecota opened this issue Apr 3, 2021 · 0 comments · Fixed by software-mansion/react-native-svg#1933
Open

Implement ClipPath #6

marlenecota opened this issue Apr 3, 2021 · 0 comments · Fixed by software-mansion/react-native-svg#1933
Assignees
Labels
enhancement New feature or request

Comments

@marlenecota
Copy link
Owner

marlenecota commented Apr 3, 2021

Feature Request

https://github.com/react-native-svg/react-native-svg#clippath
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath

Possible implementation

  • Extends GroupView. Geometry().ComputeBounds() -> CreateLayer(opacity, clipGeometry)
  • Looks like we need to add new BaseProps - "clipPath" and "clipRule" (like same enum as "fillRule")
  • Not a renderable template, so SvgView needs a new map property - "m_clipPaths".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant