Interface MiniviewComponentProps

Props for the MiniviewComponent.

interface MiniviewComponentProps {
    activeTracking?: boolean;
    className?: string;
    clickToCenter?: boolean;
    elementFilter?: ((obj: Node | Group) => boolean);
    typeFunction?: ((obj: Node | Group) => string);
}

Properties

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?: string

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

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?: ((obj: Node | Group) => boolean)

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

typeFunction?: ((obj: Node | Group) => string)

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

Version :