mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 06:27:34 -07:00
add x,y parameters to rotate MFM
This commit is contained in:
parent
0396792209
commit
9e46f040a1
1 changed files with 5 additions and 1 deletions
|
@ -178,8 +178,12 @@ export default defineComponent({
|
|||
return h(MkSparkle, {}, genEl(token.children));
|
||||
}
|
||||
case 'rotate': {
|
||||
const rotateDir =
|
||||
token.props.args.x ? 'X' :
|
||||
token.props.args.y ? 'Y' :
|
||||
'';
|
||||
const degrees = parseInt(token.props.args.deg) || '90';
|
||||
style = `transform: rotate(${degrees}deg); transform-origin: center center;`;
|
||||
style = `transform: rotate${rotateDir}(${degrees}deg); transform-origin: center center;`;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue