From 7ecd065305780ad9bc4e48caca0d83e7dc5a7c75 Mon Sep 17 00:00:00 2001 From: Alexander Lyall Date: Sun, 1 Mar 2026 16:37:02 +0000 Subject: [PATCH] Updates to canvas of logic gate simulator: - Addition of zoom feature Signed-off-by: Alexander Lyall --- package-lock.json | 2 +- package.json | 2 +- src/pages/logic-gates.astro | 31 +++--- src/scripts/logicGates.js | 205 +++++++++++++++++----------------- src/styles/logic-gates.css | 214 +++++++++++------------------------- 5 files changed, 183 insertions(+), 271 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b5ae2c..5ce3392 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "computing-box", - "version": "0.0.1", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 5ea436e..5ec2d92 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "computing-box", "type": "module", - "version": "0.0.1", + "version": "2.0.0", "scripts": { "dev": "astro dev", "build": "astro build", diff --git a/src/pages/logic-gates.astro b/src/pages/logic-gates.astro index dd4dbad..072919c 100644 --- a/src/pages/logic-gates.astro +++ b/src/pages/logic-gates.astro @@ -14,38 +14,41 @@ import "../styles/logic-gates.css";
Interactive Logic Circuit Builder
- Drag items from the toolbox to the board. Drag from output ports to input ports to wire. Click a wire or node and press Delete to remove it. + Drag items from the toolbox. Drag from output ports to input ports to wire. Click a wire/node and press Delete. Scroll to Zoom.
- -
- -