depends on #87
Saving in svg format can be done using Javet. Right now, it's the only js engine supported by jvm.
Other options: GrallVm Polyglot, project Panama, or kotlin wasm support.