remove defaultStore check in MFM

This commit is contained in:
ThatOneCalculator 2023-02-12 20:29:34 -08:00
parent a7045cecfb
commit edc5638385
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 0 additions and 5 deletions

View File

@ -255,17 +255,12 @@ export default defineComponent({
break;
}
case "position": {
if (!defaultStore.state.advancedMfm) break;
const x = parseFloat(token.props.args.x ?? "0");
const y = parseFloat(token.props.args.y ?? "0");
style = `transform: translateX(${x}em) translateY(${y}em);`;
break;
}
case "scale": {
if (!defaultStore.state.advancedMfm) {
style = "";
break;
}
const x = Math.min(parseFloat(token.props.args.x ?? "1"), 5);
const y = Math.min(parseFloat(token.props.args.y ?? "1"), 5);
style = `transform: scale(${x}, ${y});`;