-
Notifications
You must be signed in to change notification settings - Fork 131
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
Allow using custom Konva Shapes with vue-konva #200
Comments
Take a look how other Konva nodes are registered. E.g. https://github.com/konvajs/konva/blob/master/src/shapes/Circle.ts#L59 Just do the same with your custom shape. Register it in Konva. And you should be able to use it in |
Thank you for the response. That solves the issue of passing the class instead of the string to the Line 9 in 566a2e3
KonvaNode(...) to the public interface of vue-konva.
|
Ah, you are right. I missed that. So there are two ways:
|
First of all: thanks for the awesome library!
I have a few custom Shapes that are subclasses of Konva.Node. Currently I don't see a way of using those as components with vue-konva. But if KonvaNode would be part of the public interface and also if you could pass it a class instead of a string it would work.
Do you think that this is something you could add?
The text was updated successfully, but these errors were encountered: