won't mount if cameraAngleOfView undefined

This commit is contained in:
David Tsay 2023-02-08 12:48:39 -08:00
parent 5a8f1d542e
commit ae623b8552

View File

@ -293,13 +293,7 @@ export default {
return this.cameraPan ?? this.heading; return this.cameraPan ?? this.heading;
}, },
cameraAngleOfView() { cameraAngleOfView() {
const cameraAngleOfView = this.transformations?.cameraAngleOfView; return this.transformations?.cameraAngleOfView;
if (!cameraAngleOfView) {
console.warn('No Camera Angle of View provided');
}
return cameraAngleOfView;
}, },
camAngleAndPositionStyle() { camAngleAndPositionStyle() {
const translateX = this.transformations?.translateX; const translateX = this.transformations?.translateX;