Skip to main content

MiniviewComponent

A component that provides a miniview.

Properties​

activeTracking?​

optional activeTracking: 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?​

optional clickToCenter: 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()?​

optional elementFilter: (obj) => boolean

Optional filter to determine whether or not include a given vertex in the miniview

Parameters​

obj​

Vertex

Returns​

boolean

Input​


showLasso?​

optional showLasso: boolean = true

Defaults to true - the miniview will display a lasso as the user is using the lasso in the canvas

Input​


trackSelection?​

optional trackSelection: boolean = true

Defaults to true - the miniview will add a CSS class to elements whose model object is in the current selection.

Input​


typeFunction()?​

optional typeFunction: (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

Input​