mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
IO: Prevent text masks from flipping (#3672)
* Lock scaling flip when creating new text mask * Lock scaling flip on existing text masks
This commit is contained in:
parent
4ee6dacaa3
commit
d89e6f3bdd
2 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ export class Text extends Shape {
|
||||||
backgroundColor: TEXT_BACKGROUND_COLOR,
|
backgroundColor: TEXT_BACKGROUND_COLOR,
|
||||||
padding: TEXT_PADDING,
|
padding: TEXT_PADDING,
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
|
lockScalingFlip: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ export const drawText = (canvas: fabric.Canvas, onActivated: Callback): void =>
|
||||||
padding: TEXT_PADDING,
|
padding: TEXT_PADDING,
|
||||||
opacity: get(opacityStateStore) ? 0.4 : 1,
|
opacity: get(opacityStateStore) ? 0.4 : 1,
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
|
lockScalingFlip: true,
|
||||||
});
|
});
|
||||||
text["id"] = "text-" + new Date().getTime();
|
text["id"] = "text-" + new Date().getTime();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue