werkbank
    Preparing search index...
    • Calculates the new state of the grid tracks after a resize operation. Handles constraints (min/max size) and distributes space between adjacent tracks.

      Parameters

      • type: "row" | "col"

        The type of track being resized ("col" or "row").

      • entries: GridEntry[]

        The current list of track entries.

      • movement: number

        The amount of movement in pixels.

      • index: number

        The index of the handle being dragged.

      • parent: HTMLElement

        The parent grid element.

      • orientation: Orientation

        The orientation of the grid.

      Returns {
          index: number;
          maxSize?: number;
          minSize?: number;
          mode?: Mode;
          size: string | number;
      }[]

      A new array of GridEntry objects with updated sizes.

      • index: number

        The 0-based index of the entry.

      • OptionalmaxSize?: number

        Maximum size in pixels.

      • OptionalminSize?: number

        Minimum size in pixels.

      • Optionalmode?: Mode

        Resizing mode for this track.

      • size: string | number