forked from xcarpentier/rn-tourguide
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtypes.ts
65 lines (59 loc) · 1.17 KB
/
types.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
export type Shape =
| 'circle'
| 'rectangle'
| 'circle_and_keep'
| 'rectangle_and_keep'
export interface IStep {
name: string
order: number
visible?: boolean
target: any
text: string
wrapper: any
shape?: Shape
maskOffset?: number
borderRadius?: number
keepTooltipPosition?: boolean
tooltipBottomOffset?: number
borderRadiusObject?: BorderRadiusObject
}
export interface StepObject {
[key: string]: IStep
}
export type Steps = StepObject | IStep[]
export interface ValueXY {
x: number
y: number
}
export interface BorderRadiusObject {
topLeft?: number
topRight?: number
bottomRight?: number
bottomLeft?: number
}
export type SvgPath = string
// with flubber
export interface AnimJSValue {
_value: number
}
export interface SVGMaskPathMorphParam {
animation: AnimJSValue
previousPath: SvgPath
to: {
position: ValueXY
size: ValueXY
shape?: Shape
maskOffset?: number
borderRadius?: number
borderRadiusObject?: BorderRadiusObject
}
}
export type SVGMaskPathMorph = (
param: SVGMaskPathMorphParam,
) => string | string[]
export interface Labels {
skip?: string
previous?: string
next?: string
finish?: string
}