realchart 0.9.24 → 0.9.26
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/dist/index.d.ts +348 -213
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +11 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,76 @@
|
|
|
1
|
+
declare class DatetimeFormatter {
|
|
2
|
+
private static readonly Formatters;
|
|
3
|
+
static getFormatter(format: string): DatetimeFormatter;
|
|
4
|
+
static get Default(): DatetimeFormatter;
|
|
5
|
+
private _format;
|
|
6
|
+
private _baseYear;
|
|
7
|
+
private _preserveTime;
|
|
8
|
+
private _tokens;
|
|
9
|
+
private _hasAmPm;
|
|
10
|
+
private _formatString;
|
|
11
|
+
constructor(format: string);
|
|
12
|
+
get format(): string;
|
|
13
|
+
get formatString(): string;
|
|
14
|
+
set formatString(value: string);
|
|
15
|
+
toStr(date: Date, startOfWeek: number): string;
|
|
16
|
+
private parseDateFormatTokens;
|
|
17
|
+
private parse;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare class NumberFormatter {
|
|
21
|
+
static readonly DEFAULT_FORMAT = "";
|
|
22
|
+
private static readonly Formatters;
|
|
23
|
+
static getFormatter(format: string): NumberFormatter;
|
|
24
|
+
static get Default(): NumberFormatter;
|
|
25
|
+
private _format;
|
|
26
|
+
private _options;
|
|
27
|
+
constructor(format: string);
|
|
28
|
+
get format(): string;
|
|
29
|
+
toStr(value: number | bigint): string;
|
|
30
|
+
private $_parse;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface ISize {
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface IRect {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class Sides {
|
|
46
|
+
top: number;
|
|
47
|
+
bottom: number;
|
|
48
|
+
left: number;
|
|
49
|
+
right: number;
|
|
50
|
+
static readonly Empty: Readonly<Sides>;
|
|
51
|
+
static Temp: Sides;
|
|
52
|
+
static create(top: number, bottom?: number, left?: number, right?: number): Sides;
|
|
53
|
+
static createFrom(value: string): Sides;
|
|
54
|
+
constructor(top?: number, bottom?: number, left?: number, right?: number);
|
|
55
|
+
clone(): Sides;
|
|
56
|
+
applyPadding(cs: CSSStyleDeclaration): Sides;
|
|
57
|
+
applyMargin(cs: CSSStyleDeclaration): Sides;
|
|
58
|
+
shrink(r: IRect): IRect;
|
|
59
|
+
toString(): string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class TextFormatter {
|
|
63
|
+
private static readonly Formatters;
|
|
64
|
+
static getFormatter(format: string): TextFormatter;
|
|
65
|
+
private _format;
|
|
66
|
+
private _pattern;
|
|
67
|
+
private _replace;
|
|
68
|
+
constructor(format: string);
|
|
69
|
+
get format(): string;
|
|
70
|
+
toStr(text: string): string;
|
|
71
|
+
$_parse(fmt: string): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
1
74
|
type Path = string | any[];
|
|
2
75
|
type RtPercentSize = string | number;
|
|
3
76
|
interface SVGStyles {
|
|
@@ -10,6 +83,8 @@ interface SVGStyles {
|
|
|
10
83
|
fontSize?: string;
|
|
11
84
|
fontWeight?: string;
|
|
12
85
|
fontStyle?: string;
|
|
86
|
+
rx?: string;
|
|
87
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
13
88
|
}
|
|
14
89
|
type SVGStyleOrClass = SVGStyles | string;
|
|
15
90
|
interface IMinMax {
|
|
@@ -70,6 +145,10 @@ interface IValueRanges {
|
|
|
70
145
|
labels?: string[];
|
|
71
146
|
styles?: SVGStyleOrClass[];
|
|
72
147
|
}
|
|
148
|
+
interface IAnnotationAnimation {
|
|
149
|
+
type: string;
|
|
150
|
+
duration?: number;
|
|
151
|
+
}
|
|
73
152
|
|
|
74
153
|
declare abstract class RcObject {
|
|
75
154
|
static destroy(obj: RcObject): null;
|
|
@@ -102,35 +181,6 @@ interface IPoint {
|
|
|
102
181
|
y: number;
|
|
103
182
|
}
|
|
104
183
|
|
|
105
|
-
interface ISize {
|
|
106
|
-
width: number;
|
|
107
|
-
height: number;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
interface IRect {
|
|
111
|
-
x: number;
|
|
112
|
-
y: number;
|
|
113
|
-
width: number;
|
|
114
|
-
height: number;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
declare class Sides {
|
|
118
|
-
top: number;
|
|
119
|
-
bottom: number;
|
|
120
|
-
left: number;
|
|
121
|
-
right: number;
|
|
122
|
-
static readonly Empty: Readonly<Sides>;
|
|
123
|
-
static Temp: Sides;
|
|
124
|
-
static create(top: number, bottom?: number, left?: number, right?: number): Sides;
|
|
125
|
-
static createFrom(value: string): Sides;
|
|
126
|
-
constructor(top?: number, bottom?: number, left?: number, right?: number);
|
|
127
|
-
clone(): Sides;
|
|
128
|
-
applyPadding(cs: CSSStyleDeclaration): Sides;
|
|
129
|
-
applyMargin(cs: CSSStyleDeclaration): Sides;
|
|
130
|
-
shrink(r: IRect): IRect;
|
|
131
|
-
toString(): string;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
184
|
interface IPointerHandler {
|
|
135
185
|
handleDown(ev: PointerEvent): void;
|
|
136
186
|
handleUp(ev: PointerEvent): void;
|
|
@@ -170,6 +220,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
170
220
|
svg(): SVGSVGElement;
|
|
171
221
|
width(): number;
|
|
172
222
|
height(): number;
|
|
223
|
+
contentWidth(): number;
|
|
224
|
+
contentHeight(): number;
|
|
173
225
|
clipContainer(): SVGElement;
|
|
174
226
|
setData(data: string, value: any, container?: boolean): void;
|
|
175
227
|
clearDefs(): void;
|
|
@@ -190,8 +242,9 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
190
242
|
setAnimation(to?: number): void;
|
|
191
243
|
fling(distance: number, duration: number): void;
|
|
192
244
|
getCssVar(name: string): string;
|
|
193
|
-
clipBounds(x?: number, y?: number, width?: number, height?: number, rd?: number):
|
|
194
|
-
clipRect(r: IRect):
|
|
245
|
+
clipBounds(x?: number, y?: number, width?: number, height?: number, rd?: number): ClipRectElement;
|
|
246
|
+
clipRect(r: IRect): ClipRectElement;
|
|
247
|
+
clipCircle(): ClipCircleElement;
|
|
195
248
|
clipPath(): ClipPathElement;
|
|
196
249
|
addDef(element: Element): void;
|
|
197
250
|
removeDef(element: Element | string): void;
|
|
@@ -230,8 +283,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
230
283
|
private _wheelHandler;
|
|
231
284
|
}
|
|
232
285
|
declare class RcElement extends RcObject {
|
|
233
|
-
static TESTING: boolean;
|
|
234
286
|
static DEBUGGING: boolean;
|
|
287
|
+
static TESTING: boolean;
|
|
235
288
|
static ASSET_KEY: string;
|
|
236
289
|
static TEMP_KEY: string;
|
|
237
290
|
private _visible;
|
|
@@ -274,7 +327,7 @@ declare class RcElement extends RcObject {
|
|
|
274
327
|
set height(value: number);
|
|
275
328
|
get visible(): boolean;
|
|
276
329
|
set visible(value: boolean);
|
|
277
|
-
|
|
330
|
+
setVis(value: boolean): boolean;
|
|
278
331
|
get rotation(): number;
|
|
279
332
|
set rotation(value: number);
|
|
280
333
|
setRotation(originX: number, originY: number, rotation: number): RcElement;
|
|
@@ -331,15 +384,14 @@ declare class RcElement extends RcObject {
|
|
|
331
384
|
setClass(value: string): void;
|
|
332
385
|
setStyle(prop: string, value: string): boolean;
|
|
333
386
|
internalSetStyle(prop: string, value: string): void;
|
|
334
|
-
|
|
335
|
-
putStyle(prop: string, value: string, buff?: any): any;
|
|
387
|
+
textAlign(): Align;
|
|
336
388
|
setData(data: string, value?: string): void;
|
|
337
389
|
unsetData(data: string): void;
|
|
338
390
|
setBoolData(data: string, value: boolean): void;
|
|
339
391
|
removeLater(delay: number, callback?: (v: RcElement) => void): RcElement;
|
|
340
392
|
hide(delay: number): RcElement;
|
|
341
|
-
clipRect(x: number, y: number, width: number, height: number, rd?: number):
|
|
342
|
-
setClip(cr?: ClipElement |
|
|
393
|
+
clipRect(x: number, y: number, width: number, height: number, rd?: number): ClipRectElement;
|
|
394
|
+
setClip(cr?: ClipElement | string): void;
|
|
343
395
|
setTemporary(): RcElement;
|
|
344
396
|
setCursor(cursor: string): void;
|
|
345
397
|
ignorePointer(): void;
|
|
@@ -350,11 +402,14 @@ declare class RcElement extends RcObject {
|
|
|
350
402
|
protected _updateTransform(): void;
|
|
351
403
|
getTransform(): string;
|
|
352
404
|
}
|
|
353
|
-
declare class ClipElement extends RcElement {
|
|
405
|
+
declare abstract class ClipElement extends RcElement {
|
|
354
406
|
private _id;
|
|
407
|
+
constructor(doc: Document);
|
|
408
|
+
get id(): string;
|
|
409
|
+
}
|
|
410
|
+
declare class ClipRectElement extends ClipElement {
|
|
355
411
|
private _rect;
|
|
356
412
|
constructor(doc: Document, x?: number, y?: number, width?: number, height?: number, rx?: number, ry?: number);
|
|
357
|
-
get id(): string;
|
|
358
413
|
setBounds(x: number, y: number, w: number, h: number): RcElement;
|
|
359
414
|
resize(width: number, height: number, attr?: boolean): RcElement;
|
|
360
415
|
get x(): number;
|
|
@@ -366,13 +421,16 @@ declare class ClipElement extends RcElement {
|
|
|
366
421
|
get height(): number;
|
|
367
422
|
set height(value: number);
|
|
368
423
|
}
|
|
369
|
-
declare class ClipPathElement extends
|
|
370
|
-
private _id;
|
|
424
|
+
declare class ClipPathElement extends ClipElement {
|
|
371
425
|
private _path;
|
|
372
426
|
constructor(doc: Document);
|
|
373
|
-
get id(): string;
|
|
374
427
|
setPath(path: Path): void;
|
|
375
428
|
}
|
|
429
|
+
declare class ClipCircleElement extends ClipElement {
|
|
430
|
+
private _circle;
|
|
431
|
+
constructor(doc: Document);
|
|
432
|
+
setCircle(cx: number, cy: number, radius: number): void;
|
|
433
|
+
}
|
|
376
434
|
|
|
377
435
|
declare enum TextAnchor {
|
|
378
436
|
START = "start",
|
|
@@ -421,14 +479,21 @@ declare class TextElement extends RcElement {
|
|
|
421
479
|
stain(): void;
|
|
422
480
|
}
|
|
423
481
|
|
|
424
|
-
type RichTextParamCallback = (target: any, param: string
|
|
482
|
+
type RichTextParamCallback = (target: any, param: string) => any;
|
|
483
|
+
interface IRichTextDomain {
|
|
484
|
+
callback?: RichTextParamCallback;
|
|
485
|
+
numberFormatter?: NumberFormatter;
|
|
486
|
+
timeFormatter?: DatetimeFormatter;
|
|
487
|
+
textFormatter?: TextFormatter;
|
|
488
|
+
startOfWeek?: number;
|
|
489
|
+
}
|
|
425
490
|
declare class Word {
|
|
426
491
|
text: string;
|
|
427
492
|
private _literals;
|
|
428
493
|
get type(): string;
|
|
429
494
|
parse(str: string): Word;
|
|
430
|
-
getText(target: any,
|
|
431
|
-
prepareSpan(span: SVGTSpanElement, target: any, domain:
|
|
495
|
+
getText(target: any, domain: IRichTextDomain): string;
|
|
496
|
+
prepareSpan(span: SVGTSpanElement, target: any, domain: IRichTextDomain): SVGTSpanElement;
|
|
432
497
|
protected _doParse(str: string): Word;
|
|
433
498
|
}
|
|
434
499
|
declare class SvgLine {
|
|
@@ -443,12 +508,13 @@ declare class SvgRichText {
|
|
|
443
508
|
constructor(format?: string);
|
|
444
509
|
setFormat(value: string): void;
|
|
445
510
|
lines(): SvgLine[];
|
|
446
|
-
build(view: TextElement, maxWidth: number, maxHeight: number, target: any, domain:
|
|
511
|
+
build(view: TextElement, maxWidth: number, maxHeight: number, target: any, domain: IRichTextDomain): void;
|
|
447
512
|
layout(view: TextElement, align: Align, width: number, height: number, padding: Sides): void;
|
|
448
513
|
$_parse(fmt: string): void;
|
|
449
514
|
}
|
|
450
515
|
|
|
451
516
|
declare class ChartItem extends RcObject {
|
|
517
|
+
static readonly UPDATED = "updated";
|
|
452
518
|
readonly chart: IChart;
|
|
453
519
|
private _visible;
|
|
454
520
|
constructor(chart: IChart, visible: boolean);
|
|
@@ -476,6 +542,11 @@ declare enum ChartTextEffect {
|
|
|
476
542
|
OUTLINE = "outline",
|
|
477
543
|
BACKGROUND = "background"
|
|
478
544
|
}
|
|
545
|
+
declare enum ChartTextOverflow {
|
|
546
|
+
CLIP = "clip",
|
|
547
|
+
ELLIPSIS = "ellipsis",
|
|
548
|
+
WRAP = "wrap"
|
|
549
|
+
}
|
|
479
550
|
declare abstract class ChartText extends ChartItem {
|
|
480
551
|
private _outlineThickness;
|
|
481
552
|
_outlineWidth: string;
|
|
@@ -492,7 +563,7 @@ declare abstract class FormattableText extends ChartText {
|
|
|
492
563
|
private _numberFormat;
|
|
493
564
|
private _text;
|
|
494
565
|
private _numSymbols;
|
|
495
|
-
|
|
566
|
+
protected _numberFormatter: NumberFormatter;
|
|
496
567
|
protected _richTextImpl: SvgRichText;
|
|
497
568
|
constructor(chart: IChart, visible: boolean);
|
|
498
569
|
prefix: string;
|
|
@@ -507,7 +578,7 @@ declare abstract class FormattableText extends ChartText {
|
|
|
507
578
|
setText(value: string): FormattableText;
|
|
508
579
|
prepareRich(text: string): void;
|
|
509
580
|
isVisible(): boolean;
|
|
510
|
-
buildSvg(view: TextElement, outline: TextElement, maxWidth: number, maxHeight: number, target: any,
|
|
581
|
+
buildSvg(view: TextElement, outline: TextElement, maxWidth: number, maxHeight: number, target: any, domain: IRichTextDomain): void;
|
|
511
582
|
protected _doLoadSimple(source: any): boolean;
|
|
512
583
|
private $_getNumberText;
|
|
513
584
|
protected _getText(text: string, value: any, useSymbols: boolean, forceSymbols?: boolean): string;
|
|
@@ -517,82 +588,6 @@ declare class BackgroundImage extends ChartItem {
|
|
|
517
588
|
style: SVGStyleOrClass;
|
|
518
589
|
}
|
|
519
590
|
|
|
520
|
-
declare enum AnnotationScope {
|
|
521
|
-
CHART = "chart",
|
|
522
|
-
CONTAINER = "container"
|
|
523
|
-
}
|
|
524
|
-
declare abstract class Annotation extends ChartItem {
|
|
525
|
-
constructor(chart: IChart);
|
|
526
|
-
abstract _type(): string;
|
|
527
|
-
front: boolean;
|
|
528
|
-
name: string;
|
|
529
|
-
align: Align;
|
|
530
|
-
verticalAlign: VerticalAlign;
|
|
531
|
-
offsetX: number;
|
|
532
|
-
offsetY: number;
|
|
533
|
-
rotation: number;
|
|
534
|
-
scope: AnnotationScope;
|
|
535
|
-
getPostion(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
declare enum ZoomType {
|
|
539
|
-
NONE = "none",
|
|
540
|
-
X = "x",
|
|
541
|
-
Y = "y",
|
|
542
|
-
BOTH = "both"
|
|
543
|
-
}
|
|
544
|
-
declare class ZoomButton extends ChartItem {
|
|
545
|
-
body: Body;
|
|
546
|
-
constructor(body: Body);
|
|
547
|
-
isVisible(): boolean;
|
|
548
|
-
}
|
|
549
|
-
declare class BodySplit extends ChartItem {
|
|
550
|
-
body: Body;
|
|
551
|
-
constructor(body: Body);
|
|
552
|
-
size: number;
|
|
553
|
-
}
|
|
554
|
-
declare class Body extends ChartItem {
|
|
555
|
-
private _radius;
|
|
556
|
-
private _centerX;
|
|
557
|
-
private _centerY;
|
|
558
|
-
private _annotations;
|
|
559
|
-
private _radiusDim;
|
|
560
|
-
private _cxDim;
|
|
561
|
-
private _cyDim;
|
|
562
|
-
private _rd;
|
|
563
|
-
private _cx;
|
|
564
|
-
private _cy;
|
|
565
|
-
constructor(chart: IChart);
|
|
566
|
-
split: BodySplit;
|
|
567
|
-
get radius(): RtPercentSize;
|
|
568
|
-
set radius(value: RtPercentSize);
|
|
569
|
-
get centerX(): RtPercentSize;
|
|
570
|
-
set centerX(value: RtPercentSize);
|
|
571
|
-
get centerY(): RtPercentSize;
|
|
572
|
-
set centerY(value: RtPercentSize);
|
|
573
|
-
startAngle: number;
|
|
574
|
-
circular: boolean;
|
|
575
|
-
image: BackgroundImage;
|
|
576
|
-
zoomType: ZoomType;
|
|
577
|
-
zoomButton: ZoomButton;
|
|
578
|
-
canZoom(): boolean;
|
|
579
|
-
calcRadius(width: number, height: number): number;
|
|
580
|
-
setPolar(width: number, height: number): Body;
|
|
581
|
-
getStartAngle(): number;
|
|
582
|
-
getPolar(axis: Axis): {
|
|
583
|
-
start: number;
|
|
584
|
-
cx: number;
|
|
585
|
-
cy: number;
|
|
586
|
-
rd: number;
|
|
587
|
-
};
|
|
588
|
-
isZoomed(): boolean;
|
|
589
|
-
'@config annotation': Annotation[];
|
|
590
|
-
getAnnotations(): Annotation[];
|
|
591
|
-
protected _doLoadProp(prop: string, value: any): boolean;
|
|
592
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
593
|
-
private $_loadAnnotations;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
591
|
declare enum Shape {
|
|
597
592
|
CIRCLE = "circle",
|
|
598
593
|
DIAMOND = "diamond",
|
|
@@ -609,6 +604,66 @@ declare enum LineType {
|
|
|
609
604
|
STEP = "step"
|
|
610
605
|
}
|
|
611
606
|
|
|
607
|
+
interface IPointPos {
|
|
608
|
+
xPos: number;
|
|
609
|
+
yPos: number;
|
|
610
|
+
isNull: boolean;
|
|
611
|
+
}
|
|
612
|
+
declare class DataPoint {
|
|
613
|
+
static swap(pts: IPointPos[]): IPointPos[];
|
|
614
|
+
index: number;
|
|
615
|
+
vindex: number;
|
|
616
|
+
x: any;
|
|
617
|
+
y: any;
|
|
618
|
+
series: string | number;
|
|
619
|
+
readonly pid: number;
|
|
620
|
+
source: any;
|
|
621
|
+
isNull: boolean;
|
|
622
|
+
xValue: number;
|
|
623
|
+
yValue: number;
|
|
624
|
+
yRate: number;
|
|
625
|
+
visible: boolean;
|
|
626
|
+
color: string;
|
|
627
|
+
xPos: number;
|
|
628
|
+
yPos: number;
|
|
629
|
+
yGroup: number;
|
|
630
|
+
drillDown: any[] | object;
|
|
631
|
+
range: IValueRange;
|
|
632
|
+
zValue: number;
|
|
633
|
+
label: any;
|
|
634
|
+
constructor(source: any);
|
|
635
|
+
get yAbs(): number;
|
|
636
|
+
get xAbs(): number;
|
|
637
|
+
ariaHint(): string;
|
|
638
|
+
labelCount(): number;
|
|
639
|
+
assignTo(proxy?: any): any;
|
|
640
|
+
getProp(fld: string | number): any;
|
|
641
|
+
parse(series: ISeries): void;
|
|
642
|
+
getLabel(index: number): any;
|
|
643
|
+
swap(): void;
|
|
644
|
+
getTooltipPos(): IPoint;
|
|
645
|
+
protected _assignTo(proxy: any): any;
|
|
646
|
+
protected _readArray(series: ISeries, v: any[]): void;
|
|
647
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
648
|
+
protected _readSingle(v: any): void;
|
|
649
|
+
}
|
|
650
|
+
declare class DataPointCollection {
|
|
651
|
+
protected _owner: ISeries;
|
|
652
|
+
private _points;
|
|
653
|
+
constructor(owner: ISeries);
|
|
654
|
+
get count(): number;
|
|
655
|
+
isEmpty(): boolean;
|
|
656
|
+
get(index: number): DataPoint;
|
|
657
|
+
pointAt(xValue: number): DataPoint;
|
|
658
|
+
contains(p: DataPoint): boolean;
|
|
659
|
+
load(source: any): void;
|
|
660
|
+
getProps(prop: string | number): any[];
|
|
661
|
+
getCategories(axis: string): any[];
|
|
662
|
+
getProxies(): any[];
|
|
663
|
+
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
664
|
+
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
665
|
+
}
|
|
666
|
+
|
|
612
667
|
declare abstract class Widget extends ChartItem {
|
|
613
668
|
protected _doLoad(source: any): void;
|
|
614
669
|
protected _doPrepareRender(chart: IChart): void;
|
|
@@ -624,6 +679,10 @@ interface ILegendSource {
|
|
|
624
679
|
declare class Tooltip extends ChartItem {
|
|
625
680
|
series: ISeries;
|
|
626
681
|
static readonly HIDE_DELAY = 700;
|
|
682
|
+
private _numberFormat;
|
|
683
|
+
private _timeFormat;
|
|
684
|
+
private _series;
|
|
685
|
+
private _domain;
|
|
627
686
|
constructor(series: ISeries);
|
|
628
687
|
html: string;
|
|
629
688
|
text: string;
|
|
@@ -632,9 +691,11 @@ declare class Tooltip extends ChartItem {
|
|
|
632
691
|
minWidth: number;
|
|
633
692
|
minHeight: number;
|
|
634
693
|
followPointer: boolean;
|
|
635
|
-
numberFormat: string;
|
|
636
|
-
|
|
637
|
-
|
|
694
|
+
get numberFormat(): string;
|
|
695
|
+
set numberFormat(value: string);
|
|
696
|
+
get timeFormat(): string;
|
|
697
|
+
set timeFormat(value: string);
|
|
698
|
+
getTextDomain(series: Series): IRichTextDomain;
|
|
638
699
|
protected _doLoadSimple(source: any): boolean;
|
|
639
700
|
}
|
|
640
701
|
|
|
@@ -648,16 +709,22 @@ declare enum PointItemPosition {
|
|
|
648
709
|
OUTSIDE_FIRST = "outsideFirst"
|
|
649
710
|
}
|
|
650
711
|
declare class DataPointLabel extends FormattableText {
|
|
712
|
+
private static readonly OFFSET;
|
|
713
|
+
private _point;
|
|
714
|
+
_domain: IRichTextDomain;
|
|
715
|
+
constructor(chart: IChart);
|
|
651
716
|
position: PointItemPosition;
|
|
717
|
+
textAlign: Align;
|
|
652
718
|
offset: number;
|
|
653
719
|
distance: number;
|
|
654
720
|
textCallback: (point: any) => string;
|
|
655
721
|
visibleCallback: (point: any) => boolean;
|
|
656
722
|
styleCallback: (point: any) => SVGStyleOrClass;
|
|
657
|
-
|
|
658
|
-
"@config visible": any;
|
|
723
|
+
getTextDomain(p: DataPoint): IRichTextDomain;
|
|
659
724
|
getText(value: any): string;
|
|
725
|
+
getOffset(): number;
|
|
660
726
|
protected _doLoadSimple(source: any): boolean;
|
|
727
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
661
728
|
}
|
|
662
729
|
interface IPlottingItem {
|
|
663
730
|
_row: number;
|
|
@@ -751,7 +818,7 @@ interface ISeries extends IPlottingItem {
|
|
|
751
818
|
isVisible(p: DataPoint): boolean;
|
|
752
819
|
}
|
|
753
820
|
interface IDataPointCallbackArgs {
|
|
754
|
-
series:
|
|
821
|
+
series: object;
|
|
755
822
|
count: number;
|
|
756
823
|
vcount: number;
|
|
757
824
|
yMin: number;
|
|
@@ -768,6 +835,7 @@ interface IDataPointCallbackArgs {
|
|
|
768
835
|
xValue: any;
|
|
769
836
|
yValue: any;
|
|
770
837
|
zValue: any;
|
|
838
|
+
source: any;
|
|
771
839
|
}
|
|
772
840
|
type PointStyleCallback = (args: IDataPointCallbackArgs) => SVGStyleOrClass;
|
|
773
841
|
type PointClickCallback = (args: IDataPointCallbackArgs) => boolean;
|
|
@@ -800,6 +868,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
800
868
|
private _argsPoint;
|
|
801
869
|
constructor(chart: IChart, name?: string);
|
|
802
870
|
protected _initProps(): void;
|
|
871
|
+
protected _createLabel(chart: IChart): DataPointLabel;
|
|
803
872
|
abstract _type(): string;
|
|
804
873
|
readonly name: string;
|
|
805
874
|
label: string;
|
|
@@ -850,6 +919,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
850
919
|
canMaxPadding(axis: IAxis): boolean;
|
|
851
920
|
hasMarker(): boolean;
|
|
852
921
|
setShape(shape: Shape): void;
|
|
922
|
+
needClip(polar: boolean): boolean;
|
|
853
923
|
setCol(col: number): void;
|
|
854
924
|
setRow(row: number): void;
|
|
855
925
|
createPoints(source: any[]): DataPoint[];
|
|
@@ -955,6 +1025,7 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
955
1025
|
yAxis: string | number;
|
|
956
1026
|
visibleInLegend: boolean;
|
|
957
1027
|
zOrder: number;
|
|
1028
|
+
noClip: boolean;
|
|
958
1029
|
get series(): T[];
|
|
959
1030
|
needAxes(): boolean;
|
|
960
1031
|
isEmpty(): boolean;
|
|
@@ -988,64 +1059,87 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
988
1059
|
private $_collectFill;
|
|
989
1060
|
}
|
|
990
1061
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
isNull: boolean;
|
|
1062
|
+
declare enum AnnotationScope {
|
|
1063
|
+
CHART = "chart",
|
|
1064
|
+
CONTAINER = "container"
|
|
995
1065
|
}
|
|
996
|
-
declare class
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
yGroup: number;
|
|
1014
|
-
drillDown: any[] | object;
|
|
1015
|
-
range: IValueRange;
|
|
1016
|
-
zValue: number;
|
|
1017
|
-
label: any;
|
|
1018
|
-
constructor(source: any);
|
|
1019
|
-
get yAbs(): number;
|
|
1020
|
-
get xAbs(): number;
|
|
1021
|
-
ariaHint(): string;
|
|
1022
|
-
labelCount(): number;
|
|
1023
|
-
assignTo(proxy?: any): any;
|
|
1024
|
-
getProp(fld: string | number): any;
|
|
1025
|
-
parse(series: ISeries): void;
|
|
1026
|
-
getLabel(index: number): any;
|
|
1027
|
-
getValueOf: (traget: any, param: string) => any;
|
|
1028
|
-
swap(): void;
|
|
1029
|
-
protected _assignTo(proxy: any): any;
|
|
1030
|
-
protected _readArray(series: ISeries, v: any[]): void;
|
|
1031
|
-
protected _readObject(series: ISeries, v: any): void;
|
|
1032
|
-
protected _readSingle(v: any): void;
|
|
1066
|
+
declare abstract class Annotation extends ChartItem {
|
|
1067
|
+
_seriesObj: ISeries;
|
|
1068
|
+
constructor(chart: IChart);
|
|
1069
|
+
abstract _type(): string;
|
|
1070
|
+
front: boolean;
|
|
1071
|
+
name: string;
|
|
1072
|
+
align: Align;
|
|
1073
|
+
verticalAlign: VerticalAlign;
|
|
1074
|
+
offsetX: number;
|
|
1075
|
+
offsetY: number;
|
|
1076
|
+
rotation: number;
|
|
1077
|
+
scope: AnnotationScope;
|
|
1078
|
+
series: string;
|
|
1079
|
+
loadAnimation: IAnnotationAnimation;
|
|
1080
|
+
getPosition(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
1081
|
+
update(): void;
|
|
1082
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1033
1083
|
}
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1084
|
+
|
|
1085
|
+
declare enum ZoomType {
|
|
1086
|
+
NONE = "none",
|
|
1087
|
+
X = "x",
|
|
1088
|
+
Y = "y",
|
|
1089
|
+
BOTH = "both"
|
|
1090
|
+
}
|
|
1091
|
+
declare class ZoomButton extends ChartItem {
|
|
1092
|
+
body: Body;
|
|
1093
|
+
constructor(body: Body);
|
|
1094
|
+
isVisible(): boolean;
|
|
1095
|
+
}
|
|
1096
|
+
declare class BodySplit extends ChartItem {
|
|
1097
|
+
body: Body;
|
|
1098
|
+
constructor(body: Body);
|
|
1099
|
+
size: number;
|
|
1100
|
+
}
|
|
1101
|
+
interface IPolar {
|
|
1102
|
+
start: number;
|
|
1103
|
+
total: number;
|
|
1104
|
+
cx: number;
|
|
1105
|
+
cy: number;
|
|
1106
|
+
rd: number;
|
|
1107
|
+
}
|
|
1108
|
+
declare class Body extends ChartItem {
|
|
1109
|
+
private _radius;
|
|
1110
|
+
private _centerX;
|
|
1111
|
+
private _centerY;
|
|
1112
|
+
private _annotations;
|
|
1113
|
+
private _radiusDim;
|
|
1114
|
+
private _cxDim;
|
|
1115
|
+
private _cyDim;
|
|
1116
|
+
private _rd;
|
|
1117
|
+
private _cx;
|
|
1118
|
+
private _cy;
|
|
1119
|
+
constructor(chart: IChart);
|
|
1120
|
+
split: BodySplit;
|
|
1121
|
+
get radius(): RtPercentSize;
|
|
1122
|
+
set radius(value: RtPercentSize);
|
|
1123
|
+
innerRadius: RtPercentSize;
|
|
1124
|
+
get centerX(): RtPercentSize;
|
|
1125
|
+
set centerX(value: RtPercentSize);
|
|
1126
|
+
get centerY(): RtPercentSize;
|
|
1127
|
+
set centerY(value: RtPercentSize);
|
|
1128
|
+
circular: boolean;
|
|
1129
|
+
image: BackgroundImage;
|
|
1130
|
+
zoomType: ZoomType;
|
|
1131
|
+
zoomButton: ZoomButton;
|
|
1132
|
+
canZoom(): boolean;
|
|
1133
|
+
calcRadius(width: number, height: number): number;
|
|
1134
|
+
setPolar(width: number, height: number): Body;
|
|
1135
|
+
getPolar(axis: Axis): IPolar;
|
|
1136
|
+
isZoomed(): boolean;
|
|
1137
|
+
'@config annotation': Annotation[];
|
|
1138
|
+
getAnnotations(): Annotation[];
|
|
1139
|
+
getAnnotation(name: string): Annotation;
|
|
1140
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1141
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1142
|
+
private $_loadAnnotations;
|
|
1049
1143
|
}
|
|
1050
1144
|
|
|
1051
1145
|
declare enum PaletteMode {
|
|
@@ -1062,7 +1156,6 @@ declare class Title extends ChartItem {
|
|
|
1062
1156
|
align: Align;
|
|
1063
1157
|
backgroundStyle: SVGStyleOrClass;
|
|
1064
1158
|
gap: number;
|
|
1065
|
-
textAlign: Align;
|
|
1066
1159
|
isVisible(): boolean;
|
|
1067
1160
|
protected _doLoadSimple(source: any): boolean;
|
|
1068
1161
|
}
|
|
@@ -1248,8 +1341,10 @@ declare class GaugeRangeBand extends ChartItem {
|
|
|
1248
1341
|
private $_internalRanges;
|
|
1249
1342
|
}
|
|
1250
1343
|
declare abstract class GaugeLabel extends FormattableText {
|
|
1344
|
+
_domain: IRichTextDomain;
|
|
1251
1345
|
constructor(chart: IChart);
|
|
1252
1346
|
animatable: boolean;
|
|
1347
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1253
1348
|
}
|
|
1254
1349
|
declare class CircularGaugeLabel extends GaugeLabel {
|
|
1255
1350
|
private _offsetXDim;
|
|
@@ -1366,6 +1461,7 @@ declare class Split extends ChartItem {
|
|
|
1366
1461
|
constructor(chart: IChart);
|
|
1367
1462
|
rows: number | (number | `${number}*` | '*')[];
|
|
1368
1463
|
cols: number | (number | `${number}*` | '*')[];
|
|
1464
|
+
gap: number;
|
|
1369
1465
|
count(): number;
|
|
1370
1466
|
rowCount(): number;
|
|
1371
1467
|
colCount(): number;
|
|
@@ -1383,6 +1479,7 @@ declare class Split extends ChartItem {
|
|
|
1383
1479
|
private $_calcAxesPoints;
|
|
1384
1480
|
calcAxesPoints(xLens: number[], yLens: number[]): void;
|
|
1385
1481
|
calcSizes(width: number, height: number): void;
|
|
1482
|
+
getAnnotation(name: string): Annotation;
|
|
1386
1483
|
private $_parseSizes;
|
|
1387
1484
|
private $_parsePanes;
|
|
1388
1485
|
private $_loadPanes;
|
|
@@ -1390,11 +1487,15 @@ declare class Split extends ChartItem {
|
|
|
1390
1487
|
private $_calcSizes;
|
|
1391
1488
|
}
|
|
1392
1489
|
|
|
1490
|
+
interface IChartProxy {
|
|
1491
|
+
getChartObject(model: any): object;
|
|
1492
|
+
}
|
|
1393
1493
|
interface IChart {
|
|
1494
|
+
_proxy: IChartProxy;
|
|
1394
1495
|
type: string;
|
|
1395
1496
|
gaugeType: string;
|
|
1396
|
-
_xPaneAxes:
|
|
1397
|
-
_yPaneAxes:
|
|
1497
|
+
_xPaneAxes: PaneXAxisMatrix;
|
|
1498
|
+
_yPaneAxes: PaneYAxisMatrix;
|
|
1398
1499
|
options: ChartOptions;
|
|
1399
1500
|
first: IPlottingItem;
|
|
1400
1501
|
firstSeries: Series;
|
|
@@ -1413,7 +1514,6 @@ interface IChart {
|
|
|
1413
1514
|
isInverted(): boolean;
|
|
1414
1515
|
isSplitted(): boolean;
|
|
1415
1516
|
animatable(): boolean;
|
|
1416
|
-
startAngle(): number;
|
|
1417
1517
|
seriesByName(series: string): Series;
|
|
1418
1518
|
axisByName(axis: string): Axis;
|
|
1419
1519
|
getAxes(dir: SectionDir, visibleOnly: boolean): Axis[];
|
|
@@ -1435,6 +1535,8 @@ interface IChart {
|
|
|
1435
1535
|
_modelChanged(item: ChartItem, tag?: any): void;
|
|
1436
1536
|
prepareRender(): void;
|
|
1437
1537
|
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1538
|
+
getParam(target: any, param: string): any;
|
|
1539
|
+
setParam(param: string, value: any, redraw?: boolean): void;
|
|
1438
1540
|
}
|
|
1439
1541
|
declare class Credits extends ChartItem {
|
|
1440
1542
|
text: string;
|
|
@@ -1444,6 +1546,8 @@ declare class Credits extends ChartItem {
|
|
|
1444
1546
|
verticalAlign: VerticalAlign;
|
|
1445
1547
|
offsetX: number;
|
|
1446
1548
|
offsetY: number;
|
|
1549
|
+
gap: number;
|
|
1550
|
+
isFloating(): boolean;
|
|
1447
1551
|
}
|
|
1448
1552
|
declare class ChartOptions extends ChartItem {
|
|
1449
1553
|
theme: string;
|
|
@@ -1467,21 +1571,30 @@ declare class CrosshairFlag extends ChartItem {
|
|
|
1467
1571
|
textStyles: SVGStyleOrClass;
|
|
1468
1572
|
minWidth: number;
|
|
1469
1573
|
}
|
|
1574
|
+
interface ICrosshairCallbackArgs {
|
|
1575
|
+
axis: object;
|
|
1576
|
+
pos: number;
|
|
1577
|
+
flag: string;
|
|
1578
|
+
}
|
|
1470
1579
|
declare class Crosshair extends ChartItem {
|
|
1471
1580
|
axis: IAxis;
|
|
1472
1581
|
readonly flag: CrosshairFlag;
|
|
1582
|
+
_args: ICrosshairCallbackArgs;
|
|
1473
1583
|
constructor(axis: IAxis);
|
|
1474
1584
|
type: CrosshairType;
|
|
1475
1585
|
showAlways: boolean;
|
|
1476
1586
|
followPointer: boolean;
|
|
1477
1587
|
numberFormat: string;
|
|
1478
1588
|
timeFormat: string;
|
|
1589
|
+
onChange: any;
|
|
1479
1590
|
isBar(): boolean;
|
|
1480
1591
|
getFlag(length: number, pos: number): string;
|
|
1592
|
+
moved(pos: number, flag: string): void;
|
|
1593
|
+
protected _doLoadSimple(source: any): boolean;
|
|
1481
1594
|
}
|
|
1482
1595
|
|
|
1483
1596
|
interface IAxis {
|
|
1484
|
-
|
|
1597
|
+
_type(): string;
|
|
1485
1598
|
chart: IChart;
|
|
1486
1599
|
row: number;
|
|
1487
1600
|
col: number;
|
|
@@ -1499,6 +1612,7 @@ interface IAxis {
|
|
|
1499
1612
|
length(): number;
|
|
1500
1613
|
zoom(start: number, end: number): boolean;
|
|
1501
1614
|
getValue(value: any): number;
|
|
1615
|
+
getXValue(value: number): any;
|
|
1502
1616
|
contains(value: number): boolean;
|
|
1503
1617
|
incStep(value: number, step: any): number;
|
|
1504
1618
|
getPosition(length: number, value: number, point?: boolean): number;
|
|
@@ -1539,7 +1653,7 @@ declare class AxisGrid extends AxisItem {
|
|
|
1539
1653
|
startVisible: boolean;
|
|
1540
1654
|
endVisible: boolean;
|
|
1541
1655
|
constructor(axis: Axis);
|
|
1542
|
-
isVisible(): boolean;
|
|
1656
|
+
isVisible(polar: boolean): boolean;
|
|
1543
1657
|
getPoints(length: number): number[];
|
|
1544
1658
|
}
|
|
1545
1659
|
declare class AxisGuideLabel extends FormattableText {
|
|
@@ -1561,9 +1675,6 @@ declare abstract class AxisGuide extends AxisItem {
|
|
|
1561
1675
|
declare abstract class AxisTick extends AxisItem {
|
|
1562
1676
|
length: number;
|
|
1563
1677
|
gap: number;
|
|
1564
|
-
integral: boolean;
|
|
1565
|
-
showFirst: boolean;
|
|
1566
|
-
showLast: boolean;
|
|
1567
1678
|
constructor(axis: Axis);
|
|
1568
1679
|
protected _doLoadSimple(source: any): boolean;
|
|
1569
1680
|
}
|
|
@@ -1574,7 +1685,7 @@ declare enum AxisLabelArrange {
|
|
|
1574
1685
|
ROWS = "rows"
|
|
1575
1686
|
}
|
|
1576
1687
|
interface IAxisLabelArgs {
|
|
1577
|
-
axis:
|
|
1688
|
+
axis: object;
|
|
1578
1689
|
count: number;
|
|
1579
1690
|
index: number;
|
|
1580
1691
|
value: number;
|
|
@@ -1582,20 +1693,25 @@ interface IAxisLabelArgs {
|
|
|
1582
1693
|
declare abstract class AxisLabel extends FormattableText {
|
|
1583
1694
|
axis: Axis;
|
|
1584
1695
|
_paramTick: IAxisTick;
|
|
1585
|
-
|
|
1696
|
+
_domain: IRichTextDomain;
|
|
1586
1697
|
constructor(axis: Axis);
|
|
1587
1698
|
step: number;
|
|
1588
1699
|
startStep: number;
|
|
1589
1700
|
rows: number;
|
|
1590
1701
|
rotation: number;
|
|
1591
1702
|
autoArrange: AxisLabelArrange;
|
|
1592
|
-
|
|
1703
|
+
overflow: ChartTextOverflow;
|
|
1704
|
+
firstText: string;
|
|
1705
|
+
lastText: string;
|
|
1706
|
+
firstStyle: SVGStyleOrClass;
|
|
1707
|
+
lastStyle: SVGStyleOrClass;
|
|
1593
1708
|
textCallback: (args: IAxisLabelArgs) => string;
|
|
1594
1709
|
styleCallback: (args: any) => SVGStyleOrClass;
|
|
1595
1710
|
abstract getTick(index: number, value: any): string;
|
|
1596
1711
|
protected _getParamValue(tick: IAxisTick, param: string): any;
|
|
1597
|
-
getLabelText(tick: IAxisTick): string;
|
|
1598
|
-
getLabelStyle(tick: IAxisTick): any;
|
|
1712
|
+
getLabelText(tick: IAxisTick, count: number): string;
|
|
1713
|
+
getLabelStyle(tick: IAxisTick, count: number): any;
|
|
1714
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1599
1715
|
}
|
|
1600
1716
|
interface IAxisTick {
|
|
1601
1717
|
index: number;
|
|
@@ -1636,7 +1752,7 @@ declare class AxisZoom {
|
|
|
1636
1752
|
start: number;
|
|
1637
1753
|
end: number;
|
|
1638
1754
|
constructor(axis: Axis, start: number, end: number);
|
|
1639
|
-
|
|
1755
|
+
length(): number;
|
|
1640
1756
|
resize(start: number, end: number): boolean;
|
|
1641
1757
|
}
|
|
1642
1758
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
@@ -1658,18 +1774,19 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1658
1774
|
_vlen: number;
|
|
1659
1775
|
_minPad: number;
|
|
1660
1776
|
_maxPad: number;
|
|
1661
|
-
_startAngle: number;
|
|
1662
1777
|
_values: number[];
|
|
1663
1778
|
protected _min: number;
|
|
1664
1779
|
protected _max: number;
|
|
1780
|
+
protected _single: boolean;
|
|
1665
1781
|
_zoom: AxisZoom;
|
|
1666
1782
|
_runPos: AxisPosition;
|
|
1667
1783
|
_labelArgs: IAxisLabelArgs;
|
|
1668
1784
|
constructor(chart: IChart, isX: boolean, name?: string);
|
|
1669
|
-
abstract
|
|
1785
|
+
abstract _type(): string;
|
|
1670
1786
|
readonly name: string;
|
|
1671
1787
|
readonly title: AxisTitle;
|
|
1672
1788
|
readonly line: AxisLine;
|
|
1789
|
+
readonly sectorLine: AxisLine;
|
|
1673
1790
|
readonly tick: AxisTick;
|
|
1674
1791
|
readonly label: AxisLabel;
|
|
1675
1792
|
readonly grid: AxisGrid;
|
|
@@ -1678,12 +1795,15 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1678
1795
|
readonly scrollBar: AxisScrollBar;
|
|
1679
1796
|
row: number;
|
|
1680
1797
|
col: number;
|
|
1798
|
+
startAngle: number;
|
|
1799
|
+
totalAngle: number;
|
|
1681
1800
|
position: AxisPosition;
|
|
1682
1801
|
reversed: boolean;
|
|
1683
1802
|
minValue: number;
|
|
1684
1803
|
maxValue: number;
|
|
1685
1804
|
marginNear: number;
|
|
1686
1805
|
marginFar: number;
|
|
1806
|
+
unit: string;
|
|
1687
1807
|
isEmpty(): boolean;
|
|
1688
1808
|
getBaseValue(): number;
|
|
1689
1809
|
length(): number;
|
|
@@ -1692,7 +1812,9 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1692
1812
|
abstract isContinuous(): boolean;
|
|
1693
1813
|
abstract getValueAt(length: number, pos: number): number;
|
|
1694
1814
|
getAxisValueAt(length: number, pos: number): any;
|
|
1695
|
-
|
|
1815
|
+
getStartAngle(): number;
|
|
1816
|
+
getTotalAngle(): number;
|
|
1817
|
+
isArced(): boolean;
|
|
1696
1818
|
protected abstract _createTickModel(): AxisTick;
|
|
1697
1819
|
protected abstract _createLabelModel(): AxisLabel;
|
|
1698
1820
|
protected abstract _doPrepareRender(): void;
|
|
@@ -1717,8 +1839,9 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1717
1839
|
hasBreak(): boolean;
|
|
1718
1840
|
isBreak(pos: number): boolean;
|
|
1719
1841
|
getTickLabelArgs(index: number, value: any): IAxisLabelArgs;
|
|
1842
|
+
getXValue(value: number): any;
|
|
1720
1843
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1721
|
-
protected
|
|
1844
|
+
protected _setMinMax(min: number, max: number): void;
|
|
1722
1845
|
protected _createGrid(): AxisGrid;
|
|
1723
1846
|
private $_loadGuides;
|
|
1724
1847
|
_connect(series: IPlottingItem): void;
|
|
@@ -1745,7 +1868,6 @@ declare class AxisCollection {
|
|
|
1745
1868
|
collectReferentsValues(): void;
|
|
1746
1869
|
prepareRender(): void;
|
|
1747
1870
|
$_buildTicks(length: number): void;
|
|
1748
|
-
protected _getLength(axis: Axis, length: number): number;
|
|
1749
1871
|
connect(series: IPlottingItem): Axis;
|
|
1750
1872
|
forEach(callback: (p: Axis, i?: number) => any): void;
|
|
1751
1873
|
isZoomed(): boolean;
|
|
@@ -1770,11 +1892,11 @@ declare abstract class PaneAxisMatrix {
|
|
|
1770
1892
|
buildTicks(lens: number[]): void;
|
|
1771
1893
|
calcPoints(lens: number[], phase: number): void;
|
|
1772
1894
|
}
|
|
1773
|
-
declare class
|
|
1895
|
+
declare class PaneXAxisMatrix extends PaneAxisMatrix {
|
|
1774
1896
|
constructor(chart: IChart);
|
|
1775
1897
|
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1776
1898
|
}
|
|
1777
|
-
declare class
|
|
1899
|
+
declare class PaneYAxisMatrix extends PaneAxisMatrix {
|
|
1778
1900
|
constructor(chart: IChart);
|
|
1779
1901
|
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1780
1902
|
}
|
|
@@ -1877,6 +1999,8 @@ declare abstract class RcChartAxis extends RcChartObject {
|
|
|
1877
1999
|
private _crosshair;
|
|
1878
2000
|
private _scrollBar;
|
|
1879
2001
|
protected _doInit(proxy: Axis): void;
|
|
2002
|
+
get xy(): 'x' | 'y';
|
|
2003
|
+
get isX(): boolean;
|
|
1880
2004
|
get title(): RcChartObject;
|
|
1881
2005
|
get line(): RcChartObject;
|
|
1882
2006
|
get grid(): RcChartObject;
|
|
@@ -1900,7 +2024,10 @@ declare class RcLogAxis extends RcContinuousAxis {
|
|
|
1900
2024
|
}
|
|
1901
2025
|
declare class RcPointLabel extends RcChartAxis {
|
|
1902
2026
|
}
|
|
1903
|
-
declare abstract class
|
|
2027
|
+
declare abstract class RcNamedObject extends RcChartObject {
|
|
2028
|
+
get name(): string;
|
|
2029
|
+
}
|
|
2030
|
+
declare abstract class RcChartSeries extends RcNamedObject {
|
|
1904
2031
|
private _pointLabel;
|
|
1905
2032
|
private _trendLine;
|
|
1906
2033
|
private _tooltip;
|
|
@@ -1911,7 +2038,7 @@ declare abstract class RcChartSeries extends RcChartObject {
|
|
|
1911
2038
|
getValueAt(xValue: number): number;
|
|
1912
2039
|
updateData(data: any): void;
|
|
1913
2040
|
}
|
|
1914
|
-
declare abstract class RcSeriesGroup extends
|
|
2041
|
+
declare abstract class RcSeriesGroup extends RcNamedObject {
|
|
1915
2042
|
}
|
|
1916
2043
|
declare abstract class RcLineSeriesBase extends RcChartSeries {
|
|
1917
2044
|
}
|
|
@@ -1967,7 +2094,7 @@ declare class RcPieSeriesGroup extends RcSeriesGroup {
|
|
|
1967
2094
|
}
|
|
1968
2095
|
declare class RcBumpSeriesGroup extends RcSeriesGroup {
|
|
1969
2096
|
}
|
|
1970
|
-
declare abstract class RcChartGaugeBase extends
|
|
2097
|
+
declare abstract class RcChartGaugeBase extends RcNamedObject {
|
|
1971
2098
|
}
|
|
1972
2099
|
declare abstract class RcChartGauge extends RcChartGaugeBase {
|
|
1973
2100
|
}
|
|
@@ -2043,10 +2170,14 @@ declare class RcLegend extends RcChartObject {
|
|
|
2043
2170
|
}
|
|
2044
2171
|
declare class RcBody extends RcChartObject {
|
|
2045
2172
|
}
|
|
2173
|
+
declare abstract class RcAnnotation extends RcNamedObject {
|
|
2174
|
+
update(): void;
|
|
2175
|
+
}
|
|
2046
2176
|
|
|
2047
2177
|
declare class RcChartControl {
|
|
2048
2178
|
private $_p;
|
|
2049
2179
|
private _objects;
|
|
2180
|
+
private _proxy;
|
|
2050
2181
|
private constructor();
|
|
2051
2182
|
load(config: any, animate?: boolean): void;
|
|
2052
2183
|
render(now?: boolean): void;
|
|
@@ -2058,6 +2189,7 @@ declare class RcChartControl {
|
|
|
2058
2189
|
getSeries(name: string): RcChartSeries;
|
|
2059
2190
|
get gauge(): RcChartGauge;
|
|
2060
2191
|
getGauge(name: string): RcChartGauge;
|
|
2192
|
+
getAnnotation(name: string): RcAnnotation;
|
|
2061
2193
|
get title(): RcTitle;
|
|
2062
2194
|
get subtitle(): RcSubtitle;
|
|
2063
2195
|
get legend(): RcLegend;
|
|
@@ -2067,18 +2199,21 @@ declare class RcChartControl {
|
|
|
2067
2199
|
get inverted(): boolean;
|
|
2068
2200
|
get polar(): boolean;
|
|
2069
2201
|
scroll(axis: RcChartAxis, pos: number): void;
|
|
2202
|
+
setParam(param: string, value: any, redraw?: boolean): void;
|
|
2070
2203
|
}
|
|
2071
2204
|
|
|
2072
2205
|
declare class Globals {
|
|
2073
2206
|
static getVersion(): string;
|
|
2074
2207
|
static setDebugging(debug: boolean): void;
|
|
2208
|
+
static setLogging(logging: boolean): void;
|
|
2075
2209
|
static setAnimatable(value: boolean): void;
|
|
2076
|
-
static createChart(doc: Document, container: string | HTMLDivElement, config: any): RcChartControl;
|
|
2210
|
+
static createChart(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean): RcChartControl;
|
|
2077
2211
|
}
|
|
2078
2212
|
|
|
2079
2213
|
declare const getVersion: typeof Globals.getVersion;
|
|
2080
2214
|
declare const setDebugging: typeof Globals.setDebugging;
|
|
2215
|
+
declare const setLogging: typeof Globals.setLogging;
|
|
2081
2216
|
declare const setAnimatable: typeof Globals.setAnimatable;
|
|
2082
2217
|
declare const createChart: typeof Globals.createChart;
|
|
2083
2218
|
|
|
2084
|
-
export { RcAreaRangeSeries, RcAreaSeries, RcAreaSeriesGroup, RcBarRangeSeries, RcBarSeries, RcBarSeriesGroup, RcBellCurveSeries, RcBody, RcBoxPlotSeries, RcBubbleSeries, RcBulletGauge, RcBulletGaugeGroup, RcBumpSeriesGroup, RcCandlestickSeries, RcCategoryAxis, RcChartAxis, RcChartControl, RcChartGauge, RcChartGaugeBase, RcChartObject, RcChartSeries, RcCircleGauge, RcCircleGaugeGroup, RcCircularGauge, RcClockGauge, RcContinuousAxis, RcDumbbellSeries, RcEqualizerSeries, RcFunnelSeries, RcGaugeGroup, RcGaugeRangeBand, RcGaugeScale, RcHeatmapSeries, RcHistogramSeries, RcLegend, RcLineSeries, RcLineSeriesGroup, RcLinearAxis, RcLinearGauge, RcLinearGaugeGroup, RcLinearGaugeBase as RcLinerGaugeBase, RcLogAxis, RcLollipopSeries, RcParetoSeries, RcPieSeries, RcPieSeriesGroup, RcPointLabel, RcScatterSeries, RcSeriesGroup, RcSubtitle, RcTimeAxis, RcTitle, RcTreemapSeries, RcValueGauge, RcVectorSeries, RcWaterfallSeries, createChart, getVersion, setAnimatable, setDebugging };
|
|
2219
|
+
export { RcAreaRangeSeries, RcAreaSeries, RcAreaSeriesGroup, RcBarRangeSeries, RcBarSeries, RcBarSeriesGroup, RcBellCurveSeries, RcBody, RcBoxPlotSeries, RcBubbleSeries, RcBulletGauge, RcBulletGaugeGroup, RcBumpSeriesGroup, RcCandlestickSeries, RcCategoryAxis, RcChartAxis, RcChartControl, RcChartGauge, RcChartGaugeBase, RcChartObject, RcChartSeries, RcCircleGauge, RcCircleGaugeGroup, RcCircularGauge, RcClockGauge, RcContinuousAxis, RcDumbbellSeries, RcEqualizerSeries, RcFunnelSeries, RcGaugeGroup, RcGaugeRangeBand, RcGaugeScale, RcHeatmapSeries, RcHistogramSeries, RcLegend, RcLineSeries, RcLineSeriesGroup, RcLinearAxis, RcLinearGauge, RcLinearGaugeGroup, RcLinearGaugeBase as RcLinerGaugeBase, RcLogAxis, RcLollipopSeries, RcParetoSeries, RcPieSeries, RcPieSeriesGroup, RcPointLabel, RcScatterSeries, RcSeriesGroup, RcSubtitle, RcTimeAxis, RcTitle, RcTreemapSeries, RcValueGauge, RcVectorSeries, RcWaterfallSeries, createChart, getVersion, setAnimatable, setDebugging, setLogging };
|