Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Updating with new Layer models #3

@mattgi

Description

@mattgi

I have to say that this is one of the cleanest APIs I have seen in a long time. TypeScript alone helps, but your adoption of it is first class - well done!

With that said, I am looking for an example of how to add a new model to a layer but cannot see how to retrieve the layer, or what to do once I have added a new model to the existing layer. (e.g. forceUpdate vs repaint, etc.).

Only really working from https://github.com/projectstorm/react-canvas/blob/master/demos/demo-standard/index.story.tsx though, so trying to make sense of things based on that.

Any guidance / further demos would be most appreciated.

(I realise I should expect to be flying blind based on the WIP flag, but as I'm starting on a new project this seemed like a more logical choice than react-diagrams).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions