This commit is contained in:
Aakansha Doshi 2023-05-25 14:20:14 +05:30
parent 1c291f8b3d
commit b72515a83b

View file

@ -1,8 +1,6 @@
import { getFontString, arrayToMap, isTestEnv } from "../utils"; import { getFontString, arrayToMap, isTestEnv } from "../utils";
import { import {
ExcalidrawElement, ExcalidrawElement,
ExcalidrawGenericElement,
ExcalidrawLinearElement,
ExcalidrawTextContainer, ExcalidrawTextContainer,
ExcalidrawTextElement, ExcalidrawTextElement,
ExcalidrawTextElementWithContainer, ExcalidrawTextElementWithContainer,
@ -22,7 +20,7 @@ import {
} from "../constants"; } from "../constants";
import { MaybeTransformHandleType } from "./transformHandles"; import { MaybeTransformHandleType } from "./transformHandles";
import Scene from "../scene/Scene"; import Scene from "../scene/Scene";
import { isTextElement, newElement, newTextElement } from "."; import { isTextElement } from ".";
import { isBoundToContainer, isArrowElement } from "./typeChecks"; import { isBoundToContainer, isArrowElement } from "./typeChecks";
import { LinearElementEditor } from "./linearElementEditor"; import { LinearElementEditor } from "./linearElementEditor";
import { AppState } from "../types"; import { AppState } from "../types";
@ -34,8 +32,7 @@ import {
resetOriginalContainerCache, resetOriginalContainerCache,
updateOriginalContainerCache, updateOriginalContainerCache,
} from "./textWysiwyg"; } from "./textWysiwyg";
import { ExtractSetType, MarkOptional } from "../utility-types"; import { ExtractSetType } from "../utility-types";
import { ElementConstructorOpts, newLinearElement } from "./newElement";
export const normalizeText = (text: string) => { export const normalizeText = (text: string) => {
return ( return (