@oliasoft-open-source/charts-library 5.9.0-beta-13 → 5.9.0
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 +32 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -730,6 +730,7 @@ export declare type ILineChartOptionsInput = Omit<DeepPartial<ILineChartOptions>
|
|
|
730
730
|
annotationsData?: ILooseLineAnnotation[];
|
|
731
731
|
}) | ILooseLineAnnotation[] | null;
|
|
732
732
|
additionalAxesOptions?: DeepPartial<ILineChartAdditionalAxesOptions> & {
|
|
733
|
+
stepSize?: unknown;
|
|
733
734
|
range?: ILineRange | ILineChartRange | Record<string, ILineChartRange | undefined>;
|
|
734
735
|
} & Record<string, unknown>;
|
|
735
736
|
};
|
|
@@ -786,9 +787,19 @@ declare type ILooseBarAxis = DeepPartial<ICommonAxis<string>> & {
|
|
|
786
787
|
[key: string]: unknown;
|
|
787
788
|
};
|
|
788
789
|
|
|
789
|
-
declare type ILooseLineAnnotation =
|
|
790
|
+
declare type ILooseLineAnnotation = {
|
|
790
791
|
[key: string]: unknown;
|
|
791
|
-
|
|
792
|
+
id?: string;
|
|
793
|
+
label?: string;
|
|
794
|
+
color?: string;
|
|
795
|
+
borderColor?: string;
|
|
796
|
+
backgroundColor?: string;
|
|
797
|
+
borderWidth?: number;
|
|
798
|
+
display?: boolean;
|
|
799
|
+
adjustScaleRange?: boolean;
|
|
800
|
+
opacity?: number;
|
|
801
|
+
hideLegend?: boolean;
|
|
802
|
+
labelOffsetPx?: number;
|
|
792
803
|
annotationAxis?: string;
|
|
793
804
|
type?: string;
|
|
794
805
|
value?: number | string | null;
|
|
@@ -798,6 +809,9 @@ declare type ILooseLineAnnotation = DeepPartial<ICommonAnnotationsData> & {
|
|
|
798
809
|
yMax?: number | string | null;
|
|
799
810
|
xValue?: number | string | null;
|
|
800
811
|
yValue?: number | string | null;
|
|
812
|
+
onDragStart?: (...args: unknown[]) => void;
|
|
813
|
+
onDrag?: (...args: unknown[]) => void;
|
|
814
|
+
onDragEnd?: (...args: unknown[]) => void;
|
|
801
815
|
};
|
|
802
816
|
|
|
803
817
|
declare type ILooseLineAxis = DeepPartial<ILineChartAxis<string>> & {
|
|
@@ -1102,6 +1116,22 @@ export declare type UnusedParameter = unknown;
|
|
|
1102
1116
|
export { }
|
|
1103
1117
|
|
|
1104
1118
|
|
|
1119
|
+
declare module 'chart.js' {
|
|
1120
|
+
interface PluginOptionsByType<TType extends ChartType> {
|
|
1121
|
+
calloutConnectorPlugin?: {
|
|
1122
|
+
enableCalloutAnnotation?: boolean;
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
declare module 'chart.js' {
|
|
1129
|
+
interface PluginOptionsByType<TType extends ChartType> {
|
|
1130
|
+
annotationDraggerPlugin?: AnnotationDraggerPluginOptions;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
|
|
1105
1135
|
/**
|
|
1106
1136
|
* Vertical Markers Plugin
|
|
1107
1137
|
*
|
|
@@ -1153,19 +1183,3 @@ declare module 'chart.js' {
|
|
|
1153
1183
|
} | TVerticalMarkersOptions;
|
|
1154
1184
|
}
|
|
1155
1185
|
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
declare module 'chart.js' {
|
|
1159
|
-
interface PluginOptionsByType<TType extends ChartType> {
|
|
1160
|
-
annotationDraggerPlugin?: AnnotationDraggerPluginOptions;
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
declare module 'chart.js' {
|
|
1166
|
-
interface PluginOptionsByType<TType extends ChartType> {
|
|
1167
|
-
calloutConnectorPlugin?: {
|
|
1168
|
-
enableCalloutAnnotation?: boolean;
|
|
1169
|
-
};
|
|
1170
|
-
}
|
|
1171
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "5.9.0
|
|
3
|
+
"version": "5.9.0",
|
|
4
4
|
"description": "React Chart Library (based on Chart.js and react-chart-js-2)",
|
|
5
5
|
"homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
|
|
6
6
|
"bugs": {
|