Update NoteShapeUtil.tsx

pull/3157/head
Steve Ruiz 2024-03-15 11:57:13 +00:00
rodzic 600b1cf95b
commit adaa085909
1 zmienionych plików z 0 dodań i 5 usunięć

Wyświetl plik

@ -271,8 +271,6 @@ function duplicateShape(
direction: 'up' | 'down' | 'left' | 'right',
editor: Editor
) {
const shape = editor.getShape(shapeId) as TLNoteShape
const rotationRadians = editor.getShapePageTransform(shapeId).rotation()
const distance = NOTE_SIZE + 30
@ -299,8 +297,5 @@ function duplicateShape(
break
}
console.log(shape.rotation)
console.log(`OffsetX: ${offsetX}, OffsetY: ${offsetY}`)
editor.duplicateShapes([shapeId], { x: offsetX, y: offsetY })
}