This repository has been archived by the owner on Mar 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wijmo.chart.annotation.d.ts
executable file
·202 lines (202 loc) · 6.73 KB
/
wijmo.chart.annotation.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
import * as wjcChart from 'wijmo/wijmo.chart';
import * as wjcCore from 'wijmo/wijmo';
export declare enum AnnotationAttachment {
DataIndex = 0,
DataCoordinate = 1,
Relative = 2,
Absolute = 3,
}
export declare enum AnnotationPosition {
Center = 0,
Top = 1,
Bottom = 2,
Left = 4,
Right = 8,
}
export declare class AnnotationBase {
static _DATA_KEY: string;
static _CSS_ANNOTATION: string;
static _CSS_ANNO_TEXT: string;
static _CSS_ANNO_SHAPE: string;
private _attachment;
private _point;
private _seriesIndex;
private _pointIndex;
private _position;
private _offset;
private _style;
private _isVisible;
private _tooltip;
private _name;
_element: SVGElement;
_layer: AnnotationLayer;
constructor(options?: any);
attachment: AnnotationAttachment;
point: wjcChart.DataPoint;
seriesIndex: number;
pointIndex: number;
position: AnnotationPosition;
offset: wjcCore.Point;
style: any;
isVisible: boolean;
tooltip: string;
name: string;
render(engine: wjcChart.IRenderEngine): void;
destroy(): void;
_copy(dst: any, src: any): void;
_processOptions(key: any, dst: any, src: any): void;
_resetDefaultValue(): void;
_toggleVisibility(visible: boolean): void;
_getCSSClass(): string;
_render(engine: wjcChart.IRenderEngine): void;
_repaint(): void;
_convertPoint(pt?: wjcChart.DataPoint): wjcCore.Point;
_convertDataToLen(total: number, axis: wjcChart.Axis, val: any, converted?: boolean): number;
_renderCenteredText(content: string, engine: wjcChart.IRenderEngine, point: wjcCore.Point, className?: string, angle?: number, style?: any): void;
_adjustOffset(pt: wjcCore.Point, offset: wjcCore.Point): void;
_getOffset(engine?: wjcChart.IRenderEngine): wjcCore.Point;
_getPositionOffset(engine?: wjcChart.IRenderEngine): wjcCore.Point;
_getSize(engine?: wjcChart.IRenderEngine): wjcCore.Size;
_isValidPoint(pt: wjcCore.Point): boolean;
_measureString(engine: wjcChart.IRenderEngine, text: string, className: string): wjcCore.Size;
}
export declare class Text extends AnnotationBase {
static _CSS_TEXT: string;
private _text;
constructor(options?: any);
_resetDefaultValue(): void;
_getCSSClass(): string;
text: string;
_render(engine: wjcChart.IRenderEngine): void;
_getSize(engine?: wjcChart.IRenderEngine): wjcCore.Size;
}
export declare class Shape extends AnnotationBase {
static _CSS_SHAPE: string;
private _content;
_shapeContainer: SVGGElement;
constructor(options?: any);
_resetDefaultValue(): void;
_getCSSClass(): string;
content: string;
_render(engine: wjcChart.IRenderEngine): void;
_getContentCenter(): wjcChart.DataPoint;
_renderShape(engine: wjcChart.IRenderEngine): void;
_renderText(engine: wjcChart.IRenderEngine): void;
}
export declare class Ellipse extends Shape {
static _CSS_ELLIPSE: string;
private _width;
private _height;
constructor(options?: any);
width: number;
height: number;
_resetDefaultValue(): void;
_getCSSClass(): string;
_renderShape(engine: wjcChart.IRenderEngine): void;
_getSize(): wjcCore.Size;
}
export declare class Rectangle extends Shape {
static _CSS_RECTANGLE: string;
private _width;
private _height;
constructor(options?: any);
width: number;
height: number;
_resetDefaultValue(): void;
_getCSSClass(): string;
_renderShape(engine: wjcChart.IRenderEngine): void;
_getSize(): wjcCore.Size;
}
export declare class Line extends Shape {
static _CSS_LINE: string;
private _start;
private _end;
private _cS;
private _cE;
constructor(options?: any);
start: wjcChart.DataPoint;
end: wjcChart.DataPoint;
_resetDefaultValue(): void;
_getCSSClass(): string;
_getContentCenter(): wjcChart.DataPoint;
_renderShape(engine: wjcChart.IRenderEngine): void;
_getSize(): wjcCore.Size;
_renderText(engine: wjcChart.IRenderEngine): void;
_renderCenteredText(content: string, engine: wjcChart.IRenderEngine, point: wjcCore.Point, className?: string, angle?: number, style?: any): void;
}
export declare class Polygon extends Shape {
static _CSS_POLYGON: string;
private _points;
constructor(options?: any);
_processOptions(key: any, dst: any, src: any): void;
readonly points: wjcCore.ObservableArray;
_resetDefaultValue(): void;
_getCSSClass(): string;
_getContentCenter(): wjcChart.DataPoint;
_renderShape(engine: wjcChart.IRenderEngine): void;
_getSize(): wjcCore.Size;
}
export declare class Circle extends Shape {
static _CSS_CIRCLE: string;
private _radius;
constructor(options?: any);
radius: number;
_resetDefaultValue(): void;
_getCSSClass(): string;
_renderShape(engine: wjcChart.IRenderEngine): void;
_getSize(): wjcCore.Size;
}
export declare class Square extends Shape {
static _CSS_SQUARE: string;
private _length;
constructor(options?: any);
length: number;
_resetDefaultValue(): void;
_getCSSClass(): string;
_renderShape(engine: wjcChart.IRenderEngine): void;
_getSize(): wjcCore.Size;
}
export declare class Image extends Shape {
static _CSS_IMAGE: string;
private _width;
private _height;
private _href;
constructor(options?: any);
width: number;
height: number;
href: string;
_resetDefaultValue(): void;
_getCSSClass(): string;
_renderShape(engine: wjcChart.IRenderEngine): void;
_getSize(): wjcCore.Size;
private _applyStyle(el, style);
private _deCase(s);
}
export declare class AnnotationLayer {
static _CSS_Layer: string;
private _items;
private _engine;
_layerEle: SVGGElement;
private _plotrectId;
private _tooltip;
private _forceTTShowing;
private _annoTTShowing;
_chart: wjcChart.FlexChartCore;
constructor(chart: wjcChart.FlexChartCore, options?: any);
_init(chart: wjcChart.FlexChartCore): void;
private _lostFocus(evt);
readonly items: wjcCore.ObservableArray;
getItem(name: string): AnnotationBase;
getItems(name: string): Array<AnnotationBase>;
private _bindTooltip();
_showTooltip(): boolean;
private _toggleTooltip(tooltip, evt, parentNode);
_getAnnotation(ele: any, parentNode: any): AnnotationBase;
private _getAnnotationElement(ele, pNode);
private _itemsChanged(items, e);
private _renderAnnotations();
_renderGroup(): void;
_renderAnnotation(item: AnnotationBase): void;
private _destroyAnnotations();
private _destroyAnnotation(item);
}