realchart 0.9.6 → 0.9.8
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 +650 -818
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +19 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
declare abstract class RcObject {
|
|
2
|
-
static destroy(obj: RcObject): null;
|
|
3
|
-
private $_hash;
|
|
4
|
-
private $_destroyed;
|
|
5
|
-
private $_destroying;
|
|
6
|
-
constructor(noHash?: boolean);
|
|
7
|
-
destroy(): null;
|
|
8
|
-
protected _doDestory(): void;
|
|
9
|
-
get destroying(): boolean;
|
|
10
|
-
get hash(): string;
|
|
11
|
-
isMe(hash: string): boolean;
|
|
12
|
-
toString(): string;
|
|
13
|
-
toBool(v: any): boolean;
|
|
14
|
-
toNum(v: any, def?: number): number;
|
|
15
|
-
}
|
|
16
|
-
declare abstract class RcWrappableObject extends RcObject {
|
|
17
|
-
protected _wrapper: any;
|
|
18
|
-
wrapper(): any;
|
|
19
|
-
wrapperOrThis(): any;
|
|
20
|
-
createWrapper<T>(clazz: {
|
|
21
|
-
new (): T;
|
|
22
|
-
}): T;
|
|
23
|
-
setWrapper<T>(wrapper: T): T;
|
|
24
|
-
isWrapper(w: any): boolean;
|
|
25
|
-
}
|
|
26
|
-
declare abstract class RcEventProvider<T> extends RcObject {
|
|
27
|
-
private _listeners;
|
|
28
|
-
addListener(listener: T): void;
|
|
29
|
-
removeListener(listener: T): void;
|
|
30
|
-
protected _fireEvent(event: string, ...args: any[]): any;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
1
|
type Path = string | any[];
|
|
34
2
|
type RtPercentSize = string | number;
|
|
35
3
|
interface SVGStyles {
|
|
@@ -42,6 +10,10 @@ interface SVGStyles {
|
|
|
42
10
|
fontStyle?: string;
|
|
43
11
|
}
|
|
44
12
|
type SVGStyleOrClass = SVGStyles | string;
|
|
13
|
+
interface IMinMax {
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
}
|
|
45
17
|
declare enum Align {
|
|
46
18
|
LEFT = "left",
|
|
47
19
|
CENTER = "center",
|
|
@@ -58,9 +30,37 @@ declare enum SectionDir {
|
|
|
58
30
|
BOTTOM = "bottom",
|
|
59
31
|
RIGHT = "right"
|
|
60
32
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
33
|
+
interface IValueRange {
|
|
34
|
+
fromValue?: number;
|
|
35
|
+
toValue?: number;
|
|
36
|
+
color: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare abstract class RcObject {
|
|
41
|
+
static destroy(obj: RcObject): null;
|
|
42
|
+
private $_hash;
|
|
43
|
+
private $_destroyed;
|
|
44
|
+
private $_destroying;
|
|
45
|
+
constructor(noHash?: boolean);
|
|
46
|
+
destroy(): null;
|
|
47
|
+
protected _doDestory(): void;
|
|
48
|
+
get destroying(): boolean;
|
|
49
|
+
get hash(): string;
|
|
50
|
+
isMe(hash: string): boolean;
|
|
51
|
+
toString(): string;
|
|
52
|
+
toBool(v: any): boolean;
|
|
53
|
+
toNum(v: any, def?: number): number;
|
|
54
|
+
}
|
|
55
|
+
declare abstract class RcWrappableObject extends RcObject {
|
|
56
|
+
protected _wrapper: any;
|
|
57
|
+
wrapper(): any;
|
|
58
|
+
wrapperOrThis(): any;
|
|
59
|
+
createWrapper<T>(clazz: {
|
|
60
|
+
new (): T;
|
|
61
|
+
}): T;
|
|
62
|
+
setWrapper<T>(wrapper: T): T;
|
|
63
|
+
isWrapper(w: any): boolean;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
interface ISize {
|
|
@@ -283,9 +283,6 @@ declare class RcElement extends RcObject {
|
|
|
283
283
|
protected _updateTransform(): void;
|
|
284
284
|
getTransform(): string;
|
|
285
285
|
}
|
|
286
|
-
declare class LayerElement extends RcElement {
|
|
287
|
-
constructor(doc: Document, styleName: string);
|
|
288
|
-
}
|
|
289
286
|
declare class ClipElement extends RcElement {
|
|
290
287
|
private _id;
|
|
291
288
|
private _rect;
|
|
@@ -309,28 +306,6 @@ declare class ClipPathElement extends RcElement {
|
|
|
309
306
|
setPath(path: Path): void;
|
|
310
307
|
}
|
|
311
308
|
|
|
312
|
-
interface IAssetItem {
|
|
313
|
-
id: string;
|
|
314
|
-
}
|
|
315
|
-
declare abstract class AssetItem<T extends IAssetItem> {
|
|
316
|
-
source: T;
|
|
317
|
-
constructor(source: T);
|
|
318
|
-
abstract getEelement(doc: Document): Element;
|
|
319
|
-
}
|
|
320
|
-
interface IAssetOwner {
|
|
321
|
-
addDef(element: Element): void;
|
|
322
|
-
removeDef(element: string): void;
|
|
323
|
-
}
|
|
324
|
-
declare class AssetCollection {
|
|
325
|
-
private _items;
|
|
326
|
-
get count(): number;
|
|
327
|
-
get(index: number): AssetItem<IAssetItem>;
|
|
328
|
-
load(source: any): void;
|
|
329
|
-
register(doc: Document, owner: IAssetOwner): void;
|
|
330
|
-
unregister(doc: Document, owner: IAssetOwner): void;
|
|
331
|
-
private $_loadItem;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
309
|
declare enum TextAnchor {
|
|
335
310
|
START = "start",
|
|
336
311
|
MIDDLE = "middle",
|
|
@@ -415,16 +390,17 @@ declare class ChartItem extends RcObject {
|
|
|
415
390
|
style: SVGStyleOrClass;
|
|
416
391
|
load(source: any): ChartItem;
|
|
417
392
|
save(): any;
|
|
418
|
-
|
|
393
|
+
private INVALID;
|
|
394
|
+
private $_parseProp;
|
|
395
|
+
getProp(prop: string): any;
|
|
396
|
+
setProp(prop: string, value: any, redraw: boolean): boolean;
|
|
397
|
+
setProps(props: object, redraw: boolean): boolean;
|
|
419
398
|
prepareRender(): void;
|
|
420
399
|
protected _changed(): void;
|
|
421
400
|
protected _doLoadSimple(source: any): boolean;
|
|
422
|
-
protected _getDefObjProps(prop: string): any;
|
|
423
401
|
protected _doLoad(source: any): void;
|
|
424
402
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
425
403
|
protected _doSave(target: object): void;
|
|
426
|
-
protected _doUpdateSimple(source: any): boolean;
|
|
427
|
-
protected _doUpdate(source: any): boolean;
|
|
428
404
|
protected _doPrepareRender(chart: IChart): void;
|
|
429
405
|
}
|
|
430
406
|
declare enum ChartTextEffect {
|
|
@@ -463,33 +439,6 @@ declare abstract class FormattableText extends ChartText {
|
|
|
463
439
|
private $_getNumberText;
|
|
464
440
|
protected _getText(text: string, value: any, useSymbols: boolean, forceSymbols?: boolean): string;
|
|
465
441
|
}
|
|
466
|
-
declare class BackgroundImage extends ChartItem {
|
|
467
|
-
url: string;
|
|
468
|
-
style: SVGStyleOrClass;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
declare enum CrosshairType {
|
|
472
|
-
AUTO = "auto",
|
|
473
|
-
LINE = "line"
|
|
474
|
-
}
|
|
475
|
-
declare class CrosshairFlag extends ChartItem {
|
|
476
|
-
prefix: string;
|
|
477
|
-
suffix: string;
|
|
478
|
-
format: string;
|
|
479
|
-
textStyles: SVGStyleOrClass;
|
|
480
|
-
minWidth: number;
|
|
481
|
-
}
|
|
482
|
-
declare class Crosshair extends ChartItem {
|
|
483
|
-
axis: IAxis;
|
|
484
|
-
readonly flag: CrosshairFlag;
|
|
485
|
-
constructor(axis: IAxis);
|
|
486
|
-
type: CrosshairType;
|
|
487
|
-
showAlways: boolean;
|
|
488
|
-
followPointer: boolean;
|
|
489
|
-
numberFormat: string;
|
|
490
|
-
isBar(): boolean;
|
|
491
|
-
getFlag(length: number, pos: number): string;
|
|
492
|
-
}
|
|
493
442
|
|
|
494
443
|
declare enum Shape {
|
|
495
444
|
CIRCLE = "circle",
|
|
@@ -574,64 +523,6 @@ interface ILegendSource {
|
|
|
574
523
|
legendColor(): string;
|
|
575
524
|
legendLabel(): string;
|
|
576
525
|
}
|
|
577
|
-
declare class LegendItem extends ChartItem {
|
|
578
|
-
legend: Legend;
|
|
579
|
-
source: ILegendSource;
|
|
580
|
-
static readonly MARKER_SIZE = 10;
|
|
581
|
-
constructor(legend: Legend, source: ILegendSource);
|
|
582
|
-
text(): string;
|
|
583
|
-
}
|
|
584
|
-
declare enum LegendLocation {
|
|
585
|
-
BOTTOM = "bottom",
|
|
586
|
-
TOP = "top",
|
|
587
|
-
RIGHT = "right",
|
|
588
|
-
LEFT = "left",
|
|
589
|
-
PLOT = "plot",
|
|
590
|
-
SUBPLOT = "subplot"
|
|
591
|
-
}
|
|
592
|
-
declare enum LegendLayout {
|
|
593
|
-
AUTO = "auto",
|
|
594
|
-
HORIZONTAL = "horizontal",
|
|
595
|
-
VERTICAL = "vertical"
|
|
596
|
-
}
|
|
597
|
-
declare enum LegendItemsAlign {
|
|
598
|
-
START = "start",
|
|
599
|
-
CENTER = "center",
|
|
600
|
-
END = "end"
|
|
601
|
-
}
|
|
602
|
-
declare class Legend extends Widget {
|
|
603
|
-
private _items;
|
|
604
|
-
private _maxWidthDim;
|
|
605
|
-
private _maxHeightDim;
|
|
606
|
-
private _location;
|
|
607
|
-
constructor(chart: IChart);
|
|
608
|
-
location: LegendLocation;
|
|
609
|
-
layout: LegendLayout;
|
|
610
|
-
alignBase: AlignBase;
|
|
611
|
-
gap: number;
|
|
612
|
-
itemGap: number;
|
|
613
|
-
markerGap: number;
|
|
614
|
-
backgroundStyles: SVGStyleOrClass;
|
|
615
|
-
itemsPerLine: number;
|
|
616
|
-
lineGap: number;
|
|
617
|
-
maxWidth: RtPercentSize;
|
|
618
|
-
maxHeight: RtPercentSize;
|
|
619
|
-
align: Align;
|
|
620
|
-
verticalAlign: VerticalAlign;
|
|
621
|
-
offsetX: number;
|
|
622
|
-
offsetY: number;
|
|
623
|
-
itemsAlign: LegendItemsAlign;
|
|
624
|
-
items(): LegendItem[];
|
|
625
|
-
isEmpty(): boolean;
|
|
626
|
-
isVisible(): boolean;
|
|
627
|
-
getLocatiion(): LegendLocation;
|
|
628
|
-
getLayout(): LegendLayout;
|
|
629
|
-
getMaxWidth(domain: number): number;
|
|
630
|
-
getMaxHeight(domain: number): number;
|
|
631
|
-
protected _doLoad(src: any): void;
|
|
632
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
633
|
-
private $_collectItems;
|
|
634
|
-
}
|
|
635
526
|
|
|
636
527
|
declare class Tooltip extends ChartItem {
|
|
637
528
|
series: ISeries;
|
|
@@ -695,7 +586,7 @@ declare enum TrendType {
|
|
|
695
586
|
EXPONENTIAL = "exponential",
|
|
696
587
|
MOVING_AVERAGE = "movingAverage"
|
|
697
588
|
}
|
|
698
|
-
declare class MovingAverage {
|
|
589
|
+
declare class MovingAverage extends RcObject {
|
|
699
590
|
interval: number;
|
|
700
591
|
type: 'simple' | 'weighted' | 'exponential' | 'triangualr';
|
|
701
592
|
}
|
|
@@ -710,10 +601,6 @@ declare class Trendline extends ChartItem {
|
|
|
710
601
|
lineType: LineType;
|
|
711
602
|
movingAverage: MovingAverage;
|
|
712
603
|
protected _doPrepareRender(chart: IChart): void;
|
|
713
|
-
protected _getDefObjProps(prop: string): {
|
|
714
|
-
interval: number;
|
|
715
|
-
type: string;
|
|
716
|
-
};
|
|
717
604
|
$_linear(pts: DataPoint[], list: {
|
|
718
605
|
x: number;
|
|
719
606
|
y: number;
|
|
@@ -772,11 +659,6 @@ type PointClickCallbck = (args: IDataPointCallbackArgs) => boolean;
|
|
|
772
659
|
declare abstract class Series extends ChartItem implements ISeries, ILegendSource {
|
|
773
660
|
static readonly LEGEND_MARKER = "rct-legend-item-marker";
|
|
774
661
|
static _loadSeries(chart: IChart, src: any, defType?: string): Series;
|
|
775
|
-
readonly name: string;
|
|
776
|
-
readonly label: string;
|
|
777
|
-
readonly pointLabel: DataPointLabel;
|
|
778
|
-
readonly trendline: Trendline;
|
|
779
|
-
readonly tooltip: Tooltip;
|
|
780
662
|
index: number;
|
|
781
663
|
group: SeriesGroup<Series>;
|
|
782
664
|
_xAxisObj: IAxis;
|
|
@@ -791,6 +673,11 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
791
673
|
protected _pointArgs: IDataPointCallbackArgs;
|
|
792
674
|
constructor(chart: IChart, name?: string);
|
|
793
675
|
abstract _type(): string;
|
|
676
|
+
readonly name: string;
|
|
677
|
+
readonly label: string;
|
|
678
|
+
readonly pointLabel: DataPointLabel;
|
|
679
|
+
readonly trendline: Trendline;
|
|
680
|
+
readonly tooltip: Tooltip;
|
|
794
681
|
zOrder: number;
|
|
795
682
|
xAxis: string | number;
|
|
796
683
|
yAxis: string | number;
|
|
@@ -882,10 +769,11 @@ declare class PlottingItemCollection {
|
|
|
882
769
|
series(): Series[];
|
|
883
770
|
visibleSeries(): Series[];
|
|
884
771
|
needAxes(): boolean;
|
|
885
|
-
|
|
772
|
+
getSeries(name: string): Series;
|
|
886
773
|
seriesByPoint(point: DataPoint): Series;
|
|
887
774
|
getLegendSources(): ILegendSource[];
|
|
888
775
|
load(src: any): void;
|
|
776
|
+
updateData(values: any[]): void;
|
|
889
777
|
prepareRender(): void;
|
|
890
778
|
prepareAfter(): void;
|
|
891
779
|
private $_loadItem;
|
|
@@ -939,72 +827,375 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
939
827
|
private $_collectFill;
|
|
940
828
|
}
|
|
941
829
|
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
830
|
+
declare abstract class GaugeBase extends Widget {
|
|
831
|
+
private _size;
|
|
832
|
+
private _width;
|
|
833
|
+
private _height;
|
|
834
|
+
private _left;
|
|
835
|
+
private _right;
|
|
836
|
+
private _top;
|
|
837
|
+
private _bottom;
|
|
838
|
+
index: number;
|
|
839
|
+
private _sizeDim;
|
|
840
|
+
private _widthDim;
|
|
841
|
+
private _heightDim;
|
|
842
|
+
private _leftDim;
|
|
843
|
+
private _rightDim;
|
|
844
|
+
private _topDim;
|
|
845
|
+
private _bottomDim;
|
|
846
|
+
constructor(chart: IChart);
|
|
847
|
+
abstract _type(): string;
|
|
848
|
+
name: string;
|
|
849
|
+
get left(): RtPercentSize;
|
|
850
|
+
set left(value: RtPercentSize);
|
|
851
|
+
get right(): RtPercentSize;
|
|
852
|
+
set right(value: RtPercentSize);
|
|
853
|
+
get top(): RtPercentSize;
|
|
854
|
+
set top(value: RtPercentSize);
|
|
855
|
+
get bottom(): RtPercentSize;
|
|
856
|
+
set bottom(value: RtPercentSize);
|
|
857
|
+
get width(): RtPercentSize;
|
|
858
|
+
set width(value: RtPercentSize);
|
|
859
|
+
get height(): RtPercentSize;
|
|
860
|
+
set height(value: RtPercentSize);
|
|
861
|
+
get size(): RtPercentSize;
|
|
862
|
+
set size(value: RtPercentSize);
|
|
863
|
+
paneStyle: SVGStyleOrClass;
|
|
864
|
+
getSize(width: number, height: number): ISize;
|
|
865
|
+
getLeft(doamin: number): number;
|
|
866
|
+
getRight(doamin: number): number;
|
|
867
|
+
getTop(doamin: number): number;
|
|
868
|
+
getBottom(doamin: number): number;
|
|
961
869
|
}
|
|
962
|
-
declare abstract class
|
|
963
|
-
|
|
964
|
-
|
|
870
|
+
declare abstract class Gauge extends GaugeBase {
|
|
871
|
+
static _loadGauge(chart: IChart, src: any, defType?: string): Gauge;
|
|
872
|
+
group: GaugeGroup<ValueGauge>;
|
|
873
|
+
gindex: number;
|
|
874
|
+
duration: number;
|
|
875
|
+
setGroup(group: GaugeGroup<ValueGauge>, index: number): void;
|
|
965
876
|
}
|
|
966
|
-
declare class
|
|
967
|
-
|
|
877
|
+
declare abstract class GaugeGroup<T extends ValueGauge> extends GaugeBase {
|
|
878
|
+
private _gauges;
|
|
879
|
+
protected _visibles: T[];
|
|
880
|
+
minValue: number;
|
|
881
|
+
maxValue: number;
|
|
882
|
+
count(): number;
|
|
883
|
+
isEmpty(): boolean;
|
|
884
|
+
visibles(): T[];
|
|
885
|
+
abstract _gaugesType(): string;
|
|
886
|
+
get(index: number): T;
|
|
887
|
+
getVisible(index: number): T;
|
|
888
|
+
calcedMinMax(): IMinMax;
|
|
889
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
890
|
+
prepareRender(): void;
|
|
891
|
+
protected _prepareChildren(visibles: T[]): void;
|
|
892
|
+
private $_loadGauges;
|
|
893
|
+
private $_add;
|
|
894
|
+
protected _setGroup(child: T, index: number): void;
|
|
968
895
|
}
|
|
969
|
-
declare class
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
896
|
+
declare class GaugeCollection {
|
|
897
|
+
readonly chart: IChart;
|
|
898
|
+
private _map;
|
|
899
|
+
private _items;
|
|
900
|
+
private _visibles;
|
|
901
|
+
private _gauges;
|
|
902
|
+
constructor(chart: IChart);
|
|
903
|
+
get count(): number;
|
|
904
|
+
get firstGauge(): Gauge;
|
|
905
|
+
visibles(): GaugeBase[];
|
|
906
|
+
getGauge(name: string): Gauge;
|
|
907
|
+
get(name: string | number): GaugeBase;
|
|
908
|
+
load(src: any): void;
|
|
909
|
+
prepareRender(): void;
|
|
910
|
+
private $_loadItem;
|
|
975
911
|
}
|
|
976
|
-
declare class
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
912
|
+
declare abstract class ValueGauge extends Gauge {
|
|
913
|
+
protected _runValue: number;
|
|
914
|
+
minValue: number;
|
|
915
|
+
maxValue: number;
|
|
916
|
+
value: number;
|
|
917
|
+
animatable: boolean;
|
|
918
|
+
updateValue(value: any, animate: boolean): void;
|
|
919
|
+
getLabel(label: GaugeLabel, value: number): string;
|
|
920
|
+
getParam(param: string): any;
|
|
921
|
+
calcedMinMax(): IMinMax;
|
|
922
|
+
}
|
|
923
|
+
declare class GuageScaleTick extends ChartItem {
|
|
924
|
+
scale: GaugeScale;
|
|
925
|
+
constructor(scale: GaugeScale);
|
|
926
|
+
reversed: boolean;
|
|
927
|
+
length: number;
|
|
983
928
|
}
|
|
984
|
-
declare class
|
|
929
|
+
declare abstract class GaugeScale extends ChartItem {
|
|
930
|
+
gauge: ValueGauge | GaugeGroup<ValueGauge>;
|
|
931
|
+
private _gap;
|
|
932
|
+
private _step;
|
|
933
|
+
_steps: number[];
|
|
934
|
+
_min: number;
|
|
935
|
+
_max: number;
|
|
936
|
+
constructor(gauge: ValueGauge | GaugeGroup<ValueGauge>, visible?: boolean);
|
|
937
|
+
position: GaugeItemPosition;
|
|
938
|
+
line: ChartItem;
|
|
939
|
+
tick: GuageScaleTick;
|
|
940
|
+
tickLabel: ChartItem;
|
|
941
|
+
steps: number[];
|
|
942
|
+
stepCount: number;
|
|
943
|
+
stepInterval: number;
|
|
944
|
+
stepPixels: number;
|
|
945
|
+
get gap(): number;
|
|
946
|
+
set gap(value: number);
|
|
947
|
+
range(): IMinMax;
|
|
948
|
+
buildSteps(length: number, value: number, target?: number): number[];
|
|
949
|
+
buildGroupSteps(length: number, values: number[]): number[];
|
|
950
|
+
protected _adjustMinMax(min: number, max: number): {
|
|
951
|
+
min: number;
|
|
952
|
+
max: number;
|
|
953
|
+
};
|
|
954
|
+
protected _adjustGroupMinMax(values: number[]): {
|
|
955
|
+
min: number;
|
|
956
|
+
max: number;
|
|
957
|
+
};
|
|
958
|
+
protected _buildSteps(length: number, min: number, max: number): number[];
|
|
959
|
+
protected _getStepsByCount(count: number, min: number, max: number): number[];
|
|
960
|
+
protected _getStepsByInterval(interval: number, min: number, max: number): number[];
|
|
961
|
+
protected _getStepMultiples(step: number): number[];
|
|
962
|
+
protected _getStepsByPixels(length: number, pixels: number, min: number, max: number): number[];
|
|
963
|
+
}
|
|
964
|
+
declare enum GaugeItemPosition {
|
|
965
|
+
DEFAULT = "default",
|
|
966
|
+
OPPOSITE = "opposite",
|
|
967
|
+
INSIDE = "inside"
|
|
968
|
+
}
|
|
969
|
+
declare class RangeLabel extends ChartItem {
|
|
970
|
+
}
|
|
971
|
+
declare class GaugeRangeBand extends ChartItem {
|
|
972
|
+
gauge: ValueGauge | GaugeGroup<ValueGauge>;
|
|
973
|
+
static readonly DEF_THICKNESS = 7;
|
|
974
|
+
private _ranges;
|
|
975
|
+
private _thickness;
|
|
976
|
+
private _runRanges;
|
|
977
|
+
private _thickDim;
|
|
978
|
+
constructor(gauge: ValueGauge | GaugeGroup<ValueGauge>, visible?: boolean);
|
|
979
|
+
position: GaugeItemPosition;
|
|
980
|
+
get thickness(): RtPercentSize;
|
|
981
|
+
set thickness(value: RtPercentSize);
|
|
982
|
+
gap: number;
|
|
983
|
+
itemGap: number;
|
|
984
|
+
get ranges(): IValueRange[];
|
|
985
|
+
set ranges(value: IValueRange[]);
|
|
986
|
+
rangeLabel: RangeLabel;
|
|
987
|
+
tickLabel: ChartItem;
|
|
988
|
+
getThickness(domain: number): number;
|
|
989
|
+
private $_internalRanges;
|
|
990
|
+
}
|
|
991
|
+
declare abstract class GaugeLabel extends FormattableText {
|
|
985
992
|
constructor(chart: IChart);
|
|
986
|
-
|
|
987
|
-
verticalAlign: VerticalAlign;
|
|
993
|
+
animatable: boolean;
|
|
988
994
|
}
|
|
989
|
-
declare
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
995
|
+
declare class CircularGaugeLabel extends GaugeLabel {
|
|
996
|
+
private _offsetXDim;
|
|
997
|
+
private _offsetYDim;
|
|
998
|
+
offsetX: RtPercentSize;
|
|
999
|
+
offsetY: RtPercentSize;
|
|
1000
|
+
getOffset(width: number, height: number): IPoint;
|
|
1001
|
+
load(source: any): ChartItem;
|
|
994
1002
|
}
|
|
995
|
-
|
|
1003
|
+
interface ICircularGaugeExtents {
|
|
1004
|
+
scale?: number;
|
|
1005
|
+
scaleTick?: number;
|
|
1006
|
+
scaleLabel?: number;
|
|
1007
|
+
band?: number;
|
|
1008
|
+
bandThick?: number;
|
|
1009
|
+
bandTick?: number;
|
|
1010
|
+
radius: number;
|
|
1011
|
+
radiusThick: number;
|
|
1012
|
+
inner: number;
|
|
996
1013
|
value: number;
|
|
997
1014
|
}
|
|
998
|
-
declare class
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1015
|
+
declare class CircularProps {
|
|
1016
|
+
private _centerX;
|
|
1017
|
+
private _centerY;
|
|
1018
|
+
private _radius;
|
|
1019
|
+
private _innerRadius;
|
|
1020
|
+
private _valueRadius;
|
|
1021
|
+
private _centerXDim;
|
|
1022
|
+
private _centerYDim;
|
|
1023
|
+
private _radiusDim;
|
|
1024
|
+
private _innerDim;
|
|
1025
|
+
private _valueDim;
|
|
1026
|
+
_startRad: number;
|
|
1027
|
+
_handRad: number;
|
|
1028
|
+
_sweepRad: number;
|
|
1029
|
+
constructor(grouped?: boolean);
|
|
1030
|
+
centerX(): RtPercentSize;
|
|
1031
|
+
setCenterX(value: RtPercentSize): void;
|
|
1032
|
+
centerY(): RtPercentSize;
|
|
1033
|
+
setCenterY(value: RtPercentSize): void;
|
|
1034
|
+
radius(): RtPercentSize;
|
|
1035
|
+
setRadius(value: RtPercentSize): void;
|
|
1036
|
+
innerRadius(): RtPercentSize;
|
|
1037
|
+
setInnerRadius(value: RtPercentSize): void;
|
|
1038
|
+
valueRadius(): RtPercentSize;
|
|
1039
|
+
setValueRadius(value: RtPercentSize): void;
|
|
1040
|
+
getCenter(gaugeWidth: number, gaugeHeight: number): {
|
|
1041
|
+
x: number;
|
|
1042
|
+
y: number;
|
|
1043
|
+
};
|
|
1044
|
+
getExtents(gaugeSize: number): ICircularGaugeExtents;
|
|
1045
|
+
prepareAngles(startAngle: number, sweepAngle: number): void;
|
|
1046
|
+
}
|
|
1047
|
+
declare abstract class CircularGauge extends ValueGauge {
|
|
1048
|
+
static readonly DEF_CENTER = "50%";
|
|
1049
|
+
static readonly DEF_RADIUS = "40%";
|
|
1050
|
+
static readonly DEF_INNER = "80%";
|
|
1051
|
+
props: CircularProps;
|
|
1052
|
+
childProps: CircularProps;
|
|
1053
|
+
constructor(chart: IChart);
|
|
1054
|
+
maxValue: number;
|
|
1055
|
+
get centerX(): RtPercentSize;
|
|
1056
|
+
set centerX(value: RtPercentSize);
|
|
1057
|
+
get centerY(): RtPercentSize;
|
|
1058
|
+
set centerY(value: RtPercentSize);
|
|
1059
|
+
get radius(): RtPercentSize;
|
|
1060
|
+
set radius(value: RtPercentSize);
|
|
1061
|
+
get innerRadius(): RtPercentSize;
|
|
1062
|
+
set innerRadius(value: RtPercentSize);
|
|
1063
|
+
get valueRadius(): RtPercentSize;
|
|
1064
|
+
set valueRadius(value: RtPercentSize);
|
|
1065
|
+
startAngle: number;
|
|
1066
|
+
sweepAngle: number;
|
|
1067
|
+
clockwise: boolean;
|
|
1068
|
+
label: CircularGaugeLabel;
|
|
1069
|
+
innerStyle: SVGStyleOrClass;
|
|
1070
|
+
getProps(): CircularProps;
|
|
1071
|
+
getCenter(gaugeWidth: number, gaugeHeight: number): {
|
|
1072
|
+
x: number;
|
|
1073
|
+
y: number;
|
|
1074
|
+
};
|
|
1075
|
+
getExtents(gaugeSize: number): ICircularGaugeExtents;
|
|
1076
|
+
labelVisible(): boolean;
|
|
1077
|
+
setGroup(group: GaugeGroup<ValueGauge>, index: number): void;
|
|
1078
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
interface IChart {
|
|
1082
|
+
type: string;
|
|
1083
|
+
gaugeType: string;
|
|
1084
|
+
xStart: number;
|
|
1085
|
+
xStep: number;
|
|
1086
|
+
first: IPlottingItem;
|
|
1087
|
+
firstSeries: Series;
|
|
1088
|
+
xAxis: IAxis;
|
|
1089
|
+
yAxis: IAxis;
|
|
1090
|
+
colors: string[];
|
|
1091
|
+
assignTemplates(target: any): any;
|
|
1092
|
+
isGauge(): boolean;
|
|
1093
|
+
isPolar(): boolean;
|
|
1094
|
+
isInverted(): boolean;
|
|
1095
|
+
animatable(): boolean;
|
|
1096
|
+
startAngle(): number;
|
|
1097
|
+
seriesByName(series: string): Series;
|
|
1098
|
+
axisByName(axis: string): Axis;
|
|
1099
|
+
getAxes(dir: SectionDir): Axis[];
|
|
1100
|
+
_getGroupType(type: string): any;
|
|
1101
|
+
_getSeriesType(type: string): any;
|
|
1102
|
+
_getAxisType(type: string): any;
|
|
1103
|
+
_getGaugeType(type: string): any;
|
|
1104
|
+
_getGaugeGroupType(type: string): any;
|
|
1105
|
+
_getSeries(): PlottingItemCollection;
|
|
1106
|
+
_getGauges(): GaugeCollection;
|
|
1107
|
+
_getXAxes(): AxisCollection;
|
|
1108
|
+
_getYAxes(): AxisCollection;
|
|
1109
|
+
getAxesGap(): number;
|
|
1110
|
+
_connectSeries(series: IPlottingItem, isX: boolean): Axis;
|
|
1111
|
+
_getLegendSources(): ILegendSource[];
|
|
1112
|
+
_visibleChanged(item: ChartItem): void;
|
|
1113
|
+
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1114
|
+
_modelChanged(item: ChartItem): void;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
declare enum CrosshairType {
|
|
1118
|
+
AUTO = "auto",
|
|
1119
|
+
LINE = "line"
|
|
1120
|
+
}
|
|
1121
|
+
declare class CrosshairFlag extends ChartItem {
|
|
1122
|
+
prefix: string;
|
|
1123
|
+
suffix: string;
|
|
1124
|
+
format: string;
|
|
1125
|
+
textStyles: SVGStyleOrClass;
|
|
1126
|
+
minWidth: number;
|
|
1127
|
+
}
|
|
1128
|
+
declare class Crosshair extends ChartItem {
|
|
1129
|
+
axis: IAxis;
|
|
1130
|
+
readonly flag: CrosshairFlag;
|
|
1131
|
+
constructor(axis: IAxis);
|
|
1132
|
+
type: CrosshairType;
|
|
1133
|
+
showAlways: boolean;
|
|
1134
|
+
followPointer: boolean;
|
|
1135
|
+
numberFormat: string;
|
|
1136
|
+
isBar(): boolean;
|
|
1137
|
+
getFlag(length: number, pos: number): string;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
interface IAxis {
|
|
1141
|
+
type(): string;
|
|
1142
|
+
chart: IChart;
|
|
1143
|
+
_length: number;
|
|
1144
|
+
_isX: boolean;
|
|
1145
|
+
_isHorz: boolean;
|
|
1146
|
+
_isOpposite: boolean;
|
|
1147
|
+
reversed: boolean;
|
|
1148
|
+
isContinuous(): boolean;
|
|
1149
|
+
getBaseValue(): number;
|
|
1150
|
+
axisMax(): number;
|
|
1151
|
+
axisMin(): number;
|
|
1152
|
+
getValue(value: any): number;
|
|
1153
|
+
parseValue(value: any): number;
|
|
1154
|
+
contains(value: number): boolean;
|
|
1155
|
+
incStep(value: number, step: any): number;
|
|
1156
|
+
getPosition(length: number, value: number, point?: boolean): number;
|
|
1157
|
+
getValueAt(length: number, pos: number): number;
|
|
1158
|
+
getUnitLength(length: number, value: number): number;
|
|
1159
|
+
}
|
|
1160
|
+
declare abstract class AxisItem extends ChartItem {
|
|
1161
|
+
readonly axis: Axis;
|
|
1162
|
+
constructor(axis: Axis, visible?: boolean);
|
|
1163
|
+
}
|
|
1164
|
+
declare class AxisLine extends AxisItem {
|
|
1165
|
+
constructor(axis: Axis);
|
|
1166
|
+
}
|
|
1167
|
+
declare class AxisTitle extends AxisItem {
|
|
1168
|
+
text: string;
|
|
1169
|
+
gap: number;
|
|
1170
|
+
backgroundStyle: SVGStyleOrClass;
|
|
1171
|
+
isVisible(): boolean;
|
|
1172
|
+
protected _doLoadSimple(source: any): boolean;
|
|
1173
|
+
}
|
|
1174
|
+
declare class AxisGrid extends AxisItem {
|
|
1175
|
+
circular: boolean;
|
|
1176
|
+
startVisible: boolean;
|
|
1177
|
+
endVisible: boolean;
|
|
1178
|
+
constructor(axis: Axis);
|
|
1179
|
+
isVisible(): boolean;
|
|
1180
|
+
getPoints(length: number): number[];
|
|
1181
|
+
}
|
|
1182
|
+
declare class AxisGuideLabel extends FormattableText {
|
|
1183
|
+
constructor(chart: IChart);
|
|
1184
|
+
align: Align;
|
|
1185
|
+
verticalAlign: VerticalAlign;
|
|
1186
|
+
}
|
|
1187
|
+
declare abstract class AxisGuide extends AxisItem {
|
|
1188
|
+
readonly label: AxisGuideLabel;
|
|
1189
|
+
front: boolean;
|
|
1190
|
+
zindex: number;
|
|
1191
|
+
constructor(axis: Axis);
|
|
1192
|
+
}
|
|
1193
|
+
declare abstract class AxisTick extends AxisItem {
|
|
1194
|
+
length: number;
|
|
1195
|
+
margin: number;
|
|
1196
|
+
constructor(axis: Axis);
|
|
1197
|
+
}
|
|
1198
|
+
declare enum AxisLabelArrange {
|
|
1008
1199
|
NONE = "none",
|
|
1009
1200
|
ROTATE = "rotate",
|
|
1010
1201
|
STEP = "step",
|
|
@@ -1032,6 +1223,10 @@ declare enum AxisPosition {
|
|
|
1032
1223
|
OPPOSITE = "opposite",
|
|
1033
1224
|
BASE = "base"
|
|
1034
1225
|
}
|
|
1226
|
+
declare class AxisScrollBar extends AxisItem {
|
|
1227
|
+
constructor(axis: Axis);
|
|
1228
|
+
width: number;
|
|
1229
|
+
}
|
|
1035
1230
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
1036
1231
|
readonly name: string;
|
|
1037
1232
|
readonly title: AxisTitle;
|
|
@@ -1041,6 +1236,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1041
1236
|
readonly grid: AxisGrid;
|
|
1042
1237
|
readonly guides: AxisGuide[];
|
|
1043
1238
|
readonly crosshair: Crosshair;
|
|
1239
|
+
readonly scrollBar: AxisScrollBar;
|
|
1044
1240
|
_isX: boolean;
|
|
1045
1241
|
_isHorz: boolean;
|
|
1046
1242
|
_isOpposite: boolean;
|
|
@@ -1118,646 +1314,282 @@ declare class AxisCollection {
|
|
|
1118
1314
|
private $_loadAxis;
|
|
1119
1315
|
}
|
|
1120
1316
|
|
|
1121
|
-
declare class
|
|
1317
|
+
declare abstract class CircleGaugeRimBase extends ChartItem {
|
|
1318
|
+
gauge: CircleGauge;
|
|
1319
|
+
private _ranges;
|
|
1320
|
+
private _runRanges;
|
|
1321
|
+
constructor(gauge: CircleGauge);
|
|
1322
|
+
get ranges(): IValueRange[];
|
|
1323
|
+
set ranges(value: IValueRange[]);
|
|
1324
|
+
isRanged(): boolean;
|
|
1325
|
+
rangeCount(): number;
|
|
1326
|
+
getRange(value: number): IValueRange | undefined;
|
|
1327
|
+
private $_internalRanges;
|
|
1328
|
+
}
|
|
1329
|
+
declare class CircleGaugeRim extends CircleGaugeRimBase {
|
|
1330
|
+
private _segmentThickness;
|
|
1331
|
+
private _thickDim;
|
|
1332
|
+
constructor(gauge: CircleGauge);
|
|
1333
|
+
get segmentThickness(): RtPercentSize;
|
|
1334
|
+
set segmentThickness(value: RtPercentSize);
|
|
1335
|
+
segmentGap: number;
|
|
1336
|
+
getSegmentThickness(domain: number): number;
|
|
1337
|
+
}
|
|
1338
|
+
declare class CircleGaugeValueRim extends CircleGaugeRimBase {
|
|
1339
|
+
private _thickness;
|
|
1340
|
+
private _thickDim;
|
|
1341
|
+
constructor(gauge: CircleGauge);
|
|
1342
|
+
get thickness(): RtPercentSize;
|
|
1343
|
+
set thickness(value: RtPercentSize);
|
|
1344
|
+
stroked: boolean;
|
|
1345
|
+
getThickness(domain: number): number;
|
|
1346
|
+
}
|
|
1347
|
+
declare class CircleGaugeValueMarker extends ChartItem {
|
|
1348
|
+
constructor(gauge: CircleGauge);
|
|
1349
|
+
}
|
|
1350
|
+
declare class CircleGaugeHand extends ChartItem {
|
|
1122
1351
|
private _radius;
|
|
1123
|
-
private
|
|
1124
|
-
private
|
|
1352
|
+
private _length;
|
|
1353
|
+
private _offset;
|
|
1125
1354
|
private _radiusDim;
|
|
1126
|
-
private
|
|
1127
|
-
private
|
|
1128
|
-
|
|
1129
|
-
_frontGuides: AxisGuide[];
|
|
1130
|
-
private _rd;
|
|
1131
|
-
private _cx;
|
|
1132
|
-
private _cy;
|
|
1133
|
-
constructor(chart: IChart);
|
|
1355
|
+
private _lengthDim;
|
|
1356
|
+
private _offsetDim;
|
|
1357
|
+
constructor(gauge: CircleGauge);
|
|
1134
1358
|
get radius(): RtPercentSize;
|
|
1135
1359
|
set radius(value: RtPercentSize);
|
|
1136
|
-
get
|
|
1137
|
-
set
|
|
1138
|
-
get
|
|
1139
|
-
set
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
setPolar(width: number, height: number): Body;
|
|
1145
|
-
getStartAngle(): number;
|
|
1146
|
-
getPolar(series: Series): {
|
|
1147
|
-
start: number;
|
|
1148
|
-
cx: number;
|
|
1149
|
-
cy: number;
|
|
1150
|
-
rd: number;
|
|
1151
|
-
deg: number;
|
|
1360
|
+
get length(): RtPercentSize;
|
|
1361
|
+
set length(value: RtPercentSize);
|
|
1362
|
+
get offset(): RtPercentSize;
|
|
1363
|
+
set offset(value: RtPercentSize);
|
|
1364
|
+
getExtents(domain: number): {
|
|
1365
|
+
radius: number;
|
|
1366
|
+
length: number;
|
|
1367
|
+
offset: number;
|
|
1152
1368
|
};
|
|
1153
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
1154
1369
|
}
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1370
|
+
declare class CircleGaugePin extends ChartItem {
|
|
1371
|
+
private _radius;
|
|
1372
|
+
private _radiusDim;
|
|
1373
|
+
constructor(gauge: CircleGauge);
|
|
1374
|
+
get radius(): RtPercentSize;
|
|
1375
|
+
set radius(value: RtPercentSize);
|
|
1376
|
+
getRadius(domain: number): number;
|
|
1377
|
+
}
|
|
1378
|
+
declare class CircleGaugeScale extends GaugeScale {
|
|
1379
|
+
stepPixels: number;
|
|
1380
|
+
protected _getStepMultiples(step: number): number[];
|
|
1381
|
+
}
|
|
1382
|
+
declare class CircleGauge extends CircularGauge {
|
|
1383
|
+
constructor(chart: IChart);
|
|
1384
|
+
band: GaugeRangeBand;
|
|
1385
|
+
scale: CircleGaugeScale;
|
|
1386
|
+
rim: CircleGaugeRim;
|
|
1387
|
+
valueRim: CircleGaugeValueRim;
|
|
1388
|
+
marker: CircleGaugeValueMarker;
|
|
1389
|
+
hand: CircleGaugeHand;
|
|
1390
|
+
pin: CircleGaugePin;
|
|
1391
|
+
_type(): string;
|
|
1392
|
+
getExtents(gaugeSize: number): ICircularGaugeExtents;
|
|
1160
1393
|
}
|
|
1161
1394
|
|
|
1162
|
-
declare class
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1395
|
+
declare class RcChartObject {
|
|
1396
|
+
$_p: ChartItem;
|
|
1397
|
+
protected constructor(proxy: ChartItem);
|
|
1398
|
+
protected _createObjects(...objs: string[]): void;
|
|
1399
|
+
protected _doInit(proxy: ChartItem): void;
|
|
1400
|
+
get(prop: string): any;
|
|
1401
|
+
set(prop: string, value: any, redraw?: boolean): RcChartObject;
|
|
1402
|
+
setAll(props: object, redraw?: boolean): RcChartObject;
|
|
1403
|
+
toggle(prop: string, redraw?: boolean): RcChartObject;
|
|
1404
|
+
protected _changed(): void;
|
|
1169
1405
|
}
|
|
1170
|
-
declare
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1406
|
+
declare abstract class RcChartAxis extends RcChartObject {
|
|
1407
|
+
private _title;
|
|
1408
|
+
private _line;
|
|
1409
|
+
private _grid;
|
|
1410
|
+
private _tick;
|
|
1411
|
+
private _label;
|
|
1412
|
+
private _crosshair;
|
|
1413
|
+
private _scrollBar;
|
|
1414
|
+
protected _doInit(proxy: Axis): void;
|
|
1415
|
+
get title(): RcChartObject;
|
|
1416
|
+
get line(): RcChartObject;
|
|
1417
|
+
get grid(): RcChartObject;
|
|
1418
|
+
get tick(): RcChartObject;
|
|
1419
|
+
get label(): RcChartObject;
|
|
1420
|
+
get crosshair(): RcChartObject;
|
|
1421
|
+
get scrollBar(): RcChartObject;
|
|
1175
1422
|
}
|
|
1176
|
-
declare class
|
|
1177
|
-
position: SubtitlePosition;
|
|
1178
|
-
verticalAlign: VerticalAlign;
|
|
1179
|
-
text: string;
|
|
1423
|
+
declare class RcCategoryAxis extends RcChartAxis {
|
|
1180
1424
|
}
|
|
1181
|
-
|
|
1182
|
-
declare abstract class GaugeBase extends Widget {
|
|
1183
|
-
private _size;
|
|
1184
|
-
private _width;
|
|
1185
|
-
private _height;
|
|
1186
|
-
private _left;
|
|
1187
|
-
private _right;
|
|
1188
|
-
private _top;
|
|
1189
|
-
private _bottom;
|
|
1190
|
-
index: number;
|
|
1191
|
-
private _sizeDim;
|
|
1192
|
-
private _widthDim;
|
|
1193
|
-
private _heightDim;
|
|
1194
|
-
private _leftDim;
|
|
1195
|
-
private _rightDim;
|
|
1196
|
-
private _topDim;
|
|
1197
|
-
private _bottomDim;
|
|
1198
|
-
constructor(chart: IChart);
|
|
1199
|
-
abstract _type(): string;
|
|
1200
|
-
name: string;
|
|
1201
|
-
get left(): RtPercentSize;
|
|
1202
|
-
set left(value: RtPercentSize);
|
|
1203
|
-
get right(): RtPercentSize;
|
|
1204
|
-
set right(value: RtPercentSize);
|
|
1205
|
-
get top(): RtPercentSize;
|
|
1206
|
-
set top(value: RtPercentSize);
|
|
1207
|
-
get bottom(): RtPercentSize;
|
|
1208
|
-
set bottom(value: RtPercentSize);
|
|
1209
|
-
get width(): RtPercentSize;
|
|
1210
|
-
set width(value: RtPercentSize);
|
|
1211
|
-
get height(): RtPercentSize;
|
|
1212
|
-
set height(value: RtPercentSize);
|
|
1213
|
-
get size(): RtPercentSize;
|
|
1214
|
-
set size(value: RtPercentSize);
|
|
1215
|
-
getSize(width: number, height: number): ISize;
|
|
1216
|
-
getLeft(doamin: number): number;
|
|
1217
|
-
getRight(doamin: number): number;
|
|
1218
|
-
getTop(doamin: number): number;
|
|
1219
|
-
getBottom(doamin: number): number;
|
|
1425
|
+
declare abstract class RcContinuousAxis extends RcChartAxis {
|
|
1220
1426
|
}
|
|
1221
|
-
declare class
|
|
1222
|
-
readonly chart: IChart;
|
|
1223
|
-
private _map;
|
|
1224
|
-
private _items;
|
|
1225
|
-
private _visibles;
|
|
1226
|
-
constructor(chart: IChart);
|
|
1227
|
-
get count(): number;
|
|
1228
|
-
visibles(): GaugeBase[];
|
|
1229
|
-
get(name: string | number): GaugeBase;
|
|
1230
|
-
load(src: any): void;
|
|
1231
|
-
prepareRender(): void;
|
|
1232
|
-
private $_loadItem;
|
|
1427
|
+
declare class RcLinearAxis extends RcContinuousAxis {
|
|
1233
1428
|
}
|
|
1234
|
-
|
|
1235
|
-
interface IChart {
|
|
1236
|
-
type: string;
|
|
1237
|
-
gaugeType: string;
|
|
1238
|
-
xStart: number;
|
|
1239
|
-
xStep: number;
|
|
1240
|
-
first: IPlottingItem;
|
|
1241
|
-
firstSeries: Series;
|
|
1242
|
-
xAxis: IAxis;
|
|
1243
|
-
yAxis: IAxis;
|
|
1244
|
-
colors: string[];
|
|
1245
|
-
assignTemplates(target: any): any;
|
|
1246
|
-
isGauge(): boolean;
|
|
1247
|
-
isPolar(): boolean;
|
|
1248
|
-
isInverted(): boolean;
|
|
1249
|
-
animatable(): boolean;
|
|
1250
|
-
startAngle(): number;
|
|
1251
|
-
seriesByName(series: string): Series;
|
|
1252
|
-
axisByName(axis: string): Axis;
|
|
1253
|
-
getAxes(dir: SectionDir): Axis[];
|
|
1254
|
-
_getGroupType(type: string): any;
|
|
1255
|
-
_getSeriesType(type: string): any;
|
|
1256
|
-
_getAxisType(type: string): any;
|
|
1257
|
-
_getGaugeType(type: string): any;
|
|
1258
|
-
_getGaugeGroupType(type: string): any;
|
|
1259
|
-
_getSeries(): PlottingItemCollection;
|
|
1260
|
-
_getGauges(): GaugeCollection;
|
|
1261
|
-
_getXAxes(): AxisCollection;
|
|
1262
|
-
_getYAxes(): AxisCollection;
|
|
1263
|
-
getAxesGap(): number;
|
|
1264
|
-
_connectSeries(series: IPlottingItem, isX: boolean): Axis;
|
|
1265
|
-
_getLegendSources(): ILegendSource[];
|
|
1266
|
-
_visibleChanged(item: ChartItem): void;
|
|
1267
|
-
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1268
|
-
_modelChanged(item: ChartItem): void;
|
|
1429
|
+
declare class RcTimeAxis extends RcContinuousAxis {
|
|
1269
1430
|
}
|
|
1270
|
-
declare class
|
|
1271
|
-
text: string;
|
|
1272
|
-
url: string;
|
|
1273
|
-
floating: boolean;
|
|
1274
|
-
align: Align;
|
|
1275
|
-
verticalAlign: VerticalAlign;
|
|
1276
|
-
offsetX: number;
|
|
1277
|
-
offsetY: number;
|
|
1431
|
+
declare class RcLogAxis extends RcContinuousAxis {
|
|
1278
1432
|
}
|
|
1279
|
-
declare class
|
|
1280
|
-
theme: string;
|
|
1281
|
-
palette: string;
|
|
1282
|
-
paletteMode: PaletteMode;
|
|
1283
|
-
animatable: boolean;
|
|
1284
|
-
xStart: any;
|
|
1285
|
-
xStep: number | string;
|
|
1286
|
-
axisGap: number;
|
|
1287
|
-
credits: Credits;
|
|
1288
|
-
}
|
|
1289
|
-
interface IChartEventListener {
|
|
1290
|
-
onModelChanged?(chart: Chart, item: ChartItem): void;
|
|
1291
|
-
onVisibleChanged?(chart: Chart, item: ChartItem): void;
|
|
1292
|
-
onPointVisibleChange?(chart: Chart, series: Series, point: DataPoint): void;
|
|
1293
|
-
}
|
|
1294
|
-
declare class Chart extends RcEventProvider<IChartEventListener> implements IChart {
|
|
1295
|
-
private _templates;
|
|
1296
|
-
private _assets;
|
|
1297
|
-
private _themes;
|
|
1298
|
-
private _options;
|
|
1299
|
-
private _title;
|
|
1300
|
-
private _subtitle;
|
|
1301
|
-
private _legend;
|
|
1302
|
-
private _series;
|
|
1303
|
-
private _xAxes;
|
|
1304
|
-
private _yAxes;
|
|
1305
|
-
private _gauges;
|
|
1306
|
-
private _body;
|
|
1307
|
-
private _inverted;
|
|
1308
|
-
private _polar;
|
|
1309
|
-
private _gaugeOnly;
|
|
1310
|
-
colors: string[];
|
|
1311
|
-
assignTemplates: (target: any) => any;
|
|
1312
|
-
constructor(source?: any);
|
|
1313
|
-
startAngle(): number;
|
|
1314
|
-
get xStart(): number;
|
|
1315
|
-
get xStep(): number;
|
|
1316
|
-
get xStepUnit(): string;
|
|
1317
|
-
animatable(): boolean;
|
|
1318
|
-
type: string;
|
|
1319
|
-
gaugeType: string;
|
|
1320
|
-
polar: boolean;
|
|
1321
|
-
inverted: boolean;
|
|
1322
|
-
get assets(): AssetCollection;
|
|
1323
|
-
get options(): ChartOptions;
|
|
1324
|
-
get title(): Title;
|
|
1325
|
-
get subtitle(): Subtitle;
|
|
1326
|
-
get first(): IPlottingItem;
|
|
1327
|
-
get firstSeries(): Series;
|
|
1328
|
-
get legend(): Legend;
|
|
1329
|
-
get xAxis(): IAxis;
|
|
1330
|
-
get yAxis(): IAxis;
|
|
1331
|
-
get body(): Body;
|
|
1332
|
-
needAxes(): boolean;
|
|
1333
|
-
_getSeries(): PlottingItemCollection;
|
|
1334
|
-
_getGauges(): GaugeCollection;
|
|
1335
|
-
_getXAxes(): AxisCollection;
|
|
1336
|
-
_getYAxes(): AxisCollection;
|
|
1337
|
-
isGauge(): boolean;
|
|
1338
|
-
isPolar(): boolean;
|
|
1339
|
-
isWidget(): boolean;
|
|
1340
|
-
isInverted(): boolean;
|
|
1341
|
-
isEmpty(): boolean;
|
|
1342
|
-
seriesByName(series: string): Series;
|
|
1343
|
-
seriesByPoint(point: DataPoint): Series;
|
|
1344
|
-
axisByName(axis: string): Axis;
|
|
1345
|
-
containsAxis(axis: Axis): boolean;
|
|
1346
|
-
getAxes(dir: SectionDir): Axis[];
|
|
1347
|
-
_getLegendSources(): ILegendSource[];
|
|
1348
|
-
private $_assignTemplates;
|
|
1349
|
-
load(source: any): void;
|
|
1350
|
-
_connectSeries(series: IPlottingItem, isX: boolean): Axis;
|
|
1351
|
-
prepareRender(): void;
|
|
1352
|
-
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1353
|
-
calcAxesPoints(width: number, height: number, inverted: boolean): void;
|
|
1354
|
-
private $_calcAxesPoints;
|
|
1355
|
-
update(): void;
|
|
1356
|
-
updateGauge(gauge: string, values: any): void;
|
|
1357
|
-
private $_loadTemplates;
|
|
1358
|
-
_getGroupType(type: string): any;
|
|
1359
|
-
_getSeriesType(type: string): any;
|
|
1360
|
-
_getAxisType(type: string): any;
|
|
1361
|
-
_getGaugeType(type: string): any;
|
|
1362
|
-
_getGaugeGroupType(type: string): any;
|
|
1363
|
-
getAxesGap(): number;
|
|
1364
|
-
_modelChanged(item: ChartItem): void;
|
|
1365
|
-
_visibleChanged(item: ChartItem): void;
|
|
1366
|
-
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1433
|
+
declare class RcPointLabel extends RcChartAxis {
|
|
1367
1434
|
}
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
private
|
|
1371
|
-
|
|
1372
|
-
protected
|
|
1373
|
-
|
|
1374
|
-
|
|
1435
|
+
declare abstract class RcChartSeries extends RcChartObject {
|
|
1436
|
+
private _pointLabel;
|
|
1437
|
+
private _trendLine;
|
|
1438
|
+
private _tooltip;
|
|
1439
|
+
protected _doInit(proxy: ChartItem): void;
|
|
1440
|
+
get pointLabel(): RcChartObject;
|
|
1441
|
+
get trendLine(): RcChartObject;
|
|
1442
|
+
get tooltip(): RcChartObject;
|
|
1375
1443
|
}
|
|
1376
|
-
|
|
1377
|
-
declare class Sides {
|
|
1378
|
-
top: number;
|
|
1379
|
-
bottom: number;
|
|
1380
|
-
left: number;
|
|
1381
|
-
right: number;
|
|
1382
|
-
static readonly Empty: Readonly<Sides>;
|
|
1383
|
-
static Temp: Sides;
|
|
1384
|
-
static create(top: number, bottom?: number, left?: number, right?: number): Sides;
|
|
1385
|
-
static createFrom(value: string): Sides;
|
|
1386
|
-
constructor(top?: number, bottom?: number, left?: number, right?: number);
|
|
1387
|
-
clone(): Sides;
|
|
1388
|
-
applyPadding(cs: CSSStyleDeclaration): Sides;
|
|
1389
|
-
applyMargin(cs: CSSStyleDeclaration): Sides;
|
|
1390
|
-
shrink(r: IRect): IRect;
|
|
1391
|
-
toString(): string;
|
|
1444
|
+
declare abstract class RcSeriesGroup extends RcChartObject {
|
|
1392
1445
|
}
|
|
1393
|
-
|
|
1394
|
-
interface IRectShape extends IRect {
|
|
1395
|
-
r?: number;
|
|
1396
|
-
rx?: number;
|
|
1397
|
-
ry?: number;
|
|
1398
|
-
rLeft?: number;
|
|
1399
|
-
rTop?: number;
|
|
1400
|
-
rRight?: number;
|
|
1401
|
-
rBottom?: number;
|
|
1402
|
-
}
|
|
1403
|
-
declare class RectElement extends RcElement {
|
|
1404
|
-
static create(doc: Document, styleName: string, x: number, y: number, width: number, height: number, r?: number): RectElement;
|
|
1405
|
-
private _rect;
|
|
1406
|
-
constructor(doc: Document, styleName?: string, rect?: IRectShape);
|
|
1407
|
-
get rect(): IRectShape;
|
|
1408
|
-
set rect(value: IRectShape);
|
|
1409
|
-
resizeRect(width: number, height: number): RcElement;
|
|
1410
|
-
setBounds(x: number, y: number, width: number, height: number, r?: number): RectElement;
|
|
1411
|
-
setBox(x: number, y: number, width: number, height: number): void;
|
|
1412
|
-
setRadius(value: number): void;
|
|
1446
|
+
declare class RcLineSeries extends RcChartSeries {
|
|
1413
1447
|
}
|
|
1414
|
-
|
|
1415
|
-
declare abstract class ChartElement<T extends ChartItem> extends RcElement {
|
|
1416
|
-
model: T;
|
|
1417
|
-
mw: number;
|
|
1418
|
-
mh: number;
|
|
1419
|
-
_debugRect: RectElement;
|
|
1420
|
-
constructor(doc: Document, styleName?: any);
|
|
1421
|
-
chart(): IChart;
|
|
1422
|
-
protected _prepareStyleOrClass(model: T): void;
|
|
1423
|
-
measure(doc: Document, model: T, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1424
|
-
layout(param?: any): ChartElement<ChartItem>;
|
|
1425
|
-
resizeByMeasured(): ChartElement<ChartItem>;
|
|
1426
|
-
protected _getDebugRect(): IRect;
|
|
1427
|
-
protected _doMeasure(doc: Document, model: T, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1428
|
-
protected _doLayout(param: any): void;
|
|
1429
|
-
protected _invalidate(): void;
|
|
1430
|
-
protected _doModelChanged(): void;
|
|
1431
|
-
}
|
|
1432
|
-
declare abstract class BoundableElement<T extends ChartItem> extends ChartElement<T> {
|
|
1433
|
-
private _background;
|
|
1434
|
-
protected _margins: Sides;
|
|
1435
|
-
protected _paddings: Sides;
|
|
1436
|
-
private _borderRadius;
|
|
1437
|
-
constructor(doc: Document, styleName: string, backStyle: string);
|
|
1438
|
-
protected _getDebugRect(): IRect;
|
|
1439
|
-
measure(doc: Document, model: T, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1440
|
-
layout(param?: any): ChartElement<ChartItem>;
|
|
1441
|
-
protected abstract _setBackgroundStyle(back: RectElement): void;
|
|
1442
|
-
protected _getBackOffset(): number;
|
|
1448
|
+
declare class RcAreaSeries extends RcChartSeries {
|
|
1443
1449
|
}
|
|
1444
|
-
|
|
1445
|
-
type Visitor<T extends RcElement> = (element: T, index?: number, count?: number) => void;
|
|
1446
|
-
declare class ElementPool<T extends RcElement> extends RcObject {
|
|
1447
|
-
removeDelay: number;
|
|
1448
|
-
private _owner;
|
|
1449
|
-
private _creator;
|
|
1450
|
-
private _pool;
|
|
1451
|
-
private _views;
|
|
1452
|
-
private _removes;
|
|
1453
|
-
private _styleName;
|
|
1454
|
-
constructor(owner: RcElement, creator: {
|
|
1455
|
-
new (doc: Document, styleName?: string): T;
|
|
1456
|
-
}, styleName?: string, removeDelay?: number);
|
|
1457
|
-
protected _doDestory(): void;
|
|
1458
|
-
get isEmpty(): boolean;
|
|
1459
|
-
get count(): number;
|
|
1460
|
-
get first(): T;
|
|
1461
|
-
get last(): T;
|
|
1462
|
-
get(index: number): T;
|
|
1463
|
-
getAll(): T[];
|
|
1464
|
-
elementOf(dom: Element): T;
|
|
1465
|
-
find(matcher: (v: T) => boolean): T;
|
|
1466
|
-
setRemoveDelay(v: number): ElementPool<T>;
|
|
1467
|
-
removeLater(v: RcElement, duration: number): void;
|
|
1468
|
-
private $_create;
|
|
1469
|
-
prepare(count: number, visitor?: Visitor<T>, initor?: Visitor<T>): ElementPool<T>;
|
|
1470
|
-
reprepare(viewProp: string, objs: RcObject[], objProp: string, cleaner?: Visitor<T>, initor?: Visitor<T>, visitor?: Visitor<T>): ElementPool<T>;
|
|
1471
|
-
borrow(): T;
|
|
1472
|
-
free(element: T, removeDelay?: number): void;
|
|
1473
|
-
freeAll(elements: T[], removeDelay?: number): void;
|
|
1474
|
-
forEach(visitor: (v: T, i?: number, count?: number) => void): void;
|
|
1475
|
-
visit(visitor: (v: T, i: number, count: number) => boolean): boolean;
|
|
1476
|
-
sort(compare: (v1: T, v2: T) => number): ElementPool<T>;
|
|
1477
|
-
map(callback: (v: T) => any): any[];
|
|
1450
|
+
declare class RcAreaRangeSeries extends RcChartSeries {
|
|
1478
1451
|
}
|
|
1479
|
-
|
|
1480
|
-
type RcAnimationEndHandler = (ani: RcAnimation) => void;
|
|
1481
|
-
declare abstract class RcAnimation {
|
|
1482
|
-
static readonly DURATION = 700;
|
|
1483
|
-
static readonly SHORT_DURATION = 300;
|
|
1484
|
-
delay: number;
|
|
1485
|
-
duration: number;
|
|
1486
|
-
easing: string;
|
|
1487
|
-
endHandler: RcAnimationEndHandler;
|
|
1488
|
-
private _easing;
|
|
1489
|
-
private _started;
|
|
1490
|
-
private _timer;
|
|
1491
|
-
private _handler;
|
|
1492
|
-
start(endHandler?: RcAnimationEndHandler): RcAnimation;
|
|
1493
|
-
stop(): void;
|
|
1494
|
-
protected _start(duration: number, delay?: number, easing?: string): void;
|
|
1495
|
-
protected _stop(): void;
|
|
1496
|
-
protected _doStart(): void;
|
|
1497
|
-
protected _doStop(): void;
|
|
1498
|
-
protected abstract _doUpdate(rate: number): boolean;
|
|
1452
|
+
declare class RcBarSeries extends RcChartSeries {
|
|
1499
1453
|
}
|
|
1500
|
-
|
|
1501
|
-
declare class LabelElement extends GroupElement {
|
|
1502
|
-
private _back;
|
|
1503
|
-
_outline: TextElement;
|
|
1504
|
-
_text: TextElement;
|
|
1505
|
-
private _model;
|
|
1506
|
-
constructor(doc: Document, styleName?: string);
|
|
1507
|
-
get text(): string;
|
|
1508
|
-
get anchor(): TextAnchor;
|
|
1509
|
-
set anchor(value: TextAnchor);
|
|
1510
|
-
setText(s: string): LabelElement;
|
|
1511
|
-
setSvg(s: string): LabelElement;
|
|
1512
|
-
setModel(doc: Document, model: ChartText, contrastTarget: Element): LabelElement;
|
|
1513
|
-
setContrast(target: Element): LabelElement;
|
|
1514
|
-
layout(): LabelElement;
|
|
1454
|
+
declare class RcBarRangeSeries extends RcChartSeries {
|
|
1515
1455
|
}
|
|
1516
|
-
|
|
1517
|
-
interface IPointView {
|
|
1518
|
-
point: DataPoint;
|
|
1456
|
+
declare class RcBellCurveSeries extends RcChartSeries {
|
|
1519
1457
|
}
|
|
1520
|
-
declare class
|
|
1521
|
-
point: DataPoint;
|
|
1522
|
-
constructor(doc: Document);
|
|
1458
|
+
declare class RcBoxPlotSeries extends RcChartSeries {
|
|
1523
1459
|
}
|
|
1524
|
-
declare class
|
|
1525
|
-
private _labels;
|
|
1526
|
-
private _maps;
|
|
1527
|
-
constructor(doc: Document);
|
|
1528
|
-
clear(): void;
|
|
1529
|
-
prepareLabel(doc: Document, view: PointLabelView, index: number, p: DataPoint, model: DataPointLabel): void;
|
|
1530
|
-
prepare(doc: Document, owner: SeriesView<Series>): void;
|
|
1531
|
-
get(point: DataPoint, index: number): PointLabelView;
|
|
1532
|
-
removePoint(p: DataPoint, delay: number): void;
|
|
1533
|
-
}
|
|
1534
|
-
declare class PointContainer extends LayerElement {
|
|
1535
|
-
inverted: boolean;
|
|
1536
|
-
invert(v: boolean, height: number): boolean;
|
|
1537
|
-
}
|
|
1538
|
-
type LabelLayoutInfo = {
|
|
1539
|
-
inverted: boolean;
|
|
1540
|
-
reversed: boolean;
|
|
1541
|
-
pointView: RcElement;
|
|
1542
|
-
x: number;
|
|
1543
|
-
y: number;
|
|
1544
|
-
hPoint: number;
|
|
1545
|
-
wPoint: number;
|
|
1546
|
-
labelView: PointLabelView;
|
|
1547
|
-
labelPos: PointItemPosition;
|
|
1548
|
-
labelOff: number;
|
|
1549
|
-
};
|
|
1550
|
-
declare abstract class SeriesView<T extends Series> extends ChartElement<T> {
|
|
1551
|
-
static readonly POINT_CLASS = "rct-point";
|
|
1552
|
-
static readonly DATA_FOUCS = "focus";
|
|
1553
|
-
static readonly LEGEND_MARKER = "rct-legend-item-marker";
|
|
1554
|
-
protected _pointContainer: PointContainer;
|
|
1555
|
-
protected _labelContainer: PointLabelContainer;
|
|
1556
|
-
private _trendLineView;
|
|
1557
|
-
protected _legendMarker: RcElement;
|
|
1558
|
-
protected _visPoints: DataPoint[];
|
|
1559
|
-
protected _inverted: boolean;
|
|
1560
|
-
protected _animatable: boolean;
|
|
1561
|
-
private _viewRate;
|
|
1562
|
-
_animations: Animation[];
|
|
1563
|
-
constructor(doc: Document, styleName: string);
|
|
1564
|
-
invertable(): boolean;
|
|
1565
|
-
getClipContainer(): RcElement;
|
|
1566
|
-
setViewRate(rate: number): void;
|
|
1567
|
-
setPosRate(rate: number): void;
|
|
1568
|
-
isPointVisible(p: DataPoint): boolean;
|
|
1569
|
-
protected _doViewRateChanged(rate: number): void;
|
|
1570
|
-
_setChartOptions(inverted: boolean, animatable: boolean): void;
|
|
1571
|
-
_animationStarted(ani: Animation): void;
|
|
1572
|
-
_animationFinished(ani: Animation): void;
|
|
1573
|
-
protected abstract _getPointPool(): ElementPool<RcElement>;
|
|
1574
|
-
pointByDom(elt: Element): IPointView;
|
|
1575
|
-
findPointView(p: DataPoint): RcElement;
|
|
1576
|
-
clicked(elt: Element): void;
|
|
1577
|
-
protected _doPointClicked(view: IPointView): void;
|
|
1578
|
-
protected _getColor(): string;
|
|
1579
|
-
prepareSeries(doc: Document, model: T): void;
|
|
1580
|
-
protected _prepareStyleOrClass(model: T): void;
|
|
1581
|
-
protected _doMeasure(doc: Document, model: T, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1582
|
-
protected _doLayout(): void;
|
|
1583
|
-
protected abstract _prepareSeries(doc: Document, model: T): void;
|
|
1584
|
-
protected abstract _renderSeries(width: number, height: number): void;
|
|
1585
|
-
protected _collectVisPoints(model: T): DataPoint[];
|
|
1586
|
-
private $_setColorIndex;
|
|
1587
|
-
protected _setPointStyle(v: RcElement, model: T, p: DataPoint, styles?: any[]): void;
|
|
1588
|
-
protected _labelViews(): PointLabelContainer;
|
|
1589
|
-
protected _getViewRate(): number;
|
|
1590
|
-
protected _animating(): boolean;
|
|
1591
|
-
protected _lazyPrepareLabels(): boolean;
|
|
1592
|
-
protected _afterRender(): void;
|
|
1593
|
-
protected _getShowAnimation(): RcAnimation;
|
|
1594
|
-
protected _runShowEffect(firstTime: boolean): void;
|
|
1595
|
-
private $_renderTrendline;
|
|
1596
|
-
protected _layoutLabel(info: LabelLayoutInfo): void;
|
|
1460
|
+
declare class RcBubbleSeries extends RcChartSeries {
|
|
1597
1461
|
}
|
|
1598
|
-
|
|
1599
|
-
declare class AxisGridView extends ChartElement<AxisGrid> {
|
|
1600
|
-
private _pts;
|
|
1601
|
-
private _lines;
|
|
1602
|
-
constructor(doc: Document);
|
|
1603
|
-
protected _doMeasure(doc: Document, model: AxisGrid, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1604
|
-
protected _doLayout(): void;
|
|
1462
|
+
declare class RcScatterSeries extends RcChartSeries {
|
|
1605
1463
|
}
|
|
1606
|
-
declare
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1464
|
+
declare class RcCandlestickSeries extends RcChartSeries {
|
|
1465
|
+
}
|
|
1466
|
+
declare class RcDumbbellSeries extends RcChartSeries {
|
|
1467
|
+
}
|
|
1468
|
+
declare class RcEqualizerSeries extends RcChartSeries {
|
|
1469
|
+
}
|
|
1470
|
+
declare class RcFunnelSeries extends RcChartSeries {
|
|
1471
|
+
}
|
|
1472
|
+
declare class RcHeatmapSeries extends RcChartSeries {
|
|
1473
|
+
}
|
|
1474
|
+
declare class RcTreemapSeries extends RcChartSeries {
|
|
1475
|
+
}
|
|
1476
|
+
declare class RcHistogramSeries extends RcChartSeries {
|
|
1477
|
+
}
|
|
1478
|
+
declare class RcLollipopSeries extends RcChartSeries {
|
|
1479
|
+
}
|
|
1480
|
+
declare class RcParetoSeries extends RcChartSeries {
|
|
1481
|
+
}
|
|
1482
|
+
declare class RcPieSeries extends RcChartSeries {
|
|
1483
|
+
}
|
|
1484
|
+
declare class RcVectorSeries extends RcChartSeries {
|
|
1485
|
+
}
|
|
1486
|
+
declare class RcWaterfallSeries extends RcChartSeries {
|
|
1487
|
+
}
|
|
1488
|
+
declare class RcBarSeriesGroup extends RcSeriesGroup {
|
|
1489
|
+
}
|
|
1490
|
+
declare class RcLineSeriesGroup extends RcSeriesGroup {
|
|
1491
|
+
}
|
|
1492
|
+
declare class RcAreaSeriesGroup extends RcSeriesGroup {
|
|
1493
|
+
}
|
|
1494
|
+
declare class RcPieSeriesGroup extends RcSeriesGroup {
|
|
1495
|
+
}
|
|
1496
|
+
declare class RcBumpSeriesGroup extends RcSeriesGroup {
|
|
1497
|
+
}
|
|
1498
|
+
declare abstract class RcChartGaugeBase extends RcChartObject {
|
|
1613
1499
|
}
|
|
1614
|
-
declare class
|
|
1500
|
+
declare abstract class RcChartGauge extends RcChartGaugeBase {
|
|
1501
|
+
}
|
|
1502
|
+
declare abstract class RcValueGauge extends RcChartGauge {
|
|
1503
|
+
updateValue(value: any, animate?: boolean): void;
|
|
1504
|
+
}
|
|
1505
|
+
declare class RcGaugeScale extends RcChartObject {
|
|
1615
1506
|
private _line;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1507
|
+
private _tick;
|
|
1508
|
+
private _tickLabel;
|
|
1509
|
+
protected _doInit(proxy: ChartItem): void;
|
|
1510
|
+
get line(): RcChartObject;
|
|
1511
|
+
get tick(): RcChartObject;
|
|
1512
|
+
get tickLabel(): RcChartObject;
|
|
1619
1513
|
}
|
|
1620
|
-
declare class
|
|
1621
|
-
private
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
layout(width: number, height: number): void;
|
|
1625
|
-
}
|
|
1626
|
-
declare class AxisGuideContainer extends LayerElement {
|
|
1627
|
-
_linePool: AxisGuideLineView[];
|
|
1628
|
-
_rangePool: AxisGuideRangeView[];
|
|
1629
|
-
_views: AxisGuideView<AxisGuide>[];
|
|
1630
|
-
prepare(): void;
|
|
1631
|
-
addAll(doc: Document, guides: AxisGuide[]): void;
|
|
1632
|
-
add(child: AxisGuideView<AxisGuide>): RcElement;
|
|
1633
|
-
}
|
|
1634
|
-
interface IPlottingOwner {
|
|
1635
|
-
clipSeries(view: RcElement, x: number, y: number, w: number, h: number, invertable: boolean): void;
|
|
1636
|
-
showTooltip(series: Series, point: DataPoint): void;
|
|
1637
|
-
hideTooltip(): void;
|
|
1638
|
-
}
|
|
1639
|
-
declare class BodyView extends ChartElement<Body> {
|
|
1640
|
-
static readonly BODY_CLASS = "rct-plot";
|
|
1641
|
-
private _owner;
|
|
1642
|
-
private _polar;
|
|
1643
|
-
private _background;
|
|
1644
|
-
private _image;
|
|
1645
|
-
private _gridContainer;
|
|
1646
|
-
protected _gridViews: Map<Axis, AxisGridView>;
|
|
1647
|
-
private _breakViews;
|
|
1648
|
-
private _seriesContainer;
|
|
1649
|
-
protected _seriesViews: SeriesView<Series>[];
|
|
1650
|
-
private _seriesMap;
|
|
1651
|
-
private _series;
|
|
1652
|
-
private _gaugeViews;
|
|
1653
|
-
private _gaugeMap;
|
|
1654
|
-
private _gauges;
|
|
1655
|
-
_guideContainer: AxisGuideContainer;
|
|
1656
|
-
_frontGuideContainer: AxisGuideContainer;
|
|
1657
|
-
_axisBreakContainer: LayerElement;
|
|
1658
|
-
private _feedbackContainer;
|
|
1659
|
-
private _crosshairLines;
|
|
1660
|
-
private _focused;
|
|
1661
|
-
protected _animatable: boolean;
|
|
1662
|
-
constructor(doc: Document, owner: IPlottingOwner);
|
|
1663
|
-
prepareSeries(doc: Document, chart: IChart): void;
|
|
1664
|
-
prepareGuideContainers(): void;
|
|
1665
|
-
pointerMoved(p: IPoint, target: EventTarget): boolean;
|
|
1666
|
-
private $_setFocused;
|
|
1667
|
-
seriesByDom(elt: Element): SeriesView<Series>;
|
|
1668
|
-
findSeries(ser: Series): SeriesView<Series>;
|
|
1669
|
-
protected _doMeasure(doc: Document, model: Body, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1670
|
-
protected _doLayout(): void;
|
|
1671
|
-
private $_createSeriesView;
|
|
1672
|
-
private $_createGaugeView;
|
|
1673
|
-
private $_prepareGrids;
|
|
1674
|
-
private $_prepareSeries;
|
|
1675
|
-
private $_prepareGauges;
|
|
1676
|
-
private $_prepareAxisBreaks;
|
|
1677
|
-
private $_preppareCrosshairs;
|
|
1514
|
+
declare abstract class RcCircularGauge extends RcValueGauge {
|
|
1515
|
+
private _label;
|
|
1516
|
+
protected _doInit(proxy: ChartItem): void;
|
|
1517
|
+
get label(): RcChartObject;
|
|
1678
1518
|
}
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
protected _setBackgroundStyle(back: RectElement): void;
|
|
1686
|
-
protected _doMeasure(doc: Document, model: Title, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1687
|
-
protected _doLayout(): void;
|
|
1519
|
+
declare class RcGaugeRangeBand extends RcChartObject {
|
|
1520
|
+
private _rangeLabel;
|
|
1521
|
+
private _tickLabel;
|
|
1522
|
+
protected _doInit(proxy: ChartItem): void;
|
|
1523
|
+
get rangeLabel(): RcChartObject;
|
|
1524
|
+
get tickLabel(): RcChartObject;
|
|
1688
1525
|
}
|
|
1689
|
-
|
|
1690
|
-
|
|
1526
|
+
declare class RcCircleGauge extends RcCircularGauge {
|
|
1527
|
+
private _band;
|
|
1528
|
+
private _scale;
|
|
1529
|
+
private _rim;
|
|
1530
|
+
private _valueRim;
|
|
1531
|
+
private _marker;
|
|
1532
|
+
private _hand;
|
|
1533
|
+
private _pin;
|
|
1534
|
+
protected _doInit(proxy: CircleGauge): void;
|
|
1535
|
+
get band(): RcGaugeRangeBand;
|
|
1536
|
+
get scale(): RcChartObject;
|
|
1537
|
+
get rim(): RcChartObject;
|
|
1538
|
+
get valueRim(): RcChartObject;
|
|
1539
|
+
get marker(): RcChartObject;
|
|
1540
|
+
get hand(): RcChartObject;
|
|
1541
|
+
get pin(): RcChartObject;
|
|
1691
1542
|
}
|
|
1692
|
-
declare class
|
|
1693
|
-
private
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
declare class ChartView extends RcElement {
|
|
1699
|
-
private _model;
|
|
1700
|
-
_inverted: boolean;
|
|
1701
|
-
_emptyView: EmptyView;
|
|
1702
|
-
private _titleSectionView;
|
|
1703
|
-
private _legendSectionView;
|
|
1704
|
-
private _bodyView;
|
|
1705
|
-
private _polarView;
|
|
1706
|
-
private _currBody;
|
|
1707
|
-
private _axisSectionViews;
|
|
1708
|
-
private _creditView;
|
|
1709
|
-
private _historyView;
|
|
1710
|
-
private _tooltipView;
|
|
1711
|
-
private _seriesClip;
|
|
1712
|
-
_org: IPoint;
|
|
1713
|
-
private _plotWidth;
|
|
1714
|
-
private _plotHeight;
|
|
1715
|
-
constructor(doc: Document);
|
|
1716
|
-
titleView(): TitleView;
|
|
1717
|
-
subtitleView(): TitleView;
|
|
1718
|
-
bodyView(): BodyView;
|
|
1719
|
-
measure(doc: Document, model: Chart, hintWidth: number, hintHeight: number, phase: number): void;
|
|
1720
|
-
layout(): void;
|
|
1721
|
-
showTooltip(series: Series, point: DataPoint): void;
|
|
1722
|
-
hideTooltip(): void;
|
|
1723
|
-
legendByDom(dom: Element): LegendItem;
|
|
1724
|
-
seriesByDom(dom: Element): SeriesView<Series>;
|
|
1725
|
-
findSeriesView(series: Series): SeriesView<Series>;
|
|
1726
|
-
creditByDom(dom: Element): CreditView;
|
|
1727
|
-
clipSeries(view: RcElement, x: number, y: number, w: number, h: number, invertable: boolean): void;
|
|
1728
|
-
pointerMoved(x: number, y: number, target: EventTarget): void;
|
|
1729
|
-
protected _doAttached(parent: RcElement): void;
|
|
1730
|
-
private $_checkEmpty;
|
|
1731
|
-
private $_prepareBody;
|
|
1732
|
-
private $_prepareAxes;
|
|
1733
|
-
private $_measurePlot;
|
|
1734
|
-
private $_measurePolar;
|
|
1543
|
+
declare abstract class RcLinerGaugeBase extends RcValueGauge {
|
|
1544
|
+
private _label;
|
|
1545
|
+
private _scale;
|
|
1546
|
+
protected _doInit(proxy: ChartItem): void;
|
|
1547
|
+
get label(): RcChartObject;
|
|
1548
|
+
get scale(): RcChartObject;
|
|
1735
1549
|
}
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
private
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1550
|
+
declare class RcLinearGauge extends RcLinerGaugeBase {
|
|
1551
|
+
private _marker;
|
|
1552
|
+
private _band;
|
|
1553
|
+
}
|
|
1554
|
+
declare class RcBulletGauge extends RcValueGauge {
|
|
1555
|
+
}
|
|
1556
|
+
declare class RcClockGauge extends RcChartGauge {
|
|
1557
|
+
}
|
|
1558
|
+
declare abstract class RcGaugeGroup extends RcChartGaugeBase {
|
|
1559
|
+
}
|
|
1560
|
+
declare class RcCircleGaugeGroup extends RcGaugeGroup {
|
|
1561
|
+
}
|
|
1562
|
+
declare class RcLinearGaugeGroup extends RcGaugeGroup {
|
|
1563
|
+
}
|
|
1564
|
+
declare class RcBulletGaugeGroup extends RcGaugeGroup {
|
|
1565
|
+
}
|
|
1566
|
+
declare class RcTitle extends RcChartObject {
|
|
1567
|
+
}
|
|
1568
|
+
declare class RcSubtitle extends RcChartObject {
|
|
1569
|
+
}
|
|
1570
|
+
declare class RcLegend extends RcChartObject {
|
|
1571
|
+
}
|
|
1572
|
+
declare class RcBody extends RcChartObject {
|
|
1753
1573
|
}
|
|
1754
1574
|
|
|
1755
1575
|
declare class RcChartControl {
|
|
1756
1576
|
private $_p;
|
|
1757
|
-
|
|
1577
|
+
private _objects;
|
|
1578
|
+
private constructor();
|
|
1758
1579
|
load(config: any, animate?: boolean): void;
|
|
1759
|
-
|
|
1760
|
-
|
|
1580
|
+
render(now?: boolean): void;
|
|
1581
|
+
get xAxis(): RcChartAxis;
|
|
1582
|
+
getXAxis(name: string | number): RcChartAxis;
|
|
1583
|
+
get yAxis(): RcChartAxis;
|
|
1584
|
+
getYAxis(name: string | number): RcChartAxis;
|
|
1585
|
+
get series(): RcChartSeries;
|
|
1586
|
+
getSeries(name: string): RcChartSeries;
|
|
1587
|
+
get gauge(): RcChartGauge;
|
|
1588
|
+
getGauge(name: string): RcChartGauge;
|
|
1589
|
+
get title(): RcTitle;
|
|
1590
|
+
get subtitle(): RcSubtitle;
|
|
1591
|
+
get legend(): RcLegend;
|
|
1592
|
+
get body(): RcBody;
|
|
1761
1593
|
}
|
|
1762
1594
|
|
|
1763
1595
|
declare class Globals {
|
|
@@ -1772,4 +1604,4 @@ declare const setDebugging: typeof Globals.setDebugging;
|
|
|
1772
1604
|
declare const setAnimatable: typeof Globals.setAnimatable;
|
|
1773
1605
|
declare const createChart: typeof Globals.createChart;
|
|
1774
1606
|
|
|
1775
|
-
export { RcChartControl, createChart, getVersion, setAnimatable, setDebugging };
|
|
1607
|
+
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, RcLinerGaugeBase, RcLogAxis, RcLollipopSeries, RcParetoSeries, RcPieSeries, RcPieSeriesGroup, RcPointLabel, RcScatterSeries, RcSeriesGroup, RcSubtitle, RcTimeAxis, RcTitle, RcTreemapSeries, RcValueGauge, RcVectorSeries, RcWaterfallSeries, createChart, getVersion, setAnimatable, setDebugging };
|