Closed tbo47 closed 2 years ago
Thanks for PR. Not sure how to do expose SvgPath best way:
IConnectorPath
is a private type for ConnectorManagerIDiagram.shapeConnect(...)
method and IDiagram
connect
and disconnect
events.
Looks like event and method must use same link/object/pointer to SvgPathI'll get back to this later. I hope you can use your patch in your project for now.
Ok, thanks. My use case is that the user can change the color of the connectors.
I applied your suggestion with little changes.
Changes:
I remove IDiagram.shapeConnect(...)
method.
To create path or shape use
IDiagram.add(type: PresenterChildAddType, param: PresenterShapeAppendParam | DiagramShapeConnectParam): IDiagramElement;
IDiagram
add
event now fires when adding path.
expose SvgPath to be able to change the stroke or stroke-dasharray