MiniviewComponent
A component that provides a miniview.
Properties
activeTracking?
optionalactiveTracking:boolean=true
Whether or not to move miniview elements at the same time as their related surface element is being dragged. Defaults to true.
Input
clickToCenter?
optionalclickToCenter:boolean=true
Defaults to true, meaning a click on a node/group in the miniview will cause that node/group to be centered in the related surface.
Input
elementFilter()?
optionalelementFilter: (obj) =>boolean
Optional filter to determine whether or not include a given vertex in the miniview
Parameters
obj
Vertex
Returns
boolean
Input
showLasso?
optionalshowLasso:boolean=true
Defaults to true - the miniview will display a lasso as the user is using the lasso in the canvas
Input
trackSelection?
optionaltrackSelection:boolean=true
Defaults to true - the miniview will add a CSS class to elements whose model object is in the current selection.
Input
typeFunction()?
optionaltypeFunction: (obj) =>string
Optional function to determine a type for each vertex, which is then written as an attribute onto the DOM element representing the vertex in the miniview.
Parameters
obj
Node | Group
Returns
string