realmap 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/index.d.ts +4603 -0
- package/dist/index.esm.js +7 -0
- package/dist/index.js +7 -0
- package/dist/realmap-style.css +734 -0
- package/package.json +29 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4603 @@
|
|
|
1
|
+
declare const PI_2: number;
|
|
2
|
+
declare const ORG_ANGLE: number;
|
|
3
|
+
declare const RAD_DEG: number;
|
|
4
|
+
type Path = string | any[];
|
|
5
|
+
declare function fixnum(value: number): number;
|
|
6
|
+
declare function pixel(v: number): string;
|
|
7
|
+
type PercentSize = string | number;
|
|
8
|
+
interface IPercentSize {
|
|
9
|
+
size: number;
|
|
10
|
+
fixed: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function parsePercentSize(sv: PercentSize, enableNull: boolean): IPercentSize;
|
|
13
|
+
declare function calcPercent(size: IPercentSize, domain: number, def?: number): number;
|
|
14
|
+
interface SVGStyles {
|
|
15
|
+
transform?: string;
|
|
16
|
+
fill?: string;
|
|
17
|
+
fillOpacity?: string;
|
|
18
|
+
stroke?: string;
|
|
19
|
+
strokeWidth?: string;
|
|
20
|
+
strokeDasharray?: string;
|
|
21
|
+
fontFamily?: string;
|
|
22
|
+
fontSize?: string;
|
|
23
|
+
fontWeight?: string;
|
|
24
|
+
fontStyle?: string;
|
|
25
|
+
rx?: string;
|
|
26
|
+
textAlign?: Align;
|
|
27
|
+
padding?: string;
|
|
28
|
+
}
|
|
29
|
+
type SVGStyleOrClass = SVGStyles | string;
|
|
30
|
+
interface ISides {
|
|
31
|
+
left: number;
|
|
32
|
+
right: number;
|
|
33
|
+
top: number;
|
|
34
|
+
bottom: number;
|
|
35
|
+
horz?: number;
|
|
36
|
+
vert?: number;
|
|
37
|
+
}
|
|
38
|
+
declare enum RtDirection {
|
|
39
|
+
UP = "up",
|
|
40
|
+
DOWN = "down",
|
|
41
|
+
LEFT = "left",
|
|
42
|
+
RIGHT = "right"
|
|
43
|
+
}
|
|
44
|
+
declare const _Align: {
|
|
45
|
+
readonly LEFT: "left";
|
|
46
|
+
readonly CENTER: "center";
|
|
47
|
+
readonly RIGHT: "right";
|
|
48
|
+
};
|
|
49
|
+
type Align = typeof _Align[keyof typeof _Align];
|
|
50
|
+
declare const _VerticalAlign: {
|
|
51
|
+
readonly TOP: "top";
|
|
52
|
+
readonly MIDDLE: "middle";
|
|
53
|
+
readonly BOTTOM: "bottom";
|
|
54
|
+
};
|
|
55
|
+
type VerticalAlign = typeof _VerticalAlign[keyof typeof _VerticalAlign];
|
|
56
|
+
declare const _AlignBase: {
|
|
57
|
+
readonly CHART: "chart";
|
|
58
|
+
readonly MAP: "map";
|
|
59
|
+
readonly PARENT: "parent";
|
|
60
|
+
};
|
|
61
|
+
type AlignBase = typeof _AlignBase[keyof typeof _AlignBase];
|
|
62
|
+
declare const _WritingMode: {
|
|
63
|
+
readonly HORIZONTAL_TB: "horizontal-tb";
|
|
64
|
+
readonly VERTICAL_LR: "vertical-lr";
|
|
65
|
+
readonly VERTICAL_RL: "vertical-rl";
|
|
66
|
+
};
|
|
67
|
+
type WritingMode = typeof _WritingMode[keyof typeof _WritingMode];
|
|
68
|
+
declare const _TextOrientation: {
|
|
69
|
+
readonly MIXED: "mixed";
|
|
70
|
+
readonly UPRIGHT: "upright";
|
|
71
|
+
};
|
|
72
|
+
type TextOrientation = typeof _TextOrientation[keyof typeof _TextOrientation];
|
|
73
|
+
interface ColorRange {
|
|
74
|
+
minValue?: number;
|
|
75
|
+
maxValue?: number;
|
|
76
|
+
minColor?: string;
|
|
77
|
+
maxColor?: string;
|
|
78
|
+
logBase?: number;
|
|
79
|
+
}
|
|
80
|
+
interface IPaddings {
|
|
81
|
+
l: number;
|
|
82
|
+
r: number;
|
|
83
|
+
t: number;
|
|
84
|
+
b: number;
|
|
85
|
+
}
|
|
86
|
+
interface ConfigObject {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
}
|
|
89
|
+
type MapCoord = [number, number];
|
|
90
|
+
type MapPolygon = MapCoord[][];
|
|
91
|
+
type MapProps = any;
|
|
92
|
+
|
|
93
|
+
declare abstract class RmObject {
|
|
94
|
+
private $_hash;
|
|
95
|
+
private $_destroyed;
|
|
96
|
+
private $_destroying;
|
|
97
|
+
constructor(noHash?: boolean);
|
|
98
|
+
destroy(): null;
|
|
99
|
+
protected _doDestory(): void;
|
|
100
|
+
get destroying(): boolean;
|
|
101
|
+
get orphaned(): boolean;
|
|
102
|
+
get hash(): string;
|
|
103
|
+
isMe(hash: string): boolean;
|
|
104
|
+
toString(): string;
|
|
105
|
+
toBool(v: any): boolean;
|
|
106
|
+
toNum(v: any, def?: number): number;
|
|
107
|
+
}
|
|
108
|
+
declare abstract class RmEventProvider<T> extends RmObject {
|
|
109
|
+
private _listeners;
|
|
110
|
+
_addListener(listener: T): void;
|
|
111
|
+
_removeListener(listener: T): void;
|
|
112
|
+
protected _fireEvent(event: string, ...args: any[]): any;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface MapInsetDisplay {
|
|
116
|
+
scale?: number;
|
|
117
|
+
coord?: MapCoord;
|
|
118
|
+
offset?: MapCoord;
|
|
119
|
+
border?: MapCoord[] | string;
|
|
120
|
+
frame?: string;
|
|
121
|
+
style?: SVGStyleOrClass;
|
|
122
|
+
}
|
|
123
|
+
interface MapInset extends MapInsetDisplay {
|
|
124
|
+
area: string;
|
|
125
|
+
children?: string[];
|
|
126
|
+
parent?: string;
|
|
127
|
+
polygons?: number[] | number[][] | number;
|
|
128
|
+
}
|
|
129
|
+
type MapSourceMeta = {
|
|
130
|
+
license?: {
|
|
131
|
+
license?: string;
|
|
132
|
+
author?: string;
|
|
133
|
+
url?: string;
|
|
134
|
+
etc?: "차트 최적화를 위해 좌표계 변환 및 Feature Polygon 수정";
|
|
135
|
+
};
|
|
136
|
+
dokdo?: {
|
|
137
|
+
group?: string;
|
|
138
|
+
parent?: number;
|
|
139
|
+
index?: number;
|
|
140
|
+
};
|
|
141
|
+
dummies?: string[];
|
|
142
|
+
};
|
|
143
|
+
interface MapSource {
|
|
144
|
+
name?: string;
|
|
145
|
+
enabled?: boolean;
|
|
146
|
+
map?: any;
|
|
147
|
+
source: any;
|
|
148
|
+
url?: string;
|
|
149
|
+
idKey?: string;
|
|
150
|
+
nameKey?: string;
|
|
151
|
+
exclude?: string[];
|
|
152
|
+
insets?: MapInset[];
|
|
153
|
+
padding?: string;
|
|
154
|
+
dokdo?: number | MapCoord;
|
|
155
|
+
showDummies?: boolean;
|
|
156
|
+
}
|
|
157
|
+
declare abstract class MapSourceItem {
|
|
158
|
+
id: string;
|
|
159
|
+
props: MapProps;
|
|
160
|
+
constructor(id: string, props: MapProps);
|
|
161
|
+
}
|
|
162
|
+
declare class AreaItem extends MapSourceItem {
|
|
163
|
+
polygon: MapPolygon;
|
|
164
|
+
polygons: MapPolygon[];
|
|
165
|
+
dummy: boolean;
|
|
166
|
+
}
|
|
167
|
+
declare abstract class MapSourceImpl extends RmObject {
|
|
168
|
+
static createStockInset(area: string, display?: MapInsetDisplay): MapInset;
|
|
169
|
+
readonly name: string;
|
|
170
|
+
readonly enabled: boolean;
|
|
171
|
+
readonly idKey: string;
|
|
172
|
+
readonly nameKey: string;
|
|
173
|
+
readonly meta: MapSourceMeta;
|
|
174
|
+
readonly dokdo: number;
|
|
175
|
+
readonly dummies: string[];
|
|
176
|
+
items: MapSourceItem[];
|
|
177
|
+
insets: {
|
|
178
|
+
[area: string]: MapInset;
|
|
179
|
+
};
|
|
180
|
+
paddings: IPaddings;
|
|
181
|
+
private _excludes;
|
|
182
|
+
constructor(src: MapSource);
|
|
183
|
+
included(area: string): boolean;
|
|
184
|
+
private $_load;
|
|
185
|
+
protected abstract _doLoad(source: object): MapSourceItem[];
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface IPoint {
|
|
189
|
+
x: number;
|
|
190
|
+
y: number;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface ISize {
|
|
194
|
+
width: number;
|
|
195
|
+
height: number;
|
|
196
|
+
}
|
|
197
|
+
declare class Size {
|
|
198
|
+
width: number;
|
|
199
|
+
height: number;
|
|
200
|
+
static readonly EMPTY: Size;
|
|
201
|
+
static empty(): Size;
|
|
202
|
+
static create(w?: number, h?: number): Size;
|
|
203
|
+
constructor(width?: number, height?: number);
|
|
204
|
+
get isEmpty(): boolean;
|
|
205
|
+
clone(): Size;
|
|
206
|
+
equals(sz: Size): boolean;
|
|
207
|
+
setEmpty(): Size;
|
|
208
|
+
set(width: number, height: number): Size;
|
|
209
|
+
round(): Size;
|
|
210
|
+
toString(): string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface ChartItemOptions {
|
|
214
|
+
visible?: boolean;
|
|
215
|
+
style?: SVGStyleOrClass;
|
|
216
|
+
}
|
|
217
|
+
declare const ChartTextEffects: {
|
|
218
|
+
readonly NONE: "none";
|
|
219
|
+
readonly OUTLINE: "outline";
|
|
220
|
+
readonly BACKGROUND: "background";
|
|
221
|
+
};
|
|
222
|
+
type ChartTextEffect = typeof ChartTextEffects[keyof typeof ChartTextEffects];
|
|
223
|
+
interface ChartTextOptions extends ChartItemOptions {
|
|
224
|
+
effect?: ChartTextEffect;
|
|
225
|
+
lightStyle?: SVGStyleOrClass;
|
|
226
|
+
darkStyle?: SVGStyleOrClass;
|
|
227
|
+
backgroundStyle?: SVGStyleOrClass;
|
|
228
|
+
autoContrast?: boolean;
|
|
229
|
+
outlineThickness?: number;
|
|
230
|
+
prefix?: string;
|
|
231
|
+
suffix?: string;
|
|
232
|
+
numberSymbols?: string;
|
|
233
|
+
numberFormat?: string;
|
|
234
|
+
text?: string;
|
|
235
|
+
lineHeight?: number;
|
|
236
|
+
}
|
|
237
|
+
declare const IconPostions: {
|
|
238
|
+
readonly DEFAULT: "default";
|
|
239
|
+
readonly LEFT: "left";
|
|
240
|
+
readonly RIGHT: "right";
|
|
241
|
+
readonly TOP: "top";
|
|
242
|
+
readonly BOTTOM: "bottom";
|
|
243
|
+
};
|
|
244
|
+
type IconPosition = typeof IconPostions[keyof typeof IconPostions];
|
|
245
|
+
interface IconedTextOptions extends ChartTextOptions {
|
|
246
|
+
iconPosition?: IconPosition;
|
|
247
|
+
imageList?: string;
|
|
248
|
+
iconRoot?: string;
|
|
249
|
+
iconGap?: number;
|
|
250
|
+
width?: number;
|
|
251
|
+
height?: number;
|
|
252
|
+
}
|
|
253
|
+
interface DataPointCallbackArgs {
|
|
254
|
+
series: object;
|
|
255
|
+
count: number;
|
|
256
|
+
vcount: number;
|
|
257
|
+
yMin: number;
|
|
258
|
+
yMax: number;
|
|
259
|
+
xMin: number;
|
|
260
|
+
xMax: number;
|
|
261
|
+
zMin: number;
|
|
262
|
+
zMax: number;
|
|
263
|
+
index: number;
|
|
264
|
+
vindex: number;
|
|
265
|
+
x: any;
|
|
266
|
+
y: any;
|
|
267
|
+
z: any;
|
|
268
|
+
xValue: any;
|
|
269
|
+
yValue: any;
|
|
270
|
+
zValue: any;
|
|
271
|
+
labelIndex: number;
|
|
272
|
+
source: any;
|
|
273
|
+
}
|
|
274
|
+
interface AnimationOptions {
|
|
275
|
+
duration: number;
|
|
276
|
+
end: () => void;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
declare const _AnnotationScope: {
|
|
280
|
+
readonly CHART: "chart";
|
|
281
|
+
readonly CONTAINER: "container";
|
|
282
|
+
};
|
|
283
|
+
type AnnotationScope = typeof _AnnotationScope[keyof typeof _AnnotationScope];
|
|
284
|
+
interface AnnotationAnimationOptions {
|
|
285
|
+
type: string;
|
|
286
|
+
duration?: number;
|
|
287
|
+
}
|
|
288
|
+
type AnnotationType = 'image' | 'shape' | 'text';
|
|
289
|
+
interface AnnotationOptions extends ChartItemOptions {
|
|
290
|
+
type?: AnnotationType;
|
|
291
|
+
front?: boolean;
|
|
292
|
+
name?: string;
|
|
293
|
+
anchor?: string;
|
|
294
|
+
align?: Align;
|
|
295
|
+
verticalAlign?: VerticalAlign;
|
|
296
|
+
offsetX?: number | string;
|
|
297
|
+
offsetY?: number | string;
|
|
298
|
+
rotation?: number;
|
|
299
|
+
scope?: AnnotationScope;
|
|
300
|
+
backgroundStyle?: SVGStyleOrClass;
|
|
301
|
+
noClip?: boolean;
|
|
302
|
+
x1?: number | Date;
|
|
303
|
+
x2?: number | Date;
|
|
304
|
+
y1?: number | Date;
|
|
305
|
+
y2?: number | Date;
|
|
306
|
+
width?: PercentSize;
|
|
307
|
+
height?: PercentSize;
|
|
308
|
+
}
|
|
309
|
+
declare const ImageAnnotationType = "image";
|
|
310
|
+
interface ImageAnnotationOptions extends AnnotationOptions {
|
|
311
|
+
type?: typeof ImageAnnotationType;
|
|
312
|
+
visible?: boolean;
|
|
313
|
+
imageUrl?: string;
|
|
314
|
+
}
|
|
315
|
+
declare const ShapeAnnotationType = "shape";
|
|
316
|
+
interface ShapeAnnotationOptions extends AnnotationOptions {
|
|
317
|
+
type?: typeof ShapeAnnotationType;
|
|
318
|
+
width?: number;
|
|
319
|
+
height?: number;
|
|
320
|
+
shape?: 'circle' | 'diamond' | 'square' | 'triangle' | 'star' | 'itriangle' | 'rectangle';
|
|
321
|
+
path?: string;
|
|
322
|
+
series?: string;
|
|
323
|
+
xRange?: number[];
|
|
324
|
+
yRange?: number[];
|
|
325
|
+
}
|
|
326
|
+
declare const TextAnnotationType = "text";
|
|
327
|
+
interface TextAnnotationOptions extends AnnotationOptions {
|
|
328
|
+
type?: typeof TextAnnotationType;
|
|
329
|
+
visible?: boolean;
|
|
330
|
+
text?: string;
|
|
331
|
+
numberFormat?: string;
|
|
332
|
+
timeFormat?: string;
|
|
333
|
+
writingMode?: WritingMode;
|
|
334
|
+
textOrientation?: TextOrientation;
|
|
335
|
+
}
|
|
336
|
+
type AnnotationOptionsType = ImageAnnotationOptions | ShapeAnnotationOptions | TextAnnotationOptions;
|
|
337
|
+
|
|
338
|
+
declare class Color {
|
|
339
|
+
private static readonly COLORS;
|
|
340
|
+
static create(color?: string): Color | undefined;
|
|
341
|
+
static isBright(color: string): boolean;
|
|
342
|
+
static getContrast(color: string, darkColor?: string, brightColor?: string): string;
|
|
343
|
+
static interpolate(color1: Color, color2: Color, rate: number): Color;
|
|
344
|
+
private r;
|
|
345
|
+
private g;
|
|
346
|
+
private b;
|
|
347
|
+
private a;
|
|
348
|
+
constructor(color?: string);
|
|
349
|
+
get rgba(): string;
|
|
350
|
+
isBright(): boolean;
|
|
351
|
+
getContrast(darkColor: string, brightColor: string): string;
|
|
352
|
+
brighten(rate: number, color?: Color): Color;
|
|
353
|
+
toString(): string;
|
|
354
|
+
private $_parseRgb;
|
|
355
|
+
private $_parseNumber;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare class DatetimeFormatter {
|
|
359
|
+
private static readonly Formatters;
|
|
360
|
+
static getFormatter(format: string): DatetimeFormatter;
|
|
361
|
+
static get Default(): DatetimeFormatter;
|
|
362
|
+
private _format;
|
|
363
|
+
private _baseYear;
|
|
364
|
+
private _preserveTime;
|
|
365
|
+
private _tokens;
|
|
366
|
+
private _hasAmPm;
|
|
367
|
+
private _formatString;
|
|
368
|
+
constructor(format: string);
|
|
369
|
+
get format(): string;
|
|
370
|
+
get formatString(): string;
|
|
371
|
+
set formatString(value: string);
|
|
372
|
+
toStr(date: Date, startOfWeek: number): string;
|
|
373
|
+
private parseDateFormatTokens;
|
|
374
|
+
private parse;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare class NumberFormatter {
|
|
378
|
+
static readonly DEFAULT_FORMAT = "";
|
|
379
|
+
private static readonly Formatters;
|
|
380
|
+
static getFormatter(format: string): NumberFormatter;
|
|
381
|
+
static get Default(): NumberFormatter;
|
|
382
|
+
private _format;
|
|
383
|
+
private _options;
|
|
384
|
+
constructor(format: string);
|
|
385
|
+
get format(): string;
|
|
386
|
+
toStr(value: number | bigint): string;
|
|
387
|
+
toStrEx(value: number | bigint, roundingMode: 'trunc' | 'ceil'): string;
|
|
388
|
+
private $_parse;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
interface IRect {
|
|
392
|
+
x: number;
|
|
393
|
+
y: number;
|
|
394
|
+
width: number;
|
|
395
|
+
height: number;
|
|
396
|
+
}
|
|
397
|
+
declare const createRect: (x: number, y: number, width: number, height: number) => IRect;
|
|
398
|
+
declare function rectToSize(r: IRect): ISize;
|
|
399
|
+
declare function isEmptyRect(r: IRect): boolean;
|
|
400
|
+
|
|
401
|
+
declare class Sides {
|
|
402
|
+
top: number;
|
|
403
|
+
bottom: number;
|
|
404
|
+
left: number;
|
|
405
|
+
right: number;
|
|
406
|
+
static readonly Empty: Readonly<Sides>;
|
|
407
|
+
static Temp: Sides;
|
|
408
|
+
static create(top: number, bottom?: number, left?: number, right?: number): Sides;
|
|
409
|
+
static createFrom(value: string): Sides;
|
|
410
|
+
constructor(top?: number, bottom?: number, left?: number, right?: number);
|
|
411
|
+
clone(): Sides;
|
|
412
|
+
applyPadding(cs: CSSStyleDeclaration): Sides;
|
|
413
|
+
applyMargin(cs: CSSStyleDeclaration): Sides;
|
|
414
|
+
shrink(r: IRect): IRect;
|
|
415
|
+
toString(): string;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
declare class TextFormatter {
|
|
419
|
+
private static readonly Formatters;
|
|
420
|
+
static getFormatter(format: string): TextFormatter;
|
|
421
|
+
private _format;
|
|
422
|
+
private _pattern;
|
|
423
|
+
private _replace;
|
|
424
|
+
constructor(format: string);
|
|
425
|
+
get format(): string;
|
|
426
|
+
toStr(text: string): string;
|
|
427
|
+
$_parse(fmt: string): void;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
interface ExporterOptions extends ChartItemOptions {
|
|
431
|
+
visible?: boolean;
|
|
432
|
+
fileName?: string;
|
|
433
|
+
useLibrary?: boolean;
|
|
434
|
+
menus?: ExportType[];
|
|
435
|
+
width?: number;
|
|
436
|
+
scale?: number;
|
|
437
|
+
url?: string;
|
|
438
|
+
hideScrollbar?: boolean;
|
|
439
|
+
hideNavigator?: boolean;
|
|
440
|
+
hideZoomButton?: boolean;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare const _ExportType: {
|
|
444
|
+
readonly PNG: "png";
|
|
445
|
+
readonly JPEG: "jpeg";
|
|
446
|
+
readonly SVG: "svg";
|
|
447
|
+
readonly PDF: "pdf";
|
|
448
|
+
readonly PRINT: "print";
|
|
449
|
+
};
|
|
450
|
+
type ExportType = typeof _ExportType[keyof typeof _ExportType];
|
|
451
|
+
interface ExportOptions {
|
|
452
|
+
type?: ExportType;
|
|
453
|
+
fileName?: string;
|
|
454
|
+
}
|
|
455
|
+
interface ChartExporter {
|
|
456
|
+
exportToImage: (dom: HTMLElement, options: ExportOptions, config: ExporterOptions) => void;
|
|
457
|
+
exportToPrint: (dom: HTMLElement, options: ExportOptions) => void;
|
|
458
|
+
isContextMenuVisible: () => boolean;
|
|
459
|
+
toggleContextMenu: () => void;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
declare const _Shapes: {
|
|
463
|
+
readonly CIRCLE: "circle";
|
|
464
|
+
readonly DIAMOND: "diamond";
|
|
465
|
+
readonly SQUARE: "square";
|
|
466
|
+
readonly TRIANGLE: "triangle";
|
|
467
|
+
readonly STAR: "star";
|
|
468
|
+
readonly ITRIANGLE: "itriangle";
|
|
469
|
+
readonly RECTANGLE: "rectangle";
|
|
470
|
+
};
|
|
471
|
+
type Shape = typeof _Shapes[keyof typeof _Shapes];
|
|
472
|
+
|
|
473
|
+
type AssetTypes = 'colors' | 'images' | 'lineargradient' | 'radialgradient';
|
|
474
|
+
interface AssetItemOptions {
|
|
475
|
+
type?: AssetTypes;
|
|
476
|
+
id: string;
|
|
477
|
+
}
|
|
478
|
+
interface GradientOptions extends AssetItemOptions {
|
|
479
|
+
color: string[] | string;
|
|
480
|
+
opacity?: number[] | number;
|
|
481
|
+
}
|
|
482
|
+
interface LinearGradientOptions extends GradientOptions {
|
|
483
|
+
dir?: 'down' | 'up' | 'right' | 'left';
|
|
484
|
+
}
|
|
485
|
+
interface RadialGradientOptions extends GradientOptions {
|
|
486
|
+
cx?: number | string;
|
|
487
|
+
cy?: number | string;
|
|
488
|
+
r?: number | string;
|
|
489
|
+
}
|
|
490
|
+
interface PatternOptions extends AssetItemOptions {
|
|
491
|
+
pattern: string | number;
|
|
492
|
+
width?: number;
|
|
493
|
+
height?: number;
|
|
494
|
+
style?: SVGStyles;
|
|
495
|
+
backgroundStyle?: SVGStyles;
|
|
496
|
+
transform?: string;
|
|
497
|
+
}
|
|
498
|
+
interface Image {
|
|
499
|
+
name?: string;
|
|
500
|
+
url: string;
|
|
501
|
+
}
|
|
502
|
+
interface ImageListOptions extends AssetItemOptions {
|
|
503
|
+
rootUrl?: string;
|
|
504
|
+
width?: number;
|
|
505
|
+
height?: number;
|
|
506
|
+
images: (Image | string)[];
|
|
507
|
+
}
|
|
508
|
+
type PaletteMode = 'normal' | 'shuffle' | 'random';
|
|
509
|
+
interface ColorListOptions extends AssetItemOptions {
|
|
510
|
+
mode?: PaletteMode;
|
|
511
|
+
colors?: string[];
|
|
512
|
+
}
|
|
513
|
+
type AssetOptionsType = LinearGradientOptions | RadialGradientOptions | PatternOptions | ColorListOptions | ImageListOptions;
|
|
514
|
+
|
|
515
|
+
declare const _ClickAction: {
|
|
516
|
+
readonly NONE: "none";
|
|
517
|
+
readonly SELECT: "select";
|
|
518
|
+
readonly ZOOM: "zoom";
|
|
519
|
+
readonly CENTER: "center";
|
|
520
|
+
readonly DRILLDOWN: "drilldown";
|
|
521
|
+
readonly DRILL_OR_ZOOM: "drillOrZoom";
|
|
522
|
+
};
|
|
523
|
+
type ClickAction = typeof _ClickAction[keyof typeof _ClickAction];
|
|
524
|
+
declare const _DblClickAction: {
|
|
525
|
+
readonly NONE: "none";
|
|
526
|
+
readonly SELECT: "select";
|
|
527
|
+
readonly ZOOM: "zoom";
|
|
528
|
+
readonly CENTER: "center";
|
|
529
|
+
readonly DRILLDOWN: "drilldown";
|
|
530
|
+
readonly DRILL_OR_ZOOM: "drillOrZoom";
|
|
531
|
+
};
|
|
532
|
+
type DblClickAction = typeof _DblClickAction[keyof typeof _DblClickAction];
|
|
533
|
+
declare const _DragAction: {
|
|
534
|
+
readonly DEFAULT: "default";
|
|
535
|
+
readonly SELECT: "select";
|
|
536
|
+
readonly ZOOM: "zoom";
|
|
537
|
+
};
|
|
538
|
+
type DragAction = typeof _DragAction[keyof typeof _DragAction];
|
|
539
|
+
interface ChartOptionsOptions extends ChartItemOptions {
|
|
540
|
+
alwaysMap?: boolean;
|
|
541
|
+
clickAction?: ClickAction;
|
|
542
|
+
dblClickAction?: DblClickAction;
|
|
543
|
+
dragAction?: DragAction;
|
|
544
|
+
backgroundStyle?: CSSStyleDeclaration;
|
|
545
|
+
onSelectionChanged?: (args: any) => void;
|
|
546
|
+
}
|
|
547
|
+
interface TitleOptions extends ChartItemOptions {
|
|
548
|
+
visible?: boolean;
|
|
549
|
+
text?: string;
|
|
550
|
+
alignBase?: AlignBase;
|
|
551
|
+
align?: Align;
|
|
552
|
+
verticalAlign?: VerticalAlign;
|
|
553
|
+
backgroundStyle?: SVGStyleOrClass;
|
|
554
|
+
gap?: number;
|
|
555
|
+
}
|
|
556
|
+
declare const _SubtitlePosition: {
|
|
557
|
+
readonly BOTTOM: "bottom";
|
|
558
|
+
readonly RIGHT: "right";
|
|
559
|
+
readonly LEFT: "left";
|
|
560
|
+
readonly TOP: "top";
|
|
561
|
+
};
|
|
562
|
+
type SubtitlePosition = typeof _SubtitlePosition[keyof typeof _SubtitlePosition];
|
|
563
|
+
interface SubtitleOptions extends TitleOptions {
|
|
564
|
+
position?: SubtitlePosition;
|
|
565
|
+
titleGap?: number;
|
|
566
|
+
}
|
|
567
|
+
interface CreditsOptions extends ChartItemOptions {
|
|
568
|
+
text?: string;
|
|
569
|
+
url?: string;
|
|
570
|
+
floating?: boolean;
|
|
571
|
+
align?: Align;
|
|
572
|
+
verticalAlign?: VerticalAlign;
|
|
573
|
+
offsetX?: number;
|
|
574
|
+
offsetY?: number;
|
|
575
|
+
gap?: number;
|
|
576
|
+
}
|
|
577
|
+
declare const TooltipScopes: {
|
|
578
|
+
readonly HOVER: "hover";
|
|
579
|
+
readonly POINT: "point";
|
|
580
|
+
readonly GROUP: "group";
|
|
581
|
+
readonly AXIS: "axis";
|
|
582
|
+
};
|
|
583
|
+
type TooltipScope = typeof TooltipScopes[keyof typeof TooltipScopes];
|
|
584
|
+
interface TooltipOptions extends ChartItemOptions {
|
|
585
|
+
scope?: TooltipScope;
|
|
586
|
+
html?: string;
|
|
587
|
+
text?: string;
|
|
588
|
+
offset?: number;
|
|
589
|
+
hideDelay?: number;
|
|
590
|
+
minWidth?: number;
|
|
591
|
+
minHeight?: number;
|
|
592
|
+
followPointer?: boolean;
|
|
593
|
+
nanText?: string;
|
|
594
|
+
numberFormat?: string;
|
|
595
|
+
timeFormat?: string;
|
|
596
|
+
}
|
|
597
|
+
type ProjectionType = undefined | 'orthographic' | 'equalearth' | 'miller' | 'mercator';
|
|
598
|
+
interface MapBackgroundOptions extends ChartItemOptions {
|
|
599
|
+
visible?: boolean;
|
|
600
|
+
globeFill?: string;
|
|
601
|
+
}
|
|
602
|
+
interface BodyPanelOptions extends ChartItemOptions {
|
|
603
|
+
align?: Align;
|
|
604
|
+
verticalAlign?: VerticalAlign;
|
|
605
|
+
offsetX?: number;
|
|
606
|
+
offsetY?: number;
|
|
607
|
+
itemGap?: number;
|
|
608
|
+
}
|
|
609
|
+
interface ZoomButton {
|
|
610
|
+
label?: string;
|
|
611
|
+
icon?: string;
|
|
612
|
+
}
|
|
613
|
+
interface ZoomPanelOptions extends BodyPanelOptions {
|
|
614
|
+
buttons?: ZoomButton[];
|
|
615
|
+
direction?: 'vertical' | 'horizontal';
|
|
616
|
+
zoomStep?: number;
|
|
617
|
+
buttonWidth?: number;
|
|
618
|
+
buttonHeight?: number;
|
|
619
|
+
showReset?: boolean;
|
|
620
|
+
buttonStyle?: SVGStyleOrClass;
|
|
621
|
+
align?: Align;
|
|
622
|
+
verticalAlign?: VerticalAlign;
|
|
623
|
+
showAlways?: boolean;
|
|
624
|
+
}
|
|
625
|
+
declare const _DrilldownPanelType: {
|
|
626
|
+
readonly BUTTON: "button";
|
|
627
|
+
readonly TEXT: "text";
|
|
628
|
+
};
|
|
629
|
+
type DrilldownPanelType = typeof _DrilldownPanelType[keyof typeof _DrilldownPanelType];
|
|
630
|
+
interface DrilldownPanelOptions extends BodyPanelOptions {
|
|
631
|
+
type?: DrilldownPanelType;
|
|
632
|
+
align?: Align;
|
|
633
|
+
verticalAlign?: VerticalAlign;
|
|
634
|
+
}
|
|
635
|
+
type IOnHoverAreaParam = {
|
|
636
|
+
area: any;
|
|
637
|
+
oldArea: any;
|
|
638
|
+
};
|
|
639
|
+
type IOnClickAreaParam = {
|
|
640
|
+
area: any;
|
|
641
|
+
};
|
|
642
|
+
type IOnZoomChanged = {
|
|
643
|
+
zoom: number;
|
|
644
|
+
oldZoom: number;
|
|
645
|
+
};
|
|
646
|
+
interface BodyOptions extends ChartItemOptions {
|
|
647
|
+
projection?: ProjectionType;
|
|
648
|
+
mapBackground?: MapBackgroundOptions;
|
|
649
|
+
zoomPanel?: ZoomPanelOptions | boolean;
|
|
650
|
+
drilldownPanel?: DrilldownPanelOptions | boolean;
|
|
651
|
+
zoomable?: boolean;
|
|
652
|
+
zoom?: number;
|
|
653
|
+
maxZoom?: number;
|
|
654
|
+
wheelZoomFactor?: number;
|
|
655
|
+
scrollable?: boolean;
|
|
656
|
+
scroll?: number;
|
|
657
|
+
panX?: number;
|
|
658
|
+
panY?: number;
|
|
659
|
+
rotationX?: number;
|
|
660
|
+
rotationY?: number;
|
|
661
|
+
fit?: any;
|
|
662
|
+
points?: ([string, number, number] | {
|
|
663
|
+
id: string;
|
|
664
|
+
coord?: MapCoord;
|
|
665
|
+
lon?: number;
|
|
666
|
+
lat?: number;
|
|
667
|
+
})[];
|
|
668
|
+
onZoomChanged?: (args: IOnZoomChanged) => void;
|
|
669
|
+
onHoverArea?: (args: IOnHoverAreaParam) => void;
|
|
670
|
+
onClickArea?: (args: IOnClickAreaParam) => void;
|
|
671
|
+
annotations?: AnnotationOptionsType | AnnotationOptionsType[];
|
|
672
|
+
}
|
|
673
|
+
interface BackgroundImageOptions extends ChartItemOptions {
|
|
674
|
+
url?: string;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare const ScaleLocations: {
|
|
678
|
+
readonly BOTTOM: "bottom";
|
|
679
|
+
readonly TOP: "top";
|
|
680
|
+
readonly RIGHT: "right";
|
|
681
|
+
readonly LEFT: "left";
|
|
682
|
+
readonly BODY: "body";
|
|
683
|
+
};
|
|
684
|
+
type ScaleLocation = typeof ScaleLocations[keyof typeof ScaleLocations];
|
|
685
|
+
interface ScaleOptions extends ChartItemOptions {
|
|
686
|
+
name?: string;
|
|
687
|
+
series?: string;
|
|
688
|
+
location?: ScaleLocation;
|
|
689
|
+
align?: Align;
|
|
690
|
+
verticalAlign?: VerticalAlign;
|
|
691
|
+
offsetX?: number;
|
|
692
|
+
offsetY?: number;
|
|
693
|
+
}
|
|
694
|
+
declare const _ColorScaleLayout: {
|
|
695
|
+
readonly AUTO: "auto";
|
|
696
|
+
readonly HORIZONTAL: "horizontal";
|
|
697
|
+
readonly VERTICAL: "vertical";
|
|
698
|
+
};
|
|
699
|
+
type ColorScaleLayout = typeof _ColorScaleLayout[keyof typeof _ColorScaleLayout];
|
|
700
|
+
declare const ColorScaleDisplays: {
|
|
701
|
+
readonly SCALE: "scale";
|
|
702
|
+
readonly LEGEND: "legend";
|
|
703
|
+
readonly BOTH: "both";
|
|
704
|
+
};
|
|
705
|
+
type ColorScaleDisplay = typeof ColorScaleDisplays[keyof typeof ColorScaleDisplays];
|
|
706
|
+
interface ColorScaleMarkerOptions extends ChartItemOptions {
|
|
707
|
+
size?: number;
|
|
708
|
+
label?: ChartTextOptions;
|
|
709
|
+
}
|
|
710
|
+
interface ColorScaleStepLineOptions extends ChartItemOptions {
|
|
711
|
+
}
|
|
712
|
+
interface ColorScaleTickLineOptions extends ChartItemOptions {
|
|
713
|
+
length?: number;
|
|
714
|
+
}
|
|
715
|
+
interface ColorScaleTickLabelOptions extends IconedTextOptions {
|
|
716
|
+
position?: 'tick' | 'between';
|
|
717
|
+
offset?: number;
|
|
718
|
+
minText?: string;
|
|
719
|
+
maxText?: string;
|
|
720
|
+
}
|
|
721
|
+
interface ColorScaleTickOptions extends ChartItemOptions {
|
|
722
|
+
line?: ColorScaleTickLineOptions;
|
|
723
|
+
label?: ColorScaleTickLabelOptions;
|
|
724
|
+
}
|
|
725
|
+
interface ColorScaleStep {
|
|
726
|
+
from?: number | string;
|
|
727
|
+
to?: number | string;
|
|
728
|
+
label: string;
|
|
729
|
+
color: string;
|
|
730
|
+
fromColor?: string;
|
|
731
|
+
toColor?: string;
|
|
732
|
+
}
|
|
733
|
+
interface ColorStop {
|
|
734
|
+
stop: number;
|
|
735
|
+
color: string;
|
|
736
|
+
}
|
|
737
|
+
interface ColorScaleOptions extends ScaleOptions {
|
|
738
|
+
marker?: ColorScaleMarkerOptions;
|
|
739
|
+
tick?: ColorScaleTickOptions;
|
|
740
|
+
stepLine?: ColorScaleStepLineOptions;
|
|
741
|
+
display?: ColorScaleDisplay;
|
|
742
|
+
minValue?: number;
|
|
743
|
+
maxValue?: number;
|
|
744
|
+
integralSteps?: boolean;
|
|
745
|
+
stepCount?: number;
|
|
746
|
+
steps?: ColorScaleStep[];
|
|
747
|
+
logBase?: number;
|
|
748
|
+
minColor?: string;
|
|
749
|
+
maxColor?: string;
|
|
750
|
+
colors?: ColorStop[];
|
|
751
|
+
layout?: ColorScaleLayout;
|
|
752
|
+
barWidth?: number;
|
|
753
|
+
barLength?: PercentSize;
|
|
754
|
+
backgroundStyle?: SVGStyleOrClass;
|
|
755
|
+
gap?: number;
|
|
756
|
+
}
|
|
757
|
+
interface BubbleScaleTickLineOptions extends ChartItemOptions {
|
|
758
|
+
length?: number;
|
|
759
|
+
}
|
|
760
|
+
interface BubbleScaleTickLabelOptions extends IconedTextOptions {
|
|
761
|
+
offset?: number;
|
|
762
|
+
}
|
|
763
|
+
interface BubbleScaleTickOptions extends ChartItemOptions {
|
|
764
|
+
line?: BubbleScaleTickLineOptions;
|
|
765
|
+
label?: BubbleScaleTickLabelOptions;
|
|
766
|
+
}
|
|
767
|
+
interface BubbleScaleStep {
|
|
768
|
+
value: number;
|
|
769
|
+
label: string;
|
|
770
|
+
}
|
|
771
|
+
interface BubbleScaleOptions extends ScaleOptions {
|
|
772
|
+
tick?: BubbleScaleTickOptions;
|
|
773
|
+
steps?: (BubbleScaleStep | number)[];
|
|
774
|
+
stepCount?: number;
|
|
775
|
+
}
|
|
776
|
+
interface MapScaleLabelOptions extends IconedTextOptions {
|
|
777
|
+
offset?: number;
|
|
778
|
+
}
|
|
779
|
+
interface MapScaleOptions extends ScaleOptions {
|
|
780
|
+
visible?: boolean;
|
|
781
|
+
label?: MapScaleLabelOptions;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
declare const LegendItemsAligns: {
|
|
785
|
+
readonly START: "start";
|
|
786
|
+
readonly CENTER: "center";
|
|
787
|
+
readonly END: "end";
|
|
788
|
+
};
|
|
789
|
+
type LegendItemsAlign = typeof LegendItemsAligns[keyof typeof LegendItemsAligns];
|
|
790
|
+
declare const _LegendLayout: {
|
|
791
|
+
readonly AUTO: "auto";
|
|
792
|
+
readonly HORIZONTAL: "horizontal";
|
|
793
|
+
readonly VERTICAL: "vertical";
|
|
794
|
+
};
|
|
795
|
+
type LegendLayout = typeof _LegendLayout[keyof typeof _LegendLayout];
|
|
796
|
+
declare const LegendLocations: {
|
|
797
|
+
readonly BOTTOM: "bottom";
|
|
798
|
+
readonly TOP: "top";
|
|
799
|
+
readonly RIGHT: "right";
|
|
800
|
+
readonly LEFT: "left";
|
|
801
|
+
readonly BODY: "body";
|
|
802
|
+
};
|
|
803
|
+
type LegendLocation = typeof LegendLocations[keyof typeof LegendLocations];
|
|
804
|
+
interface LegendOptions extends ChartItemOptions {
|
|
805
|
+
visible?: boolean;
|
|
806
|
+
reversed?: boolean;
|
|
807
|
+
location?: LegendLocation;
|
|
808
|
+
layout?: LegendLayout;
|
|
809
|
+
alignBase?: AlignBase;
|
|
810
|
+
gap?: number;
|
|
811
|
+
itemGap?: number;
|
|
812
|
+
markerVisible?: boolean;
|
|
813
|
+
markerSize?: number;
|
|
814
|
+
markerGap?: number;
|
|
815
|
+
backgroundStyle?: SVGStyleOrClass;
|
|
816
|
+
itemsPerLine?: number;
|
|
817
|
+
lineGap?: number;
|
|
818
|
+
maxWidth?: PercentSize;
|
|
819
|
+
maxHeight?: PercentSize;
|
|
820
|
+
align?: Align;
|
|
821
|
+
verticalAlign?: VerticalAlign;
|
|
822
|
+
offsetX?: number;
|
|
823
|
+
offsetY?: number;
|
|
824
|
+
itemsAlign?: LegendItemsAlign;
|
|
825
|
+
useTextColor?: boolean;
|
|
826
|
+
seriesHovering?: boolean;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
interface MapAxisGridLineOptions extends ChartItemOptions {
|
|
830
|
+
step?: number;
|
|
831
|
+
}
|
|
832
|
+
declare const _MapAxisGridFitTo: {
|
|
833
|
+
readonly Map: "map";
|
|
834
|
+
readonly Body: "body";
|
|
835
|
+
};
|
|
836
|
+
type MapAxisGridFitTo = typeof _MapAxisGridFitTo[keyof typeof _MapAxisGridFitTo];
|
|
837
|
+
interface MapAxisGridOptions extends ChartItemOptions {
|
|
838
|
+
visible?: boolean;
|
|
839
|
+
fitTo?: MapAxisGridFitTo;
|
|
840
|
+
line?: MapAxisGridLineOptions | number;
|
|
841
|
+
lonLine?: MapAxisGridLineOptions | number;
|
|
842
|
+
latLine?: MapAxisGridLineOptions | number;
|
|
843
|
+
}
|
|
844
|
+
interface MapAxisLineOptions extends ChartItemOptions {
|
|
845
|
+
visible?: boolean;
|
|
846
|
+
}
|
|
847
|
+
interface MapAxisTickLineOptions extends ChartItemOptions {
|
|
848
|
+
visible?: boolean;
|
|
849
|
+
}
|
|
850
|
+
interface MapAxisTickOptions extends ChartItemOptions {
|
|
851
|
+
visible?: boolean;
|
|
852
|
+
line?: MapAxisTickLineOptions;
|
|
853
|
+
label?: ChartTextOptions;
|
|
854
|
+
}
|
|
855
|
+
declare const _MapAxisGuideLabelPosition: {
|
|
856
|
+
readonly INSIDE: "inside";
|
|
857
|
+
readonly OUTSIDE: "outside";
|
|
858
|
+
};
|
|
859
|
+
type MapAxisGuideLabelPosition = typeof _MapAxisGuideLabelPosition[keyof typeof _MapAxisGuideLabelPosition];
|
|
860
|
+
interface MapAxisGuideLabelOptions extends IconedTextOptions {
|
|
861
|
+
position?: MapAxisGuideLabelPosition;
|
|
862
|
+
align?: Align;
|
|
863
|
+
verticalAlign?: VerticalAlign;
|
|
864
|
+
offsetX?: number;
|
|
865
|
+
offsetY?: number;
|
|
866
|
+
}
|
|
867
|
+
type MapAxisGuideType = 'line' | 'band' | 'range';
|
|
868
|
+
interface MapAxisGuideOptions extends ChartItemOptions {
|
|
869
|
+
type?: MapAxisGuideType;
|
|
870
|
+
label?: MapAxisGuideLabelOptions;
|
|
871
|
+
front?: boolean;
|
|
872
|
+
zindex?: number;
|
|
873
|
+
}
|
|
874
|
+
declare const MapAxisLineGuideType = "line";
|
|
875
|
+
interface MapAxisLineGuideOptions extends MapAxisGuideOptions {
|
|
876
|
+
type?: typeof MapAxisLineGuideType;
|
|
877
|
+
axis?: 'lon' | 'lat';
|
|
878
|
+
position?: number;
|
|
879
|
+
}
|
|
880
|
+
declare const MapAxisBandGuideType = "band";
|
|
881
|
+
interface MapAxisBandGuideOptions extends MapAxisGuideOptions {
|
|
882
|
+
type?: typeof MapAxisBandGuideType;
|
|
883
|
+
axis?: 'lon' | 'lat';
|
|
884
|
+
from?: number;
|
|
885
|
+
to?: number;
|
|
886
|
+
}
|
|
887
|
+
declare const MapAxisRangeGuideType = "range";
|
|
888
|
+
interface MapAxisRangeGuideOptions extends MapAxisGuideOptions {
|
|
889
|
+
type?: typeof MapAxisRangeGuideType;
|
|
890
|
+
from?: MapCoord;
|
|
891
|
+
to?: MapCoord;
|
|
892
|
+
elliptic?: boolean;
|
|
893
|
+
}
|
|
894
|
+
interface CrosshairFlagOptions extends ChartItemOptions {
|
|
895
|
+
prefix?: string;
|
|
896
|
+
suffix?: string;
|
|
897
|
+
numberFormat?: string;
|
|
898
|
+
backgroundStyle?: SVGStyleOrClass;
|
|
899
|
+
minWidth?: number;
|
|
900
|
+
}
|
|
901
|
+
interface CrosshairCallbackArgs {
|
|
902
|
+
axis: object;
|
|
903
|
+
coord: MapCoord;
|
|
904
|
+
flag: string;
|
|
905
|
+
points: DataPoint[];
|
|
906
|
+
}
|
|
907
|
+
type CrosshairChangeCallback = (args: CrosshairCallbackArgs) => void;
|
|
908
|
+
interface MapCrosshairOptions extends ChartItemOptions {
|
|
909
|
+
flag?: CrosshairFlagOptions;
|
|
910
|
+
visible?: boolean;
|
|
911
|
+
onChange?: CrosshairChangeCallback;
|
|
912
|
+
}
|
|
913
|
+
interface MapAxisOptions extends ChartItemOptions {
|
|
914
|
+
line?: MapAxisLineOptions;
|
|
915
|
+
leftLine?: MapAxisLineOptions;
|
|
916
|
+
rightLine?: MapAxisLineOptions;
|
|
917
|
+
topLine?: MapAxisLineOptions;
|
|
918
|
+
bottomLine?: MapAxisLineOptions;
|
|
919
|
+
equatorLine?: MapAxisLineOptions;
|
|
920
|
+
meridianLine?: MapAxisLineOptions;
|
|
921
|
+
grid?: MapAxisGridOptions;
|
|
922
|
+
tick?: MapAxisTickOptions;
|
|
923
|
+
crosshair?: MapCrosshairOptions;
|
|
924
|
+
guide?: MapAxisGuideOptions | MapAxisGuideOptions[];
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
type PointHoverCallback = (args: DataPointCallbackArgs) => void;
|
|
928
|
+
type PointClickCallback = (args: DataPointCallbackArgs) => boolean;
|
|
929
|
+
type PointStyleCallback = (args: DataPointCallbackArgs) => SVGStyleOrClass;
|
|
930
|
+
declare const _PointViewPosition: {
|
|
931
|
+
readonly CENTER: "center";
|
|
932
|
+
readonly TOP: "top";
|
|
933
|
+
readonly BOTTOM: "bottom";
|
|
934
|
+
readonly LEFT: "left";
|
|
935
|
+
readonly RIGHT: "right";
|
|
936
|
+
};
|
|
937
|
+
type PointViewPosition = typeof _PointViewPosition[keyof typeof _PointViewPosition];
|
|
938
|
+
declare const _PointLabelPositions: {
|
|
939
|
+
readonly AUTO: "auto";
|
|
940
|
+
readonly CENTER: "center";
|
|
941
|
+
readonly TOP: "top";
|
|
942
|
+
readonly BOTTOM: "bottom";
|
|
943
|
+
readonly LEFT: "left";
|
|
944
|
+
readonly RIGHT: "right";
|
|
945
|
+
};
|
|
946
|
+
type PointLabelPosition = typeof _PointLabelPositions[keyof typeof _PointLabelPositions];
|
|
947
|
+
interface DataPointLabelOptions extends IconedTextOptions {
|
|
948
|
+
visible?: boolean;
|
|
949
|
+
zoomLevel?: number;
|
|
950
|
+
position?: PointLabelPosition;
|
|
951
|
+
offset?: number;
|
|
952
|
+
distance?: number;
|
|
953
|
+
textField?: string;
|
|
954
|
+
textCallback?: (point: any) => string;
|
|
955
|
+
visibleCallback?: (point: any) => boolean;
|
|
956
|
+
styleCallback?: (point: any) => SVGStyleOrClass;
|
|
957
|
+
animation?: 'reveal' | 'fadenin';
|
|
958
|
+
}
|
|
959
|
+
interface CalloutAnchorPointOptions extends ChartItemOptions {
|
|
960
|
+
shape?: string;
|
|
961
|
+
radius?: number;
|
|
962
|
+
}
|
|
963
|
+
interface DataPointCalloutOptions extends ChartItemOptions {
|
|
964
|
+
anchorPoint?: CalloutAnchorPointOptions;
|
|
965
|
+
visible?: boolean;
|
|
966
|
+
usePointColor?: boolean;
|
|
967
|
+
useSeriesColor?: boolean;
|
|
968
|
+
layoutOnly?: boolean;
|
|
969
|
+
}
|
|
970
|
+
interface SeriesOptions extends ChartItemOptions {
|
|
971
|
+
type?: string;
|
|
972
|
+
name?: string;
|
|
973
|
+
label?: string;
|
|
974
|
+
map?: string | number;
|
|
975
|
+
pointLabel?: DataPointLabelOptions | boolean;
|
|
976
|
+
callout?: DataPointCalloutOptions | boolean;
|
|
977
|
+
data?: any;
|
|
978
|
+
dataUrl?: string;
|
|
979
|
+
fields?: string[];
|
|
980
|
+
idField?: string;
|
|
981
|
+
nameField?: string;
|
|
982
|
+
lonField?: string;
|
|
983
|
+
latField?: string;
|
|
984
|
+
colorField?: string;
|
|
985
|
+
color?: string | number;
|
|
986
|
+
pointColors?: string[] | string | ((point: any) => string);
|
|
987
|
+
tooltipText?: string;
|
|
988
|
+
tooltipCallback?: (args: any) => string;
|
|
989
|
+
visibleInLegend?: boolean;
|
|
990
|
+
loadAnimation?: 'default' | 'reveal' | 'grow' | 'spread' | 'fadein';
|
|
991
|
+
hoverEffect?: 'none' | 'default';
|
|
992
|
+
hoverStyle?: SVGStyleOrClass;
|
|
993
|
+
styleCallback?: PointStyleCallback;
|
|
994
|
+
onPointsLoaded?: (series: object, firstTime: boolean) => void;
|
|
995
|
+
onPointAdded?: (p: DataPointCallbackArgs) => void;
|
|
996
|
+
onPointRemoved?: (p: DataPointCallbackArgs) => void;
|
|
997
|
+
onPointClick?: PointClickCallback;
|
|
998
|
+
onPointHover?: PointHoverCallback;
|
|
999
|
+
}
|
|
1000
|
+
interface ValueSeriesOptions extends SeriesOptions {
|
|
1001
|
+
valueField?: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface MarkerSeriesOptions extends ValueSeriesOptions {
|
|
1004
|
+
rotation?: number;
|
|
1005
|
+
hintDistance?: number;
|
|
1006
|
+
}
|
|
1007
|
+
interface SparkSeriesCategory {
|
|
1008
|
+
name?: string;
|
|
1009
|
+
color?: string;
|
|
1010
|
+
}
|
|
1011
|
+
interface SparkSeriesOptions extends ValueSeriesOptions {
|
|
1012
|
+
categories?: SparkSeriesCategory[];
|
|
1013
|
+
legendByCategory?: boolean;
|
|
1014
|
+
minSize?: number;
|
|
1015
|
+
rotation?: number;
|
|
1016
|
+
position?: PointViewPosition;
|
|
1017
|
+
}
|
|
1018
|
+
interface GaugeOptions extends ValueSeriesOptions {
|
|
1019
|
+
width?: number;
|
|
1020
|
+
height?: number;
|
|
1021
|
+
size?: number;
|
|
1022
|
+
position?: PointViewPosition;
|
|
1023
|
+
}
|
|
1024
|
+
interface ValueGaugeOptions extends GaugeOptions {
|
|
1025
|
+
minValue?: number;
|
|
1026
|
+
maxValue?: number;
|
|
1027
|
+
}
|
|
1028
|
+
interface SparkBaseLineOptions extends ChartItemOptions {
|
|
1029
|
+
}
|
|
1030
|
+
declare const _DataPointValueDomain: {
|
|
1031
|
+
readonly SERIES: "series";
|
|
1032
|
+
readonly POINT: "point";
|
|
1033
|
+
};
|
|
1034
|
+
type DataPointValueDomain = typeof _DataPointValueDomain[keyof typeof _DataPointValueDomain];
|
|
1035
|
+
interface OrthogonalSparkSeriesOptions extends SparkSeriesOptions {
|
|
1036
|
+
baseLine?: SparkBaseLineOptions | boolean;
|
|
1037
|
+
width?: number;
|
|
1038
|
+
height?: number;
|
|
1039
|
+
padding?: PercentSize;
|
|
1040
|
+
baseValue?: number;
|
|
1041
|
+
belowStyle?: SVGStyleOrClass;
|
|
1042
|
+
valueDomain?: DataPointValueDomain;
|
|
1043
|
+
minValue?: number;
|
|
1044
|
+
maxValue?: number;
|
|
1045
|
+
logBase?: number;
|
|
1046
|
+
}
|
|
1047
|
+
declare const BarSeriesType = "bar";
|
|
1048
|
+
interface BarSeriesOptions extends OrthogonalSparkSeriesOptions {
|
|
1049
|
+
type?: typeof BarSeriesType;
|
|
1050
|
+
subLabel?: DataPointLabelOptions | boolean;
|
|
1051
|
+
inverted?: boolean;
|
|
1052
|
+
barWidth?: number;
|
|
1053
|
+
maxValue?: number;
|
|
1054
|
+
nullAsBase?: boolean;
|
|
1055
|
+
belowStyle?: SVGStyleOrClass;
|
|
1056
|
+
}
|
|
1057
|
+
interface LineSeriesAreaOptions extends ChartItemOptions {
|
|
1058
|
+
visible?: false;
|
|
1059
|
+
}
|
|
1060
|
+
declare const LineSeriesType = "line";
|
|
1061
|
+
interface LineSeriesOptions extends OrthogonalSparkSeriesOptions {
|
|
1062
|
+
type?: typeof LineSeriesType;
|
|
1063
|
+
back?: ChartItemOptions;
|
|
1064
|
+
area?: LineSeriesAreaOptions;
|
|
1065
|
+
curved?: boolean;
|
|
1066
|
+
}
|
|
1067
|
+
declare const PieSeriesType = "pie";
|
|
1068
|
+
interface PieSeriesOptions extends SparkSeriesOptions {
|
|
1069
|
+
type?: typeof PieSeriesType;
|
|
1070
|
+
centerX?: number;
|
|
1071
|
+
centerY?: number;
|
|
1072
|
+
radius?: PercentSize;
|
|
1073
|
+
startAngle?: number;
|
|
1074
|
+
totalAngle?: number;
|
|
1075
|
+
clockwise?: boolean;
|
|
1076
|
+
legendByField?: boolean;
|
|
1077
|
+
colorByValue?: boolean;
|
|
1078
|
+
}
|
|
1079
|
+
declare const _WaffleDirection: {
|
|
1080
|
+
readonly ROW: "row";
|
|
1081
|
+
readonly COL: "col";
|
|
1082
|
+
};
|
|
1083
|
+
type WaffleDirection = typeof _WaffleDirection[keyof typeof _WaffleDirection];
|
|
1084
|
+
declare const WaffleSeriesType = "waffle";
|
|
1085
|
+
interface WaffleSeriesOptions extends SparkSeriesOptions {
|
|
1086
|
+
type?: typeof WaffleSeriesType;
|
|
1087
|
+
rowCount?: number;
|
|
1088
|
+
colCount?: number;
|
|
1089
|
+
roundingMethod?: 'round' | 'trunc';
|
|
1090
|
+
minCount?: number;
|
|
1091
|
+
shape?: 'sqaure' | 'circle' | 'star' | 'diamond' | 'hexagon';
|
|
1092
|
+
cellSize?: 5;
|
|
1093
|
+
gap?: 2;
|
|
1094
|
+
fillDirection?: WaffleDirection;
|
|
1095
|
+
fillThreshold?: number;
|
|
1096
|
+
valueDomain?: DataPointValueDomain;
|
|
1097
|
+
minValue?: number;
|
|
1098
|
+
maxValue?: number;
|
|
1099
|
+
showNull?: boolean;
|
|
1100
|
+
}
|
|
1101
|
+
declare const _BubbleSizeMode: {
|
|
1102
|
+
readonly WIDTH: "width";
|
|
1103
|
+
readonly AREA: "area";
|
|
1104
|
+
};
|
|
1105
|
+
type BubbleSizeMode = typeof _BubbleSizeMode[keyof typeof _BubbleSizeMode];
|
|
1106
|
+
declare const BubbleSeriesType = "bubble";
|
|
1107
|
+
interface BubbleSeriesOptions extends MarkerSeriesOptions {
|
|
1108
|
+
type?: typeof BubbleSeriesType;
|
|
1109
|
+
subLabel?: DataPointLabelOptions | boolean;
|
|
1110
|
+
minValue?: number;
|
|
1111
|
+
maxValue?: number;
|
|
1112
|
+
sizeMode?: BubbleSizeMode;
|
|
1113
|
+
minSize?: PercentSize;
|
|
1114
|
+
maxSize?: PercentSize;
|
|
1115
|
+
position?: PointViewPosition;
|
|
1116
|
+
tooltipText?: string;
|
|
1117
|
+
alignToSurface?: boolean;
|
|
1118
|
+
}
|
|
1119
|
+
declare const _RouteLineType: {
|
|
1120
|
+
readonly AIR: "air";
|
|
1121
|
+
readonly STRAIGHT: "straight";
|
|
1122
|
+
readonly CURVED: "curved";
|
|
1123
|
+
};
|
|
1124
|
+
type RouteLineType = typeof _RouteLineType[keyof typeof _RouteLineType];
|
|
1125
|
+
declare const _RouteArrowDisplay: {
|
|
1126
|
+
readonly ALWAYS: "always";
|
|
1127
|
+
readonly MOVING: "moving";
|
|
1128
|
+
readonly NONE: "none";
|
|
1129
|
+
};
|
|
1130
|
+
type RouteArrowDisplay = typeof _RouteArrowDisplay[keyof typeof _RouteArrowDisplay];
|
|
1131
|
+
declare const RouteSeriesType = "route";
|
|
1132
|
+
interface RouteSeriesOptions extends SeriesOptions {
|
|
1133
|
+
type?: typeof RouteSeriesType;
|
|
1134
|
+
lineType?: RouteLineType;
|
|
1135
|
+
lineWidth?: number;
|
|
1136
|
+
arrowDisplay?: RouteArrowDisplay;
|
|
1137
|
+
}
|
|
1138
|
+
interface MapSeriesLabelOptions extends DataPointLabelOptions {
|
|
1139
|
+
visible?: boolean;
|
|
1140
|
+
hoverColor?: string;
|
|
1141
|
+
}
|
|
1142
|
+
interface DrilldownOptions extends ChartItemOptions {
|
|
1143
|
+
enabled?: boolean;
|
|
1144
|
+
autoMapChange?: boolean;
|
|
1145
|
+
}
|
|
1146
|
+
declare const MapSeriesType = "map";
|
|
1147
|
+
interface MapSeriesOptions extends ValueSeriesOptions {
|
|
1148
|
+
type?: typeof MapSeriesType;
|
|
1149
|
+
useMapData?: boolean;
|
|
1150
|
+
mapKeys?: string | [string, string];
|
|
1151
|
+
middleKeys?: [string, string];
|
|
1152
|
+
nullStyle?: SVGStyleOrClass;
|
|
1153
|
+
dummyStyle?: SVGStyleOrClass;
|
|
1154
|
+
nullHovering?: boolean;
|
|
1155
|
+
hoverColor?: string;
|
|
1156
|
+
hoverStyle?: SVGStyleOrClass;
|
|
1157
|
+
selectable?: boolean;
|
|
1158
|
+
selectedStyle?: SVGStyleOrClass;
|
|
1159
|
+
allAreas?: boolean;
|
|
1160
|
+
colorRange?: ColorRange;
|
|
1161
|
+
colorScale?: string | number;
|
|
1162
|
+
drilldown?: DrilldownOptions;
|
|
1163
|
+
detail?: MapSeriesOptions;
|
|
1164
|
+
detailKey?: string;
|
|
1165
|
+
detailZoom?: number;
|
|
1166
|
+
bringToFront?: boolean;
|
|
1167
|
+
}
|
|
1168
|
+
declare const FeatureSeriesType = "feature";
|
|
1169
|
+
interface FeatureSeriesOptions extends ValueSeriesOptions {
|
|
1170
|
+
type?: typeof FeatureSeriesType;
|
|
1171
|
+
hoverColor?: string;
|
|
1172
|
+
hoverStyle?: SVGStyleOrClass;
|
|
1173
|
+
selectable?: boolean;
|
|
1174
|
+
colorRange?: ColorRange;
|
|
1175
|
+
colorScale?: string | number;
|
|
1176
|
+
detail?: FeatureSeriesOptions;
|
|
1177
|
+
detailKey?: string;
|
|
1178
|
+
detailZoom?: number;
|
|
1179
|
+
bringToFront?: boolean;
|
|
1180
|
+
}
|
|
1181
|
+
declare const PointSeriesType = "point";
|
|
1182
|
+
interface PointSeriesOptions extends MarkerSeriesOptions {
|
|
1183
|
+
type?: typeof PointSeriesType;
|
|
1184
|
+
shape?: Shape;
|
|
1185
|
+
radius?: number;
|
|
1186
|
+
position?: PointViewPosition;
|
|
1187
|
+
}
|
|
1188
|
+
interface ImageSeriesLabelOptions extends DataPointLabelOptions {
|
|
1189
|
+
visible?: boolean;
|
|
1190
|
+
}
|
|
1191
|
+
declare const ImageSeriesType = "image";
|
|
1192
|
+
interface ImageSeriesOptions extends SeriesOptions {
|
|
1193
|
+
type?: typeof ImageSeriesType;
|
|
1194
|
+
pointLabel?: ImageSeriesLabelOptions;
|
|
1195
|
+
imageField?: string;
|
|
1196
|
+
rootUrl?: string;
|
|
1197
|
+
imageWidth?: number;
|
|
1198
|
+
imageHeight?: number;
|
|
1199
|
+
rotation?: number;
|
|
1200
|
+
position?: PointViewPosition;
|
|
1201
|
+
}
|
|
1202
|
+
declare const PinSeriesType = "pin";
|
|
1203
|
+
interface PinSeriesOptions extends MarkerSeriesOptions {
|
|
1204
|
+
type?: typeof PinSeriesType;
|
|
1205
|
+
radius?: number;
|
|
1206
|
+
innerRadius?: number;
|
|
1207
|
+
innerStyle?: SVGStyleOrClass;
|
|
1208
|
+
innerLabel?: ChartTextOptions | string;
|
|
1209
|
+
position?: PointViewPosition;
|
|
1210
|
+
}
|
|
1211
|
+
declare const FigureSeriesType = "figure";
|
|
1212
|
+
interface FigureSeriesOptions extends ValueSeriesOptions {
|
|
1213
|
+
type?: typeof FigureSeriesType;
|
|
1214
|
+
figure?: string;
|
|
1215
|
+
rotation?: number;
|
|
1216
|
+
innerLabel?: IconedTextOptions | string;
|
|
1217
|
+
position?: PointViewPosition;
|
|
1218
|
+
}
|
|
1219
|
+
declare const _VectorHeadType: {
|
|
1220
|
+
readonly NONE: "none";
|
|
1221
|
+
readonly CLOSED_ARROW: "closedArrow";
|
|
1222
|
+
readonly OPEN_ARROW: "openArrow";
|
|
1223
|
+
};
|
|
1224
|
+
type VectorHeadType = typeof _VectorHeadType[keyof typeof _VectorHeadType];
|
|
1225
|
+
declare const VectorSeriesType = "vector";
|
|
1226
|
+
interface VectorSeriesOptions extends MarkerSeriesOptions {
|
|
1227
|
+
type?: typeof VectorSeriesType;
|
|
1228
|
+
headType?: VectorHeadType;
|
|
1229
|
+
lengthField?: string;
|
|
1230
|
+
angleField?: string;
|
|
1231
|
+
startAngle?: number;
|
|
1232
|
+
}
|
|
1233
|
+
interface HitmapGridModeOptions {
|
|
1234
|
+
cellWidth?: number;
|
|
1235
|
+
cellHeight?: number;
|
|
1236
|
+
elliptic?: boolean;
|
|
1237
|
+
}
|
|
1238
|
+
interface HitmapPointModeOptions {
|
|
1239
|
+
}
|
|
1240
|
+
interface HitmapKdeModeOptions {
|
|
1241
|
+
}
|
|
1242
|
+
declare const _HitmapMode: {
|
|
1243
|
+
readonly GRID: "grid";
|
|
1244
|
+
readonly POINT: "point";
|
|
1245
|
+
readonly KDE: "kde";
|
|
1246
|
+
};
|
|
1247
|
+
type HitmapMode = typeof _HitmapMode[keyof typeof _HitmapMode];
|
|
1248
|
+
declare const HeatmapSeriesType = "heatmap";
|
|
1249
|
+
interface HeatmapSeriesOptions extends MarkerSeriesOptions {
|
|
1250
|
+
type?: typeof HeatmapSeriesType;
|
|
1251
|
+
mode?: HitmapMode;
|
|
1252
|
+
grid?: HitmapGridModeOptions;
|
|
1253
|
+
point?: HitmapPointModeOptions;
|
|
1254
|
+
kde?: HitmapKdeModeOptions;
|
|
1255
|
+
}
|
|
1256
|
+
interface PanelSeriesSectionOptions extends ChartItemOptions {
|
|
1257
|
+
text?: string;
|
|
1258
|
+
backgroundStyle?: SVGStyleOrClass | PointStyleCallback;
|
|
1259
|
+
}
|
|
1260
|
+
interface PanelSeriesHeaderOptions extends PanelSeriesSectionOptions {
|
|
1261
|
+
minSize?: PercentSize;
|
|
1262
|
+
}
|
|
1263
|
+
interface PanelSeriesBodyOptions extends PanelSeriesSectionOptions {
|
|
1264
|
+
}
|
|
1265
|
+
interface PanelSeriesLabelOptions extends DataPointLabelOptions {
|
|
1266
|
+
visible?: boolean;
|
|
1267
|
+
}
|
|
1268
|
+
declare const PanelSeriesType = "panel";
|
|
1269
|
+
interface PanelSeriesOptions extends ValueSeriesOptions {
|
|
1270
|
+
type?: typeof PanelSeriesType;
|
|
1271
|
+
orientation?: 'vertical' | 'horizontal';
|
|
1272
|
+
pointLabel?: PanelSeriesLabelOptions;
|
|
1273
|
+
header?: PanelSeriesHeaderOptions;
|
|
1274
|
+
body?: PanelSeriesBodyOptions;
|
|
1275
|
+
divider?: ChartItemOptions;
|
|
1276
|
+
minWidth?: number;
|
|
1277
|
+
minHeight?: number;
|
|
1278
|
+
position?: PointViewPosition;
|
|
1279
|
+
}
|
|
1280
|
+
declare const TiledWebSeriesType = "tiledweb";
|
|
1281
|
+
interface TiledWebSeriesOptions extends SeriesOptions {
|
|
1282
|
+
type?: typeof TiledWebSeriesType;
|
|
1283
|
+
}
|
|
1284
|
+
interface CircleGaugeFaceOptions extends ChartItemOptions {
|
|
1285
|
+
visible?: boolean;
|
|
1286
|
+
}
|
|
1287
|
+
interface CircleGaugeRimOptions extends ChartItemOptions {
|
|
1288
|
+
}
|
|
1289
|
+
interface CircleGaugeValueRimOptions extends ChartOptionsOptions {
|
|
1290
|
+
thickness?: PercentSize;
|
|
1291
|
+
stroked?: boolean;
|
|
1292
|
+
}
|
|
1293
|
+
interface CircleGaugeHandOptions extends ChartItemOptions {
|
|
1294
|
+
visible?: boolean;
|
|
1295
|
+
radius?: PercentSize;
|
|
1296
|
+
length?: PercentSize;
|
|
1297
|
+
offset?: PercentSize;
|
|
1298
|
+
}
|
|
1299
|
+
interface CircleGaugePinOptions extends ChartItemOptions {
|
|
1300
|
+
visible?: boolean;
|
|
1301
|
+
radius?: PercentSize;
|
|
1302
|
+
}
|
|
1303
|
+
interface CircleGaugeLabelOptions extends ChartTextOptions {
|
|
1304
|
+
offsetX?: PercentSize;
|
|
1305
|
+
offsetY?: PercentSize;
|
|
1306
|
+
}
|
|
1307
|
+
declare const CircleGaugeType = "gauge";
|
|
1308
|
+
interface CircleGaugeOptions extends ValueGaugeOptions {
|
|
1309
|
+
type?: typeof CircleGaugeType;
|
|
1310
|
+
face?: CircleGaugeFaceOptions | boolean;
|
|
1311
|
+
rim?: CircleGaugeRimOptions;
|
|
1312
|
+
valueRim?: CircleGaugeValueRimOptions | boolean;
|
|
1313
|
+
hand?: CircleGaugeHandOptions;
|
|
1314
|
+
pin?: CircleGaugePinOptions;
|
|
1315
|
+
gaugeLabel?: CircleGaugeLabelOptions;
|
|
1316
|
+
centerX?: PercentSize;
|
|
1317
|
+
centerY?: PercentSize;
|
|
1318
|
+
radius?: PercentSize;
|
|
1319
|
+
innerRadius?: PercentSize;
|
|
1320
|
+
valueRadius?: PercentSize;
|
|
1321
|
+
startAngle?: number;
|
|
1322
|
+
sweepAngle?: number;
|
|
1323
|
+
clockwise?: boolean;
|
|
1324
|
+
}
|
|
1325
|
+
interface ClockGaugeRimOptions extends ChartItemOptions {
|
|
1326
|
+
thickness?: PercentSize;
|
|
1327
|
+
}
|
|
1328
|
+
interface ClockGaugeHandOptions extends ChartItemOptions {
|
|
1329
|
+
thickness?: number;
|
|
1330
|
+
length?: PercentSize;
|
|
1331
|
+
pmStyle?: SVGStyleOrClass;
|
|
1332
|
+
}
|
|
1333
|
+
interface ClockGaugeSecondHandOptions extends ClockGaugeHandOptions {
|
|
1334
|
+
animatable?: boolean;
|
|
1335
|
+
duration?: number;
|
|
1336
|
+
}
|
|
1337
|
+
interface ClockGaugeTickOptions extends ChartItemOptions {
|
|
1338
|
+
length?: number;
|
|
1339
|
+
}
|
|
1340
|
+
interface ClockGaugeTickLabelOptions extends ChartItemOptions {
|
|
1341
|
+
step?: number;
|
|
1342
|
+
offset?: number;
|
|
1343
|
+
}
|
|
1344
|
+
interface ClockGaugePinOptions extends ChartItemOptions {
|
|
1345
|
+
radius?: number;
|
|
1346
|
+
}
|
|
1347
|
+
declare const _ClockGaugeLabelPosition: {
|
|
1348
|
+
readonly TOP: "top";
|
|
1349
|
+
readonly BOTTOM: "bottom";
|
|
1350
|
+
};
|
|
1351
|
+
type ClockGaugeLabelPosition = typeof _ClockGaugeLabelPosition[keyof typeof _ClockGaugeLabelPosition];
|
|
1352
|
+
interface ClockGaugeLabelOptions extends ChartTextOptions {
|
|
1353
|
+
position?: ClockGaugeLabelPosition;
|
|
1354
|
+
}
|
|
1355
|
+
declare const ClockGaugeType = "clock";
|
|
1356
|
+
interface ClockGaugeOptions extends GaugeOptions {
|
|
1357
|
+
type?: typeof ClockGaugeType;
|
|
1358
|
+
size?: number;
|
|
1359
|
+
centerX?: PercentSize;
|
|
1360
|
+
centerY?: PercentSize;
|
|
1361
|
+
radius?: PercentSize;
|
|
1362
|
+
face?: ChartItemOptions | boolean;
|
|
1363
|
+
rim?: ClockGaugeRimOptions | boolean;
|
|
1364
|
+
hourHand?: ClockGaugeHandOptions | boolean;
|
|
1365
|
+
minuteHand?: ClockGaugeHandOptions | boolean;
|
|
1366
|
+
secondHand?: ClockGaugeSecondHandOptions | boolean;
|
|
1367
|
+
tick?: ClockGaugeTickOptions | boolean;
|
|
1368
|
+
tickLabel?: ClockGaugeTickLabelOptions | boolean;
|
|
1369
|
+
pin?: ClockGaugePinOptions | boolean;
|
|
1370
|
+
gaugeLabel?: ClockGaugeLabelOptions | boolean;
|
|
1371
|
+
timezoneCallback?: (lon: number, lat: number) => number;
|
|
1372
|
+
nightHours?: [number, number];
|
|
1373
|
+
active?: boolean;
|
|
1374
|
+
}
|
|
1375
|
+
type SeriesOptionsType = MapSeriesOptions | FeatureSeriesOptions | PointSeriesOptions | PinSeriesOptions | FigureSeriesOptions | VectorSeriesOptions | RouteSeriesOptions | ImageSeriesOptions | BarSeriesOptions | PieSeriesOptions | WaffleSeriesOptions | LineSeriesOptions | BubbleSeriesOptions | HeatmapSeriesOptions | PanelSeriesOptions | TiledWebSeriesOptions | CircleGaugeOptions | ClockGaugeOptions;
|
|
1376
|
+
|
|
1377
|
+
declare class MapScaleLabel extends IconedText<MapScaleLabelOptions> {
|
|
1378
|
+
static defaults: MapScaleLabelOptions;
|
|
1379
|
+
getText(value: any): string;
|
|
1380
|
+
getDefaultIconPos(): IconPosition;
|
|
1381
|
+
}
|
|
1382
|
+
declare class MapScale extends ScaleBase<MapScaleOptions> {
|
|
1383
|
+
static defaults: MapScaleOptions;
|
|
1384
|
+
private _label;
|
|
1385
|
+
private _scale;
|
|
1386
|
+
protected _doInit(op: MapScaleOptions): void;
|
|
1387
|
+
get label(): MapScaleLabel;
|
|
1388
|
+
protected _getFirstSeries(chart: IChart): Series<SeriesOptions>;
|
|
1389
|
+
protected _doApply(options: MapScaleOptions): void;
|
|
1390
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1391
|
+
private $_calcScale;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
interface MapSourceOptions extends MapSource {
|
|
1395
|
+
}
|
|
1396
|
+
interface ChartConfiguration {
|
|
1397
|
+
templates?: ConfigObject;
|
|
1398
|
+
type?: 'map' | 'feature' | 'point' | 'pin' | 'vector' | 'bar' | 'pie' | 'figure' | 'bubble' | 'route' | 'image' | 'line' | 'heatmap' | 'panel' | 'waffle' | 'gauge' | 'clock';
|
|
1399
|
+
startOfWeek?: number;
|
|
1400
|
+
chart?: ChartOptionsOptions;
|
|
1401
|
+
asset?: AssetOptionsType | AssetOptionsType[];
|
|
1402
|
+
assets?: AssetOptionsType | AssetOptionsType[];
|
|
1403
|
+
title?: TitleOptions | string;
|
|
1404
|
+
subtitle?: SubtitleOptions | string;
|
|
1405
|
+
map?: MapSourceOptions | MapSourceOptions[];
|
|
1406
|
+
axis?: MapAxisOptions;
|
|
1407
|
+
body?: BodyOptions;
|
|
1408
|
+
legend?: LegendOptions | boolean;
|
|
1409
|
+
colorScale?: ColorScaleOptions | ColorScaleOptions[];
|
|
1410
|
+
colorScales?: ColorScaleOptions | ColorScaleOptions[];
|
|
1411
|
+
bubbleScale?: BubbleScaleOptions | BubbleScaleOptions[];
|
|
1412
|
+
bubbleScales?: BubbleScaleOptions | BubbleScaleOptions[];
|
|
1413
|
+
mapScale?: MapScale;
|
|
1414
|
+
zoomPanel?: ZoomPanelOptions | boolean;
|
|
1415
|
+
drilldownPanel?: DrilldownPanelOptions | boolean;
|
|
1416
|
+
tooltip?: TooltipOptions | boolean;
|
|
1417
|
+
credits?: CreditsOptions | boolean;
|
|
1418
|
+
series?: SeriesOptionsType | SeriesOptionsType[];
|
|
1419
|
+
annotation?: AnnotationOptionsType | AnnotationOptionsType[];
|
|
1420
|
+
annotations?: AnnotationOptionsType | AnnotationOptionsType[];
|
|
1421
|
+
exporting?: ExporterOptions;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
declare const _SeriesLoadAnimation: {
|
|
1425
|
+
readonly DEFAULT: "default";
|
|
1426
|
+
readonly REVEAL: "reveal";
|
|
1427
|
+
readonly GROW: "grow";
|
|
1428
|
+
readonly SLIDEIN: "slidein";
|
|
1429
|
+
readonly SPREAD: "spread";
|
|
1430
|
+
readonly FADEIN: "fadein";
|
|
1431
|
+
};
|
|
1432
|
+
type SeriesLoadAnimation = typeof _SeriesLoadAnimation[keyof typeof _SeriesLoadAnimation];
|
|
1433
|
+
|
|
1434
|
+
declare abstract class AssetItem<T extends AssetItemOptions> {
|
|
1435
|
+
source: T;
|
|
1436
|
+
constructor(source: T);
|
|
1437
|
+
hasDef(): boolean;
|
|
1438
|
+
abstract getElement(doc: Document, source: T): Element;
|
|
1439
|
+
}
|
|
1440
|
+
interface IAssetOwner {
|
|
1441
|
+
addDef(element: Element): void;
|
|
1442
|
+
removeDef(element: string): void;
|
|
1443
|
+
}
|
|
1444
|
+
declare class AssetCollection {
|
|
1445
|
+
private _items;
|
|
1446
|
+
private _selectedFill;
|
|
1447
|
+
private _map;
|
|
1448
|
+
load(source: any): AssetOptionsType | AssetOptionsType[];
|
|
1449
|
+
register(doc: Document, owner: IAssetOwner): void;
|
|
1450
|
+
unregister(owner: IAssetOwner): void;
|
|
1451
|
+
get(id: string): AssetItem<AssetItemOptions>;
|
|
1452
|
+
updateOptions(source: any, render: boolean): void;
|
|
1453
|
+
private $_loadItem;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
interface IBubbleScaleStep {
|
|
1457
|
+
value: number;
|
|
1458
|
+
label: string;
|
|
1459
|
+
rd: number;
|
|
1460
|
+
}
|
|
1461
|
+
declare class BubbleScaleTickLine extends ChartItem<BubbleScaleTickLineOptions> {
|
|
1462
|
+
static defaults: BubbleScaleTickLineOptions;
|
|
1463
|
+
}
|
|
1464
|
+
declare class BubbleScaleTickLabel extends IconedText<BubbleScaleTickLabelOptions> {
|
|
1465
|
+
static defaults: BubbleScaleTickLabelOptions;
|
|
1466
|
+
getText(value: any): string;
|
|
1467
|
+
getDefaultIconPos(): IconPosition;
|
|
1468
|
+
}
|
|
1469
|
+
declare class BubbleScaleTick extends ChartItem<BubbleScaleTickOptions> {
|
|
1470
|
+
static defaults: BubbleScaleTickOptions;
|
|
1471
|
+
private _line;
|
|
1472
|
+
private _label;
|
|
1473
|
+
protected _doInit(op: BubbleScaleTickOptions): void;
|
|
1474
|
+
get line(): BubbleScaleTickLine;
|
|
1475
|
+
get label(): BubbleScaleTickLabel;
|
|
1476
|
+
}
|
|
1477
|
+
declare class BubbleScale extends ScaleBase<BubbleScaleOptions> {
|
|
1478
|
+
static defaults: BubbleScaleOptions;
|
|
1479
|
+
private _tick;
|
|
1480
|
+
private _steps;
|
|
1481
|
+
protected _doInit(op: BubbleScaleOptions): void;
|
|
1482
|
+
get tick(): BubbleScaleTick;
|
|
1483
|
+
getSteps(wBody: number, hBody: number): IBubbleScaleStep[];
|
|
1484
|
+
protected _getFirstSeries(chart: IChart): Series<SeriesOptions>;
|
|
1485
|
+
protected _doApply(options: BubbleScaleOptions): void;
|
|
1486
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1487
|
+
private $_buildSteps;
|
|
1488
|
+
}
|
|
1489
|
+
declare class BubbleScaleCollection extends ScaleCollection<BubbleScale> {
|
|
1490
|
+
protected _createScale(chart: IChart): BubbleScale;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
interface ILegendSource {
|
|
1494
|
+
visible: boolean;
|
|
1495
|
+
canHide(): boolean;
|
|
1496
|
+
legendMarker(doc: Document, size: number): RmElement;
|
|
1497
|
+
legendColor(): string;
|
|
1498
|
+
legendLabel(): string;
|
|
1499
|
+
}
|
|
1500
|
+
declare class LegendItem extends ChartItem<ChartItemOptions> {
|
|
1501
|
+
legend: Legend;
|
|
1502
|
+
source: ILegendSource;
|
|
1503
|
+
static readonly MARKER_SIZE = 10;
|
|
1504
|
+
constructor(legend: Legend, source: ILegendSource);
|
|
1505
|
+
text(): string;
|
|
1506
|
+
}
|
|
1507
|
+
declare class Legend extends ChartItem<LegendOptions> {
|
|
1508
|
+
static defaults: LegendOptions;
|
|
1509
|
+
private _maxWidth;
|
|
1510
|
+
private _maxHeight;
|
|
1511
|
+
private _items;
|
|
1512
|
+
private _maxWidthDim;
|
|
1513
|
+
private _maxHeightDim;
|
|
1514
|
+
private _location;
|
|
1515
|
+
items(): LegendItem[];
|
|
1516
|
+
isEmpty(): boolean;
|
|
1517
|
+
isVisible(): boolean;
|
|
1518
|
+
getLocation(): LegendLocation;
|
|
1519
|
+
isInner(): boolean;
|
|
1520
|
+
getLayout(): LegendLayout;
|
|
1521
|
+
getMaxWidth(domain: number): number;
|
|
1522
|
+
getMaxHeight(domain: number): number;
|
|
1523
|
+
protected _doApply(options: LegendOptions): void;
|
|
1524
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
interface IColorRanger {
|
|
1528
|
+
getColor(min: number, max: number, value: number, color: Color): string;
|
|
1529
|
+
}
|
|
1530
|
+
declare class ColorScaleMarker extends ChartItem<ColorScaleMarkerOptions> {
|
|
1531
|
+
static defaults: ColorScaleMarkerOptions;
|
|
1532
|
+
private _label;
|
|
1533
|
+
protected _doInit(op: ColorScaleMarkerOptions): void;
|
|
1534
|
+
get label(): ChartText<ChartTextOptions>;
|
|
1535
|
+
getMarkerSize(): number;
|
|
1536
|
+
}
|
|
1537
|
+
declare class ColorScaleTickLine extends ChartItem<ColorScaleTickLineOptions> {
|
|
1538
|
+
static defaults: ColorScaleTickLineOptions;
|
|
1539
|
+
}
|
|
1540
|
+
declare class ColorScaleTickLabel extends IconedText<ColorScaleTickLabelOptions> {
|
|
1541
|
+
static defaults: ColorScaleTickLabelOptions;
|
|
1542
|
+
getDefaultIconPos(): IconPosition;
|
|
1543
|
+
}
|
|
1544
|
+
declare class ColorScaleTick extends ChartItem<ColorScaleTickOptions> {
|
|
1545
|
+
static defaults: ColorScaleTickOptions;
|
|
1546
|
+
private _line;
|
|
1547
|
+
private _label;
|
|
1548
|
+
protected _doInit(op: ColorScaleTickOptions): void;
|
|
1549
|
+
get line(): ColorScaleTickLine;
|
|
1550
|
+
get label(): ColorScaleTickLabel;
|
|
1551
|
+
}
|
|
1552
|
+
interface IColorScaleTick {
|
|
1553
|
+
pos: number;
|
|
1554
|
+
label?: string;
|
|
1555
|
+
}
|
|
1556
|
+
declare class ColorScaleStepLine extends ChartItem {
|
|
1557
|
+
}
|
|
1558
|
+
declare class ColorScale extends ScaleBase<ColorScaleOptions> implements IColorRanger {
|
|
1559
|
+
static defaults: ColorScaleOptions;
|
|
1560
|
+
private _barLength;
|
|
1561
|
+
private _marker;
|
|
1562
|
+
private _stepLine;
|
|
1563
|
+
private _tick;
|
|
1564
|
+
private _min;
|
|
1565
|
+
private _max;
|
|
1566
|
+
private _minColor;
|
|
1567
|
+
private _maxColor;
|
|
1568
|
+
private _colors;
|
|
1569
|
+
private _barLengthDim;
|
|
1570
|
+
private _logger;
|
|
1571
|
+
private _steps;
|
|
1572
|
+
private _valueSteps;
|
|
1573
|
+
protected _doInit(op: ColorScaleOptions): void;
|
|
1574
|
+
getColor(min: number, max: number, value: number, color: Color): string;
|
|
1575
|
+
get marker(): ColorScaleMarker;
|
|
1576
|
+
get stepLine(): ColorScaleStepLine;
|
|
1577
|
+
get tick(): ColorScaleTick;
|
|
1578
|
+
get minColor(): Color;
|
|
1579
|
+
get maxColor(): Color;
|
|
1580
|
+
getRanger(): IColorRanger;
|
|
1581
|
+
getLayout(): ColorScaleLayout;
|
|
1582
|
+
getBarSize(wDomain: number, hDomain: number, vertical: boolean): ISize;
|
|
1583
|
+
getSplitPoints(len: number): number[];
|
|
1584
|
+
getPosition(value: number): number;
|
|
1585
|
+
getTicks(): IColorScaleTick[];
|
|
1586
|
+
getSteps(): ColorScaleStep[];
|
|
1587
|
+
getValueSteps(): number[];
|
|
1588
|
+
getLegendSources(target: ILegendSource[]): void;
|
|
1589
|
+
protected _doApply(options: ColorScaleOptions): void;
|
|
1590
|
+
private $_parseColorStops;
|
|
1591
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1592
|
+
private $_parseValue;
|
|
1593
|
+
private $_normalizeMin;
|
|
1594
|
+
private $_parseColor;
|
|
1595
|
+
private $_buildSteps;
|
|
1596
|
+
}
|
|
1597
|
+
declare class ColorScaleCollection extends ScaleCollection<ColorScale> {
|
|
1598
|
+
getVisibles(loc: ScaleLocation): ColorScale[];
|
|
1599
|
+
getLegendSources(): ILegendSource[];
|
|
1600
|
+
protected _createScale(chart: IChart): ColorScale;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
declare class Exporter extends ChartItem<ExporterOptions> {
|
|
1604
|
+
static defaults: ExporterOptions;
|
|
1605
|
+
private _module;
|
|
1606
|
+
private _isCompose;
|
|
1607
|
+
isCompose(): boolean;
|
|
1608
|
+
compose(exporter: ChartExporter): void;
|
|
1609
|
+
isContextMenuVisible(): boolean;
|
|
1610
|
+
toggleContextMenu(): void;
|
|
1611
|
+
exportToImage(dom: HTMLElement, options: ExportOptions, exporting: ExporterOptions): void;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
interface MapProjection {
|
|
1615
|
+
second?: MapProjection;
|
|
1616
|
+
scroll: number;
|
|
1617
|
+
bounds?: {
|
|
1618
|
+
x1: number;
|
|
1619
|
+
y1: number;
|
|
1620
|
+
x2: number;
|
|
1621
|
+
y2: number;
|
|
1622
|
+
};
|
|
1623
|
+
isGlobe?: boolean;
|
|
1624
|
+
isElliptic?: boolean;
|
|
1625
|
+
project(coord: MapCoord): MapCoord;
|
|
1626
|
+
backward(coord: MapCoord): MapCoord;
|
|
1627
|
+
clip(pts: MapCoord[]): MapCoord[];
|
|
1628
|
+
isVisible(coord: MapCoord): boolean;
|
|
1629
|
+
getVisible(coord: MapCoord): MapCoord;
|
|
1630
|
+
getClipBounds(): MapCoord[];
|
|
1631
|
+
isClipping(): boolean;
|
|
1632
|
+
}
|
|
1633
|
+
declare class MapArea extends RmObject implements ISelectionSource {
|
|
1634
|
+
source?: AreaItem;
|
|
1635
|
+
inset?: MapInset;
|
|
1636
|
+
_insetChilds: number[];
|
|
1637
|
+
private _info;
|
|
1638
|
+
private _path;
|
|
1639
|
+
h1: number;
|
|
1640
|
+
h2: number;
|
|
1641
|
+
v1: number;
|
|
1642
|
+
v2: number;
|
|
1643
|
+
x1: number;
|
|
1644
|
+
y1: number;
|
|
1645
|
+
x2: number;
|
|
1646
|
+
y2: number;
|
|
1647
|
+
center: MapCoord;
|
|
1648
|
+
visible: boolean;
|
|
1649
|
+
dummy: boolean;
|
|
1650
|
+
private _selected;
|
|
1651
|
+
constructor(source?: AreaItem, inset?: MapInset);
|
|
1652
|
+
setSelected(selected: boolean): void;
|
|
1653
|
+
id: string;
|
|
1654
|
+
name: string;
|
|
1655
|
+
get path(): string;
|
|
1656
|
+
get selected(): boolean;
|
|
1657
|
+
displayText(): string;
|
|
1658
|
+
getInfo(): any;
|
|
1659
|
+
reset(): void;
|
|
1660
|
+
private $_readBound;
|
|
1661
|
+
private $_readInset;
|
|
1662
|
+
private $_toPath;
|
|
1663
|
+
readBounds(polys: number[]): {
|
|
1664
|
+
h1: number;
|
|
1665
|
+
v1: number;
|
|
1666
|
+
h2: number;
|
|
1667
|
+
v2: number;
|
|
1668
|
+
};
|
|
1669
|
+
readPath(prj: MapProjection): string;
|
|
1670
|
+
getCenter(): MapCoord;
|
|
1671
|
+
_clone(): MapArea;
|
|
1672
|
+
}
|
|
1673
|
+
interface IMapOwner {
|
|
1674
|
+
getProjection(second: boolean): MapProjection;
|
|
1675
|
+
projectionChanged(): void;
|
|
1676
|
+
mapChanged(map: MapModel): void;
|
|
1677
|
+
}
|
|
1678
|
+
declare class MapModel extends RmObject {
|
|
1679
|
+
owner: IChart & IMapOwner;
|
|
1680
|
+
source: MapSourceImpl | MapModel;
|
|
1681
|
+
private _second;
|
|
1682
|
+
private _areas;
|
|
1683
|
+
private _areaMap;
|
|
1684
|
+
_insets: MapInset[];
|
|
1685
|
+
private _mapAreaFinder;
|
|
1686
|
+
x1: number;
|
|
1687
|
+
y1: number;
|
|
1688
|
+
x2: number;
|
|
1689
|
+
y2: number;
|
|
1690
|
+
cx: number;
|
|
1691
|
+
cy: number;
|
|
1692
|
+
h1: number;
|
|
1693
|
+
v1: number;
|
|
1694
|
+
h2: number;
|
|
1695
|
+
v2: number;
|
|
1696
|
+
sibling: MapModel;
|
|
1697
|
+
private _enabled;
|
|
1698
|
+
private _hiddenAreas;
|
|
1699
|
+
private _index;
|
|
1700
|
+
private _name;
|
|
1701
|
+
private _hiddens;
|
|
1702
|
+
constructor(owner: IChart & IMapOwner, source: MapSourceImpl | MapModel, index: number);
|
|
1703
|
+
get index(): number;
|
|
1704
|
+
get name(): string;
|
|
1705
|
+
get areaCount(): number;
|
|
1706
|
+
get hiddenAreas(): string[];
|
|
1707
|
+
set hiddenAreas(value: string[]);
|
|
1708
|
+
get(index: number): MapArea;
|
|
1709
|
+
areaOf(id: any): MapArea;
|
|
1710
|
+
getAreaMap(prop: string): {
|
|
1711
|
+
[key: string]: MapArea;
|
|
1712
|
+
};
|
|
1713
|
+
findByCoord(coord: MapCoord): MapArea | null;
|
|
1714
|
+
reset(): void;
|
|
1715
|
+
isVisible(area: string): boolean;
|
|
1716
|
+
private $_resetAreas;
|
|
1717
|
+
private $_load;
|
|
1718
|
+
private $_copy;
|
|
1719
|
+
_prepareSecond(): this;
|
|
1720
|
+
_internalAreas(): MapArea[];
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
declare class MapAxisGridLine extends ChartItem<MapAxisGridLineOptions> {
|
|
1724
|
+
static defaults: MapAxisGridLineOptions;
|
|
1725
|
+
protected _doSetSimple(src: any): boolean;
|
|
1726
|
+
}
|
|
1727
|
+
declare class MapAxisGrid extends ChartItem<MapAxisGridOptions> {
|
|
1728
|
+
static defaults: MapAxisGridOptions;
|
|
1729
|
+
private _line;
|
|
1730
|
+
private _lonLine;
|
|
1731
|
+
private _latLine;
|
|
1732
|
+
private _fitTo;
|
|
1733
|
+
protected _doInit(op: MapAxisGridOptions): void;
|
|
1734
|
+
get line(): MapAxisGridLine;
|
|
1735
|
+
get lonLine(): MapAxisGridLine;
|
|
1736
|
+
get latLine(): MapAxisGridLine;
|
|
1737
|
+
get fitTo(): MapAxisGridFitTo;
|
|
1738
|
+
getStep(map: MapModel): number;
|
|
1739
|
+
getLonStep(map: MapModel): number;
|
|
1740
|
+
getLatStep(map: MapModel): number;
|
|
1741
|
+
protected _doApply(options: MapAxisGridOptions): void;
|
|
1742
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1743
|
+
private $_defaultStep;
|
|
1744
|
+
}
|
|
1745
|
+
declare class MapAxisLine extends ChartItem<MapAxisLineOptions> {
|
|
1746
|
+
static defaults: MapAxisLineOptions;
|
|
1747
|
+
}
|
|
1748
|
+
declare class MapAxisTickLine extends ChartItem<MapAxisTickLineOptions> {
|
|
1749
|
+
static defaults: MapAxisTickLineOptions;
|
|
1750
|
+
}
|
|
1751
|
+
declare class MapAxisTick extends ChartItem<MapAxisTickOptions> {
|
|
1752
|
+
static defaults: MapAxisTickOptions;
|
|
1753
|
+
private _line;
|
|
1754
|
+
private _label;
|
|
1755
|
+
protected _doInit(op: MapAxisTickOptions): void;
|
|
1756
|
+
get line(): MapAxisTickLine;
|
|
1757
|
+
get label(): ChartText<ChartTextOptions>;
|
|
1758
|
+
}
|
|
1759
|
+
declare class MapAxisGuideLabel extends IconedText<MapAxisGuideLabelOptions> {
|
|
1760
|
+
static defaults: MapAxisGuideLabelOptions;
|
|
1761
|
+
getDefaultIconPos(): IconPosition;
|
|
1762
|
+
}
|
|
1763
|
+
declare abstract class MapAxisGuide<OP extends MapAxisGuideOptions = MapAxisGuideOptions> extends ChartItem<OP> {
|
|
1764
|
+
static defaults: MapAxisGuideOptions;
|
|
1765
|
+
private _label;
|
|
1766
|
+
protected _doInit(op: OP): void;
|
|
1767
|
+
get label(): MapAxisGuideLabel;
|
|
1768
|
+
}
|
|
1769
|
+
declare class MapAxisLineGuide extends MapAxisGuide<MapAxisLineGuideOptions> {
|
|
1770
|
+
static defaults: MapAxisLineGuideOptions;
|
|
1771
|
+
}
|
|
1772
|
+
declare class MapAxisBandGuide extends MapAxisGuide<MapAxisBandGuideOptions> {
|
|
1773
|
+
static defaults: MapAxisBandGuideOptions;
|
|
1774
|
+
}
|
|
1775
|
+
declare class MapAxisRangeGuide extends MapAxisGuide<MapAxisRangeGuideOptions> {
|
|
1776
|
+
static defaults: MapAxisRangeGuideOptions;
|
|
1777
|
+
}
|
|
1778
|
+
declare class CrosshairFlag extends ChartItem<CrosshairFlagOptions> {
|
|
1779
|
+
static defaults: CrosshairFlagOptions;
|
|
1780
|
+
}
|
|
1781
|
+
declare class MapCrosshair extends ChartItem<MapCrosshairOptions> {
|
|
1782
|
+
axis: MapAxis;
|
|
1783
|
+
static defaults: MapCrosshairOptions;
|
|
1784
|
+
private _flag;
|
|
1785
|
+
private _args;
|
|
1786
|
+
constructor(axis: MapAxis);
|
|
1787
|
+
protected _doInit(op: MapCrosshairOptions): void;
|
|
1788
|
+
get flag(): CrosshairFlag;
|
|
1789
|
+
getFlag(pos: number): string;
|
|
1790
|
+
moved(pos: IPoint, flag: string, points: DataPoint[]): void;
|
|
1791
|
+
protected _doSetSimple(source: any): boolean;
|
|
1792
|
+
}
|
|
1793
|
+
declare class MapAxis extends ChartItem<MapAxisOptions> {
|
|
1794
|
+
static defaults: MapAxisOptions;
|
|
1795
|
+
private _line;
|
|
1796
|
+
private _leftLine;
|
|
1797
|
+
private _rightLine;
|
|
1798
|
+
private _topLine;
|
|
1799
|
+
private _bottomLine;
|
|
1800
|
+
private _equatorLine;
|
|
1801
|
+
private _meridianLine;
|
|
1802
|
+
private _grid;
|
|
1803
|
+
private _tick;
|
|
1804
|
+
private _crosshair;
|
|
1805
|
+
private _guides;
|
|
1806
|
+
private _saveGuide;
|
|
1807
|
+
protected _doInit(op: MapAxisOptions): void;
|
|
1808
|
+
get line(): MapAxisLine;
|
|
1809
|
+
get leftLine(): MapAxisLine;
|
|
1810
|
+
get rightLine(): MapAxisLine;
|
|
1811
|
+
get topLine(): MapAxisLine;
|
|
1812
|
+
get bottomLine(): MapAxisLine;
|
|
1813
|
+
get equatorLine(): MapAxisLine;
|
|
1814
|
+
get meridianLine(): MapAxisLine;
|
|
1815
|
+
get grid(): MapAxisGrid;
|
|
1816
|
+
get tick(): MapAxisTick;
|
|
1817
|
+
get crosshair(): MapCrosshair;
|
|
1818
|
+
get guides(): MapAxisGuide<MapAxisGuideOptions>[];
|
|
1819
|
+
protected _doApply(options: MapAxisOptions): void;
|
|
1820
|
+
private $_loadGuides;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
declare abstract class BodyPanel<OP extends BodyPanelOptions = BodyPanelOptions> extends ChartItem<OP> {
|
|
1824
|
+
static readonly ITEM_GAP = 4;
|
|
1825
|
+
static defaults: BodyPanelOptions;
|
|
1826
|
+
getItemGap(): number;
|
|
1827
|
+
}
|
|
1828
|
+
declare class ZoomPanel extends BodyPanel<ZoomPanelOptions> {
|
|
1829
|
+
static readonly BUTTON_SIZE = 24;
|
|
1830
|
+
static defaults: ZoomPanelOptions;
|
|
1831
|
+
get vertical(): boolean;
|
|
1832
|
+
getButtonSize(): ISize;
|
|
1833
|
+
getZoomStep(): number;
|
|
1834
|
+
protected _isVisible(): boolean;
|
|
1835
|
+
}
|
|
1836
|
+
declare class DrilldownPanel extends BodyPanel<DrilldownPanelOptions> {
|
|
1837
|
+
static defaults: DrilldownPanelOptions;
|
|
1838
|
+
protected _isVisible(): boolean;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
declare class Title<OP extends TitleOptions = TitleOptions> extends ChartItem<OP> {
|
|
1842
|
+
static defaults: TitleOptions;
|
|
1843
|
+
isVisible(): boolean;
|
|
1844
|
+
protected _doSetSimple(src: any): boolean;
|
|
1845
|
+
}
|
|
1846
|
+
declare class Subtitle extends Title<SubtitleOptions> {
|
|
1847
|
+
static defaults: SubtitleOptions;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
interface ITooltipContext {
|
|
1851
|
+
getTooltipText(series: ISeries, point: DataPoint): string;
|
|
1852
|
+
getTooltipParam(series: ISeries, point: DataPoint, param: string): string;
|
|
1853
|
+
}
|
|
1854
|
+
interface ITooltipOwner {
|
|
1855
|
+
chart: IChart;
|
|
1856
|
+
getTooltipContext(level: TooltipScope, series: ISeries, point: DataPoint): ITooltipContext;
|
|
1857
|
+
}
|
|
1858
|
+
declare class Tooltip extends ChartItem<TooltipOptions> {
|
|
1859
|
+
owner: ITooltipOwner;
|
|
1860
|
+
static defaults: TooltipOptions;
|
|
1861
|
+
private _numberFormat;
|
|
1862
|
+
private _timeFormat;
|
|
1863
|
+
_op: TooltipOptions;
|
|
1864
|
+
private _ctx;
|
|
1865
|
+
private _series;
|
|
1866
|
+
private _point;
|
|
1867
|
+
private _siblings;
|
|
1868
|
+
private _domain;
|
|
1869
|
+
constructor(owner: ITooltipOwner);
|
|
1870
|
+
protected _doInit(): void;
|
|
1871
|
+
setTarget(series: ISeries, point: DataPoint): ITooltipContext;
|
|
1872
|
+
getTextDomain(): IRichTextDomain;
|
|
1873
|
+
isFollowPointer(series: ISeries): boolean;
|
|
1874
|
+
protected _doSetSimple(source: any): boolean;
|
|
1875
|
+
protected _doApply(options: TooltipOptions): void;
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
declare class MapSeriesPoint extends ValuePoint {
|
|
1879
|
+
area: MapArea;
|
|
1880
|
+
center: MapCoord;
|
|
1881
|
+
protected _readObject(series: MapSeries, v: any): void;
|
|
1882
|
+
getLabel(index: number): string;
|
|
1883
|
+
getParam(param: string): any;
|
|
1884
|
+
}
|
|
1885
|
+
declare class MapSeriesDrilldown extends ChartItem<DrilldownOptions> {
|
|
1886
|
+
static defaults: DrilldownOptions;
|
|
1887
|
+
}
|
|
1888
|
+
declare class MapSeries extends ValueSeries<MapSeriesOptions> {
|
|
1889
|
+
static type: string;
|
|
1890
|
+
static defaults: MapSeriesOptions;
|
|
1891
|
+
protected _doInit(op: MapSeriesOptions): void;
|
|
1892
|
+
private _parent;
|
|
1893
|
+
private _detail;
|
|
1894
|
+
private _detailed;
|
|
1895
|
+
private _drilldown;
|
|
1896
|
+
private _areaPts;
|
|
1897
|
+
private _minValue;
|
|
1898
|
+
private _maxValue;
|
|
1899
|
+
private _colorObj;
|
|
1900
|
+
private _useMapData;
|
|
1901
|
+
get areaCount(): number;
|
|
1902
|
+
get parent(): MapSeries;
|
|
1903
|
+
get detail(): MapSeries;
|
|
1904
|
+
get drilldown(): MapSeriesDrilldown;
|
|
1905
|
+
get color(): Color;
|
|
1906
|
+
private _colorRanger;
|
|
1907
|
+
getHistory(): MapSeries[];
|
|
1908
|
+
get(second: boolean, index: number): MapArea;
|
|
1909
|
+
pointOf(area: MapArea): MapSeriesPoint;
|
|
1910
|
+
pointByProp(prop: string, value: any): MapSeriesPoint;
|
|
1911
|
+
getBounds(projection: ProjectionType): IRect;
|
|
1912
|
+
getCenter(p: MapSeriesPoint | string): MapCoord;
|
|
1913
|
+
getValueRange(): {
|
|
1914
|
+
min: number;
|
|
1915
|
+
max: number;
|
|
1916
|
+
};
|
|
1917
|
+
getDetailed(): MapSeries;
|
|
1918
|
+
showDetail(): void;
|
|
1919
|
+
showParent(): void;
|
|
1920
|
+
protected _createLabel(chart: IChart): DataPointLabel;
|
|
1921
|
+
private $_createDetail;
|
|
1922
|
+
protected _doLoad(options: ChartItemOptions, source: any): void;
|
|
1923
|
+
protected _doApply(options: MapSeriesOptions): void;
|
|
1924
|
+
needMapScale(): boolean;
|
|
1925
|
+
getRangedColor(p: MapSeriesPoint): string;
|
|
1926
|
+
followTooltipPointer(): boolean;
|
|
1927
|
+
getLegendSources(list: ILegendSource[]): void;
|
|
1928
|
+
protected _createPoint(source: any): MapSeriesPoint;
|
|
1929
|
+
protected _getPointCallbackArgs(args: DataPointCallbackArgs, p: MapSeriesPoint): DataPointCallbackArgs;
|
|
1930
|
+
_prepareRender(): void;
|
|
1931
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1932
|
+
protected _doLoadPoints(src: any): void;
|
|
1933
|
+
setCalcedColor(color: string): void;
|
|
1934
|
+
getColorScale(): string | number;
|
|
1935
|
+
canSelect(): boolean;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
declare class MapBackground extends ChartItem<MapBackgroundOptions> {
|
|
1939
|
+
static defaults: MapBackgroundOptions;
|
|
1940
|
+
isVisible(): boolean;
|
|
1941
|
+
}
|
|
1942
|
+
interface IBodyTransform {
|
|
1943
|
+
tx: number;
|
|
1944
|
+
ty: number;
|
|
1945
|
+
scale: number;
|
|
1946
|
+
vx: number;
|
|
1947
|
+
vy: number;
|
|
1948
|
+
}
|
|
1949
|
+
declare class Body extends ChartItem<BodyOptions> implements IAnnotationOwner {
|
|
1950
|
+
static defaults: BodyOptions;
|
|
1951
|
+
private _projection;
|
|
1952
|
+
private _mapBackground;
|
|
1953
|
+
private _anns;
|
|
1954
|
+
_annotations: AnnotationCollection;
|
|
1955
|
+
_prj: MapProjection;
|
|
1956
|
+
_points: {
|
|
1957
|
+
[id: string]: MapCoord;
|
|
1958
|
+
};
|
|
1959
|
+
private _map;
|
|
1960
|
+
private _zoom;
|
|
1961
|
+
private _zoomAni;
|
|
1962
|
+
private _panX;
|
|
1963
|
+
private _panY;
|
|
1964
|
+
private _wRate;
|
|
1965
|
+
private _hRate;
|
|
1966
|
+
private _scale;
|
|
1967
|
+
private _vRect;
|
|
1968
|
+
private _wMap;
|
|
1969
|
+
private _reCalculateFlag;
|
|
1970
|
+
private _dragDistance;
|
|
1971
|
+
constructor(chart: IChart);
|
|
1972
|
+
protected _doInit(op: BodyOptions): void;
|
|
1973
|
+
anchorByName(name: string): ChartItem;
|
|
1974
|
+
get projection(): MapProjection;
|
|
1975
|
+
get mapBackground(): MapBackground;
|
|
1976
|
+
get rotationX(): number;
|
|
1977
|
+
set rotationX(value: number);
|
|
1978
|
+
get rotationY(): number;
|
|
1979
|
+
set rotationY(value: number);
|
|
1980
|
+
get scroll(): number;
|
|
1981
|
+
set scroll(value: number);
|
|
1982
|
+
get panX(): number;
|
|
1983
|
+
set panX(value: number);
|
|
1984
|
+
get panY(): number;
|
|
1985
|
+
set panY(value: number);
|
|
1986
|
+
get zoom(): number;
|
|
1987
|
+
set zoom(value: number);
|
|
1988
|
+
get isZoomed(): boolean;
|
|
1989
|
+
get scale(): number;
|
|
1990
|
+
get center(): MapCoord;
|
|
1991
|
+
get map(): MapModel;
|
|
1992
|
+
set dragDistance(value: number);
|
|
1993
|
+
isDrilldowned(): boolean;
|
|
1994
|
+
prepareLayout(width: number, height: number): {
|
|
1995
|
+
scale: number;
|
|
1996
|
+
wMap: number;
|
|
1997
|
+
hMap: number;
|
|
1998
|
+
tx: number;
|
|
1999
|
+
ty: number;
|
|
2000
|
+
};
|
|
2001
|
+
$_calcWMap(): number;
|
|
2002
|
+
getPoint(id: string): MapCoord;
|
|
2003
|
+
isVisible(coord: MapCoord): boolean;
|
|
2004
|
+
isWorldMap(): boolean;
|
|
2005
|
+
isScrollable(): boolean;
|
|
2006
|
+
setZoom(value: number, duration?: number | AnimationOptions | (() => void)): void;
|
|
2007
|
+
incZoom(delta: number): void;
|
|
2008
|
+
_canSetZoom(value: number): boolean;
|
|
2009
|
+
zoomTo(zoom: number, target: MapCoord, duration?: number): void;
|
|
2010
|
+
zoomToArea(areaId: string, ratio?: number, duration?: number): void;
|
|
2011
|
+
zoomToBounds(from: MapCoord, to: MapCoord, duration?: number): void;
|
|
2012
|
+
focusTo(target: MapCoord, duration?: number): void;
|
|
2013
|
+
$_moveTo(coords: MapCoord): void;
|
|
2014
|
+
getAnnotations(): Annotation[];
|
|
2015
|
+
getAnnotation(name: string): Annotation;
|
|
2016
|
+
updateOption(prop: keyof BodyOptions, value: any, render?: boolean): this;
|
|
2017
|
+
updateOptions(source?: BodyOptions, render?: boolean): this;
|
|
2018
|
+
protected _doApply(options: BodyOptions): void;
|
|
2019
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
2020
|
+
_getZoom(): number;
|
|
2021
|
+
}
|
|
2022
|
+
interface IMapChartEvents {
|
|
2023
|
+
onModelChanged(chart: ChartObject, item: ChartItem, tag: any): void;
|
|
2024
|
+
onMapChanged(chart: ChartObject, map: MapModel): void;
|
|
2025
|
+
onProjectionChanged(chart: ChartObject, projection: MapProjection): void;
|
|
2026
|
+
onZoomChanged(chart: ChartObject, oldZoom: number): void;
|
|
2027
|
+
onRequestRender(chart: ChartObject, now: boolean): void;
|
|
2028
|
+
onRequestShowSeries(chart: ChartObject, series: Series, visible: boolean): void;
|
|
2029
|
+
}
|
|
2030
|
+
declare class Credits extends ChartItem<CreditsOptions> {
|
|
2031
|
+
static defaults: CreditsOptions;
|
|
2032
|
+
isFloating(): boolean;
|
|
2033
|
+
}
|
|
2034
|
+
declare class ChartOptions extends ChartItem<ChartOptionsOptions> {
|
|
2035
|
+
static defaults: ChartOptionsOptions;
|
|
2036
|
+
}
|
|
2037
|
+
declare class ChartObject extends RmEventProvider<IMapChartEvents> implements IChart, IMapOwner, IAnnotationOwner, ITooltipOwner, ISelectionOwner {
|
|
2038
|
+
private static defaults;
|
|
2039
|
+
_wrapper: any;
|
|
2040
|
+
options: ChartConfiguration;
|
|
2041
|
+
private _bases;
|
|
2042
|
+
_templates: {
|
|
2043
|
+
[key: string]: any;
|
|
2044
|
+
};
|
|
2045
|
+
_assets: AssetCollection;
|
|
2046
|
+
private _chartOptions;
|
|
2047
|
+
private _axis;
|
|
2048
|
+
private _body;
|
|
2049
|
+
_title: Title;
|
|
2050
|
+
_subtitle: Subtitle;
|
|
2051
|
+
_legend: Legend;
|
|
2052
|
+
_zoomPanel: ZoomPanel;
|
|
2053
|
+
_drilldownPanel: DrilldownPanel;
|
|
2054
|
+
_credits: Credits;
|
|
2055
|
+
_tooltip: Tooltip;
|
|
2056
|
+
private _maps;
|
|
2057
|
+
private _baseMap;
|
|
2058
|
+
private _series;
|
|
2059
|
+
_annotations: AnnotationCollection;
|
|
2060
|
+
_colorScales: ColorScaleCollection;
|
|
2061
|
+
_bubbleScales: BubbleScaleCollection;
|
|
2062
|
+
_mapScale: MapScale;
|
|
2063
|
+
private _selection;
|
|
2064
|
+
_exporter: Exporter;
|
|
2065
|
+
_loading: boolean;
|
|
2066
|
+
private _point_shaes;
|
|
2067
|
+
private _params;
|
|
2068
|
+
_seriesIndex: number;
|
|
2069
|
+
assignTemplates: (target: any) => any;
|
|
2070
|
+
_dataDirty: boolean;
|
|
2071
|
+
private _optionsLock;
|
|
2072
|
+
_optionsDirty: boolean;
|
|
2073
|
+
_loadAnimatable: boolean;
|
|
2074
|
+
width: number;
|
|
2075
|
+
height: number;
|
|
2076
|
+
lockOptionsDirty(): void;
|
|
2077
|
+
freeOptionsDirty(): void;
|
|
2078
|
+
constructor(config?: ChartConfiguration, wrapper?: any);
|
|
2079
|
+
private _initOptions;
|
|
2080
|
+
get isGlobe(): boolean;
|
|
2081
|
+
get selection(): MapSelection;
|
|
2082
|
+
getFirstSeries(type: string): Series;
|
|
2083
|
+
_getSeriesType(type: string): any;
|
|
2084
|
+
_getAnnotationType(type: string): any;
|
|
2085
|
+
_modelChanged(): void;
|
|
2086
|
+
_optionChanged(item: ChartItem, tag?: any): void;
|
|
2087
|
+
animatable(): boolean;
|
|
2088
|
+
loadAnimatable(): boolean;
|
|
2089
|
+
isVisible(coord: MapCoord): boolean;
|
|
2090
|
+
requestShowSeries(series: Series, visible: boolean): void;
|
|
2091
|
+
_selectionChanged(series: ISeries, p: DataPoint): void;
|
|
2092
|
+
getNextPointShape(): Shape;
|
|
2093
|
+
getProjection(second: boolean): MapProjection;
|
|
2094
|
+
projectionChanged(): void;
|
|
2095
|
+
zoomChanged(oldZoom: number): void;
|
|
2096
|
+
mapChanged(map: MapModel): void;
|
|
2097
|
+
anchorByName(name: string): ChartItem<ChartItemOptions>;
|
|
2098
|
+
get chart(): IChart;
|
|
2099
|
+
getTooltipContext(scope: TooltipScope, series: ISeries, point: DataPoint): ITooltipContext;
|
|
2100
|
+
selectionChanged(selection: MapSelection): void;
|
|
2101
|
+
selectionItemAdded(item: ISelectionSource): void;
|
|
2102
|
+
selectionItemRemoved(item: ISelectionSource): void;
|
|
2103
|
+
selectionCleared(): void;
|
|
2104
|
+
get type(): "figure" | "map" | "feature" | "point" | "pin" | "vector" | "bar" | "line" | "pie" | "waffle" | "route" | "bubble" | "image" | "heatmap" | "panel" | "gauge" | "clock";
|
|
2105
|
+
get chartOptions(): ChartOptions;
|
|
2106
|
+
get legend(): Legend;
|
|
2107
|
+
get credits(): Credits;
|
|
2108
|
+
get map(): MapModel;
|
|
2109
|
+
setBaseMap(indexOrName: number | string | MapModel): void;
|
|
2110
|
+
get axis(): MapAxis;
|
|
2111
|
+
get body(): Body;
|
|
2112
|
+
get visibleSeries(): Series[];
|
|
2113
|
+
get firstVisible(): Series;
|
|
2114
|
+
get firstMapSeries(): MapSeries;
|
|
2115
|
+
get colorScale(): ColorScale;
|
|
2116
|
+
get bubbleScale(): BubbleScale;
|
|
2117
|
+
get mapScale(): MapScale;
|
|
2118
|
+
get isDirty(): boolean;
|
|
2119
|
+
get isDrilldowned(): boolean;
|
|
2120
|
+
getAnnotations(): Annotation[];
|
|
2121
|
+
requestRender(now: boolean): void;
|
|
2122
|
+
mapByName(name: string): MapModel;
|
|
2123
|
+
mapAt(index: number): MapModel;
|
|
2124
|
+
getMap(nameOrIndex: string | number): MapModel;
|
|
2125
|
+
seriesByName(series: string): Series;
|
|
2126
|
+
seriesByType(type: string): Series;
|
|
2127
|
+
seriesAt(index: number): Series;
|
|
2128
|
+
seriesByPoint(point: DataPoint): Series;
|
|
2129
|
+
annotationByName(name: string): Annotation;
|
|
2130
|
+
loadBase(source: any, model: string, type: string): any;
|
|
2131
|
+
private _setProperties;
|
|
2132
|
+
_load(config: ChartConfiguration): this;
|
|
2133
|
+
private $_loadTemplates;
|
|
2134
|
+
prepareRender(): void;
|
|
2135
|
+
afterRender(): void;
|
|
2136
|
+
update(options: ChartConfiguration, render: boolean): void;
|
|
2137
|
+
export(options: ExportOptions): void;
|
|
2138
|
+
_getLegendSources(): ILegendSource[];
|
|
2139
|
+
getParam(target: any, param: string): any;
|
|
2140
|
+
setParam(param: string, value: any, redraw?: boolean): ChartObject;
|
|
2141
|
+
addSeries(source: any, animate: boolean): Series;
|
|
2142
|
+
removeSeries(series: string | Series, animate: boolean): Series<SeriesOptions>;
|
|
2143
|
+
_dataChanged(): void;
|
|
2144
|
+
_isDataChanged(): boolean;
|
|
2145
|
+
getColorScale(scale: string | number): ColorScale;
|
|
2146
|
+
getBubbleScale(scale: string | number): BubbleScale;
|
|
2147
|
+
drilldown(series: MapSeries, area: string): Promise<void>;
|
|
2148
|
+
drillup(series?: MapSeries): Promise<void>;
|
|
2149
|
+
_visibleChanged(item: ChartItem): void;
|
|
2150
|
+
_hoverAreaChanged(series: Series, newArea: MapArea, oldArea: MapArea): void;
|
|
2151
|
+
_areaClicked(series: Series, area: MapArea): void;
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
declare class RmTool<T extends RmControl = RmControl> {
|
|
2155
|
+
private _control;
|
|
2156
|
+
private _touchElement;
|
|
2157
|
+
private _moveElement;
|
|
2158
|
+
private _draggable;
|
|
2159
|
+
private _dragTracker;
|
|
2160
|
+
private _touchX;
|
|
2161
|
+
private _touchY;
|
|
2162
|
+
private _prevX;
|
|
2163
|
+
private _prevY;
|
|
2164
|
+
protected _touches: {
|
|
2165
|
+
x: number;
|
|
2166
|
+
y: number;
|
|
2167
|
+
t: number;
|
|
2168
|
+
}[];
|
|
2169
|
+
protected _tapped: number;
|
|
2170
|
+
private _firstTime;
|
|
2171
|
+
private _secondTime;
|
|
2172
|
+
private _longTimer;
|
|
2173
|
+
protected _primaryId: number;
|
|
2174
|
+
private _distance;
|
|
2175
|
+
private _pinching;
|
|
2176
|
+
constructor(control: T);
|
|
2177
|
+
get control(): T;
|
|
2178
|
+
get dragTracker(): DragTracker;
|
|
2179
|
+
setDragTracker(value: DragTracker): void;
|
|
2180
|
+
get dragging(): boolean;
|
|
2181
|
+
touchX(): number;
|
|
2182
|
+
touchY(): number;
|
|
2183
|
+
pointerDown(ev: PointerEvent): boolean;
|
|
2184
|
+
protected _stopEvent(ev: Event): void;
|
|
2185
|
+
private $_doDrag;
|
|
2186
|
+
private $_startMove;
|
|
2187
|
+
pointerMove(ev: PointerEvent): void;
|
|
2188
|
+
pointerUp(ev: PointerEvent): void;
|
|
2189
|
+
pointerCancel(ev: PointerEvent): void;
|
|
2190
|
+
pointerLeave(ev: PointerEvent): void;
|
|
2191
|
+
touchStart(ev: TouchEvent): void;
|
|
2192
|
+
touchMove(ev: TouchEvent): boolean;
|
|
2193
|
+
protected _isPinchTarget(dom: Element): boolean;
|
|
2194
|
+
protected _doPinch(dist: number): void;
|
|
2195
|
+
touchEnd(ev: TouchEvent): void;
|
|
2196
|
+
click(ev: PointerEvent): void;
|
|
2197
|
+
dblClick(ev: PointerEvent): void;
|
|
2198
|
+
keyPress(ev: KeyboardEvent): void;
|
|
2199
|
+
wheel(ev: WheelEvent): void;
|
|
2200
|
+
requestDrag(request: DragRequest): void;
|
|
2201
|
+
getTrackerFromRequest(request: DragRequest): DragTracker;
|
|
2202
|
+
protected _setDraggable(value: boolean): void;
|
|
2203
|
+
protected _doClick(ev: PointerEvent): void;
|
|
2204
|
+
protected _doDblClick(ev: PointerEvent): void;
|
|
2205
|
+
protected _doPointerDown(ev: PointerEvent): boolean;
|
|
2206
|
+
protected _doPointerMove(x: number, y: number, ev: PointerEvent): void;
|
|
2207
|
+
protected _doPointerUp(ev: PointerEvent): boolean;
|
|
2208
|
+
protected _doPointerCancel(ev: PointerEvent): void;
|
|
2209
|
+
protected _doPointerLeave(ev: PointerEvent): void;
|
|
2210
|
+
protected _doTouchStart(ev: TouchEvent, dom: Element): void;
|
|
2211
|
+
protected _doTouchMove(ev: TouchEvent, dom: Element): boolean;
|
|
2212
|
+
protected _doTouchEnd(ev: TouchEvent, dom: Element): void;
|
|
2213
|
+
protected _doLongPressed(dom: Element, x: number, y: number): void;
|
|
2214
|
+
protected _doKeyPress(ev: KeyboardEvent): void;
|
|
2215
|
+
protected _doWheel(ev: WheelEvent): boolean;
|
|
2216
|
+
protected _doSwipe(dom: Element, prevTracker: DragTracker, dir: RtDirection, duration: number, distance: number): boolean;
|
|
2217
|
+
protected _getDragTracker(dom: Element, dx: number, dy: number): DragTracker;
|
|
2218
|
+
private $_startDrag;
|
|
2219
|
+
private $_drag;
|
|
2220
|
+
private $_stopDragTracker;
|
|
2221
|
+
private $_pointerToPoint;
|
|
2222
|
+
private $_checkSwipe;
|
|
2223
|
+
protected _clearTouchEffects(): void;
|
|
2224
|
+
private $_getDistance;
|
|
2225
|
+
}
|
|
2226
|
+
declare abstract class DragRequest extends RmObject {
|
|
2227
|
+
}
|
|
2228
|
+
declare abstract class DragTracker<T extends RmControl = RmControl> extends RmObject {
|
|
2229
|
+
private _control;
|
|
2230
|
+
private _dragging;
|
|
2231
|
+
constructor(control: T);
|
|
2232
|
+
get control(): T;
|
|
2233
|
+
get dragging(): boolean;
|
|
2234
|
+
get startWhenCreated(): boolean;
|
|
2235
|
+
get cursor(): string;
|
|
2236
|
+
canSwipe(): boolean;
|
|
2237
|
+
start(eventTarget: Element, xStart: number, yStart: number, x: number, y: number): boolean;
|
|
2238
|
+
drag(eventTarget: Element, xPrev: number, yPrev: number, x: number, y: number): boolean;
|
|
2239
|
+
cancel(): void;
|
|
2240
|
+
drop(eventTarget: HTMLElement, x: number, y: number): void;
|
|
2241
|
+
swipe(dir: RtDirection, duration: number, distance: number): boolean;
|
|
2242
|
+
end(x?: number, y?: number): void;
|
|
2243
|
+
protected _doSwipe(dir: RtDirection, duration: number, distance: number): boolean;
|
|
2244
|
+
protected _showFeedback(x: number, y: number): void;
|
|
2245
|
+
protected _moveFeedback(x: number, y: number): void;
|
|
2246
|
+
protected _hideFeedback(): void;
|
|
2247
|
+
protected _doStart(eventTarget: Element, xStart: number, yStart: number, x: number, y: number): boolean;
|
|
2248
|
+
protected abstract _doDrag(eventTarget: Element, xPrev: number, yPrev: number, x: number, y: number): boolean;
|
|
2249
|
+
protected _doCanceled(): void;
|
|
2250
|
+
protected _canAccept(eventTarget: Element, x: number, y: number): boolean;
|
|
2251
|
+
protected _doCompleted(eventTarget: Element, x: number, y: number): void;
|
|
2252
|
+
protected _doEnded(x?: number, y?: number): void;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
declare class GlobeSpinner extends DragTracker<ChartControl> {
|
|
2256
|
+
protected _doDrag(eventTarget: Element, xPrev: number, yPrev: number, x: number, y: number): boolean;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
declare class MapScroller extends DragTracker<ChartControl> {
|
|
2260
|
+
private _oldX;
|
|
2261
|
+
private _oldY;
|
|
2262
|
+
private _xStart;
|
|
2263
|
+
private _yStart;
|
|
2264
|
+
constructor(control: ChartControl);
|
|
2265
|
+
protected _doStart(eventTarget: Element, xStart: number, yStart: number, x: number, y: number): boolean;
|
|
2266
|
+
protected _doEnded(x?: number, y?: number): void;
|
|
2267
|
+
protected _doDrag(eventTarget: Element, xPrev: number, yPrev: number, x: number, y: number): boolean;
|
|
2268
|
+
private $_mapView;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
declare class MapTool extends RmTool<ChartControl> {
|
|
2272
|
+
private _clickElement;
|
|
2273
|
+
protected _doPointerDown(ev: PointerEvent): boolean;
|
|
2274
|
+
protected _doPointerMove(x: number, y: number, ev: PointerEvent): void;
|
|
2275
|
+
protected _doClick(ev: PointerEvent): void;
|
|
2276
|
+
protected _doDblClick(ev: PointerEvent): void;
|
|
2277
|
+
protected _doWheel(ev: WheelEvent): boolean;
|
|
2278
|
+
protected _isPinchTarget(dom: Element): boolean;
|
|
2279
|
+
protected _doPinch(dist: number): void;
|
|
2280
|
+
protected _getDragTracker(dom: Element, dx: number, dy: number): GlobeSpinner | MapScroller;
|
|
2281
|
+
private $_chart;
|
|
2282
|
+
private $_chartView;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
declare abstract class GroupElement extends RmElement {
|
|
2286
|
+
private static IGNORE_ATTRS;
|
|
2287
|
+
constructor(doc: Document, styleName?: string);
|
|
2288
|
+
protected _movable(): boolean;
|
|
2289
|
+
setAttr(attr: string, value: any): GroupElement;
|
|
2290
|
+
protected _doInitChildren(doc: Document): void;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
interface IRectShape extends IRect {
|
|
2294
|
+
r?: number;
|
|
2295
|
+
rx?: number;
|
|
2296
|
+
ry?: number;
|
|
2297
|
+
rLeft?: number;
|
|
2298
|
+
rTop?: number;
|
|
2299
|
+
rRight?: number;
|
|
2300
|
+
rBottom?: number;
|
|
2301
|
+
}
|
|
2302
|
+
declare class RectElement extends RmElement {
|
|
2303
|
+
static create(doc: Document, styleName: string, x: number, y: number, width: number, height: number, r?: number): RectElement;
|
|
2304
|
+
private _rect;
|
|
2305
|
+
constructor(doc: Document, styleName?: string, rect?: IRectShape);
|
|
2306
|
+
get rect(): IRectShape;
|
|
2307
|
+
set rect(value: IRectShape);
|
|
2308
|
+
setBounds(x: number, y: number, width: number, height: number, r?: number): RectElement;
|
|
2309
|
+
setRadius(value: number): void;
|
|
2310
|
+
protected _setBackgroundBorderRadius(value: number): void;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
declare abstract class ChartElement<T extends ChartItem = ChartItem> extends RmElement {
|
|
2314
|
+
model: T;
|
|
2315
|
+
protected options: ChartItemOptions;
|
|
2316
|
+
mw: number;
|
|
2317
|
+
mh: number;
|
|
2318
|
+
_debugRect: RectElement;
|
|
2319
|
+
constructor(doc: Document, styleName?: any);
|
|
2320
|
+
chart(): IChart;
|
|
2321
|
+
protected _prepareStyleOrClass(model: T): void;
|
|
2322
|
+
setModel(model: T): void;
|
|
2323
|
+
measure(doc: Document, model: T, hintWidth: number, hintHeight: number): ISize;
|
|
2324
|
+
layout(param?: any): ChartElement<ChartItem>;
|
|
2325
|
+
resizeByMeasured(): ChartElement<ChartItem>;
|
|
2326
|
+
protected _getDebugRect(): IRect;
|
|
2327
|
+
protected _doMeasure(doc: Document, model: T, hintWidth: number, hintHeight: number): ISize;
|
|
2328
|
+
protected _doLayout(param: any): void;
|
|
2329
|
+
protected _invalidate(): void;
|
|
2330
|
+
}
|
|
2331
|
+
declare abstract class BoundableElement<T extends ChartItem = ChartItem> extends ChartElement<T> {
|
|
2332
|
+
protected _background: RectElement;
|
|
2333
|
+
protected _margins: Sides;
|
|
2334
|
+
protected _paddings: Sides;
|
|
2335
|
+
constructor(doc: Document, styleName: string, backStyle: string);
|
|
2336
|
+
protected _getDebugRect(): IRect;
|
|
2337
|
+
measure(doc: Document, model: T, hintWidth: number, hintHeight: number): ISize;
|
|
2338
|
+
layout(param?: any): ChartElement<ChartItem>;
|
|
2339
|
+
protected abstract _setBackgroundStyle(back: RectElement): void;
|
|
2340
|
+
protected _marginable(): boolean;
|
|
2341
|
+
protected _resetBackBounds(): boolean;
|
|
2342
|
+
protected _getBackOffset(): number;
|
|
2343
|
+
protected _deflatePaddings(size: ISize): void;
|
|
2344
|
+
}
|
|
2345
|
+
declare abstract class SectionView extends GroupElement {
|
|
2346
|
+
protected _inverted: boolean;
|
|
2347
|
+
mw: number;
|
|
2348
|
+
mh: number;
|
|
2349
|
+
measure(doc: Document, chart: IChart, hintWidth: number, hintHeight: number): ISize;
|
|
2350
|
+
resizeByMeasured(): SectionView;
|
|
2351
|
+
layout(param?: any): SectionView;
|
|
2352
|
+
layoutInner(width: number, height: number, param?: any): SectionView;
|
|
2353
|
+
protected abstract _doMeasure(doc: Document, chart: IChart, hintWidth: number, hintHeight: number): ISize;
|
|
2354
|
+
protected abstract _doLayout(param?: any): void;
|
|
2355
|
+
protected abstract _doLayoutInner(width: number, height: number, param?: any): void;
|
|
2356
|
+
}
|
|
2357
|
+
declare abstract class ContentView<T extends ChartItem> extends ChartElement<T> {
|
|
2358
|
+
protected _inverted: boolean;
|
|
2359
|
+
protected _animatable: boolean;
|
|
2360
|
+
protected _loadAnimatable: boolean;
|
|
2361
|
+
_setChartOptions(inverted: boolean, animatable: boolean, loadAnimatable: boolean): void;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
declare class LegendItemView extends ChartElement<LegendItem> {
|
|
2365
|
+
_back: RectElement;
|
|
2366
|
+
_marker: RmElement;
|
|
2367
|
+
_label: TextElement;
|
|
2368
|
+
_gap: number;
|
|
2369
|
+
_rMarker: IRect;
|
|
2370
|
+
_col: number;
|
|
2371
|
+
constructor(doc: Document);
|
|
2372
|
+
setMarker(elt: RmElement): RmElement;
|
|
2373
|
+
protected _doMeasure(doc: Document, model: LegendItem, hintWidth: number, hintHeight: number): ISize;
|
|
2374
|
+
protected _doLayout(wMarker: number): void;
|
|
2375
|
+
}
|
|
2376
|
+
declare class LegendView extends BoundableElement<Legend> {
|
|
2377
|
+
static readonly LEGEND_CLASS = "rm-legend";
|
|
2378
|
+
private _itemViews;
|
|
2379
|
+
private _vertical;
|
|
2380
|
+
private _rowViews;
|
|
2381
|
+
private _sizes;
|
|
2382
|
+
private _wMarkers;
|
|
2383
|
+
_gap: number;
|
|
2384
|
+
_ipr: number;
|
|
2385
|
+
constructor(doc: Document);
|
|
2386
|
+
legendByDom(dom: Element): LegendItem;
|
|
2387
|
+
legendOfSeries(series: Series): LegendItemView;
|
|
2388
|
+
protected _setBackgroundStyle(back: RectElement): void;
|
|
2389
|
+
protected _doMeasure(doc: Document, model: Legend, hintWidth: number, hintHeight: number): ISize;
|
|
2390
|
+
protected _doLayout(): void;
|
|
2391
|
+
private $_prepareItems;
|
|
2392
|
+
private $_measure;
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
interface IAnnotationAnchorOwner {
|
|
2396
|
+
getAnnotationAnchor(model: any): RmElement;
|
|
2397
|
+
tx: number;
|
|
2398
|
+
ty: number;
|
|
2399
|
+
}
|
|
2400
|
+
declare abstract class AnnotationView<T extends Annotation = Annotation> extends BoundableElement<T> {
|
|
2401
|
+
static readonly CLASS_NAME: string;
|
|
2402
|
+
static register(...clses: [typeof Annotation<AnnotationOptions>, typeof AnnotationView<Annotation>][]): void;
|
|
2403
|
+
protected options: AnnotationOptions;
|
|
2404
|
+
constructor(doc: Document, styleName: string);
|
|
2405
|
+
update(owner: IAnnotationAnchorOwner, hintWidth: number, hintHeight: number): void;
|
|
2406
|
+
_layoutView(owner: IAnnotationAnchorOwner, x: number, y: number, w: number, h: number): void;
|
|
2407
|
+
private _posByAnchor;
|
|
2408
|
+
protected _marginable(): boolean;
|
|
2409
|
+
protected _resetBackBounds(): boolean;
|
|
2410
|
+
protected _setBackgroundStyle(back: RectElement): void;
|
|
2411
|
+
protected _doLayout(p: IPoint): void;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
declare class ColorScaleView extends ChartElement<ColorScale> {
|
|
2415
|
+
static readonly SCALE_CLASS = "rm-color-scale";
|
|
2416
|
+
static readonly SCALE_FILL = "rm-color-scale-fill";
|
|
2417
|
+
private _vertical;
|
|
2418
|
+
private _reversed;
|
|
2419
|
+
private _fills;
|
|
2420
|
+
private _barLayer;
|
|
2421
|
+
private _bars;
|
|
2422
|
+
private _splitLayer;
|
|
2423
|
+
private _splits;
|
|
2424
|
+
private _marker;
|
|
2425
|
+
private _markerLabel;
|
|
2426
|
+
private _tickLineLayer;
|
|
2427
|
+
private _tickLabelLayer;
|
|
2428
|
+
private _tickLines;
|
|
2429
|
+
private _tickLabels;
|
|
2430
|
+
private _gap;
|
|
2431
|
+
private _markerSize;
|
|
2432
|
+
private _labelSize;
|
|
2433
|
+
private _tickLen;
|
|
2434
|
+
private _tickLabelSize;
|
|
2435
|
+
private _value;
|
|
2436
|
+
constructor(doc: Document);
|
|
2437
|
+
setValue(v: number): void;
|
|
2438
|
+
protected _setBackgroundStyle(back: RectElement): void;
|
|
2439
|
+
protected _doMeasure(doc: Document, model: ColorScale, hintWidth: number, hintHeight: number): ISize;
|
|
2440
|
+
protected _doLayout(): void;
|
|
2441
|
+
private $_getFillId;
|
|
2442
|
+
private $_getFillUrl;
|
|
2443
|
+
private $_createGradient;
|
|
2444
|
+
private $_setDir;
|
|
2445
|
+
private $_fillStops;
|
|
2446
|
+
private $_prepareBars;
|
|
2447
|
+
private $_prepareSplits;
|
|
2448
|
+
private $_prepareTickLines;
|
|
2449
|
+
private $_prepareMarker;
|
|
2450
|
+
private $_layoutSplits;
|
|
2451
|
+
private $_layoutTickLines;
|
|
2452
|
+
private $_resetMarker;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
type Visitor<T extends RmElement> = (element: T, index?: number, count?: number) => void;
|
|
2456
|
+
declare class ElementPool<T extends RmElement> extends RmObject {
|
|
2457
|
+
removeDelay: number;
|
|
2458
|
+
private _owner;
|
|
2459
|
+
private _creator;
|
|
2460
|
+
private _pool;
|
|
2461
|
+
private _views;
|
|
2462
|
+
private _removes;
|
|
2463
|
+
private _styleName;
|
|
2464
|
+
constructor(owner: RmElement, creator: {
|
|
2465
|
+
new (doc: Document, styleName?: string): T;
|
|
2466
|
+
}, styleName?: string, removeDelay?: number);
|
|
2467
|
+
protected _doDestory(): void;
|
|
2468
|
+
get isEmpty(): boolean;
|
|
2469
|
+
get count(): number;
|
|
2470
|
+
get first(): T;
|
|
2471
|
+
get last(): T;
|
|
2472
|
+
get(index: number): T;
|
|
2473
|
+
getAll(): T[];
|
|
2474
|
+
elementOf(dom: Element): T;
|
|
2475
|
+
prepare(count: number, visitor?: Visitor<T>, initor?: Visitor<T>): ElementPool<T>;
|
|
2476
|
+
borrow(): T;
|
|
2477
|
+
free(element: T, removeDelay?: number): void;
|
|
2478
|
+
freeAll(elements: T[], removeDelay?: number): void;
|
|
2479
|
+
clear(): void;
|
|
2480
|
+
forEach(visitor: (v: T, i?: number, count?: number) => void): void;
|
|
2481
|
+
visit(visitor: (v: T, i: number, count: number) => boolean): boolean;
|
|
2482
|
+
find(visitor: (v: T) => boolean): T;
|
|
2483
|
+
sort(compare: (v1: T, v2: T) => number): ElementPool<T>;
|
|
2484
|
+
map(callback: (v: T) => any): any[];
|
|
2485
|
+
setRemoveDelay(v: number): ElementPool<T>;
|
|
2486
|
+
removeLater(v: RmElement, duration: number): void;
|
|
2487
|
+
private $_create;
|
|
2488
|
+
_getElementId(view: T): void;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
declare class PathBuilder {
|
|
2492
|
+
private _path;
|
|
2493
|
+
clear(): PathBuilder;
|
|
2494
|
+
end(close?: boolean): string;
|
|
2495
|
+
close(): string;
|
|
2496
|
+
move(x: number | IPoint, y?: number): PathBuilder;
|
|
2497
|
+
moveBy(x: number | IPoint, y?: number): PathBuilder;
|
|
2498
|
+
movep(x: number | IPoint, y?: number): PathBuilder;
|
|
2499
|
+
line(x: number | IPoint, y?: number): PathBuilder;
|
|
2500
|
+
linep(x: number | IPoint, y?: number): PathBuilder;
|
|
2501
|
+
curve(cx1: number, cy1: number, cx2: number, cy2: number, x: number, y: number): PathBuilder;
|
|
2502
|
+
q(x1: number, y1: number, x2: number, y2: number): PathBuilder;
|
|
2503
|
+
rect(x: number, y: number, width: number, height: number): PathBuilder;
|
|
2504
|
+
lines(...pts: (number | IPoint)[]): PathBuilder;
|
|
2505
|
+
polygon(...pts: (number | IPoint)[]): PathBuilder;
|
|
2506
|
+
circle(cx: number, cy: number, rd: number): PathBuilder;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
type RmAnimationEndHandler = (ani: RmAnimation) => void;
|
|
2510
|
+
declare abstract class RmAnimation {
|
|
2511
|
+
static readonly DURATION = 700;
|
|
2512
|
+
static readonly SHORT_DURATION = 300;
|
|
2513
|
+
delay: number;
|
|
2514
|
+
duration: number;
|
|
2515
|
+
easing: string;
|
|
2516
|
+
endHandler: RmAnimationEndHandler;
|
|
2517
|
+
private _easing;
|
|
2518
|
+
private _started;
|
|
2519
|
+
private _timer;
|
|
2520
|
+
private _ani;
|
|
2521
|
+
private _handler;
|
|
2522
|
+
setDuration(value: number): RmAnimation;
|
|
2523
|
+
start(endHandler?: RmAnimationEndHandler): RmAnimation;
|
|
2524
|
+
stop(): void;
|
|
2525
|
+
protected _start(duration: number, delay?: number, easing?: string): void;
|
|
2526
|
+
protected _stop(): void;
|
|
2527
|
+
protected _doStart(): void;
|
|
2528
|
+
protected _doStop(): void;
|
|
2529
|
+
protected _canUpdate(): boolean;
|
|
2530
|
+
protected abstract _doUpdate(rate: number): boolean;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
interface ILine {
|
|
2534
|
+
x1: number;
|
|
2535
|
+
y1: number;
|
|
2536
|
+
x2: number;
|
|
2537
|
+
y2: number;
|
|
2538
|
+
}
|
|
2539
|
+
declare class LineElement extends PathElement {
|
|
2540
|
+
constructor(doc: Document, styleName?: string, line?: ILine);
|
|
2541
|
+
setLine(x1: ILine | number, y1?: number, x2?: number, y2?: number): void;
|
|
2542
|
+
setVLine(x: number, y1: number, y2: number): void;
|
|
2543
|
+
setVLineC(x: number, y1: number, y2: number): void;
|
|
2544
|
+
setHLine(y: number, x1: number, x2: number): void;
|
|
2545
|
+
setHLineC(y: number, x1: number, x2: number): void;
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
type ShapeDrawer = (rd: number, rd2: number) => (string | number)[];
|
|
2549
|
+
|
|
2550
|
+
declare class ImageElement extends RmElement {
|
|
2551
|
+
private _dirty;
|
|
2552
|
+
private _bounds;
|
|
2553
|
+
private _proxy;
|
|
2554
|
+
onloadProxy: () => void;
|
|
2555
|
+
constructor(doc: Document, full: boolean, styleName?: string);
|
|
2556
|
+
get url(): string;
|
|
2557
|
+
set url(value: string);
|
|
2558
|
+
setImage(url: string, width: number, height: number): boolean;
|
|
2559
|
+
bbox(): IRect;
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
declare class LabelElement extends GroupElement {
|
|
2563
|
+
private _back;
|
|
2564
|
+
_outline: TextElement;
|
|
2565
|
+
_text: TextElement;
|
|
2566
|
+
_icon: ImageElement;
|
|
2567
|
+
private _model;
|
|
2568
|
+
private _box;
|
|
2569
|
+
constructor(doc: Document, styleName: string);
|
|
2570
|
+
setText(s: string): LabelElement;
|
|
2571
|
+
setModel(doc: Document, model: IconedText, icon: string, contrastTarget: Element): LabelElement;
|
|
2572
|
+
setContrast(target: Element): LabelElement;
|
|
2573
|
+
layout(): LabelElement;
|
|
2574
|
+
bbox(): IRect;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
declare class HoverAnimation extends RmAnimation {
|
|
2578
|
+
private _series;
|
|
2579
|
+
_focused: boolean;
|
|
2580
|
+
_marker: MarkerSeriesPointView;
|
|
2581
|
+
constructor(sv: SeriesView<Series>, marker: MarkerSeriesPointView, focused: boolean, endHandler: RmAnimationEndHandler);
|
|
2582
|
+
protected _doStart(): void;
|
|
2583
|
+
protected _doUpdate(rate: number): boolean;
|
|
2584
|
+
protected _doStop(): void;
|
|
2585
|
+
}
|
|
2586
|
+
interface IPointView {
|
|
2587
|
+
point: DataPoint;
|
|
2588
|
+
tooltipColor(): string;
|
|
2589
|
+
tooltipPos?(): IPoint;
|
|
2590
|
+
saveStyles(): void;
|
|
2591
|
+
restoreStyles(): void;
|
|
2592
|
+
}
|
|
2593
|
+
declare class PointViewPool<T extends RmElement & IPointView> extends ElementPool<T> {
|
|
2594
|
+
constructor(owner: RmElement, creator: {
|
|
2595
|
+
new (doc: Document, group?: boolean): T;
|
|
2596
|
+
});
|
|
2597
|
+
_getElementId(view: T): number;
|
|
2598
|
+
}
|
|
2599
|
+
declare class PointLabelView extends LabelElement {
|
|
2600
|
+
point: DataPoint;
|
|
2601
|
+
constructor(doc: Document);
|
|
2602
|
+
}
|
|
2603
|
+
declare class PointLabelContainer extends LayerElement {
|
|
2604
|
+
private _labels;
|
|
2605
|
+
private _maps;
|
|
2606
|
+
constructor(doc: Document, styleName: string);
|
|
2607
|
+
isEmpty(): boolean;
|
|
2608
|
+
clear(): void;
|
|
2609
|
+
private $_prepareLabel;
|
|
2610
|
+
prepare(doc: Document, owner: SeriesView): void;
|
|
2611
|
+
get(point: DataPoint, index: number): PointLabelView;
|
|
2612
|
+
removePoint(p: DataPoint, delay: number): void;
|
|
2613
|
+
}
|
|
2614
|
+
declare class PointCalloutView extends GroupElement {
|
|
2615
|
+
private _line;
|
|
2616
|
+
private _dummy;
|
|
2617
|
+
private _anchor;
|
|
2618
|
+
point: DataPoint;
|
|
2619
|
+
index: number;
|
|
2620
|
+
constructor(doc: Document);
|
|
2621
|
+
render(model: DataPointCallout, point: DataPoint, coords: number[], pointColor: string): this;
|
|
2622
|
+
setColor(color: string): this;
|
|
2623
|
+
}
|
|
2624
|
+
declare class CalloutMaskView extends MaskElement {
|
|
2625
|
+
private _back;
|
|
2626
|
+
private _mask;
|
|
2627
|
+
constructor(doc: Document);
|
|
2628
|
+
setBackground(r: IRect): this;
|
|
2629
|
+
setCircle(cx: number, cy: number, rd: number): this;
|
|
2630
|
+
setRects(r1: IRect, r2?: IRect): this;
|
|
2631
|
+
}
|
|
2632
|
+
declare class PointCalloutContainer extends LayerElement {
|
|
2633
|
+
private _maskLayer;
|
|
2634
|
+
private _masks;
|
|
2635
|
+
private _callouts;
|
|
2636
|
+
private _map;
|
|
2637
|
+
constructor(doc: Document, styleName: string);
|
|
2638
|
+
isEmpty(): boolean;
|
|
2639
|
+
clear(): void;
|
|
2640
|
+
prepare(doc: Document, owner: SeriesView): void;
|
|
2641
|
+
get(point: DataPoint): PointCalloutView;
|
|
2642
|
+
setMask(cv: PointCalloutView, pts: number[]): CalloutMaskView;
|
|
2643
|
+
}
|
|
2644
|
+
declare abstract class PointElement<T extends DataPoint = DataPoint> extends PathElementEx implements IPointView {
|
|
2645
|
+
point: T;
|
|
2646
|
+
constructor(doc: Document, group?: boolean);
|
|
2647
|
+
tooltipColor(): string;
|
|
2648
|
+
protected _drawSpline(pts: {
|
|
2649
|
+
x: number;
|
|
2650
|
+
y: number;
|
|
2651
|
+
}[], start: number, end: number, sb: PathBuilder): void;
|
|
2652
|
+
}
|
|
2653
|
+
declare class PointContainer extends LayerElement {
|
|
2654
|
+
}
|
|
2655
|
+
type PointPositioner = (x: number, y: number, wPoint: number, hPoint: number) => IPoint;
|
|
2656
|
+
type LabelPositioner = (x: number, y: number, rLabel: IRect, wPoint: number, hPoint: number, off: number) => IPoint;
|
|
2657
|
+
declare abstract class SeriesView<T extends Series = Series> extends ContentView<T> {
|
|
2658
|
+
static readonly POINT_CLASS = "rm-point";
|
|
2659
|
+
static readonly DATA_HOVER = "hover";
|
|
2660
|
+
static readonly DATA_UNHOVER = "unhover";
|
|
2661
|
+
static readonly LEGEND_MARKER = "rm-legend-item-marker";
|
|
2662
|
+
static register(...clses: [typeof Series<SeriesOptions>, typeof SeriesView<Series>][]): void;
|
|
2663
|
+
static seriesOf(pv: RmElement): SeriesView;
|
|
2664
|
+
private static _createDrawers;
|
|
2665
|
+
private static _drawers;
|
|
2666
|
+
static getDrawer(shape: string): ShapeDrawer;
|
|
2667
|
+
protected _pointPositioner: {
|
|
2668
|
+
[pos: string]: PointPositioner;
|
|
2669
|
+
};
|
|
2670
|
+
protected _labelPositioner: {
|
|
2671
|
+
[pos: string]: LabelPositioner;
|
|
2672
|
+
};
|
|
2673
|
+
_second: boolean;
|
|
2674
|
+
_pointLayer: LayerElement;
|
|
2675
|
+
_pointContainer: PointContainer;
|
|
2676
|
+
_calloutContainer: PointCalloutContainer;
|
|
2677
|
+
_labelContainer: PointLabelContainer;
|
|
2678
|
+
protected _visPoints: DataPoint[];
|
|
2679
|
+
private _growRate;
|
|
2680
|
+
private _posRate;
|
|
2681
|
+
protected _prevRate: number;
|
|
2682
|
+
_animations: Animation[];
|
|
2683
|
+
_hoverAnis: HoverAnimation[];
|
|
2684
|
+
_hoverPts: IPointView[];
|
|
2685
|
+
protected _wBody: number;
|
|
2686
|
+
protected _hBody: number;
|
|
2687
|
+
_scale: number;
|
|
2688
|
+
protected _scaler: (coord: MapCoord) => MapCoord;
|
|
2689
|
+
_aniOpacity: number;
|
|
2690
|
+
constructor(doc: Document, className: string, needLabels?: boolean);
|
|
2691
|
+
protected _setCalcedColor(model: T, dom: Element): void;
|
|
2692
|
+
protected _setModelColor(color: string): void;
|
|
2693
|
+
prepare(doc: Document, model: T): void;
|
|
2694
|
+
prepareLayout(doc: Document): void;
|
|
2695
|
+
render(wBody: number, hBody: number): void;
|
|
2696
|
+
reset(): void;
|
|
2697
|
+
isPointLabelVisible(p: DataPoint): boolean;
|
|
2698
|
+
isPointCalloutVisible(p: DataPoint): boolean;
|
|
2699
|
+
setScaler(scaler: (coord: MapCoord) => MapCoord): void;
|
|
2700
|
+
getPointView(dom: Element): IPointView;
|
|
2701
|
+
pointerMoved(x: number, y: number, dom: Element): boolean;
|
|
2702
|
+
setHoverStyle(pv: RmElement): void;
|
|
2703
|
+
defaultAnimation(): string;
|
|
2704
|
+
setGrowRate(rate: number): void;
|
|
2705
|
+
setPosRate(rate: number): void;
|
|
2706
|
+
setPrevRate(rate: number): void;
|
|
2707
|
+
pointByDom(elt: Element): IPointView;
|
|
2708
|
+
click(elt: Element): void;
|
|
2709
|
+
select(elt: Element, clear: boolean): void;
|
|
2710
|
+
toggleSelect(elt: Element): void;
|
|
2711
|
+
runPointAddAnimation(p: DataPoint): void;
|
|
2712
|
+
protected abstract _doPrepeare(doc: Document, model: T, dataDirty: boolean): void;
|
|
2713
|
+
protected abstract _doRender(width: number, height: number): void;
|
|
2714
|
+
protected abstract _doReset(): void;
|
|
2715
|
+
_animating(): boolean;
|
|
2716
|
+
protected _getPointPositioner(pos: PointViewPosition, autoPos: string): PointPositioner;
|
|
2717
|
+
protected _getLabelPositioner(pos: PointLabelPosition, autoPos: string): LabelPositioner;
|
|
2718
|
+
protected _labelViews(): PointLabelContainer;
|
|
2719
|
+
protected _calloutViews(): PointCalloutContainer;
|
|
2720
|
+
protected _getPointPool(): PointViewPool<PointElement>;
|
|
2721
|
+
protected _collectVisPoints(model: T): DataPoint[];
|
|
2722
|
+
protected _setPointColor(v: RmElement, color: string): void;
|
|
2723
|
+
protected _setPointStyle(v: RmElement, model: T, p: DataPoint): void;
|
|
2724
|
+
protected _doPointerMoved(x: number, y: number, dom: Element): boolean;
|
|
2725
|
+
protected _getGrowRate(): number;
|
|
2726
|
+
protected _doViewRateChanged(rate: number): void;
|
|
2727
|
+
protected _doPosRateChanged(rate: number): void;
|
|
2728
|
+
protected _doPrevRateChanged(rate: number): void;
|
|
2729
|
+
protected _getShowAnimation(): RmAnimation;
|
|
2730
|
+
protected _runShowEffect(firstTime: boolean): void;
|
|
2731
|
+
_animationStarted(ani: Animation): void;
|
|
2732
|
+
_animationFinished(ani: Animation): void;
|
|
2733
|
+
protected _layoutLabel(lv: PointLabelView, parent: Element): PointLabelView;
|
|
2734
|
+
protected _legendColorProp(): string;
|
|
2735
|
+
protected _legendColorProp2(): string;
|
|
2736
|
+
protected _doPointClicked(view: IPointView): void;
|
|
2737
|
+
}
|
|
2738
|
+
declare abstract class MarkerSeriesPointView<T extends MarkerSeriesPoint = MarkerSeriesPoint> extends PointElement<T> implements IPointView {
|
|
2739
|
+
beginHover(series: SeriesView, focused: boolean): void;
|
|
2740
|
+
setHoverRate(series: SeriesView, focused: boolean, rate: number): void;
|
|
2741
|
+
endHover(series: SeriesView, focused: boolean): void;
|
|
2742
|
+
distance(rd: number, x: number, y: number): number;
|
|
2743
|
+
}
|
|
2744
|
+
declare abstract class MarkerSeriesView<T extends MarkerSeries = MarkerSeries> extends SeriesView<T> {
|
|
2745
|
+
protected _markers: PointViewPool<MarkerSeriesPointView<MarkerSeriesPoint>>;
|
|
2746
|
+
constructor(doc: Document, styleName: string);
|
|
2747
|
+
protected abstract _createMarkers(container: RmElement): PointViewPool<MarkerSeriesPointView<MarkerSeriesPoint>>;
|
|
2748
|
+
getHintDistance(): number;
|
|
2749
|
+
protected _getPointPool(): PointViewPool<PointElement>;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
interface IBodyViewOwner {
|
|
2753
|
+
showTooltip(series: Series, pv: IPointView, map: RmElement, p: IPoint): void;
|
|
2754
|
+
hideTooltip(): void;
|
|
2755
|
+
tooltipVisible(): boolean;
|
|
2756
|
+
getScaleView(scale: ColorScale): ColorScaleView;
|
|
2757
|
+
}
|
|
2758
|
+
declare class BodyView extends ChartElement<Body> implements IAnnotationAnchorOwner {
|
|
2759
|
+
private _owner;
|
|
2760
|
+
private _back;
|
|
2761
|
+
private _mapBack;
|
|
2762
|
+
private _contentLayer;
|
|
2763
|
+
private _axisGuideContainer;
|
|
2764
|
+
private _secondAxisGuideContainer;
|
|
2765
|
+
private _seriesContainer;
|
|
2766
|
+
private _secondContainer;
|
|
2767
|
+
private _annotationContainer;
|
|
2768
|
+
private _frontAnnotationContainer;
|
|
2769
|
+
_annotationViews: AnnotationView<Annotation>[];
|
|
2770
|
+
private _annotationMap;
|
|
2771
|
+
private _annotations;
|
|
2772
|
+
private _frontAxisGuideContainer;
|
|
2773
|
+
private _secondFrontAxisGuideContainer;
|
|
2774
|
+
private _crosshairView;
|
|
2775
|
+
private _clip;
|
|
2776
|
+
private _clipMap;
|
|
2777
|
+
private _requestShow;
|
|
2778
|
+
private _transformInfo;
|
|
2779
|
+
private _mousePos;
|
|
2780
|
+
private _prevPrj;
|
|
2781
|
+
constructor(doc: Document, owner: IBodyViewOwner);
|
|
2782
|
+
getAnnotationAnchor(model: any): RmElement;
|
|
2783
|
+
get transformInfo(): IBodyTransform;
|
|
2784
|
+
get isProjectionChanged(): boolean;
|
|
2785
|
+
getSeries(series: Series): SeriesView<Series<SeriesOptions>>;
|
|
2786
|
+
canScroll(): boolean;
|
|
2787
|
+
prepare(doc: Document, model: Body): void;
|
|
2788
|
+
protected _doMeasure(doc: Document, model: Body, hintWidth: number, hintHeight: number): ISize;
|
|
2789
|
+
protected _doLayout(param: any): void;
|
|
2790
|
+
afterRender(): void;
|
|
2791
|
+
clean(): void;
|
|
2792
|
+
reset(): void;
|
|
2793
|
+
getTooltipPos(): IPoint;
|
|
2794
|
+
pointerMoved(x: number, y: number, target: EventTarget): boolean;
|
|
2795
|
+
seriesByDom(dom: Element): SeriesView;
|
|
2796
|
+
showSeries(series: Series): void;
|
|
2797
|
+
hideSeries(series: Series): void;
|
|
2798
|
+
private pointToMap;
|
|
2799
|
+
private $_prepareMeasureSeries;
|
|
2800
|
+
private $_prepareLayoutSeries;
|
|
2801
|
+
private $_prepareAnnotations;
|
|
2802
|
+
private $_layoutAnnotations;
|
|
2803
|
+
private $_layoutAxisGuides;
|
|
2804
|
+
private $_doClipPathLayout;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
declare class TitleView extends BoundableElement<Title> {
|
|
2808
|
+
isSub: boolean;
|
|
2809
|
+
static readonly TITLE_CLASS = "rm-title";
|
|
2810
|
+
static readonly SUBTITLE_CLASS = "rm-subtitle";
|
|
2811
|
+
private _textView;
|
|
2812
|
+
private _richText;
|
|
2813
|
+
constructor(doc: Document, isSub: boolean);
|
|
2814
|
+
protected _marginable(): boolean;
|
|
2815
|
+
protected _setBackgroundStyle(back: RectElement): void;
|
|
2816
|
+
protected _doMeasure(doc: Document, model: Title, hintWidth: number, hintHeight: number): ISize;
|
|
2817
|
+
protected _doLayout(): void;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
declare class ButtonElement extends RmElement {
|
|
2821
|
+
static readonly STYLE = "rm-button";
|
|
2822
|
+
static readonly BACK_STYLE = "rm-button-background";
|
|
2823
|
+
private _back;
|
|
2824
|
+
private _textView;
|
|
2825
|
+
constructor(doc: Document, text: string, style?: string);
|
|
2826
|
+
get text(): string;
|
|
2827
|
+
setText(text: string): void;
|
|
2828
|
+
layout(sz?: ISize, style?: SVGStyleOrClass): void;
|
|
2829
|
+
click(): boolean;
|
|
2830
|
+
setVisible(value: boolean): boolean;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
declare class PanelButtonView extends ButtonElement {
|
|
2834
|
+
callback: () => void;
|
|
2835
|
+
constructor(doc: Document, text: string, callback: () => void);
|
|
2836
|
+
click(): boolean;
|
|
2837
|
+
}
|
|
2838
|
+
declare abstract class BodyPanelView<T extends BodyPanel = BodyPanel> extends ChartElement<T> {
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
declare class DrilldownPanelView extends BodyPanelView<DrilldownPanel> {
|
|
2842
|
+
private _btnBack;
|
|
2843
|
+
private _textViews;
|
|
2844
|
+
private _seperators;
|
|
2845
|
+
private _history;
|
|
2846
|
+
constructor(doc: Document);
|
|
2847
|
+
getButton(dom: Element): PanelButtonView;
|
|
2848
|
+
click(dom: Element): boolean;
|
|
2849
|
+
protected _doMeasure(doc: Document, model: DrilldownPanel, hintWidth: number, hintHeight: number): ISize;
|
|
2850
|
+
protected _doLayout(param: any): void;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
declare class CreditView extends ChartElement<Credits> {
|
|
2854
|
+
private _textView;
|
|
2855
|
+
constructor(doc: Document);
|
|
2856
|
+
click(dom: Element): void;
|
|
2857
|
+
protected _doMeasure(doc: Document, model: Credits, intWidth: number, hintHeight: number): ISize;
|
|
2858
|
+
}
|
|
2859
|
+
declare class ChartView extends LayerElement implements IAnnotationAnchorOwner {
|
|
2860
|
+
private _model;
|
|
2861
|
+
private _annotationContainer;
|
|
2862
|
+
private _bodyView;
|
|
2863
|
+
private _titleSectionView;
|
|
2864
|
+
private _scaleLayer;
|
|
2865
|
+
private _colorScaleMap;
|
|
2866
|
+
private _bubbleScaleMap;
|
|
2867
|
+
private _legendSectionView;
|
|
2868
|
+
private _frontAnnotationContainer;
|
|
2869
|
+
private _annotationViews;
|
|
2870
|
+
private _annotationMap;
|
|
2871
|
+
private _annotations;
|
|
2872
|
+
private _zoomPanelView;
|
|
2873
|
+
private _drilldownPanelView;
|
|
2874
|
+
private _mapScaleView;
|
|
2875
|
+
private _creditView;
|
|
2876
|
+
private _tooltipView;
|
|
2877
|
+
constructor(doc: Document);
|
|
2878
|
+
getAnnotationAnchor(model: any): RmElement;
|
|
2879
|
+
titleView(): TitleView;
|
|
2880
|
+
subtitleView(): TitleView;
|
|
2881
|
+
legendView(): LegendView;
|
|
2882
|
+
bodyView(): BodyView;
|
|
2883
|
+
drilldownPanelView(): DrilldownPanelView;
|
|
2884
|
+
measure(doc: Document, m: ChartObject, hintWidth: number, hintHeight: number): void;
|
|
2885
|
+
layout(): void;
|
|
2886
|
+
showTooltip(series: Series, pv: IPointView, map: BodyView, p: IPoint): void;
|
|
2887
|
+
tooltipVisible(): boolean;
|
|
2888
|
+
hideTooltip(): void;
|
|
2889
|
+
clean(): void;
|
|
2890
|
+
reset(): void;
|
|
2891
|
+
legendByDom(dom: Element): LegendItem;
|
|
2892
|
+
seriesByDom(dom: Element): SeriesView;
|
|
2893
|
+
creditByDom(dom: Element): CreditView;
|
|
2894
|
+
getScaleView(scale: ColorScale): ColorScaleView;
|
|
2895
|
+
pointerMoved(x: number, y: number, target: EventTarget): void;
|
|
2896
|
+
getButton(dom: Element): ButtonElement;
|
|
2897
|
+
buttonClicked(button: ButtonElement): void;
|
|
2898
|
+
updateAnnotation(anno: Annotation): void;
|
|
2899
|
+
isAnimating(): void;
|
|
2900
|
+
private $_prepareAnnotations;
|
|
2901
|
+
private $_layoutAnnotations;
|
|
2902
|
+
private $_layoutPanel;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
declare class ChartControl extends RmControl implements IMapChartEvents {
|
|
2906
|
+
private _chart;
|
|
2907
|
+
private _chartView;
|
|
2908
|
+
constructor(doc: Document, container: string | HTMLDivElement);
|
|
2909
|
+
protected _initControl(document: Document, container: string | HTMLDivElement, className: string): void;
|
|
2910
|
+
onModelChanged(chart: ChartObject, item: ChartItem<ChartItemOptions>, tag: any): void;
|
|
2911
|
+
onProjectionChanged(chart: ChartObject, projection: MapProjection): void;
|
|
2912
|
+
onMapChanged(chart: ChartObject, map: MapModel): void;
|
|
2913
|
+
onZoomChanged(chart: ChartObject, oldZoom: number): void;
|
|
2914
|
+
onPointAdded(chart: ChartObject, series: Series, p: DataPoint, animate: boolean): void;
|
|
2915
|
+
onRequestRender(chart: ChartObject, now: boolean): void;
|
|
2916
|
+
onRequestShowSeries(chart: ChartObject, series: Series, visible: boolean): void;
|
|
2917
|
+
onExportRequest(chart: ChartObject, options: ExportOptions): void;
|
|
2918
|
+
get chart(): MapChart;
|
|
2919
|
+
set chart(value: MapChart);
|
|
2920
|
+
get model(): ChartObject;
|
|
2921
|
+
changeModel(model: ChartObject, oldModel: ChartObject): void;
|
|
2922
|
+
chartView(): ChartView;
|
|
2923
|
+
refresh(): void;
|
|
2924
|
+
use(_module: any): void;
|
|
2925
|
+
protected _creatDefaultTool(): MapTool;
|
|
2926
|
+
protected _doBeforeRender(root: RmElement): void;
|
|
2927
|
+
protected _doRender(bounds: IRect): void;
|
|
2928
|
+
protected _doAfterRender(): void;
|
|
2929
|
+
private _loadModules;
|
|
2930
|
+
private _export;
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
declare abstract class RmControl extends RmObject {
|
|
2934
|
+
static readonly CLASS_NAME = "rm-control";
|
|
2935
|
+
static readonly SHADOW_FILTER = "rm-shadow-filter";
|
|
2936
|
+
private _activeTool;
|
|
2937
|
+
private _container;
|
|
2938
|
+
private _dom;
|
|
2939
|
+
private _htmlRoot;
|
|
2940
|
+
private _debugger;
|
|
2941
|
+
private _svg;
|
|
2942
|
+
private _defs;
|
|
2943
|
+
private _root;
|
|
2944
|
+
private _inited;
|
|
2945
|
+
private _testing;
|
|
2946
|
+
private _dirty;
|
|
2947
|
+
private _requestTimer;
|
|
2948
|
+
private _defaultTool;
|
|
2949
|
+
private _tool;
|
|
2950
|
+
private _invalidElements;
|
|
2951
|
+
private _toAnimation;
|
|
2952
|
+
private _invalidateLock;
|
|
2953
|
+
private _lockDirty;
|
|
2954
|
+
private _cssVars;
|
|
2955
|
+
loaded: boolean;
|
|
2956
|
+
_padding: ISides;
|
|
2957
|
+
_scrolling: boolean;
|
|
2958
|
+
constructor(doc: Document, container: string | HTMLDivElement, className?: string);
|
|
2959
|
+
protected _doDestory(): void;
|
|
2960
|
+
isInited(): boolean;
|
|
2961
|
+
isTesting(): boolean;
|
|
2962
|
+
doc(): Document;
|
|
2963
|
+
dom(): HTMLElement;
|
|
2964
|
+
width(): number;
|
|
2965
|
+
height(): number;
|
|
2966
|
+
contentWidth(): number;
|
|
2967
|
+
contentHeight(): number;
|
|
2968
|
+
contentRight(): number;
|
|
2969
|
+
clipContainer(): SVGElement;
|
|
2970
|
+
activeTool(): RmTool<ChartControl>;
|
|
2971
|
+
setSctiveTool(value: RmTool<ChartControl>): void;
|
|
2972
|
+
clearDefs(): void;
|
|
2973
|
+
private $_clearDefs;
|
|
2974
|
+
clearAssetDefs(): void;
|
|
2975
|
+
clearTemporaryDefs(): void;
|
|
2976
|
+
appendDom<T extends HTMLElement>(elt: T): T;
|
|
2977
|
+
addElement<T extends RmElement>(elt: T): T;
|
|
2978
|
+
removeElement(elt: RmElement): void;
|
|
2979
|
+
invalidate(force?: boolean): void;
|
|
2980
|
+
invalidateLayout(force?: boolean): void;
|
|
2981
|
+
setLock(): void;
|
|
2982
|
+
releaseLock(validate?: boolean): void;
|
|
2983
|
+
lock(func: (control: RmControl) => void): void;
|
|
2984
|
+
silentLock(func: (control: RmControl) => void): void;
|
|
2985
|
+
getBounds(): DOMRect;
|
|
2986
|
+
setAnimation(to?: number): void;
|
|
2987
|
+
fling(distance: number, duration: number): void;
|
|
2988
|
+
getCssVar(name: string): string;
|
|
2989
|
+
addDef(element: Element): void;
|
|
2990
|
+
removeDef(element: Element | string): void;
|
|
2991
|
+
clipBounds(x?: number, y?: number, width?: number, height?: number, rd?: number): ClipRectElement;
|
|
2992
|
+
clip<T extends ClipElement>(clip: T): T;
|
|
2993
|
+
protected _setTesting(): void;
|
|
2994
|
+
protected _setSize(w: number, h: number): void;
|
|
2995
|
+
private $_addListener;
|
|
2996
|
+
protected _resigterEventHandlers(dom: HTMLElement): void;
|
|
2997
|
+
protected _unresigterEventHandlers(dom: HTMLElement): void;
|
|
2998
|
+
protected abstract _creatDefaultTool(): RmTool<ChartControl>;
|
|
2999
|
+
protected _prepareRenderers(dom: HTMLElement): void;
|
|
3000
|
+
protected _initControl(document: Document, container: string | HTMLDivElement, className: string): void;
|
|
3001
|
+
protected _initDefs(doc: Document, defs: SVGElement): void;
|
|
3002
|
+
protected _render(): void;
|
|
3003
|
+
private $_requestRender;
|
|
3004
|
+
updateNow(): void;
|
|
3005
|
+
private $_render;
|
|
3006
|
+
protected _setBackgroundStyle(style: CSSStyleDeclaration): void;
|
|
3007
|
+
setDebug(message: any): void;
|
|
3008
|
+
protected abstract _doRender(bounds: IRect): void;
|
|
3009
|
+
protected _doBeforeRender(root: RmElement): void;
|
|
3010
|
+
protected _doAfterRender(): void;
|
|
3011
|
+
protected _doClick(event: PointerEvent): void;
|
|
3012
|
+
protected _doDblClick(event: PointerEvent): void;
|
|
3013
|
+
protected _doTouchStart(event: TouchEvent): void;
|
|
3014
|
+
protected _doTouchMove(event: TouchEvent): boolean;
|
|
3015
|
+
protected _doTouchEnd(event: TouchEvent): void;
|
|
3016
|
+
protected _doPointerDown(event: PointerEvent): boolean;
|
|
3017
|
+
protected _doPointerMove(event: PointerEvent): void;
|
|
3018
|
+
protected _doPointerUp(event: PointerEvent): void;
|
|
3019
|
+
protected _doPointerCancel(event: PointerEvent): void;
|
|
3020
|
+
protected _doPointerLeave(event: PointerEvent): void;
|
|
3021
|
+
protected _doKeyPress(event: KeyboardEvent): void;
|
|
3022
|
+
protected _doWheel(event: WheelEvent): void;
|
|
3023
|
+
protected _windowResizeHandler: (event: Event) => void;
|
|
3024
|
+
protected _windowResized(): void;
|
|
3025
|
+
private _clickHandler;
|
|
3026
|
+
private _dblClickHandler;
|
|
3027
|
+
private _touchStartHandler;
|
|
3028
|
+
private _touchMoveHandler;
|
|
3029
|
+
private _touchEndHandler;
|
|
3030
|
+
private _pointerDownHandler;
|
|
3031
|
+
private _pointerMoveHandler;
|
|
3032
|
+
private _pointerUpHandler;
|
|
3033
|
+
private _pointerCancelHandler;
|
|
3034
|
+
private _pointerLeaveHandler;
|
|
3035
|
+
private _keyPressHandler;
|
|
3036
|
+
private _wheelHandler;
|
|
3037
|
+
}
|
|
3038
|
+
declare class RmElement extends RmObject {
|
|
3039
|
+
static TESTING: boolean;
|
|
3040
|
+
static DEBUGGING: boolean;
|
|
3041
|
+
static ASSET_KEY: string;
|
|
3042
|
+
static TEMP_KEY: string;
|
|
3043
|
+
static shrink(elts: RmElement[], count: number): void;
|
|
3044
|
+
static expand<T extends RmElement>(parent: RmElement, elts: T[], count: number, creator: () => T): void;
|
|
3045
|
+
static fit<T extends RmElement>(doc: Document, parent: RmElement, elts: T[], count: number, creator: {
|
|
3046
|
+
new (doc: Document, styleName?: string): T;
|
|
3047
|
+
}, styleName: string): void;
|
|
3048
|
+
private _visible;
|
|
3049
|
+
private _x;
|
|
3050
|
+
private _y;
|
|
3051
|
+
private _width;
|
|
3052
|
+
private _height;
|
|
3053
|
+
private _zIndex;
|
|
3054
|
+
private _tx;
|
|
3055
|
+
private _ty;
|
|
3056
|
+
private _scaleX;
|
|
3057
|
+
private _scaleY;
|
|
3058
|
+
private _rotation;
|
|
3059
|
+
private _originX;
|
|
3060
|
+
private _originY;
|
|
3061
|
+
private _matrix;
|
|
3062
|
+
protected _styleName: string;
|
|
3063
|
+
protected _styles: any;
|
|
3064
|
+
protected _styleDirty: boolean;
|
|
3065
|
+
private _dom;
|
|
3066
|
+
private _parent;
|
|
3067
|
+
removing: boolean;
|
|
3068
|
+
constructor(doc: Document, styleName: string, tag?: string);
|
|
3069
|
+
protected _doInitStyles(): void;
|
|
3070
|
+
protected _doDestory(): void;
|
|
3071
|
+
get doc(): Document;
|
|
3072
|
+
get dom(): SVGElement;
|
|
3073
|
+
get parent(): RmElement;
|
|
3074
|
+
get control(): RmControl;
|
|
3075
|
+
get zIndex(): number;
|
|
3076
|
+
set zIndex(value: number);
|
|
3077
|
+
get x(): number;
|
|
3078
|
+
set x(value: number);
|
|
3079
|
+
get tx(): number;
|
|
3080
|
+
get y(): number;
|
|
3081
|
+
set y(value: number);
|
|
3082
|
+
get ty(): number;
|
|
3083
|
+
get width(): number;
|
|
3084
|
+
set width(value: number);
|
|
3085
|
+
get height(): number;
|
|
3086
|
+
set height(value: number);
|
|
3087
|
+
get visible(): boolean;
|
|
3088
|
+
set visible(value: boolean);
|
|
3089
|
+
setVisible(value: boolean): boolean;
|
|
3090
|
+
get rotation(): number;
|
|
3091
|
+
set rotation(value: number);
|
|
3092
|
+
setRotation(originX: number, originY: number, rotation: number): RmElement;
|
|
3093
|
+
getStyle(prop: string): string;
|
|
3094
|
+
hasStyle(className: string): boolean;
|
|
3095
|
+
containsDom(dom: Element): boolean;
|
|
3096
|
+
addDom(dom: SVGElement): SVGElement;
|
|
3097
|
+
add<T extends RmElement>(child: T): T;
|
|
3098
|
+
addAll(...children: RmElement[]): void;
|
|
3099
|
+
insertChild<T extends RmElement>(child: T, before: RmElement): T;
|
|
3100
|
+
insertFirst<T extends RmElement>(child: T): T;
|
|
3101
|
+
removeChild(child: RmElement): void;
|
|
3102
|
+
remove(): RmElement;
|
|
3103
|
+
appendElement(doc: Document, tag: string): SVGElement;
|
|
3104
|
+
insertElement(doc: Document, tag: string, before: Node): SVGElement;
|
|
3105
|
+
moveToLast(child: RmElement): void;
|
|
3106
|
+
getAttr(attr: string): any;
|
|
3107
|
+
setAttr(attr: string, value: any): RmElement;
|
|
3108
|
+
hasAttr(attr: string): boolean;
|
|
3109
|
+
setAttrEx(attr: string, value: any): RmElement;
|
|
3110
|
+
setAttrs(attrs: any): RmElement;
|
|
3111
|
+
unsetAttr(attr: string): RmElement;
|
|
3112
|
+
getBounds(): DOMRect;
|
|
3113
|
+
setBounds(x: number, y: number, width: number, height: number): RmElement;
|
|
3114
|
+
setRect(rect: IRect): RmElement;
|
|
3115
|
+
getRect(): IRect;
|
|
3116
|
+
getSize(): ISize;
|
|
3117
|
+
bbox(): IRect;
|
|
3118
|
+
move(x: number, y: number): RmElement;
|
|
3119
|
+
scale(value: number, yValue?: number): this;
|
|
3120
|
+
trans(x: number, y: number): RmElement;
|
|
3121
|
+
transp(p: IPoint): RmElement;
|
|
3122
|
+
transEx(x: number, y: number, duration?: number, invalidate?: boolean): RmElement;
|
|
3123
|
+
transX(x: number): RmElement;
|
|
3124
|
+
transY(y: number): RmElement;
|
|
3125
|
+
resize(width: number, height: number, attr?: boolean): boolean;
|
|
3126
|
+
appendDom(dom: Node): Node;
|
|
3127
|
+
insertDom(dom: Node, before: Node): Node;
|
|
3128
|
+
clearDom(): void;
|
|
3129
|
+
private _saveStyle;
|
|
3130
|
+
private _saveClass;
|
|
3131
|
+
saveStyles(): void;
|
|
3132
|
+
restoreStyles(): void;
|
|
3133
|
+
internalClearStyles(): void;
|
|
3134
|
+
clearStyles(): boolean;
|
|
3135
|
+
clearStyle(props: string[]): boolean;
|
|
3136
|
+
internalSetStyles(styles: any): void;
|
|
3137
|
+
internalImportantStylesOrClass(style: any): void;
|
|
3138
|
+
setStyles(styles: SVGStyles): boolean;
|
|
3139
|
+
resetStyles(styles: any): boolean;
|
|
3140
|
+
protected _resetClass(): void;
|
|
3141
|
+
setClass(className: string): void;
|
|
3142
|
+
clearStyleAndClass(): void;
|
|
3143
|
+
internalClearStyleAndClass(): void;
|
|
3144
|
+
setStyleOrClass(style: SVGStyleOrClass): void;
|
|
3145
|
+
internalSetStyleOrClass(style: SVGStyleOrClass): void;
|
|
3146
|
+
internalResetStyleOrClass(style: SVGStyleOrClass): void;
|
|
3147
|
+
protected _setBackgroundBorderRadius(value: number): void;
|
|
3148
|
+
setBackStyles(styles: any): boolean;
|
|
3149
|
+
setStyle(prop: string, value: string): boolean;
|
|
3150
|
+
internalSetStyle(prop: string, value: string): void;
|
|
3151
|
+
internalSetImportantStyle(prop: string, value: string): void;
|
|
3152
|
+
setBackStyle(prop: string, value: string): boolean;
|
|
3153
|
+
putStyles(styles: any, buff?: any): any;
|
|
3154
|
+
putStyle(prop: string, value: string, buff?: any): any;
|
|
3155
|
+
setColor(color: string): this;
|
|
3156
|
+
getFill(): any;
|
|
3157
|
+
getStroke(): any;
|
|
3158
|
+
setFill(color: string): this;
|
|
3159
|
+
setStroke(color: string): this;
|
|
3160
|
+
setTransparent(important: boolean): void;
|
|
3161
|
+
textAlign(): Align;
|
|
3162
|
+
setData(data: string, value?: string): void;
|
|
3163
|
+
unsetData(data: string): void;
|
|
3164
|
+
setBoolData(data: string, value: boolean): void;
|
|
3165
|
+
hasData(data: string): boolean;
|
|
3166
|
+
removeLater(delay: number, callback?: (v: RmElement) => void): RmElement;
|
|
3167
|
+
hide(delay: number): RmElement;
|
|
3168
|
+
ignorePointer(): void;
|
|
3169
|
+
invalidate(): void;
|
|
3170
|
+
rotate(angle: number): RmElement;
|
|
3171
|
+
internalRotate(angle: number): void;
|
|
3172
|
+
setCursor(cursor: string): void;
|
|
3173
|
+
clipRect(x: number, y: number, width: number, height: number, rd?: number): ClipRectElement;
|
|
3174
|
+
clipPath(path: Path): ClipPathElement;
|
|
3175
|
+
attachClipPath(clipId: string): void;
|
|
3176
|
+
detachClipPath(): void;
|
|
3177
|
+
private $_setClip;
|
|
3178
|
+
private createClipId;
|
|
3179
|
+
sort(children: RmElement[]): void;
|
|
3180
|
+
getParent<T extends RmElement>(type: {
|
|
3181
|
+
new (): T;
|
|
3182
|
+
}): T;
|
|
3183
|
+
protected _testing(): boolean;
|
|
3184
|
+
protected _doAttached(parent: RmElement): void;
|
|
3185
|
+
protected _doDetached(parent: RmElement): void;
|
|
3186
|
+
protected _updateTransform(): void;
|
|
3187
|
+
}
|
|
3188
|
+
declare class LayerElement extends RmElement {
|
|
3189
|
+
constructor(doc: Document, styleName?: any);
|
|
3190
|
+
}
|
|
3191
|
+
declare class PathElement extends RmElement {
|
|
3192
|
+
_userData: any;
|
|
3193
|
+
private _path;
|
|
3194
|
+
constructor(doc: Document, styleName?: string, path?: Path);
|
|
3195
|
+
path(): string;
|
|
3196
|
+
setPath(path: Path): PathElement;
|
|
3197
|
+
}
|
|
3198
|
+
declare class PathElementEx extends RmElement {
|
|
3199
|
+
group: boolean;
|
|
3200
|
+
_userData: any;
|
|
3201
|
+
private _path;
|
|
3202
|
+
constructor(doc: Document, styleName: string, group?: boolean);
|
|
3203
|
+
path(): string;
|
|
3204
|
+
setPath(path: Path): PathElementEx;
|
|
3205
|
+
}
|
|
3206
|
+
declare class MaskElement extends RmElement {
|
|
3207
|
+
private _id;
|
|
3208
|
+
constructor(doc: Document);
|
|
3209
|
+
get id(): string;
|
|
3210
|
+
}
|
|
3211
|
+
declare class ClipElement extends RmElement {
|
|
3212
|
+
private _id;
|
|
3213
|
+
constructor(doc: Document);
|
|
3214
|
+
get id(): string;
|
|
3215
|
+
}
|
|
3216
|
+
declare class ClipRectElement extends ClipElement {
|
|
3217
|
+
private _rect;
|
|
3218
|
+
constructor(doc: Document, x?: number, y?: number, width?: number, height?: number, rx?: number, ry?: number);
|
|
3219
|
+
setBounds(x: number, y: number, w: number, h: number): RmElement;
|
|
3220
|
+
resize(width: number, height: number, attr?: boolean): boolean;
|
|
3221
|
+
get x(): number;
|
|
3222
|
+
set x(value: number);
|
|
3223
|
+
get y(): number;
|
|
3224
|
+
set y(value: number);
|
|
3225
|
+
get width(): number;
|
|
3226
|
+
set width(value: number);
|
|
3227
|
+
get height(): number;
|
|
3228
|
+
set height(value: number);
|
|
3229
|
+
}
|
|
3230
|
+
declare class ClipPathElement extends ClipElement {
|
|
3231
|
+
private _path;
|
|
3232
|
+
constructor(doc: Document, path?: Path);
|
|
3233
|
+
get path(): PathElement;
|
|
3234
|
+
setPath(path: Path): this;
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
declare enum TextAnchor {
|
|
3238
|
+
START = "start",
|
|
3239
|
+
MIDDLE = "middle",
|
|
3240
|
+
END = "end"
|
|
3241
|
+
}
|
|
3242
|
+
declare enum TextLayout {
|
|
3243
|
+
TOP = "top",
|
|
3244
|
+
MIDDLE = "middle",
|
|
3245
|
+
BOTTOM = "bottom"
|
|
3246
|
+
}
|
|
3247
|
+
declare class TextElement extends RmElement {
|
|
3248
|
+
private _layout;
|
|
3249
|
+
private _dirty;
|
|
3250
|
+
private _text;
|
|
3251
|
+
private _bounds;
|
|
3252
|
+
_lineCount: number;
|
|
3253
|
+
constructor(doc: Document, styleName?: string);
|
|
3254
|
+
get text(): string;
|
|
3255
|
+
set text(value: string);
|
|
3256
|
+
get anchor(): TextAnchor;
|
|
3257
|
+
set anchor(value: TextAnchor);
|
|
3258
|
+
get layout(): TextLayout;
|
|
3259
|
+
set layout(value: TextLayout);
|
|
3260
|
+
get svg(): string;
|
|
3261
|
+
set svg(value: string);
|
|
3262
|
+
get opacity(): number;
|
|
3263
|
+
set opacity(value: number);
|
|
3264
|
+
getAscent(height: number): number;
|
|
3265
|
+
layoutText(lineHeight?: number): void;
|
|
3266
|
+
isFitIn(bounds: number): boolean;
|
|
3267
|
+
calcWidth(): number;
|
|
3268
|
+
calcRangeWidth(start?: number, end?: number): number;
|
|
3269
|
+
truncate(bounds: number, ellipsis: boolean): void;
|
|
3270
|
+
setContrast(target: Element, darkStyle: SVGStyleOrClass, brightStyle: SVGStyleOrClass): TextElement;
|
|
3271
|
+
clearDom(): void;
|
|
3272
|
+
setStyles(styles: any): boolean;
|
|
3273
|
+
setStyle(prop: string, value: string): boolean;
|
|
3274
|
+
bbox(): IRect;
|
|
3275
|
+
getBBoundsTest(): IRect;
|
|
3276
|
+
stain(): void;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
type RichTextParamCallback = (target: any, param: string) => any;
|
|
3280
|
+
interface IRichTextDomain {
|
|
3281
|
+
callback?: RichTextParamCallback;
|
|
3282
|
+
numberFormatter?: NumberFormatter;
|
|
3283
|
+
timeFormatter?: DatetimeFormatter;
|
|
3284
|
+
textFormatter?: TextFormatter;
|
|
3285
|
+
startOfWeek?: number;
|
|
3286
|
+
}
|
|
3287
|
+
declare class Word {
|
|
3288
|
+
text: string;
|
|
3289
|
+
private _literals;
|
|
3290
|
+
tag(): string;
|
|
3291
|
+
parse(str: string): Word;
|
|
3292
|
+
getText(target: any, domain: IRichTextDomain): string;
|
|
3293
|
+
prepareSpan(span: SVGTSpanElement, target: any, domain: IRichTextDomain): SVGTSpanElement;
|
|
3294
|
+
protected _doParse(str: string): Word;
|
|
3295
|
+
}
|
|
3296
|
+
declare class SvgLine {
|
|
3297
|
+
private _words;
|
|
3298
|
+
get words(): Word[];
|
|
3299
|
+
parse(s: string): SvgLine;
|
|
3300
|
+
}
|
|
3301
|
+
declare class SvgRichText {
|
|
3302
|
+
_format: string;
|
|
3303
|
+
lineHeight: number;
|
|
3304
|
+
private _lines;
|
|
3305
|
+
constructor(format?: string);
|
|
3306
|
+
setFormat(value: string): void;
|
|
3307
|
+
lines(): SvgLine[];
|
|
3308
|
+
build(view: TextElement, maxWidth: number, maxHeight: number, target: any, domain: IRichTextDomain): void;
|
|
3309
|
+
layout(tv: TextElement, align: Align, width: number, height: number, pad: Sides): void;
|
|
3310
|
+
$_parse(fmt: string): void;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
declare class DataPointLabel<OP extends DataPointLabelOptions = DataPointLabelOptions> extends IconedText<OP> {
|
|
3314
|
+
static defaults: DataPointLabelOptions;
|
|
3315
|
+
private _point;
|
|
3316
|
+
_domain: IRichTextDomain;
|
|
3317
|
+
getValue(p: DataPoint, index: number): any;
|
|
3318
|
+
getTextDomain(p: DataPoint): IRichTextDomain;
|
|
3319
|
+
getText(value: any): string;
|
|
3320
|
+
isVisible(): boolean;
|
|
3321
|
+
getDefaultIconPos(): IconPosition;
|
|
3322
|
+
protected _doSetSimple(src: any): boolean;
|
|
3323
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3324
|
+
}
|
|
3325
|
+
declare class DataPointAnchorPoint<OP extends CalloutAnchorPointOptions = CalloutAnchorPointOptions> extends ChartItem<OP> {
|
|
3326
|
+
static defaults: CalloutAnchorPointOptions;
|
|
3327
|
+
}
|
|
3328
|
+
declare class DataPointCallout<OP extends DataPointCalloutOptions = DataPointCalloutOptions> extends ChartItem<OP> {
|
|
3329
|
+
series: Series;
|
|
3330
|
+
static defaults: DataPointCalloutOptions;
|
|
3331
|
+
constructor(series: Series);
|
|
3332
|
+
private _anchorPoint;
|
|
3333
|
+
protected _doInit(op: OP): void;
|
|
3334
|
+
get anchorPoint(): DataPointAnchorPoint<CalloutAnchorPointOptions>;
|
|
3335
|
+
}
|
|
3336
|
+
interface ISeries<T extends DataPoint = DataPoint> {
|
|
3337
|
+
options: SeriesOptions;
|
|
3338
|
+
chart: IChart;
|
|
3339
|
+
color?: Color;
|
|
3340
|
+
_idFielder: (src: any) => any;
|
|
3341
|
+
_nameFielder?: (src: any) => string;
|
|
3342
|
+
_valueFielder?: (src: any) => any;
|
|
3343
|
+
_tupleFielder?: (src: any) => any[];
|
|
3344
|
+
_lonFielder?: (src: any) => number;
|
|
3345
|
+
_latFielder?: (src: any) => number;
|
|
3346
|
+
_valuesFielder?: (src: any) => any[];
|
|
3347
|
+
_colorFielder: (src: any) => string;
|
|
3348
|
+
initPoints(source: any[]): T[];
|
|
3349
|
+
followTooltipPointer(): boolean;
|
|
3350
|
+
getValueRange?(): {
|
|
3351
|
+
min: number;
|
|
3352
|
+
max: number;
|
|
3353
|
+
};
|
|
3354
|
+
select(p: ISelectionSource): void;
|
|
3355
|
+
unselect(p: ISelectionSource): void;
|
|
3356
|
+
}
|
|
3357
|
+
declare abstract class Series<OP extends SeriesOptions = SeriesOptions> extends ChartItem<OP> implements ILegendSource, ITooltipContext {
|
|
3358
|
+
static readonly type: string;
|
|
3359
|
+
static register(...clses: typeof Series<SeriesOptions>[]): void;
|
|
3360
|
+
static defaults: SeriesOptions;
|
|
3361
|
+
static getPointTooltipParam(series: Series, point: DataPoint, param: string): any;
|
|
3362
|
+
private _data;
|
|
3363
|
+
private _name;
|
|
3364
|
+
index: number;
|
|
3365
|
+
seriesIndex: number;
|
|
3366
|
+
protected _map: MapModel;
|
|
3367
|
+
protected _mapChanged: boolean;
|
|
3368
|
+
protected _points: DataPointCollection;
|
|
3369
|
+
private _pointLabel;
|
|
3370
|
+
private _callout;
|
|
3371
|
+
_optionsDirty: boolean;
|
|
3372
|
+
_dataSourceDirty: boolean;
|
|
3373
|
+
_zindexDirty: boolean;
|
|
3374
|
+
_maxZindex: number;
|
|
3375
|
+
_runPoints: DataPoint[];
|
|
3376
|
+
_visPoints: DataPoint[];
|
|
3377
|
+
_idFielder: (src: any) => any;
|
|
3378
|
+
_lonFielder: (src: any) => any;
|
|
3379
|
+
_latFielder: (src: any) => any;
|
|
3380
|
+
_nameFielder: (src: any) => string;
|
|
3381
|
+
_valueFielder: (src: any) => any;
|
|
3382
|
+
_colorFielder: (src: any) => string;
|
|
3383
|
+
_runColor: string;
|
|
3384
|
+
_calcedColor: string;
|
|
3385
|
+
private _legendMarker;
|
|
3386
|
+
private _pointLabelCallback;
|
|
3387
|
+
protected _pointArgs: DataPointCallbackArgs;
|
|
3388
|
+
private _argsPoint;
|
|
3389
|
+
private _loaded;
|
|
3390
|
+
ani: RmAnimation;
|
|
3391
|
+
constructor(chart: IChart);
|
|
3392
|
+
protected _doInit(op: SeriesOptions): void;
|
|
3393
|
+
protected _createLabel(chart: IChart): DataPointLabel;
|
|
3394
|
+
getTooltipText(series: ISeries, point: DataPoint): string;
|
|
3395
|
+
getTooltipParam(series: ISeries, point: DataPoint, param: string): any;
|
|
3396
|
+
canHide(): boolean;
|
|
3397
|
+
legendMarker(doc: Document, size: number): RmElement;
|
|
3398
|
+
legendColor(): string;
|
|
3399
|
+
legendLabel(): string;
|
|
3400
|
+
_type(): string;
|
|
3401
|
+
get name(): string;
|
|
3402
|
+
get pointLabel(): DataPointLabel<DataPointLabelOptions>;
|
|
3403
|
+
get map(): MapModel;
|
|
3404
|
+
get callout(): DataPointCallout<DataPointCalloutOptions>;
|
|
3405
|
+
displayName(): string;
|
|
3406
|
+
get data(): any;
|
|
3407
|
+
setData(value: any): void;
|
|
3408
|
+
get pointCount(): number;
|
|
3409
|
+
followTooltipPointer(): boolean;
|
|
3410
|
+
isDataSeries(): boolean;
|
|
3411
|
+
getDetailed(): Series;
|
|
3412
|
+
needMapScale(): boolean;
|
|
3413
|
+
contains(p: DataPoint): boolean;
|
|
3414
|
+
initPoints(source: any[]): DataPoint[];
|
|
3415
|
+
getPoint(index: number): DataPoint;
|
|
3416
|
+
getPointText(p: DataPoint, index: number, label: any): string;
|
|
3417
|
+
getPointCallbackArgs(p: DataPoint): DataPointCallbackArgs;
|
|
3418
|
+
getPointStyle(p: DataPoint): any;
|
|
3419
|
+
getPointLabelStyle(p: DataPoint): any;
|
|
3420
|
+
getRangedColor(p: DataPoint): string;
|
|
3421
|
+
isPointLabelsVisible(): boolean;
|
|
3422
|
+
isPointLabelVisible(p: DataPoint): boolean;
|
|
3423
|
+
pointLabelCount(): number;
|
|
3424
|
+
getLabeledPoints(): DataPoint[];
|
|
3425
|
+
getCallout(): DataPointCallout<DataPointCalloutOptions>;
|
|
3426
|
+
isPointCalloutVisible(): boolean;
|
|
3427
|
+
getLegendSources(list: ILegendSource[]): void;
|
|
3428
|
+
getLabelOff(): number;
|
|
3429
|
+
protected _defLabelOff(): number;
|
|
3430
|
+
setCalcedColor(color: string): void;
|
|
3431
|
+
coordOfArea(id: string): MapCoord;
|
|
3432
|
+
getCoord(p: DataPoint): MapCoord;
|
|
3433
|
+
pointById(id: string): DataPoint;
|
|
3434
|
+
needRemoveAnimation(): boolean;
|
|
3435
|
+
addPoint(source: any, index?: number, duration?: number): DataPoint;
|
|
3436
|
+
removePoint(p: DataPoint | number, duration?: number): void;
|
|
3437
|
+
removeFirst(duration?: number): void;
|
|
3438
|
+
removeLast(duration?: number): void;
|
|
3439
|
+
updatePoint(p: DataPoint | string | number, props: any): boolean;
|
|
3440
|
+
getPointLabels(): DataPointLabel[];
|
|
3441
|
+
getColorScale(): string | number;
|
|
3442
|
+
setOptionsDirty(value: boolean): Series;
|
|
3443
|
+
pointClicked(p: DataPoint): boolean;
|
|
3444
|
+
show(force?: boolean, animate?: boolean): void;
|
|
3445
|
+
hide(animate?: boolean): void;
|
|
3446
|
+
getCalloutShape(p: DataPoint): string;
|
|
3447
|
+
canSelect(): boolean;
|
|
3448
|
+
select(p: ISelectionSource): void;
|
|
3449
|
+
unselect(p: ISelectionSource): void;
|
|
3450
|
+
private $_bringToFront;
|
|
3451
|
+
lock(): void;
|
|
3452
|
+
unlock(): void;
|
|
3453
|
+
protected _doApply(options: SeriesOptions): void;
|
|
3454
|
+
_prepareRender(): void;
|
|
3455
|
+
protected _doAfterRender(): void;
|
|
3456
|
+
protected _doMapChanged(): void;
|
|
3457
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3458
|
+
protected abstract _createPoint(source: any): DataPoint;
|
|
3459
|
+
protected $_addPoint(source: any, i: number): DataPoint;
|
|
3460
|
+
protected _createFielder(f: any): (v: any) => any;
|
|
3461
|
+
protected _createFielders(op: SeriesOptions): void;
|
|
3462
|
+
protected _createLegendMarker(doc: Document, size: number): RmElement;
|
|
3463
|
+
protected _defaultLoadAnimation(): SeriesLoadAnimation;
|
|
3464
|
+
_load(source: any): OP;
|
|
3465
|
+
protected _doLoadData(src: any): any[];
|
|
3466
|
+
private $_loadPoints;
|
|
3467
|
+
protected _doLoadPoints(src: any): void;
|
|
3468
|
+
protected _createPointArgs(): DataPointCallbackArgs;
|
|
3469
|
+
protected _getPointCallbackArgs(args: DataPointCallbackArgs, p: DataPoint): DataPointCallbackArgs;
|
|
3470
|
+
protected _preparePointArgs(args: DataPointCallbackArgs): void;
|
|
3471
|
+
protected _calcMinMax(pts: DataPoint[]): {
|
|
3472
|
+
min: number;
|
|
3473
|
+
max: number;
|
|
3474
|
+
};
|
|
3475
|
+
}
|
|
3476
|
+
declare abstract class ValuePoint extends DataPoint {
|
|
3477
|
+
value: number;
|
|
3478
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
3479
|
+
getValue(): number;
|
|
3480
|
+
getBaseValue(): number;
|
|
3481
|
+
}
|
|
3482
|
+
declare abstract class ValueSeries<OP extends ValueSeriesOptions = ValueSeriesOptions> extends Series<OP> {
|
|
3483
|
+
static defaults: ValueSeriesOptions;
|
|
3484
|
+
protected _createFielders(op: ValueSeriesOptions): void;
|
|
3485
|
+
}
|
|
3486
|
+
declare abstract class MarkerSeriesPoint extends ValuePoint {
|
|
3487
|
+
}
|
|
3488
|
+
declare abstract class MarkerSeries<OP extends MarkerSeriesOptions = MarkerSeriesOptions> extends ValueSeries<OP> {
|
|
3489
|
+
static defaults: MarkerSeriesOptions;
|
|
3490
|
+
}
|
|
3491
|
+
declare class SparkSeriesPoint extends ValuePoint {
|
|
3492
|
+
values: number[];
|
|
3493
|
+
position: PointViewPosition;
|
|
3494
|
+
getPoints(values: number[], minimum: number, maximum: number): number[];
|
|
3495
|
+
getBasePoint(minimum: number, maximum: number, base: number): number;
|
|
3496
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
3497
|
+
}
|
|
3498
|
+
declare class SparkCategoryImpl implements ILegendSource {
|
|
3499
|
+
name: string;
|
|
3500
|
+
color: string;
|
|
3501
|
+
constructor(name: string, color: string);
|
|
3502
|
+
visible: boolean;
|
|
3503
|
+
canHide(): boolean;
|
|
3504
|
+
legendMarker(doc: Document, size: number): RmElement;
|
|
3505
|
+
legendColor(): string;
|
|
3506
|
+
legendLabel(): string;
|
|
3507
|
+
}
|
|
3508
|
+
declare abstract class SparkSeries<OP extends SparkSeriesOptions = SparkSeriesOptions> extends ValueSeries<OP> {
|
|
3509
|
+
static defaults: SparkSeriesOptions;
|
|
3510
|
+
_categories: SparkCategoryImpl[];
|
|
3511
|
+
getMinMax(points: SparkSeriesPoint[]): {
|
|
3512
|
+
min: number;
|
|
3513
|
+
max: number;
|
|
3514
|
+
};
|
|
3515
|
+
protected _doApply(options: SparkSeriesOptions): void;
|
|
3516
|
+
getLegendSources(list: ILegendSource[]): void;
|
|
3517
|
+
private $_parseCategories;
|
|
3518
|
+
}
|
|
3519
|
+
declare abstract class OrthogonalSparkSeriesPoint extends SparkSeriesPoint {
|
|
3520
|
+
}
|
|
3521
|
+
declare abstract class OrthogonalSparkSeries<OP extends OrthogonalSparkSeriesOptions = OrthogonalSparkSeriesOptions> extends SparkSeries<OP> {
|
|
3522
|
+
static readonly DEF_WIDTH = 80;
|
|
3523
|
+
static readonly DEF_HEIGHT = 50;
|
|
3524
|
+
static defaults: OrthogonalSparkSeriesOptions;
|
|
3525
|
+
private _baseLine;
|
|
3526
|
+
_width: number;
|
|
3527
|
+
_height: number;
|
|
3528
|
+
_minValue: number;
|
|
3529
|
+
_maxValue: number;
|
|
3530
|
+
_pointDomain: boolean;
|
|
3531
|
+
protected _doInit(op: OrthogonalSparkSeriesOptions): void;
|
|
3532
|
+
get baseLine(): ChartItem<ChartItemOptions>;
|
|
3533
|
+
getPointExtents(values: number[], seriesExt: {
|
|
3534
|
+
min: number;
|
|
3535
|
+
max: number;
|
|
3536
|
+
}): {
|
|
3537
|
+
min: number;
|
|
3538
|
+
max: number;
|
|
3539
|
+
base: number;
|
|
3540
|
+
};
|
|
3541
|
+
protected _doApply(options: OrthogonalSparkSeriesOptions): void;
|
|
3542
|
+
}
|
|
3543
|
+
declare abstract class GaugePoint extends ValuePoint {
|
|
3544
|
+
position: PointViewPosition;
|
|
3545
|
+
}
|
|
3546
|
+
declare abstract class Gauge<OP extends GaugeOptions = GaugeOptions> extends ValueSeries<OP> {
|
|
3547
|
+
static readonly DEF_SIZE = 60;
|
|
3548
|
+
static defaults: GaugeOptions;
|
|
3549
|
+
_width: number;
|
|
3550
|
+
_height: number;
|
|
3551
|
+
protected _doApply(options: GaugeOptions): void;
|
|
3552
|
+
}
|
|
3553
|
+
declare abstract class ValueGauge<OP extends ValueGaugeOptions = ValueGaugeOptions> extends Gauge<OP> {
|
|
3554
|
+
static defaults: ValueGaugeOptions;
|
|
3555
|
+
private _minValue;
|
|
3556
|
+
private _maxValue;
|
|
3557
|
+
private _min;
|
|
3558
|
+
private _max;
|
|
3559
|
+
getValueRate(value: number): number;
|
|
3560
|
+
protected _doApply(options: ValueGaugeOptions): void;
|
|
3561
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
interface ISelectionSource {
|
|
3565
|
+
setSelected(selected: boolean): void;
|
|
3566
|
+
}
|
|
3567
|
+
interface ISelectionOwner {
|
|
3568
|
+
selectionChanged(selection: MapSelection): void;
|
|
3569
|
+
selectionItemAdded(item: ISelectionSource): void;
|
|
3570
|
+
selectionItemRemoved(item: ISelectionSource): void;
|
|
3571
|
+
selectionCleared(): void;
|
|
3572
|
+
}
|
|
3573
|
+
declare class MapSelection extends RmObject {
|
|
3574
|
+
private _owner;
|
|
3575
|
+
private _items;
|
|
3576
|
+
constructor(owner: ISelectionOwner);
|
|
3577
|
+
get count(): number;
|
|
3578
|
+
get first(): ISelectionSource;
|
|
3579
|
+
get last(): ISelectionSource;
|
|
3580
|
+
get(index: number): ISelectionSource;
|
|
3581
|
+
contains(source: ISelectionSource): boolean;
|
|
3582
|
+
clear(): boolean;
|
|
3583
|
+
add(series: ISeries, source: ISelectionSource, clear?: boolean): boolean;
|
|
3584
|
+
remove(series: ISeries, source: ISelectionSource): boolean;
|
|
3585
|
+
toggle(series: ISeries, source: ISelectionSource): boolean;
|
|
3586
|
+
protected _changed(): void;
|
|
3587
|
+
}
|
|
3588
|
+
|
|
3589
|
+
declare class DataPoint implements ISelectionSource {
|
|
3590
|
+
source?: any;
|
|
3591
|
+
coord: MapCoord;
|
|
3592
|
+
callout: MapCoord[];
|
|
3593
|
+
offset: MapCoord[];
|
|
3594
|
+
readonly pid: number;
|
|
3595
|
+
id: string;
|
|
3596
|
+
index: number;
|
|
3597
|
+
isNull: boolean;
|
|
3598
|
+
name: string;
|
|
3599
|
+
color: string;
|
|
3600
|
+
className: string;
|
|
3601
|
+
visible: boolean;
|
|
3602
|
+
xPos: number;
|
|
3603
|
+
yPos: number;
|
|
3604
|
+
_runColor: string;
|
|
3605
|
+
_zindex: number;
|
|
3606
|
+
private _selected;
|
|
3607
|
+
_deleting: boolean;
|
|
3608
|
+
_prev: any;
|
|
3609
|
+
_vr: number;
|
|
3610
|
+
constructor(source?: any);
|
|
3611
|
+
setSelected(selected: boolean): void;
|
|
3612
|
+
get lon(): number;
|
|
3613
|
+
get lat(): number;
|
|
3614
|
+
ariaHint(): string;
|
|
3615
|
+
labelCount(): number;
|
|
3616
|
+
copy(): any;
|
|
3617
|
+
proxy(): any;
|
|
3618
|
+
assignTo(proxy?: any): any;
|
|
3619
|
+
getProp(fld: string | number): any;
|
|
3620
|
+
parse(series: ISeries): void;
|
|
3621
|
+
protected _doInitValues(): void;
|
|
3622
|
+
getValue(): number;
|
|
3623
|
+
getLabel(index: number): any;
|
|
3624
|
+
updateValues(series: ISeries, values: any): any;
|
|
3625
|
+
protected _valuesChanged(prev: any): boolean;
|
|
3626
|
+
getBaseValue(): number;
|
|
3627
|
+
getParam(param: string): any;
|
|
3628
|
+
getCallout(coord: MapCoord): MapCoord[];
|
|
3629
|
+
protected _assignTo(proxy: any): any;
|
|
3630
|
+
protected _readArray(series: ISeries, v: any[]): void;
|
|
3631
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
3632
|
+
private $_parseCallout;
|
|
3633
|
+
protected _readSingle(v: any): void;
|
|
3634
|
+
}
|
|
3635
|
+
declare class DataPointCollection {
|
|
3636
|
+
protected _owner: ISeries<DataPoint>;
|
|
3637
|
+
private _points;
|
|
3638
|
+
constructor(owner: ISeries<DataPoint>);
|
|
3639
|
+
get count(): number;
|
|
3640
|
+
get first(): DataPoint;
|
|
3641
|
+
get last(): DataPoint;
|
|
3642
|
+
isEmpty(): boolean;
|
|
3643
|
+
getPoints(): DataPoint[];
|
|
3644
|
+
get(index: number): DataPoint;
|
|
3645
|
+
pointById(id: string): DataPoint;
|
|
3646
|
+
contains(p: DataPoint): boolean;
|
|
3647
|
+
load(source: any): void;
|
|
3648
|
+
clear(): void;
|
|
3649
|
+
insert(index: number, p: DataPoint): void;
|
|
3650
|
+
add(p: DataPoint): void;
|
|
3651
|
+
remove(p: DataPoint): boolean;
|
|
3652
|
+
sort(callback: (p1: DataPoint, p2: DataPoint) => number): void;
|
|
3653
|
+
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
interface IChart {
|
|
3657
|
+
options: ChartConfiguration;
|
|
3658
|
+
chartOptions: ChartOptionsOptions;
|
|
3659
|
+
_loading: boolean;
|
|
3660
|
+
map: MapModel;
|
|
3661
|
+
axis: MapAxis;
|
|
3662
|
+
body: Body;
|
|
3663
|
+
_tooltip: Tooltip;
|
|
3664
|
+
_assets: AssetCollection;
|
|
3665
|
+
_seriesIndex: number;
|
|
3666
|
+
selection: MapSelection;
|
|
3667
|
+
width: number;
|
|
3668
|
+
height: number;
|
|
3669
|
+
isGlobe: boolean;
|
|
3670
|
+
firstVisible: Series;
|
|
3671
|
+
firstMapSeries: Series;
|
|
3672
|
+
isDirty: boolean;
|
|
3673
|
+
mapAt(index: number): MapModel;
|
|
3674
|
+
mapByName(name: string): MapModel;
|
|
3675
|
+
getMap(nameOrIndex: string | number): MapModel;
|
|
3676
|
+
getFirstSeries(type: string): Series;
|
|
3677
|
+
animatable(): boolean;
|
|
3678
|
+
loadAnimatable(): boolean;
|
|
3679
|
+
loadBase(source: any, model: string, type: string): any;
|
|
3680
|
+
assignTemplates(target: any): any;
|
|
3681
|
+
projectionChanged(): void;
|
|
3682
|
+
zoomChanged(oldZoom: number): void;
|
|
3683
|
+
seriesByName(series: string): Series;
|
|
3684
|
+
isVisible(coord: MapCoord): boolean;
|
|
3685
|
+
getColorScale(scale: string | number): ColorScale;
|
|
3686
|
+
requestShowSeries(series: Series, visible: boolean): void;
|
|
3687
|
+
isDrilldowned: boolean;
|
|
3688
|
+
drilldown(series: Series, area: string): void;
|
|
3689
|
+
drillup(series?: Series): void;
|
|
3690
|
+
_getSeriesType(type: string): any;
|
|
3691
|
+
_getAnnotationType(type: string): any;
|
|
3692
|
+
getProjection(second: boolean): MapProjection;
|
|
3693
|
+
_visibleChanged(item: ChartItem): void;
|
|
3694
|
+
_optionChanged(item: ChartItem, tag?: any): void;
|
|
3695
|
+
_getLegendSources(): ILegendSource[];
|
|
3696
|
+
_hoverAreaChanged(series: Series, newArea: MapArea, oldArea: MapArea): void;
|
|
3697
|
+
_areaClicked(series: Series, newArea: MapArea): void;
|
|
3698
|
+
getParam(target: any, param: string): any;
|
|
3699
|
+
setParam(param: string, value: any, redraw?: boolean): void;
|
|
3700
|
+
_dataChanged(): void;
|
|
3701
|
+
_isDataChanged(): boolean;
|
|
3702
|
+
lockOptionsDirty(): void;
|
|
3703
|
+
freeOptionsDirty(): void;
|
|
3704
|
+
_selectionChanged(series: ISeries, p: ISelectionSource): void;
|
|
3705
|
+
getNextPointShape(): Shape;
|
|
3706
|
+
}
|
|
3707
|
+
declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends RmObject {
|
|
3708
|
+
static readonly REFRESHED = "refreshed";
|
|
3709
|
+
static defaults: ChartItemOptions;
|
|
3710
|
+
readonly chart: IChart;
|
|
3711
|
+
protected _op: OP;
|
|
3712
|
+
_style: SVGStyleOrClass;
|
|
3713
|
+
private _children;
|
|
3714
|
+
constructor(chart: IChart);
|
|
3715
|
+
_init(): OP;
|
|
3716
|
+
protected _doInit(op: OP): void;
|
|
3717
|
+
get options(): OP;
|
|
3718
|
+
get visible(): boolean;
|
|
3719
|
+
set visible(value: boolean);
|
|
3720
|
+
protected _isVisible(): boolean;
|
|
3721
|
+
_load(source: any): OP;
|
|
3722
|
+
loadOptions(source: any): OP;
|
|
3723
|
+
saveOptions(): any;
|
|
3724
|
+
updateOptions(source?: OP, render?: boolean): this;
|
|
3725
|
+
updateOption(prop: keyof OP, value: any, render?: boolean): this;
|
|
3726
|
+
toggleOption(prop: keyof OP, render?: boolean): this;
|
|
3727
|
+
removeOption(prop: keyof OP, render?: boolean): this;
|
|
3728
|
+
clearOptions(render?: boolean): this;
|
|
3729
|
+
_prepareRender(): void;
|
|
3730
|
+
_afterRender(): void;
|
|
3731
|
+
_optionChanged(tag?: any): void;
|
|
3732
|
+
protected _doLoad(options: ChartItemOptions, source: any): void;
|
|
3733
|
+
protected _doSetSimple(src: any): boolean;
|
|
3734
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
3735
|
+
private $_applyOptions;
|
|
3736
|
+
protected _setDim(options: ChartItemOptions, prop: string): void;
|
|
3737
|
+
protected _setDims(options: ChartItemOptions, ...props: string[]): void;
|
|
3738
|
+
protected _doApply(options: ChartItemOptions): void;
|
|
3739
|
+
protected _doSave(target: object): void;
|
|
3740
|
+
protected _doUpdate(source: any): void;
|
|
3741
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3742
|
+
protected _doAfterRender(): void;
|
|
3743
|
+
}
|
|
3744
|
+
declare abstract class ChartItemCollection<T extends ChartItem> {
|
|
3745
|
+
readonly chart: IChart;
|
|
3746
|
+
protected _items: T[];
|
|
3747
|
+
constructor(chart: IChart);
|
|
3748
|
+
get count(): number;
|
|
3749
|
+
get first(): T;
|
|
3750
|
+
items(): T[];
|
|
3751
|
+
_internalItems(): T[];
|
|
3752
|
+
abstract load(src: any, tag?: any): void;
|
|
3753
|
+
updateOptions(source: any, render: boolean): void;
|
|
3754
|
+
}
|
|
3755
|
+
declare class ChartText<OP extends ChartTextOptions = ChartTextOptions> extends ChartItem<OP> {
|
|
3756
|
+
static defaults: ChartTextOptions;
|
|
3757
|
+
private _outlineThickness;
|
|
3758
|
+
private _numberSymbols;
|
|
3759
|
+
private _numberFormat;
|
|
3760
|
+
private _text;
|
|
3761
|
+
_outlineWidth: string;
|
|
3762
|
+
private _numSymbols;
|
|
3763
|
+
protected _numberFormatter: NumberFormatter;
|
|
3764
|
+
protected _richTextImpl: SvgRichText;
|
|
3765
|
+
private _setOutlineThickness;
|
|
3766
|
+
private _setNumberSymbols;
|
|
3767
|
+
private _setNumberFormat;
|
|
3768
|
+
private _setText;
|
|
3769
|
+
isVisible(): boolean;
|
|
3770
|
+
setText(value: string): void;
|
|
3771
|
+
buildSvg(view: TextElement, outline: TextElement, maxWidth: number, maxHeight: number, target: any, domain: IRichTextDomain): void;
|
|
3772
|
+
prepareRich(text: string): void;
|
|
3773
|
+
protected _doSetSimple(src: any): boolean;
|
|
3774
|
+
protected _doApply(options: ChartTextOptions): void;
|
|
3775
|
+
private $_getNumberText;
|
|
3776
|
+
protected _getText(text: any, value: any, useSymbols: boolean, forceSymbols: boolean): string;
|
|
3777
|
+
getNumberText(value: any, useSymbols: boolean, forceSymbols: boolean, roundingMode: 'trunc' | 'ceil'): string;
|
|
3778
|
+
}
|
|
3779
|
+
declare abstract class IconedText<OP extends IconedTextOptions = IconedTextOptions> extends ChartText<OP> {
|
|
3780
|
+
static defaults: IconedTextOptions;
|
|
3781
|
+
private _images;
|
|
3782
|
+
private _root;
|
|
3783
|
+
abstract getDefaultIconPos(): IconPosition;
|
|
3784
|
+
getIconPos(): IconPosition;
|
|
3785
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3786
|
+
getUrl(url: string): string;
|
|
3787
|
+
}
|
|
3788
|
+
declare abstract class ScaleBase<OP extends ScaleOptions = ScaleOptions> extends ChartItem<OP> {
|
|
3789
|
+
static defaults: ScaleOptions;
|
|
3790
|
+
index: number;
|
|
3791
|
+
protected _location: ScaleLocation;
|
|
3792
|
+
protected _series: ISeries;
|
|
3793
|
+
get series(): ISeries<DataPoint>;
|
|
3794
|
+
getLocation(): ScaleLocation;
|
|
3795
|
+
isReversed(): boolean;
|
|
3796
|
+
protected _doApply(options: ScaleOptions): void;
|
|
3797
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3798
|
+
protected _getFirstSeries(chart: IChart): Series<SeriesOptions>;
|
|
3799
|
+
}
|
|
3800
|
+
declare abstract class ScaleCollection<T extends ScaleBase = ScaleBase> extends ChartItemCollection<T> {
|
|
3801
|
+
private _map;
|
|
3802
|
+
protected _visibles: T[];
|
|
3803
|
+
getVisibles(loc: ScaleLocation): T[];
|
|
3804
|
+
get(name: string | number): T;
|
|
3805
|
+
prepareRender(): void;
|
|
3806
|
+
load(src: any): void;
|
|
3807
|
+
protected abstract _createScale(chart: IChart): T;
|
|
3808
|
+
private $_loadItem;
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
declare abstract class Annotation<OP extends AnnotationOptions = AnnotationOptions> extends ChartItem<OP> {
|
|
3812
|
+
inBody: boolean;
|
|
3813
|
+
static register(...clses: typeof Annotation<AnnotationOptions>[]): void;
|
|
3814
|
+
static readonly type: string;
|
|
3815
|
+
static defaults: AnnotationOptions;
|
|
3816
|
+
private _width;
|
|
3817
|
+
private _height;
|
|
3818
|
+
private _offsetX;
|
|
3819
|
+
private _offsetY;
|
|
3820
|
+
index: number;
|
|
3821
|
+
private _name;
|
|
3822
|
+
private _widthDim;
|
|
3823
|
+
private _heightDim;
|
|
3824
|
+
private _offsetXDim;
|
|
3825
|
+
private _offsetYDim;
|
|
3826
|
+
_x: number;
|
|
3827
|
+
_y: number;
|
|
3828
|
+
_w: number;
|
|
3829
|
+
_h: number;
|
|
3830
|
+
_anchorObj: ChartItem;
|
|
3831
|
+
constructor(chart: IChart, inBody: boolean);
|
|
3832
|
+
_type(): string;
|
|
3833
|
+
get name(): string;
|
|
3834
|
+
getOffset(w: number, h: number): IPoint;
|
|
3835
|
+
getSize(wDomain: number, hDomain: number): ISize;
|
|
3836
|
+
getPosition(left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
3837
|
+
refresh(): void;
|
|
3838
|
+
_load(source: any): OP;
|
|
3839
|
+
protected _doApply(options: AnnotationOptions): void;
|
|
3840
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3841
|
+
}
|
|
3842
|
+
interface IAnnotationOwner {
|
|
3843
|
+
chart: IChart;
|
|
3844
|
+
options: {
|
|
3845
|
+
annotations?: AnnotationOptions | AnnotationOptions[];
|
|
3846
|
+
};
|
|
3847
|
+
anchorByName(name: string): ChartItem;
|
|
3848
|
+
}
|
|
3849
|
+
declare class AnnotationCollection extends ChartItemCollection<Annotation> {
|
|
3850
|
+
owner: IAnnotationOwner;
|
|
3851
|
+
private _map;
|
|
3852
|
+
private _visibles;
|
|
3853
|
+
constructor(owner: IAnnotationOwner);
|
|
3854
|
+
getVisibles(): Annotation[];
|
|
3855
|
+
getAnnotation(name: string): Annotation;
|
|
3856
|
+
get(name: string | number): Annotation;
|
|
3857
|
+
load(src: any, inBody: boolean): void;
|
|
3858
|
+
prepareRender(): void;
|
|
3859
|
+
private $_loadItem;
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
declare class MapChart {
|
|
3863
|
+
_obj: ChartObject;
|
|
3864
|
+
private _modelCallback;
|
|
3865
|
+
_loadCallback: () => void;
|
|
3866
|
+
private _loaded;
|
|
3867
|
+
constructor(config?: ChartConfiguration, callback?: (model: ChartObject, oldModel: ChartObject) => void);
|
|
3868
|
+
get options(): ChartConfiguration;
|
|
3869
|
+
get type(): string;
|
|
3870
|
+
get body(): Body;
|
|
3871
|
+
get assets(): AssetCollection;
|
|
3872
|
+
get map(): MapModel;
|
|
3873
|
+
get title(): Title;
|
|
3874
|
+
get subtitle(): Subtitle;
|
|
3875
|
+
get series(): Series;
|
|
3876
|
+
get firstMapSeries(): MapSeries;
|
|
3877
|
+
get legend(): Legend;
|
|
3878
|
+
get colorScale(): ColorScale;
|
|
3879
|
+
get bubbleScale(): BubbleScale;
|
|
3880
|
+
get zoomPanel(): ZoomPanel;
|
|
3881
|
+
get drilldownPanel(): DrilldownPanel;
|
|
3882
|
+
get tooltip(): Tooltip;
|
|
3883
|
+
get selection(): MapSelection;
|
|
3884
|
+
get exporter(): Exporter;
|
|
3885
|
+
setBaseMap(indexOrName?: number | string): void;
|
|
3886
|
+
getMap(name: string | number): MapModel;
|
|
3887
|
+
getSeries(name: string | number): Series;
|
|
3888
|
+
seriesByType(type: string): Series;
|
|
3889
|
+
getAnnotation(name: string): Annotation;
|
|
3890
|
+
load(config: ChartConfiguration, loadAnimation?: boolean, callback?: () => void): MapChart;
|
|
3891
|
+
loadAsync(config: ChartConfiguration, loadAnimation?: boolean, callback?: () => void): Promise<MapChart>;
|
|
3892
|
+
updateOptions(options: ChartConfiguration, render?: boolean): void;
|
|
3893
|
+
export(options: ExporterOptions): void;
|
|
3894
|
+
render(now?: boolean): void;
|
|
3895
|
+
setParam(param: string, value: any, redraw?: boolean): void;
|
|
3896
|
+
addSeries(source: any, animate?: boolean): Series;
|
|
3897
|
+
removeSeries(series: string | Series, animate?: boolean): void;
|
|
3898
|
+
getPoint(id: string): MapCoord;
|
|
3899
|
+
seriesAt(index: number): Series;
|
|
3900
|
+
seriesByName(name: string): Series;
|
|
3901
|
+
drilldown(series?: number | string | MapSeries, area?: string): Promise<void>;
|
|
3902
|
+
drillup(series?: number | string | MapSeries): Promise<void>;
|
|
3903
|
+
}
|
|
3904
|
+
|
|
3905
|
+
declare class Globals {
|
|
3906
|
+
static getVersion(): string;
|
|
3907
|
+
static setDebugging(debug: boolean): void;
|
|
3908
|
+
static setLogging(logging: boolean): void;
|
|
3909
|
+
static getDistance(p1: [number, number], p2: [number, number]): number;
|
|
3910
|
+
static createChart(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean, callback?: () => void): MapChart;
|
|
3911
|
+
static createChartAsync(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean, callback?: () => void): Promise<MapChart>;
|
|
3912
|
+
static preset(name: string, info?: MapInsetDisplay): MapInset;
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
declare class BarSeriesPoint extends OrthogonalSparkSeriesPoint {
|
|
3916
|
+
}
|
|
3917
|
+
declare class BarSeries extends OrthogonalSparkSeries<BarSeriesOptions> {
|
|
3918
|
+
static type: string;
|
|
3919
|
+
static defaults: BarSeriesOptions;
|
|
3920
|
+
private _subLabel;
|
|
3921
|
+
protected _doInit(op: BarSeriesOptions): void;
|
|
3922
|
+
get subLabel(): DataPointLabel<DataPointLabelOptions>;
|
|
3923
|
+
pointLabelCount(): number;
|
|
3924
|
+
protected _createPoint(source: any): BarSeriesPoint;
|
|
3925
|
+
protected _defLabelOff(): number;
|
|
3926
|
+
protected _createLegendMarker(doc: Document, size: number): RmElement;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
declare class BubbleSeriesPoint extends MarkerSeriesPoint {
|
|
3930
|
+
position: PointViewPosition;
|
|
3931
|
+
labelCount(): number;
|
|
3932
|
+
protected _readObject(series: ISeries<BubbleSeriesPoint>, v: any): void;
|
|
3933
|
+
protected _valuesChanged(prev: any): boolean;
|
|
3934
|
+
protected _assignTo(proxy: any): void;
|
|
3935
|
+
}
|
|
3936
|
+
declare class BubbleSeries extends MarkerSeries<BubbleSeriesOptions> {
|
|
3937
|
+
static type: string;
|
|
3938
|
+
static defaults: BubbleSeriesOptions;
|
|
3939
|
+
private _subLabel;
|
|
3940
|
+
private _minSizeDim;
|
|
3941
|
+
private _maxSizeDim;
|
|
3942
|
+
_minValue: number;
|
|
3943
|
+
_maxValue: number;
|
|
3944
|
+
_vMin: number;
|
|
3945
|
+
_vMax: number;
|
|
3946
|
+
_noSize: boolean;
|
|
3947
|
+
private _alignToSurface;
|
|
3948
|
+
protected _doInit(op: BubbleSeriesOptions): void;
|
|
3949
|
+
get subLabel(): DataPointLabel<DataPointLabelOptions>;
|
|
3950
|
+
get alignToSurface(): boolean;
|
|
3951
|
+
set alignToSurface(value: boolean);
|
|
3952
|
+
getShape(): Shape;
|
|
3953
|
+
getPixelMinMax(len: number): {
|
|
3954
|
+
min: number;
|
|
3955
|
+
max: number;
|
|
3956
|
+
};
|
|
3957
|
+
getRadius(value: number, pxMin: number, pxMax: number): number;
|
|
3958
|
+
getSubLabelOff(): number;
|
|
3959
|
+
protected _doApply(options: BubbleSeriesOptions): void;
|
|
3960
|
+
pointLabelCount(): number;
|
|
3961
|
+
getPointLabels(): DataPointLabel<DataPointLabelOptions>[];
|
|
3962
|
+
protected _createPoint(source: any): BubbleSeriesPoint;
|
|
3963
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
declare class CircleGaugeItem<OP extends ChartItemOptions> extends ChartItem<OP> {
|
|
3967
|
+
gauge: CircleGauge;
|
|
3968
|
+
constructor(gauge: CircleGauge);
|
|
3969
|
+
}
|
|
3970
|
+
declare class CircleGaugeFace extends CircleGaugeItem<CircleGaugeFaceOptions> {
|
|
3971
|
+
static defaults: CircleGaugeFaceOptions;
|
|
3972
|
+
}
|
|
3973
|
+
declare class CircleGaugeRim extends CircleGaugeItem<CircleGaugeRimOptions> {
|
|
3974
|
+
static defaults: CircleGaugeRimOptions;
|
|
3975
|
+
private _thicknessDim;
|
|
3976
|
+
protected _doApply(options: CircleGaugeValueRimOptions): void;
|
|
3977
|
+
}
|
|
3978
|
+
declare class CircleGaugeValueRim extends CircleGaugeItem<CircleGaugeValueRimOptions> {
|
|
3979
|
+
static defaults: CircleGaugeValueRimOptions;
|
|
3980
|
+
private _thicknessDim;
|
|
3981
|
+
getThickness(domain: number): number;
|
|
3982
|
+
protected _doApply(options: CircleGaugeValueRimOptions): void;
|
|
3983
|
+
}
|
|
3984
|
+
declare class CircleGaugeHand extends CircleGaugeItem<CircleGaugeHandOptions> {
|
|
3985
|
+
static defaults: CircleGaugeHandOptions;
|
|
3986
|
+
private _radiusDim;
|
|
3987
|
+
private _lengthDim;
|
|
3988
|
+
private _offsetDim;
|
|
3989
|
+
getExtents(domain: number): {
|
|
3990
|
+
radius: number;
|
|
3991
|
+
length: number;
|
|
3992
|
+
offset: number;
|
|
3993
|
+
};
|
|
3994
|
+
protected _doApply(options: CircleGaugeHandOptions): void;
|
|
3995
|
+
}
|
|
3996
|
+
declare class CircleGaugePin extends CircleGaugeItem<CircleGaugePinOptions> {
|
|
3997
|
+
static defaults: CircleGaugePinOptions;
|
|
3998
|
+
private _radiusDim;
|
|
3999
|
+
getRadius(domain: number): number;
|
|
4000
|
+
protected _doApply(options: CircleGaugePinOptions): void;
|
|
4001
|
+
}
|
|
4002
|
+
declare class CircleGaugeLabel extends ChartText<CircleGaugeLabelOptions> {
|
|
4003
|
+
static defaults: CircleGaugeLabelOptions;
|
|
4004
|
+
private _offsetXDim;
|
|
4005
|
+
private _offsetYDim;
|
|
4006
|
+
_domain: IRichTextDomain;
|
|
4007
|
+
getOffset(width: number, height: number): IPoint;
|
|
4008
|
+
protected _doApply(options: CircleGaugeLabelOptions): void;
|
|
4009
|
+
}
|
|
4010
|
+
interface ICircleGaugeExtents {
|
|
4011
|
+
radius: number;
|
|
4012
|
+
radiusThick: number;
|
|
4013
|
+
inner: number;
|
|
4014
|
+
value: number;
|
|
4015
|
+
}
|
|
4016
|
+
declare class CircularProps {
|
|
4017
|
+
private _centerX;
|
|
4018
|
+
private _centerY;
|
|
4019
|
+
private _radius;
|
|
4020
|
+
private _innerRadius;
|
|
4021
|
+
private _valueRadius;
|
|
4022
|
+
private _centerXDim;
|
|
4023
|
+
private _centerYDim;
|
|
4024
|
+
private _radiusDim;
|
|
4025
|
+
private _innerDim;
|
|
4026
|
+
private _valueDim;
|
|
4027
|
+
_startRad: number;
|
|
4028
|
+
_handRad: number;
|
|
4029
|
+
_sweepRad: number;
|
|
4030
|
+
constructor();
|
|
4031
|
+
centerX(): PercentSize;
|
|
4032
|
+
setCenterX(value: PercentSize): void;
|
|
4033
|
+
centerY(): PercentSize;
|
|
4034
|
+
setCenterY(value: PercentSize): void;
|
|
4035
|
+
radius(): PercentSize;
|
|
4036
|
+
setRadius(value: PercentSize): void;
|
|
4037
|
+
innerRadius(): PercentSize;
|
|
4038
|
+
setInnerRadius(value: PercentSize): void;
|
|
4039
|
+
valueRadius(): PercentSize;
|
|
4040
|
+
setValueRadius(value: PercentSize): void;
|
|
4041
|
+
getCenter(gaugeWidth: number, gaugeHeight: number): {
|
|
4042
|
+
x: number;
|
|
4043
|
+
y: number;
|
|
4044
|
+
};
|
|
4045
|
+
getExtents(gaugeSize: number): ICircleGaugeExtents;
|
|
4046
|
+
prepareAngles(startAngle: number, sweepAngle: number): void;
|
|
4047
|
+
}
|
|
4048
|
+
declare class CircleGaugePoint extends GaugePoint {
|
|
4049
|
+
protected _readObject(series: ISeries<CircleGaugePoint>, v: any): void;
|
|
4050
|
+
}
|
|
4051
|
+
declare class CircleGauge extends ValueGauge<CircleGaugeOptions> {
|
|
4052
|
+
static readonly DEF_CENTER = "50%";
|
|
4053
|
+
static readonly DEF_RADIUS = "50%";
|
|
4054
|
+
static readonly DEF_INNER = "80%";
|
|
4055
|
+
static type: string;
|
|
4056
|
+
static defaults: CircleGaugeOptions;
|
|
4057
|
+
private _face;
|
|
4058
|
+
private _rim;
|
|
4059
|
+
private _valueRim;
|
|
4060
|
+
private _hand;
|
|
4061
|
+
private _pin;
|
|
4062
|
+
private _gaugeLabel;
|
|
4063
|
+
_props: CircularProps;
|
|
4064
|
+
protected _doInit(op: CircleGaugeOptions): void;
|
|
4065
|
+
get face(): CircleGaugeFace;
|
|
4066
|
+
get rim(): CircleGaugeRim;
|
|
4067
|
+
get valueRim(): CircleGaugeValueRim;
|
|
4068
|
+
get hand(): CircleGaugeHand;
|
|
4069
|
+
get pin(): CircleGaugePin;
|
|
4070
|
+
get gaugeLabel(): CircleGaugeLabel;
|
|
4071
|
+
protected _createPoint(source: any): CircleGaugePoint;
|
|
4072
|
+
protected _doApply(options: CircleGaugeOptions): void;
|
|
4073
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
declare class ClockGaugeItem<OP extends ChartItemOptions> extends ChartItem<OP> {
|
|
4077
|
+
gauge: ClockGauge;
|
|
4078
|
+
constructor(gauge: ClockGauge);
|
|
4079
|
+
}
|
|
4080
|
+
declare class ClockGaugeRim extends ClockGaugeItem<ClockGaugeRimOptions> {
|
|
4081
|
+
static defaults: ClockGaugeRimOptions;
|
|
4082
|
+
private _thicknessDim;
|
|
4083
|
+
getThickness(domain: number): number;
|
|
4084
|
+
protected _doApply(options: ClockGaugeRimOptions): void;
|
|
4085
|
+
}
|
|
4086
|
+
declare class ClockGaugeHand<OP extends ClockGaugeHandOptions = ClockGaugeHandOptions> extends ClockGaugeItem<OP> {
|
|
4087
|
+
static defaults: ClockGaugeHandOptions;
|
|
4088
|
+
private _lengthDim;
|
|
4089
|
+
getLength(domain: number): number;
|
|
4090
|
+
protected _doApply(options: ClockGaugeHandOptions): void;
|
|
4091
|
+
}
|
|
4092
|
+
declare class ClockGaugeMinuteHand extends ClockGaugeHand<ClockGaugeHandOptions> {
|
|
4093
|
+
static defaults: ClockGaugeHandOptions;
|
|
4094
|
+
}
|
|
4095
|
+
declare class ClockGaugeSecondHand extends ClockGaugeHand<ClockGaugeSecondHandOptions> {
|
|
4096
|
+
static defaults: ClockGaugeSecondHandOptions;
|
|
4097
|
+
}
|
|
4098
|
+
declare class ClockGaugeTick extends ClockGaugeItem<ClockGaugeTickOptions> {
|
|
4099
|
+
static defaults: ClockGaugeTickOptions;
|
|
4100
|
+
}
|
|
4101
|
+
declare class ClockGaugeTickLabel extends ClockGaugeItem<ClockGaugeTickLabelOptions> {
|
|
4102
|
+
static defaults: ClockGaugeTickLabelOptions;
|
|
4103
|
+
}
|
|
4104
|
+
declare class ClockGaugePin extends ClockGaugeItem<ClockGaugePinOptions> {
|
|
4105
|
+
static defaults: ClockGaugePinOptions;
|
|
4106
|
+
}
|
|
4107
|
+
declare class ClockGaugeLabel extends ChartText<ClockGaugeLabelOptions> {
|
|
4108
|
+
static defaults: ClockGaugeLabelOptions;
|
|
4109
|
+
}
|
|
4110
|
+
declare class ClockGaugePoint extends GaugePoint {
|
|
4111
|
+
timezone: number;
|
|
4112
|
+
time: number | Date;
|
|
4113
|
+
getTime(): Date;
|
|
4114
|
+
protected _readObject(series: ISeries<ClockGaugePoint>, v: any): void;
|
|
4115
|
+
}
|
|
4116
|
+
declare class ClockGauge extends Gauge<ClockGaugeOptions> {
|
|
4117
|
+
static readonly DEF_CENTER = "50%";
|
|
4118
|
+
static readonly DEF_RADIUS = "50%";
|
|
4119
|
+
static type: string;
|
|
4120
|
+
static defaults: ClockGaugeOptions;
|
|
4121
|
+
private _face;
|
|
4122
|
+
private _rim;
|
|
4123
|
+
private _hourHand;
|
|
4124
|
+
private _minuteHand;
|
|
4125
|
+
private _secondHand;
|
|
4126
|
+
private _tick;
|
|
4127
|
+
private _tickLabel;
|
|
4128
|
+
private _pin;
|
|
4129
|
+
private _gaugeLabel;
|
|
4130
|
+
private _centerX;
|
|
4131
|
+
private _centerY;
|
|
4132
|
+
private _radius;
|
|
4133
|
+
private _centerXDim;
|
|
4134
|
+
private _centerYDim;
|
|
4135
|
+
private _radiusDim;
|
|
4136
|
+
protected _doInit(op: ClockGaugeOptions): void;
|
|
4137
|
+
get face(): ChartItem<ChartItemOptions>;
|
|
4138
|
+
get rim(): ClockGaugeRim;
|
|
4139
|
+
get hourHand(): ClockGaugeHand<ClockGaugeHandOptions>;
|
|
4140
|
+
get minuteHand(): ClockGaugeMinuteHand;
|
|
4141
|
+
get secondHand(): ClockGaugeSecondHand;
|
|
4142
|
+
get tick(): ClockGaugeTick;
|
|
4143
|
+
get tickLabel(): ClockGaugeTickLabel;
|
|
4144
|
+
get pin(): ClockGaugePin;
|
|
4145
|
+
get gaugeLabel(): ClockGaugeLabel;
|
|
4146
|
+
getExtents(gaugeWidth: number, gaugeHeight: number): {
|
|
4147
|
+
cx: number;
|
|
4148
|
+
cy: number;
|
|
4149
|
+
rd: number;
|
|
4150
|
+
};
|
|
4151
|
+
protected _createPoint(source: any): ClockGaugePoint;
|
|
4152
|
+
protected _doApply(options: ClockGaugeOptions): void;
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
declare class FigureSeriesPoint extends MarkerSeriesPoint {
|
|
4156
|
+
figure: string;
|
|
4157
|
+
position: PointViewPosition;
|
|
4158
|
+
protected _readObject(series: ISeries<FigureSeriesPoint>, v: any): void;
|
|
4159
|
+
}
|
|
4160
|
+
declare class FigureSeries extends ValueSeries<FigureSeriesOptions> {
|
|
4161
|
+
static type: string;
|
|
4162
|
+
static defaults: FigureSeriesOptions;
|
|
4163
|
+
private _innerLabel;
|
|
4164
|
+
protected _doInit(op: FigureSeriesOptions): void;
|
|
4165
|
+
getFigure(p: FigureSeriesPoint): string;
|
|
4166
|
+
get innerLabel(): DataPointLabel<DataPointLabelOptions>;
|
|
4167
|
+
protected _doApply(options: FigureSeriesOptions): void;
|
|
4168
|
+
protected _createPoint(source: any): FigureSeriesPoint;
|
|
4169
|
+
protected _defLabelOff(): number;
|
|
4170
|
+
protected _doLoadPoints(src: any): void;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
declare class HeatmapSeriesPoint extends MarkerSeriesPoint {
|
|
4174
|
+
position: PointViewPosition;
|
|
4175
|
+
protected _readObject(series: ISeries<HeatmapSeriesPoint>, v: any): void;
|
|
4176
|
+
}
|
|
4177
|
+
declare class HeatmapSeries extends MarkerSeries<HeatmapSeriesOptions> {
|
|
4178
|
+
static type: string;
|
|
4179
|
+
static defaults: HeatmapSeriesOptions;
|
|
4180
|
+
private _root;
|
|
4181
|
+
protected _doApply(options: HeatmapSeriesOptions): void;
|
|
4182
|
+
protected _createPoint(source: any): HeatmapSeriesPoint;
|
|
4183
|
+
protected _defLabelOff(): number;
|
|
4184
|
+
}
|
|
4185
|
+
|
|
4186
|
+
declare class ImageSeriesPoint extends DataPoint {
|
|
4187
|
+
imageUrl: string;
|
|
4188
|
+
position: PointViewPosition;
|
|
4189
|
+
protected _readObject(series: ImageSeries, v: any): void;
|
|
4190
|
+
}
|
|
4191
|
+
declare class ImageSeries extends Series<ImageSeriesOptions> {
|
|
4192
|
+
static type: string;
|
|
4193
|
+
static defaults: ImageSeriesOptions;
|
|
4194
|
+
_imageFielder: (src: any) => string;
|
|
4195
|
+
private _root;
|
|
4196
|
+
getUrl(p: ImageSeriesPoint): string;
|
|
4197
|
+
protected _createLabel(chart: IChart): DataPointLabel;
|
|
4198
|
+
protected _createPoint(source: any): ImageSeriesPoint;
|
|
4199
|
+
protected _createFielders(op: ImageSeriesOptions): void;
|
|
4200
|
+
protected _defLabelOff(): number;
|
|
4201
|
+
protected _doApply(options: ImageSeriesOptions): void;
|
|
4202
|
+
}
|
|
4203
|
+
|
|
4204
|
+
declare class LineSeriesPoint extends OrthogonalSparkSeriesPoint {
|
|
4205
|
+
}
|
|
4206
|
+
declare class LineSeriesArea extends ChartItem<LineSeriesAreaOptions> {
|
|
4207
|
+
static defaults: LineSeriesOptions;
|
|
4208
|
+
}
|
|
4209
|
+
declare class LineSeries extends OrthogonalSparkSeries<LineSeriesOptions> {
|
|
4210
|
+
static type: string;
|
|
4211
|
+
static defaults: LineSeriesOptions;
|
|
4212
|
+
private _area;
|
|
4213
|
+
protected _doInit(op: LineSeriesOptions): void;
|
|
4214
|
+
get area(): LineSeriesArea;
|
|
4215
|
+
protected _createPoint(source: any): LineSeriesPoint;
|
|
4216
|
+
protected _defLabelOff(): number;
|
|
4217
|
+
protected _createLegendMarker(doc: Document, size: number): RmElement;
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
declare class PanelSeriesPoint extends ValuePoint {
|
|
4221
|
+
position: PointViewPosition;
|
|
4222
|
+
}
|
|
4223
|
+
declare abstract class PanelSeriesSection<OP extends PanelSeriesSectionOptions = PanelSeriesSectionOptions> extends ChartItem<OP> {
|
|
4224
|
+
series: PanelSeries;
|
|
4225
|
+
static defaults: PanelSeriesHeaderOptions;
|
|
4226
|
+
protected _richTextImpl: SvgRichText;
|
|
4227
|
+
private _point;
|
|
4228
|
+
_domain: IRichTextDomain;
|
|
4229
|
+
constructor(series: PanelSeries);
|
|
4230
|
+
getTextDomain(p: PanelSeriesPoint): IRichTextDomain;
|
|
4231
|
+
prepareRich(text: string): void;
|
|
4232
|
+
buildSvg(view: TextElement, maxWidth: number, maxHeight: number, domain: IRichTextDomain): void;
|
|
4233
|
+
}
|
|
4234
|
+
declare class PanelSeriesHeader extends PanelSeriesSection<PanelSeriesHeaderOptions> {
|
|
4235
|
+
static defaults: PanelSeriesHeaderOptions;
|
|
4236
|
+
private _minSizeDim;
|
|
4237
|
+
getMinSize(domain: number): number;
|
|
4238
|
+
protected _doApply(options: ChartTextOptions): void;
|
|
4239
|
+
}
|
|
4240
|
+
declare class PanelSeriesBody extends PanelSeriesSection<PanelSeriesBodyOptions> {
|
|
4241
|
+
static defaults: PanelSeriesBodyOptions;
|
|
4242
|
+
}
|
|
4243
|
+
declare class PanelSeries extends ValueSeries<PanelSeriesOptions> {
|
|
4244
|
+
static readonly DEF_MIN_WIDTH = 80;
|
|
4245
|
+
static readonly DEF_MIN_HEIGHT = 50;
|
|
4246
|
+
static type: string;
|
|
4247
|
+
static defaults: PanelSeriesOptions;
|
|
4248
|
+
private _header;
|
|
4249
|
+
private _divider;
|
|
4250
|
+
private _body;
|
|
4251
|
+
_vertical: boolean;
|
|
4252
|
+
_width: number;
|
|
4253
|
+
_height: number;
|
|
4254
|
+
_minWidth: number;
|
|
4255
|
+
_minHeight: number;
|
|
4256
|
+
_maxWidth: number;
|
|
4257
|
+
_maxHeight: number;
|
|
4258
|
+
protected _doInit(op: PanelSeriesOptions): void;
|
|
4259
|
+
get header(): PanelSeriesHeader;
|
|
4260
|
+
get divider(): ChartItem<ChartItemOptions>;
|
|
4261
|
+
get body(): PanelSeriesBody;
|
|
4262
|
+
getExtents(calcedWidth: number, calcedHeight: number): ISize;
|
|
4263
|
+
protected _createLabel(chart: IChart): DataPointLabel;
|
|
4264
|
+
protected _createPoint(source: any): PanelSeriesPoint;
|
|
4265
|
+
pointLabelCount(): number;
|
|
4266
|
+
legendMarker(doc: Document, size: number): RmElement;
|
|
4267
|
+
protected _doApply(options: PanelSeriesOptions): void;
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4270
|
+
declare class PieSeriesPoint extends SparkSeriesPoint {
|
|
4271
|
+
}
|
|
4272
|
+
declare class PieSeries extends SparkSeries<PieSeriesOptions> {
|
|
4273
|
+
static type: string;
|
|
4274
|
+
static defaults: PieSeriesOptions;
|
|
4275
|
+
_startRad: number;
|
|
4276
|
+
_totalRad: number;
|
|
4277
|
+
private _radiusDim;
|
|
4278
|
+
getRadius(domain: number): number;
|
|
4279
|
+
protected _createPoint(source: any): PieSeriesPoint;
|
|
4280
|
+
protected _defLabelOff(): number;
|
|
4281
|
+
protected _doApply(options: PieSeriesOptions): void;
|
|
4282
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
4283
|
+
}
|
|
4284
|
+
|
|
4285
|
+
declare class PinSeriesPoint extends MarkerSeriesPoint {
|
|
4286
|
+
radius: number;
|
|
4287
|
+
position: PointViewPosition;
|
|
4288
|
+
protected _readObject(series: ISeries<PinSeriesPoint>, v: any): void;
|
|
4289
|
+
}
|
|
4290
|
+
declare class PinSeries extends MarkerSeries<PinSeriesOptions> {
|
|
4291
|
+
private static readonly DEF_RADIUS;
|
|
4292
|
+
static type: string;
|
|
4293
|
+
static defaults: PinSeriesOptions;
|
|
4294
|
+
private _rd;
|
|
4295
|
+
private _innerRd;
|
|
4296
|
+
getExt(p: PinSeriesPoint, rate: number): {
|
|
4297
|
+
cx: number;
|
|
4298
|
+
cy: number;
|
|
4299
|
+
rd: number;
|
|
4300
|
+
innerRd: number;
|
|
4301
|
+
};
|
|
4302
|
+
protected _doApply(options: PinSeriesOptions): void;
|
|
4303
|
+
protected _createPoint(source: any): PinSeriesPoint;
|
|
4304
|
+
protected _defLabelOff(): number;
|
|
4305
|
+
protected _doLoadPoints(src: any): void;
|
|
4306
|
+
protected _createLegendMarker(doc: Document, size: number): RmElement;
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4309
|
+
declare class PointSeriesPoint extends MarkerSeriesPoint {
|
|
4310
|
+
position: PointViewPosition;
|
|
4311
|
+
protected _readObject(series: ISeries<PointSeriesPoint>, v: any): void;
|
|
4312
|
+
}
|
|
4313
|
+
declare class PointSeries extends MarkerSeries<PointSeriesOptions> {
|
|
4314
|
+
static type: string;
|
|
4315
|
+
static defaults: PointSeriesOptions;
|
|
4316
|
+
private _shape;
|
|
4317
|
+
constructor(chart: IChart);
|
|
4318
|
+
getShape(p: PointSeriesPoint): Shape;
|
|
4319
|
+
getRadius(): number;
|
|
4320
|
+
protected _createPoint(source: any): PointSeriesPoint;
|
|
4321
|
+
protected _defLabelOff(): number;
|
|
4322
|
+
protected _doLoadPoints(src: any): void;
|
|
4323
|
+
protected _createLegendMarker(doc: Document, size: number): RmElement;
|
|
4324
|
+
legendMarker(doc: Document, size: number): RmElement;
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
declare class RouteSeriesPoint extends DataPoint {
|
|
4328
|
+
coords: [[number, number], [number, number]];
|
|
4329
|
+
path: any[];
|
|
4330
|
+
get lon1(): number;
|
|
4331
|
+
get lat1(): number;
|
|
4332
|
+
get lon2(): number;
|
|
4333
|
+
get lat2(): number;
|
|
4334
|
+
protected _assignTo(proxy: any): any;
|
|
4335
|
+
protected _readObject(series: ISeries<RouteSeriesPoint>, v: any): void;
|
|
4336
|
+
}
|
|
4337
|
+
declare class RouteSeries extends Series<RouteSeriesOptions> {
|
|
4338
|
+
static type: string;
|
|
4339
|
+
static defaults: RouteSeriesOptions;
|
|
4340
|
+
needMapScale(): boolean;
|
|
4341
|
+
needRemoveAnimation(): boolean;
|
|
4342
|
+
protected _createPoint(source: any): RouteSeriesPoint;
|
|
4343
|
+
pointLabelCount(): number;
|
|
4344
|
+
protected _defLabelOff(): number;
|
|
4345
|
+
protected _doLoadPoints(src: any): void;
|
|
4346
|
+
protected _createLegendMarker(doc: Document, size: number): RmElement;
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
declare class VectorSeriesPoint extends MarkerSeriesPoint {
|
|
4350
|
+
length: number;
|
|
4351
|
+
angle: number;
|
|
4352
|
+
protected _readObject(series: VectorSeries, v: any): void;
|
|
4353
|
+
}
|
|
4354
|
+
declare class VectorSeries extends MarkerSeries<VectorSeriesOptions> {
|
|
4355
|
+
static type: string;
|
|
4356
|
+
static defaults: VectorSeriesOptions;
|
|
4357
|
+
_lengthFielder: (src: any) => any;
|
|
4358
|
+
_angleFielder: (src: any) => any;
|
|
4359
|
+
protected _createFielders(op: VectorSeriesOptions): void;
|
|
4360
|
+
protected _createPoint(source: any): VectorSeriesPoint;
|
|
4361
|
+
protected _defLabelOff(): number;
|
|
4362
|
+
protected _doLoadPoints(src: any): void;
|
|
4363
|
+
protected _createLegendMarker(doc: Document, size: number): RmElement;
|
|
4364
|
+
legendMarker(doc: Document, size: number): RmElement;
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
type WaffleGrid = any[][];
|
|
4368
|
+
declare class WaffleSeriesPoint extends SparkSeriesPoint {
|
|
4369
|
+
_sum: number;
|
|
4370
|
+
}
|
|
4371
|
+
declare class WaffleSeries extends SparkSeries<WaffleSeriesOptions> {
|
|
4372
|
+
static readonly ROW_COUNT = 10;
|
|
4373
|
+
static readonly COL_COUNT = 10;
|
|
4374
|
+
static readonly THRESHOLD = 1;
|
|
4375
|
+
static readonly CELL_SIZE = 5;
|
|
4376
|
+
static readonly GAP = 2;
|
|
4377
|
+
static type: string;
|
|
4378
|
+
static defaults: WaffleSeriesOptions;
|
|
4379
|
+
private _colCount;
|
|
4380
|
+
private _rowCount;
|
|
4381
|
+
private _threshold;
|
|
4382
|
+
private _rounder;
|
|
4383
|
+
private _cellSize;
|
|
4384
|
+
private _gap;
|
|
4385
|
+
private _runGrid;
|
|
4386
|
+
getPointGrid(point: WaffleSeriesPoint, ext: {
|
|
4387
|
+
min: number;
|
|
4388
|
+
max: number;
|
|
4389
|
+
}, rate: number): {
|
|
4390
|
+
grid: WaffleGrid;
|
|
4391
|
+
count: number;
|
|
4392
|
+
rows: number;
|
|
4393
|
+
cols: number;
|
|
4394
|
+
};
|
|
4395
|
+
protected _createPoint(source: any): WaffleSeriesPoint;
|
|
4396
|
+
protected _defLabelOff(): number;
|
|
4397
|
+
protected _doApply(op: WaffleSeriesOptions): void;
|
|
4398
|
+
getWaffleInfo(): {
|
|
4399
|
+
rowCount: number;
|
|
4400
|
+
colCount: number;
|
|
4401
|
+
wCell: number;
|
|
4402
|
+
hCell: number;
|
|
4403
|
+
gap: number;
|
|
4404
|
+
};
|
|
4405
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
4406
|
+
private $_caculate;
|
|
4407
|
+
private $_rows;
|
|
4408
|
+
private $_cols;
|
|
4409
|
+
private $_fillRowFirst;
|
|
4410
|
+
private $_fillColFirst;
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
declare class TextAnnotation extends Annotation<TextAnnotationOptions> {
|
|
4414
|
+
static readonly type = "text";
|
|
4415
|
+
static defaults: TextAnnotationOptions;
|
|
4416
|
+
private _numberFormat;
|
|
4417
|
+
private _timeFormat;
|
|
4418
|
+
_domain: IRichTextDomain;
|
|
4419
|
+
protected _isVisible(): boolean;
|
|
4420
|
+
protected _doSetSimple(src: any): boolean;
|
|
4421
|
+
protected _doApply(options: TextAnnotationOptions): void;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
declare class ImageAnnotation extends Annotation<ImageAnnotationOptions> {
|
|
4425
|
+
static type: string;
|
|
4426
|
+
static defaults: ImageAnnotationOptions;
|
|
4427
|
+
protected _isVisible(): boolean;
|
|
4428
|
+
protected _doSetSimple(src: any): boolean;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
declare class ShapeAnnotation extends Annotation<ShapeAnnotationOptions> {
|
|
4432
|
+
static type: string;
|
|
4433
|
+
static defaults: ShapeAnnotationOptions;
|
|
4434
|
+
private _xRange;
|
|
4435
|
+
private _yRange;
|
|
4436
|
+
getSeries(): {
|
|
4437
|
+
series: ISeries;
|
|
4438
|
+
xRange: number[];
|
|
4439
|
+
yRange: number[];
|
|
4440
|
+
};
|
|
4441
|
+
getShape(): Shape;
|
|
4442
|
+
protected _doSetSimple(src: any): boolean;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
declare abstract class SeriesAnimation {
|
|
4446
|
+
static reveal(series: SeriesView<Series>, options?: IRevealAnimation): void;
|
|
4447
|
+
static grow(series: SeriesView<Series>, endHandler?: RmAnimationEndHandler): void;
|
|
4448
|
+
static spread(series: SeriesView<Series>, endHandler?: RmAnimationEndHandler): void;
|
|
4449
|
+
static fadeIn(series: SeriesView<Series>): void;
|
|
4450
|
+
constructor(sv: SeriesView<Series>, options?: any);
|
|
4451
|
+
protected abstract _createAnimation(series: SeriesView<Series>, options?: any): Animation | RmAnimation;
|
|
4452
|
+
}
|
|
4453
|
+
interface IRevealAnimation {
|
|
4454
|
+
from: 'left' | 'right' | 'top' | 'bottom';
|
|
4455
|
+
}
|
|
4456
|
+
|
|
4457
|
+
interface ISectorShape {
|
|
4458
|
+
cx: number;
|
|
4459
|
+
cy: number;
|
|
4460
|
+
rx: number;
|
|
4461
|
+
ry: number;
|
|
4462
|
+
innerRadius?: number;
|
|
4463
|
+
start: number;
|
|
4464
|
+
angle: number;
|
|
4465
|
+
borderRadius?: number;
|
|
4466
|
+
clockwise?: boolean;
|
|
4467
|
+
}
|
|
4468
|
+
declare class SectorElement extends PathElement {
|
|
4469
|
+
static create(doc: Document, styleName: string, x: number, y: number, rx: number, ry: number, start: number, angle: number, clockwise?: boolean): SectorElement;
|
|
4470
|
+
static createInner(doc: Document, styleName: string, x: number, y: number, rx: number, ry: number, innerRadius: number, start: number, angle: number, clockwise?: boolean): SectorElement;
|
|
4471
|
+
constructor(doc: Document, styleName?: string, shape?: ISectorShape);
|
|
4472
|
+
cx: number;
|
|
4473
|
+
cy: number;
|
|
4474
|
+
rx: number;
|
|
4475
|
+
ry: number;
|
|
4476
|
+
innerRadius: number;
|
|
4477
|
+
start: number;
|
|
4478
|
+
angle: number;
|
|
4479
|
+
clockwise: boolean;
|
|
4480
|
+
rate: number;
|
|
4481
|
+
equals(shape: ISectorShape): boolean;
|
|
4482
|
+
setSector(shape: ISectorShape): void;
|
|
4483
|
+
setSectorEx(shape: ISectorShape, stroked: boolean): void;
|
|
4484
|
+
protected _getShape(): ISectorShape;
|
|
4485
|
+
protected _assignShape(shape: ISectorShape, stroked: boolean): void;
|
|
4486
|
+
private $_renderSector;
|
|
4487
|
+
private $_renderArc;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
declare class CircleElement extends RmElement {
|
|
4491
|
+
constructor(doc: Document, styleName?: string, cx?: number, cy?: number, radius?: number);
|
|
4492
|
+
setCircle(cx: number, cy: number, radius: number): void;
|
|
4493
|
+
}
|
|
4494
|
+
|
|
4495
|
+
declare const isObject: (v: any) => boolean;
|
|
4496
|
+
declare const isArray: (arg: any) => arg is any[];
|
|
4497
|
+
declare const isString: (v: any) => v is string;
|
|
4498
|
+
declare const assignObj: {
|
|
4499
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
4500
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
4501
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
4502
|
+
(target: object, ...sources: any[]): any;
|
|
4503
|
+
};
|
|
4504
|
+
declare const cos: (x: number) => number;
|
|
4505
|
+
declare const sin: (x: number) => number;
|
|
4506
|
+
declare const minv: (...values: number[]) => number;
|
|
4507
|
+
declare const maxv: (...values: number[]) => number;
|
|
4508
|
+
declare const absv: (x: number) => number;
|
|
4509
|
+
declare const copyObj: (v: any) => any;
|
|
4510
|
+
declare const pickNum: (v1: any, v2: any) => number;
|
|
4511
|
+
declare const pickProp: (v1: any, v2: any) => any;
|
|
4512
|
+
declare const pickProp3: (v1: any, v2: any, v3: any) => any;
|
|
4513
|
+
declare const incv: (prev: number, next: number, rate: number) => number;
|
|
4514
|
+
|
|
4515
|
+
declare const _isIE: boolean;
|
|
4516
|
+
declare class Utils {
|
|
4517
|
+
static LOGGING: boolean;
|
|
4518
|
+
static log(...msg: any[]): void;
|
|
4519
|
+
static logIf(condition: any, ...msg: any[]): void;
|
|
4520
|
+
static week_days: string[];
|
|
4521
|
+
static long_week_days: string[];
|
|
4522
|
+
static month_days: number[][];
|
|
4523
|
+
static now(): number;
|
|
4524
|
+
static parseDate(date: string, defaultDate?: Date): Date;
|
|
4525
|
+
static isLeapYear(year: number): boolean;
|
|
4526
|
+
static dateOfYear(d: Date): number;
|
|
4527
|
+
static incMonth(d: Date, delta: number): Date;
|
|
4528
|
+
static minDate(d1: Date, d2: Date): Date;
|
|
4529
|
+
static maxDate(d1: Date, d2: Date): Date;
|
|
4530
|
+
static weekOfMonth(d: Date, startOfWeek: number, exact: boolean): number;
|
|
4531
|
+
static weekOfYear(d: Date, startOfWeek: number): number;
|
|
4532
|
+
static isObject(v: any): boolean;
|
|
4533
|
+
static isValidObject(v: any): boolean;
|
|
4534
|
+
static checkArray(v: any): any;
|
|
4535
|
+
static makeArray(v: any, force?: boolean): any[];
|
|
4536
|
+
static makeNumArray(v: any): number[];
|
|
4537
|
+
static getIntArray(count: number, start?: number): number[];
|
|
4538
|
+
static isValueArray(arr: any[]): boolean;
|
|
4539
|
+
static toArray(v: any): any[];
|
|
4540
|
+
static copyArray(v: any): any[];
|
|
4541
|
+
static push(arr: Array<any>, items: Array<any>): void;
|
|
4542
|
+
static isDefined(v: any): boolean;
|
|
4543
|
+
static isNotDefined(v: any): boolean;
|
|
4544
|
+
static isNum(value: any): value is number;
|
|
4545
|
+
static canNumber(value: any): value is number;
|
|
4546
|
+
static isValidNum(value: any): value is number;
|
|
4547
|
+
static getNum(v: any, def?: number): number;
|
|
4548
|
+
static toNum(value: any, def?: number): number;
|
|
4549
|
+
static compareText(s1: string, s2: string, ignoreCase?: boolean): number;
|
|
4550
|
+
static getTimeF(): number;
|
|
4551
|
+
static getTimer(): number;
|
|
4552
|
+
static isWhiteSpace(s: string): boolean;
|
|
4553
|
+
static pad(value: number, len?: number, c?: string): string;
|
|
4554
|
+
static pad16(value: number, len?: number, c?: string): string;
|
|
4555
|
+
static pick(...args: any): any;
|
|
4556
|
+
static toStr(value: any): string;
|
|
4557
|
+
static extend(target: any, source: any): any;
|
|
4558
|
+
static equalNumbers(a: number, b: number): boolean;
|
|
4559
|
+
static equalArrays(a: any[], b: any[]): boolean;
|
|
4560
|
+
static isEmpty(obj: {}): boolean;
|
|
4561
|
+
static isNotEmpty(obj: {}): boolean;
|
|
4562
|
+
static deepClone(obj: object): object;
|
|
4563
|
+
static getArray(length: number, value?: any): any[];
|
|
4564
|
+
static getNumArray(length: number, value?: number): number[];
|
|
4565
|
+
static dedupe(list: any[], comparer?: (v1: any, v2: any) => number): any[];
|
|
4566
|
+
static sortNum(list: number[]): number[];
|
|
4567
|
+
static logElapsed(message: string, runner: () => void): void;
|
|
4568
|
+
static clamp(v: number, min: number, max: number): number;
|
|
4569
|
+
static clampEx(v: number, min: number, max: number): number;
|
|
4570
|
+
static makeIntArray(from: number, to: number): number[];
|
|
4571
|
+
static shuffle(arr: any[]): void;
|
|
4572
|
+
static isDate(v: any): boolean;
|
|
4573
|
+
static isValidDate(d: Date): boolean;
|
|
4574
|
+
static asFunction(fn: any): any;
|
|
4575
|
+
static getFieldProp(field: string): {
|
|
4576
|
+
field: string;
|
|
4577
|
+
props: string[];
|
|
4578
|
+
};
|
|
4579
|
+
static uniqueKey(): string;
|
|
4580
|
+
static startsWith(str: string, search: string): boolean;
|
|
4581
|
+
static endsWith(str: string, search: string): boolean;
|
|
4582
|
+
static scaleNumber(value: number, symbols: string[], force: boolean): {
|
|
4583
|
+
value: number;
|
|
4584
|
+
symbol: string;
|
|
4585
|
+
};
|
|
4586
|
+
static jitter(v: number, amount: number): number;
|
|
4587
|
+
static getDistance(p1: MapCoord, p2: MapCoord): number;
|
|
4588
|
+
static getLogger(base: number): (v: number) => number;
|
|
4589
|
+
static getMinMax(values: number[]): {
|
|
4590
|
+
min: number;
|
|
4591
|
+
max: number;
|
|
4592
|
+
};
|
|
4593
|
+
}
|
|
4594
|
+
|
|
4595
|
+
declare const getVersion: typeof Globals.getVersion;
|
|
4596
|
+
declare const setDebugging: typeof Globals.setDebugging;
|
|
4597
|
+
declare const setLogging: typeof Globals.setLogging;
|
|
4598
|
+
declare const getDistance: typeof Globals.getDistance;
|
|
4599
|
+
declare const createChart: typeof Globals.createChart;
|
|
4600
|
+
declare const createChartAsync: typeof Globals.createChartAsync;
|
|
4601
|
+
declare const preset: typeof Globals.preset;
|
|
4602
|
+
|
|
4603
|
+
export { Align, Annotation, AnnotationAnimationOptions, AnnotationOptions, AnnotationOptionsType, AssetItemOptions, AssetOptionsType, BackgroundImageOptions, BarSeries, BarSeriesOptions, Body, BodyView, BubbleSeries, BubbleSeriesOptions, ChartConfiguration, ChartControl, ChartElement, ChartItem, ChartItemOptions, ChartOptionsOptions, ChartTextOptions, ChartView, CircleElement, CircleGauge, ClockGauge, Color, ColorListOptions, ContentView, CreditsOptions, DataPointCallbackArgs, DataPointLabel, DataPointLabelOptions, ElementPool, FigureSeries, GradientOptions, HeatmapSeries, HeatmapSeriesOptions, HeatmapSeriesType, IPercentSize, IPointView, IRect, ISeries, IconedTextOptions, ImageAnnotation, ImageAnnotationOptions, ImageListOptions, ImageSeries, Legend, LegendOptions, LineElement, LineSeries, LineSeriesOptions, LinearGradientOptions, MapAxis, MapAxisBandGuide, MapAxisGuide, MapAxisLineGuide, MapAxisRangeGuide, MapChart, MapCoord, MapCrosshair, MapInset, MapInsetDisplay, MapSeries, MapSeriesLabelOptions, MapSeriesOptions, MapSeriesType, MapBackgroundOptions as MapViewBackgroundOptions, BodyOptions as MapViewOptions, MarkerSeries, MarkerSeriesOptions, MarkerSeriesPointView, MarkerSeriesView, ORG_ANGLE, OrthogonalSparkSeries, PI_2, PanelSeries, PatternOptions, PercentSize, PieSeries, PieSeriesOptions, PinSeries, PointElement, PointLabelView, PointSeries, RAD_DEG, RadialGradientOptions, RectElement, RouteSeries, RouteSeriesOptions, RouteSeriesType, SVGStyleOrClass, SVGStyles, SectionView, SectorElement, Series, SeriesAnimation, SeriesOptions, SeriesOptionsType, SeriesView, ShapeAnnotation, ShapeAnnotationOptions, Size, SparkSeries, Subtitle, SubtitleOptions, TextAnchor, TextAnnotation, TextAnnotationOptions, TextElement, TextLayout, TiledWebSeriesOptions, TiledWebSeriesType, Title, TitleOptions, TooltipOptions, Utils, ValueSeries, VectorSeries, WaffleSeries, _isIE, absv, assignObj, calcPercent, copyObj, cos, createChart, createChartAsync, createRect, fixnum, getDistance, getVersion, incv, isArray, isEmptyRect, isObject, isString, maxv, minv, parsePercentSize, pickNum, pickProp, pickProp3, pixel, preset, rectToSize, setDebugging, setLogging, sin };
|