Skip to main content

Interface: CanvasConfig

Canvas behavior options for TwickEditor / TwickStudio. Customers set these via editorConfig.canvasConfig or studioConfig.

Table of contents

Properties

Properties

enableShiftAxisLock

Optional enableShiftAxisLock: boolean

When true, holding Shift while dragging restricts movement to horizontal or vertical (dominant axis). Default: false.

Defined in

packages/video-editor/src/helpers/types.ts:83


lockAspectRatio

Optional lockAspectRatio: boolean

When true, element resize keeps aspect ratio (uniform scaling). Can be overridden per element via props. Default: true for media.

Defined in

packages/video-editor/src/helpers/types.ts:85