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;
    }
    Hierarchy

    Properties

    unit: string
    value: number

    Methods