Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Modules

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

AnimationCallback

AnimationCallback: function

Type declaration

AnimationTarget

AnimationTarget: object

BoundingBox

DataSet

DataSetConfig

DomEventByName

DomEventByName: Record<DomEvent, string>

EasingFunction

EasingFunction: function

Type declaration

    • (x: number): number
    • Parameters

      • x: number

      Returns number

FormatLabel

FormatLabel: function

Type declaration

FormatNumber

FormatNumber: function

Type declaration

    • (x: number): string
    • Parameters

      • x: number

      Returns string

PointTuple

PointTuple: [number, number]

Variables

Const ACTIVE_CLASS

ACTIVE_CLASS: "active" = "active"

Const BOX_BORDER

BOX_BORDER: 2 = 2

Const DEFAULT_FONT_FAMILY

DEFAULT_FONT_FAMILY: "Lucida Console" = "Lucida Console"

Const DESIRED_LABELS_COUNT

DESIRED_LABELS_COUNT: 6 = 6

Const FPS_INTERVAL

FPS_INTERVAL: number = 1000 / 60

Const LINE_GAP

LINE_GAP: 10 = 10

Const LOCALES

LOCALES: string[] = ['en-GB', 'en-US', 'ru-RU']

Const LONG_PRESS_DURATION

LONG_PRESS_DURATION: 1000 = 1000

Const MOUSE_MOVE_THROTTLE

MOUSE_MOVE_THROTTLE: number = 1000 / 100

Let _canvas

_canvas: HTMLCanvasElement | undefined

Const chartAnimator

chartAnimator: ChartAnimator = new ChartAnimator()

Const dateDayMonthFormatter

dateDayMonthFormatter: DateTimeFormat = new Intl.DateTimeFormat(LOCALES, {day: 'numeric',month: 'short',})

Const dateFullFormatter

dateFullFormatter: DateTimeFormat = new Intl.DateTimeFormat(LOCALES, {day: '2-digit',month: 'short',year: 'numeric',weekday: 'short',})

Const halfBar

halfBar: 0.5 = 0.5

Let handleColor

handleColor: string = ""

Const numberLocalFormatter

numberLocalFormatter: NumberFormat = new Intl.NumberFormat(['ru-RU'], { useGrouping: true })

Const svg

svg: SVGSVGElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg')

Functions

applyFillStyle

  • applyFillStyle(ctx: CanvasRenderingContext2D, style: FillStyle, skipOpacity?: boolean): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • style: FillStyle
    • Default value skipOpacity: boolean = false

    Returns void

applyFontStyle

  • applyFontStyle(ctx: CanvasRenderingContext2D, style: FontStyle, skipOpacity?: boolean): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • style: FontStyle
    • Default value skipOpacity: boolean = false

    Returns void

applyLineStyle

  • applyLineStyle(ctx: CanvasRenderingContext2D, style: LineStyle, skipOpacity?: boolean): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • style: LineStyle
    • Default value skipOpacity: boolean = false

    Returns void

assignDeeply

  • assignDeeply<T>(to: T, from: DeepPartial<T>): T
  • Type parameters

    • T

    Parameters

    • to: T
    • from: DeepPartial<T>

    Returns T

buildMasterConfig

calcDataPerTick

  • Parameters

    Returns number

canvasToData

  • Parameters

    • __namedParameters: [number, number]
    • state: ChartState

    Returns PointTuple

ceilToPrecision

  • ceilToPrecision(x: number, precision: number): number
  • Parameters

    • x: number
    • precision: number

    Returns number

clearBounds

  • clearBounds(ctx: CanvasRenderingContext2D, bounds: BoundingBox, border?: number, clearColor?: undefined | string): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • bounds: BoundingBox
    • Default value border: number = 0
    • Optional clearColor: undefined | string

    Returns void

clipArea

  • clipArea(ctx: CanvasRenderingContext2D, bounds: BoundingBox): void
  • Parameters

    Returns void

createCanvasOffscreen

  • createCanvasOffscreen(dimensions: Dimensions): HTMLCanvasElement
  • Parameters

    Returns HTMLCanvasElement

