present some of the techniques used in the library
Minimize data processing and manipulation:
⇨ replay batch during animations/interactions
⇨ also allows for better rendering qualtity
Over-simplification and clipping for the parts that are outside the viewport.
Vector geometries are draw to the output canvas directly.
Consequence: vector layers are very cheap!
Canvas doesn't natively support hit detection.
Technique used: redraw the entire "scene" in a 1x1 px canvas, and test if there is a color.