fix: Linter warnings
This commit is contained in:
parent
353f9cd1c3
commit
c639f50a62
1 changed files with 1 additions and 3 deletions
|
@ -148,7 +148,7 @@ const generateTransform = (x, y, rot, flipX, flipY, part) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const Part = props => {
|
const Part = props => {
|
||||||
const { layout, gist, updateGist, name, part } = props
|
const { layout, gist, name, part } = props
|
||||||
const partLayout= layout.parts[name]
|
const partLayout= layout.parts[name]
|
||||||
|
|
||||||
// Don't just assume this makes sense
|
// Don't just assume this makes sense
|
||||||
|
@ -174,7 +174,6 @@ const Part = props => {
|
||||||
let rotation = partLayout.rotate || 0
|
let rotation = partLayout.rotate || 0
|
||||||
let flipX = partLayout.flipX ? true : false
|
let flipX = partLayout.flipX ? true : false
|
||||||
let flipY = partLayout.flipY ? true : false
|
let flipY = partLayout.flipY ? true : false
|
||||||
let rotStart
|
|
||||||
let partRect
|
let partRect
|
||||||
|
|
||||||
const center = {
|
const center = {
|
||||||
|
@ -186,7 +185,6 @@ const Part = props => {
|
||||||
return { x: translateX, y: translateY }
|
return { x: translateX, y: translateY }
|
||||||
})
|
})
|
||||||
.on('start', function(event) {
|
.on('start', function(event) {
|
||||||
rotStart = { x: event.x, y: event.y }
|
|
||||||
partRect = partRef.current.getBoundingClientRect()
|
partRect = partRef.current.getBoundingClientRect()
|
||||||
})
|
})
|
||||||
.on('drag', function(event) {
|
.on('drag', function(event) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue