Hi
I just noticed that Native nodes and Image nodes do not appear on the PNG / JPG or SVG files generated by the diagram.export() method. Only Flow and Basic nodes get rendered in the exported PNG / JPG or SVG.
For replication :
- Creating a Native node (either from the palette or with a drawing tool) :
{ id: "close", shape: {
type: 'Native',
content: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>'
}},
- Export the diagram with diagram.export() and the Native node will be invisible on the generated files.
Do I need to inject any specific module to have this node be included in the export ?
Thank you very much !