Skip to content

Commit

Permalink
fix: convert html support transform rotatate x/y
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed May 10, 2024
1 parent f6e9cba commit 4cc3416
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/uikit/src/convert/html/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ const customCssTranslation: Record<string, (set: (key: string, value: string) =>
}
let result: RegExpExecArray | null
while ((result = transformRegex.exec(property)) != null) {
const [, operation, type, values] = result
let [, operation, type, values] = result
let [x, y, z] = values.split(',').map((s) => s.trim())

const prefix = `transform${operation[0].toUpperCase()}${operation.slice(1)}`

if (operation === 'rotate') {
set(`${prefix}Z`, x)
continue
type ??= 'Z'
}

y ??= x
Expand Down

0 comments on commit 4cc3416

Please sign in to comment.