main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[d565449] | 1 | import {NanoRenderer} from '../types/nano';
|
---|
| 2 |
|
---|
| 3 | export interface Units {
|
---|
| 4 | /**
|
---|
| 5 | * Adds `px` postfix.
|
---|
| 6 | */
|
---|
| 7 | px: (val: number) => string;
|
---|
| 8 |
|
---|
| 9 | /**
|
---|
| 10 | * Adds `cm` postfix.
|
---|
| 11 | */
|
---|
| 12 | cm: (val: number) => string;
|
---|
| 13 |
|
---|
| 14 | /**
|
---|
| 15 | * Adds `pt` postfix.
|
---|
| 16 | */
|
---|
| 17 | pt: (val: number) => string;
|
---|
| 18 |
|
---|
| 19 | /**
|
---|
| 20 | * Adds `pc` postfix.
|
---|
| 21 | */
|
---|
| 22 | pc: (val: number) => string;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * Adds `em` postfix.
|
---|
| 26 | */
|
---|
| 27 | em: (val: number) => string;
|
---|
| 28 |
|
---|
| 29 | /**
|
---|
| 30 | * Adds `ex` postfix.
|
---|
| 31 | */
|
---|
| 32 | ex: (val: number) => string;
|
---|
| 33 |
|
---|
| 34 | /**
|
---|
| 35 | * Adds `ch` postfix.
|
---|
| 36 | */
|
---|
| 37 | ch: (val: number) => string;
|
---|
| 38 |
|
---|
| 39 | /**
|
---|
| 40 | * Adds `rem` postfix.
|
---|
| 41 | */
|
---|
| 42 | rem: (val: number) => string;
|
---|
| 43 |
|
---|
| 44 | /**
|
---|
| 45 | * Adds `vw` postfix.
|
---|
| 46 | */
|
---|
| 47 | vw: (val: number) => string;
|
---|
| 48 |
|
---|
| 49 | /**
|
---|
| 50 | * Adds `vh` postfix.
|
---|
| 51 | */
|
---|
| 52 | vh: (val: number) => string;
|
---|
| 53 |
|
---|
| 54 | /**
|
---|
| 55 | * Adds `deg` postfix.
|
---|
| 56 | */
|
---|
| 57 | deg: (val: number) => string;
|
---|
| 58 |
|
---|
| 59 | /**
|
---|
| 60 | * Adds `vmin` postfix.
|
---|
| 61 | */
|
---|
| 62 | vmin: (val: number) => string;
|
---|
| 63 |
|
---|
| 64 | /**
|
---|
| 65 | * Adds `vmax` postfix.
|
---|
| 66 | */
|
---|
| 67 | vmax: (val: number) => string;
|
---|
| 68 |
|
---|
| 69 | /**
|
---|
| 70 | * Adds `in` postfix.
|
---|
| 71 | */
|
---|
| 72 | inch: (val: number) => string;
|
---|
| 73 |
|
---|
| 74 | /**
|
---|
| 75 | * Adds `in` postfix.
|
---|
| 76 | */
|
---|
| 77 | in: (val: number) => string;
|
---|
| 78 |
|
---|
| 79 | /**
|
---|
| 80 | * Adds `%` postfix.
|
---|
| 81 | */
|
---|
| 82 | pct: (val: number) => string;
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 | export interface UnitsAddon extends Units {
|
---|
| 86 | units: Units;
|
---|
| 87 | }
|
---|
| 88 |
|
---|
| 89 | export function addon(nano: NanoRenderer);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.