DiagramConnectionEditingCommands extension
Routing and endpoint editing of existing connectors, for DiagramConnectionCommands.
Methods
-
commitEndpoint(
String id, {required bool atStart}) → EditResult -
Available on DiagramConnectionCommands, provided by the DiagramConnectionEditingCommands extension
-
previewEndpoint(
String id, {required bool atStart, required ConnectorEndpoint endpoint, FreeEndpoint? deniedTargetFallback}) → ({ConnectorElement connector, EditResult decision}) -
Available on DiagramConnectionCommands, provided by the DiagramConnectionEditingCommands extension
A rejected candidate restores the original connector unless the host explicitly requests a free endpoint fallback. -
reconnect(
String id, {required bool atStart, required ConnectorEndpoint endpoint}) → void -
Available on DiagramConnectionCommands, provided by the DiagramConnectionEditingCommands extension
Changes one endpoint atomically without requiring a mounted canvas. -
reroute(
{Iterable< String> ? connectorIds}) → EditResult -
Available on DiagramConnectionCommands, provided by the DiagramConnectionEditingCommands extension
Uses installed route planners and publishes all results as one edit. -
setRoute(
String id, {ConnectorRoute? route, double? portSpacing, Map< String, Object?> options = const {}}) → EditResult -
Available on DiagramConnectionCommands, provided by the DiagramConnectionEditingCommands extension
Changes route kind, port spacing and route options in one undo step. A new kind clears the previous kind's control points and options; any routing change discards retained route waypoints. Every option is validated against the resulting kind's schema before anything changes. -
setRoutes(
Iterable< String> ids, {ConnectorRoute? route, double? portSpacing, Map<String, Object?> options = const {}}) → EditResult -
Available on DiagramConnectionCommands, provided by the DiagramConnectionEditingCommands extension
Validates and changes several connectors with one resolution.