Skip to main content

Controls

HTML Tag
vjs-controls

This component provides a set of controls for a surface - such operations as zoom to extents, undo/redo, clear, etc. The operations that are available can be specified on the controls element, and you can also add your own buttons.

Usage​


import { VisuallyJsModule } from "@visuallyjs/browser-ui-angular"

@Component({
template:`<div>
<vjs-surface [renderOptions]="renderOptions" [data]="data"/>
<vjs-controls />
</div>`
})
export class MyApp {
renderOptions = { ... }
data = { ... }
}

Definition​

Inputs​

NameTypeDescription
buttons?ControlsComponentButtonsOptional extra buttons to display in the component.
clear?booleanWhether or not to show the clear model button. Defaults to true.
clearMessage?stringMessage to show when the user clicks the clear model button.
orientation?stringOrientation of the component - "row" or "column"
undoRedo?booleanWhether or not to show undo/redo buttons. Defaults to true.
zoomButtons?booleanWhether or not to show the zoom in/zoom out buttons. Defaults to false.
zoomToExtents?booleanWhether or not to show the zoom to extents button. Defaults to true.