realchart 0.9.13 → 0.9.15
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 +210 -27
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +25 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,11 @@ declare abstract class RcWrappableObject extends RcObject {
|
|
|
69
69
|
isWrapper(w: any): boolean;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
interface IPoint {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
interface ISize {
|
|
73
78
|
width: number;
|
|
74
79
|
height: number;
|
|
@@ -81,11 +86,6 @@ interface IRect {
|
|
|
81
86
|
height: number;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
|
-
interface IPoint {
|
|
85
|
-
x: number;
|
|
86
|
-
y: number;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
89
|
interface IPointerHandler {
|
|
90
90
|
handleDown(ev: PointerEvent): void;
|
|
91
91
|
handleUp(ev: PointerEvent): void;
|
|
@@ -125,6 +125,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
125
125
|
height(): number;
|
|
126
126
|
setData(data: string, value: any, container?: boolean): void;
|
|
127
127
|
clearDefs(): void;
|
|
128
|
+
private $_clearDefs;
|
|
129
|
+
clearAssetDefs(): void;
|
|
128
130
|
clearTemporaryDefs(): void;
|
|
129
131
|
appendDom(elt: HTMLElement): void;
|
|
130
132
|
addElement(elt: RcElement): void;
|
|
@@ -182,6 +184,7 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
182
184
|
declare class RcElement extends RcObject {
|
|
183
185
|
static TESTING: boolean;
|
|
184
186
|
static DEBUGGING: boolean;
|
|
187
|
+
static ASSET_KEY: string;
|
|
185
188
|
static TEMP_KEY: string;
|
|
186
189
|
private _visible;
|
|
187
190
|
private _x;
|
|
@@ -226,7 +229,7 @@ declare class RcElement extends RcObject {
|
|
|
226
229
|
setVisible(value: boolean): boolean;
|
|
227
230
|
get rotation(): number;
|
|
228
231
|
set rotation(value: number);
|
|
229
|
-
|
|
232
|
+
setRotation(originX: number, originY: number, rotation: number): RcElement;
|
|
230
233
|
getStyle(prop: string): string;
|
|
231
234
|
hasStyle(className: string): boolean;
|
|
232
235
|
add(child: RcElement): RcElement;
|
|
@@ -338,6 +341,7 @@ declare enum TextOverflow {
|
|
|
338
341
|
ELLIPSIS = "ellipsis"
|
|
339
342
|
}
|
|
340
343
|
declare class TextElement extends RcElement {
|
|
344
|
+
static createCenter(doc: Document): TextElement;
|
|
341
345
|
private _layout;
|
|
342
346
|
private _overflow;
|
|
343
347
|
private _dirty;
|
|
@@ -457,6 +461,23 @@ declare abstract class FormattableText extends ChartText {
|
|
|
457
461
|
private $_getNumberText;
|
|
458
462
|
protected _getText(text: string, value: any, useSymbols: boolean, forceSymbols?: boolean): string;
|
|
459
463
|
}
|
|
464
|
+
declare class BackgroundImage extends ChartItem {
|
|
465
|
+
url: string;
|
|
466
|
+
style: SVGStyleOrClass;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
declare abstract class Annotation extends ChartItem {
|
|
470
|
+
constructor(chart: IChart);
|
|
471
|
+
abstract _type(): string;
|
|
472
|
+
front: boolean;
|
|
473
|
+
name: string;
|
|
474
|
+
align: Align;
|
|
475
|
+
verticalAlign: VerticalAlign;
|
|
476
|
+
offsetX: number;
|
|
477
|
+
offsetY: number;
|
|
478
|
+
rotation: number;
|
|
479
|
+
getPostion(wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
480
|
+
}
|
|
460
481
|
|
|
461
482
|
declare enum Shape {
|
|
462
483
|
CIRCLE = "circle",
|
|
@@ -510,7 +531,6 @@ declare class DataPoint {
|
|
|
510
531
|
getValueOf: (traget: any, param: string) => any;
|
|
511
532
|
swap(): void;
|
|
512
533
|
protected _assignTo(proxy: any): any;
|
|
513
|
-
protected _colorIndex(): number;
|
|
514
534
|
protected _readArray(series: ISeries, v: any[]): void;
|
|
515
535
|
protected _readObject(series: ISeries, v: any): void;
|
|
516
536
|
protected _readSingle(v: any): void;
|
|
@@ -576,11 +596,15 @@ declare class DataPointLabel extends FormattableText {
|
|
|
576
596
|
protected _doLoad(source: any): void;
|
|
577
597
|
}
|
|
578
598
|
interface IPlottingItem {
|
|
599
|
+
_row: number;
|
|
600
|
+
_col: number;
|
|
601
|
+
row: number;
|
|
602
|
+
col: number;
|
|
579
603
|
index: number;
|
|
580
604
|
xAxis: string | number;
|
|
581
605
|
yAxis: string | number;
|
|
582
606
|
visible: boolean;
|
|
583
|
-
|
|
607
|
+
zOrder: number;
|
|
584
608
|
getVisiblePoints(): DataPoint[];
|
|
585
609
|
getLegendSources(list: ILegendSource[]): void;
|
|
586
610
|
needAxes(): boolean;
|
|
@@ -658,7 +682,6 @@ interface ISeries extends IPlottingItem {
|
|
|
658
682
|
displayName(): string;
|
|
659
683
|
createPoints(source: any[]): DataPoint[];
|
|
660
684
|
getPoints(): DataPointCollection;
|
|
661
|
-
getValue(point: DataPoint, axis: IAxis): number;
|
|
662
685
|
isVisible(p: DataPoint): boolean;
|
|
663
686
|
}
|
|
664
687
|
interface IDataPointCallbackArgs {
|
|
@@ -679,7 +702,8 @@ type PointClickCallbck = (args: IDataPointCallbackArgs) => boolean;
|
|
|
679
702
|
declare abstract class Series extends ChartItem implements ISeries, ILegendSource {
|
|
680
703
|
static readonly LEGEND_MARKER = "rct-legend-item-marker";
|
|
681
704
|
static _loadSeries(chart: IChart, src: any, defType?: string): Series;
|
|
682
|
-
|
|
705
|
+
_row: number;
|
|
706
|
+
_col: number;
|
|
683
707
|
index: number;
|
|
684
708
|
group: SeriesGroup<Series>;
|
|
685
709
|
_xAxisObj: IAxis;
|
|
@@ -697,10 +721,12 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
697
721
|
constructor(chart: IChart, name?: string);
|
|
698
722
|
abstract _type(): string;
|
|
699
723
|
readonly name: string;
|
|
700
|
-
|
|
724
|
+
label: string;
|
|
701
725
|
readonly pointLabel: DataPointLabel;
|
|
702
726
|
readonly trendline: Trendline;
|
|
703
727
|
readonly tooltip: Tooltip;
|
|
728
|
+
row: number;
|
|
729
|
+
col: number;
|
|
704
730
|
visibleThreshold: number;
|
|
705
731
|
zOrder: number;
|
|
706
732
|
xAxis: string | number;
|
|
@@ -727,7 +753,6 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
727
753
|
pointLabelCount(): number;
|
|
728
754
|
isEmpty(): boolean;
|
|
729
755
|
needAxes(): boolean;
|
|
730
|
-
isSide(): boolean;
|
|
731
756
|
canCategorized(): boolean;
|
|
732
757
|
defaultYAxisType(): string;
|
|
733
758
|
clusterable(): boolean;
|
|
@@ -746,7 +771,6 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
746
771
|
createPoints(source: any[]): DataPoint[];
|
|
747
772
|
getXStart(): number;
|
|
748
773
|
getXStep(): number;
|
|
749
|
-
getValue(point: DataPoint, axis: IAxis): number;
|
|
750
774
|
prepareRender(): void;
|
|
751
775
|
collectCategories(axis: IAxis): string[];
|
|
752
776
|
collectValues(axis: IAxis, vals: number[]): void;
|
|
@@ -799,7 +823,8 @@ declare class PlottingItemCollection {
|
|
|
799
823
|
series(): Series[];
|
|
800
824
|
needAxes(): boolean;
|
|
801
825
|
getSeries(name: string): Series;
|
|
802
|
-
getVisibleSeries(
|
|
826
|
+
getVisibleSeries(): Series[];
|
|
827
|
+
getPaneSeries(row: number, col: number): Series[];
|
|
803
828
|
seriesByPoint(point: DataPoint): Series;
|
|
804
829
|
getLegendSources(): ILegendSource[];
|
|
805
830
|
load(src: any): void;
|
|
@@ -816,18 +841,22 @@ declare enum SeriesGroupLayout {
|
|
|
816
841
|
}
|
|
817
842
|
declare abstract class SeriesGroup<T extends Series> extends ChartItem implements ISeriesGroup {
|
|
818
843
|
layoutMax: number;
|
|
844
|
+
_row: number;
|
|
845
|
+
_col: number;
|
|
819
846
|
index: number;
|
|
820
847
|
private _series;
|
|
821
848
|
protected _visibles: T[];
|
|
822
849
|
_xAxisObj: IAxis;
|
|
823
850
|
_yAxisObj: IAxis;
|
|
824
851
|
_stackPoints: Map<number, DataPoint[]>;
|
|
852
|
+
row: number;
|
|
853
|
+
col: number;
|
|
825
854
|
layout: SeriesGroupLayout;
|
|
826
855
|
xAxis: string | number;
|
|
827
856
|
yAxis: string | number;
|
|
828
857
|
visibleInLegend: boolean;
|
|
858
|
+
zOrder: number;
|
|
829
859
|
get series(): T[];
|
|
830
|
-
isSide(): boolean;
|
|
831
860
|
needAxes(): boolean;
|
|
832
861
|
isEmpty(): boolean;
|
|
833
862
|
canCategorized(): boolean;
|
|
@@ -858,6 +887,64 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
858
887
|
private $_collectFill;
|
|
859
888
|
}
|
|
860
889
|
|
|
890
|
+
declare enum ZoomType {
|
|
891
|
+
NONE = "none",
|
|
892
|
+
X = "x",
|
|
893
|
+
Y = "y",
|
|
894
|
+
BOTH = "both"
|
|
895
|
+
}
|
|
896
|
+
declare class ZoomButton extends ChartItem {
|
|
897
|
+
body: Body;
|
|
898
|
+
constructor(body: Body);
|
|
899
|
+
isVisible(): boolean;
|
|
900
|
+
}
|
|
901
|
+
declare class BodySplit extends ChartItem {
|
|
902
|
+
body: Body;
|
|
903
|
+
constructor(body: Body);
|
|
904
|
+
size: number;
|
|
905
|
+
}
|
|
906
|
+
declare class Body extends ChartItem {
|
|
907
|
+
private _radius;
|
|
908
|
+
private _centerX;
|
|
909
|
+
private _centerY;
|
|
910
|
+
private _annotations;
|
|
911
|
+
private _radiusDim;
|
|
912
|
+
private _cxDim;
|
|
913
|
+
private _cyDim;
|
|
914
|
+
private _rd;
|
|
915
|
+
private _cx;
|
|
916
|
+
private _cy;
|
|
917
|
+
constructor(chart: IChart);
|
|
918
|
+
split: BodySplit;
|
|
919
|
+
get radius(): RtPercentSize;
|
|
920
|
+
set radius(value: RtPercentSize);
|
|
921
|
+
get centerX(): RtPercentSize;
|
|
922
|
+
set centerX(value: RtPercentSize);
|
|
923
|
+
get centerY(): RtPercentSize;
|
|
924
|
+
set centerY(value: RtPercentSize);
|
|
925
|
+
startAngle: number;
|
|
926
|
+
circular: boolean;
|
|
927
|
+
image: BackgroundImage;
|
|
928
|
+
zoomType: ZoomType;
|
|
929
|
+
zoomButton: ZoomButton;
|
|
930
|
+
canZoom(): boolean;
|
|
931
|
+
getSplits(): number[];
|
|
932
|
+
calcRadius(width: number, height: number): number;
|
|
933
|
+
setPolar(width: number, height: number): Body;
|
|
934
|
+
getStartAngle(): number;
|
|
935
|
+
getPolar(series: Series): {
|
|
936
|
+
start: number;
|
|
937
|
+
cx: number;
|
|
938
|
+
cy: number;
|
|
939
|
+
rd: number;
|
|
940
|
+
};
|
|
941
|
+
isZoomed(): boolean;
|
|
942
|
+
getAnnotations(): Annotation[];
|
|
943
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
944
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
945
|
+
private $_loadAnnotations;
|
|
946
|
+
}
|
|
947
|
+
|
|
861
948
|
declare enum PaletteMode {
|
|
862
949
|
NORMAL = "normal",
|
|
863
950
|
MIXED = "mixed",
|
|
@@ -874,6 +961,8 @@ declare class Title extends ChartItem {
|
|
|
874
961
|
}
|
|
875
962
|
|
|
876
963
|
declare abstract class GaugeBase extends Widget {
|
|
964
|
+
_row: number;
|
|
965
|
+
_col: number;
|
|
877
966
|
private _size;
|
|
878
967
|
private _width;
|
|
879
968
|
private _height;
|
|
@@ -881,6 +970,8 @@ declare abstract class GaugeBase extends Widget {
|
|
|
881
970
|
private _right;
|
|
882
971
|
private _top;
|
|
883
972
|
private _bottom;
|
|
973
|
+
row: number;
|
|
974
|
+
col: number;
|
|
884
975
|
index: number;
|
|
885
976
|
private _sizeDim;
|
|
886
977
|
private _widthDim;
|
|
@@ -891,7 +982,6 @@ declare abstract class GaugeBase extends Widget {
|
|
|
891
982
|
private _bottomDim;
|
|
892
983
|
constructor(chart: IChart);
|
|
893
984
|
abstract _type(): string;
|
|
894
|
-
side: boolean;
|
|
895
985
|
name: string;
|
|
896
986
|
get left(): RtPercentSize;
|
|
897
987
|
set left(value: RtPercentSize);
|
|
@@ -949,7 +1039,8 @@ declare class GaugeCollection {
|
|
|
949
1039
|
constructor(chart: IChart);
|
|
950
1040
|
get count(): number;
|
|
951
1041
|
get firstGauge(): Gauge;
|
|
952
|
-
getVisibles(
|
|
1042
|
+
getVisibles(): GaugeBase[];
|
|
1043
|
+
getPaneVisibles(row: number, col: number): GaugeBase[];
|
|
953
1044
|
getGauge(name: string): Gauge;
|
|
954
1045
|
get(name: string | number): GaugeBase;
|
|
955
1046
|
load(src: any): void;
|
|
@@ -1126,23 +1217,88 @@ declare abstract class CircularGauge extends ValueGauge {
|
|
|
1126
1217
|
protected _doPrepareRender(chart: IChart): void;
|
|
1127
1218
|
}
|
|
1128
1219
|
|
|
1220
|
+
declare class PaneTitle extends ChartItem {
|
|
1221
|
+
pane: Pane;
|
|
1222
|
+
constructor(pane: Pane);
|
|
1223
|
+
text: string;
|
|
1224
|
+
align: Align;
|
|
1225
|
+
backgroundStyle: SVGStyleOrClass;
|
|
1226
|
+
isVisible(): boolean;
|
|
1227
|
+
protected _doLoadSimple(source: any): boolean;
|
|
1228
|
+
}
|
|
1229
|
+
declare class PaneBody extends Body {
|
|
1230
|
+
pane: Pane;
|
|
1231
|
+
constructor(pane: Pane);
|
|
1232
|
+
}
|
|
1233
|
+
declare class Pane extends ChartItem {
|
|
1234
|
+
row: number;
|
|
1235
|
+
col: number;
|
|
1236
|
+
width: number;
|
|
1237
|
+
height: number;
|
|
1238
|
+
constructor(chart: IChart, row: number, col: number);
|
|
1239
|
+
title: PaneTitle;
|
|
1240
|
+
body: PaneBody;
|
|
1241
|
+
}
|
|
1242
|
+
declare class Split extends ChartItem {
|
|
1243
|
+
private _cols;
|
|
1244
|
+
private _rows;
|
|
1245
|
+
private _widths;
|
|
1246
|
+
private _heights;
|
|
1247
|
+
private _panes;
|
|
1248
|
+
private _xAxes;
|
|
1249
|
+
private _yAxes;
|
|
1250
|
+
_vcols: number;
|
|
1251
|
+
_vrows: number;
|
|
1252
|
+
private _vwidths;
|
|
1253
|
+
private _vheights;
|
|
1254
|
+
private _vpanes;
|
|
1255
|
+
constructor(chart: IChart);
|
|
1256
|
+
rows: number | (number | `${number}*` | '*')[];
|
|
1257
|
+
cols: number | (number | `${number}*` | '*')[];
|
|
1258
|
+
count(): number;
|
|
1259
|
+
rowCount(): number;
|
|
1260
|
+
colCount(): number;
|
|
1261
|
+
paneCount(): number;
|
|
1262
|
+
getPane(row: number, col: number): Pane;
|
|
1263
|
+
getRow(row: number): Pane[];
|
|
1264
|
+
getColumn(col: number): Pane[];
|
|
1265
|
+
protected _doLoadSimple(source: any): boolean;
|
|
1266
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1267
|
+
load(source: any): ChartItem;
|
|
1268
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1269
|
+
getXLens(length: number): number[];
|
|
1270
|
+
getYLens(length: number): number[];
|
|
1271
|
+
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1272
|
+
private $_calcAxesPoints;
|
|
1273
|
+
calcAxesPoints(xLens: number[], yLens: number[]): void;
|
|
1274
|
+
calcSizes(width: number, height: number): void;
|
|
1275
|
+
private $_parseSizes;
|
|
1276
|
+
private $_parsePanes;
|
|
1277
|
+
private $_loadPanes;
|
|
1278
|
+
private $_collectPanes;
|
|
1279
|
+
private $_calcSizes;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1129
1282
|
interface IChart {
|
|
1130
1283
|
type: string;
|
|
1131
1284
|
gaugeType: string;
|
|
1132
|
-
|
|
1133
|
-
|
|
1285
|
+
_xPaneAxes: XPaneAxisMatrix;
|
|
1286
|
+
_yPaneAxes: YPaneAxisMatrix;
|
|
1134
1287
|
options: ChartOptions;
|
|
1135
1288
|
first: IPlottingItem;
|
|
1136
1289
|
firstSeries: Series;
|
|
1137
1290
|
xAxis: IAxis;
|
|
1138
1291
|
yAxis: IAxis;
|
|
1139
1292
|
subtitle: Title;
|
|
1293
|
+
body: Body;
|
|
1294
|
+
split: Split;
|
|
1140
1295
|
colors: string[];
|
|
1141
1296
|
_createChart(config: any): IChart;
|
|
1142
1297
|
assignTemplates(target: any): any;
|
|
1143
1298
|
isGauge(): boolean;
|
|
1144
1299
|
isPolar(): boolean;
|
|
1145
1300
|
isInverted(): boolean;
|
|
1301
|
+
isSplitted(): boolean;
|
|
1146
1302
|
animatable(): boolean;
|
|
1147
1303
|
startAngle(): number;
|
|
1148
1304
|
seriesByName(series: string): Series;
|
|
@@ -1153,6 +1309,7 @@ interface IChart {
|
|
|
1153
1309
|
_getAxisType(type: string): any;
|
|
1154
1310
|
_getGaugeType(type: string): any;
|
|
1155
1311
|
_getGaugeGroupType(type: string): any;
|
|
1312
|
+
_getAnnotationType(type: string): any;
|
|
1156
1313
|
_getSeries(): PlottingItemCollection;
|
|
1157
1314
|
_getGauges(): GaugeCollection;
|
|
1158
1315
|
_getXAxes(): AxisCollection;
|
|
@@ -1205,6 +1362,7 @@ declare class Crosshair extends ChartItem {
|
|
|
1205
1362
|
showAlways: boolean;
|
|
1206
1363
|
followPointer: boolean;
|
|
1207
1364
|
numberFormat: string;
|
|
1365
|
+
timeFormat: string;
|
|
1208
1366
|
isBar(): boolean;
|
|
1209
1367
|
getFlag(length: number, pos: number): string;
|
|
1210
1368
|
}
|
|
@@ -1212,7 +1370,8 @@ declare class Crosshair extends ChartItem {
|
|
|
1212
1370
|
interface IAxis {
|
|
1213
1371
|
type(): string;
|
|
1214
1372
|
chart: IChart;
|
|
1215
|
-
|
|
1373
|
+
row: number;
|
|
1374
|
+
col: number;
|
|
1216
1375
|
_vlen: number;
|
|
1217
1376
|
_isX: boolean;
|
|
1218
1377
|
_isHorz: boolean;
|
|
@@ -1227,11 +1386,11 @@ interface IAxis {
|
|
|
1227
1386
|
length(): number;
|
|
1228
1387
|
zoom(start: number, end: number): boolean;
|
|
1229
1388
|
getValue(value: any): number;
|
|
1230
|
-
parseValue(value: any): number;
|
|
1231
1389
|
contains(value: number): boolean;
|
|
1232
1390
|
incStep(value: number, step: any): number;
|
|
1233
1391
|
getPosition(length: number, value: number, point?: boolean): number;
|
|
1234
1392
|
getValueAt(length: number, pos: number): number;
|
|
1393
|
+
getAxisValueAt(length: number, pos: number): any;
|
|
1235
1394
|
getUnitLength(length: number, value: number): number;
|
|
1236
1395
|
hasBreak(): boolean;
|
|
1237
1396
|
isBreak(pos: number): boolean;
|
|
@@ -1252,7 +1411,7 @@ declare enum AxisTitleAlign {
|
|
|
1252
1411
|
declare class AxisTitle extends AxisItem {
|
|
1253
1412
|
private _rotation;
|
|
1254
1413
|
text: string;
|
|
1255
|
-
get
|
|
1414
|
+
get rotation(): 0 | 90 | 270 | -90 | -270;
|
|
1256
1415
|
set rotation(value: 0 | 90 | 270 | -90 | -270);
|
|
1257
1416
|
align: AxisTitleAlign;
|
|
1258
1417
|
offset: number;
|
|
@@ -1370,6 +1529,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1370
1529
|
protected _min: number;
|
|
1371
1530
|
protected _max: number;
|
|
1372
1531
|
_zoom: AxisZoom;
|
|
1532
|
+
_runPos: AxisPosition;
|
|
1373
1533
|
constructor(chart: IChart, isX: boolean, name?: string);
|
|
1374
1534
|
abstract type(): string;
|
|
1375
1535
|
readonly name: string;
|
|
@@ -1383,7 +1543,6 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1383
1543
|
readonly scrollBar: AxisScrollBar;
|
|
1384
1544
|
row: number;
|
|
1385
1545
|
col: number;
|
|
1386
|
-
side: boolean;
|
|
1387
1546
|
position: AxisPosition;
|
|
1388
1547
|
reversed: boolean;
|
|
1389
1548
|
minValue: number;
|
|
@@ -1397,6 +1556,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1397
1556
|
axisMax(): number;
|
|
1398
1557
|
abstract isContinuous(): boolean;
|
|
1399
1558
|
abstract getValueAt(length: number, pos: number): number;
|
|
1559
|
+
getAxisValueAt(length: number, pos: number): any;
|
|
1400
1560
|
protected abstract _createTickModel(): AxisTick;
|
|
1401
1561
|
protected abstract _createLabelModel(): AxisLabel;
|
|
1402
1562
|
protected abstract _doPrepareRender(): void;
|
|
@@ -1413,7 +1573,6 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1413
1573
|
getLabelLength(length: number, value: number): number;
|
|
1414
1574
|
getValue(value: any): number;
|
|
1415
1575
|
incStep(value: number, step: any): number;
|
|
1416
|
-
parseValue(value: any): number;
|
|
1417
1576
|
contains(value: number): boolean;
|
|
1418
1577
|
resetZoom(): void;
|
|
1419
1578
|
zoom(start: number, end: number): boolean;
|
|
@@ -1432,11 +1591,9 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1432
1591
|
declare class AxisCollection {
|
|
1433
1592
|
readonly chart: IChart;
|
|
1434
1593
|
readonly isX: boolean;
|
|
1435
|
-
readonly row: number;
|
|
1436
|
-
readonly col: number;
|
|
1437
1594
|
protected _items: Axis[];
|
|
1438
1595
|
private _map;
|
|
1439
|
-
constructor(chart: IChart, isX: boolean
|
|
1596
|
+
constructor(chart: IChart, isX: boolean);
|
|
1440
1597
|
get count(): number;
|
|
1441
1598
|
get first(): Axis;
|
|
1442
1599
|
get items(): Axis[];
|
|
@@ -1456,6 +1613,32 @@ declare class AxisCollection {
|
|
|
1456
1613
|
resetZoom(): void;
|
|
1457
1614
|
private $_loadAxis;
|
|
1458
1615
|
}
|
|
1616
|
+
declare class PaneAxes {
|
|
1617
|
+
_axes: Axis[];
|
|
1618
|
+
isEmpty(): boolean;
|
|
1619
|
+
}
|
|
1620
|
+
declare abstract class PaneAxisMatrix {
|
|
1621
|
+
chart: IChart;
|
|
1622
|
+
isX: boolean;
|
|
1623
|
+
protected _matrix: PaneAxes[][];
|
|
1624
|
+
constructor(chart: IChart, isX: boolean);
|
|
1625
|
+
rows(): number;
|
|
1626
|
+
cols(): number;
|
|
1627
|
+
abstract prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1628
|
+
get(row: number, col: number): PaneAxes;
|
|
1629
|
+
getRow(row: number): PaneAxes[];
|
|
1630
|
+
getColumn(col: number): PaneAxes[];
|
|
1631
|
+
buildTicks(lens: number[]): void;
|
|
1632
|
+
calcPoints(lens: number[], phase: number): void;
|
|
1633
|
+
}
|
|
1634
|
+
declare class XPaneAxisMatrix extends PaneAxisMatrix {
|
|
1635
|
+
constructor(chart: IChart);
|
|
1636
|
+
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1637
|
+
}
|
|
1638
|
+
declare class YPaneAxisMatrix extends PaneAxisMatrix {
|
|
1639
|
+
constructor(chart: IChart);
|
|
1640
|
+
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1641
|
+
}
|
|
1459
1642
|
|
|
1460
1643
|
declare abstract class CircleGaugeRimBase extends ChartItem {
|
|
1461
1644
|
gauge: CircleGauge;
|