createDataSet

createElementFromString

  • createElementFromString<T>(html: string): T
  • Type parameters

    • T: HTMLElement

    Parameters

    • html: string

    Returns T

createPathBuilder

createSVGMatrix

  • createSVGMatrix(): DOMMatrix
  • Returns DOMMatrix

debounce

  • debounce(cb: function, wait: number): function
  • Parameters

    • cb: function
        • (): void
        • Returns void

    • wait: number

    Returns function

      • (): void
      • Returns void

drawBoxShape

  • drawBoxShape(path: CanvasRenderingContext2D | Path2D, bb: BoundingBox, cornerRadius: number | [number, number, number, number]): void
  • Parameters

    • path: CanvasRenderingContext2D | Path2D
    • bb: BoundingBox
    • cornerRadius: number | [number, number, number, number]

    Returns void

drawHandle

  • drawHandle(ctx: CanvasRenderingContext2D, x: number, handleHeight: number, options: HandleOptions, isLeft: boolean): void
  • Parameters

    • ctx: CanvasRenderingContext2D
    • x: number
    • handleHeight: number
    • options: HandleOptions
    • isLeft: boolean

    Returns void

drawHandlesOffscreen

  • drawHandlesOffscreen(canvas: HTMLCanvasElement, options: HandleOptions, handleHeight: number): void
  • Parameters

    • canvas: HTMLCanvasElement
    • options: HandleOptions
    • handleHeight: number

    Returns void

drawLabels

drawLabelsYScaled

drawXLabels

floorToPrecision

  • floorToPrecision(x: number, precision: number): number
  • Parameters

    • x: number
    • precision: number

    Returns number

formatScientific

  • formatScientific(y: number): string
  • Parameters

    • y: number

    Returns string

getDeltaPerTick

  • getDeltaPerTick(dataSize: number): number
  • Parameters

    • dataSize: number

    Returns number

getFontString

  • getFontString(fontStyle: FontStyle): string | undefined
  • Parameters

    Returns string | undefined

getRestrictedMovementForBounds

getTheme

  • Parameters

    Returns DeepPartial<ChartTheme>

mouseEventToChartCanvas

mouseEventToData

Const noop

  • noop(): void
  • Returns void

normalizeEvent

  • Parameters

    • event: Event
    • rect: ClientRect

    Returns NormalizedEvent

round

  • round(x: number): number
  • Parameters

    • x: number

    Returns number

setCanvasSize

  • setCanvasSize(container: HTMLCanvasElement, size: Dimensions): number
  • Parameters

    Returns number

subscribeToTouchEvents

  • subscribeToTouchEvents(domInteraction: DomInteraction, downTarget: HTMLElement): void
  • Parameters

    Returns void

throttle

  • throttle<T>(cb: function, wait: number): function
  • Type parameters

    • T

    Parameters

    • cb: function
        • (...args: T[]): void
        • Parameters

          • Rest ...args: T[]

          Returns void

    • wait: number

    Returns function

      • (...args: T[]): void
      • Parameters

        • Rest ...args: T[]

        Returns void

without

  • without<T>(arr1: T[], arr2: T[]): T[]
  • Type parameters

    • T

    Parameters

    • arr1: T[]
    • arr2: T[]

    Returns T[]

xCanvasToData

  • xCanvasToData(x: number, state: ChartState): number
  • Parameters

    Returns number

xDataToCanvas

  • xDataToCanvas(x: number, state: object): number
  • Parameters

    • x: number
    • state: object
      • dataBounds: Bounds
      • scaleX: number

    Returns number

xVirtualToReal

  • xVirtualToReal(x: number, initialBounds: object): number
  • Parameters

    • x: number
    • initialBounds: object
      • deltaX: number
      • xFrom: number

    Returns number

yCanvasToData

  • yCanvasToData(y: number, state: ChartState): number
  • Parameters

    Returns number

yDataToCanvas

  • yDataToCanvas(y: number, state: object): number
  • Parameters

    • y: number
    • state: object
      • dataBounds: Bounds
      • scaleY: number

    Returns number

