Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SplitPositionHandler

Hierarchy

  • SplitPositionHandler

Index

Properties

Private currentMoveIndex

currentMoveIndex: number = 0

Private Readonly splitMoves

splitMoves: MoveEntry[] = []

Methods

Protected animationFrame

  • animationFrame(time: number): void

Protected endMove

Protected getCurrentPosition

  • getCurrentPosition(move: MoveEntry): number | undefined

Protected moveSplitPos

  • moveSplitPos(move: MoveEntry): Promise<number>

setSidePanelSize

  • setSidePanelSize(sidePanel: Widget, targetSize: number, options: SplitPositionOptions): Promise<number>
  • Resize a side panel asynchronously. This function makes sure that such movements are performed one after another in order to prevent the movements from overriding each other. When resolved, the returned promise yields the final position of the split handle.

    Parameters

    Returns Promise<number>

setSplitHandlePosition

  • setSplitHandlePosition(parent: SplitPanel, index: number, targetPosition: number, options: SplitPositionOptions): Promise<number>
  • Set the position of a split handle asynchronously. This function makes sure that such movements are performed one after another in order to prevent the movements from overriding each other. When resolved, the returned promise yields the final position of the split handle.

    Parameters

    Returns Promise<number>

Protected startMove

  • startMove(move: MoveEntry, time: number): void