MCPcopy Create free account
hub / github.com/esengine/esengine / onMouseDown

Method onMouseDown

packages/tilemap-editor/src/tools/FillTool.ts:13–16  ·  view source on GitHub ↗
(tileX: number, tileY: number, ctx: ToolContext)

Source from the content-addressed store, hash-verified

11 readonly cursor = 'crosshair';
12
13 onMouseDown(tileX: number, tileY: number, ctx: ToolContext): void {
14 if (ctx.layerLocked && !ctx.editingCollision) return;
15 this.floodFill(tileX, tileY, ctx);
16 }
17
18 onMouseMove(_tileX: number, _tileY: number, _ctx: ToolContext): void {
19 // No action on move

Callers

nothing calls this directly

Calls 1

floodFillMethod · 0.95

Tested by

no test coverage detected