realchart 0.9.22 → 0.9.23
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 +125 -116
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface SVGStyles {
|
|
|
5
5
|
fillOpacity?: string;
|
|
6
6
|
stroke?: string;
|
|
7
7
|
strokeWidth?: string;
|
|
8
|
+
strokeDasharray?: string;
|
|
8
9
|
fontFamily?: string;
|
|
9
10
|
fontSize?: string;
|
|
10
11
|
fontWeight?: string;
|
|
@@ -515,6 +516,64 @@ declare abstract class Annotation extends ChartItem {
|
|
|
515
516
|
getPostion(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
516
517
|
}
|
|
517
518
|
|
|
519
|
+
declare enum ZoomType {
|
|
520
|
+
NONE = "none",
|
|
521
|
+
X = "x",
|
|
522
|
+
Y = "y",
|
|
523
|
+
BOTH = "both"
|
|
524
|
+
}
|
|
525
|
+
declare class ZoomButton extends ChartItem {
|
|
526
|
+
body: Body;
|
|
527
|
+
constructor(body: Body);
|
|
528
|
+
isVisible(): boolean;
|
|
529
|
+
}
|
|
530
|
+
declare class BodySplit extends ChartItem {
|
|
531
|
+
body: Body;
|
|
532
|
+
constructor(body: Body);
|
|
533
|
+
size: number;
|
|
534
|
+
}
|
|
535
|
+
declare class Body extends ChartItem {
|
|
536
|
+
private _radius;
|
|
537
|
+
private _centerX;
|
|
538
|
+
private _centerY;
|
|
539
|
+
private _annotations;
|
|
540
|
+
private _radiusDim;
|
|
541
|
+
private _cxDim;
|
|
542
|
+
private _cyDim;
|
|
543
|
+
private _rd;
|
|
544
|
+
private _cx;
|
|
545
|
+
private _cy;
|
|
546
|
+
constructor(chart: IChart);
|
|
547
|
+
split: BodySplit;
|
|
548
|
+
get radius(): RtPercentSize;
|
|
549
|
+
set radius(value: RtPercentSize);
|
|
550
|
+
get centerX(): RtPercentSize;
|
|
551
|
+
set centerX(value: RtPercentSize);
|
|
552
|
+
get centerY(): RtPercentSize;
|
|
553
|
+
set centerY(value: RtPercentSize);
|
|
554
|
+
startAngle: number;
|
|
555
|
+
circular: boolean;
|
|
556
|
+
image: BackgroundImage;
|
|
557
|
+
zoomType: ZoomType;
|
|
558
|
+
zoomButton: ZoomButton;
|
|
559
|
+
canZoom(): boolean;
|
|
560
|
+
calcRadius(width: number, height: number): number;
|
|
561
|
+
setPolar(width: number, height: number): Body;
|
|
562
|
+
getStartAngle(): number;
|
|
563
|
+
getPolar(axis: Axis): {
|
|
564
|
+
start: number;
|
|
565
|
+
cx: number;
|
|
566
|
+
cy: number;
|
|
567
|
+
rd: number;
|
|
568
|
+
};
|
|
569
|
+
isZoomed(): boolean;
|
|
570
|
+
'@config annotation': Annotation[];
|
|
571
|
+
getAnnotations(): Annotation[];
|
|
572
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
573
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
574
|
+
private $_loadAnnotations;
|
|
575
|
+
}
|
|
576
|
+
|
|
518
577
|
declare enum Shape {
|
|
519
578
|
CIRCLE = "circle",
|
|
520
579
|
DIAMOND = "diamond",
|
|
@@ -531,66 +590,6 @@ declare enum LineType {
|
|
|
531
590
|
STEP = "step"
|
|
532
591
|
}
|
|
533
592
|
|
|
534
|
-
interface IPointPos {
|
|
535
|
-
xPos: number;
|
|
536
|
-
yPos: number;
|
|
537
|
-
isNull: boolean;
|
|
538
|
-
}
|
|
539
|
-
declare class DataPoint {
|
|
540
|
-
static swap(pts: IPointPos[]): IPointPos[];
|
|
541
|
-
index: number;
|
|
542
|
-
vindex: number;
|
|
543
|
-
x: any;
|
|
544
|
-
y: any;
|
|
545
|
-
series: string | number;
|
|
546
|
-
readonly pid: number;
|
|
547
|
-
source: any;
|
|
548
|
-
isNull: boolean;
|
|
549
|
-
xValue: number;
|
|
550
|
-
yValue: number;
|
|
551
|
-
yRate: number;
|
|
552
|
-
visible: boolean;
|
|
553
|
-
color: string;
|
|
554
|
-
xPos: number;
|
|
555
|
-
yPos: number;
|
|
556
|
-
yGroup: number;
|
|
557
|
-
drillDown: any[] | object;
|
|
558
|
-
range: IValueRange;
|
|
559
|
-
zValue: number;
|
|
560
|
-
label: any;
|
|
561
|
-
constructor(source: any);
|
|
562
|
-
get yAbs(): number;
|
|
563
|
-
get xAbs(): number;
|
|
564
|
-
ariaHint(): string;
|
|
565
|
-
labelCount(): number;
|
|
566
|
-
assignTo(proxy?: any): any;
|
|
567
|
-
getProp(fld: string | number): any;
|
|
568
|
-
parse(series: ISeries): void;
|
|
569
|
-
getLabel(index: number): any;
|
|
570
|
-
getValueOf: (traget: any, param: string) => any;
|
|
571
|
-
swap(): void;
|
|
572
|
-
protected _assignTo(proxy: any): any;
|
|
573
|
-
protected _readArray(series: ISeries, v: any[]): void;
|
|
574
|
-
protected _readObject(series: ISeries, v: any): void;
|
|
575
|
-
protected _readSingle(v: any): void;
|
|
576
|
-
}
|
|
577
|
-
declare class DataPointCollection {
|
|
578
|
-
protected _owner: ISeries;
|
|
579
|
-
private _points;
|
|
580
|
-
constructor(owner: ISeries);
|
|
581
|
-
get count(): number;
|
|
582
|
-
isEmpty(): boolean;
|
|
583
|
-
get(index: number): DataPoint;
|
|
584
|
-
pointAt(xValue: number): DataPoint;
|
|
585
|
-
contains(p: DataPoint): boolean;
|
|
586
|
-
load(source: any): void;
|
|
587
|
-
getProps(prop: string | number): any[];
|
|
588
|
-
getCategories(axis: string): any[];
|
|
589
|
-
getProxies(): any[];
|
|
590
|
-
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
591
|
-
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
592
|
-
}
|
|
593
|
-
|
|
594
593
|
declare abstract class Widget extends ChartItem {
|
|
595
594
|
protected _doLoad(source: any): void;
|
|
596
595
|
protected _doPrepareRender(chart: IChart): void;
|
|
@@ -614,8 +613,10 @@ declare class Tooltip extends ChartItem {
|
|
|
614
613
|
minWidth: number;
|
|
615
614
|
minHeight: number;
|
|
616
615
|
followPointer: boolean;
|
|
617
|
-
numberFormat:
|
|
616
|
+
numberFormat: string;
|
|
617
|
+
timeFormat: string;
|
|
618
618
|
getValue(series: Series, point: DataPoint, param: string, format: string): string;
|
|
619
|
+
protected _doLoadSimple(source: any): boolean;
|
|
619
620
|
}
|
|
620
621
|
|
|
621
622
|
declare enum PointItemPosition {
|
|
@@ -968,62 +969,64 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
968
969
|
private $_collectFill;
|
|
969
970
|
}
|
|
970
971
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
BOTH = "both"
|
|
976
|
-
}
|
|
977
|
-
declare class ZoomButton extends ChartItem {
|
|
978
|
-
body: Body;
|
|
979
|
-
constructor(body: Body);
|
|
980
|
-
isVisible(): boolean;
|
|
972
|
+
interface IPointPos {
|
|
973
|
+
xPos: number;
|
|
974
|
+
yPos: number;
|
|
975
|
+
isNull: boolean;
|
|
981
976
|
}
|
|
982
|
-
declare class
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
977
|
+
declare class DataPoint {
|
|
978
|
+
static swap(pts: IPointPos[]): IPointPos[];
|
|
979
|
+
index: number;
|
|
980
|
+
vindex: number;
|
|
981
|
+
x: any;
|
|
982
|
+
y: any;
|
|
983
|
+
series: string | number;
|
|
984
|
+
readonly pid: number;
|
|
985
|
+
source: any;
|
|
986
|
+
isNull: boolean;
|
|
987
|
+
xValue: number;
|
|
988
|
+
yValue: number;
|
|
989
|
+
yRate: number;
|
|
990
|
+
visible: boolean;
|
|
991
|
+
color: string;
|
|
992
|
+
xPos: number;
|
|
993
|
+
yPos: number;
|
|
994
|
+
yGroup: number;
|
|
995
|
+
drillDown: any[] | object;
|
|
996
|
+
range: IValueRange;
|
|
997
|
+
zValue: number;
|
|
998
|
+
label: any;
|
|
999
|
+
constructor(source: any);
|
|
1000
|
+
get yAbs(): number;
|
|
1001
|
+
get xAbs(): number;
|
|
1002
|
+
ariaHint(): string;
|
|
1003
|
+
labelCount(): number;
|
|
1004
|
+
assignTo(proxy?: any): any;
|
|
1005
|
+
getProp(fld: string | number): any;
|
|
1006
|
+
parse(series: ISeries): void;
|
|
1007
|
+
getLabel(index: number): any;
|
|
1008
|
+
getValueOf: (traget: any, param: string) => any;
|
|
1009
|
+
swap(): void;
|
|
1010
|
+
protected _assignTo(proxy: any): any;
|
|
1011
|
+
protected _readArray(series: ISeries, v: any[]): void;
|
|
1012
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
1013
|
+
protected _readSingle(v: any): void;
|
|
986
1014
|
}
|
|
987
|
-
declare class
|
|
988
|
-
|
|
989
|
-
private
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
get centerX(): RtPercentSize;
|
|
1003
|
-
set centerX(value: RtPercentSize);
|
|
1004
|
-
get centerY(): RtPercentSize;
|
|
1005
|
-
set centerY(value: RtPercentSize);
|
|
1006
|
-
startAngle: number;
|
|
1007
|
-
circular: boolean;
|
|
1008
|
-
image: BackgroundImage;
|
|
1009
|
-
zoomType: ZoomType;
|
|
1010
|
-
zoomButton: ZoomButton;
|
|
1011
|
-
canZoom(): boolean;
|
|
1012
|
-
calcRadius(width: number, height: number): number;
|
|
1013
|
-
setPolar(width: number, height: number): Body;
|
|
1014
|
-
getStartAngle(): number;
|
|
1015
|
-
getPolar(series: Series): {
|
|
1016
|
-
start: number;
|
|
1017
|
-
cx: number;
|
|
1018
|
-
cy: number;
|
|
1019
|
-
rd: number;
|
|
1020
|
-
};
|
|
1021
|
-
isZoomed(): boolean;
|
|
1022
|
-
'@config annotation': Annotation[];
|
|
1023
|
-
getAnnotations(): Annotation[];
|
|
1024
|
-
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1025
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
1026
|
-
private $_loadAnnotations;
|
|
1015
|
+
declare class DataPointCollection {
|
|
1016
|
+
protected _owner: ISeries;
|
|
1017
|
+
private _points;
|
|
1018
|
+
constructor(owner: ISeries);
|
|
1019
|
+
get count(): number;
|
|
1020
|
+
isEmpty(): boolean;
|
|
1021
|
+
get(index: number): DataPoint;
|
|
1022
|
+
pointAt(xValue: number): DataPoint;
|
|
1023
|
+
contains(p: DataPoint): boolean;
|
|
1024
|
+
load(source: any): void;
|
|
1025
|
+
getProps(prop: string | number): any[];
|
|
1026
|
+
getCategories(axis: string): any[];
|
|
1027
|
+
getProxies(): any[];
|
|
1028
|
+
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
1029
|
+
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
1027
1030
|
}
|
|
1028
1031
|
|
|
1029
1032
|
declare enum PaletteMode {
|
|
@@ -1219,7 +1222,6 @@ declare class GaugeRangeBand extends ChartItem {
|
|
|
1219
1222
|
itemGap: number;
|
|
1220
1223
|
get ranges(): IValueRange[];
|
|
1221
1224
|
set ranges(value: IValueRange[]);
|
|
1222
|
-
rangeInclusive: boolean;
|
|
1223
1225
|
rangeLabel: RangeLabel;
|
|
1224
1226
|
tickLabel: ChartItem;
|
|
1225
1227
|
getThickness(domain: number): number;
|
|
@@ -1382,6 +1384,8 @@ interface IChart {
|
|
|
1382
1384
|
body: Body;
|
|
1383
1385
|
split: Split;
|
|
1384
1386
|
colors: string[];
|
|
1387
|
+
startOfWeek: number;
|
|
1388
|
+
timeOffset: number;
|
|
1385
1389
|
_createChart(config: any): IChart;
|
|
1386
1390
|
assignTemplates(target: any): any;
|
|
1387
1391
|
isGauge(): boolean;
|
|
@@ -1481,6 +1485,7 @@ interface IAxis {
|
|
|
1481
1485
|
getValueAt(length: number, pos: number): number;
|
|
1482
1486
|
getAxisValueAt(length: number, pos: number): any;
|
|
1483
1487
|
getUnitLength(length: number, value: number): number;
|
|
1488
|
+
value2Tooltip(value: number): any;
|
|
1484
1489
|
hasBreak(): boolean;
|
|
1485
1490
|
isBreak(pos: number): boolean;
|
|
1486
1491
|
}
|
|
@@ -1632,6 +1637,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1632
1637
|
_vlen: number;
|
|
1633
1638
|
_minPad: number;
|
|
1634
1639
|
_maxPad: number;
|
|
1640
|
+
_startAngle: number;
|
|
1635
1641
|
_values: number[];
|
|
1636
1642
|
protected _min: number;
|
|
1637
1643
|
protected _max: number;
|
|
@@ -1665,10 +1671,12 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1665
1671
|
abstract isContinuous(): boolean;
|
|
1666
1672
|
abstract getValueAt(length: number, pos: number): number;
|
|
1667
1673
|
getAxisValueAt(length: number, pos: number): any;
|
|
1674
|
+
startAngle(): number;
|
|
1668
1675
|
protected abstract _createTickModel(): AxisTick;
|
|
1669
1676
|
protected abstract _createLabelModel(): AxisLabel;
|
|
1670
1677
|
protected abstract _doPrepareRender(): void;
|
|
1671
1678
|
protected abstract _doBuildTicks(min: number, max: number, length: number): IAxisTick[];
|
|
1679
|
+
value2Tooltip(value: number): any;
|
|
1672
1680
|
isBased(): boolean;
|
|
1673
1681
|
disconnect(): void;
|
|
1674
1682
|
collectValues(): void;
|
|
@@ -1689,6 +1697,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1689
1697
|
isBreak(pos: number): boolean;
|
|
1690
1698
|
getTickLabelArgs(index: number, value: any): IAxisLabelArgs;
|
|
1691
1699
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1700
|
+
protected _getStartAngle(start: number): number;
|
|
1692
1701
|
protected _createGrid(): AxisGrid;
|
|
1693
1702
|
private $_loadGuides;
|
|
1694
1703
|
_connect(series: IPlottingItem): void;
|