In the Pictures documentation, it says that element property can be a HTMLImageElement, HTMLVideoElement, or HTMLCanvasElement. Picture | GoJS API
I already have a loading animation canvas element. I want to embed that canvas element into element property of the node. I have gone through few resources, but in vain. Can someone please help me embedding a canvas element into the go.Picture property ?
Thank you :)
Hey jhardy, thanks for the reply.
I have two questions :
My motto is to get a loading animation inside the nodes of the diagram.
I have tried sourcing the loading GIF inside the node. But for some reason it shows a static picture.
I have a loader animation generated by HTMLCanvasElement and I tried to refer this link (Picture | GoJS API) and set the canvas element for each of the node.
Even here I got a static loading picture. Where am I doing wrong ?