Paddings in diagram

Please enable the option to customize padding in the diagram for styling purposes. For example, I would like to absolute position the shapebar and editbar. It appears that this functionality was available in previous versions.

Hello @D_F,

It looks, like you are trying to add some margin for the diagram content, if so - you can do it by updating margin object:

editor.diagram.config.margin = {
    x: 122, y: 200,
    itemX: 20, itemY: 20
}

Here is a demo:
https://snippet.dhtmlx.com/k44onzxn

Kind regards,

1 Like