mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Render text actions panel on double click (#450)
* Render text actions panel on double click * cleanup wysiwyg on click * use `state.editingElement` instead of global to determine whether t ext panel is shown * clarify comment Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
3715da9966
commit
61be0f7b61
3 changed files with 21 additions and 4 deletions
|
@ -3,6 +3,9 @@ import { ExcalidrawElement } from "./element/types";
|
|||
export type AppState = {
|
||||
draggingElement: ExcalidrawElement | null;
|
||||
resizingElement: ExcalidrawElement | null;
|
||||
// element being edited, but not necessarily added to elements array yet
|
||||
// (e.g. text element when typing into the input)
|
||||
editingElement: ExcalidrawElement | null;
|
||||
elementType: string;
|
||||
exportBackground: boolean;
|
||||
currentItemStrokeColor: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue