mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-16 12:40:51 +02:00
feat: wireframe-to-code (#7334)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { getFontString, arrayToMap, isTestEnv } from "../utils";
|
||||
import {
|
||||
ExcalidrawElement,
|
||||
ExcalidrawElementType,
|
||||
ExcalidrawTextContainer,
|
||||
ExcalidrawTextElement,
|
||||
ExcalidrawTextElementWithContainer,
|
||||
@@ -867,7 +868,7 @@ const VALID_CONTAINER_TYPES = new Set([
|
||||
]);
|
||||
|
||||
export const isValidTextContainer = (element: {
|
||||
type: ExcalidrawElement["type"];
|
||||
type: ExcalidrawElementType;
|
||||
}) => VALID_CONTAINER_TYPES.has(element.type);
|
||||
|
||||
export const computeContainerDimensionForBoundText = (
|
||||
|
Reference in New Issue
Block a user