kimikage / ProfileSVG.jl

Write flame graphs to SVG format and explore them interactively in Jupyter, Pluto, etc.
MIT License
53 stars 7 forks source link

Dropping Snap.svg dependency #38

Open kimikage opened 4 years ago

kimikage commented 4 years ago

ProfileSVG does not fully utilize the functions of Snap.svg. Now that the SVG support on major browsers is "somewhat" stable, I don't think we need to use Snap.svg.

Originally posted by @kimikage in https://github.com/kimikage/ProfileSVG.jl/issues/9#issuecomment-621185153

In fact, Snap.svg is useful, but it also causes poor performance. In particular, regarding memory leaks (#19), it complicates the problem.

fonsp commented 2 years ago

It looks like the last work on snap.svg was 5 years ago: https://github.com/adobe-webplatform/Snap.svg/commits/master

A good alternative might be d3, which has zoom-and-pan built in! https://observablehq.com/@d3/zoom