From aa7f7201942852a9126cf5714fd11e58e6c44bf6 Mon Sep 17 00:00:00 2001 From: brentperteet Date: Fri, 27 Feb 2026 13:58:14 -0600 Subject: [PATCH] Fix Three.js module loading for OrbitControls and STLLoader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Switch from legacy script includes to ES6 modules with import map - Import OrbitControls and STLLoader from three/addons/ - Update constructor calls to use imported classes directly - Remove THREE namespace prefix for OrbitControls and STLLoader - Fixes "THREE.OrbitControls is not a constructor" error 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- templates/index.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/templates/index.html b/templates/index.html index 8e60224..4180ca9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,9 +5,14 @@ UM KiCad Manager - - - +