Visualize your data structures
summary
Reftree is a Scala library that renders case classes and collections as SVG/PNG diagrams and can produce frame-by-frame animations by converting SVG paths into sampled polylines and interpolating attributes. It composes Reftree with Graphviz/dot, Monocle optics and a zipper-based XML editor, exposes an interpolation typeclass (numbers → points → polylines → SVG) and demonstrates smooth transitions using configurable sampling (examples: 5 samples; 100 points and 100 frames). Rendering scales: ~1,000 items is OK, very large scenes or many frames can take minutes and gigabytes of RAM, but the demos work.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:24Animations
- 10:44Point Interpolator
- 11:43Polyline
- 21:14Edge Interpolation
- 21:27Interpolation
- 22:51Svg Graph Animation
- 26:27Create the Zipper
- 29:02Super Control
related talks
34mVisualizations in Golang
39mCrafting Artisanal Vector Graphics
01h 05mData Visualization with Scala tools
21mData Visualizations with React + D3
18mData Visualisation with Ruby
34mLucky in the Cloud With Diagrams
43mVisualizations using SVG, Canvas, and WebGL in Vue
12mBattle-Tested Techniques for Animation & Data Viz
