realchart 0.9.11 → 0.9.13
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 +44 -7
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +93 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -242,6 +242,7 @@ declare class RcElement extends RcObject {
|
|
|
242
242
|
setAttrs(attrs: any): RcElement;
|
|
243
243
|
setAttrsEx(attrs: any): RcElement;
|
|
244
244
|
unsetAttr(attr: string): RcElement;
|
|
245
|
+
getBounds(): DOMRect;
|
|
245
246
|
setBounds(x: number, y: number, width: number, height: number): RcElement;
|
|
246
247
|
setRect(rect: IRect): RcElement;
|
|
247
248
|
getRect(): IRect;
|
|
@@ -793,6 +794,7 @@ declare class PlottingItemCollection {
|
|
|
793
794
|
isWidget(): boolean;
|
|
794
795
|
isEmpty(): boolean;
|
|
795
796
|
items(): IPlottingItem[];
|
|
797
|
+
internalItems(): IPlottingItem[];
|
|
796
798
|
visibles(): IPlottingItem[];
|
|
797
799
|
series(): Series[];
|
|
798
800
|
needAxes(): boolean;
|
|
@@ -856,6 +858,12 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
856
858
|
private $_collectFill;
|
|
857
859
|
}
|
|
858
860
|
|
|
861
|
+
declare enum PaletteMode {
|
|
862
|
+
NORMAL = "normal",
|
|
863
|
+
MIXED = "mixed",
|
|
864
|
+
RANDOM = "random"
|
|
865
|
+
}
|
|
866
|
+
|
|
859
867
|
declare class Title extends ChartItem {
|
|
860
868
|
text: string;
|
|
861
869
|
alignBase: AlignBase;
|
|
@@ -984,8 +992,10 @@ declare abstract class GaugeScale extends ChartItem {
|
|
|
984
992
|
get gap(): number;
|
|
985
993
|
set gap(value: number);
|
|
986
994
|
range(): IMinMax;
|
|
995
|
+
isEmpty(): boolean;
|
|
987
996
|
buildSteps(length: number, value: number, target?: number): number[];
|
|
988
997
|
buildGroupSteps(length: number, values: number[]): number[];
|
|
998
|
+
getRate(value: number): number;
|
|
989
999
|
protected _adjustMinMax(min: number, max: number): {
|
|
990
1000
|
min: number;
|
|
991
1001
|
max: number;
|
|
@@ -1090,7 +1100,6 @@ declare abstract class CircularGauge extends ValueGauge {
|
|
|
1090
1100
|
props: CircularProps;
|
|
1091
1101
|
childProps: CircularProps;
|
|
1092
1102
|
constructor(chart: IChart);
|
|
1093
|
-
maxValue: number;
|
|
1094
1103
|
get centerX(): RtPercentSize;
|
|
1095
1104
|
set centerX(value: RtPercentSize);
|
|
1096
1105
|
get centerY(): RtPercentSize;
|
|
@@ -1120,10 +1129,9 @@ declare abstract class CircularGauge extends ValueGauge {
|
|
|
1120
1129
|
interface IChart {
|
|
1121
1130
|
type: string;
|
|
1122
1131
|
gaugeType: string;
|
|
1123
|
-
xStart: number;
|
|
1124
|
-
xStep: number;
|
|
1125
1132
|
_splitted: boolean;
|
|
1126
1133
|
_splits: number[];
|
|
1134
|
+
options: ChartOptions;
|
|
1127
1135
|
first: IPlottingItem;
|
|
1128
1136
|
firstSeries: Series;
|
|
1129
1137
|
xAxis: IAxis;
|
|
@@ -1158,6 +1166,25 @@ interface IChart {
|
|
|
1158
1166
|
prepareRender(): void;
|
|
1159
1167
|
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1160
1168
|
}
|
|
1169
|
+
declare class Credits extends ChartItem {
|
|
1170
|
+
text: string;
|
|
1171
|
+
url: string;
|
|
1172
|
+
floating: boolean;
|
|
1173
|
+
align: Align;
|
|
1174
|
+
verticalAlign: VerticalAlign;
|
|
1175
|
+
offsetX: number;
|
|
1176
|
+
offsetY: number;
|
|
1177
|
+
}
|
|
1178
|
+
declare class ChartOptions extends ChartItem {
|
|
1179
|
+
theme: string;
|
|
1180
|
+
palette: string;
|
|
1181
|
+
paletteMode: PaletteMode;
|
|
1182
|
+
animatable: boolean;
|
|
1183
|
+
xStart: any;
|
|
1184
|
+
xStep: number | string;
|
|
1185
|
+
axisGap: number;
|
|
1186
|
+
credits: Credits;
|
|
1187
|
+
}
|
|
1161
1188
|
|
|
1162
1189
|
declare enum CrosshairType {
|
|
1163
1190
|
AUTO = "auto",
|
|
@@ -1206,6 +1233,8 @@ interface IAxis {
|
|
|
1206
1233
|
getPosition(length: number, value: number, point?: boolean): number;
|
|
1207
1234
|
getValueAt(length: number, pos: number): number;
|
|
1208
1235
|
getUnitLength(length: number, value: number): number;
|
|
1236
|
+
hasBreak(): boolean;
|
|
1237
|
+
isBreak(pos: number): boolean;
|
|
1209
1238
|
}
|
|
1210
1239
|
declare abstract class AxisItem extends ChartItem {
|
|
1211
1240
|
readonly axis: Axis;
|
|
@@ -1319,11 +1348,14 @@ declare class AxisZoom {
|
|
|
1319
1348
|
resize(start: number, end: number): boolean;
|
|
1320
1349
|
}
|
|
1321
1350
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
1322
|
-
|
|
1351
|
+
_index: number;
|
|
1352
|
+
_row: number;
|
|
1353
|
+
_col: number;
|
|
1323
1354
|
_isX: boolean;
|
|
1324
1355
|
_isHorz: boolean;
|
|
1325
1356
|
_isOpposite: boolean;
|
|
1326
1357
|
_isBetween: boolean;
|
|
1358
|
+
_isPolar: boolean;
|
|
1327
1359
|
protected _series: IPlottingItem[];
|
|
1328
1360
|
_range: {
|
|
1329
1361
|
min: number;
|
|
@@ -1349,6 +1381,8 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1349
1381
|
readonly guides: AxisGuide[];
|
|
1350
1382
|
readonly crosshair: Crosshair;
|
|
1351
1383
|
readonly scrollBar: AxisScrollBar;
|
|
1384
|
+
row: number;
|
|
1385
|
+
col: number;
|
|
1352
1386
|
side: boolean;
|
|
1353
1387
|
position: AxisPosition;
|
|
1354
1388
|
reversed: boolean;
|
|
@@ -1384,6 +1418,8 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1384
1418
|
resetZoom(): void;
|
|
1385
1419
|
zoom(start: number, end: number): boolean;
|
|
1386
1420
|
isZoomed(): boolean;
|
|
1421
|
+
hasBreak(): boolean;
|
|
1422
|
+
isBreak(pos: number): boolean;
|
|
1387
1423
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1388
1424
|
protected _createGrid(): AxisGrid;
|
|
1389
1425
|
private $_loadGuides;
|
|
@@ -1396,12 +1432,15 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1396
1432
|
declare class AxisCollection {
|
|
1397
1433
|
readonly chart: IChart;
|
|
1398
1434
|
readonly isX: boolean;
|
|
1435
|
+
readonly row: number;
|
|
1436
|
+
readonly col: number;
|
|
1399
1437
|
protected _items: Axis[];
|
|
1400
1438
|
private _map;
|
|
1401
|
-
constructor(chart: IChart, isX: boolean);
|
|
1439
|
+
constructor(chart: IChart, isX: boolean, row: number, col: number);
|
|
1402
1440
|
get count(): number;
|
|
1403
1441
|
get first(): Axis;
|
|
1404
1442
|
get items(): Axis[];
|
|
1443
|
+
internalItems(): Axis[];
|
|
1405
1444
|
load(src: any): void;
|
|
1406
1445
|
contains(axis: Axis): boolean;
|
|
1407
1446
|
get(name: string | number): Axis;
|
|
@@ -1484,7 +1523,6 @@ declare class CircleGaugeScale extends GaugeScale {
|
|
|
1484
1523
|
protected _getStepMultiples(step: number): number[];
|
|
1485
1524
|
}
|
|
1486
1525
|
declare class CircleGauge extends CircularGauge {
|
|
1487
|
-
constructor(chart: IChart);
|
|
1488
1526
|
band: GaugeRangeBand;
|
|
1489
1527
|
scale: CircleGaugeScale;
|
|
1490
1528
|
rim: CircleGaugeRim;
|
|
@@ -1702,7 +1740,6 @@ declare class RcChartControl {
|
|
|
1702
1740
|
get type(): string;
|
|
1703
1741
|
get gaugeType(): string;
|
|
1704
1742
|
get inverted(): boolean;
|
|
1705
|
-
set inverted(value: boolean);
|
|
1706
1743
|
get polar(): boolean;
|
|
1707
1744
|
scroll(axis: RcChartAxis, pos: number): void;
|
|
1708
1745
|
}
|