PoC: Expose wysiwyg element to manipulate from outside (#1356)
* expose wysiwyg element to manipulate from outside * keep focus after changing style * update editingElement correctly * remove mistake * update text only * proper check for element * udpate snapshots * add error log * remove try catch handler * remove blur event * add proper types * merge if condition * simplify if condition Co-Authored-By: Lipis <lipiridis@gmail.com> Co-authored-by: dwelle <luzar.david@gmail.com> Co-authored-by: Lipis <lipiridis@gmail.com> Co-authored-by: Fausto95 <faustino.kialungila@gmail.com>
This commit is contained in:
@ -4,6 +4,7 @@ import {
|
||||
NonDeletedExcalidrawElement,
|
||||
NonDeleted,
|
||||
TextAlign,
|
||||
WysiwigElement,
|
||||
} from "./element/types";
|
||||
import { SHAPES } from "./shapes";
|
||||
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
||||
@ -12,6 +13,7 @@ export type FlooredNumber = number & { _brand: "FlooredNumber" };
|
||||
export type Point = Readonly<RoughPoint>;
|
||||
|
||||
export type AppState = {
|
||||
wysiwygElement: WysiwigElement | null;
|
||||
isLoading: boolean;
|
||||
errorMessage: string | null;
|
||||
draggingElement: NonDeletedExcalidrawElement | null;
|
||||
|
Reference in New Issue
Block a user