@oliasoft-open-source/charts-library 4.6.3 → 4.6.4
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.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/common/common.interface.d.ts +1 -0
- package/dist/src/components/common/helpers/enums.d.ts +4 -1
- package/dist/src/components/common/helpers/get-chart-annotation.d.ts +1 -0
- package/dist/src/components/line-chart/line-chart.stories.d.ts +26 -0
- package/dist/src/components/line-chart/utils/get-line-chart-data-labels.d.ts +1 -1
- package/package.json +1 -1
|
@@ -69,6 +69,7 @@ export interface ICommonAnnotationsData {
|
|
|
69
69
|
onDrag?: (coordinates: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
70
70
|
onDragEnd?: (coordinates: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
71
71
|
dragAxis?: DragAxis;
|
|
72
|
+
pointStyle?: string;
|
|
72
73
|
}
|
|
73
74
|
export interface ICommonGradientColor {
|
|
74
75
|
offset: number;
|
|
@@ -53,7 +53,10 @@ export declare enum AnnotationType {
|
|
|
53
53
|
Text = "text"
|
|
54
54
|
}
|
|
55
55
|
export declare enum PointStyle {
|
|
56
|
-
Circle = "circle"
|
|
56
|
+
Circle = "circle",
|
|
57
|
+
Square = "rect",
|
|
58
|
+
Diamond = "rectRot",
|
|
59
|
+
Triangle = "triangle"
|
|
57
60
|
}
|
|
58
61
|
export declare enum ChartHoverMode {
|
|
59
62
|
Nearest = "nearest"
|
|
@@ -61,6 +61,7 @@ declare const getAnnotation: ({ showAnnotations, annotationsData, }: IGetAnnotat
|
|
|
61
61
|
onDragStart: () => (cord: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
62
62
|
onDrag: () => (cord: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
63
63
|
onDragEnd: () => (cord: ICoordinates, annotation: ICommonAnnotationsData) => void;
|
|
64
|
+
pointStyle: string;
|
|
64
65
|
hideLegend?: boolean | undefined;
|
|
65
66
|
annotationAxis: "x" | "y";
|
|
66
67
|
color: string;
|
|
@@ -1261,6 +1261,7 @@ export namespace DragAnnotations {
|
|
|
1261
1261
|
radius?: undefined;
|
|
1262
1262
|
labelConfig?: undefined;
|
|
1263
1263
|
dragAxis?: undefined;
|
|
1264
|
+
pointStyle?: undefined;
|
|
1264
1265
|
} | {
|
|
1265
1266
|
enableDrag: boolean;
|
|
1266
1267
|
type: string;
|
|
@@ -1280,6 +1281,7 @@ export namespace DragAnnotations {
|
|
|
1280
1281
|
radius?: undefined;
|
|
1281
1282
|
labelConfig?: undefined;
|
|
1282
1283
|
dragAxis?: undefined;
|
|
1284
|
+
pointStyle?: undefined;
|
|
1283
1285
|
} | {
|
|
1284
1286
|
enableDrag: boolean;
|
|
1285
1287
|
type: string;
|
|
@@ -1299,6 +1301,7 @@ export namespace DragAnnotations {
|
|
|
1299
1301
|
radius?: undefined;
|
|
1300
1302
|
labelConfig?: undefined;
|
|
1301
1303
|
dragAxis?: undefined;
|
|
1304
|
+
pointStyle?: undefined;
|
|
1302
1305
|
} | {
|
|
1303
1306
|
type: string;
|
|
1304
1307
|
enableDrag: boolean;
|
|
@@ -1321,6 +1324,7 @@ export namespace DragAnnotations {
|
|
|
1321
1324
|
yMin?: undefined;
|
|
1322
1325
|
yMax?: undefined;
|
|
1323
1326
|
dragAxis?: undefined;
|
|
1327
|
+
pointStyle?: undefined;
|
|
1324
1328
|
} | {
|
|
1325
1329
|
enableDrag: boolean;
|
|
1326
1330
|
dragAxis: string;
|
|
@@ -1340,6 +1344,7 @@ export namespace DragAnnotations {
|
|
|
1340
1344
|
yValue?: undefined;
|
|
1341
1345
|
radius?: undefined;
|
|
1342
1346
|
labelConfig?: undefined;
|
|
1347
|
+
pointStyle?: undefined;
|
|
1343
1348
|
} | {
|
|
1344
1349
|
type: string;
|
|
1345
1350
|
enableDrag: boolean;
|
|
@@ -1359,6 +1364,27 @@ export namespace DragAnnotations {
|
|
|
1359
1364
|
onDrag?: undefined;
|
|
1360
1365
|
onDragEnd?: undefined;
|
|
1361
1366
|
labelConfig?: undefined;
|
|
1367
|
+
pointStyle?: undefined;
|
|
1368
|
+
} | {
|
|
1369
|
+
type: string;
|
|
1370
|
+
enableDrag: boolean;
|
|
1371
|
+
pointStyle: string;
|
|
1372
|
+
dragAxis: string;
|
|
1373
|
+
xValue: number;
|
|
1374
|
+
yValue: number;
|
|
1375
|
+
radius: number;
|
|
1376
|
+
color: string;
|
|
1377
|
+
label: string;
|
|
1378
|
+
annotationAxis?: undefined;
|
|
1379
|
+
value?: undefined;
|
|
1380
|
+
xMin?: undefined;
|
|
1381
|
+
xMax?: undefined;
|
|
1382
|
+
yMin?: undefined;
|
|
1383
|
+
yMax?: undefined;
|
|
1384
|
+
onDragStart?: undefined;
|
|
1385
|
+
onDrag?: undefined;
|
|
1386
|
+
onDragEnd?: undefined;
|
|
1387
|
+
labelConfig?: undefined;
|
|
1362
1388
|
})[];
|
|
1363
1389
|
export { annotationsData_5 as annotationsData };
|
|
1364
1390
|
}
|
|
@@ -9,7 +9,7 @@ import { UnusedParameter } from '../../common/common.interface';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const getLineChartDataLabels: (options: ILineChartOptions) => {
|
|
11
11
|
display: string;
|
|
12
|
-
align: (context: import("./datalabels-alignment/datalabels-alignment.interface").IAlignmentContext) => import("
|
|
12
|
+
align: (context: import("./datalabels-alignment/datalabels-alignment.interface").IAlignmentContext) => import("../../../..").AlignOptions.End | import("../../../..").AlignOptions.Start | import("../../../..").AlignOptions.Right | import("../../../..").AlignOptions.Left;
|
|
13
13
|
formatter: (_: UnusedParameter, context: TooltipItem<any>) => any;
|
|
14
14
|
} | {
|
|
15
15
|
display: boolean;
|
package/package.json
CHANGED