Type alias TOIHistoryBackendChanges
Type declaration
Optional
added?: OIStroke[]
Optional
erased?: OIStroke[]
Optional
replaced?: {
newStrokes: OIStroke[];
oldStrokes: OIStroke[];
}
Optional
rotate?: {
angle: number;
center: TPoint;
strokes: OIStroke[];
}[]
Optional
scale?: {
origin: TPoint;
scaleX: number;
scaleY: number;
strokes: OIStroke[];
}[]
Optional
translate?: {
strokes: OIStroke[];
tx: number;
ty: number;
}[]
Remarks
used to send messages to the backend on undo or redo