Skip to content

Commit caef0a5

Browse files
committed
CDNifying all the three.js imports
1 parent f1f4e7c commit caef0a5

File tree

5,082 files changed

+106606
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,082 files changed

+106606
-14
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as THREE from './node_modules/three/build/three.module.js';
1+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
22
import { createCameraControls } from './cameraControls.js';
33
import { createCubeMenu } from './cubeMenu.js';
44
import { createSphereMenu } from './sphereMenu.js';

cameraControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as THREE from './node_modules/three/build/three.module.js';
1+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
22
import { createMenuTemplate } from './menuTemplate.js';
33
import { initializeCameraKeyboardControls } from './cameraKeyboardControls.js';
44

cameraKeyboardControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as THREE from './node_modules/three/build/three.module.js';
1+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
22
import { smoothlyMoveCamera } from './cameraControls.js';
33
export function initializeCameraKeyboardControls(getActiveCamera, objectEditor) {
44
// Movement speed and rotation sensitivity

coneMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { addObject } from './objectManager.js';
33
import { createCone } from './objects.js';
44
import { applyHoverEffects } from './buttonHover.js';
55

6-
import * as THREE from './node_modules/three/build/three.module.js';
6+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
77

88
export function createConeMenu(scene) {
99
// Create the menu template

cubeMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createMenuTemplate } from './menuTemplate.js';
22
import { addObject } from './objectManager.js';
33
import { createCube } from './objects.js';
44
import { applyHoverEffects } from './buttonHover.js';
5-
import * as THREE from './node_modules/three/build/three.module.js';
5+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
66

77
export function createCubeMenu(scene) {
88
// Create the menu template

curve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as THREE from './node_modules/three/build/three.module.js';
1+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
22
import { parametricFunctions } from './parametricFunctions.js';
33

44
/**

cylinderMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { addObject } from './objectManager.js';
33
import { createCylinder } from './objects.js';
44
import { applyHoverEffects } from './buttonHover.js';
55

6-
import * as THREE from './node_modules/three/build/three.module.js';
6+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
77

88
export function createCylinderMenu(scene) {
99
// Create the menu template

exportAnimationToGIF.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as THREE from './node_modules/three/build/three.module.js';
1+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
22
import '../node_modules/gif.js/dist/gif.js';
33
const GIF = window.GIF;
44

objectEditMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as THREE from './node_modules/three/build/three.module.js';
1+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
22
import { parametricFunctions } from './parametricFunctions.js';
33
import { applyHoverEffects } from './buttonHover.js';
44
import { isGizmo } from './threejs-gizmo.js';

objectManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as THREE from './node_modules/three/build/three.module.js';
1+
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.150.0/build/three.module.js';
22

33
// Array to keep track of objects
44
const objects = [];

0 commit comments

Comments
 (0)