Skip to content
pixi-silk
GitHub repository
Interface

RecordGizmoOptions

import type { RecordGizmoOptions } from 'pixi-silk/history';

Options of recordGizmo.

Type Parameters#

Type Parameter
T extends TransformTarget

Properties#

PropertyTypeDescriptionDefined in
apply?(target: T, transform: TransformSnapshot) => voidWrites a transform back on undo and redo. Default sets position, rotation and scale.history.ts:491
label?string | ((handle: string | null) => string)Label of a step. Default from the handle: “Move”, “Rotate”, “Scale” or “Resize”.history.ts:489