realchart 0.9.12 → 0.9.14
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 +46 -6
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +113 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -125,6 +125,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
125
125
|
height(): number;
|
|
126
126
|
setData(data: string, value: any, container?: boolean): void;
|
|
127
127
|
clearDefs(): void;
|
|
128
|
+
private $_clearDefs;
|
|
129
|
+
clearAssetDefs(): void;
|
|
128
130
|
clearTemporaryDefs(): void;
|
|
129
131
|
appendDom(elt: HTMLElement): void;
|
|
130
132
|
addElement(elt: RcElement): void;
|
|
@@ -182,6 +184,7 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
182
184
|
declare class RcElement extends RcObject {
|
|
183
185
|
static TESTING: boolean;
|
|
184
186
|
static DEBUGGING: boolean;
|
|
187
|
+
static ASSET_KEY: string;
|
|
185
188
|
static TEMP_KEY: string;
|
|
186
189
|
private _visible;
|
|
187
190
|
private _x;
|
|
@@ -242,6 +245,7 @@ declare class RcElement extends RcObject {
|
|
|
242
245
|
setAttrs(attrs: any): RcElement;
|
|
243
246
|
setAttrsEx(attrs: any): RcElement;
|
|
244
247
|
unsetAttr(attr: string): RcElement;
|
|
248
|
+
getBounds(): DOMRect;
|
|
245
249
|
setBounds(x: number, y: number, width: number, height: number): RcElement;
|
|
246
250
|
setRect(rect: IRect): RcElement;
|
|
247
251
|
getRect(): IRect;
|
|
@@ -337,6 +341,7 @@ declare enum TextOverflow {
|
|
|
337
341
|
ELLIPSIS = "ellipsis"
|
|
338
342
|
}
|
|
339
343
|
declare class TextElement extends RcElement {
|
|
344
|
+
static createCenter(doc: Document): TextElement;
|
|
340
345
|
private _layout;
|
|
341
346
|
private _overflow;
|
|
342
347
|
private _dirty;
|
|
@@ -509,7 +514,6 @@ declare class DataPoint {
|
|
|
509
514
|
getValueOf: (traget: any, param: string) => any;
|
|
510
515
|
swap(): void;
|
|
511
516
|
protected _assignTo(proxy: any): any;
|
|
512
|
-
protected _colorIndex(): number;
|
|
513
517
|
protected _readArray(series: ISeries, v: any[]): void;
|
|
514
518
|
protected _readObject(series: ISeries, v: any): void;
|
|
515
519
|
protected _readSingle(v: any): void;
|
|
@@ -793,6 +797,7 @@ declare class PlottingItemCollection {
|
|
|
793
797
|
isWidget(): boolean;
|
|
794
798
|
isEmpty(): boolean;
|
|
795
799
|
items(): IPlottingItem[];
|
|
800
|
+
internalItems(): IPlottingItem[];
|
|
796
801
|
visibles(): IPlottingItem[];
|
|
797
802
|
series(): Series[];
|
|
798
803
|
needAxes(): boolean;
|
|
@@ -856,6 +861,12 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
856
861
|
private $_collectFill;
|
|
857
862
|
}
|
|
858
863
|
|
|
864
|
+
declare enum PaletteMode {
|
|
865
|
+
NORMAL = "normal",
|
|
866
|
+
MIXED = "mixed",
|
|
867
|
+
RANDOM = "random"
|
|
868
|
+
}
|
|
869
|
+
|
|
859
870
|
declare class Title extends ChartItem {
|
|
860
871
|
text: string;
|
|
861
872
|
alignBase: AlignBase;
|
|
@@ -1121,10 +1132,9 @@ declare abstract class CircularGauge extends ValueGauge {
|
|
|
1121
1132
|
interface IChart {
|
|
1122
1133
|
type: string;
|
|
1123
1134
|
gaugeType: string;
|
|
1124
|
-
xStart: number;
|
|
1125
|
-
xStep: number;
|
|
1126
1135
|
_splitted: boolean;
|
|
1127
1136
|
_splits: number[];
|
|
1137
|
+
options: ChartOptions;
|
|
1128
1138
|
first: IPlottingItem;
|
|
1129
1139
|
firstSeries: Series;
|
|
1130
1140
|
xAxis: IAxis;
|
|
@@ -1159,6 +1169,25 @@ interface IChart {
|
|
|
1159
1169
|
prepareRender(): void;
|
|
1160
1170
|
layoutAxes(width: number, height: number, inverted: boolean, phase: number): void;
|
|
1161
1171
|
}
|
|
1172
|
+
declare class Credits extends ChartItem {
|
|
1173
|
+
text: string;
|
|
1174
|
+
url: string;
|
|
1175
|
+
floating: boolean;
|
|
1176
|
+
align: Align;
|
|
1177
|
+
verticalAlign: VerticalAlign;
|
|
1178
|
+
offsetX: number;
|
|
1179
|
+
offsetY: number;
|
|
1180
|
+
}
|
|
1181
|
+
declare class ChartOptions extends ChartItem {
|
|
1182
|
+
theme: string;
|
|
1183
|
+
palette: string;
|
|
1184
|
+
paletteMode: PaletteMode;
|
|
1185
|
+
animatable: boolean;
|
|
1186
|
+
xStart: any;
|
|
1187
|
+
xStep: number | string;
|
|
1188
|
+
axisGap: number;
|
|
1189
|
+
credits: Credits;
|
|
1190
|
+
}
|
|
1162
1191
|
|
|
1163
1192
|
declare enum CrosshairType {
|
|
1164
1193
|
AUTO = "auto",
|
|
@@ -1207,6 +1236,8 @@ interface IAxis {
|
|
|
1207
1236
|
getPosition(length: number, value: number, point?: boolean): number;
|
|
1208
1237
|
getValueAt(length: number, pos: number): number;
|
|
1209
1238
|
getUnitLength(length: number, value: number): number;
|
|
1239
|
+
hasBreak(): boolean;
|
|
1240
|
+
isBreak(pos: number): boolean;
|
|
1210
1241
|
}
|
|
1211
1242
|
declare abstract class AxisItem extends ChartItem {
|
|
1212
1243
|
readonly axis: Axis;
|
|
@@ -1320,11 +1351,14 @@ declare class AxisZoom {
|
|
|
1320
1351
|
resize(start: number, end: number): boolean;
|
|
1321
1352
|
}
|
|
1322
1353
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
1323
|
-
|
|
1354
|
+
_index: number;
|
|
1355
|
+
_row: number;
|
|
1356
|
+
_col: number;
|
|
1324
1357
|
_isX: boolean;
|
|
1325
1358
|
_isHorz: boolean;
|
|
1326
1359
|
_isOpposite: boolean;
|
|
1327
1360
|
_isBetween: boolean;
|
|
1361
|
+
_isPolar: boolean;
|
|
1328
1362
|
protected _series: IPlottingItem[];
|
|
1329
1363
|
_range: {
|
|
1330
1364
|
min: number;
|
|
@@ -1350,6 +1384,8 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1350
1384
|
readonly guides: AxisGuide[];
|
|
1351
1385
|
readonly crosshair: Crosshair;
|
|
1352
1386
|
readonly scrollBar: AxisScrollBar;
|
|
1387
|
+
row: number;
|
|
1388
|
+
col: number;
|
|
1353
1389
|
side: boolean;
|
|
1354
1390
|
position: AxisPosition;
|
|
1355
1391
|
reversed: boolean;
|
|
@@ -1385,6 +1421,8 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1385
1421
|
resetZoom(): void;
|
|
1386
1422
|
zoom(start: number, end: number): boolean;
|
|
1387
1423
|
isZoomed(): boolean;
|
|
1424
|
+
hasBreak(): boolean;
|
|
1425
|
+
isBreak(pos: number): boolean;
|
|
1388
1426
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1389
1427
|
protected _createGrid(): AxisGrid;
|
|
1390
1428
|
private $_loadGuides;
|
|
@@ -1397,12 +1435,15 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1397
1435
|
declare class AxisCollection {
|
|
1398
1436
|
readonly chart: IChart;
|
|
1399
1437
|
readonly isX: boolean;
|
|
1438
|
+
readonly row: number;
|
|
1439
|
+
readonly col: number;
|
|
1400
1440
|
protected _items: Axis[];
|
|
1401
1441
|
private _map;
|
|
1402
|
-
constructor(chart: IChart, isX: boolean);
|
|
1442
|
+
constructor(chart: IChart, isX: boolean, row: number, col: number);
|
|
1403
1443
|
get count(): number;
|
|
1404
1444
|
get first(): Axis;
|
|
1405
1445
|
get items(): Axis[];
|
|
1446
|
+
internalItems(): Axis[];
|
|
1406
1447
|
load(src: any): void;
|
|
1407
1448
|
contains(axis: Axis): boolean;
|
|
1408
1449
|
get(name: string | number): Axis;
|
|
@@ -1702,7 +1743,6 @@ declare class RcChartControl {
|
|
|
1702
1743
|
get type(): string;
|
|
1703
1744
|
get gaugeType(): string;
|
|
1704
1745
|
get inverted(): boolean;
|
|
1705
|
-
set inverted(value: boolean);
|
|
1706
1746
|
get polar(): boolean;
|
|
1707
1747
|
scroll(axis: RcChartAxis, pos: number): void;
|
|
1708
1748
|
}
|