realchart 0.9.14 → 0.9.16
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 +229 -32
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +7 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ interface IValueRange {
|
|
|
41
41
|
toValue?: number;
|
|
42
42
|
color: string;
|
|
43
43
|
label?: string;
|
|
44
|
+
style?: SVGStyleOrClass;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
declare abstract class RcObject {
|
|
@@ -69,6 +70,11 @@ declare abstract class RcWrappableObject extends RcObject {
|
|
|
69
70
|
isWrapper(w: any): boolean;
|
|
70
71
|
}
|
|
71
72
|
|
|
73
|
+
interface IPoint {
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
72
78
|
interface ISize {
|
|
73
79
|
width: number;
|
|
74
80
|
height: number;
|
|
@@ -81,11 +87,6 @@ interface IRect {
|
|
|
81
87
|
height: number;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
|
-
interface IPoint {
|
|
85
|
-
x: number;
|
|
86
|
-
y: number;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
90
|
interface IPointerHandler {
|
|
90
91
|
handleDown(ev: PointerEvent): void;
|
|
91
92
|
handleUp(ev: PointerEvent): void;
|
|
@@ -123,6 +124,7 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
123
124
|
svg(): SVGSVGElement;
|
|
124
125
|
width(): number;
|
|
125
126
|
height(): number;
|
|
127
|
+
clipContainer(): SVGElement;
|
|
126
128
|
setData(data: string, value: any, container?: boolean): void;
|
|
127
129
|
clearDefs(): void;
|
|
128
130
|
private $_clearDefs;
|
|
@@ -229,7 +231,7 @@ declare class RcElement extends RcObject {
|
|
|
229
231
|
setVisible(value: boolean): boolean;
|
|
230
232
|
get rotation(): number;
|
|
231
233
|
set rotation(value: number);
|
|
232
|
-
|
|
234
|
+
setRotation(originX: number, originY: number, rotation: number): RcElement;
|
|
233
235
|
getStyle(prop: string): string;
|
|
234
236
|
hasStyle(className: string): boolean;
|
|
235
237
|
add(child: RcElement): RcElement;
|
|
@@ -305,7 +307,7 @@ declare class RcElement extends RcObject {
|
|
|
305
307
|
declare class ClipElement extends RcElement {
|
|
306
308
|
private _id;
|
|
307
309
|
private _rect;
|
|
308
|
-
constructor(doc: Document, x
|
|
310
|
+
constructor(doc: Document, x?: number, y?: number, width?: number, height?: number, rx?: number, ry?: number);
|
|
309
311
|
get id(): string;
|
|
310
312
|
setBounds(x: number, y: number, w: number, h: number): RcElement;
|
|
311
313
|
get x(): number;
|
|
@@ -461,6 +463,23 @@ declare abstract class FormattableText extends ChartText {
|
|
|
461
463
|
private $_getNumberText;
|
|
462
464
|
protected _getText(text: string, value: any, useSymbols: boolean, forceSymbols?: boolean): string;
|
|
463
465
|
}
|
|
466
|
+
declare class BackgroundImage extends ChartItem {
|
|
467
|
+
url: string;
|
|
468
|
+
style: SVGStyleOrClass;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
declare abstract class Annotation extends ChartItem {
|
|
472
|
+
constructor(chart: IChart);
|
|
473
|
+
abstract _type(): string;
|
|
474
|
+
front: boolean;
|
|
475
|
+
name: string;
|
|
476
|
+
align: Align;
|
|
477
|
+
verticalAlign: VerticalAlign;
|
|
478
|
+
offsetX: number;
|
|
479
|
+
offsetY: number;
|
|
480
|
+
rotation: number;
|
|
481
|
+
getPostion(wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
482
|
+
}
|
|
464
483
|
|
|
465
484
|
declare enum Shape {
|
|
466
485
|
CIRCLE = "circle",
|
|
@@ -502,6 +521,7 @@ declare class DataPoint {
|
|
|
502
521
|
yPos: number;
|
|
503
522
|
yGroup: number;
|
|
504
523
|
drillDown: any[] | object;
|
|
524
|
+
range: IValueRange;
|
|
505
525
|
constructor(source: any);
|
|
506
526
|
get yAbs(): number;
|
|
507
527
|
get xAbs(): number;
|
|
@@ -579,11 +599,15 @@ declare class DataPointLabel extends FormattableText {
|
|
|
579
599
|
protected _doLoad(source: any): void;
|
|
580
600
|
}
|
|
581
601
|
interface IPlottingItem {
|
|
602
|
+
_row: number;
|
|
603
|
+
_col: number;
|
|
604
|
+
row: number;
|
|
605
|
+
col: number;
|
|
582
606
|
index: number;
|
|
583
607
|
xAxis: string | number;
|
|
584
608
|
yAxis: string | number;
|
|
585
609
|
visible: boolean;
|
|
586
|
-
|
|
610
|
+
zOrder: number;
|
|
587
611
|
getVisiblePoints(): DataPoint[];
|
|
588
612
|
getLegendSources(list: ILegendSource[]): void;
|
|
589
613
|
needAxes(): boolean;
|
|
@@ -661,7 +685,6 @@ interface ISeries extends IPlottingItem {
|
|
|
661
685
|
displayName(): string;
|
|
662
686
|
createPoints(source: any[]): DataPoint[];
|
|
663
687
|
getPoints(): DataPointCollection;
|
|
664
|
-
getValue(point: DataPoint, axis: IAxis): number;
|
|
665
688
|
isVisible(p: DataPoint): boolean;
|
|
666
689
|
}
|
|
667
690
|
interface IDataPointCallbackArgs {
|
|
@@ -670,6 +693,8 @@ interface IDataPointCallbackArgs {
|
|
|
670
693
|
vcount: number;
|
|
671
694
|
yMin: number;
|
|
672
695
|
yMax: number;
|
|
696
|
+
xMin: number;
|
|
697
|
+
xMax: number;
|
|
673
698
|
index: number;
|
|
674
699
|
vindex: number;
|
|
675
700
|
x: any;
|
|
@@ -682,16 +707,21 @@ type PointClickCallbck = (args: IDataPointCallbackArgs) => boolean;
|
|
|
682
707
|
declare abstract class Series extends ChartItem implements ISeries, ILegendSource {
|
|
683
708
|
static readonly LEGEND_MARKER = "rct-legend-item-marker";
|
|
684
709
|
static _loadSeries(chart: IChart, src: any, defType?: string): Series;
|
|
685
|
-
|
|
710
|
+
_row: number;
|
|
711
|
+
_col: number;
|
|
686
712
|
index: number;
|
|
687
713
|
group: SeriesGroup<Series>;
|
|
688
714
|
_xAxisObj: IAxis;
|
|
689
715
|
_yAxisObj: IAxis;
|
|
690
716
|
protected _points: DataPointCollection;
|
|
691
717
|
_runPoints: DataPoint[];
|
|
718
|
+
_visPoints: DataPoint[];
|
|
719
|
+
_runRangeValue: 'x' | 'y' | 'z';
|
|
692
720
|
_runRanges: IValueRange[];
|
|
693
|
-
|
|
694
|
-
|
|
721
|
+
_minX: number;
|
|
722
|
+
_maxX: number;
|
|
723
|
+
_minY: number;
|
|
724
|
+
_maxY: number;
|
|
695
725
|
_referents: Series[];
|
|
696
726
|
_calcedColor: string;
|
|
697
727
|
_simpleMode: boolean;
|
|
@@ -700,10 +730,12 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
700
730
|
constructor(chart: IChart, name?: string);
|
|
701
731
|
abstract _type(): string;
|
|
702
732
|
readonly name: string;
|
|
703
|
-
|
|
733
|
+
label: string;
|
|
704
734
|
readonly pointLabel: DataPointLabel;
|
|
705
735
|
readonly trendline: Trendline;
|
|
706
736
|
readonly tooltip: Tooltip;
|
|
737
|
+
row: number;
|
|
738
|
+
col: number;
|
|
707
739
|
visibleThreshold: number;
|
|
708
740
|
zOrder: number;
|
|
709
741
|
xAxis: string | number;
|
|
@@ -716,8 +748,8 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
716
748
|
xStep: number | string;
|
|
717
749
|
color: string;
|
|
718
750
|
pointColors: boolean | string[];
|
|
719
|
-
|
|
720
|
-
|
|
751
|
+
viewRanges: IValueRange[];
|
|
752
|
+
viewRangeValue: 'x' | 'y' | 'z';
|
|
721
753
|
clipped: boolean;
|
|
722
754
|
visibleInLegend: boolean;
|
|
723
755
|
visibleInNavigator: boolean;
|
|
@@ -730,7 +762,6 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
730
762
|
pointLabelCount(): number;
|
|
731
763
|
isEmpty(): boolean;
|
|
732
764
|
needAxes(): boolean;
|
|
733
|
-
isSide(): boolean;
|
|
734
765
|
canCategorized(): boolean;
|
|
735
766
|
defaultYAxisType(): string;
|
|
736
767
|
clusterable(): boolean;
|
|
@@ -749,11 +780,16 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
749
780
|
createPoints(source: any[]): DataPoint[];
|
|
750
781
|
getXStart(): number;
|
|
751
782
|
getXStep(): number;
|
|
752
|
-
getValue(point: DataPoint, axis: IAxis): number;
|
|
753
783
|
prepareRender(): void;
|
|
784
|
+
prepareAfter(): void;
|
|
754
785
|
collectCategories(axis: IAxis): string[];
|
|
755
786
|
collectValues(axis: IAxis, vals: number[]): void;
|
|
756
787
|
collectVisibles(): DataPoint[];
|
|
788
|
+
protected _getRangeMinMax(axis: 'x' | 'y' | 'z'): {
|
|
789
|
+
min: number;
|
|
790
|
+
max: number;
|
|
791
|
+
};
|
|
792
|
+
prepareViewRanges(): void;
|
|
757
793
|
pointValuesPrepared(axis: IAxis): void;
|
|
758
794
|
reference(other: Series, axis: IAxis): void;
|
|
759
795
|
isVisible(point: DataPoint): boolean;
|
|
@@ -768,6 +804,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
768
804
|
getPointStyle(p: DataPoint): any;
|
|
769
805
|
getPointTooltip(point: DataPoint, param: string): any;
|
|
770
806
|
pointClicked(p: DataPoint): boolean;
|
|
807
|
+
getViewRangeAxis(): 'x' | 'y' | 'z';
|
|
771
808
|
protected _createPoint(source: any): DataPoint;
|
|
772
809
|
protected _createLegendMarker(doc: Document, size: number): RcElement;
|
|
773
810
|
_referOtherSeries(series: Series): boolean;
|
|
@@ -778,7 +815,8 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
778
815
|
protected _doLoadPoints(src: any[]): void;
|
|
779
816
|
loadPoints(src: any[]): void;
|
|
780
817
|
protected _doPrepareRender(): void;
|
|
781
|
-
|
|
818
|
+
protected _setViewRange(p: DataPoint, axis: 'x' | 'y' | 'z'): void;
|
|
819
|
+
_defViewRangeValue(): 'x' | 'y' | 'z';
|
|
782
820
|
}
|
|
783
821
|
declare class PlottingItemCollection {
|
|
784
822
|
readonly chart: IChart;
|
|
@@ -802,7 +840,8 @@ declare class PlottingItemCollection {
|
|
|
802
840
|
series(): Series[];
|
|
803
841
|
needAxes(): boolean;
|
|
804
842
|
getSeries(name: string): Series;
|
|
805
|
-
getVisibleSeries(
|
|
843
|
+
getVisibleSeries(): Series[];
|
|
844
|
+
getPaneSeries(row: number, col: number): Series[];
|
|
806
845
|
seriesByPoint(point: DataPoint): Series;
|
|
807
846
|
getLegendSources(): ILegendSource[];
|
|
808
847
|
load(src: any): void;
|
|
@@ -819,18 +858,22 @@ declare enum SeriesGroupLayout {
|
|
|
819
858
|
}
|
|
820
859
|
declare abstract class SeriesGroup<T extends Series> extends ChartItem implements ISeriesGroup {
|
|
821
860
|
layoutMax: number;
|
|
861
|
+
_row: number;
|
|
862
|
+
_col: number;
|
|
822
863
|
index: number;
|
|
823
864
|
private _series;
|
|
824
865
|
protected _visibles: T[];
|
|
825
866
|
_xAxisObj: IAxis;
|
|
826
867
|
_yAxisObj: IAxis;
|
|
827
868
|
_stackPoints: Map<number, DataPoint[]>;
|
|
869
|
+
row: number;
|
|
870
|
+
col: number;
|
|
828
871
|
layout: SeriesGroupLayout;
|
|
829
872
|
xAxis: string | number;
|
|
830
873
|
yAxis: string | number;
|
|
831
874
|
visibleInLegend: boolean;
|
|
875
|
+
zOrder: number;
|
|
832
876
|
get series(): T[];
|
|
833
|
-
isSide(): boolean;
|
|
834
877
|
needAxes(): boolean;
|
|
835
878
|
isEmpty(): boolean;
|
|
836
879
|
canCategorized(): boolean;
|
|
@@ -861,6 +904,64 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
861
904
|
private $_collectFill;
|
|
862
905
|
}
|
|
863
906
|
|
|
907
|
+
declare enum ZoomType {
|
|
908
|
+
NONE = "none",
|
|
909
|
+
X = "x",
|
|
910
|
+
Y = "y",
|
|
911
|
+
BOTH = "both"
|
|
912
|
+
}
|
|
913
|
+
declare class ZoomButton extends ChartItem {
|
|
914
|
+
body: Body;
|
|
915
|
+
constructor(body: Body);
|
|
916
|
+
isVisible(): boolean;
|
|
917
|
+
}
|
|
918
|
+
declare class BodySplit extends ChartItem {
|
|
919
|
+
body: Body;
|
|
920
|
+
constructor(body: Body);
|
|
921
|
+
size: number;
|
|
922
|
+
}
|
|
923
|
+
declare class Body extends ChartItem {
|
|
924
|
+
private _radius;
|
|
925
|
+
private _centerX;
|
|
926
|
+
private _centerY;
|
|
927
|
+
private _annotations;
|
|
928
|
+
private _radiusDim;
|
|
929
|
+
private _cxDim;
|
|
930
|
+
private _cyDim;
|
|
931
|
+
private _rd;
|
|
932
|
+
private _cx;
|
|
933
|
+
private _cy;
|
|
934
|
+
constructor(chart: IChart);
|
|
935
|
+
split: BodySplit;
|
|
936
|
+
get radius(): RtPercentSize;
|
|
937
|
+
set radius(value: RtPercentSize);
|
|
938
|
+
get centerX(): RtPercentSize;
|
|
939
|
+
set centerX(value: RtPercentSize);
|
|
940
|
+
get centerY(): RtPercentSize;
|
|
941
|
+
set centerY(value: RtPercentSize);
|
|
942
|
+
startAngle: number;
|
|
943
|
+
circular: boolean;
|
|
944
|
+
image: BackgroundImage;
|
|
945
|
+
zoomType: ZoomType;
|
|
946
|
+
zoomButton: ZoomButton;
|
|
947
|
+
canZoom(): boolean;
|
|
948
|
+
getSplits(): number[];
|
|
949
|
+
calcRadius(width: number, height: number): number;
|
|
950
|
+
setPolar(width: number, height: number): Body;
|
|
951
|
+
getStartAngle(): number;
|
|
952
|
+
getPolar(series: Series): {
|
|
953
|
+
start: number;
|
|
954
|
+
cx: number;
|
|
955
|
+
cy: number;
|
|
956
|
+
rd: number;
|
|
957
|
+
};
|
|
958
|
+
isZoomed(): boolean;
|
|
959
|
+
getAnnotations(): Annotation[];
|
|
960
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
961
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
962
|
+
private $_loadAnnotations;
|
|
963
|
+
}
|
|
964
|
+
|
|
864
965
|
declare enum PaletteMode {
|
|
865
966
|
NORMAL = "normal",
|
|
866
967
|
MIXED = "mixed",
|
|
@@ -877,6 +978,8 @@ declare class Title extends ChartItem {
|
|
|
877
978
|
}
|
|
878
979
|
|
|
879
980
|
declare abstract class GaugeBase extends Widget {
|
|
981
|
+
_row: number;
|
|
982
|
+
_col: number;
|
|
880
983
|
private _size;
|
|
881
984
|
private _width;
|
|
882
985
|
private _height;
|
|
@@ -884,6 +987,8 @@ declare abstract class GaugeBase extends Widget {
|
|
|
884
987
|
private _right;
|
|
885
988
|
private _top;
|
|
886
989
|
private _bottom;
|
|
990
|
+
row: number;
|
|
991
|
+
col: number;
|
|
887
992
|
index: number;
|
|
888
993
|
private _sizeDim;
|
|
889
994
|
private _widthDim;
|
|
@@ -894,7 +999,6 @@ declare abstract class GaugeBase extends Widget {
|
|
|
894
999
|
private _bottomDim;
|
|
895
1000
|
constructor(chart: IChart);
|
|
896
1001
|
abstract _type(): string;
|
|
897
|
-
side: boolean;
|
|
898
1002
|
name: string;
|
|
899
1003
|
get left(): RtPercentSize;
|
|
900
1004
|
set left(value: RtPercentSize);
|
|
@@ -952,7 +1056,8 @@ declare class GaugeCollection {
|
|
|
952
1056
|
constructor(chart: IChart);
|
|
953
1057
|
get count(): number;
|
|
954
1058
|
get firstGauge(): Gauge;
|
|
955
|
-
getVisibles(
|
|
1059
|
+
getVisibles(): GaugeBase[];
|
|
1060
|
+
getPaneVisibles(row: number, col: number): GaugeBase[];
|
|
956
1061
|
getGauge(name: string): Gauge;
|
|
957
1062
|
get(name: string | number): GaugeBase;
|
|
958
1063
|
load(src: any): void;
|
|
@@ -1129,23 +1234,88 @@ declare abstract class CircularGauge extends ValueGauge {
|
|
|
1129
1234
|
protected _doPrepareRender(chart: IChart): void;
|
|
1130
1235
|
}
|
|
1131
1236
|
|
|
1237
|
+
declare class PaneTitle extends ChartItem {
|
|
1238
|
+
pane: Pane;
|
|
1239
|
+
constructor(pane: Pane);
|
|
1240
|
+
text: string;
|
|
1241
|
+
align: Align;
|
|
1242
|
+
backgroundStyle: SVGStyleOrClass;
|
|
1243
|
+
isVisible(): boolean;
|
|
1244
|
+
protected _doLoadSimple(source: any): boolean;
|
|
1245
|
+
}
|
|
1246
|
+
declare class PaneBody extends Body {
|
|
1247
|
+
pane: Pane;
|
|
1248
|
+
constructor(pane: Pane);
|
|
1249
|
+
}
|
|
1250
|
+
declare class Pane extends ChartItem {
|
|
1251
|
+
row: number;
|
|
1252
|
+
col: number;
|
|
1253
|
+
width: number;
|
|
1254
|
+
height: number;
|
|
1255
|
+
constructor(chart: IChart, row: number, col: number);
|
|
1256
|
+
title: PaneTitle;
|
|
1257
|
+
body: PaneBody;
|
|
1258
|
+
}
|
|
1259
|
+
declare class Split extends ChartItem {
|
|
1260
|
+
private _cols;
|
|
1261
|
+
private _rows;
|
|
1262
|
+
private _widths;
|
|
1263
|
+
private _heights;
|
|
1264
|
+
private _panes;
|
|
1265
|
+
private _xAxes;
|
|
1266
|
+
private _yAxes;
|
|
1267
|
+
_vcols: number;
|
|
1268
|
+
_vrows: number;
|
|
1269
|
+
private _vwidths;
|
|
1270
|
+
private _vheights;
|
|
1271
|
+
private _vpanes;
|
|
1272
|
+
constructor(chart: IChart);
|
|
1273
|
+
rows: number | (number | `${number}*` | '*')[];
|
|
1274
|
+
cols: number | (number | `${number}*` | '*')[];
|
|
1275
|
+
count(): number;
|
|
1276
|
+
rowCount(): number;
|
|
1277
|
+
colCount(): number;
|
|
1278
|
+
paneCount(): number;
|
|
1279
|
+
getPane(row: number, col: number): Pane;
|
|
1280
|
+
getRow(row: number): Pane[];
|
|
1281
|
+
getColumn(col: number): Pane[];
|
|
1282
|
+
protected _doLoadSimple(source: any): boolean;
|
|
1283
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1284
|
+
load(source: any): ChartItem;
|
|
1285
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1286
|
+
getXLens(length: number): number[];
|
|
1287
|
+
getYLens(length: number): number[];
|
|
1288
|
+
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1289
|
+
private $_calcAxesPoints;
|
|
1290
|
+
calcAxesPoints(xLens: number[], yLens: number[]): void;
|
|
1291
|
+
calcSizes(width: number, height: number): void;
|
|
1292
|
+
private $_parseSizes;
|
|
1293
|
+
private $_parsePanes;
|
|
1294
|
+
private $_loadPanes;
|
|
1295
|
+
private $_collectPanes;
|
|
1296
|
+
private $_calcSizes;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1132
1299
|
interface IChart {
|
|
1133
1300
|
type: string;
|
|
1134
1301
|
gaugeType: string;
|
|
1135
|
-
|
|
1136
|
-
|
|
1302
|
+
_xPaneAxes: XPaneAxisMatrix;
|
|
1303
|
+
_yPaneAxes: YPaneAxisMatrix;
|
|
1137
1304
|
options: ChartOptions;
|
|
1138
1305
|
first: IPlottingItem;
|
|
1139
1306
|
firstSeries: Series;
|
|
1140
1307
|
xAxis: IAxis;
|
|
1141
1308
|
yAxis: IAxis;
|
|
1142
1309
|
subtitle: Title;
|
|
1310
|
+
body: Body;
|
|
1311
|
+
split: Split;
|
|
1143
1312
|
colors: string[];
|
|
1144
1313
|
_createChart(config: any): IChart;
|
|
1145
1314
|
assignTemplates(target: any): any;
|
|
1146
1315
|
isGauge(): boolean;
|
|
1147
1316
|
isPolar(): boolean;
|
|
1148
1317
|
isInverted(): boolean;
|
|
1318
|
+
isSplitted(): boolean;
|
|
1149
1319
|
animatable(): boolean;
|
|
1150
1320
|
startAngle(): number;
|
|
1151
1321
|
seriesByName(series: string): Series;
|
|
@@ -1156,6 +1326,7 @@ interface IChart {
|
|
|
1156
1326
|
_getAxisType(type: string): any;
|
|
1157
1327
|
_getGaugeType(type: string): any;
|
|
1158
1328
|
_getGaugeGroupType(type: string): any;
|
|
1329
|
+
_getAnnotationType(type: string): any;
|
|
1159
1330
|
_getSeries(): PlottingItemCollection;
|
|
1160
1331
|
_getGauges(): GaugeCollection;
|
|
1161
1332
|
_getXAxes(): AxisCollection;
|
|
@@ -1208,6 +1379,7 @@ declare class Crosshair extends ChartItem {
|
|
|
1208
1379
|
showAlways: boolean;
|
|
1209
1380
|
followPointer: boolean;
|
|
1210
1381
|
numberFormat: string;
|
|
1382
|
+
timeFormat: string;
|
|
1211
1383
|
isBar(): boolean;
|
|
1212
1384
|
getFlag(length: number, pos: number): string;
|
|
1213
1385
|
}
|
|
@@ -1215,7 +1387,8 @@ declare class Crosshair extends ChartItem {
|
|
|
1215
1387
|
interface IAxis {
|
|
1216
1388
|
type(): string;
|
|
1217
1389
|
chart: IChart;
|
|
1218
|
-
|
|
1390
|
+
row: number;
|
|
1391
|
+
col: number;
|
|
1219
1392
|
_vlen: number;
|
|
1220
1393
|
_isX: boolean;
|
|
1221
1394
|
_isHorz: boolean;
|
|
@@ -1230,11 +1403,11 @@ interface IAxis {
|
|
|
1230
1403
|
length(): number;
|
|
1231
1404
|
zoom(start: number, end: number): boolean;
|
|
1232
1405
|
getValue(value: any): number;
|
|
1233
|
-
parseValue(value: any): number;
|
|
1234
1406
|
contains(value: number): boolean;
|
|
1235
1407
|
incStep(value: number, step: any): number;
|
|
1236
1408
|
getPosition(length: number, value: number, point?: boolean): number;
|
|
1237
1409
|
getValueAt(length: number, pos: number): number;
|
|
1410
|
+
getAxisValueAt(length: number, pos: number): any;
|
|
1238
1411
|
getUnitLength(length: number, value: number): number;
|
|
1239
1412
|
hasBreak(): boolean;
|
|
1240
1413
|
isBreak(pos: number): boolean;
|
|
@@ -1255,7 +1428,7 @@ declare enum AxisTitleAlign {
|
|
|
1255
1428
|
declare class AxisTitle extends AxisItem {
|
|
1256
1429
|
private _rotation;
|
|
1257
1430
|
text: string;
|
|
1258
|
-
get
|
|
1431
|
+
get rotation(): 0 | 90 | 270 | -90 | -270;
|
|
1259
1432
|
set rotation(value: 0 | 90 | 270 | -90 | -270);
|
|
1260
1433
|
align: AxisTitleAlign;
|
|
1261
1434
|
offset: number;
|
|
@@ -1373,6 +1546,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1373
1546
|
protected _min: number;
|
|
1374
1547
|
protected _max: number;
|
|
1375
1548
|
_zoom: AxisZoom;
|
|
1549
|
+
_runPos: AxisPosition;
|
|
1376
1550
|
constructor(chart: IChart, isX: boolean, name?: string);
|
|
1377
1551
|
abstract type(): string;
|
|
1378
1552
|
readonly name: string;
|
|
@@ -1386,7 +1560,6 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1386
1560
|
readonly scrollBar: AxisScrollBar;
|
|
1387
1561
|
row: number;
|
|
1388
1562
|
col: number;
|
|
1389
|
-
side: boolean;
|
|
1390
1563
|
position: AxisPosition;
|
|
1391
1564
|
reversed: boolean;
|
|
1392
1565
|
minValue: number;
|
|
@@ -1400,6 +1573,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1400
1573
|
axisMax(): number;
|
|
1401
1574
|
abstract isContinuous(): boolean;
|
|
1402
1575
|
abstract getValueAt(length: number, pos: number): number;
|
|
1576
|
+
getAxisValueAt(length: number, pos: number): any;
|
|
1403
1577
|
protected abstract _createTickModel(): AxisTick;
|
|
1404
1578
|
protected abstract _createLabelModel(): AxisLabel;
|
|
1405
1579
|
protected abstract _doPrepareRender(): void;
|
|
@@ -1416,7 +1590,6 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1416
1590
|
getLabelLength(length: number, value: number): number;
|
|
1417
1591
|
getValue(value: any): number;
|
|
1418
1592
|
incStep(value: number, step: any): number;
|
|
1419
|
-
parseValue(value: any): number;
|
|
1420
1593
|
contains(value: number): boolean;
|
|
1421
1594
|
resetZoom(): void;
|
|
1422
1595
|
zoom(start: number, end: number): boolean;
|
|
@@ -1435,11 +1608,9 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1435
1608
|
declare class AxisCollection {
|
|
1436
1609
|
readonly chart: IChart;
|
|
1437
1610
|
readonly isX: boolean;
|
|
1438
|
-
readonly row: number;
|
|
1439
|
-
readonly col: number;
|
|
1440
1611
|
protected _items: Axis[];
|
|
1441
1612
|
private _map;
|
|
1442
|
-
constructor(chart: IChart, isX: boolean
|
|
1613
|
+
constructor(chart: IChart, isX: boolean);
|
|
1443
1614
|
get count(): number;
|
|
1444
1615
|
get first(): Axis;
|
|
1445
1616
|
get items(): Axis[];
|
|
@@ -1459,6 +1630,32 @@ declare class AxisCollection {
|
|
|
1459
1630
|
resetZoom(): void;
|
|
1460
1631
|
private $_loadAxis;
|
|
1461
1632
|
}
|
|
1633
|
+
declare class PaneAxes {
|
|
1634
|
+
_axes: Axis[];
|
|
1635
|
+
isEmpty(): boolean;
|
|
1636
|
+
}
|
|
1637
|
+
declare abstract class PaneAxisMatrix {
|
|
1638
|
+
chart: IChart;
|
|
1639
|
+
isX: boolean;
|
|
1640
|
+
protected _matrix: PaneAxes[][];
|
|
1641
|
+
constructor(chart: IChart, isX: boolean);
|
|
1642
|
+
rows(): number;
|
|
1643
|
+
cols(): number;
|
|
1644
|
+
abstract prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1645
|
+
get(row: number, col: number): PaneAxes;
|
|
1646
|
+
getRow(row: number): PaneAxes[];
|
|
1647
|
+
getColumn(col: number): PaneAxes[];
|
|
1648
|
+
buildTicks(lens: number[]): void;
|
|
1649
|
+
calcPoints(lens: number[], phase: number): void;
|
|
1650
|
+
}
|
|
1651
|
+
declare class XPaneAxisMatrix extends PaneAxisMatrix {
|
|
1652
|
+
constructor(chart: IChart);
|
|
1653
|
+
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1654
|
+
}
|
|
1655
|
+
declare class YPaneAxisMatrix extends PaneAxisMatrix {
|
|
1656
|
+
constructor(chart: IChart);
|
|
1657
|
+
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1658
|
+
}
|
|
1462
1659
|
|
|
1463
1660
|
declare abstract class CircleGaugeRimBase extends ChartItem {
|
|
1464
1661
|
gauge: CircleGauge;
|