Merge remote-tracking branch 'johann150/rotate-x-y' into develop
This commit is contained in:
commit
f1ec391d6a
1 changed files with 5 additions and 1 deletions
|
@ -185,8 +185,12 @@ export default defineComponent({
|
||||||
return h(MkSparkle, {}, genEl(token.children));
|
return h(MkSparkle, {}, genEl(token.children));
|
||||||
}
|
}
|
||||||
case 'rotate': {
|
case 'rotate': {
|
||||||
|
const rotate =
|
||||||
|
token.props.args.x ? 'perspective(128px) rotateX' :
|
||||||
|
token.props.args.y ? 'perspective(128px) rotateY' :
|
||||||
|
'rotate';
|
||||||
const degrees = parseInt(token.props.args.deg) || '90';
|
const degrees = parseInt(token.props.args.deg) || '90';
|
||||||
style = `transform: rotate(${degrees}deg); transform-origin: center center;`;
|
style = `transform: ${rotate}(${degrees}deg); transform-origin: center center;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue