realchart 0.9.12 → 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 +42 -5
- 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;
|
|
@@ -1121,10 +1129,9 @@ declare abstract class CircularGauge extends ValueGauge {
|
|
|
1121
1129
|
interface IChart {
|
|
1122
1130
|
type: string;
|
|
1123
1131
|
gaugeType: string;
|
|
1124
|
-
xStart: number;
|
|
1125
|
-
xStep: number;
|
|
1126
1132
|
_splitted: boolean;
|
|
1127
1133
|
_splits: number[];
|
|
1134
|
+
options: ChartOptions;
|
|
1128
1135
|
first: IPlottingItem;
|
|
1129
1136
|
firstSeries: Series;
|
|
1130
1137
|
xAxis: IAxis;
|
|
@@ -1159,6 +1166,25 @@ interface IChart {
|
|
|
1159
1166
|
prepareRender(): void;
|
|
1160
1167
|
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1161
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
|
+
}
|
|
1162
1188
|
|
|
1163
1189
|
declare enum CrosshairType {
|
|
1164
1190
|
AUTO = "auto",
|
|
@@ -1207,6 +1233,8 @@ interface IAxis {
|
|
|
1207
1233
|
getPosition(length: number, value: number, point?: boolean): number;
|
|
1208
1234
|
getValueAt(length: number, pos: number): number;
|
|
1209
1235
|
getUnitLength(length: number, value: number): number;
|
|
1236
|
+
hasBreak(): boolean;
|
|
1237
|
+
isBreak(pos: number): boolean;
|
|
1210
1238
|
}
|
|
1211
1239
|
declare abstract class AxisItem extends ChartItem {
|
|
1212
1240
|
readonly axis: Axis;
|
|
@@ -1320,11 +1348,14 @@ declare class AxisZoom {
|
|
|
1320
1348
|
resize(start: number, end: number): boolean;
|
|
1321
1349
|
}
|
|
1322
1350
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
1323
|
-
|
|
1351
|
+
_index: number;
|
|
1352
|
+
_row: number;
|
|
1353
|
+
_col: number;
|
|
1324
1354
|
_isX: boolean;
|
|
1325
1355
|
_isHorz: boolean;
|
|
1326
1356
|
_isOpposite: boolean;
|
|
1327
1357
|
_isBetween: boolean;
|
|
1358
|
+
_isPolar: boolean;
|
|
1328
1359
|
protected _series: IPlottingItem[];
|
|
1329
1360
|
_range: {
|
|
1330
1361
|
min: number;
|
|
@@ -1350,6 +1381,8 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1350
1381
|
readonly guides: AxisGuide[];
|
|
1351
1382
|
readonly crosshair: Crosshair;
|
|
1352
1383
|
readonly scrollBar: AxisScrollBar;
|
|
1384
|
+
row: number;
|
|
1385
|
+
col: number;
|
|
1353
1386
|
side: boolean;
|
|
1354
1387
|
position: AxisPosition;
|
|
1355
1388
|
reversed: boolean;
|
|
@@ -1385,6 +1418,8 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1385
1418
|
resetZoom(): void;
|
|
1386
1419
|
zoom(start: number, end: number): boolean;
|
|
1387
1420
|
isZoomed(): boolean;
|
|
1421
|
+
hasBreak(): boolean;
|
|
1422
|
+
isBreak(pos: number): boolean;
|
|
1388
1423
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1389
1424
|
protected _createGrid(): AxisGrid;
|
|
1390
1425
|
private $_loadGuides;
|
|
@@ -1397,12 +1432,15 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1397
1432
|
declare class AxisCollection {
|
|
1398
1433
|
readonly chart: IChart;
|
|
1399
1434
|
readonly isX: boolean;
|
|
1435
|
+
readonly row: number;
|
|
1436
|
+
readonly col: number;
|
|
1400
1437
|
protected _items: Axis[];
|
|
1401
1438
|
private _map;
|
|
1402
|
-
constructor(chart: IChart, isX: boolean);
|
|
1439
|
+
constructor(chart: IChart, isX: boolean, row: number, col: number);
|
|
1403
1440
|
get count(): number;
|
|
1404
1441
|
get first(): Axis;
|
|
1405
1442
|
get items(): Axis[];
|
|
1443
|
+
internalItems(): Axis[];
|
|
1406
1444
|
load(src: any): void;
|
|
1407
1445
|
contains(axis: Axis): boolean;
|
|
1408
1446
|
get(name: string | number): Axis;
|
|
@@ -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
|
}
|