stz-chart-maker 1.0.1 → 1.0.2
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/README.md +7 -0
- package/dist/chart-toolbox.min.js +1 -1
- package/dist/index.d.ts +46 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartType, PluginOptionsByType, ChartOptions, GridLineOptions, FontSpec, Tick, Chart, ChartDataset, Plugin as Plugin$1, TooltipItem } from 'chart.js';
|
|
1
|
+
import { ChartType, PluginOptionsByType, ChartOptions, GridLineOptions, FontSpec, Tick, Chart, ChartDataset, ChartTypeRegistry, Plugin as Plugin$1, TooltipItem } from 'chart.js';
|
|
2
2
|
import { ZoomPluginOptions } from 'chartjs-plugin-zoom/types/options';
|
|
3
3
|
import { DeepPartial as DeepPartial$1 } from 'chart.js/dist/types/utils';
|
|
4
4
|
|
|
@@ -384,6 +384,48 @@ declare abstract class ChartWrapper<TType extends ChartType> implements ChartBui
|
|
|
384
384
|
build(id?: string): ChartConfig;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
+
interface AxisColors {
|
|
388
|
+
light: string;
|
|
389
|
+
normal: string;
|
|
390
|
+
}
|
|
391
|
+
interface OriginalColors {
|
|
392
|
+
ticksColor?: string;
|
|
393
|
+
titleColor?: string;
|
|
394
|
+
gridColor?: string;
|
|
395
|
+
}
|
|
396
|
+
interface ScaleWithOriginalColors {
|
|
397
|
+
_originalColors?: OriginalColors;
|
|
398
|
+
grid?: {
|
|
399
|
+
drawOnChartArea?: boolean;
|
|
400
|
+
color?: string;
|
|
401
|
+
};
|
|
402
|
+
ticks?: {
|
|
403
|
+
color?: string;
|
|
404
|
+
};
|
|
405
|
+
title?: {
|
|
406
|
+
color?: string;
|
|
407
|
+
font?: {
|
|
408
|
+
weight?: string;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
interface DatasetWithPrevColors {
|
|
413
|
+
yAxisID?: string;
|
|
414
|
+
backgroundColor?: string | string[];
|
|
415
|
+
borderColor?: string | string[];
|
|
416
|
+
pointBackgroundColor?: string | string[];
|
|
417
|
+
borderDash?: number[];
|
|
418
|
+
pointRadius?: number;
|
|
419
|
+
_prevBackgroundColor?: string | string[];
|
|
420
|
+
_prevBorderColor?: string | string[];
|
|
421
|
+
_prevPointBackgroundColor?: string | string[];
|
|
422
|
+
_prevBorderDash?: number[];
|
|
423
|
+
_prevPointRadius?: number;
|
|
424
|
+
}
|
|
425
|
+
interface ChartWithFocus extends Chart {
|
|
426
|
+
_currentFocusedAxis?: string | null;
|
|
427
|
+
}
|
|
428
|
+
type FocusCallback = (chart: Chart, focusedAxis: string | null) => void;
|
|
387
429
|
interface ZoomRangeSliderColors {
|
|
388
430
|
sliderTrackColor?: string;
|
|
389
431
|
sliderActiveColor?: string;
|
|
@@ -606,6 +648,7 @@ declare abstract class CartesianChartWrapper<TType extends CartesianChartType> e
|
|
|
606
648
|
customLegend(obj: HtmlLegendOptions): this;
|
|
607
649
|
}
|
|
608
650
|
|
|
651
|
+
type AllChartTypes = keyof ChartTypeRegistry;
|
|
609
652
|
declare enum ChartTypes {
|
|
610
653
|
BAR = "bar",
|
|
611
654
|
LINE = "line",
|
|
@@ -1018,5 +1061,5 @@ declare const T$: {
|
|
|
1018
1061
|
};
|
|
1019
1062
|
};
|
|
1020
1063
|
|
|
1021
|
-
export { BarChartWrapper, CartesianChartWrapper, ChartFactory, ChartInstance, ChartToolBox, ChartWrapper, CreateZoomRangeSlider, LineChartWrapper, T$, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, createDefaultBarOptions, createDefaultLineOptions, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultLineScales, defaultLineTooltipCallback, doughnutCenterTextPlugin, loadingPlugin, makeCenterHtml, noDataPlugin, zoomRangeSlider, zoomResetPlugin };
|
|
1022
|
-
export type { BarChartBuilder, CartesianChartBuilder, CartesianChartType, CartesianDataset, ChartBuilder$1 as ChartBuilder, Color, CommonAxes, CommonAxesSacels, CommonCartesian, CommonCartesianAxes, CommonCartesianTicks, CommonCartesianTitleConfig, CommonTicks, Constructor, CustomBarChartOptions, CustomCartesianDataset, CustomChartOptions, CustomLineChartOptions, CustomOptionPlugins, CustomPieChartOptions, DeepPartial, DeepPartialCartesianAxes, DeepPartialPluginOptions, HtmlLegendOptions, LineChartBuilder, Mode, Position, SettingOptions };
|
|
1064
|
+
export { BarChartWrapper, CartesianChartWrapper, ChartFactory, ChartInstance, ChartToolBox, ChartTypes, ChartWrapper, CreateZoomRangeSlider, LineChartWrapper, T$, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, createDefaultBarOptions, createDefaultLineOptions, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultLineScales, defaultLineTooltipCallback, doughnutCenterTextPlugin, loadingPlugin, makeCenterHtml, noDataPlugin, zoomRangeSlider, zoomResetPlugin };
|
|
1065
|
+
export type { AllChartTypes, AxisColors, BarChartBuilder, CartesianChartBuilder, CartesianChartType, CartesianDataset, ChartBuilder$1 as ChartBuilder, ChartWithFocus, Color, CommonAxes, CommonAxesSacels, CommonCartesian, CommonCartesianAxes, CommonCartesianTicks, CommonCartesianTitleConfig, CommonTicks, Constructor, CustomBarChartOptions, CustomCartesianDataset, CustomChartOptions, CustomLineChartOptions, CustomOptionPlugins, CustomPieChartOptions, CustomZoomType, DataLabels, DataLabelsContext, DatasetWithPrevColors, DeepPartial, DeepPartialCartesianAxes, DeepPartialPluginOptions, DeepPartialZoomType, FocusCallback, HtmlLegendOptions, LineChartBuilder, Mode, OriginalColors, PartialDataLabels, Position, ScaleWithOriginalColors, SettingOptions, ZoomRangeSliderColors, ZoomRangeSliderPlugin, ZoomRangeSliderVar };
|
package/dist/index.js
CHANGED
|
@@ -2175,5 +2175,5 @@ const T$ = {
|
|
|
2175
2175
|
toolBox: ChartToolBox,
|
|
2176
2176
|
};
|
|
2177
2177
|
|
|
2178
|
-
export { BarChartWrapper, CartesianChartWrapper, ChartFactory, ChartInstance, ChartToolBox, ChartWrapper, CreateZoomRangeSlider, LineChartWrapper, T$, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, createDefaultBarOptions, createDefaultLineOptions, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultLineScales, defaultLineTooltipCallback, doughnutCenterTextPlugin, loadingPlugin, makeCenterHtml, noDataPlugin, zoomRangeSlider, zoomResetPlugin };
|
|
2178
|
+
export { BarChartWrapper, CartesianChartWrapper, ChartFactory, ChartInstance, ChartToolBox, ChartTypes, ChartWrapper, CreateZoomRangeSlider, LineChartWrapper, T$, barScaleImgPlugin, blinkPlugin, changeSetting, chartMountPlugin, createDefaultBarOptions, createDefaultLineOptions, customLegend, T$ as default, defaultBarScales, defaultBarTooltipCallback, defaultLineScales, defaultLineTooltipCallback, doughnutCenterTextPlugin, loadingPlugin, makeCenterHtml, noDataPlugin, zoomRangeSlider, zoomResetPlugin };
|
|
2179
2179
|
//# sourceMappingURL=index.js.map
|