@oliasoft-open-source/charts-library 5.8.0 → 5.9.0-beta-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.
Files changed (36) hide show
  1. package/dist/assets/{Color-6BZIO3FS-C124yz2l.js → Color-6BZIO3FS-BdmyW5fF.js} +1 -1
  2. package/dist/assets/{DocsRenderer-LL677BLK-D4qKUuBB.js → DocsRenderer-LL677BLK-Dmh2MbD-.js} +4 -4
  3. package/dist/assets/{WithTooltip-65CFNBJE-CtWnqLza.js → WithTooltip-65CFNBJE-B1vNinkY.js} +1 -1
  4. package/dist/assets/{bar-chart.stories-C3SMcQsP.js → bar-chart.stories-Ch0i7N0G.js} +2 -2
  5. package/dist/assets/{chunk-YKABRMAI-Ahx4OkN7.js → chunk-YKABRMAI-nN4IfCIz.js} +1 -1
  6. package/dist/assets/{components-DIpk8W7G.js → components-s5a1V3CD.js} +4 -4
  7. package/dist/assets/formatter-EIJCOSYU-Bo0DMj3p.js +1 -0
  8. package/dist/assets/{get-draggableData-w1LT3_ff.js → get-draggableData-mCkevOrC.js} +1 -1
  9. package/dist/assets/{iframe-DApKJtpy.js → iframe-B7buKd6W.js} +3 -3
  10. package/dist/assets/{legend-BIh7BsGA.js → legend-Cem_14IV.js} +39 -39
  11. package/dist/assets/{legend-context-CQKzSsRL.js → legend-context-D1oEf-Th.js} +3 -3
  12. package/dist/assets/line-chart-BDauhYk8.js +1 -0
  13. package/dist/assets/{line-chart.stories-BI9cuT6Z.js → line-chart.stories-T04m8x5t.js} +7 -3
  14. package/dist/assets/{line-chart.test-case.stories-BxTEBLo3.js → line-chart.test-case.stories-BcA_QlE1.js} +127 -4
  15. package/dist/assets/{pie-chart.stories-BHZXRphh.js → pie-chart.stories-D2G6WnUw.js} +1 -1
  16. package/dist/assets/{react-18-JAuqV3gQ.js → react-18-DQODWq5X.js} +1 -1
  17. package/dist/assets/{react-DPAuT4W0.js → react-CwUuogrH.js} +1 -1
  18. package/dist/assets/{react-dom-CWw972ZY.js → react-dom-O1LTTn3X.js} +1 -1
  19. package/dist/assets/{scatter-chart.stories-DQLyCWVA.js → scatter-chart.stories-DJ3Z3dsB.js} +1 -1
  20. package/dist/assets/{syntaxhighlighter-ED5Y7EFY-CxhX_a0D.js → syntaxhighlighter-ED5Y7EFY-DYFKPQ-I.js} +1 -1
  21. package/dist/assets/{theming-BGumyAJ5.js → theming-DpsViFyv.js} +1 -1
  22. package/dist/common/common.interface.d.ts +7 -0
  23. package/dist/common/helpers/callout-helpers/callout-overlap-helpers.d.ts +9 -0
  24. package/dist/common/helpers/get-chart-annotation.d.ts +48 -6
  25. package/dist/iframe.html +1 -1
  26. package/dist/index.js +367 -57
  27. package/dist/index.json +1 -1
  28. package/dist/line-chart/plugins/vertical-markers-plugin/draw.d.ts +24 -0
  29. package/dist/line-chart/plugins/vertical-markers-plugin/types.d.ts +42 -0
  30. package/dist/line-chart/plugins/vertical-markers-plugin/utils.d.ts +23 -0
  31. package/dist/line-chart/plugins/vertical-markers-plugin/vertical-markers-plugin.d.ts +54 -0
  32. package/dist/project.json +1 -1
  33. package/dist/src/components/common/helpers/callout-helpers/callout-overlap-helpers.d.ts +9 -0
  34. package/package.json +1 -1
  35. package/dist/assets/formatter-EIJCOSYU-B8p8ny5o.js +0 -1
  36. package/dist/assets/line-chart-CcOicjlw.js +0 -1
@@ -3,6 +3,7 @@ import { LabelOptions } from 'chartjs-plugin-annotation';
3
3
  import { GradientDirection } from './plugins/gradient-background-plugin/enums';
4
4
  import { AnnotationType, DragAxis } from './plugins/annotation-dragger-plugin/enums';
5
5
  import { AlignOptions, Position } from './helpers/enums';
6
+ import { IVerticalMarkersAnnotation } from '../line-chart/plugins/vertical-markers-plugin/types';
6
7
  export type TAxisPosition = 'top' | 'bottom' | 'left' | 'right';
