how to make Image with my Image add in Panel in Node? I use example only make image with text, shape and link.
Sorry about my English.
I’m not sure what you are asking for.
I suggest you read the Introduction.
Pictures and Nodes might be helpful.
This is my Mindmap.
My function:
function ExportAsImage(){
var img = myDiagram.makeImage({
scale: 1,
part: myDiagram.nodes,
maxSize: new go.Size(NaN, NaN),
background: “white”,
type: “image/jpeg”,
details: 1
});
var myWindow = window.open("",“myWindow”);
myWindow.document.body.appendChild(img);
<span =“apple-tab-span”="" style=“white-space:pre”> }
This is result:
What I wrong?
Sorry about my English.
I suspect that the problem is that your image(s) are not CORS-enabled.
Enable-CORS
CORS enabled images
Oh yes, thanks you very much. I test in Firefox is OK, but chorm is also having problems with Cors.