We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14953af commit c0a6e1dCopy full SHA for c0a6e1d
1 file changed
src/runtime/layout/getFrameSplitInfo.ts
@@ -18,7 +18,10 @@ export function getFrameSplitInfo(
18
dragPointOrPosition: Point | number | "midpoint" = "midpoint",
19
minSize: Size = getMarginSize(),
20
snapAmount: Point = getSnapPoint()
21
-) {
+): {
22
+ splitFrame: LayoutFrame
23
+ newFrame: LayoutFrame
24
+} | KnownError<typeof LAYOUT_ERROR.CANT_SPLIT_FRAME_TOO_SMALL> {
25
frame = cloneFrame(frame)
26
let newFrame = { ...frame }
27
const isHorz = dir === "left" || dir === "right"
0 commit comments