Documentation menu

Type

DrawingSyncOp

A change of a synced drawing; key identifies the drawing in the group.

export type DrawingSyncOp = {
    type: 'add';
    key: number;
    data: DrawingData;
    visible: boolean;
    locked: boolean;
} | {
    type: 'update';
    key: number;
    data: DrawingData;
} | {
    type: 'setVisible';
    key: number;
    visible: boolean;
} | {
    type: 'setLocked';
    key: number;
    locked: boolean;
} | {
    type: 'remove';
    key: number;
};

Used by

FerroChart