Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Nov 17, 2024
1 parent e0af4dc commit 59f739f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/shapes/Text/TextSVGExportMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,11 @@ export class TextSVGExportMixin extends FabricObjectSVGExportMixin {
fillStyles = styleProps ? `style="${styleProps}"` : '',
dy = styleDecl.deltaY,
dySpan = dy ? ` dy="${toFixed(dy, config.NUM_FRACTION_DIGITS)}" ` : '',
{ angle, renderLeft, renderTop, width } = charBox,
angleAttr = angle
? ` rotate="${toFixed(radiansToDegrees(angle), config.NUM_FRACTION_DIGITS)}"`
: '';
{ angle, renderLeft, renderTop, width } = charBox;
let angleAttr = '';
if (renderLeft !== undefined) {
const wBy2 = width / 2;
angleAttr = ` rotate="${toFixed(radiansToDegrees(angle), config.NUM_FRACTION_DIGITS)}"`;
const m = createRotateMatrix({ angle: radiansToDegrees(angle!) });
m[4] = renderLeft!;
m[5] = renderTop!;
Expand Down

0 comments on commit 59f739f

Please sign in to comment.