Fix Three.js import map (admin/viewer black canvas)

This commit is contained in:
2026-07-06 19:39:12 +10:00
parent e92ad04b7e
commit 14d7185a6e
6 changed files with 33 additions and 6 deletions
+2 -2
View File
@@ -8,8 +8,8 @@
* Coordinates: world millimetres, origin at the front-left table corner.
* X = length (1500), Z = depth (700), Y = height. Three.js uses metres (×0.001).
*/
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js';
import { OrbitControls } from 'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/controls/OrbitControls.js';
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
const MM = 0.001;
const LURE = {
+1 -1
View File
@@ -7,7 +7,7 @@
*
* This is the real-3D successor to ar-test.js (which was a flat sprite).
*/
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js';
import * as THREE from 'three';
import { buildLegoHeadGhost } from './lego-head-ghost.js?v=1';
import { TunedDetector, MarkerTracker } from './detect-tuned.js?v=1';
+2 -2
View File
@@ -1,5 +1,5 @@
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js';
import { OrbitControls } from 'https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/controls/OrbitControls.js';
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
// ---- Config --------------------------------------------------------------
const MM = 0.001; // millimetre -> Three.js metre scale