This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const startAnimation = () => { | |
| if (retrievedDiff) { | |
| ANIMATION_WINDOW_MAP[props.id] = setTimeout( | |
| () => displayCharacter(), | |
| constants.SPEED_SETTING[props.currentSpeed].File | |
| ); | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| initRecorder = async () => { | |
| navigator.getUserMedia = | |
| navigator.getUserMedia || | |
| navigator.webkitGetUserMedia || | |
| navigator.mozGetUserMedia || | |
| navigator.msGetUserMedia; | |
| if (navigator.mediaDevices) { | |
| const s = await navigator.mediaDevices.getUserMedia({ | |
| audio: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fileEditorChangeHandler = (newValue) => { | |
| props.fileEditorContentChanged({ | |
| windowId: props.id, | |
| value: newValue, | |
| }); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The layout of the windows in the IDE. | |
| this.windowGrid = [ | |
| [new FileWindow(), new NoteWindow()], | |
| [new TerminalWindow()], | |
| ]; | |
| const getWindow = (window) => { | |
| let component; | |
| switch (window.type) { | |
| case constants.NOTE: |