-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Create custom components #18
Comments
I'm too looking into this. We'll undoubtedly need to create components that have templates defined, and define interactions within. I'd like to do:
And then just have my component be rendered as a a ko-group with its own components. I tried to inherit from CoreShapeComponent, but library itself didn't appear to want to support that much at all. If we could that, it should be fairly easy to expose relative/absolute coordinates to do things like anchor lines at places on those components. I tried forking and seeing issues with adding that, but mostly because I just don't quite understand how all of ng2-konva works. |
Happy to see I'm not the only one trying to do that. |
I've played with this a bunch more, and made changes to allow inheritance from CoreShapeComponent (making some of the properties protected etc). I made it so inheritors could just set the shape for the component as "Group", and my custom components seem to at least not be complained about. I could however not get my custom component to draw its own internals. I think if there were some way to say render this component as if it were a @rafaesc do you have any ideas about how to achieve such a thing? I'd love to use this to build a little workflow diagram editor, but I'd need some way of building a workflow item component, and have it have some inclusive functionality and sub shapes. |
I got the same problem. And it looks like the react/vue Wrapper has this feature. |
@rafaesc any ideas? It'd be really sweet to be able to do something like this |
parent.component.html
This is our custom component: place.component.ts
place.component.html
|
Is it possible to create custom components that always have some pre-existing behaviour.
I'd like to create and visual programming interface with blocks that can be linked to each other. A bit like Unreal Engine 4 Blueprints.
So I'd like to make for example a FloatBlock component that always has some particular behaviour.
The text was updated successfully, but these errors were encountered: