realchart 1.0.0 → 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 +248 -224
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- 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,65 +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
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
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;
|
|
724
777
|
}
|
|
725
|
-
declare class
|
|
726
|
-
private
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
get radius(): RtPercentSize;
|
|
738
|
-
set radius(value: RtPercentSize);
|
|
739
|
-
innerRadius: RtPercentSize;
|
|
740
|
-
get centerX(): RtPercentSize;
|
|
741
|
-
set centerX(value: RtPercentSize);
|
|
742
|
-
get centerY(): RtPercentSize;
|
|
743
|
-
set centerY(value: RtPercentSize);
|
|
744
|
-
circular: boolean;
|
|
745
|
-
image: BackgroundImage;
|
|
746
|
-
zoomType: ZoomType;
|
|
747
|
-
zoomButton: ZoomButton;
|
|
748
|
-
base(): Body;
|
|
749
|
-
canZoom(): boolean;
|
|
750
|
-
calcRadius(width: number, height: number): number;
|
|
751
|
-
setPolar(width: number, height: number): Body;
|
|
752
|
-
getPolar(axis: Axis): IPolar;
|
|
753
|
-
isZoomed(): boolean;
|
|
754
|
-
'@config annotation': Annotation[];
|
|
755
|
-
getAnnotations(): Annotation[];
|
|
756
|
-
getAnnotation(name: string): Annotation;
|
|
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;
|
|
757
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;
|
|
796
|
+
}
|
|
797
|
+
declare class GaugeCollection {
|
|
798
|
+
readonly chart: IChart;
|
|
799
|
+
private _map;
|
|
800
|
+
private _items;
|
|
801
|
+
private _visibles;
|
|
802
|
+
private _gauges;
|
|
803
|
+
constructor(chart: IChart);
|
|
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;
|
|
758
829
|
protected _doPrepareRender(chart: IChart): void;
|
|
759
|
-
private $_loadAnnotations;
|
|
760
830
|
}
|
|
761
831
|
|
|
762
832
|
declare enum Shape {
|
|
@@ -804,9 +874,69 @@ declare class ChartDataCollection {
|
|
|
804
874
|
load(source: any): void;
|
|
805
875
|
}
|
|
806
876
|
|
|
807
|
-
declare
|
|
808
|
-
|
|
809
|
-
|
|
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[];
|
|
810
940
|
}
|
|
811
941
|
|
|
812
942
|
interface ILegendSource {
|
|
@@ -1249,7 +1379,7 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
1249
1379
|
tooltipFooter: string;
|
|
1250
1380
|
get series(): T[];
|
|
1251
1381
|
needAxes(): boolean;
|
|
1252
|
-
isEmpty(): boolean;
|
|
1382
|
+
isEmpty(visibleOnly: boolean): boolean;
|
|
1253
1383
|
canCategorized(): boolean;
|
|
1254
1384
|
defaultYAxisType(): string;
|
|
1255
1385
|
isClusterable(): boolean;
|
|
@@ -1288,69 +1418,61 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
1288
1418
|
private $_collectFill;
|
|
1289
1419
|
}
|
|
1290
1420
|
|
|
1291
|
-
declare
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
series: string | number;
|
|
1297
|
-
readonly pid: number;
|
|
1298
|
-
source: any;
|
|
1299
|
-
isNull: boolean;
|
|
1300
|
-
xValue: number;
|
|
1301
|
-
yValue: number;
|
|
1302
|
-
yRate: number;
|
|
1303
|
-
visible: boolean;
|
|
1304
|
-
color: string;
|
|
1305
|
-
xPos: number;
|
|
1306
|
-
yPos: number;
|
|
1307
|
-
yGroup: number;
|
|
1308
|
-
drillDown: any[] | object;
|
|
1309
|
-
range: IValueRange;
|
|
1310
|
-
zValue: number;
|
|
1311
|
-
yLabel: any;
|
|
1312
|
-
_prev: any;
|
|
1313
|
-
_vr: number;
|
|
1314
|
-
constructor(source: any);
|
|
1315
|
-
ariaHint(): string;
|
|
1316
|
-
labelCount(): number;
|
|
1317
|
-
getValue(): number;
|
|
1318
|
-
copy(): any;
|
|
1319
|
-
proxy(): any;
|
|
1320
|
-
assignTo(proxy?: any): any;
|
|
1321
|
-
getProp(fld: string | number): any;
|
|
1322
|
-
parse(series: ISeries): void;
|
|
1323
|
-
getLabelValue(index: number): any;
|
|
1324
|
-
swap(): void;
|
|
1325
|
-
updateValues(series: ISeries, values: any): any;
|
|
1326
|
-
getTooltip(param: string): any;
|
|
1327
|
-
initValues(): void;
|
|
1328
|
-
initPrev(axis: IAxis, prev: any): void;
|
|
1329
|
-
applyValueRate(prev: any, vr: number): void;
|
|
1330
|
-
protected _assignTo(proxy: any): any;
|
|
1331
|
-
protected _readArray(series: ISeries, v: any[]): void;
|
|
1332
|
-
protected _readObject(series: ISeries, v: any): void;
|
|
1333
|
-
protected _readSingle(v: any): void;
|
|
1334
|
-
protected _valuesChangd(): boolean;
|
|
1421
|
+
declare enum ZoomType {
|
|
1422
|
+
NONE = "none",
|
|
1423
|
+
X = "x",
|
|
1424
|
+
Y = "y",
|
|
1425
|
+
BOTH = "both"
|
|
1335
1426
|
}
|
|
1336
|
-
declare class
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
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;
|
|
1354
1476
|
}
|
|
1355
1477
|
|
|
1356
1478
|
declare class Title extends ChartItem {
|
|
@@ -1377,115 +1499,11 @@ declare class Subtitle extends Title {
|
|
|
1377
1499
|
titleGap: number;
|
|
1378
1500
|
}
|
|
1379
1501
|
|
|
1380
|
-
declare abstract class GaugeBase extends Widget {
|
|
1381
|
-
_row: number;
|
|
1382
|
-
_col: number;
|
|
1383
|
-
private _size;
|
|
1384
|
-
private _width;
|
|
1385
|
-
private _height;
|
|
1386
|
-
private _left;
|
|
1387
|
-
private _right;
|
|
1388
|
-
private _top;
|
|
1389
|
-
private _bottom;
|
|
1390
|
-
index: number;
|
|
1391
|
-
private _sizeDim;
|
|
1392
|
-
private _widthDim;
|
|
1393
|
-
private _heightDim;
|
|
1394
|
-
private _leftDim;
|
|
1395
|
-
private _rightDim;
|
|
1396
|
-
private _topDim;
|
|
1397
|
-
private _bottomDim;
|
|
1398
|
-
constructor(chart: IChart);
|
|
1399
|
-
abstract _type(): string;
|
|
1400
|
-
name: string;
|
|
1401
|
-
row: number;
|
|
1402
|
-
col: number;
|
|
1403
|
-
get left(): RtPercentSize;
|
|
1404
|
-
set left(value: RtPercentSize);
|
|
1405
|
-
get right(): RtPercentSize;
|
|
1406
|
-
set right(value: RtPercentSize);
|
|
1407
|
-
get top(): RtPercentSize;
|
|
1408
|
-
set top(value: RtPercentSize);
|
|
1409
|
-
get bottom(): RtPercentSize;
|
|
1410
|
-
set bottom(value: RtPercentSize);
|
|
1411
|
-
get width(): RtPercentSize;
|
|
1412
|
-
set width(value: RtPercentSize);
|
|
1413
|
-
get height(): RtPercentSize;
|
|
1414
|
-
set height(value: RtPercentSize);
|
|
1415
|
-
get size(): RtPercentSize;
|
|
1416
|
-
set size(value: RtPercentSize);
|
|
1417
|
-
backgroundStyle: SVGStyleOrClass;
|
|
1418
|
-
getSize(width: number, height: number): ISize;
|
|
1419
|
-
getLeft(doamin: number): number;
|
|
1420
|
-
getRight(doamin: number): number;
|
|
1421
|
-
getTop(doamin: number): number;
|
|
1422
|
-
getBottom(doamin: number): number;
|
|
1423
|
-
}
|
|
1424
|
-
declare abstract class Gauge extends GaugeBase {
|
|
1425
|
-
static _loadGauge(chart: IChart, src: any, defType?: string): Gauge;
|
|
1426
|
-
group: GaugeGroup<ValueGauge>;
|
|
1427
|
-
gindex: number;
|
|
1428
|
-
duration: number;
|
|
1429
|
-
setGroup(group: GaugeGroup<ValueGauge>, index: number): void;
|
|
1430
|
-
}
|
|
1431
|
-
declare abstract class GaugeGroup<T extends ValueGauge> extends GaugeBase {
|
|
1432
|
-
private _gauges;
|
|
1433
|
-
protected _visibles: T[];
|
|
1434
|
-
minValue: number;
|
|
1435
|
-
maxValue: number;
|
|
1436
|
-
count(): number;
|
|
1437
|
-
isEmpty(): boolean;
|
|
1438
|
-
visibles(): T[];
|
|
1439
|
-
abstract _gaugesType(): string;
|
|
1440
|
-
get(index: number): T;
|
|
1441
|
-
getVisible(index: number): T;
|
|
1442
|
-
calcedMinMax(): IMinMax;
|
|
1443
|
-
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1444
|
-
prepareRender(): void;
|
|
1445
|
-
protected _prepareChildren(visibles: T[]): void;
|
|
1446
|
-
private $_loadGauges;
|
|
1447
|
-
private $_add;
|
|
1448
|
-
protected _setGroup(child: T, index: number): void;
|
|
1449
|
-
}
|
|
1450
|
-
declare class GaugeCollection {
|
|
1451
|
-
readonly chart: IChart;
|
|
1452
|
-
private _map;
|
|
1453
|
-
private _items;
|
|
1454
|
-
private _visibles;
|
|
1455
|
-
private _gauges;
|
|
1456
|
-
constructor(chart: IChart);
|
|
1457
|
-
isEmpty(visibleOnly: boolean): boolean;
|
|
1458
|
-
get firstGauge(): Gauge;
|
|
1459
|
-
getVisibles(): GaugeBase[];
|
|
1460
|
-
getPaneVisibles(row: number, col: number): GaugeBase[];
|
|
1461
|
-
getGauge(name: string): Gauge;
|
|
1462
|
-
get(name: string | number): GaugeBase;
|
|
1463
|
-
load(src: any): void;
|
|
1464
|
-
prepareRender(): void;
|
|
1465
|
-
private $_loadItem;
|
|
1466
|
-
}
|
|
1467
|
-
declare abstract class ValueGauge extends Gauge {
|
|
1468
|
-
protected _runValue: number;
|
|
1469
|
-
minValue: number;
|
|
1470
|
-
maxValue: number;
|
|
1471
|
-
value: number;
|
|
1472
|
-
animatable: boolean;
|
|
1473
|
-
updateValue(value: any): void;
|
|
1474
|
-
getLabel(label: GaugeLabel, value: number): string;
|
|
1475
|
-
getParam(param: string): any;
|
|
1476
|
-
calcedMinMax(): IMinMax;
|
|
1477
|
-
}
|
|
1478
|
-
declare abstract class GaugeLabel extends FormattableText {
|
|
1479
|
-
_domain: IRichTextDomain;
|
|
1480
|
-
constructor(chart: IChart);
|
|
1481
|
-
animatable: boolean;
|
|
1482
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
1502
|
declare class PaneBody extends Body {
|
|
1486
1503
|
pane: Pane;
|
|
1487
1504
|
constructor(pane: Pane);
|
|
1488
1505
|
base(): Body;
|
|
1506
|
+
contains(obj: GaugeBase | Series): boolean;
|
|
1489
1507
|
}
|
|
1490
1508
|
declare class Pane extends ChartItem {
|
|
1491
1509
|
row: number;
|
|
@@ -1882,6 +1900,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1882
1900
|
_isBetween: boolean;
|
|
1883
1901
|
_isPolar: boolean;
|
|
1884
1902
|
protected _series: IPlottingItem[];
|
|
1903
|
+
protected _isEmpty: boolean;
|
|
1885
1904
|
_range: {
|
|
1886
1905
|
min: number;
|
|
1887
1906
|
max: number;
|
|
@@ -1933,6 +1952,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1933
1952
|
animatable: boolean;
|
|
1934
1953
|
fixedSize: boolean;
|
|
1935
1954
|
isEmpty(): boolean;
|
|
1955
|
+
private $_checkEmpty;
|
|
1936
1956
|
getBaseValue(): number;
|
|
1937
1957
|
length(): number;
|
|
1938
1958
|
axisMin(): number;
|
|
@@ -1945,6 +1965,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1945
1965
|
isArced(): boolean;
|
|
1946
1966
|
getVisibleSeries(): ISeries[];
|
|
1947
1967
|
unitPad(): number;
|
|
1968
|
+
labelsVisible(): boolean;
|
|
1948
1969
|
protected abstract _createTickModel(): AxisTick;
|
|
1949
1970
|
protected abstract _createLabel(): AxisLabel;
|
|
1950
1971
|
protected abstract _doPrepareRender(): void;
|
|
@@ -1957,6 +1978,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1957
1978
|
collectValues(): void;
|
|
1958
1979
|
collectRanges(): void;
|
|
1959
1980
|
collectReferentsValues(): void;
|
|
1981
|
+
prepare(): void;
|
|
1960
1982
|
prepareRender(): void;
|
|
1961
1983
|
afterRender(): void;
|
|
1962
1984
|
buildTicks(length: number): void;
|
|
@@ -2002,6 +2024,7 @@ declare class AxisCollection {
|
|
|
2002
2024
|
contains(axis: Axis): boolean;
|
|
2003
2025
|
get(name: string | number): Axis;
|
|
2004
2026
|
disconnect(): void;
|
|
2027
|
+
prepare(): void;
|
|
2005
2028
|
collectValues(): void;
|
|
2006
2029
|
collectRanges(): void;
|
|
2007
2030
|
collectReferentsValues(): void;
|
|
@@ -2152,6 +2175,7 @@ declare class RcChartControl {
|
|
|
2152
2175
|
addSeries(source: any, animate?: boolean): RcChartSeries | undefined;
|
|
2153
2176
|
removeSeries(series: string | RcChartSeries, animate?: boolean): RcChartSeries | undefined;
|
|
2154
2177
|
export(options: IRcExportOptions): void;
|
|
2178
|
+
private use;
|
|
2155
2179
|
}
|
|
2156
2180
|
interface IRcExportOptions {
|
|
2157
2181
|
type?: ExportType;
|