realchart 0.9.30 → 0.9.31
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 +33 -18
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +8 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ interface ISides {
|
|
|
127
127
|
}
|
|
128
128
|
declare enum AlignBase {
|
|
129
129
|
CHART = "chart",
|
|
130
|
-
|
|
130
|
+
BODY = "body",
|
|
131
131
|
PARENT = "parent"
|
|
132
132
|
}
|
|
133
133
|
interface IValueRange {
|
|
@@ -1142,6 +1142,9 @@ declare class PlottingItemCollection {
|
|
|
1142
1142
|
seriesByPoint(point: DataPoint): Series;
|
|
1143
1143
|
getLegendSources(): ILegendSource[];
|
|
1144
1144
|
load(src: any): void;
|
|
1145
|
+
private $_add;
|
|
1146
|
+
add(source: any): Series;
|
|
1147
|
+
remove(series: string | Series): Series;
|
|
1145
1148
|
updateData(values: any[]): void;
|
|
1146
1149
|
prepareRender(): void;
|
|
1147
1150
|
prepareAfter(): void;
|
|
@@ -1209,6 +1212,7 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
1209
1212
|
canMaxPadding(axis: IAxis, max: number): boolean;
|
|
1210
1213
|
getVisPoints(p: DataPoint): DataPoint[];
|
|
1211
1214
|
seriesChanged(): boolean;
|
|
1215
|
+
remove(series: T): boolean;
|
|
1212
1216
|
getVisiblePoints(): DataPoint[];
|
|
1213
1217
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1214
1218
|
prepareRender(): void;
|
|
@@ -1242,6 +1246,7 @@ declare abstract class Annotation extends ChartItem {
|
|
|
1242
1246
|
scope: AnnotationScope;
|
|
1243
1247
|
series: string;
|
|
1244
1248
|
loadAnimation: IAnnotationAnimation;
|
|
1249
|
+
backgroundStyle: SVGStyleOrClass;
|
|
1245
1250
|
getPosition(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
1246
1251
|
update(): void;
|
|
1247
1252
|
protected _doPrepareRender(chart: IChart): void;
|
|
@@ -1309,10 +1314,10 @@ declare class Body extends ChartItem {
|
|
|
1309
1314
|
|
|
1310
1315
|
declare class Title extends ChartItem {
|
|
1311
1316
|
constructor(chart: IChart);
|
|
1312
|
-
verticalAlign: VerticalAlign;
|
|
1313
1317
|
text: string;
|
|
1314
1318
|
alignBase: AlignBase;
|
|
1315
1319
|
align: Align;
|
|
1320
|
+
verticalAlign: VerticalAlign;
|
|
1316
1321
|
backgroundStyle: SVGStyleOrClass;
|
|
1317
1322
|
gap: number;
|
|
1318
1323
|
isVisible(): boolean;
|
|
@@ -1325,8 +1330,8 @@ declare enum SubtitlePosition {
|
|
|
1325
1330
|
TOP = "top"
|
|
1326
1331
|
}
|
|
1327
1332
|
declare class Subtitle extends Title {
|
|
1328
|
-
position: SubtitlePosition;
|
|
1329
1333
|
verticalAlign: VerticalAlign;
|
|
1334
|
+
position: SubtitlePosition;
|
|
1330
1335
|
text: string;
|
|
1331
1336
|
titleGap: number;
|
|
1332
1337
|
}
|
|
@@ -1504,7 +1509,7 @@ interface IChart {
|
|
|
1504
1509
|
_xPaneAxes: PaneXAxisMatrix;
|
|
1505
1510
|
_yPaneAxes: PaneYAxisMatrix;
|
|
1506
1511
|
options: ChartOptions;
|
|
1507
|
-
|
|
1512
|
+
exportOptions: IExportOptions;
|
|
1508
1513
|
first: IPlottingItem;
|
|
1509
1514
|
firstSeries: Series;
|
|
1510
1515
|
xAxis: IAxis;
|
|
@@ -1574,17 +1579,21 @@ declare class ChartOptions extends ChartItem {
|
|
|
1574
1579
|
}
|
|
1575
1580
|
declare enum ExportType {
|
|
1576
1581
|
PNG = "png",
|
|
1577
|
-
JPEG = "jpeg"
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1582
|
+
JPEG = "jpeg",
|
|
1583
|
+
SVG = "svg",
|
|
1584
|
+
PDF = "pdf",
|
|
1585
|
+
PRINT = "print"
|
|
1586
|
+
}
|
|
1587
|
+
interface IExportOptions {
|
|
1588
|
+
visible?: boolean;
|
|
1589
|
+
menus?: ExportType[];
|
|
1590
|
+
fileName?: string;
|
|
1591
|
+
width?: number;
|
|
1592
|
+
scale?: number;
|
|
1593
|
+
url?: string;
|
|
1594
|
+
hideScrollbar?: boolean;
|
|
1595
|
+
hideNavigator?: boolean;
|
|
1596
|
+
hideZoomButton?: boolean;
|
|
1588
1597
|
}
|
|
1589
1598
|
|
|
1590
1599
|
declare enum CrosshairType {
|
|
@@ -1645,6 +1654,7 @@ interface IAxis {
|
|
|
1645
1654
|
getPos(length: number, value: number): number;
|
|
1646
1655
|
valueAt(length: number, pos: number): number;
|
|
1647
1656
|
axisValueAt(length: number, pos: number): any;
|
|
1657
|
+
xValueAt(pos: number): number;
|
|
1648
1658
|
getUnitLen(length: number, value: number): number;
|
|
1649
1659
|
value2Tooltip(value: number): any;
|
|
1650
1660
|
hasBreak(): boolean;
|
|
@@ -1802,6 +1812,8 @@ declare class AxisZoom {
|
|
|
1802
1812
|
isFull(): boolean;
|
|
1803
1813
|
resize(start: number, end: number, minSize: number): boolean;
|
|
1804
1814
|
}
|
|
1815
|
+
declare class AxisSectorLine extends AxisLine {
|
|
1816
|
+
}
|
|
1805
1817
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
1806
1818
|
_index: number;
|
|
1807
1819
|
_row: number;
|
|
@@ -1836,8 +1848,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1836
1848
|
readonly name: string;
|
|
1837
1849
|
readonly title: AxisTitle;
|
|
1838
1850
|
readonly line: AxisLine;
|
|
1839
|
-
readonly sectorLine:
|
|
1840
|
-
readonly baseLine: AxisLine;
|
|
1851
|
+
readonly sectorLine: AxisSectorLine;
|
|
1841
1852
|
readonly tick: AxisTick;
|
|
1842
1853
|
readonly label: AxisLabel;
|
|
1843
1854
|
readonly grid: AxisGrid;
|
|
@@ -1903,6 +1914,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1903
1914
|
getXValue(value: number): any;
|
|
1904
1915
|
setPrevRate(rate: number): void;
|
|
1905
1916
|
prev(len: number): number;
|
|
1917
|
+
abstract xValueAt(pos: number): number;
|
|
1906
1918
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1907
1919
|
protected _setMinMax(min: number, max: number): void;
|
|
1908
1920
|
protected abstract _createGrid(): AxisGrid;
|
|
@@ -2051,6 +2063,7 @@ declare class RcChartControl {
|
|
|
2051
2063
|
private $_p;
|
|
2052
2064
|
private _objects;
|
|
2053
2065
|
private _proxy;
|
|
2066
|
+
private _exporter;
|
|
2054
2067
|
private constructor();
|
|
2055
2068
|
load(config: any, animate?: boolean): void;
|
|
2056
2069
|
render(now?: boolean): void;
|
|
@@ -2073,6 +2086,8 @@ declare class RcChartControl {
|
|
|
2073
2086
|
get polar(): boolean;
|
|
2074
2087
|
scroll(axis: RcChartAxis, pos: number): void;
|
|
2075
2088
|
setParam(param: string, value: any, redraw?: boolean): void;
|
|
2089
|
+
addSeries(source: any, animate?: boolean): RcChartSeries | undefined;
|
|
2090
|
+
removeSeries(series: string | RcChartSeries, animate?: boolean): RcChartSeries | undefined;
|
|
2076
2091
|
}
|
|
2077
2092
|
|
|
2078
2093
|
declare class RcChartData {
|
|
@@ -2124,4 +2139,4 @@ declare const setAnimatable: typeof Globals.setAnimatable;
|
|
|
2124
2139
|
declare const createChart: typeof Globals.createChart;
|
|
2125
2140
|
declare const createData: typeof Globals.createData;
|
|
2126
2141
|
|
|
2127
|
-
export { RcAnnotation, RcBody, RcChartAxis, RcChartControl, RcChartData, RcChartGauge, RcChartObject, RcChartSeries, RcGaugeGroup, RcLegend, RcSeriesGroup, RcSubtitle, RcTitle, createChart, createData, getVersion, setAnimatable, setDebugging, setLogging };
|
|
2142
|
+
export { RcAnnotation, RcBody, RcChartAxis, RcChartControl, RcChartData, RcChartGauge, RcChartObject, RcChartSeries, RcGaugeGroup, RcLegend, RcNamedObject, RcSeriesGroup, RcSubtitle, RcTitle, createChart, createData, getVersion, setAnimatable, setDebugging, setLogging };
|