Type Alias DrawingKeyAction

DrawingKeyAction:
    | { type: "undo" }
    | { type: "redo" }
    | { type: "copy" }
    | { type: "cut" }
    | { type: "paste" }
    | { type: "duplicate" }
    | { type: "delete" }
    | { dx: number; dy: number; type: "nudge" }
    | { type: "cancel" }
    | { type: "finish" }
    | { type: "popAnchor" }

Type declaration

  • { type: "undo" }
  • { type: "redo" }
  • { type: "copy" }
  • { type: "cut" }
  • { type: "paste" }
  • { type: "duplicate" }
  • { type: "delete" }
  • { dx: number; dy: number; type: "nudge" }

    Move the selection by a screen distance; dx right and dy down, in px.

  • { type: "cancel" }

    Placement, while a tool is armed: leave it, close the shape, drop the last anchor.

  • { type: "finish" }
  • { type: "popAnchor" }