Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const sphereGeom = new SphereBufferGeometry(0.5, 32, 32)
const boxGeom = new BoxBufferGeometry(1, 1, 1)
class WorldTexturedSphere extends Object3DFacade {
constructor(parent, subWorldTexture) {
super(parent, new Mesh(
sphereGeom,
new MeshStandardMaterial({
map: subWorldTexture
})
))
}
}
WorldTexturedSphere = makeWorldTextureProvider(WorldTexturedSphere)
class WorldTexturedBox extends Object3DFacade {
constructor(parent, subWorldTexture) {
super(parent, new Mesh(
boxGeom,
new MeshStandardMaterial({
map: subWorldTexture
})
))
}
}
WorldTexturedBox = makeWorldTextureProvider(WorldTexturedBox)
class AutoUpdatingArcsFacade extends ArcsFacade {
constructor(parent) {
))
}
}
WorldTexturedSphere = makeWorldTextureProvider(WorldTexturedSphere)
class WorldTexturedBox extends Object3DFacade {
constructor(parent, subWorldTexture) {
super(parent, new Mesh(
boxGeom,
new MeshStandardMaterial({
map: subWorldTexture
})
))
}
}
WorldTexturedBox = makeWorldTextureProvider(WorldTexturedBox)
class AutoUpdatingArcsFacade extends ArcsFacade {
constructor(parent) {
super(parent)
this.data = refreshArcsData(null)
this._timer = setInterval(() => {
this.data = refreshArcsData(this.data)
}, 3000)
}
destructor() {
clearInterval(this._timer)
super.destructor()
}
}