diff --git a/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue b/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue index 313a7ccbb..e7885d028 100644 --- a/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue +++ b/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue @@ -405,7 +405,6 @@ export default { sectionBox: this.viewer.sectionBox.getCurrentBox(), selection: null // TODO for later, lazy now }, - //@Dim: Changed this to use the API screenshot: this.viewer.screenshot() } if (this.$route.query.overlay) { @@ -446,7 +445,6 @@ export default { this.visible = false this.commentValue = { doc: null, attachments: [] } setIsAddingComment(false) - //@Dim: Changed this to use the API this.viewer.resetSelection() }, sendStatusUpdate() { diff --git a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue index ca4cdea31..449dd29ee 100644 --- a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue +++ b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue @@ -516,14 +516,17 @@ export default { if (camToSet[6] === 1) { this.viewer.toggleCameraProjection() } - //@Dim: This needs to use the API. - // this.viewer.interactions.setLookAt( - // { x: camToSet[0], y: camToSet[1], z: camToSet[2] }, // position - // { x: camToSet[3], y: camToSet[4], z: camToSet[5] } // target - // ) - if (camToSet[6] === 1) { - this.viewer.cameraHandler.activeCam.controls.zoom(camToSet[7], true) - } + + this.viewer.setView({ + position: new THREE.Vector3(camToSet[0], camToSet[1], camToSet[2]), + target: new THREE.Vector3(camToSet[3], camToSet[4], camToSet[5]) + }) + // TODO: If it's an isometric cam. + // NOTE: currently not supported as parallel cam is disabled due to + // comment bubbles projection complications. + // if (camToSet[6] === 1) { + // this.viewer.cameraHandler.activeCam.controls.zoom(camToSet[7], true) + // } if (comment.data.filters) { setFilterDirectly({ filter: comment.data.filters diff --git a/packages/frontend/src/main/components/viewer/LightsMenu.vue b/packages/frontend/src/main/components/viewer/LightsMenu.vue index 78332112c..55bb364d7 100644 --- a/packages/frontend/src/main/components/viewer/LightsMenu.vue +++ b/packages/frontend/src/main/components/viewer/LightsMenu.vue @@ -1,10 +1,5 @@