Implemented a rotate MFM (#8016)

Co-authored-by: Richard Bowey <me@epickitty.uk>
This commit is contained in:
Richard "EpicKitty" Bowey
2021-11-26 04:39:57 +00:00
committed by GitHub
parent aaba43e754
commit dec7c4f722
4 changed files with 19 additions and 1 deletions

View File

@ -184,6 +184,11 @@ export default defineComponent({
count, speed,
}, genEl(token.children));
}
case 'rotate': {
const degrees = parseInt(token.props.args.deg) || '90';
style = `transform: rotate(${degrees}deg); transform-origin: center center;`;
break;
}
}
if (style == null) {
return h('span', {}, ['$[', token.props.name, ' ', ...genEl(token.children), ']']);