fix grid add text
This commit is contained in:
@@ -23,7 +23,7 @@ type ObjectRendererProps = {
|
||||
onUpdate: (id: string, updates: Partial<EditorObject>) => void;
|
||||
draggable: boolean;
|
||||
onCellClick?: (tableId: string, cellId: string) => void;
|
||||
onCellDblClick?: (tableId: string, cellId: string, x: number, y: number, text: string) => void;
|
||||
onCellDblClick?: (tableId: string, cellId: string, x: number, y: number, width: number, height: number, text: string) => void;
|
||||
selectedCellId?: string | null;
|
||||
};
|
||||
|
||||
@@ -84,8 +84,8 @@ const ObjectRenderer = ({
|
||||
onSelect(tableId, node);
|
||||
onCellClick?.(tableId, cellId);
|
||||
}}
|
||||
onCellDblClick={(tableId, cellId, x, y, text) => {
|
||||
onCellDblClick?.(tableId, cellId, x, y, text);
|
||||
onCellDblClick={(tableId, cellId, x, y, width, height, text) => {
|
||||
onCellDblClick?.(tableId, cellId, x, y, width, height, text);
|
||||
}}
|
||||
onDragEnd={(tableId, x, y) => {
|
||||
onUpdate(tableId, { x, y });
|
||||
|
||||
Reference in New Issue
Block a user