Fix duplicate name labels accumulating across games

This commit is contained in:
abdallahbahrawi1
2026-02-01 12:10:15 +02:00
parent 986d509a1c
commit 317820df34
4 changed files with 38 additions and 3 deletions
+3
View File
@@ -7,4 +7,7 @@ export interface Layer {
renderLayer?: (context: CanvasRenderingContext2D) => void;
shouldTransform?: () => boolean;
redraw?: () => void;
// Clean up resources when the layer is no longer needed.
// This should remove any DOM elements added during init() and release event listeners.
dispose?: () => void;
}