feat(components): Updates for settings.scale. See #1638
This commit is contained in:
parent
35857436a0
commit
e329f05a30
9 changed files with 111 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue