1
0
Fork 0

feat(components): Updates for settings.scale. See #1638

This commit is contained in:
Joost De Cock 2022-01-15 21:30:45 +01:00
parent 35857436a0
commit e329f05a30
9 changed files with 111 additions and 7 deletions

View file

@ -7,8 +7,8 @@ const Snippet = (props) => {
x: props.snippet.anchor.x,
y: props.snippet.anchor.y
}
let scale = props.snippet.attributes.get('data-scale')
let rotate = props.snippet.attributes.get('data-rotate')
const scale = (props.snippet.attributes.get('data-scale') || 1) * (props.scale || 1)
const rotate = props.snippet.attributes.get('data-rotate')
if (scale || rotate) {
snippetProps.transform = ''
if (scale) {