From a819a72e01c9e7cf2431856a10d1e99ec6d5c9c0 Mon Sep 17 00:00:00 2001 From: rakadu1 Date: Mon, 23 Mar 2026 14:42:59 +0530 Subject: [PATCH] Removed duplicated source of naming the zoom sketch. --- steps/src/p5/zoomSketch.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/steps/src/p5/zoomSketch.js b/steps/src/p5/zoomSketch.js index a4e2249..179e7cf 100644 --- a/steps/src/p5/zoomSketch.js +++ b/steps/src/p5/zoomSketch.js @@ -436,23 +436,6 @@ export const zoomSketch = function (p) { // --- END: Draw Purple Debug Circle --- p.pop(); // End zoom transformations - // --- START: DRAW TITLE OVERLAY --- - // This code runs *after* the zoom transformations have been popped, - // so it draws directly onto the canvas as a fixed UI element. - p.push(); - const titleLabel = document.getElementById("toggle-close-up").parentElement; - const titleText = titleLabel ? titleLabel.textContent.trim() : "Zoom Mode"; - const textColor = document.documentElement.classList.contains("dark") - ? 220 - : 80; - p.fill(textColor); - p.noStroke(); - p.textSize(16); - p.textAlign(p.LEFT, p.TOP); - p.textStyle(p.BOLD); - p.text(titleText, 10, 10); - p.pop(); - // --- END: DRAW TITLE OVERLAY --- // --- START: Draw Out of Bounds Overlay --- if (appState.isMouseOutOfBounds && appState.isCloseUpMode) {