Open conundrumer opened 8 years ago
The CSS solution won't work because Millions doesn't support a transparent backbuffer (this is to make sure the antialiasing works correctly), so we'd need a solution that allows multiple Millions contexts to share a single WebGL or Canvas2D context.
That or just support layers within a Millions context. Might be the easiest approach for quickly switching out what's visible.
Right now, to hide a group of lines, we'd have to remove them, and then readd them to unhide them. We should test the performance implications since this is going to be a common operation.
One clever solution is to have multiple canvases as multiple layers that can be hidden using CSS.