realchart 0.9.34 → 0.9.36
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 +16 -11
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ declare class Sides {
|
|
|
56
56
|
applyPadding(cs: CSSStyleDeclaration): Sides;
|
|
57
57
|
applyMargin(cs: CSSStyleDeclaration): Sides;
|
|
58
58
|
shrink(r: IRect): IRect;
|
|
59
|
-
toString(): string;
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
declare class TextFormatter {
|
|
@@ -889,9 +888,11 @@ declare class DataPointLabel extends IconedText {
|
|
|
889
888
|
textAlign: Align;
|
|
890
889
|
offset: number;
|
|
891
890
|
distance: number;
|
|
891
|
+
textField: string;
|
|
892
892
|
textCallback: (point: any) => string;
|
|
893
893
|
visibleCallback: (point: any) => boolean;
|
|
894
894
|
styleCallback: (point: any) => SVGStyleOrClass;
|
|
895
|
+
getValue(p: DataPoint, index: number): any;
|
|
895
896
|
getTextDomain(p: DataPoint): IRichTextDomain;
|
|
896
897
|
getText(value: any): string;
|
|
897
898
|
getOffset(): number;
|
|
@@ -915,7 +916,7 @@ interface IPlottingItem {
|
|
|
915
916
|
getVisiblePoints(): DataPoint[];
|
|
916
917
|
getLegendSources(list: ILegendSource[]): void;
|
|
917
918
|
needAxes(): boolean;
|
|
918
|
-
isEmpty(): boolean;
|
|
919
|
+
isEmpty(visibleOnly: any): boolean;
|
|
919
920
|
canCategorized(): boolean;
|
|
920
921
|
defaultYAxisType(): string;
|
|
921
922
|
clusterable(): boolean;
|
|
@@ -978,7 +979,7 @@ interface ISeries extends IPlottingItem {
|
|
|
978
979
|
_zFielder: (src: any) => any;
|
|
979
980
|
_colorFielder: (src: any) => any;
|
|
980
981
|
colorField: string | number;
|
|
981
|
-
color: string;
|
|
982
|
+
color: string | number;
|
|
982
983
|
displayName(): string;
|
|
983
984
|
initPoints(source: any[]): DataPoint[];
|
|
984
985
|
getPoints(): DataPointCollection;
|
|
@@ -1021,7 +1022,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
|
|
|
1021
1022
|
_yFielder: (src: any) => any;
|
|
1022
1023
|
_zFielder: (src: any) => any;
|
|
1023
1024
|
_colorFielder: (src: any) => any;
|
|
1024
|
-
|
|
1025
|
+
_dataSourceDirty: boolean;
|
|
1025
1026
|
_cdata: ChartData;
|
|
1026
1027
|
protected _points: DataPointCollection;
|
|
1027
1028
|
_runPoints: DataPoint[];
|
|
@@ -1036,6 +1037,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
|
|
|
1036
1037
|
_minZ: number;
|
|
1037
1038
|
_maxZ: number;
|
|
1038
1039
|
_referents: Series[];
|
|
1040
|
+
_runColor: string;
|
|
1039
1041
|
_calcedColor: string;
|
|
1040
1042
|
_simpleMode: boolean;
|
|
1041
1043
|
private _legendMarker;
|
|
@@ -1072,7 +1074,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
|
|
|
1072
1074
|
xStart: any;
|
|
1073
1075
|
xStep: number | string;
|
|
1074
1076
|
pointStyle: SVGStyleOrClass;
|
|
1075
|
-
color: string;
|
|
1077
|
+
color: string | number;
|
|
1076
1078
|
pointColors: string[] | string;
|
|
1077
1079
|
viewRanges: IValueRange[] | IValueRanges;
|
|
1078
1080
|
viewRangeValue: 'x' | 'y' | 'z';
|
|
@@ -1080,6 +1082,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
|
|
|
1080
1082
|
visibleInLegend: boolean;
|
|
1081
1083
|
visibleInNavigator: boolean;
|
|
1082
1084
|
tooltipText: string;
|
|
1085
|
+
tooltipCallback: (args: any) => string;
|
|
1083
1086
|
loadAnimation: SeriesLoadAnimation;
|
|
1084
1087
|
pointStyleCallback: PointStyleCallback;
|
|
1085
1088
|
onPointClick: PointClickCallback;
|
|
@@ -1181,7 +1184,7 @@ declare class PlottingItemCollection {
|
|
|
1181
1184
|
get firstVisible(): IPlottingItem;
|
|
1182
1185
|
get firstVisibleSeries(): Series;
|
|
1183
1186
|
isWidget(): boolean;
|
|
1184
|
-
isEmpty(): boolean;
|
|
1187
|
+
isEmpty(visibleOnly: boolean): boolean;
|
|
1185
1188
|
items(): IPlottingItem[];
|
|
1186
1189
|
internalItems(): IPlottingItem[];
|
|
1187
1190
|
visibles(): IPlottingItem[];
|
|
@@ -1300,7 +1303,7 @@ declare class DataPoint {
|
|
|
1300
1303
|
drillDown: any[] | object;
|
|
1301
1304
|
range: IValueRange;
|
|
1302
1305
|
zValue: number;
|
|
1303
|
-
|
|
1306
|
+
yLabel: any;
|
|
1304
1307
|
ani: RcAnimation;
|
|
1305
1308
|
yPrev: number;
|
|
1306
1309
|
yNew: number;
|
|
@@ -1312,7 +1315,7 @@ declare class DataPoint {
|
|
|
1312
1315
|
assignTo(proxy?: any): any;
|
|
1313
1316
|
getProp(fld: string | number): any;
|
|
1314
1317
|
parse(series: ISeries): void;
|
|
1315
|
-
|
|
1318
|
+
getLabelValue(index: number): any;
|
|
1316
1319
|
swap(): void;
|
|
1317
1320
|
getTooltipPos(): IPoint;
|
|
1318
1321
|
updateValue(value: number, animation: RcAnimation): void;
|
|
@@ -1444,7 +1447,7 @@ declare class GaugeCollection {
|
|
|
1444
1447
|
private _visibles;
|
|
1445
1448
|
private _gauges;
|
|
1446
1449
|
constructor(chart: IChart);
|
|
1447
|
-
isEmpty(): boolean;
|
|
1450
|
+
isEmpty(visibleOnly: boolean): boolean;
|
|
1448
1451
|
get firstGauge(): Gauge;
|
|
1449
1452
|
getVisibles(): GaugeBase[];
|
|
1450
1453
|
getPaneVisibles(row: number, col: number): GaugeBase[];
|
|
@@ -1554,6 +1557,7 @@ interface IChart {
|
|
|
1554
1557
|
timeOffset: number;
|
|
1555
1558
|
_createChart(config: any): IChart;
|
|
1556
1559
|
assignTemplates(target: any): any;
|
|
1560
|
+
isEmpty(visibleOnly: boolean): boolean;
|
|
1557
1561
|
isGauge(): boolean;
|
|
1558
1562
|
isPolar(): boolean;
|
|
1559
1563
|
isInverted(): boolean;
|
|
@@ -1901,6 +1905,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1901
1905
|
tooltipRow: string;
|
|
1902
1906
|
tooltipFooter: string;
|
|
1903
1907
|
animatable: boolean;
|
|
1908
|
+
fixedSize: boolean;
|
|
1904
1909
|
isEmpty(): boolean;
|
|
1905
1910
|
getBaseValue(): number;
|
|
1906
1911
|
length(): number;
|
|
@@ -2096,7 +2101,7 @@ declare class RcChartControl {
|
|
|
2096
2101
|
private _proxy;
|
|
2097
2102
|
private _exporter;
|
|
2098
2103
|
private constructor();
|
|
2099
|
-
load(config: any, animate?: boolean): void;
|
|
2104
|
+
load(config: any, animate?: boolean, callback?: () => void): void;
|
|
2100
2105
|
render(now?: boolean): void;
|
|
2101
2106
|
get xAxis(): RcChartAxis;
|
|
2102
2107
|
getXAxis(name: string | number): RcChartAxis;
|
|
@@ -2159,7 +2164,7 @@ declare class Globals {
|
|
|
2159
2164
|
static setDebugging(debug: boolean): void;
|
|
2160
2165
|
static setLogging(logging: boolean): void;
|
|
2161
2166
|
static setAnimatable(value: boolean): void;
|
|
2162
|
-
static createChart(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean): RcChartControl;
|
|
2167
|
+
static createChart(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean, callback?: () => void): RcChartControl;
|
|
2163
2168
|
static createData(options?: IRcChartDataOptions, rows?: any[]): RcChartData;
|
|
2164
2169
|
}
|
|
2165
2170
|
|