Interface CSSMathInvert
interface CSSMathInvert {
operator: CSSMathOperator;
value: CSSNumericValue;
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;
}
operator: CSSMathOperator;
value: CSSNumericValue;
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
- CSSMathValue
- CSSMathInvert (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