Interface useDrawingCommandsOptions

interface useDrawingCommandsOptions {
    commandDependencies?: CommandMap;
    commandTarget: CommandTarget | (() => CommandTarget);
    commandsCopyPaste?: CommandMap;
    drawingContainer: IDrawingContainer<any>;
    drawingContainerView: IDrawingContainerView<any>;
    notifier?: Notifier;
    onRepeatCommandChange?: ((command) => void);
    transactionStack: ITransactionStack;
}

Properties

commandDependencies?: CommandMap
commandTarget: CommandTarget | (() => CommandTarget)

Type declaration

commandsCopyPaste?: CommandMap
drawingContainer: IDrawingContainer<any>

The container to retrieve drawing objects

drawingContainerView: IDrawingContainerView<any>

The container view to retrieve selection information about the drawings.

notifier?: Notifier
onRepeatCommandChange?: ((command) => void)

Notify that there is a new repeatable command

Type declaration

    • (command): void
    • Parameters

      Returns void

transactionStack: ITransactionStack

If provided this will be used start and stop transactions on being/end move.