MiniviewComponentProps
Props for the MiniviewComponent.
Properties
activeTracking?
optionalactiveTracking:boolean
Whether or not to move miniview elements at the same time as their related surface element is being dragged. Defaults to true.
className?
optionalclassName:string
Optional class name to append to the root element's class list.
clickToCenter?
optionalclickToCenter: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()?
optionalelementFilter: (obj) =>boolean
Optional filter to decide which elements to show in the miniview.
Parameters
obj
Group | Node
Returns
boolean
showLasso?
optionalshowLasso:boolean
Defaults to true - the miniview will display a lasso as the user is using the lasso in the canvas
trackSelection?
optionaltrackSelection:boolean
Defaults to true - the miniview will add a CSS class to elements whose model object is in the current selection.
typeFunction()?
optionaltypeFunction: (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