Skip to content

Commit 82f57c6

Browse files
committed
Update to latest enable3d version
1 parent 984fe36 commit 82f57c6

File tree

4 files changed

+84
-54
lines changed

4 files changed

+84
-54
lines changed

package-lock.json

Lines changed: 76 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "",
1515
"license": "MIT",
1616
"dependencies": {
17-
"enable3d": "~0.25.0"
17+
"enable3d": "^0.26.1"
1818
},
1919
"devDependencies": {
2020
"five-server": "^0.1.2",
@@ -24,4 +24,4 @@
2424
"webpack": "^5.64.4",
2525
"webpack-cli": "^4.9.1"
2626
}
27-
}
27+
}

www/scripts/standalone.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Project, Scene3D, PhysicsLoader, THREE, ExtendedObject3D } from 'enable3d'
1+
import { Project, Scene3D, PhysicsLoader, THREE, ExtendedMesh } from 'enable3d'
22

33
class MainScene extends Scene3D {
4-
box!: ExtendedObject3D
4+
box!: ExtendedMesh
55

66
constructor() {
77
super({ key: 'MainScene' })

www/scripts/three.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
66
import { AmmoPhysics, ExtendedMesh, PhysicsLoader } from '@enable3d/ammo-physics'
77

88
// CSG
9-
import { CSG } from '@enable3d/three-graphics/jsm/csg'
9+
import { CSG } from '@enable3d/three-graphics/dist/csg'
1010

1111
// Flat
12-
import { TextTexture, TextSprite } from '@enable3d/three-graphics/jsm/flat'
12+
import { TextTexture, TextSprite } from '@enable3d/three-graphics/dist/flat'
13+
import { VERSION } from 'enable3d'
1314

1415
console.log('Three.js version r' + THREE.REVISION)
16+
console.log('Enable3d version ' + VERSION)
1517

1618
const MainScene = () => {
1719
// sizes

0 commit comments

Comments
 (0)