Skip to main content

MiniviewComponentProps

Props for the MiniviewComponent.

Properties

activeTracking?

optional activeTracking: boolean

Whether or not to move miniview elements at the same time as their related surface element is being dragged. Defaults to true.


className?

optional className: string

Optional class name to append to the root element's class list.


clickToCenter?

optional clickToCenter: boolean

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.


elementFilter()?

optional elementFilter: (obj) => boolean

Optional filter to decide which elements to show in the miniview.

Parameters

obj

Group | Node

Returns

boolean


showLasso?

optional showLasso: boolean

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


trackSelection?

optional trackSelection: boolean

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


typeFunction()?

optional typeFunction: (obj) => string

Optional function to use to decorate miniview elements with a vjs-miniview-type attribute. Can be used for simple styling.

Parameters

obj

Group | Node

Returns

string