kopia lustrzana https://github.com/Tldraw/Tldraw
Update NoteShapeUtil.tsx
rodzic
600b1cf95b
commit
adaa085909
|
@ -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 })
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue