realchart 0.9.25 → 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 +169 -58
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +3 -0
- 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 {
|
|
@@ -72,6 +145,10 @@ interface IValueRanges {
|
|
|
72
145
|
labels?: string[];
|
|
73
146
|
styles?: SVGStyleOrClass[];
|
|
74
147
|
}
|
|
148
|
+
interface IAnnotationAnimation {
|
|
149
|
+
type: string;
|
|
150
|
+
duration?: number;
|
|
151
|
+
}
|
|
75
152
|
|
|
76
153
|
declare abstract class RcObject {
|
|
77
154
|
static destroy(obj: RcObject): null;
|
|
@@ -104,35 +181,6 @@ interface IPoint {
|
|
|
104
181
|
y: number;
|
|
105
182
|
}
|
|
106
183
|
|
|
107
|
-
interface ISize {
|
|
108
|
-
width: number;
|
|
109
|
-
height: number;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface IRect {
|
|
113
|
-
x: number;
|
|
114
|
-
y: number;
|
|
115
|
-
width: number;
|
|
116
|
-
height: number;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare class Sides {
|
|
120
|
-
top: number;
|
|
121
|
-
bottom: number;
|
|
122
|
-
left: number;
|
|
123
|
-
right: number;
|
|
124
|
-
static readonly Empty: Readonly<Sides>;
|
|
125
|
-
static Temp: Sides;
|
|
126
|
-
static create(top: number, bottom?: number, left?: number, right?: number): Sides;
|
|
127
|
-
static createFrom(value: string): Sides;
|
|
128
|
-
constructor(top?: number, bottom?: number, left?: number, right?: number);
|
|
129
|
-
clone(): Sides;
|
|
130
|
-
applyPadding(cs: CSSStyleDeclaration): Sides;
|
|
131
|
-
applyMargin(cs: CSSStyleDeclaration): Sides;
|
|
132
|
-
shrink(r: IRect): IRect;
|
|
133
|
-
toString(): string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
184
|
interface IPointerHandler {
|
|
137
185
|
handleDown(ev: PointerEvent): void;
|
|
138
186
|
handleUp(ev: PointerEvent): void;
|
|
@@ -279,7 +327,7 @@ declare class RcElement extends RcObject {
|
|
|
279
327
|
set height(value: number);
|
|
280
328
|
get visible(): boolean;
|
|
281
329
|
set visible(value: boolean);
|
|
282
|
-
|
|
330
|
+
setVis(value: boolean): boolean;
|
|
283
331
|
get rotation(): number;
|
|
284
332
|
set rotation(value: number);
|
|
285
333
|
setRotation(originX: number, originY: number, rotation: number): RcElement;
|
|
@@ -431,14 +479,21 @@ declare class TextElement extends RcElement {
|
|
|
431
479
|
stain(): void;
|
|
432
480
|
}
|
|
433
481
|
|
|
434
|
-
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
|
+
}
|
|
435
490
|
declare class Word {
|
|
436
491
|
text: string;
|
|
437
492
|
private _literals;
|
|
438
493
|
get type(): string;
|
|
439
494
|
parse(str: string): Word;
|
|
440
|
-
getText(target: any,
|
|
441
|
-
prepareSpan(span: SVGTSpanElement, target: any, domain:
|
|
495
|
+
getText(target: any, domain: IRichTextDomain): string;
|
|
496
|
+
prepareSpan(span: SVGTSpanElement, target: any, domain: IRichTextDomain): SVGTSpanElement;
|
|
442
497
|
protected _doParse(str: string): Word;
|
|
443
498
|
}
|
|
444
499
|
declare class SvgLine {
|
|
@@ -453,12 +508,13 @@ declare class SvgRichText {
|
|
|
453
508
|
constructor(format?: string);
|
|
454
509
|
setFormat(value: string): void;
|
|
455
510
|
lines(): SvgLine[];
|
|
456
|
-
build(view: TextElement, maxWidth: number, maxHeight: number, target: any, domain:
|
|
511
|
+
build(view: TextElement, maxWidth: number, maxHeight: number, target: any, domain: IRichTextDomain): void;
|
|
457
512
|
layout(view: TextElement, align: Align, width: number, height: number, padding: Sides): void;
|
|
458
513
|
$_parse(fmt: string): void;
|
|
459
514
|
}
|
|
460
515
|
|
|
461
516
|
declare class ChartItem extends RcObject {
|
|
517
|
+
static readonly UPDATED = "updated";
|
|
462
518
|
readonly chart: IChart;
|
|
463
519
|
private _visible;
|
|
464
520
|
constructor(chart: IChart, visible: boolean);
|
|
@@ -486,6 +542,11 @@ declare enum ChartTextEffect {
|
|
|
486
542
|
OUTLINE = "outline",
|
|
487
543
|
BACKGROUND = "background"
|
|
488
544
|
}
|
|
545
|
+
declare enum ChartTextOverflow {
|
|
546
|
+
CLIP = "clip",
|
|
547
|
+
ELLIPSIS = "ellipsis",
|
|
548
|
+
WRAP = "wrap"
|
|
549
|
+
}
|
|
489
550
|
declare abstract class ChartText extends ChartItem {
|
|
490
551
|
private _outlineThickness;
|
|
491
552
|
_outlineWidth: string;
|
|
@@ -502,7 +563,7 @@ declare abstract class FormattableText extends ChartText {
|
|
|
502
563
|
private _numberFormat;
|
|
503
564
|
private _text;
|
|
504
565
|
private _numSymbols;
|
|
505
|
-
|
|
566
|
+
protected _numberFormatter: NumberFormatter;
|
|
506
567
|
protected _richTextImpl: SvgRichText;
|
|
507
568
|
constructor(chart: IChart, visible: boolean);
|
|
508
569
|
prefix: string;
|
|
@@ -517,7 +578,7 @@ declare abstract class FormattableText extends ChartText {
|
|
|
517
578
|
setText(value: string): FormattableText;
|
|
518
579
|
prepareRich(text: string): void;
|
|
519
580
|
isVisible(): boolean;
|
|
520
|
-
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;
|
|
521
582
|
protected _doLoadSimple(source: any): boolean;
|
|
522
583
|
private $_getNumberText;
|
|
523
584
|
protected _getText(text: string, value: any, useSymbols: boolean, forceSymbols?: boolean): string;
|
|
@@ -579,8 +640,8 @@ declare class DataPoint {
|
|
|
579
640
|
getProp(fld: string | number): any;
|
|
580
641
|
parse(series: ISeries): void;
|
|
581
642
|
getLabel(index: number): any;
|
|
582
|
-
getValueOf: (traget: any, param: string) => any;
|
|
583
643
|
swap(): void;
|
|
644
|
+
getTooltipPos(): IPoint;
|
|
584
645
|
protected _assignTo(proxy: any): any;
|
|
585
646
|
protected _readArray(series: ISeries, v: any[]): void;
|
|
586
647
|
protected _readObject(series: ISeries, v: any): void;
|
|
@@ -618,6 +679,10 @@ interface ILegendSource {
|
|
|
618
679
|
declare class Tooltip extends ChartItem {
|
|
619
680
|
series: ISeries;
|
|
620
681
|
static readonly HIDE_DELAY = 700;
|
|
682
|
+
private _numberFormat;
|
|
683
|
+
private _timeFormat;
|
|
684
|
+
private _series;
|
|
685
|
+
private _domain;
|
|
621
686
|
constructor(series: ISeries);
|
|
622
687
|
html: string;
|
|
623
688
|
text: string;
|
|
@@ -626,9 +691,11 @@ declare class Tooltip extends ChartItem {
|
|
|
626
691
|
minWidth: number;
|
|
627
692
|
minHeight: number;
|
|
628
693
|
followPointer: boolean;
|
|
629
|
-
numberFormat: string;
|
|
630
|
-
|
|
631
|
-
|
|
694
|
+
get numberFormat(): string;
|
|
695
|
+
set numberFormat(value: string);
|
|
696
|
+
get timeFormat(): string;
|
|
697
|
+
set timeFormat(value: string);
|
|
698
|
+
getTextDomain(series: Series): IRichTextDomain;
|
|
632
699
|
protected _doLoadSimple(source: any): boolean;
|
|
633
700
|
}
|
|
634
701
|
|
|
@@ -643,16 +710,21 @@ declare enum PointItemPosition {
|
|
|
643
710
|
}
|
|
644
711
|
declare class DataPointLabel extends FormattableText {
|
|
645
712
|
private static readonly OFFSET;
|
|
713
|
+
private _point;
|
|
714
|
+
_domain: IRichTextDomain;
|
|
715
|
+
constructor(chart: IChart);
|
|
646
716
|
position: PointItemPosition;
|
|
717
|
+
textAlign: Align;
|
|
647
718
|
offset: number;
|
|
648
719
|
distance: number;
|
|
649
720
|
textCallback: (point: any) => string;
|
|
650
721
|
visibleCallback: (point: any) => boolean;
|
|
651
722
|
styleCallback: (point: any) => SVGStyleOrClass;
|
|
652
|
-
|
|
723
|
+
getTextDomain(p: DataPoint): IRichTextDomain;
|
|
653
724
|
getText(value: any): string;
|
|
654
725
|
getOffset(): number;
|
|
655
726
|
protected _doLoadSimple(source: any): boolean;
|
|
727
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
656
728
|
}
|
|
657
729
|
interface IPlottingItem {
|
|
658
730
|
_row: number;
|
|
@@ -746,7 +818,7 @@ interface ISeries extends IPlottingItem {
|
|
|
746
818
|
isVisible(p: DataPoint): boolean;
|
|
747
819
|
}
|
|
748
820
|
interface IDataPointCallbackArgs {
|
|
749
|
-
series:
|
|
821
|
+
series: object;
|
|
750
822
|
count: number;
|
|
751
823
|
vcount: number;
|
|
752
824
|
yMin: number;
|
|
@@ -796,6 +868,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
796
868
|
private _argsPoint;
|
|
797
869
|
constructor(chart: IChart, name?: string);
|
|
798
870
|
protected _initProps(): void;
|
|
871
|
+
protected _createLabel(chart: IChart): DataPointLabel;
|
|
799
872
|
abstract _type(): string;
|
|
800
873
|
readonly name: string;
|
|
801
874
|
label: string;
|
|
@@ -1003,7 +1076,9 @@ declare abstract class Annotation extends ChartItem {
|
|
|
1003
1076
|
rotation: number;
|
|
1004
1077
|
scope: AnnotationScope;
|
|
1005
1078
|
series: string;
|
|
1079
|
+
loadAnimation: IAnnotationAnimation;
|
|
1006
1080
|
getPosition(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
1081
|
+
update(): void;
|
|
1007
1082
|
protected _doPrepareRender(chart: IChart): void;
|
|
1008
1083
|
}
|
|
1009
1084
|
|
|
@@ -1023,6 +1098,13 @@ declare class BodySplit extends ChartItem {
|
|
|
1023
1098
|
constructor(body: Body);
|
|
1024
1099
|
size: number;
|
|
1025
1100
|
}
|
|
1101
|
+
interface IPolar {
|
|
1102
|
+
start: number;
|
|
1103
|
+
total: number;
|
|
1104
|
+
cx: number;
|
|
1105
|
+
cy: number;
|
|
1106
|
+
rd: number;
|
|
1107
|
+
}
|
|
1026
1108
|
declare class Body extends ChartItem {
|
|
1027
1109
|
private _radius;
|
|
1028
1110
|
private _centerX;
|
|
@@ -1050,16 +1132,11 @@ declare class Body extends ChartItem {
|
|
|
1050
1132
|
canZoom(): boolean;
|
|
1051
1133
|
calcRadius(width: number, height: number): number;
|
|
1052
1134
|
setPolar(width: number, height: number): Body;
|
|
1053
|
-
getPolar(axis: Axis):
|
|
1054
|
-
start: number;
|
|
1055
|
-
total: number;
|
|
1056
|
-
cx: number;
|
|
1057
|
-
cy: number;
|
|
1058
|
-
rd: number;
|
|
1059
|
-
};
|
|
1135
|
+
getPolar(axis: Axis): IPolar;
|
|
1060
1136
|
isZoomed(): boolean;
|
|
1061
1137
|
'@config annotation': Annotation[];
|
|
1062
1138
|
getAnnotations(): Annotation[];
|
|
1139
|
+
getAnnotation(name: string): Annotation;
|
|
1063
1140
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1064
1141
|
protected _doPrepareRender(chart: IChart): void;
|
|
1065
1142
|
private $_loadAnnotations;
|
|
@@ -1264,8 +1341,10 @@ declare class GaugeRangeBand extends ChartItem {
|
|
|
1264
1341
|
private $_internalRanges;
|
|
1265
1342
|
}
|
|
1266
1343
|
declare abstract class GaugeLabel extends FormattableText {
|
|
1344
|
+
_domain: IRichTextDomain;
|
|
1267
1345
|
constructor(chart: IChart);
|
|
1268
1346
|
animatable: boolean;
|
|
1347
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1269
1348
|
}
|
|
1270
1349
|
declare class CircularGaugeLabel extends GaugeLabel {
|
|
1271
1350
|
private _offsetXDim;
|
|
@@ -1382,6 +1461,7 @@ declare class Split extends ChartItem {
|
|
|
1382
1461
|
constructor(chart: IChart);
|
|
1383
1462
|
rows: number | (number | `${number}*` | '*')[];
|
|
1384
1463
|
cols: number | (number | `${number}*` | '*')[];
|
|
1464
|
+
gap: number;
|
|
1385
1465
|
count(): number;
|
|
1386
1466
|
rowCount(): number;
|
|
1387
1467
|
colCount(): number;
|
|
@@ -1399,6 +1479,7 @@ declare class Split extends ChartItem {
|
|
|
1399
1479
|
private $_calcAxesPoints;
|
|
1400
1480
|
calcAxesPoints(xLens: number[], yLens: number[]): void;
|
|
1401
1481
|
calcSizes(width: number, height: number): void;
|
|
1482
|
+
getAnnotation(name: string): Annotation;
|
|
1402
1483
|
private $_parseSizes;
|
|
1403
1484
|
private $_parsePanes;
|
|
1404
1485
|
private $_loadPanes;
|
|
@@ -1406,7 +1487,11 @@ declare class Split extends ChartItem {
|
|
|
1406
1487
|
private $_calcSizes;
|
|
1407
1488
|
}
|
|
1408
1489
|
|
|
1490
|
+
interface IChartProxy {
|
|
1491
|
+
getChartObject(model: any): object;
|
|
1492
|
+
}
|
|
1409
1493
|
interface IChart {
|
|
1494
|
+
_proxy: IChartProxy;
|
|
1410
1495
|
type: string;
|
|
1411
1496
|
gaugeType: string;
|
|
1412
1497
|
_xPaneAxes: PaneXAxisMatrix;
|
|
@@ -1450,6 +1535,8 @@ interface IChart {
|
|
|
1450
1535
|
_modelChanged(item: ChartItem, tag?: any): void;
|
|
1451
1536
|
prepareRender(): void;
|
|
1452
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;
|
|
1453
1540
|
}
|
|
1454
1541
|
declare class Credits extends ChartItem {
|
|
1455
1542
|
text: string;
|
|
@@ -1484,21 +1571,30 @@ declare class CrosshairFlag extends ChartItem {
|
|
|
1484
1571
|
textStyles: SVGStyleOrClass;
|
|
1485
1572
|
minWidth: number;
|
|
1486
1573
|
}
|
|
1574
|
+
interface ICrosshairCallbackArgs {
|
|
1575
|
+
axis: object;
|
|
1576
|
+
pos: number;
|
|
1577
|
+
flag: string;
|
|
1578
|
+
}
|
|
1487
1579
|
declare class Crosshair extends ChartItem {
|
|
1488
1580
|
axis: IAxis;
|
|
1489
1581
|
readonly flag: CrosshairFlag;
|
|
1582
|
+
_args: ICrosshairCallbackArgs;
|
|
1490
1583
|
constructor(axis: IAxis);
|
|
1491
1584
|
type: CrosshairType;
|
|
1492
1585
|
showAlways: boolean;
|
|
1493
1586
|
followPointer: boolean;
|
|
1494
1587
|
numberFormat: string;
|
|
1495
1588
|
timeFormat: string;
|
|
1589
|
+
onChange: any;
|
|
1496
1590
|
isBar(): boolean;
|
|
1497
1591
|
getFlag(length: number, pos: number): string;
|
|
1592
|
+
moved(pos: number, flag: string): void;
|
|
1593
|
+
protected _doLoadSimple(source: any): boolean;
|
|
1498
1594
|
}
|
|
1499
1595
|
|
|
1500
1596
|
interface IAxis {
|
|
1501
|
-
|
|
1597
|
+
_type(): string;
|
|
1502
1598
|
chart: IChart;
|
|
1503
1599
|
row: number;
|
|
1504
1600
|
col: number;
|
|
@@ -1516,6 +1612,7 @@ interface IAxis {
|
|
|
1516
1612
|
length(): number;
|
|
1517
1613
|
zoom(start: number, end: number): boolean;
|
|
1518
1614
|
getValue(value: any): number;
|
|
1615
|
+
getXValue(value: number): any;
|
|
1519
1616
|
contains(value: number): boolean;
|
|
1520
1617
|
incStep(value: number, step: any): number;
|
|
1521
1618
|
getPosition(length: number, value: number, point?: boolean): number;
|
|
@@ -1588,7 +1685,7 @@ declare enum AxisLabelArrange {
|
|
|
1588
1685
|
ROWS = "rows"
|
|
1589
1686
|
}
|
|
1590
1687
|
interface IAxisLabelArgs {
|
|
1591
|
-
axis:
|
|
1688
|
+
axis: object;
|
|
1592
1689
|
count: number;
|
|
1593
1690
|
index: number;
|
|
1594
1691
|
value: number;
|
|
@@ -1596,14 +1693,14 @@ interface IAxisLabelArgs {
|
|
|
1596
1693
|
declare abstract class AxisLabel extends FormattableText {
|
|
1597
1694
|
axis: Axis;
|
|
1598
1695
|
_paramTick: IAxisTick;
|
|
1599
|
-
|
|
1696
|
+
_domain: IRichTextDomain;
|
|
1600
1697
|
constructor(axis: Axis);
|
|
1601
1698
|
step: number;
|
|
1602
1699
|
startStep: number;
|
|
1603
1700
|
rows: number;
|
|
1604
1701
|
rotation: number;
|
|
1605
1702
|
autoArrange: AxisLabelArrange;
|
|
1606
|
-
|
|
1703
|
+
overflow: ChartTextOverflow;
|
|
1607
1704
|
firstText: string;
|
|
1608
1705
|
lastText: string;
|
|
1609
1706
|
firstStyle: SVGStyleOrClass;
|
|
@@ -1614,6 +1711,7 @@ declare abstract class AxisLabel extends FormattableText {
|
|
|
1614
1711
|
protected _getParamValue(tick: IAxisTick, param: string): any;
|
|
1615
1712
|
getLabelText(tick: IAxisTick, count: number): string;
|
|
1616
1713
|
getLabelStyle(tick: IAxisTick, count: number): any;
|
|
1714
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1617
1715
|
}
|
|
1618
1716
|
interface IAxisTick {
|
|
1619
1717
|
index: number;
|
|
@@ -1684,10 +1782,11 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1684
1782
|
_runPos: AxisPosition;
|
|
1685
1783
|
_labelArgs: IAxisLabelArgs;
|
|
1686
1784
|
constructor(chart: IChart, isX: boolean, name?: string);
|
|
1687
|
-
abstract
|
|
1785
|
+
abstract _type(): string;
|
|
1688
1786
|
readonly name: string;
|
|
1689
1787
|
readonly title: AxisTitle;
|
|
1690
1788
|
readonly line: AxisLine;
|
|
1789
|
+
readonly sectorLine: AxisLine;
|
|
1691
1790
|
readonly tick: AxisTick;
|
|
1692
1791
|
readonly label: AxisLabel;
|
|
1693
1792
|
readonly grid: AxisGrid;
|
|
@@ -1740,6 +1839,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1740
1839
|
hasBreak(): boolean;
|
|
1741
1840
|
isBreak(pos: number): boolean;
|
|
1742
1841
|
getTickLabelArgs(index: number, value: any): IAxisLabelArgs;
|
|
1842
|
+
getXValue(value: number): any;
|
|
1743
1843
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1744
1844
|
protected _setMinMax(min: number, max: number): void;
|
|
1745
1845
|
protected _createGrid(): AxisGrid;
|
|
@@ -1899,6 +1999,8 @@ declare abstract class RcChartAxis extends RcChartObject {
|
|
|
1899
1999
|
private _crosshair;
|
|
1900
2000
|
private _scrollBar;
|
|
1901
2001
|
protected _doInit(proxy: Axis): void;
|
|
2002
|
+
get xy(): 'x' | 'y';
|
|
2003
|
+
get isX(): boolean;
|
|
1902
2004
|
get title(): RcChartObject;
|
|
1903
2005
|
get line(): RcChartObject;
|
|
1904
2006
|
get grid(): RcChartObject;
|
|
@@ -1922,7 +2024,10 @@ declare class RcLogAxis extends RcContinuousAxis {
|
|
|
1922
2024
|
}
|
|
1923
2025
|
declare class RcPointLabel extends RcChartAxis {
|
|
1924
2026
|
}
|
|
1925
|
-
declare abstract class
|
|
2027
|
+
declare abstract class RcNamedObject extends RcChartObject {
|
|
2028
|
+
get name(): string;
|
|
2029
|
+
}
|
|
2030
|
+
declare abstract class RcChartSeries extends RcNamedObject {
|
|
1926
2031
|
private _pointLabel;
|
|
1927
2032
|
private _trendLine;
|
|
1928
2033
|
private _tooltip;
|
|
@@ -1933,7 +2038,7 @@ declare abstract class RcChartSeries extends RcChartObject {
|
|
|
1933
2038
|
getValueAt(xValue: number): number;
|
|
1934
2039
|
updateData(data: any): void;
|
|
1935
2040
|
}
|
|
1936
|
-
declare abstract class RcSeriesGroup extends
|
|
2041
|
+
declare abstract class RcSeriesGroup extends RcNamedObject {
|
|
1937
2042
|
}
|
|
1938
2043
|
declare abstract class RcLineSeriesBase extends RcChartSeries {
|
|
1939
2044
|
}
|
|
@@ -1989,7 +2094,7 @@ declare class RcPieSeriesGroup extends RcSeriesGroup {
|
|
|
1989
2094
|
}
|
|
1990
2095
|
declare class RcBumpSeriesGroup extends RcSeriesGroup {
|
|
1991
2096
|
}
|
|
1992
|
-
declare abstract class RcChartGaugeBase extends
|
|
2097
|
+
declare abstract class RcChartGaugeBase extends RcNamedObject {
|
|
1993
2098
|
}
|
|
1994
2099
|
declare abstract class RcChartGauge extends RcChartGaugeBase {
|
|
1995
2100
|
}
|
|
@@ -2065,10 +2170,14 @@ declare class RcLegend extends RcChartObject {
|
|
|
2065
2170
|
}
|
|
2066
2171
|
declare class RcBody extends RcChartObject {
|
|
2067
2172
|
}
|
|
2173
|
+
declare abstract class RcAnnotation extends RcNamedObject {
|
|
2174
|
+
update(): void;
|
|
2175
|
+
}
|
|
2068
2176
|
|
|
2069
2177
|
declare class RcChartControl {
|
|
2070
2178
|
private $_p;
|
|
2071
2179
|
private _objects;
|
|
2180
|
+
private _proxy;
|
|
2072
2181
|
private constructor();
|
|
2073
2182
|
load(config: any, animate?: boolean): void;
|
|
2074
2183
|
render(now?: boolean): void;
|
|
@@ -2080,6 +2189,7 @@ declare class RcChartControl {
|
|
|
2080
2189
|
getSeries(name: string): RcChartSeries;
|
|
2081
2190
|
get gauge(): RcChartGauge;
|
|
2082
2191
|
getGauge(name: string): RcChartGauge;
|
|
2192
|
+
getAnnotation(name: string): RcAnnotation;
|
|
2083
2193
|
get title(): RcTitle;
|
|
2084
2194
|
get subtitle(): RcSubtitle;
|
|
2085
2195
|
get legend(): RcLegend;
|
|
@@ -2089,6 +2199,7 @@ declare class RcChartControl {
|
|
|
2089
2199
|
get inverted(): boolean;
|
|
2090
2200
|
get polar(): boolean;
|
|
2091
2201
|
scroll(axis: RcChartAxis, pos: number): void;
|
|
2202
|
+
setParam(param: string, value: any, redraw?: boolean): void;
|
|
2092
2203
|
}
|
|
2093
2204
|
|
|
2094
2205
|
declare class Globals {
|
|
@@ -2096,7 +2207,7 @@ declare class Globals {
|
|
|
2096
2207
|
static setDebugging(debug: boolean): void;
|
|
2097
2208
|
static setLogging(logging: boolean): void;
|
|
2098
2209
|
static setAnimatable(value: boolean): void;
|
|
2099
|
-
static createChart(doc: Document, container: string | HTMLDivElement, config: any): RcChartControl;
|
|
2210
|
+
static createChart(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean): RcChartControl;
|
|
2100
2211
|
}
|
|
2101
2212
|
|
|
2102
2213
|
declare const getVersion: typeof Globals.getVersion;
|