I am trying to set connector defaults through code.
this.diagram.connectorDefaults =
{
constraints: ConnectorConstraints.Default & ~ConnectorConstraints.Drag,
type: 'Orthogonal',
cornerRadius: 7,
targetDecorator: { height: 7, width: 7 },
style: { strokeColor: '#5C5C5B' },
fixedUserHandles: [
{
id: 'delete',
alignment: 'Before',
width: 25,
height: 25,
iconStrokeColor: 'white',
fill: '#7d7d7d',
pathData:
'M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zM9 4v2h6V4H9z',
offset: 0.5,
padding: { top: 5, bottom: 5, left: 5, right: 5 },
cornerRadius: 15,
},
],
};
The connector defaults are not getting applied to newly created connector. But if I save and reload they a