Interface for a strategy which defines dimension

Hierarchy

  • MultidimensionalStrategy

Properties

getHeight: (<T>(size: Vec2<T>) => T)

Type declaration

    • <T>(size: Vec2<T>): T
    • Returns

      Height of Vec2

      Type Parameters

      • T

      Parameters

      • size: Vec2<T>

        Two dimensional value height of which has to be extracted

      Returns T

getWidth: (<T>(sizes: Vec2<T>) => T)

Type declaration

    • <T>(sizes: Vec2<T>): T
    • Returns

      Width of Vec2

      Type Parameters

      • T

      Parameters

      Returns T

toPoint: ((value: number, height: number) => Point)

Type declaration

    • (value: number, height: number): Point
    • Combine argument with the tick value to create relevant Point

      Returns

      Point

      Parameters

      • value: number
      • height: number

        Value on height Scale units

      Returns Point

toVec2: (<T>(value: T, height: T) => Vec2<T>)

Type declaration

    • <T>(value: T, height: T): Vec2<T>
    • Combine argument with the tick value to create relevant Vec2

      Returns

      Vec2 which represents relevant for custom tick position

      Type Parameters

      • T

      Parameters

      • value: T
      • height: T

        Value on height Scale units

      Returns Vec2<T>