@witchcraft/layout
    Preparing search index...
    • Returns a LayoutChange with the information necessary to expand a frame touching a window edge by a given amount.

      Changes can be applied to a window with applyFrameChanges.

      It expands the frame by redistributing space from neighboring frames.

      Parameters

      • win: BaseLayoutWindow
      • frameId: string
      • amount: number
      • expandSide: "left" | "right" | "top" | "bottom"

      Returns
          | LayoutChange
          | KnownError<
              "REDISTRIBUTE_OUT_OF_BOUNDS",
              { max: number; min: number; wanted: number },
          >
          | KnownError<
              "NO_SPACE_TO_REDISTRIBUTE",
              { frameSizeNeeded: number; minFrameSize: number },
          >
          | KnownError<
              "REDISTRIBUTE_WOULD_RESULT_IN_INVALID_FRAMES",
              { problemEdgeCoordinates: number[] },
          >
          | KnownError<"CANT_RESIZE_SINGLE_FRAME", { frame: LayoutFrame }>