element_51.editsΒΆ
Edits to the graph, and the rules that decide whether they are allowed.
The browser applies an edit at once and asks Python to confirm it. Both sides run the same rules; tests/fixtures/link_cases.json is read by the tests of both, so they cannot drift apart unnoticed.
Functions
|
Return the graph after edit, or refuse it. |
Classes
|
Link an output port to an input port. |
|
Place a node. |
|
Remove one link. |
|
Remove a node, and every link that touches it. |
|
Why an edit was refused. |
|
Put a node at a new position. |
|
Give a card a size, or the default size again with None. |
|
Give a series input its own line colour, or take it away with None. |
|
Give an input its own value, or take it away with None. |
Exceptions
|
An edit the rules refuse. |