vasturiano / circlepack-chart

A circle packing interactive chart web component for visualizing hierarchical data
https://vasturiano.github.io/circlepack-chart/example/flare
MIT License
63 stars 20 forks source link

[Question] Is There a possibiliy to support canvas render ? #7

Closed khofaai closed 3 years ago

khofaai commented 3 years ago

Hi, im using this package, it works fine the issue is i have some big object and svg rendering + animation is really slow, and im asking are you considering to add canvas rendering in the future ? Thanks

vasturiano commented 3 years ago

@khofaai thanks for reaching out.

It's a good idea, specially to help with rendering performance. But using Canvas would be nearly a complete re-write of this component. Plus, it makes the interaction parts of the module much more complicated as you can't rely on DOM node native events.

I would say that such an effort should probably be in a fork repo of this one, to not over-complicate the code base.

khofaai commented 3 years ago

Hi @vasturiano Thanks for the reply,

Yes ofc, I've tried to integrate canvas as an option but i didn't manage x), thanks for explain it to me, now i have a clear idea of what i need,

Thanks