-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
58 lines (58 loc) · 1.42 KB
/
Copy pathconfig.json
File metadata and controls
58 lines (58 loc) · 1.42 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
// "background": ["#00000000", "#88888888", "#ffffffff"],
"scale": [
[0.75, 0.75],
[1, 1]
],
"crop": [
[null, null],
[150, 150]
],
"shear": [
[0, 0],
// [-16, 0],
[16, 0],
// [0, -16],
[0, 16]
],
"rotate": [0],
"grayscale": "always",
"flipX": true,
"flipY": false,
"blur": [0]
}
// export type BuildFilterGroupsOptions = {
// /**
// * @description for region that overflow when transform
// * default `['#00000000']`
// */
// background?: string[];
// /**
// * @description `Array<[w,h]>` in percentage, applied before crop
// * e.g. `[[0.8,1.2]]` for 80% in width and 120% in height
// * */
// scale?: [w: number, h: number][];
// /**
// * @description `Array<[w,h]>` in pixel unit, applied before after scale
// * e.g. `[[100,100],[100,150],[150,100]]`
// */
// crop?: [w: number, h: number][];
// /**
// * @description `Array<[x,y]>` in degree, applied after crop
// * e.g. `[[0,0],[-16,0],[+16,0],[0,-16],[0,+16]]`
// * */
// shear?: [x: number, y: number][];
// /**
// * @description in degree
// * e.g. `[-15, 0, 15]`
// * */
// rotate?: number[];
// grayscale?: 'always' | 'never' | 'both';
// flipX?: boolean;
// flipY?: boolean;
// /**
// * @description sigma range from 0 to 1000
// * e.g. `[0, 1]`
// * */
// blur?: number[];
// }