forked from react-native-art/art
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
70 lines (58 loc) · 1.64 KB
/
index.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
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
66
67
68
69
70
declare module '@react-native-community/art' {
import {ViewStyle, StyleProp} from 'react-native';
import React from 'react';
export interface ARTNodeMixin {
opacity?: number;
originX?: number;
originY?: number;
scaleX?: number;
scaleY?: number;
scale?: number;
title?: string;
x?: number;
y?: number;
visible?: boolean;
shadowOpacity?: number;
shadowColor?: string | number;
shadowRadius?: number;
shadowOffset?: {
x: number,
y: number,
}
}
export interface ARTGroupProps extends ARTNodeMixin {
width?: number;
height?: number;
}
export interface ARTClippingRectangleProps extends ARTNodeMixin {
width?: number;
height?: number;
}
export interface ARTRenderableMixin extends ARTNodeMixin {
fill?: string;
stroke?: string;
strokeCap?: 'butt' | 'square' | 'round';
strokeDash?: number[];
strokeJoin?: 'bevel' | 'miter' | 'round';
strokeWidth?: number;
}
export interface ARTShapeProps extends ARTRenderableMixin {
d: string;
width?: number;
height?: number;
}
export interface ARTTextProps extends ARTRenderableMixin {
font?: string;
alignment?: string;
}
export interface ARTSurfaceProps {
style?: StyleProp<ViewStyle>;
width: number;
height: number;
}
export class ClippingRectangle extends React.Component<ARTClippingRectangleProps> {}
export class Group extends React.Component<ARTGroupProps> {}
export class Shape extends React.Component<ARTShapeProps> {}
export class Surface extends React.Component<ARTSurfaceProps> {}
export class Text extends React.Component<ARTTextProps> {}
}