wip: Fix frame children coords when dragging position stats coords

This commit is contained in:
Hazem Krimi 2025-04-24 05:58:10 +01:00
parent a18b139a60
commit 7343285694
11 changed files with 246 additions and 368 deletions

View file

@ -89,6 +89,12 @@ export const isFrameLikeElement = (
);
};
export const isFrameChildElement = (
element: ExcalidrawElement | null,
): element is ExcalidrawElement & { frameId: string } => {
return element !== null && element.frameId !== null;
};
export const isFreeDrawElement = (
element?: ExcalidrawElement | null,
): element is ExcalidrawFreeDrawElement => {