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

Add hexagon shape #86

Open
davydkov opened this issue Jun 10, 2023 · 2 comments
Open

Add hexagon shape #86

davydkov opened this issue Jun 10, 2023 · 2 comments

Comments

@davydkov
Copy link
Member

No description provided.

@ThePlenkov
Copy link

What if we think of ability to use sprites of any shape? Like to support connecting thirdparty libraries? Does canvas support that?

@davydkov
Copy link
Member Author

davydkov commented Sep 9, 2023

I would say LikeC4 is currently only limited by Graphviz.
The steps are:

  • compute graph for each view
  • layout graph by:
    • generate DOT source (here, we are restricted to Graphviz shapes)
    • run Graphviz
    • Parse JSON and convert it to our model
  • Render LikeC4 model with konva

But LikeC4 model is "kinda render-agnostic".

I experimented with tldraw and that was quite good but required more code. At some point, I abandoned this way, as was stuck with bezier lines (I'm not really good at this)

konva library is just a super easy way to get it rendered with smooth animations. And quite feature-rich. But can't be rendered "headless" without cairo being installed

I think sooner or later, we reach some boundaries for sure.

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

2 participants