bt-core-app 2.0.310 → 2.0.312
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/bt-core-app.js +1979 -1935
- package/dist/index.d.ts +5 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -406,6 +406,8 @@ export declare interface BTGlobalBlades {
|
|
|
406
406
|
export declare interface BTGraphs {
|
|
407
407
|
getDataForChartJS: <T>(options: GetXYOptions<T>[], chartType?: ChartType, chartOptions?: any) => GetChartResult;
|
|
408
408
|
getBarChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
|
|
409
|
+
getPieData: (labels: string[], values: number[], chartOptions?: any) => GetChartResult;
|
|
410
|
+
getPieChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
|
|
409
411
|
getXY: <T>(options: GetXYOptions<T>) => GraphedData[];
|
|
410
412
|
getRawXY: <T>(options: GetRawXYOptions<T>) => GraphedData[];
|
|
411
413
|
}
|
|
@@ -503,8 +505,8 @@ export declare interface ChartJSDataPoint {
|
|
|
503
505
|
}
|
|
504
506
|
|
|
505
507
|
export declare interface ChartJSDataSet {
|
|
506
|
-
backgroundColor?: string;
|
|
507
|
-
borderColor?: string;
|
|
508
|
+
backgroundColor?: string | string[];
|
|
509
|
+
borderColor?: string | string[];
|
|
508
510
|
data: number[] | any[][] | ChartJSDataPoint[] | any[];
|
|
509
511
|
label?: string;
|
|
510
512
|
parsing?: ChartJSParsing;
|
|
@@ -520,7 +522,7 @@ export declare interface ChartJSParsing {
|
|
|
520
522
|
xAxisKey?: string;
|
|
521
523
|
}
|
|
522
524
|
|
|
523
|
-
export declare type ChartType = 'line' | 'bar';
|
|
525
|
+
export declare type ChartType = 'line' | 'bar' | 'pie';
|
|
524
526
|
|
|
525
527
|
export declare function checkImage(url: string, onGood: (this: GlobalEventHandlers, ev: Event) => void, onBad: OnErrorEventHandler): void;
|
|
526
528
|
|
package/package.json
CHANGED