1 |
|
2 |
|
3 |
|
4 | export enum LAYER {
|
5 |
|
6 | FORE = 'fore',
|
7 |
|
8 | MID = 'mid',
|
9 |
|
10 | BG = 'bg',
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export enum DIRECTION {
|
17 | TOP = 'top',
|
18 | TOP_LEFT = 'top-left',
|
19 | TOP_RIGHT = 'top-right',
|
20 | RIGHT = 'right',
|
21 | RIGHT_TOP = 'right-top',
|
22 | RIGHT_BOTTOM = 'right-bottom',
|
23 | LEFT = 'left',
|
24 | LEFT_TOP = 'left-top',
|
25 | LEFT_BOTTOM = 'left-bottom',
|
26 | BOTTOM = 'bottom',
|
27 | BOTTOM_LEFT = 'bottom-left',
|
28 | BOTTOM_RIGHT = 'bottom-right',
|
29 | RADIUS = 'radius',
|
30 | CIRCLE = 'circle',
|
31 |
|
32 | NONE = 'none',
|
33 | }
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | export enum COMPONENT_TYPE {
|
39 |
|
40 | AXIS = 'axis',
|
41 |
|
42 | GRID = 'grid',
|
43 |
|
44 | LEGEND = 'legend',
|
45 |
|
46 | TOOLTIP = 'tooltip',
|
47 |
|
48 | ANNOTATION = 'annotation',
|
49 |
|
50 | SLIDER = 'slider',
|
51 |
|
52 | SCROLLBAR = 'scrollbar',
|
53 |
|
54 | OTHER = 'other',
|
55 | }
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | export const GROUP_Z_INDEX = {
|
61 | FORE: 3,
|
62 | MID: 2,
|
63 | BG: 1,
|
64 | };
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | export enum VIEW_LIFE_CIRCLE {
|
71 | BEFORE_RENDER = 'beforerender',
|
72 | AFTER_RENDER = 'afterrender',
|
73 |
|
74 | BEFORE_PAINT = 'beforepaint',
|
75 | AFTER_PAINT = 'afterpaint',
|
76 |
|
77 | BEFORE_CHANGE_DATA = 'beforechangedata',
|
78 | AFTER_CHANGE_DATA = 'afterchangedata',
|
79 |
|
80 | BEFORE_CLEAR = 'beforeclear',
|
81 | AFTER_CLEAR = 'afterclear',
|
82 |
|
83 | BEFORE_DESTROY = 'beforedestroy',
|
84 |
|
85 | BEFORE_CHANGE_SIZE = 'beforechangesize',
|
86 | AFTER_CHANGE_SIZE = 'afterchangesize',
|
87 | }
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | export enum GEOMETRY_LIFE_CIRCLE {
|
93 | BEFORE_DRAW_ANIMATE = 'beforeanimate',
|
94 | AFTER_DRAW_ANIMATE = 'afteranimate',
|
95 | }
|
96 |
|
97 |
|
98 |
|
99 |
|
100 | export enum PLOT_EVENTS {
|
101 |
|
102 | MOUSE_ENTER = 'plot:mouseenter',
|
103 | MOUSE_DOWN = 'plot:mousedown',
|
104 | MOUSE_MOVE = 'plot:mousemove',
|
105 | MOUSE_UP = 'plot:mouseup',
|
106 | MOUSE_LEAVE = 'plot:mouseleave',
|
107 |
|
108 | TOUCH_START = 'plot:touchstart',
|
109 | TOUCH_MOVE = 'plot:touchmove',
|
110 | TOUCH_END = 'plot:touchend',
|
111 | TOUCH_CANCEL = 'plot:touchcancel',
|
112 |
|
113 | CLICK = 'plot:click',
|
114 | DBLCLICK = 'plot:dblclick',
|
115 | CONTEXTMENU = 'plot:contextmenu',
|
116 |
|
117 | LEAVE = 'plot:leave',
|
118 | ENTER = 'plot:enter',
|
119 | }
|
120 |
|
121 |
|
122 |
|
123 |
|
124 | export enum ELEMENT_STATE {
|
125 | ACTIVE = 'active',
|
126 | INACTIVE = 'inactive',
|
127 | SELECTED = 'selected',
|
128 | DEFAULT = 'default',
|
129 | }
|
130 |
|
131 |
|
132 | export const GROUP_ATTRS = ['color', 'shape', 'size'];
|
133 |
|
134 | export const FIELD_ORIGIN = '_origin';
|
135 |
|
136 | export const MIN_CHART_WIDTH = 1;
|
137 |
|
138 | export const MIN_CHART_HEIGHT = 1;
|
139 |
|
140 | export const COMPONENT_MAX_VIEW_PERCENTAGE = 0.25;
|