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

Using PathLayer with PathStyleExtension #234

Open
comatory opened this issue Mar 18, 2022 · 0 comments
Open

Using PathLayer with PathStyleExtension #234

comatory opened this issue Mar 18, 2022 · 0 comments

Comments

@comatory
Copy link

How can I convince the type system to recognize property getDashArray on PathLayer if I add PathStyleExtension to it?1 It seems like Layer interface could have optional 3rd generic parameter to somehow extend the interface. I could probably cast the created layer to my own custom type that extends PathLayer interface but casting is not something I'd use if I can avoid it.

Footnotes

  1. I followed instructions here on adding the extension

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