mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-22 08:50:56 +02:00
perf: improve new element drawing (#8340)
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
@@ -200,7 +200,7 @@ export type InteractiveCanvasAppState = Readonly<
|
||||
// SnapLines
|
||||
snapLines: AppState["snapLines"];
|
||||
zenModeEnabled: AppState["zenModeEnabled"];
|
||||
editingElement: AppState["editingElement"];
|
||||
editingTextElement: AppState["editingTextElement"];
|
||||
}
|
||||
>;
|
||||
|
||||
@@ -268,13 +268,9 @@ export interface AppState {
|
||||
editingFrame: string | null;
|
||||
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
||||
/**
|
||||
* currently set for:
|
||||
* - text elements while in wysiwyg
|
||||
* - newly created linear elements while in line editor (not set for existing
|
||||
* elements in line editor)
|
||||
* - and new images while being placed on canvas
|
||||
* set when a new text is created or when an existing text is being edited
|
||||
*/
|
||||
editingElement: NonDeletedExcalidrawElement | null;
|
||||
editingTextElement: NonDeletedExcalidrawElement | null;
|
||||
editingLinearElement: LinearElementEditor | null;
|
||||
activeTool: {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user