Skip to content

Instantly share code, notes, and snippets.

@AnteaterKit
Last active October 2, 2022 18:10
Show Gist options
  • Save AnteaterKit/588444b6f0ed11e9743e85dfeee80b69 to your computer and use it in GitHub Desktop.
Save AnteaterKit/588444b6f0ed11e9743e85dfeee80b69 to your computer and use it in GitHub Desktop.
WhiteBoardState
export abstract class WhiteBoardState {
protected whiteBoard: WhiteBoard;
setWhiteBoard(whiteBoard: WhiteBoard) {
this.whiteBoard = whiteBoard;
}
public abstract getTool(): SelectedTool;
public abstract handleClick(e): void;
public abstract handleDragend(e): void;
public abstract handleMousedown(e): void;
public abstract handleMouseup(e): void;
public abstract handleMousemove(e): void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment