chore(viewer): linting
This commit is contained in:
@@ -135,7 +135,7 @@ export default class Sandbox {
|
||||
|
||||
private removeStreamControls(url: string) {
|
||||
this.viewer.unloadObject(url)
|
||||
; (this.streams[url][0] as { dispose: () => void }).dispose()
|
||||
;(this.streams[url][0] as { dispose: () => void }).dispose()
|
||||
delete this.streams[url]
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ export default class Sandbox {
|
||||
})
|
||||
const dark = localStorage.getItem('dark') === 'dark'
|
||||
if (dark) {
|
||||
document.getElementById('renderer') ?.classList.toggle('background-dark')
|
||||
document.getElementById('renderer')?.classList.toggle('background-dark')
|
||||
}
|
||||
|
||||
darkModeToggle.on('click', () => {
|
||||
|
||||
@@ -481,12 +481,12 @@ export default class SpeckleRenderer {
|
||||
|
||||
public updateHelpers() {
|
||||
if (this.SHOW_HELPERS) {
|
||||
; (this.scene.getObjectByName('CamHelper') as CameraHelper).update()
|
||||
// Thank you prettier, this looks so much better
|
||||
; (this.scene.getObjectByName('SceneBoxHelper') as Box3Helper).box.copy(
|
||||
this.sceneBox
|
||||
)
|
||||
; (this.scene.getObjectByName('DirLightHelper') as DirectionalLightHelper).update()
|
||||
;(this.scene.getObjectByName('CamHelper') as CameraHelper).update()
|
||||
// Thank you prettier, this looks so much better
|
||||
;(this.scene.getObjectByName('SceneBoxHelper') as Box3Helper).box.copy(
|
||||
this.sceneBox
|
||||
)
|
||||
;(this.scene.getObjectByName('DirLightHelper') as DirectionalLightHelper).update()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -257,8 +257,8 @@ export class SpeckleSAOPass extends SAOPass {
|
||||
renderer.clear()
|
||||
}
|
||||
|
||||
; (this.fsQuad as FullScreenQuad).material = passMaterial
|
||||
; (this.fsQuad as FullScreenQuad).render(renderer)
|
||||
;(this.fsQuad as FullScreenQuad).material = passMaterial
|
||||
;(this.fsQuad as FullScreenQuad).render(renderer)
|
||||
|
||||
// restore original state
|
||||
renderer.autoClear = originalAutoClear
|
||||
|
||||
Reference in New Issue
Block a user