mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Improve pasting (#723)
* switch to selection tool on paste * align pasting via contextMenu with pasting from event * ensure only plaintext can be pasted * fix findShapeByKey regression * simplify wysiwyg pasting * improve wysiwyg blurriness
This commit is contained in:
parent
ba1a39c9f3
commit
88eacc9da7
5 changed files with 119 additions and 82 deletions
|
@ -1,4 +1,5 @@
|
|||
import { ExcalidrawElement } from "./element/types";
|
||||
import { SHAPES } from "./shapes";
|
||||
|
||||
export type AppState = {
|
||||
draggingElement: ExcalidrawElement | null;
|
||||
|
@ -8,7 +9,7 @@ export type AppState = {
|
|||
// 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;
|
||||
elementType: typeof SHAPES[number]["value"];
|
||||
elementLocked: boolean;
|
||||
exportBackground: boolean;
|
||||
currentItemStrokeColor: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue