Skip to content

Commit

Permalink
fix: broken mirroring
Browse files Browse the repository at this point in the history
Fixes a visual bug introduced when transform-origin was removed in the
previous commit.
  • Loading branch information
ca-d committed Nov 22, 2023
1 parent e97dbc4 commit 109b8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sld-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ export class SLDEditor extends LitElement {
})}"
id="${equipment.parentElement ? identity(equipment) : nothing}"
transform="translate(${x} ${y}) rotate(${deg} 0.5 0.5)${
flip ? ' scale(-1,1)' : ''
flip ? ' scale(-1,1) translate(-1 0)' : ''
}">
<title>${equipment.getAttribute('name')}</title>
${icon}
Expand Down

0 comments on commit 109b8ec

Please sign in to comment.