Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis committed Sep 22, 2024
1 parent ec38e47 commit 077ed24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/signals_node_based_editor/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class _ExampleState extends State<Example> {
if (selected is NodeSelection<BaseNode>) {
graph.removeNode(selected.node);
}
if (selected is ConnectorSelection<BaseKnob>) {
if (selected is ConnectorSelection<BaseNode>) {
graph.removeConnector(selected.input);
}
},
Expand Down
6 changes: 3 additions & 3 deletions packages/signals_node_based_editor/lib/src/graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ enum NodeSelectionPart {
connector,
}

class ConnectorSelection extends Selection {
final ConnectorInput input;
final ConnectorOutput output;
class ConnectorSelection<Node extends GraphNode> extends Selection {
final ConnectorInput<Node> input;
final ConnectorOutput<Node> output;
ConnectorSelection(this.input, this.output);

@override
Expand Down

0 comments on commit 077ed24

Please sign in to comment.