mirror of
https://github.com/r2r90/canvas-label.git
synced 2025-12-18 21:19:48 +00:00
wip: editable text working
This commit is contained in:
@@ -145,6 +145,8 @@ const Canvas = () => {
|
||||
if (item.type === StageItemType.Text) {
|
||||
return (
|
||||
<TransformableText
|
||||
isEditing={isEditing}
|
||||
onEditChange={toggleEdit}
|
||||
onSelect={() => selectItem(item.id)}
|
||||
isSelected={item.id === selectedItemId}
|
||||
onChange={(newAttrs) => {
|
||||
|
||||
Reference in New Issue
Block a user