I think someone already mentioned Excalidraw.
It already is javascript; maybe it could be embedded? So like now, when you have a referenced PDF in a note, it gets rendered with its own controls; maybe an embedded .svg could just show up within Excalidraw?
That would be really handy.