Skip to content

Sticks

Use sticks to choose which resize handles and rotation handle are rendered. By default, the component shows 8 resize handles and the angle rotation handle.

vue
<vdr :sticks="['tl', 'tr', 'br', 'bl', 'angle']" />

Values

ValuePosition
tltop left
tmtop middle
trtop right
mrmiddle right
brbottom right
bmbottom middle
blbottom left
mlmiddle left
anglerotation handle

Common Sets

Corners only:

vue
<vdr :sticks="['tl', 'tr', 'br', 'bl']" />

Rotation only:

vue
<vdr :sticks="['angle']" :resizeable="false" />

Hide all handles:

vue
<vdr :sticks="[]" />

sticks only controls whether handles are rendered. Drag, resize, and rotate permissions are controlled by draggable, resizeable, and rotateable.

See Sticks for an interactive example.