I have a project that the user can add image/svg file to the diagram and the user can download the diagram.
i am using diagram.makeImage but the problem is, It does not include the image/svg file on the generated image. When i also check the model, the image/svg file is not there. I am wondering if the problem is on adding image file to the diagram. Do i need to add the image to the model. But how would i do that?
this is my code on adding image/svg file to the diagram
myDiagram.add(
GO(go.Node,{movable:false,selectable:false},{locationSpot: go.Spot.Center} ,"Vertical",
GO(go.Picture, {source: (src+file_name)},
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify)
)
)
);