diff --git a/.idea/workspace.xml b/.idea/workspace.xml index bd1e5d7..deb74af 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,9 @@ - + + + @@ -30,11 +32,20 @@ + + + + + + + + + - - + + @@ -45,17 +56,17 @@ - + - + - - + + @@ -79,7 +90,7 @@ - + @@ -87,30 +98,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -167,9 +154,7 @@ @@ -301,12 +288,12 @@ - + - @@ -381,13 +368,6 @@ - - - - - - - @@ -487,16 +467,6 @@ - - - - - - - - - - @@ -517,10 +487,33 @@ - + + + + + + + + + + + + + + + + + + + + + + + + - - + + @@ -529,41 +522,35 @@ - + - + - - - - - + + - - - - - - - - - - + + + + + + + - - - - - - - + + + + + + + diff --git a/src/components/ProjectorScreen.js b/src/components/ProjectorScreen.js index 29d83ce..52494f9 100644 --- a/src/components/ProjectorScreen.js +++ b/src/components/ProjectorScreen.js @@ -47,7 +47,7 @@ class ProjectorScreenInner extends React.Component {

Put this screen on your projector!

Resize the window to take the full screen and then click the button below

Height: {this.state.height}
Width: {this.state.width}

- + ); @@ -119,7 +119,7 @@ class ProjectorScreen extends React.Component { render() { return ( -
+
diff --git a/src/components/pages/CalibrateWebcam.js b/src/components/pages/CalibrateWebcam.js index 39fe8ac..0767e8b 100644 --- a/src/components/pages/CalibrateWebcam.js +++ b/src/components/pages/CalibrateWebcam.js @@ -44,6 +44,7 @@ class CalibrateWebcam extends React.Component { finishCalibrating() { cookie.save("webcamConfig", {corners: this.calibrator.getCorners()}) + this.props.targetScreenManager.wipeScreen(); this.props.changePage("welcome") } diff --git a/src/util/WebcamCalibrator.js b/src/util/WebcamCalibrator.js index 9d001ab..c01f472 100644 --- a/src/util/WebcamCalibrator.js +++ b/src/util/WebcamCalibrator.js @@ -15,11 +15,11 @@ class WebcamCalibrator { if (!!existingCorners) { this.corners = existingCorners; + this.currentCorner = 5; } else { this.corners = [{}, {}, {}, {}]; + this.currentCorner = 0; } - - this.currentCorner = 5; } start() {