7
8
  export interface ICommonDataValue {
8
9
  x: number;
@@ -145,6 +146,7 @@ export interface ICommonAnnotations {
145
146
  controlAnnotation?: boolean;
146
147
  enableDragAnnotation?: boolean;
147
148
  enableCalloutAnnotation?: boolean;
149
+ verticalMarkersAnnotation?: IVerticalMarkersAnnotation;
148
150
  annotationsData?: ICommonAnnotationsData[];
149
151
  labelAnnotation?: ICommonAnnotation;
150
152
  }
@@ -186,6 +188,11 @@ export interface ICommonOptions {
186
188
  interactions?: ICommonInteractions;
187
189
  dragData?: ICommonDragData;
188
190
  annotations?: ICommonAnnotations;
191
+ plugins?: {
192
+ verticalMarkersPlugin?: {
193
+ enabled?: boolean;
194
+ };
195
+ };
189
196
  }
190
197
  export interface ICommonData {
191
198
  testId?: string;
@@ -0,0 +1,9 @@
1
+ import { Chart } from 'chart.js';
2
+ import { ICommonAnnotationsData } from '../../common.interface';
3
+ export declare const getScaleByAxis: (chart: Chart, axis: "x" | "y", ann: ICommonAnnotationsData) => import('chart.js').Scale<import('chart.js').CoreScaleOptions> | undefined;
4
+ export declare const getAnchorValueFromData: (ann: ICommonAnnotationsData, axis: "x" | "y") => number | undefined;
5
+ export declare const getLabelSide: (ann: ICommonAnnotationsData) => "left" | "right" | "center";
6
+ export declare const buildLikelyOverlapSet: (annotationsData: ICommonAnnotationsData[]) => Set<number>;
7
+ export declare const buildOverlapCalloutYMap: (annotationsData: ICommonAnnotationsData[], overlapSet: Set<number>) => Map<number, number>;
8
+ export declare const getOverlapCalloutXAdjust: (ann: ICommonAnnotationsData) => 0 | 56 | -56;
9
+ export declare const hasOverlappingLabel: (ctx: any, refAnnotation: ICommonAnnotationsData, index: number, annotationsData: ICommonAnnotationsData[]) => boolean;
@@ -15,12 +15,6 @@ export declare const generateAnn: (ann: ICommonAnnotationsData, index: number) =
15
15
  id: string;
16
16
  scaleID: "x" | "y";
17
17
  label: {
18
- content: string;
19
- display: boolean;
20
- font: {
21
- weight: string;
22
- };
23
- } | {
24
18
  backgroundColor: string;
25
19
  content: string;
26
20
  display: boolean;
@@ -42,6 +36,54 @@ export declare const generateAnn: (ann: ICommonAnnotationsData, index: number) =
42
36
  padding: number;
43
37
  borderRadius: number;
44
38
  borderColor: any;
39
+ } | {
40
+ position: {
41
+ x: string;
42
+ y: string;
43
+ } | undefined;
44
+ content: string;
45
+ display: boolean;
46
+ font: {
47
+ weight: string;
48
+ };
49
+ backgroundColor?: undefined;
50
+ color?: undefined;
51
+ borderWidth?: undefined;
52
+ padding?: undefined;
53
+ borderRadius?: undefined;
54
+ borderColor?: undefined;
55
+ } | {
56
+ position: {
57
+ x: string;
58
+ y: string;
59
+ } | undefined;
60
+ content: string;
61
+ display: boolean;
62
+ font: {
63
+ weight: string;
64
+ };
65
+ backgroundColor?: undefined;
66
+ color?: undefined;
67
+ borderWidth?: undefined;
68
+ padding?: undefined;
69
+ borderRadius?: undefined;
70
+ borderColor?: undefined;
71
+ } | {
72
+ position: {
73
+ x: string;
74
+ y: string;
75
+ } | undefined;
76
+ content: string;
77
+ display: boolean;
78
+ font: {
79
+ weight: string;
80
+ };
81
+ backgroundColor?: undefined;
82
+ color?: undefined;
83
+ borderWidth?: undefined;
84
+ padding?: undefined;
85
+ borderRadius?: undefined;
86
+ borderColor?: undefined;
45
87
  };
46
88
  backgroundColor: string;
47
89
  borderColor: string;
package/dist/iframe.html CHANGED
@@ -547,7 +547,7 @@
547
547
  }
548
548
  </script>
549
549
 
550
- <script type="module" crossorigin src="./assets/iframe-DApKJtpy.js"></script>
550
+ <script type="module" crossorigin src="./assets/iframe-B7buKd6W.js"></script>
551
551
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-Bhb7V-Yo.js">
552
552
 
553
553
  </head>