@types/compass-vertical-rhythm
TypeScript definitions for compass-vertical-rhythm
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/compass-vertical-rhythm 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/compass-vertical-rhythm

Summary

This package contains type definitions for compass-vertical-rhythm (https://github.com/KyleAMathews/compass-vertical-rhythm).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/compass-vertical-rhythm.

index.d.ts

// Type definitions for compass-vertical-rhythm 1.4
// Project: https://github.com/KyleAMathews/compass-vertical-rhythm
// Definitions by: Luis Rodrigues <https://github.com/goblindegook>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

export = compassVerticalRhythm;

declare namespace compassVerticalRhythm {
    interface Options {
        baseFontSize?: string | undefined;
        baseLineHeight?: number | string | undefined;
        rhythmUnit?: '%' | 'em' | 'ex' | 'ch' | 'px' | 'rem' | 'vw' | 'vh' | 'vmin' | undefined;
        defaultRhythmBorderWidth?: string | undefined;
        defaultRhythmBorderStyle?:
            | 'solid'
            | 'none'
            | 'hidden'
            | 'dashed'
            | 'dotted'
            | 'double'
            | 'groove'
            | 'ridge'
            | 'inset'
            | 'outset' | undefined;
        roundToNearestHalfLine?: boolean | undefined;
        minLinePadding?: string | undefined;
    }

    interface VerticalRhythmStyles {
        fontSize: string;
        lineHeight: string;
    }

    interface VerticalRhythm {
        rhythm(lines?: number, fontSize?: string, offset?: number): number;
        establishBaseline(): VerticalRhythmStyles;
        linesForFontSize(fontSize: string): number;
        adjustFontSizeTo(toSize: string, lines?: number | 'auto' | null, fromSize?: string): VerticalRhythmStyles;
    }
}

declare function compassVerticalRhythm(
    options: compassVerticalRhythm.Options
): compassVerticalRhythm.VerticalRhythm;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:05 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Luis Rodrigues.

Current Tags

  • 1.4.2                                ...           latest (5 years ago)
  • 1.4.0                                ...           ts2.1 (7 years ago)
  • 1.4.0                                ...           ts2.2 (7 years ago)
  • 1.4.0                                ...           ts2.3 (7 years ago)
  • 1.4.0                                ...           ts2.4 (7 years ago)
  • 1.4.0                                ...           ts2.5 (7 years ago)
  • 1.4.0                                ...           ts2.6 (7 years ago)
  • 1.4.0                                ...           ts2.7 (7 years ago)
  • 1.4.0                                ...           ts2.8 (7 years ago)
  • 1.4.0                                ...           ts2.9 (7 years ago)
  • 1.4.1                                ...           ts3.0 (6 years ago)
  • 1.4.1                                ...           ts3.1 (6 years ago)
  • 1.4.1                                ...           ts3.2 (6 years ago)
  • 1.4.1                                ...           ts3.3 (6 years ago)
  • 1.4.1                                ...           ts3.4 (6 years ago)
  • 1.4.1                                ...           ts3.5 (6 years ago)
  • 1.4.2                                ...           ts3.6 (5 years ago)
  • 1.4.2                                ...           ts3.7 (5 years ago)
  • 1.4.2                                ...           ts3.8 (5 years ago)
  • 1.4.2                                ...           ts3.9 (5 years ago)
  • 1.4.2                                ...           ts4.0 (5 years ago)
  • 1.4.2                                ...           ts4.1 (5 years ago)
  • 1.4.2                                ...           ts4.2 (5 years ago)
  • 1.4.2                                ...           ts4.3 (5 years ago)
  • 1.4.2                                ...           ts4.4 (5 years ago)
  • 1.4.2                                ...           ts4.5 (5 years ago)
  • 1.4.2                                ...           ts4.6 (5 years ago)
  • 1.4.2                                ...           ts4.7 (5 years ago)
  • 1.4.2                                ...           ts4.8 (5 years ago)
  • 1.4.2                                ...           ts4.9 (5 years ago)

3 Versions

  • 1.4.2                                ...           5 years ago
  • 1.4.1                                ...           6 years ago
  • 1.4.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |