move measurements related utils to textMeasurements.ts

This commit is contained in:
Aakansha Doshi 2023-03-15 12:20:31 +05:30
parent 54bf3d9092
commit e900cb0b64
12 changed files with 491 additions and 482 deletions

View file

@ -260,17 +260,19 @@ import throttle from "lodash.throttle";
import { fileOpen, FileSystemHandle } from "../data/filesystem";
import {
bindTextToShapeAfterDuplication,
getLineHeight,
getApproxMinLineHeight,
getApproxMinLineWidth,
getBoundTextElement,
getContainerCenter,
getContainerDims,
getContainerElement,
getTextBindableContainerAtPosition,
isMeasureTextSupported,
isValidTextContainer,
} from "../element/textElement";
import {
getLineHeight,
getApproxMinLineHeight,
getApproxMinLineWidth,
isMeasureTextSupported,
} from "../element/textMeasurements";
import { isHittingElementNotConsideringBoundingBox } from "../element/collision";
import {
normalizeLink,