Actions
This class bundles the common arguments to many actions one might want to do in a binding so that you don't have to pass them in every time, and then provides a bunch of commonly used actions as methods.
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Add and return a part to the acset at p
of type ob
with properties
props
Add and return a part to the acset at p
of type ob
with properties
props
Attributes
Add and return a part to the acset at p
of type ob
with properties
props
Add and return a part to the acset at p
of type ob
with properties
props
Attributes
Add and return a part to the model with type Ob
and subacset given by
init
, and set the Center of that new part to be the current mouse
position
Add and return a part to the model with type Ob
and subacset given by
init
, and set the Center of that new part to be the current mouse
position
Attributes
Add and return a part to the model with type Ob
and Center the
current mouse position.
Add and return a part to the model with type Ob
and Center the
current mouse position.
Attributes
addAtMouse without returning the part
addAtMouse without returning the part
A generalized drag action
A generalized drag action
At the beginning, compute a value memo
of type Memo
from the mouse
position.
While the drag is happening, execute during
with memo
and the mouse
position of the drag.
Finally, call after
with memo
to get the return value.
If the drag is canceled, this resets the state.
Attributes
- Todo:
- It seems like we do not use the parameter
s
anywhere; we may want to remove it during
executes for side-effects, which could be anything! But we are assuming that all it does is changem
. We should express this explicitly by havingduring
return a functionACSet => ACset
, and then hook that into modifyingm
.- Is
drag
the best name for this?
- It seems like we do not use the parameter
Drag to construct an edge between two parts
Drag to construct an edge between two parts
Returns the part corresponding to the edge that was constructed.
Attributes
- eqTypes
Optional action when attaching
src
andtgt
(e.g., equating port and wire types)- lift
Optionally create/move a part (e.g., new port on a box) based on the initiating part
s
and the mouse location- ob
The type of the new edge
- s
The part initiating the drag action
- src
The source mapping for the edge type
- tgt
The target mapping for the edge type
Edit the content of the part i
, using popup text box
Edit the content of the part i
, using popup text box
Attributes
Bring up a textbox that can be used to export a tikz serialization
Bring up a textbox that can be used to export a tikz serialization
Attributes
Bring up a textbox that can be used for copy/pasting the serialized version of the current state
Bring up a textbox that can be used for copy/pasting the serialized version of the current state
Attributes
Unset the value of the property f
of the part p
Unset the value of the property f
of the part p
Attributes
Set the value of the property f
at the part p
to be v
Set the value of the property f
at the part p
to be v
Attributes
Try to get the bounding box of b
as it is currently displayed on the
screen
Try to get the bounding box of b
as it is currently displayed on the
screen
Attributes
Like dragEdge, but begins by removing an existing port assignment.
Like dragEdge, but begins by removing an existing port assignment.
Attributes
Display the internal ACSet of b
in the main viewport.
Display the internal ACSet of b
in the main viewport.
First layout
the ACSet, then use esources
sprites to produce the svg
Attributes
Display the internal ACSet that the current view is contained in.
Display the internal ACSet that the current view is contained in.
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product