(event)
| 893 | |
| 894 | // Launches a shell from a user pointer event, based on state.config |
| 895 | function launchShellFromConfig(event) { |
| 896 | const shell = new Shell(shellFromConfig(shellSizeSelector())); |
| 897 | const w = mainStage.width; |
| 898 | const h = mainStage.height; |
| 899 | |
| 900 | shell.launch(event ? event.x / w : getRandomShellPositionH(), event ? 1 - event.y / h : getRandomShellPositionV()); |
| 901 | } |
| 902 | |
| 903 | // Sequences |
| 904 | // ----------- |
no test coverage detected