Class Dimension

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(value: number, unit: string): Dimension

Parameters

  • value: number
  • unit: string

Returns

Dimension

Properties

public unit: string

public value: number

Methods

public compare(other: IComparable): number

Parameters

Returns

number

public eval(): Dimension

Returns

Dimension

public operate(op: Operation, other: Dimension): Dimension

Parameters

Returns

Dimension

public toCSS(): string

Returns

string

public toColor(): Color

Returns

Color