diff --git a/frontend/layout/lib/layoutModel.ts b/frontend/layout/lib/layoutModel.ts index d7c3b70af..d771b4d3f 100644 --- a/frontend/layout/lib/layoutModel.ts +++ b/frontend/layout/lib/layoutModel.ts @@ -35,7 +35,7 @@ import { TileLayoutContents, WritableLayoutTreeStateAtom, } from "./types"; -import { Dimensions, FlexDirection, setTransform } from "./utils"; +import { FlexDirection, setTransform } from "./utils"; interface ResizeContext { handleId: string; diff --git a/frontend/layout/lib/types.ts b/frontend/layout/lib/types.ts index e39017807..01ec0e07e 100644 --- a/frontend/layout/lib/types.ts +++ b/frontend/layout/lib/types.ts @@ -3,7 +3,7 @@ import { WritableAtom } from "jotai"; import { CSSProperties } from "react"; -import { Dimensions, DropDirection, FlexDirection } from "./utils.js"; +import { DropDirection, FlexDirection } from "./utils.js"; /** * Represents an operation to insert a node into a tree. diff --git a/frontend/layout/lib/utils.ts b/frontend/layout/lib/utils.ts index 639fb705e..067629f9f 100644 --- a/frontend/layout/lib/utils.ts +++ b/frontend/layout/lib/utils.ts @@ -4,13 +4,6 @@ import { CSSProperties } from "react"; import { XYCoord } from "react-dnd"; -export interface Dimensions { - width: number; - height: number; - left: number; - top: number; -} - export enum DropDirection { Top = 0, Right = 1, diff --git a/frontend/layout/tests/utils.test.ts b/frontend/layout/tests/utils.test.ts index 18e47ccdb..2e6cad9ec 100644 --- a/frontend/layout/tests/utils.test.ts +++ b/frontend/layout/tests/utils.test.ts @@ -2,13 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import { assert, test } from "vitest"; -import { - Dimensions, - DropDirection, - FlexDirection, - determineDropDirection, - reverseFlexDirection, -} from "../lib/utils.js"; +import { DropDirection, FlexDirection, determineDropDirection, reverseFlexDirection } from "../lib/utils.js"; test("determineDropDirection", () => { const dimensions: Dimensions = {