Skip to content

Commit 07d094e

Browse files
committed
Debug
1 parent b696c12 commit 07d094e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/backend/src/html/builderImpl/htmlBlend.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ export const htmlRotation = (node: LayoutMixin, isJsx: boolean): string[] => {
125125
const parentRotation: number =
126126
parent && "rotation" in parent ? parent.rotation : 0;
127127

128-
const cssRotationDegrees = node.rotation || 0;
129-
const nodeRotation = cssRotationDegrees;
130-
const rotation = Math.round(nodeRotation) ?? 0;
128+
const nodeRotation = -node.rotation || 0;
129+
const rotation = Math.round(parentRotation - nodeRotation) ?? 0;
131130

132131
if (
133132
roundToNearestHundreth(parentRotation) !== 0 &&

0 commit comments

Comments
 (0)