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
| // Empty | |
| [ | |
| { | |
| "key": "ctrl+shift+l", | |
| "command": "editor.action.insertCursorAtEndOfEachLineSelected", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "shift+cmd+l", | |
| "command": "-editor.action.insertCursorAtEndOfEachLineSelected", |
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
| // Thanks Kyle Mavis!! | |
| const calcViewBox = ({width=0, heigth=0, baseWidth=0, baseHeight=0}) => { | |
| const defaultAspect = baseWidth / baseHeight; | |
| const targetAspect = width / height; | |
| if (targetAspect > defaultAspect) { | |
| const height = baseHeight * (defaultAspect / targetAspect); | |
| const y = (baseHeight - height) / 2; | |
| return `0 ${y} ${baseWidth} ${height}`; |
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
| {"lastUpload":"2021-03-05T21:31:26.169Z","extensionVersion":"v3.4.3"} |