If you run node async.js everything is fine. If you run node sync.js you will get the error No or improper image file="https://github.com/christianvoigt/argdown/raw/master/argdown-arrow.png?raw=true" in label of node n0.
This means that vizjs did not find the image size information I gave it using the following code:
After testing the image support in async mode, I switched to sync mode and it stopped working.
I have created a minimal example to demonstrate this: https://github.com/christianvoigt/sync-vizjs-images-test
If you run
node async.js
everything is fine. If you runnode sync.js
you will get the errorNo or improper image file="https://github.com/christianvoigt/argdown/raw/master/argdown-arrow.png?raw=true" in label of node n0
.This means that vizjs did not find the image size information I gave it using the following code: