likec4 icon indicating copy to clipboard operation
likec4 copied to clipboard

Add hexagon shape

Open davydkov opened this issue 2 years ago • 6 comments

davydkov avatar Jun 10 '23 06:06 davydkov

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

ThePlenkov avatar Sep 07 '23 09:09 ThePlenkov

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.

davydkov avatar Sep 09 '23 13:09 davydkov