realchart 0.9.43 → 1.0.1
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 +261 -234
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +15 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ declare abstract class RcObject {
|
|
|
165
165
|
private $_destroying;
|
|
166
166
|
constructor(noHash?: boolean);
|
|
167
167
|
destroy(): null;
|
|
168
|
-
protected
|
|
168
|
+
protected _doDestroy(): void;
|
|
169
169
|
get destroying(): boolean;
|
|
170
170
|
get hash(): string;
|
|
171
171
|
isMe(hash: string): boolean;
|
|
@@ -215,7 +215,7 @@ declare abstract class RcControl extends RcObject {
|
|
|
215
215
|
loaded: boolean;
|
|
216
216
|
_padding: ISides;
|
|
217
217
|
constructor(doc: Document, container: string | HTMLDivElement, className?: string);
|
|
218
|
-
protected
|
|
218
|
+
protected _doDestroy(): void;
|
|
219
219
|
isInited(): boolean;
|
|
220
220
|
isTesting(): boolean;
|
|
221
221
|
doc(): Document;
|
|
@@ -311,7 +311,7 @@ declare class RcElement extends RcObject {
|
|
|
311
311
|
private _parent;
|
|
312
312
|
removing: boolean;
|
|
313
313
|
constructor(doc: Document, styleName: string, tag?: string);
|
|
314
|
-
protected
|
|
314
|
+
protected _doDestroy(): void;
|
|
315
315
|
get doc(): Document;
|
|
316
316
|
get dom(): SVGElement;
|
|
317
317
|
get parent(): RcElement;
|
|
@@ -671,20 +671,29 @@ declare abstract class Annotation extends ChartItem {
|
|
|
671
671
|
inBody: boolean;
|
|
672
672
|
private _width;
|
|
673
673
|
private _height;
|
|
674
|
+
private _offsetX;
|
|
675
|
+
private _offsetY;
|
|
674
676
|
private _widthDim;
|
|
675
677
|
private _heightDim;
|
|
678
|
+
private _offsetXDim;
|
|
679
|
+
private _offsetYDim;
|
|
676
680
|
_x: number;
|
|
677
681
|
_y: number;
|
|
678
682
|
_w: number;
|
|
679
683
|
_h: number;
|
|
684
|
+
_anchorObj: ChartItem;
|
|
680
685
|
constructor(chart: IChart, name: string, inBody: boolean);
|
|
681
686
|
abstract _type(): string;
|
|
682
687
|
front: boolean;
|
|
683
688
|
name: string;
|
|
689
|
+
anchor: string;
|
|
684
690
|
align: Align;
|
|
685
691
|
verticalAlign: VerticalAlign;
|
|
686
|
-
offsetX: number;
|
|
687
|
-
|
|
692
|
+
get offsetX(): number | string;
|
|
693
|
+
set offsetX(value: number | string);
|
|
694
|
+
private $_parsOffset;
|
|
695
|
+
get offsetY(): number | string;
|
|
696
|
+
set offsetY(value: number | string);
|
|
688
697
|
rotation: number;
|
|
689
698
|
scope: AnnotationScope;
|
|
690
699
|
loadAnimation: IAnnotationAnimation;
|
|
@@ -698,70 +707,126 @@ declare abstract class Annotation extends ChartItem {
|
|
|
698
707
|
set width(value: RtPercentSize);
|
|
699
708
|
get height(): RtPercentSize;
|
|
700
709
|
set height(value: RtPercentSize);
|
|
710
|
+
private $_calcOffet;
|
|
711
|
+
getOffset(w: number, h: number): IPoint;
|
|
701
712
|
getSize(wDomain: number, hDomain: number): ISize;
|
|
702
713
|
getPosition(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
703
714
|
update(): void;
|
|
704
715
|
protected _doPrepareRender(chart: IChart): void;
|
|
705
716
|
}
|
|
717
|
+
interface IAnnotationOwner {
|
|
718
|
+
chart: IChart;
|
|
719
|
+
anchorByName(name: string): ChartItem;
|
|
720
|
+
}
|
|
706
721
|
|
|
707
|
-
declare
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
Y = "y",
|
|
711
|
-
BOTH = "both"
|
|
722
|
+
declare abstract class Widget extends ChartItem {
|
|
723
|
+
protected _doLoad(source: any): void;
|
|
724
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
712
725
|
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
726
|
+
|
|
727
|
+
declare abstract class GaugeBase extends Widget {
|
|
728
|
+
_row: number;
|
|
729
|
+
_col: number;
|
|
730
|
+
private _size;
|
|
731
|
+
private _width;
|
|
732
|
+
private _height;
|
|
733
|
+
private _left;
|
|
734
|
+
private _right;
|
|
735
|
+
private _top;
|
|
736
|
+
private _bottom;
|
|
737
|
+
index: number;
|
|
738
|
+
private _sizeDim;
|
|
739
|
+
private _widthDim;
|
|
740
|
+
private _heightDim;
|
|
741
|
+
private _leftDim;
|
|
742
|
+
private _rightDim;
|
|
743
|
+
private _topDim;
|
|
744
|
+
private _bottomDim;
|
|
745
|
+
constructor(chart: IChart);
|
|
746
|
+
abstract _type(): string;
|
|
747
|
+
name: string;
|
|
748
|
+
row: number;
|
|
749
|
+
col: number;
|
|
750
|
+
get left(): RtPercentSize;
|
|
751
|
+
set left(value: RtPercentSize);
|
|
752
|
+
get right(): RtPercentSize;
|
|
753
|
+
set right(value: RtPercentSize);
|
|
754
|
+
get top(): RtPercentSize;
|
|
755
|
+
set top(value: RtPercentSize);
|
|
756
|
+
get bottom(): RtPercentSize;
|
|
757
|
+
set bottom(value: RtPercentSize);
|
|
758
|
+
get width(): RtPercentSize;
|
|
759
|
+
set width(value: RtPercentSize);
|
|
760
|
+
get height(): RtPercentSize;
|
|
761
|
+
set height(value: RtPercentSize);
|
|
762
|
+
get size(): RtPercentSize;
|
|
763
|
+
set size(value: RtPercentSize);
|
|
764
|
+
backgroundStyle: SVGStyleOrClass;
|
|
765
|
+
getSize(width: number, height: number): ISize;
|
|
766
|
+
getLeft(doamin: number): number;
|
|
767
|
+
getRight(doamin: number): number;
|
|
768
|
+
getTop(doamin: number): number;
|
|
769
|
+
getBottom(doamin: number): number;
|
|
717
770
|
}
|
|
718
|
-
declare class
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
771
|
+
declare abstract class Gauge extends GaugeBase {
|
|
772
|
+
static _loadGauge(chart: IChart, src: any, defType?: string): Gauge;
|
|
773
|
+
group: GaugeGroup<ValueGauge>;
|
|
774
|
+
gindex: number;
|
|
775
|
+
duration: number;
|
|
776
|
+
setGroup(group: GaugeGroup<ValueGauge>, index: number): void;
|
|
722
777
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
778
|
+
declare abstract class GaugeGroup<T extends ValueGauge> extends GaugeBase {
|
|
779
|
+
private _gauges;
|
|
780
|
+
protected _visibles: T[];
|
|
781
|
+
minValue: number;
|
|
782
|
+
maxValue: number;
|
|
783
|
+
count(): number;
|
|
784
|
+
isEmpty(): boolean;
|
|
785
|
+
visibles(): T[];
|
|
786
|
+
abstract _gaugesType(): string;
|
|
787
|
+
get(index: number): T;
|
|
788
|
+
getVisible(index: number): T;
|
|
789
|
+
calcedMinMax(): IMinMax;
|
|
790
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
791
|
+
prepareRender(): void;
|
|
792
|
+
protected _prepareChildren(visibles: T[]): void;
|
|
793
|
+
private $_loadGauges;
|
|
794
|
+
private $_add;
|
|
795
|
+
protected _setGroup(child: T, index: number): void;
|
|
729
796
|
}
|
|
730
|
-
declare class
|
|
731
|
-
|
|
732
|
-
private
|
|
733
|
-
private
|
|
734
|
-
private
|
|
735
|
-
private
|
|
736
|
-
private _cxDim;
|
|
737
|
-
private _cyDim;
|
|
738
|
-
private _rd;
|
|
739
|
-
private _cx;
|
|
740
|
-
private _cy;
|
|
797
|
+
declare class GaugeCollection {
|
|
798
|
+
readonly chart: IChart;
|
|
799
|
+
private _map;
|
|
800
|
+
private _items;
|
|
801
|
+
private _visibles;
|
|
802
|
+
private _gauges;
|
|
741
803
|
constructor(chart: IChart);
|
|
742
|
-
|
|
743
|
-
get
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
804
|
+
isEmpty(visibleOnly: boolean): boolean;
|
|
805
|
+
get firstGauge(): Gauge;
|
|
806
|
+
getVisibles(): GaugeBase[];
|
|
807
|
+
getPaneVisibles(row: number, col: number): GaugeBase[];
|
|
808
|
+
getGauge(name: string): Gauge;
|
|
809
|
+
get(name: string | number): GaugeBase;
|
|
810
|
+
load(src: any): void;
|
|
811
|
+
prepareRender(): void;
|
|
812
|
+
private $_loadItem;
|
|
813
|
+
}
|
|
814
|
+
declare abstract class ValueGauge extends Gauge {
|
|
815
|
+
protected _runValue: number;
|
|
816
|
+
minValue: number;
|
|
817
|
+
maxValue: number;
|
|
818
|
+
value: number;
|
|
819
|
+
animatable: boolean;
|
|
820
|
+
updateValue(value: any): void;
|
|
821
|
+
getLabel(label: GaugeLabel, value: number): string;
|
|
822
|
+
getParam(param: string): any;
|
|
823
|
+
calcedMinMax(): IMinMax;
|
|
824
|
+
}
|
|
825
|
+
declare abstract class GaugeLabel extends FormattableText {
|
|
826
|
+
_domain: IRichTextDomain;
|
|
827
|
+
constructor(chart: IChart);
|
|
828
|
+
animatable: boolean;
|
|
763
829
|
protected _doPrepareRender(chart: IChart): void;
|
|
764
|
-
private $_loadAnnotations;
|
|
765
830
|
}
|
|
766
831
|
|
|
767
832
|
declare enum Shape {
|
|
@@ -809,9 +874,69 @@ declare class ChartDataCollection {
|
|
|
809
874
|
load(source: any): void;
|
|
810
875
|
}
|
|
811
876
|
|
|
812
|
-
declare
|
|
813
|
-
|
|
814
|
-
|
|
877
|
+
declare class DataPoint {
|
|
878
|
+
index: number;
|
|
879
|
+
vindex: number;
|
|
880
|
+
x: any;
|
|
881
|
+
y: any;
|
|
882
|
+
series: string | number;
|
|
883
|
+
readonly pid: number;
|
|
884
|
+
source: any;
|
|
885
|
+
isNull: boolean;
|
|
886
|
+
xValue: number;
|
|
887
|
+
yValue: number;
|
|
888
|
+
yRate: number;
|
|
889
|
+
visible: boolean;
|
|
890
|
+
color: string;
|
|
891
|
+
xPos: number;
|
|
892
|
+
yPos: number;
|
|
893
|
+
yGroup: number;
|
|
894
|
+
drillDown: any[] | object;
|
|
895
|
+
range: IValueRange;
|
|
896
|
+
zValue: number;
|
|
897
|
+
yLabel: any;
|
|
898
|
+
_prev: any;
|
|
899
|
+
_vr: number;
|
|
900
|
+
constructor(source: any);
|
|
901
|
+
ariaHint(): string;
|
|
902
|
+
labelCount(): number;
|
|
903
|
+
getValue(): number;
|
|
904
|
+
copy(): any;
|
|
905
|
+
proxy(): any;
|
|
906
|
+
assignTo(proxy?: any): any;
|
|
907
|
+
getProp(fld: string | number): any;
|
|
908
|
+
parse(series: ISeries): void;
|
|
909
|
+
getLabelValue(index: number): any;
|
|
910
|
+
swap(): void;
|
|
911
|
+
updateValues(series: ISeries, values: any): any;
|
|
912
|
+
getTooltip(param: string): any;
|
|
913
|
+
initValues(): void;
|
|
914
|
+
initPrev(axis: IAxis, prev: any): void;
|
|
915
|
+
applyValueRate(prev: any, vr: number): void;
|
|
916
|
+
protected _assignTo(proxy: any): any;
|
|
917
|
+
protected _readArray(series: ISeries, v: any[]): void;
|
|
918
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
919
|
+
protected _readSingle(v: any): void;
|
|
920
|
+
protected _valuesChangd(): boolean;
|
|
921
|
+
}
|
|
922
|
+
declare class DataPointCollection {
|
|
923
|
+
protected _owner: ISeries;
|
|
924
|
+
private _points;
|
|
925
|
+
constructor(owner: ISeries);
|
|
926
|
+
get count(): number;
|
|
927
|
+
isEmpty(): boolean;
|
|
928
|
+
get(index: number): DataPoint;
|
|
929
|
+
pointAt(xValue: number | any): DataPoint;
|
|
930
|
+
contains(p: DataPoint): boolean;
|
|
931
|
+
load(source: any): void;
|
|
932
|
+
clear(): void;
|
|
933
|
+
add(p: DataPoint): void;
|
|
934
|
+
remove(p: DataPoint): boolean;
|
|
935
|
+
getProps(prop: string | number): any[];
|
|
936
|
+
getCategories(axis: string): any[];
|
|
937
|
+
getProxies(): any[];
|
|
938
|
+
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
939
|
+
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
815
940
|
}
|
|
816
941
|
|
|
817
942
|
interface ILegendSource {
|
|
@@ -854,6 +979,7 @@ declare class Tooltip extends ChartItem {
|
|
|
854
979
|
minWidth: number;
|
|
855
980
|
minHeight: number;
|
|
856
981
|
followPointer: boolean;
|
|
982
|
+
nanText: string;
|
|
857
983
|
get numberFormat(): string;
|
|
858
984
|
set numberFormat(value: string);
|
|
859
985
|
get timeFormat(): string;
|
|
@@ -909,7 +1035,7 @@ interface IPlottingItem {
|
|
|
909
1035
|
getVisiblePoints(): DataPoint[];
|
|
910
1036
|
getLegendSources(list: ILegendSource[]): void;
|
|
911
1037
|
needAxes(): boolean;
|
|
912
|
-
isEmpty(visibleOnly:
|
|
1038
|
+
isEmpty(visibleOnly: boolean): boolean;
|
|
913
1039
|
canCategorized(): boolean;
|
|
914
1040
|
defaultYAxisType(): string;
|
|
915
1041
|
isClusterable(): boolean;
|
|
@@ -1253,7 +1379,7 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
1253
1379
|
tooltipFooter: string;
|
|
1254
1380
|
get series(): T[];
|
|
1255
1381
|
needAxes(): boolean;
|
|
1256
|
-
isEmpty(): boolean;
|
|
1382
|
+
isEmpty(visibleOnly: boolean): boolean;
|
|
1257
1383
|
canCategorized(): boolean;
|
|
1258
1384
|
defaultYAxisType(): string;
|
|
1259
1385
|
isClusterable(): boolean;
|
|
@@ -1292,69 +1418,61 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
1292
1418
|
private $_collectFill;
|
|
1293
1419
|
}
|
|
1294
1420
|
|
|
1295
|
-
declare
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
series: string | number;
|
|
1301
|
-
readonly pid: number;
|
|
1302
|
-
source: any;
|
|
1303
|
-
isNull: boolean;
|
|
1304
|
-
xValue: number;
|
|
1305
|
-
yValue: number;
|
|
1306
|
-
yRate: number;
|
|
1307
|
-
visible: boolean;
|
|
1308
|
-
color: string;
|
|
1309
|
-
xPos: number;
|
|
1310
|
-
yPos: number;
|
|
1311
|
-
yGroup: number;
|
|
1312
|
-
drillDown: any[] | object;
|
|
1313
|
-
range: IValueRange;
|
|
1314
|
-
zValue: number;
|
|
1315
|
-
yLabel: any;
|
|
1316
|
-
_prev: any;
|
|
1317
|
-
_vr: number;
|
|
1318
|
-
constructor(source: any);
|
|
1319
|
-
ariaHint(): string;
|
|
1320
|
-
labelCount(): number;
|
|
1321
|
-
getValue(): number;
|
|
1322
|
-
copy(): any;
|
|
1323
|
-
proxy(): any;
|
|
1324
|
-
assignTo(proxy?: any): any;
|
|
1325
|
-
getProp(fld: string | number): any;
|
|
1326
|
-
parse(series: ISeries): void;
|
|
1327
|
-
getLabelValue(index: number): any;
|
|
1328
|
-
swap(): void;
|
|
1329
|
-
updateValues(series: ISeries, values: any): any;
|
|
1330
|
-
getTooltip(param: string): any;
|
|
1331
|
-
initValues(): void;
|
|
1332
|
-
initPrev(axis: IAxis, prev: any): void;
|
|
1333
|
-
applyValueRate(prev: any, vr: number): void;
|
|
1334
|
-
protected _assignTo(proxy: any): any;
|
|
1335
|
-
protected _readArray(series: ISeries, v: any[]): void;
|
|
1336
|
-
protected _readObject(series: ISeries, v: any): void;
|
|
1337
|
-
protected _readSingle(v: any): void;
|
|
1338
|
-
protected _valuesChangd(): boolean;
|
|
1421
|
+
declare enum ZoomType {
|
|
1422
|
+
NONE = "none",
|
|
1423
|
+
X = "x",
|
|
1424
|
+
Y = "y",
|
|
1425
|
+
BOTH = "both"
|
|
1339
1426
|
}
|
|
1340
|
-
declare class
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1427
|
+
declare class ZoomButton extends ChartItem {
|
|
1428
|
+
body: Body;
|
|
1429
|
+
constructor(body: Body);
|
|
1430
|
+
isVisible(): boolean;
|
|
1431
|
+
}
|
|
1432
|
+
interface IPolar {
|
|
1433
|
+
start: number;
|
|
1434
|
+
total: number;
|
|
1435
|
+
cx: number;
|
|
1436
|
+
cy: number;
|
|
1437
|
+
rd: number;
|
|
1438
|
+
}
|
|
1439
|
+
declare class Body extends ChartItem implements IAnnotationOwner {
|
|
1440
|
+
private _radius;
|
|
1441
|
+
private _centerX;
|
|
1442
|
+
private _centerY;
|
|
1443
|
+
private _annotations;
|
|
1444
|
+
private _radiusDim;
|
|
1445
|
+
private _cxDim;
|
|
1446
|
+
private _cyDim;
|
|
1447
|
+
private _rd;
|
|
1448
|
+
private _cx;
|
|
1449
|
+
private _cy;
|
|
1450
|
+
constructor(chart: IChart);
|
|
1451
|
+
anchorByName(name: string): ChartItem;
|
|
1452
|
+
get radius(): RtPercentSize;
|
|
1453
|
+
set radius(value: RtPercentSize);
|
|
1454
|
+
innerRadius: RtPercentSize;
|
|
1455
|
+
get centerX(): RtPercentSize;
|
|
1456
|
+
set centerX(value: RtPercentSize);
|
|
1457
|
+
get centerY(): RtPercentSize;
|
|
1458
|
+
set centerY(value: RtPercentSize);
|
|
1459
|
+
circular: boolean;
|
|
1460
|
+
image: BackgroundImage;
|
|
1461
|
+
zoomType: ZoomType;
|
|
1462
|
+
zoomButton: ZoomButton;
|
|
1463
|
+
base(): Body;
|
|
1464
|
+
canZoom(): boolean;
|
|
1465
|
+
calcRadius(width: number, height: number): number;
|
|
1466
|
+
setPolar(width: number, height: number): Body;
|
|
1467
|
+
getPolar(axis: Axis): IPolar;
|
|
1468
|
+
isZoomed(): boolean;
|
|
1469
|
+
'@config annotation': Annotation[];
|
|
1470
|
+
getAnnotations(): Annotation[];
|
|
1471
|
+
getAnnotation(name: string): Annotation;
|
|
1472
|
+
contains(obj: GaugeBase | Series): boolean;
|
|
1473
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1474
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1475
|
+
private $_loadAnnotations;
|
|
1358
1476
|
}
|
|
1359
1477
|
|
|
1360
1478
|
declare class Title extends ChartItem {
|
|
@@ -1381,114 +1499,11 @@ declare class Subtitle extends Title {
|
|
|
1381
1499
|
titleGap: number;
|
|
1382
1500
|
}
|
|
1383
1501
|
|
|
1384
|
-
declare abstract class GaugeBase extends Widget {
|
|
1385
|
-
_row: number;
|
|
1386
|
-
_col: number;
|
|
1387
|
-
private _size;
|
|
1388
|
-
private _width;
|
|
1389
|
-
private _height;
|
|
1390
|
-
private _left;
|
|
1391
|
-
private _right;
|
|
1392
|
-
private _top;
|
|
1393
|
-
private _bottom;
|
|
1394
|
-
index: number;
|
|
1395
|
-
private _sizeDim;
|
|
1396
|
-
private _widthDim;
|
|
1397
|
-
private _heightDim;
|
|
1398
|
-
private _leftDim;
|
|
1399
|
-
private _rightDim;
|
|
1400
|
-
private _topDim;
|
|
1401
|
-
private _bottomDim;
|
|
1402
|
-
constructor(chart: IChart);
|
|
1403
|
-
abstract _type(): string;
|
|
1404
|
-
name: string;
|
|
1405
|
-
row: number;
|
|
1406
|
-
col: number;
|
|
1407
|
-
get left(): RtPercentSize;
|
|
1408
|
-
set left(value: RtPercentSize);
|
|
1409
|
-
get right(): RtPercentSize;
|
|
1410
|
-
set right(value: RtPercentSize);
|
|
1411
|
-
get top(): RtPercentSize;
|
|
1412
|
-
set top(value: RtPercentSize);
|
|
1413
|
-
get bottom(): RtPercentSize;
|
|
1414
|
-
set bottom(value: RtPercentSize);
|
|
1415
|
-
get width(): RtPercentSize;
|
|
1416
|
-
set width(value: RtPercentSize);
|
|
1417
|
-
get height(): RtPercentSize;
|
|
1418
|
-
set height(value: RtPercentSize);
|
|
1419
|
-
get size(): RtPercentSize;
|
|
1420
|
-
set size(value: RtPercentSize);
|
|
1421
|
-
backgroundStyle: SVGStyleOrClass;
|
|
1422
|
-
getSize(width: number, height: number): ISize;
|
|
1423
|
-
getLeft(doamin: number): number;
|
|
1424
|
-
getRight(doamin: number): number;
|
|
1425
|
-
getTop(doamin: number): number;
|
|
1426
|
-
getBottom(doamin: number): number;
|
|
1427
|
-
}
|
|
1428
|
-
declare abstract class Gauge extends GaugeBase {
|
|
1429
|
-
static _loadGauge(chart: IChart, src: any, defType?: string): Gauge;
|
|
1430
|
-
group: GaugeGroup<ValueGauge>;
|
|
1431
|
-
gindex: number;
|
|
1432
|
-
duration: number;
|
|
1433
|
-
setGroup(group: GaugeGroup<ValueGauge>, index: number): void;
|
|
1434
|
-
}
|
|
1435
|
-
declare abstract class GaugeGroup<T extends ValueGauge> extends GaugeBase {
|
|
1436
|
-
private _gauges;
|
|
1437
|
-
protected _visibles: T[];
|
|
1438
|
-
minValue: number;
|
|
1439
|
-
maxValue: number;
|
|
1440
|
-
count(): number;
|
|
1441
|
-
isEmpty(): boolean;
|
|
1442
|
-
visibles(): T[];
|
|
1443
|
-
abstract _gaugesType(): string;
|
|
1444
|
-
get(index: number): T;
|
|
1445
|
-
getVisible(index: number): T;
|
|
1446
|
-
calcedMinMax(): IMinMax;
|
|
1447
|
-
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1448
|
-
prepareRender(): void;
|
|
1449
|
-
protected _prepareChildren(visibles: T[]): void;
|
|
1450
|
-
private $_loadGauges;
|
|
1451
|
-
private $_add;
|
|
1452
|
-
protected _setGroup(child: T, index: number): void;
|
|
1453
|
-
}
|
|
1454
|
-
declare class GaugeCollection {
|
|
1455
|
-
readonly chart: IChart;
|
|
1456
|
-
private _map;
|
|
1457
|
-
private _items;
|
|
1458
|
-
private _visibles;
|
|
1459
|
-
private _gauges;
|
|
1460
|
-
constructor(chart: IChart);
|
|
1461
|
-
isEmpty(visibleOnly: boolean): boolean;
|
|
1462
|
-
get firstGauge(): Gauge;
|
|
1463
|
-
getVisibles(): GaugeBase[];
|
|
1464
|
-
getPaneVisibles(row: number, col: number): GaugeBase[];
|
|
1465
|
-
getGauge(name: string): Gauge;
|
|
1466
|
-
get(name: string | number): GaugeBase;
|
|
1467
|
-
load(src: any): void;
|
|
1468
|
-
prepareRender(): void;
|
|
1469
|
-
private $_loadItem;
|
|
1470
|
-
}
|
|
1471
|
-
declare abstract class ValueGauge extends Gauge {
|
|
1472
|
-
protected _runValue: number;
|
|
1473
|
-
minValue: number;
|
|
1474
|
-
maxValue: number;
|
|
1475
|
-
value: number;
|
|
1476
|
-
animatable: boolean;
|
|
1477
|
-
updateValue(value: any): void;
|
|
1478
|
-
getLabel(label: GaugeLabel, value: number): string;
|
|
1479
|
-
getParam(param: string): any;
|
|
1480
|
-
calcedMinMax(): IMinMax;
|
|
1481
|
-
}
|
|
1482
|
-
declare abstract class GaugeLabel extends FormattableText {
|
|
1483
|
-
_domain: IRichTextDomain;
|
|
1484
|
-
constructor(chart: IChart);
|
|
1485
|
-
animatable: boolean;
|
|
1486
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
1502
|
declare class PaneBody extends Body {
|
|
1490
1503
|
pane: Pane;
|
|
1491
1504
|
constructor(pane: Pane);
|
|
1505
|
+
base(): Body;
|
|
1506
|
+
contains(obj: GaugeBase | Series): boolean;
|
|
1492
1507
|
}
|
|
1493
1508
|
declare class Pane extends ChartItem {
|
|
1494
1509
|
row: number;
|
|
@@ -1554,7 +1569,7 @@ interface IChart {
|
|
|
1554
1569
|
_xPaneAxes: PaneXAxisMatrix;
|
|
1555
1570
|
_yPaneAxes: PaneYAxisMatrix;
|
|
1556
1571
|
options: ChartOptions;
|
|
1557
|
-
|
|
1572
|
+
export: IExport;
|
|
1558
1573
|
first: IPlottingItem;
|
|
1559
1574
|
firstSeries: Series;
|
|
1560
1575
|
xAxis: IAxis;
|
|
@@ -1621,6 +1636,7 @@ declare enum PointHoverScope {
|
|
|
1621
1636
|
declare class PointHovering extends ChartItem {
|
|
1622
1637
|
scope: PointHoverScope;
|
|
1623
1638
|
hintDistance: number;
|
|
1639
|
+
getHintDistance(): number;
|
|
1624
1640
|
getScope(series: ISeries, p: DataPoint): PointHoverScope;
|
|
1625
1641
|
}
|
|
1626
1642
|
declare class ChartOptions extends ChartItem {
|
|
@@ -1636,10 +1652,11 @@ declare class ChartOptions extends ChartItem {
|
|
|
1636
1652
|
pointHovering: PointHovering;
|
|
1637
1653
|
getXStart(axis: IAxis): number | string;
|
|
1638
1654
|
}
|
|
1639
|
-
interface
|
|
1655
|
+
interface IExport {
|
|
1640
1656
|
visible?: boolean;
|
|
1641
|
-
menus?: ExportType[];
|
|
1642
1657
|
fileName?: string;
|
|
1658
|
+
useLibrary?: boolean;
|
|
1659
|
+
menus?: ExportType[];
|
|
1643
1660
|
width?: number;
|
|
1644
1661
|
scale?: number;
|
|
1645
1662
|
url?: string;
|
|
@@ -1883,6 +1900,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1883
1900
|
_isBetween: boolean;
|
|
1884
1901
|
_isPolar: boolean;
|
|
1885
1902
|
protected _series: IPlottingItem[];
|
|
1903
|
+
protected _isEmpty: boolean;
|
|
1886
1904
|
_range: {
|
|
1887
1905
|
min: number;
|
|
1888
1906
|
max: number;
|
|
@@ -1934,6 +1952,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1934
1952
|
animatable: boolean;
|
|
1935
1953
|
fixedSize: boolean;
|
|
1936
1954
|
isEmpty(): boolean;
|
|
1955
|
+
private $_checkEmpty;
|
|
1937
1956
|
getBaseValue(): number;
|
|
1938
1957
|
length(): number;
|
|
1939
1958
|
axisMin(): number;
|
|
@@ -1946,6 +1965,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1946
1965
|
isArced(): boolean;
|
|
1947
1966
|
getVisibleSeries(): ISeries[];
|
|
1948
1967
|
unitPad(): number;
|
|
1968
|
+
labelsVisible(): boolean;
|
|
1949
1969
|
protected abstract _createTickModel(): AxisTick;
|
|
1950
1970
|
protected abstract _createLabel(): AxisLabel;
|
|
1951
1971
|
protected abstract _doPrepareRender(): void;
|
|
@@ -1958,6 +1978,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1958
1978
|
collectValues(): void;
|
|
1959
1979
|
collectRanges(): void;
|
|
1960
1980
|
collectReferentsValues(): void;
|
|
1981
|
+
prepare(): void;
|
|
1961
1982
|
prepareRender(): void;
|
|
1962
1983
|
afterRender(): void;
|
|
1963
1984
|
buildTicks(length: number): void;
|
|
@@ -2003,6 +2024,7 @@ declare class AxisCollection {
|
|
|
2003
2024
|
contains(axis: Axis): boolean;
|
|
2004
2025
|
get(name: string | number): Axis;
|
|
2005
2026
|
disconnect(): void;
|
|
2027
|
+
prepare(): void;
|
|
2006
2028
|
collectValues(): void;
|
|
2007
2029
|
collectRanges(): void;
|
|
2008
2030
|
collectReferentsValues(): void;
|
|
@@ -2152,7 +2174,12 @@ declare class RcChartControl {
|
|
|
2152
2174
|
setParam(param: string, value: any, redraw?: boolean): void;
|
|
2153
2175
|
addSeries(source: any, animate?: boolean): RcChartSeries | undefined;
|
|
2154
2176
|
removeSeries(series: string | RcChartSeries, animate?: boolean): RcChartSeries | undefined;
|
|
2155
|
-
export(
|
|
2177
|
+
export(options: IRcExportOptions): void;
|
|
2178
|
+
private use;
|
|
2179
|
+
}
|
|
2180
|
+
interface IRcExportOptions {
|
|
2181
|
+
type?: ExportType;
|
|
2182
|
+
fileName?: string;
|
|
2156
2183
|
}
|
|
2157
2184
|
|
|
2158
2185
|
declare class RcChartData {
|
|
@@ -2204,4 +2231,4 @@ declare const setAnimatable: typeof Globals.setAnimatable;
|
|
|
2204
2231
|
declare const createChart: typeof Globals.createChart;
|
|
2205
2232
|
declare const createData: typeof Globals.createData;
|
|
2206
2233
|
|
|
2207
|
-
export { IRcChartDataOptions, RcAnnotation, RcBody, RcChartAxis, RcChartControl, RcChartData, RcChartGauge, RcChartObject, RcChartSeries, RcGaugeGroup, RcLegend, RcNamedObject, RcSeriesGroup, RcSubtitle, RcTitle, createChart, createData, getVersion, setAnimatable, setDebugging, setLogging };
|
|
2234
|
+
export { IRcChartDataOptions, IRcExportOptions, RcAnnotation, RcBody, RcChartAxis, RcChartControl, RcChartData, RcChartGauge, RcChartObject, RcChartSeries, RcGaugeGroup, RcLegend, RcNamedObject, RcSeriesGroup, RcSubtitle, RcTitle, createChart, createData, getVersion, setAnimatable, setDebugging, setLogging };
|