Javascript export has not beeing equipped with a strategy to translate FileAPI references in diagram so far. Nevertheless, if a diagram arrangement is exported as Javascript via group export (i.e.
The most convenient way to use D2 is to just run it as a CLI executable to produce SVGs from .d2 files. You can run the install script with --dry-run to see the ...