Interface CSSUnitValue
interface CSSUnitValue {
unit: string;
value: number;
add(...values: CSSNumberish[]): CSSNumericValue;
div(...values: CSSNumberish[]): CSSNumericValue;
equals(...value: CSSNumberish[]): boolean;
max(...values: CSSNumberish[]): CSSNumericValue;
min(...values: CSSNumberish[]): CSSNumericValue;
mul(...values: CSSNumberish[]): CSSNumericValue;
sub(...values: CSSNumberish[]): CSSNumericValue;
to(unit: string): CSSUnitValue;
toString(): string;
toSum(...units: string[]): CSSMathSum;
type(): CSSNumericType;
}
unit: string;
value: number;
add(...values: CSSNumberish[]): CSSNumericValue;
div(...values: CSSNumberish[]): CSSNumericValue;
equals(...value: CSSNumberish[]): boolean;
max(...values: CSSNumberish[]): CSSNumericValue;
min(...values: CSSNumberish[]): CSSNumericValue;
mul(...values: CSSNumberish[]): CSSNumericValue;
sub(...values: CSSNumberish[]): CSSNumericValue;
to(unit: string): CSSUnitValue;
toString(): string;
toSum(...units: string[]): CSSMathSum;
type(): CSSNumericType;
}
Hierarchy
- CSSNumericValue
- CSSUnitValue (view full)
Methods
add
- add(...values): CSSNumericValue
Parameters
Rest
...values: CSSNumberish[]
Returns CSSNumericValue
div
- div(...values): CSSNumericValue
Parameters
Rest
...values: CSSNumberish[]
Returns CSSNumericValue
equals
- equals(...value): boolean
Parameters
Rest
...value: CSSNumberish[]
Returns boolean
max
- max(...values): CSSNumericValue
Parameters
Rest
...values: CSSNumberish[]
Returns CSSNumericValue
min
- min(...values): CSSNumericValue
Parameters
Rest
...values: CSSNumberish[]
Returns CSSNumericValue
mul
- mul(...values): CSSNumericValue
Parameters
Rest
...values: CSSNumberish[]
Returns CSSNumericValue
sub
- sub(...values): CSSNumericValue
Parameters
Rest
...values: CSSNumberish[]
Returns CSSNumericValue
to
- to(unit): CSSUnitValue
Parameters
- unit: string
Returns CSSUnitValue
toString
toSum
- to
Sum (...units): CSSMathSum Parameters
Rest
...units: string[]
Returns CSSMathSum
type
- type(): CSSNumericType
Returns CSSNumericType
MDN Reference