Object literals

Const DEFAULTS

DEFAULTS: object

color

color: string = "blue"

lineWidth

lineWidth: number = 1

opacity

opacity: number = 1

Const defaultConfig

defaultConfig: object

options

options: object

legend

legend: object

container

container: undefined = undefined

padding

padding: object

bottom

bottom: number = 0

top

top: number = 0

tooltip

tooltip: object

enabled

enabled: false = false

xAxis

xAxis: object

gridLines

gridLines: object

display

display: false = false

ticks

ticks: object

display

display: false = false

yAxis

yAxis: object

gridLines

gridLines: object

display

display: false = false

ticks

ticks: object

display

display: false = false

Const easingFunctions

easingFunctions: object

cubicIn

  • cubicIn(x: number): number
  • Parameters

    • x: number

    Returns number

cubicOut

  • cubicOut(x: number): number
  • Parameters

    • x: number

    Returns number

linear

  • linear(x: number): number
  • Parameters

    • x: number

    Returns number

quadraticIn

  • quadraticIn(x: number): number
  • Parameters

    • x: number

    Returns number

quadraticOut

  • quadraticOut(x: number): number
  • Parameters

    • x: number

    Returns number

Const formatByName

formatByName: object

dateDayMonth

  • dateDayMonth(y: number): string
  • Parameters

    • y: number

    Returns string

dateFull

  • dateFull(y: number): string
  • Parameters

    • y: number

    Returns string

numberLocal

  • numberLocal(y: number): string
  • Parameters

    • y: number

    Returns string

numberScientific

  • numberScientific(y: number): string
  • Parameters

    • y: number

    Returns string

Const labelByPowOf10

labelByPowOf10: object

12

12: string = "T"

3

3: string = "K"

6

6: string = "M"

9

9: string = "G"

Const mouseEventByName

mouseEventByName: object

__computed

__computed: string = "mouseleave"

Const themeByName

themeByName: object

day

day: object

backgroundColor

backgroundColor: string = "white"

masterChart

masterChart: object

curtain

curtain: object

coveredArea

coveredArea: object

color

color: string = "#E2EEF9"

opacity

opacity: number = 0.6

handle

handle: object

color

color: string = "#C0D1E1"

tooltip

tooltip: object

boxColor

boxColor: string = "white"

dataSetNameStyle

dataSetNameStyle: object

fontColor

fontColor: string = "black"

headerStyle

headerStyle: object

fontColor

fontColor: string = "black"

xAxis

xAxis: object

gridLines

gridLines: object

color

color: string = "#182D3B"

opacity

opacity: number = 0.1

ticks

ticks: object

fontColor

fontColor: string = "#8E8E93"

yAxis

yAxis: object

gridLines

gridLines: object

color

color: string = "#182D3B"

opacity

opacity: number = 0.1

ticks

ticks: object

fontColor

fontColor: string = "#8E8E93"

night

night: object

backgroundColor

backgroundColor: string = "#242F3E"

masterChart

masterChart: object

curtain

curtain: object

coveredArea

coveredArea: object

color

color: string = "#304259"

opacity

opacity: number = 0.6

handle

handle: object

color

color: string = "#56626D"

tooltip

tooltip: object

boxColor

boxColor: string = "#253241"

dataSetNameStyle

dataSetNameStyle: object

fontColor

fontColor: string = "white"

headerStyle

headerStyle: object

fontColor

fontColor: string = "white"

xAxis

xAxis: object

gridLines

gridLines: object

color

color: string = "#FFFFFF"

opacity

opacity: number = 0.1

ticks

ticks: object

fontColor

fontColor: string = "#A3B1C2"

opacity

opacity: number = 0.6

yAxis

yAxis: object

gridLines

gridLines: object

color

color: string = "#FFFFFF"

opacity

opacity: number = 0.1

ticks

ticks: object

fontColor

fontColor: string = "#A3B1C2"

opacity

opacity: number = 0.6

Const touchEventByName

touchEventByName: object

__computed

__computed: string = "touchend"

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc