-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathinset.d.ts
38 lines (34 loc) · 1.39 KB
/
inset.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/** Options for insetting rectangular shapes. */
export interface InsetOptions {
/**
* Shorthand to set the same default for all four insets: **insetTop**,
* **insetRight**, **insetBottom**, and **insetLeft**. All insets typically
* default to zero, though not always (say when using bin transform). A
* positive inset reduces effective area, while a negative inset increases it.
*/
inset?: number;
/**
* Insets the top edge by the specified number of pixels. A positive value
* insets towards the bottom edge (reducing effective area), while a negative
* value insets away from the bottom edge (increasing it).
*/
insetTop?: number;
/**
* Insets the right edge by the specified number of pixels. A positive value
* insets towards the left edge (reducing effective area), while a negative
* value insets away from the left edge (increasing it).
*/
insetRight?: number;
/**
* Insets the bottom edge by the specified number of pixels. A positive value
* insets towards the top edge (reducing effective area), while a negative
* value insets away from the top edge (increasing it).
*/
insetBottom?: number;
/**
* Insets the left edge by the specified number of pixels. A positive value
* insets towards the right edge (reducing effective area), while a negative
* value insets away from the right edge (increasing it).
*/
insetLeft?: number;
}