I can set a background color by this code
myDiagram.makeImageData({
background: "rgba(0, 255, 0, 0.5)"
})
But i need set a backgroundImage
diagram.makeImageData({backgroundImage:‘image name’})
Would you please help me?
I can set a background color by this code
myDiagram.makeImageData({
background: "rgba(0, 255, 0, 0.5)"
})
But i need set a backgroundImage
diagram.makeImageData({backgroundImage:‘image name’})
Would you please help me?
This isn’t possible as a built-in option, but it should be easy to set no background, and then composite the ImageData over your background image via an HTML Canvas. Sorry that we don’t have an automatic way to do this.
Thanks for reply .How i can do composite the ImageData over your background image via an HTML Canvas.
Could you please give me a sample code
This is somewhat outside the scope of GoJS, but here’s an example: https://codepen.io/simonsarris/pen/QWzxdmo