This file contains 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
/* | |
I decided on the Script12 BT cursive font for now. Works better for me than FlottFlott. | |
*/ | |
.mtk3 { | |
font-family: "Script12 BT"; | |
font-size: 1em; | |
} | |
.mtk4 { | |
font-family: "Script12 BT"; | |
font-size: 1em; |
This file contains 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 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"} |