feat: create new text with width (#8038)

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
Ryan Di
2024-05-28 15:53:52 +02:00
committed by GitHub
co-authored by dwelle
parent 4eb9463f26
commit 860308eb27
13 changed files with 178 additions and 33 deletions
+2 -1
View File
@@ -55,7 +55,7 @@ export type InteractiveCanvasRenderConfig = {
remotePointerUserStates: Map<SocketId, UserIdleState>;
remotePointerUsernames: Map<SocketId, string>;
remotePointerButton: Map<SocketId, string | undefined>;
selectionColor?: string;
selectionColor: string;
// extra options passed to the renderer
// ---------------------------------------------------------------------------
renderScrollbars?: boolean;
@@ -83,6 +83,7 @@ export type InteractiveSceneRenderConfig = {
elementsMap: RenderableElementsMap;
visibleElements: readonly NonDeletedExcalidrawElement[];
selectedElements: readonly NonDeletedExcalidrawElement[];
allElementsMap: NonDeletedSceneElementsMap;
scale: number;
appState: InteractiveCanvasAppState;
renderConfig: InteractiveCanvasRenderConfig;