Hi,
I am using the print and export methods of a diagram :
let printOptions = {
mode: 'Data',
region: 'PageSettings',
margin: { left: 0, top: 0, bottom: 0, right: 0 }
};
this.diagram.print(printOptions);
If I see the nodes and the connectors, the annotations are empty (see the picture below):
I am using the setNodeTemplate method of the diagram to annotate the nodes:
function setNodeTemplate(obj) {
obj.style = { fill: obj.Color, color: 'white' };
obj.annotations = [
{
width: 200,
height: 80,
template: obj.Description,
margin: { left: 3, top: 0, bottom: 1 }
}
];
obj.constraints = ej.diagrams.NodeConstraints.Default & ~ej.diagrams.NodeConstraints.Rotate & ~ej.diagrams.NodeConstraints.Resize & ~ej.diagrams.ConnectorConstraints.Delete;
}
Do you have any clue?
Regards,
Laurent