MCPcopy Create free account
hub / github.com/alefore/knit / constructor

Method constructor

src/canvas_input_handler.ts:30–34  ·  view source on GitHub ↗
(canvas: HTMLCanvasElement, delegate: CanvasInputHandlerDelegate)

Source from the content-addressed store, hash-verified

28 private readonly DRAG_THRESHOLD = 2;
29
30 constructor(canvas: HTMLCanvasElement, delegate: CanvasInputHandlerDelegate) {
31 this.canvas = canvas;
32 this.delegate = delegate;
33 this.setupEventListeners();
34 }
35
36 private setupEventListeners(): void {
37 this.canvas.addEventListener('wheel', this.handleWheel.bind(this));

Callers

nothing calls this directly

Calls 1

setupEventListenersMethod · 0.95

Tested by

no test coverage detected