realchart 0.9.8 → 0.9.10
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 +147 -34
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +149 -82
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,13 @@ declare enum SectionDir {
|
|
|
28
28
|
LEFT = "left",
|
|
29
29
|
TOP = "top",
|
|
30
30
|
BOTTOM = "bottom",
|
|
31
|
-
RIGHT = "right"
|
|
31
|
+
RIGHT = "right",
|
|
32
|
+
CENTER = "center",
|
|
33
|
+
MIDDLE = "middle"
|
|
34
|
+
}
|
|
35
|
+
declare enum AlignBase {
|
|
36
|
+
CHART = "chart",
|
|
37
|
+
PLOT = "plot"
|
|
32
38
|
}
|
|
33
39
|
interface IValueRange {
|
|
34
40
|
fromValue?: number;
|
|
@@ -114,6 +120,7 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
114
120
|
isTesting(): boolean;
|
|
115
121
|
doc(): Document;
|
|
116
122
|
dom(): HTMLElement;
|
|
123
|
+
svg(): SVGSVGElement;
|
|
117
124
|
width(): number;
|
|
118
125
|
height(): number;
|
|
119
126
|
setData(data: string, value: any, container?: boolean): void;
|
|
@@ -139,6 +146,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
139
146
|
addDef(element: Element): void;
|
|
140
147
|
removeDef(element: Element | string): void;
|
|
141
148
|
containerToElement(element: RcElement, x: number, y: number): IPoint;
|
|
149
|
+
svgToElement(element: RcElement, x: number, y: number): IPoint;
|
|
150
|
+
elementToSvg(element: RcElement, x: number, y: number): IPoint;
|
|
142
151
|
abstract useImage(src: string): void;
|
|
143
152
|
protected _setTesting(): void;
|
|
144
153
|
protected _setSize(w: number, h: number): void;
|
|
@@ -229,7 +238,9 @@ declare class RcElement extends RcObject {
|
|
|
229
238
|
insertElement(doc: Document, tag: string, before: Node): SVGElement;
|
|
230
239
|
getAttr(attr: string): any;
|
|
231
240
|
setAttr(attr: string, value: any): RcElement;
|
|
241
|
+
setAttrEx(attr: string, value: any): RcElement;
|
|
232
242
|
setAttrs(attrs: any): RcElement;
|
|
243
|
+
setAttrsEx(attrs: any): RcElement;
|
|
233
244
|
unsetAttr(attr: string): RcElement;
|
|
234
245
|
setBounds(x: number, y: number, width: number, height: number): RcElement;
|
|
235
246
|
setRect(rect: IRect): RcElement;
|
|
@@ -237,6 +248,8 @@ declare class RcElement extends RcObject {
|
|
|
237
248
|
getSize(): ISize;
|
|
238
249
|
getBBounds(): IRect;
|
|
239
250
|
controlToElement(x: number, y: number): IPoint;
|
|
251
|
+
svgToElement(x: number, y: number): IPoint;
|
|
252
|
+
elementToSvg(x: number, y: number): IPoint;
|
|
240
253
|
move(x: number, y: number): RcElement;
|
|
241
254
|
movep(p: IPoint): RcElement;
|
|
242
255
|
isDomAnimating(): boolean;
|
|
@@ -277,6 +290,8 @@ declare class RcElement extends RcObject {
|
|
|
277
290
|
setClip(cr?: ClipElement | ClipPathElement | string): void;
|
|
278
291
|
setTemporary(): RcElement;
|
|
279
292
|
setCursor(cursor: string): void;
|
|
293
|
+
ignorePointer(): void;
|
|
294
|
+
contains(dom: Element): boolean;
|
|
280
295
|
protected _testing(): boolean;
|
|
281
296
|
protected _doAttached(parent: RcElement): void;
|
|
282
297
|
protected _doDetached(parent: RcElement): void;
|
|
@@ -352,6 +367,7 @@ declare class TextElement extends RcElement {
|
|
|
352
367
|
setStyle(prop: string, value: string): boolean;
|
|
353
368
|
getBBounds(): IRect;
|
|
354
369
|
getBBoundsTest(): IRect;
|
|
370
|
+
stain(): void;
|
|
355
371
|
}
|
|
356
372
|
|
|
357
373
|
type RichTextParamCallback = (target: any, param: string, format: string) => string;
|
|
@@ -396,7 +412,7 @@ declare class ChartItem extends RcObject {
|
|
|
396
412
|
setProp(prop: string, value: any, redraw: boolean): boolean;
|
|
397
413
|
setProps(props: object, redraw: boolean): boolean;
|
|
398
414
|
prepareRender(): void;
|
|
399
|
-
protected _changed(): void;
|
|
415
|
+
protected _changed(tag?: any): void;
|
|
400
416
|
protected _doLoadSimple(source: any): boolean;
|
|
401
417
|
protected _doLoad(source: any): void;
|
|
402
418
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
@@ -410,7 +426,7 @@ declare enum ChartTextEffect {
|
|
|
410
426
|
}
|
|
411
427
|
declare abstract class ChartText extends ChartItem {
|
|
412
428
|
effect: ChartTextEffect;
|
|
413
|
-
|
|
429
|
+
lightStyle: SVGStyleOrClass;
|
|
414
430
|
darkStyle: SVGStyleOrClass;
|
|
415
431
|
backgroundStyle: SVGStyleOrClass;
|
|
416
432
|
autoContrast: boolean;
|
|
@@ -485,7 +501,7 @@ declare class DataPoint {
|
|
|
485
501
|
get xAbs(): number;
|
|
486
502
|
ariaHint(): string;
|
|
487
503
|
labelCount(): number;
|
|
488
|
-
assignTo(proxy
|
|
504
|
+
assignTo(proxy?: any): any;
|
|
489
505
|
getProp(fld: string | number): any;
|
|
490
506
|
parse(series: ISeries): void;
|
|
491
507
|
getLabel(index: number): any;
|
|
@@ -508,8 +524,9 @@ declare class DataPointCollection {
|
|
|
508
524
|
load(source: any): void;
|
|
509
525
|
getProps(prop: string | number): any[];
|
|
510
526
|
getValues(axis: string): any[];
|
|
527
|
+
getProxies(): any[];
|
|
511
528
|
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
512
|
-
getPoints(): DataPoint[];
|
|
529
|
+
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
513
530
|
}
|
|
514
531
|
|
|
515
532
|
declare abstract class Widget extends ChartItem {
|
|
@@ -561,6 +578,7 @@ interface IPlottingItem {
|
|
|
561
578
|
xAxis: string | number;
|
|
562
579
|
yAxis: string | number;
|
|
563
580
|
visible: boolean;
|
|
581
|
+
isSide(): boolean;
|
|
564
582
|
getVisiblePoints(): DataPoint[];
|
|
565
583
|
getLegendSources(list: ILegendSource[]): void;
|
|
566
584
|
needAxes(): boolean;
|
|
@@ -659,16 +677,19 @@ type PointClickCallbck = (args: IDataPointCallbackArgs) => boolean;
|
|
|
659
677
|
declare abstract class Series extends ChartItem implements ISeries, ILegendSource {
|
|
660
678
|
static readonly LEGEND_MARKER = "rct-legend-item-marker";
|
|
661
679
|
static _loadSeries(chart: IChart, src: any, defType?: string): Series;
|
|
680
|
+
private _ranges;
|
|
662
681
|
index: number;
|
|
663
682
|
group: SeriesGroup<Series>;
|
|
664
683
|
_xAxisObj: IAxis;
|
|
665
684
|
_yAxisObj: IAxis;
|
|
666
685
|
protected _points: DataPointCollection;
|
|
667
686
|
_runPoints: DataPoint[];
|
|
687
|
+
_runRanges: IValueRange[];
|
|
668
688
|
_minValue: number;
|
|
669
689
|
_maxValue: number;
|
|
670
690
|
_referents: Series[];
|
|
671
691
|
_calcedColor: string;
|
|
692
|
+
_simpleMode: boolean;
|
|
672
693
|
private _legendMarker;
|
|
673
694
|
protected _pointArgs: IDataPointCallbackArgs;
|
|
674
695
|
constructor(chart: IChart, name?: string);
|
|
@@ -678,6 +699,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
678
699
|
readonly pointLabel: DataPointLabel;
|
|
679
700
|
readonly trendline: Trendline;
|
|
680
701
|
readonly tooltip: Tooltip;
|
|
702
|
+
visibleThreshold: number;
|
|
681
703
|
zOrder: number;
|
|
682
704
|
xAxis: string | number;
|
|
683
705
|
yAxis: string | number;
|
|
@@ -689,8 +711,11 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
689
711
|
xStep: number | string;
|
|
690
712
|
color: string;
|
|
691
713
|
pointColors: boolean | string[];
|
|
714
|
+
ranges: IValueRange[];
|
|
715
|
+
rangeAxis: 'x' | 'y' | 'z';
|
|
692
716
|
clipped: boolean;
|
|
693
|
-
|
|
717
|
+
visibleInLegend: boolean;
|
|
718
|
+
visibleInNavigator: boolean;
|
|
694
719
|
pointStyleCallback: PointStyleCallback;
|
|
695
720
|
onPointClick: PointClickCallbck;
|
|
696
721
|
contains(p: DataPoint): boolean;
|
|
@@ -700,6 +725,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
700
725
|
pointLabelCount(): number;
|
|
701
726
|
isEmpty(): boolean;
|
|
702
727
|
needAxes(): boolean;
|
|
728
|
+
isSide(): boolean;
|
|
703
729
|
canCategorized(): boolean;
|
|
704
730
|
defaultYAxisType(): string;
|
|
705
731
|
clusterable(): boolean;
|
|
@@ -745,6 +771,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
745
771
|
protected _doLoad(src: any): void;
|
|
746
772
|
protected _loadData(src: any): any;
|
|
747
773
|
protected _doLoadPoints(src: any[]): void;
|
|
774
|
+
loadPoints(src: any[]): void;
|
|
748
775
|
protected _doPrepareRender(): void;
|
|
749
776
|
prepareAfter(): void;
|
|
750
777
|
}
|
|
@@ -767,9 +794,9 @@ declare class PlottingItemCollection {
|
|
|
767
794
|
items(): IPlottingItem[];
|
|
768
795
|
visibles(): IPlottingItem[];
|
|
769
796
|
series(): Series[];
|
|
770
|
-
visibleSeries(): Series[];
|
|
771
797
|
needAxes(): boolean;
|
|
772
798
|
getSeries(name: string): Series;
|
|
799
|
+
getVisibleSeries(side: boolean): Series[];
|
|
773
800
|
seriesByPoint(point: DataPoint): Series;
|
|
774
801
|
getLegendSources(): ILegendSource[];
|
|
775
802
|
load(src: any): void;
|
|
@@ -795,8 +822,9 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
795
822
|
layout: SeriesGroupLayout;
|
|
796
823
|
xAxis: string | number;
|
|
797
824
|
yAxis: string | number;
|
|
798
|
-
|
|
825
|
+
visibleInLegend: boolean;
|
|
799
826
|
get series(): T[];
|
|
827
|
+
isSide(): boolean;
|
|
800
828
|
needAxes(): boolean;
|
|
801
829
|
isEmpty(): boolean;
|
|
802
830
|
canCategorized(): boolean;
|
|
@@ -827,6 +855,15 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
827
855
|
private $_collectFill;
|
|
828
856
|
}
|
|
829
857
|
|
|
858
|
+
declare class Title extends ChartItem {
|
|
859
|
+
text: string;
|
|
860
|
+
alignBase: AlignBase;
|
|
861
|
+
align: Align;
|
|
862
|
+
backgroundStyle: SVGStyleOrClass;
|
|
863
|
+
isVisible(): boolean;
|
|
864
|
+
protected _doLoadSimple(source: any): boolean;
|
|
865
|
+
}
|
|
866
|
+
|
|
830
867
|
declare abstract class GaugeBase extends Widget {
|
|
831
868
|
private _size;
|
|
832
869
|
private _width;
|
|
@@ -845,6 +882,7 @@ declare abstract class GaugeBase extends Widget {
|
|
|
845
882
|
private _bottomDim;
|
|
846
883
|
constructor(chart: IChart);
|
|
847
884
|
abstract _type(): string;
|
|
885
|
+
side: boolean;
|
|
848
886
|
name: string;
|
|
849
887
|
get left(): RtPercentSize;
|
|
850
888
|
set left(value: RtPercentSize);
|
|
@@ -902,7 +940,7 @@ declare class GaugeCollection {
|
|
|
902
940
|
constructor(chart: IChart);
|
|
903
941
|
get count(): number;
|
|
904
942
|
get firstGauge(): Gauge;
|
|
905
|
-
|
|
943
|
+
getVisibles(side: boolean): GaugeBase[];
|
|
906
944
|
getGauge(name: string): Gauge;
|
|
907
945
|
get(name: string | number): GaugeBase;
|
|
908
946
|
load(src: any): void;
|
|
@@ -1083,11 +1121,15 @@ interface IChart {
|
|
|
1083
1121
|
gaugeType: string;
|
|
1084
1122
|
xStart: number;
|
|
1085
1123
|
xStep: number;
|
|
1124
|
+
_splitted: boolean;
|
|
1125
|
+
_splits: number[];
|
|
1086
1126
|
first: IPlottingItem;
|
|
1087
1127
|
firstSeries: Series;
|
|
1088
1128
|
xAxis: IAxis;
|
|
1089
1129
|
yAxis: IAxis;
|
|
1130
|
+
subtitle: Title;
|
|
1090
1131
|
colors: string[];
|
|
1132
|
+
_createChart(config: any): IChart;
|
|
1091
1133
|
assignTemplates(target: any): any;
|
|
1092
1134
|
isGauge(): boolean;
|
|
1093
1135
|
isPolar(): boolean;
|
|
@@ -1111,7 +1153,9 @@ interface IChart {
|
|
|
1111
1153
|
_getLegendSources(): ILegendSource[];
|
|
1112
1154
|
_visibleChanged(item: ChartItem): void;
|
|
1113
1155
|
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1114
|
-
_modelChanged(item: ChartItem): void;
|
|
1156
|
+
_modelChanged(item: ChartItem, tag?: any): void;
|
|
1157
|
+
prepareRender(): void;
|
|
1158
|
+
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1115
1159
|
}
|
|
1116
1160
|
|
|
1117
1161
|
declare enum CrosshairType {
|
|
@@ -1140,15 +1184,20 @@ declare class Crosshair extends ChartItem {
|
|
|
1140
1184
|
interface IAxis {
|
|
1141
1185
|
type(): string;
|
|
1142
1186
|
chart: IChart;
|
|
1143
|
-
|
|
1187
|
+
side: boolean;
|
|
1188
|
+
_vlen: number;
|
|
1144
1189
|
_isX: boolean;
|
|
1145
1190
|
_isHorz: boolean;
|
|
1146
1191
|
_isOpposite: boolean;
|
|
1192
|
+
_isBetween: boolean;
|
|
1147
1193
|
reversed: boolean;
|
|
1194
|
+
_zoom: IAxisZoom;
|
|
1148
1195
|
isContinuous(): boolean;
|
|
1149
1196
|
getBaseValue(): number;
|
|
1150
1197
|
axisMax(): number;
|
|
1151
1198
|
axisMin(): number;
|
|
1199
|
+
length(): number;
|
|
1200
|
+
zoom(start: number, end: number): boolean;
|
|
1152
1201
|
getValue(value: any): number;
|
|
1153
1202
|
parseValue(value: any): number;
|
|
1154
1203
|
contains(value: number): boolean;
|
|
@@ -1164,11 +1213,22 @@ declare abstract class AxisItem extends ChartItem {
|
|
|
1164
1213
|
declare class AxisLine extends AxisItem {
|
|
1165
1214
|
constructor(axis: Axis);
|
|
1166
1215
|
}
|
|
1216
|
+
declare enum AxisTitleAlign {
|
|
1217
|
+
START = "start",
|
|
1218
|
+
MIDDLE = "middle",
|
|
1219
|
+
END = "end"
|
|
1220
|
+
}
|
|
1167
1221
|
declare class AxisTitle extends AxisItem {
|
|
1222
|
+
private _rotation;
|
|
1168
1223
|
text: string;
|
|
1224
|
+
get rotatin(): 0 | 90 | 270 | -90 | -270;
|
|
1225
|
+
set rotation(value: 0 | 90 | 270 | -90 | -270);
|
|
1226
|
+
align: AxisTitleAlign;
|
|
1227
|
+
offset: number;
|
|
1169
1228
|
gap: number;
|
|
1170
1229
|
backgroundStyle: SVGStyleOrClass;
|
|
1171
1230
|
isVisible(): boolean;
|
|
1231
|
+
getRotation(axis: Axis): number;
|
|
1172
1232
|
protected _doLoadSimple(source: any): boolean;
|
|
1173
1233
|
}
|
|
1174
1234
|
declare class AxisGrid extends AxisItem {
|
|
@@ -1185,14 +1245,17 @@ declare class AxisGuideLabel extends FormattableText {
|
|
|
1185
1245
|
verticalAlign: VerticalAlign;
|
|
1186
1246
|
}
|
|
1187
1247
|
declare abstract class AxisGuide extends AxisItem {
|
|
1248
|
+
constructor(axis: Axis);
|
|
1188
1249
|
readonly label: AxisGuideLabel;
|
|
1189
1250
|
front: boolean;
|
|
1190
1251
|
zindex: number;
|
|
1191
|
-
constructor(axis: Axis);
|
|
1192
1252
|
}
|
|
1193
1253
|
declare abstract class AxisTick extends AxisItem {
|
|
1194
1254
|
length: number;
|
|
1195
1255
|
margin: number;
|
|
1256
|
+
integral: boolean;
|
|
1257
|
+
showFirst: boolean;
|
|
1258
|
+
showLast: boolean;
|
|
1196
1259
|
constructor(axis: Axis);
|
|
1197
1260
|
}
|
|
1198
1261
|
declare enum AxisLabelArrange {
|
|
@@ -1219,27 +1282,46 @@ interface IAxisTick {
|
|
|
1219
1282
|
label: string;
|
|
1220
1283
|
}
|
|
1221
1284
|
declare enum AxisPosition {
|
|
1285
|
+
AUTO = "auto",
|
|
1222
1286
|
NORMAL = "normal",
|
|
1223
1287
|
OPPOSITE = "opposite",
|
|
1224
|
-
BASE = "base"
|
|
1288
|
+
BASE = "base",
|
|
1289
|
+
BETWEEN = "between"
|
|
1225
1290
|
}
|
|
1226
1291
|
declare class AxisScrollBar extends AxisItem {
|
|
1292
|
+
private _thickness;
|
|
1293
|
+
private _minThumbSize;
|
|
1294
|
+
private _gap;
|
|
1295
|
+
private _gapFar;
|
|
1227
1296
|
constructor(axis: Axis);
|
|
1228
|
-
|
|
1297
|
+
get thickness(): number;
|
|
1298
|
+
set thickness(value: number);
|
|
1299
|
+
get minThumbSize(): number;
|
|
1300
|
+
set minThumbSize(value: number);
|
|
1301
|
+
get gap(): number;
|
|
1302
|
+
set gap(value: number);
|
|
1303
|
+
get gapFar(): number;
|
|
1304
|
+
set gapFar(value: number);
|
|
1305
|
+
}
|
|
1306
|
+
interface IAxisZoom {
|
|
1307
|
+
start: number;
|
|
1308
|
+
end: number;
|
|
1309
|
+
}
|
|
1310
|
+
declare class AxisZoom {
|
|
1311
|
+
axis: Axis;
|
|
1312
|
+
min: number;
|
|
1313
|
+
max: number;
|
|
1314
|
+
start: number;
|
|
1315
|
+
end: number;
|
|
1316
|
+
constructor(axis: Axis, start: number, end: number);
|
|
1317
|
+
get length(): number;
|
|
1318
|
+
resize(start: number, end: number): boolean;
|
|
1229
1319
|
}
|
|
1230
1320
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
1231
|
-
readonly name: string;
|
|
1232
|
-
readonly title: AxisTitle;
|
|
1233
|
-
readonly line: AxisLine;
|
|
1234
|
-
readonly tick: AxisTick;
|
|
1235
|
-
readonly label: AxisLabel;
|
|
1236
|
-
readonly grid: AxisGrid;
|
|
1237
|
-
readonly guides: AxisGuide[];
|
|
1238
|
-
readonly crosshair: Crosshair;
|
|
1239
|
-
readonly scrollBar: AxisScrollBar;
|
|
1240
1321
|
_isX: boolean;
|
|
1241
1322
|
_isHorz: boolean;
|
|
1242
1323
|
_isOpposite: boolean;
|
|
1324
|
+
_isBetween: boolean;
|
|
1243
1325
|
protected _series: IPlottingItem[];
|
|
1244
1326
|
_range: {
|
|
1245
1327
|
min: number;
|
|
@@ -1247,12 +1329,25 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1247
1329
|
};
|
|
1248
1330
|
_ticks: IAxisTick[];
|
|
1249
1331
|
_markPoints: number[];
|
|
1250
|
-
|
|
1332
|
+
_vlen: number;
|
|
1251
1333
|
_minPad: number;
|
|
1252
1334
|
_maxPad: number;
|
|
1253
1335
|
_values: number[];
|
|
1254
|
-
|
|
1336
|
+
protected _min: number;
|
|
1337
|
+
protected _max: number;
|
|
1338
|
+
_zoom: AxisZoom;
|
|
1339
|
+
constructor(chart: IChart, isX: boolean, name?: string);
|
|
1255
1340
|
abstract type(): string;
|
|
1341
|
+
readonly name: string;
|
|
1342
|
+
readonly title: AxisTitle;
|
|
1343
|
+
readonly line: AxisLine;
|
|
1344
|
+
readonly tick: AxisTick;
|
|
1345
|
+
readonly label: AxisLabel;
|
|
1346
|
+
readonly grid: AxisGrid;
|
|
1347
|
+
readonly guides: AxisGuide[];
|
|
1348
|
+
readonly crosshair: Crosshair;
|
|
1349
|
+
readonly scrollBar: AxisScrollBar;
|
|
1350
|
+
side: boolean;
|
|
1256
1351
|
position: AxisPosition;
|
|
1257
1352
|
reversed: boolean;
|
|
1258
1353
|
minValue: number;
|
|
@@ -1261,9 +1356,10 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1261
1356
|
marginFar: number;
|
|
1262
1357
|
isEmpty(): boolean;
|
|
1263
1358
|
getBaseValue(): number;
|
|
1359
|
+
length(): number;
|
|
1360
|
+
axisMin(): number;
|
|
1361
|
+
axisMax(): number;
|
|
1264
1362
|
abstract isContinuous(): boolean;
|
|
1265
|
-
abstract axisMin(): number;
|
|
1266
|
-
abstract axisMax(): number;
|
|
1267
1363
|
abstract getValueAt(length: number, pos: number): number;
|
|
1268
1364
|
protected abstract _createTickModel(): AxisTick;
|
|
1269
1365
|
protected abstract _createLabelModel(): AxisLabel;
|
|
@@ -1283,6 +1379,9 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1283
1379
|
incStep(value: number, step: any): number;
|
|
1284
1380
|
parseValue(value: any): number;
|
|
1285
1381
|
contains(value: number): boolean;
|
|
1382
|
+
resetZoom(): void;
|
|
1383
|
+
zoom(start: number, end: number): boolean;
|
|
1384
|
+
isZoomed(): boolean;
|
|
1286
1385
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1287
1386
|
protected _createGrid(): AxisGrid;
|
|
1288
1387
|
private $_loadGuides;
|
|
@@ -1295,7 +1394,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1295
1394
|
declare class AxisCollection {
|
|
1296
1395
|
readonly chart: IChart;
|
|
1297
1396
|
readonly isX: boolean;
|
|
1298
|
-
|
|
1397
|
+
protected _items: Axis[];
|
|
1299
1398
|
private _map;
|
|
1300
1399
|
constructor(chart: IChart, isX: boolean);
|
|
1301
1400
|
get count(): number;
|
|
@@ -1308,9 +1407,12 @@ declare class AxisCollection {
|
|
|
1308
1407
|
collectValues(): void;
|
|
1309
1408
|
collectReferentsValues(): void;
|
|
1310
1409
|
prepareRender(): void;
|
|
1311
|
-
|
|
1410
|
+
$_buildTicks(length: number): void;
|
|
1411
|
+
protected _getLength(axis: Axis, length: number): number;
|
|
1312
1412
|
connect(series: IPlottingItem): Axis;
|
|
1313
1413
|
forEach(callback: (p: Axis, i?: number) => any): void;
|
|
1414
|
+
isZoomed(): boolean;
|
|
1415
|
+
resetZoom(): void;
|
|
1314
1416
|
private $_loadAxis;
|
|
1315
1417
|
}
|
|
1316
1418
|
|
|
@@ -1419,6 +1521,9 @@ declare abstract class RcChartAxis extends RcChartObject {
|
|
|
1419
1521
|
get label(): RcChartObject;
|
|
1420
1522
|
get crosshair(): RcChartObject;
|
|
1421
1523
|
get scrollBar(): RcChartObject;
|
|
1524
|
+
get isEmpty(): boolean;
|
|
1525
|
+
resetZoom(): void;
|
|
1526
|
+
zoom(start: number, end: number): void;
|
|
1422
1527
|
}
|
|
1423
1528
|
declare class RcCategoryAxis extends RcChartAxis {
|
|
1424
1529
|
}
|
|
@@ -1443,7 +1548,9 @@ declare abstract class RcChartSeries extends RcChartObject {
|
|
|
1443
1548
|
}
|
|
1444
1549
|
declare abstract class RcSeriesGroup extends RcChartObject {
|
|
1445
1550
|
}
|
|
1446
|
-
declare class
|
|
1551
|
+
declare abstract class RcLineSeriesBase extends RcChartSeries {
|
|
1552
|
+
}
|
|
1553
|
+
declare class RcLineSeries extends RcLineSeriesBase {
|
|
1447
1554
|
}
|
|
1448
1555
|
declare class RcAreaSeries extends RcChartSeries {
|
|
1449
1556
|
}
|
|
@@ -1540,18 +1647,18 @@ declare class RcCircleGauge extends RcCircularGauge {
|
|
|
1540
1647
|
get hand(): RcChartObject;
|
|
1541
1648
|
get pin(): RcChartObject;
|
|
1542
1649
|
}
|
|
1543
|
-
declare abstract class
|
|
1650
|
+
declare abstract class RcLinearGaugeBase extends RcValueGauge {
|
|
1544
1651
|
private _label;
|
|
1545
1652
|
private _scale;
|
|
1546
1653
|
protected _doInit(proxy: ChartItem): void;
|
|
1547
1654
|
get label(): RcChartObject;
|
|
1548
1655
|
get scale(): RcChartObject;
|
|
1549
1656
|
}
|
|
1550
|
-
declare class RcLinearGauge extends
|
|
1657
|
+
declare class RcLinearGauge extends RcLinearGaugeBase {
|
|
1551
1658
|
private _marker;
|
|
1552
1659
|
private _band;
|
|
1553
1660
|
}
|
|
1554
|
-
declare class RcBulletGauge extends
|
|
1661
|
+
declare class RcBulletGauge extends RcLinearGaugeBase {
|
|
1555
1662
|
}
|
|
1556
1663
|
declare class RcClockGauge extends RcChartGauge {
|
|
1557
1664
|
}
|
|
@@ -1590,6 +1697,12 @@ declare class RcChartControl {
|
|
|
1590
1697
|
get subtitle(): RcSubtitle;
|
|
1591
1698
|
get legend(): RcLegend;
|
|
1592
1699
|
get body(): RcBody;
|
|
1700
|
+
get type(): string;
|
|
1701
|
+
get gaugeType(): string;
|
|
1702
|
+
get inverted(): boolean;
|
|
1703
|
+
set inverted(value: boolean);
|
|
1704
|
+
get polar(): boolean;
|
|
1705
|
+
scroll(axis: RcChartAxis, pos: number): void;
|
|
1593
1706
|
}
|
|
1594
1707
|
|
|
1595
1708
|
declare class Globals {
|
|
@@ -1604,4 +1717,4 @@ declare const setDebugging: typeof Globals.setDebugging;
|
|
|
1604
1717
|
declare const setAnimatable: typeof Globals.setAnimatable;
|
|
1605
1718
|
declare const createChart: typeof Globals.createChart;
|
|
1606
1719
|
|
|
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 };
|
|
1720
|
+
export { RcAreaRangeSeries, RcAreaSeries, RcAreaSeriesGroup, RcBarRangeSeries, RcBarSeries, RcBarSeriesGroup, RcBellCurveSeries, RcBody, RcBoxPlotSeries, RcBubbleSeries, RcBulletGauge, RcBulletGaugeGroup, RcBumpSeriesGroup, RcCandlestickSeries, RcCategoryAxis, RcChartAxis, RcChartControl, RcChartGauge, RcChartGaugeBase, RcChartObject, RcChartSeries, RcCircleGauge, RcCircleGaugeGroup, RcCircularGauge, RcClockGauge, RcContinuousAxis, RcDumbbellSeries, RcEqualizerSeries, RcFunnelSeries, RcGaugeGroup, RcGaugeRangeBand, RcGaugeScale, RcHeatmapSeries, RcHistogramSeries, RcLegend, RcLineSeries, RcLineSeriesGroup, RcLinearAxis, RcLinearGauge, RcLinearGaugeGroup, RcLinearGaugeBase as RcLinerGaugeBase, RcLogAxis, RcLollipopSeries, RcParetoSeries, RcPieSeries, RcPieSeriesGroup, RcPointLabel, RcScatterSeries, RcSeriesGroup, RcSubtitle, RcTimeAxis, RcTitle, RcTreemapSeries, RcValueGauge, RcVectorSeries, RcWaterfallSeries, createChart, getVersion, setAnimatable, setDebugging };
|