Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GridManager

Index

Constructors

constructor

Properties

chart

chart: Chart

Private currentGridIndex

currentGridIndex: number

gridComponents

gridComponents: Array<any>

gridWidth

gridWidth: number

width of grid

grids

grids: Grid[] = []

Private resizingGrid

resizingGrid: Grid = null

scaleX

scaleX: number

Protected settings

settings: Grid

Methods

addGrid

  • addGrid(grid: Grid): void
  • Adds grid to chart

    Parameters

    Returns void

draw

  • draw(): void
  • Redraws all grids and all grid components

    Returns void

getAbsoluteIndicatorEndDrawPosition

  • getAbsoluteIndicatorEndDrawPosition(): number
  • Position on canvas in which last pixel is drawn

    Returns number

getAbsoluteIndicatorStartDrawPosition

  • getAbsoluteIndicatorStartDrawPosition(): number
  • Position on canvas in which first pixel is drawn

    Returns number

getActualIndicatorDrawAreaWidth

  • getActualIndicatorDrawAreaWidth(): number
  • gets indicator actual drawing width

    Returns number

getCurrentGrid

  • getCurrentGrid(): Grid
  • Returns Grid

getCurrentPriceIndex

  • getCurrentPriceIndex(): number
  • Returns number

Private getLocalStorageKey

  • getLocalStorageKey(): string
  • Returns string

getMouseXPositionOnGrid

  • getMouseXPositionOnGrid(): number
  • get current X position of mouse cursor on grid

    Returns number

getResizingGrid

  • getResizingGrid(): Grid
  • Returns Grid

getTotalGridsHeight

  • getTotalGridsHeight(): number
  • Total heights of all grids

    Returns number

getTotalGridsHeightWithoutMargins

  • getTotalGridsHeightWithoutMargins(): number
  • Total heights of all grids withoug margins

    Returns number

getTotalGridsOriginalHeight

  • getTotalGridsOriginalHeight(): number
  • Total original heights of all grids (Used to calculate heights when fixedHeight option is enabled)

    Returns number

loadState

  • loadState(): boolean
  • Load state readed from localstorage

    Returns boolean

mouseDown

  • mouseDown(evt: MouseEvent): void
  • Parameters

    • evt: MouseEvent

    Returns void

mouseMove

  • mouseMove(evt: MouseEvent): void
  • Parameters

    • evt: MouseEvent

    Returns void

mouseUp

  • mouseUp(evt: MouseEvent): void
  • Parameters

    • evt: MouseEvent

    Returns void

recalculateGridHeights

  • recalculateGridHeights(): void
  • Recalculates grid height when fixed height is on

    Returns void

recalculateGridsPositions

  • recalculateGridsPositions(): void
  • recalculate

    Returns void

recalculateIndicators

  • recalculateIndicators(): void
  • Recalculate all indicators

    Returns void

removeGridIndicator

  • Parameters

    Returns void

Private removeGridIndicatorChildren

  • Parameters

    Returns void

saveCurrentState

  • saveCurrentState(): void
  • Returns void

Private setCurrentGrid

  • setCurrentGrid(): void
  • sets

    Returns void

setGridWidth

  • setGridWidth(): void
  • Returns void

setScaleX

  • setScaleX(): void
  • Calculate and set horizontal space between two dots on chart, sets this.scaleX

    Returns void

Generated using TypeDoc