@oliasoft-open-source/charts-library 5.9.0-beta-4 → 5.9.0-beta-6

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 (49) hide show
  1. package/dist/assets/{Color-6BZIO3FS-DhgzADPX.js → Color-6BZIO3FS-DrmK93J6.js} +1 -1
  2. package/dist/assets/{DocsRenderer-LL677BLK-BMxotIzM.js → DocsRenderer-LL677BLK-DWHl5H_l.js} +4 -4
  3. package/dist/assets/{WithTooltip-65CFNBJE-DhFWX5Pm.js → WithTooltip-65CFNBJE-DDqaQV8R.js} +1 -1
  4. package/dist/assets/{bar-chart.stories-BqGiinW-.js → bar-chart.stories-Bn_Rrn19.js} +1 -1
  5. package/dist/assets/{chunk-YKABRMAI-Cp0muVto.js → chunk-YKABRMAI-B4hOwVF3.js} +1 -1
  6. package/dist/assets/{components-B21IBaJ_.js → components-6-AHhPCc.js} +4 -4
  7. package/dist/assets/formatter-EIJCOSYU-BKyh4j70.js +1 -0
  8. package/dist/assets/{get-draggableData-CXsYyfeD.js → get-draggableData-Cjb3Lcse.js} +1 -1
  9. package/dist/assets/{iframe-HxMpIt73.js → iframe-zvR6mJLZ.js} +3 -3
  10. package/dist/assets/{legend-context-DbDqj5Ij.js → legend-context-RXXDBqBo.js} +3 -4
  11. package/dist/assets/{legend-Fq0KKkQ6.js → legend-fBmyRZUq.js} +1 -1
  12. package/dist/assets/line-chart-CjQ46ckw.js +1 -0
  13. package/dist/assets/line-chart.stories-maeLElYF.js +1211 -0
  14. package/dist/assets/{line-chart.test-case.stories-DYHAsm6c.js → line-chart.test-case.stories-C4mJNNDK.js} +2 -173
  15. package/dist/assets/{pie-chart.stories-DWFlVV67.js → pie-chart.stories-BnTjj2gk.js} +1 -1
  16. package/dist/assets/{react-18-iJHr1sKj.js → react-18-BQmBCQAw.js} +1 -1
  17. package/dist/assets/{react-BJbrdSXX.js → react-CquYTfv7.js} +1 -1
  18. package/dist/assets/{react-dom-DS1BD2oL.js → react-dom-BwR3Qym1.js} +1 -1
  19. package/dist/assets/{scatter-chart.stories-D0zx9mjm.js → scatter-chart.stories-DtBnyBRP.js} +1 -1
  20. package/dist/assets/{syntaxhighlighter-ED5Y7EFY-CM81Ddf3.js → syntaxhighlighter-ED5Y7EFY-Cw4NznFK.js} +1 -1
  21. package/dist/assets/{theming-DBjDcFWf.js → theming-DG8o72he.js} +1 -1
  22. package/dist/common/common.interface.d.ts +3 -3
  23. package/dist/common/helpers/callout-helpers/callout-helpers.d.ts +0 -1
  24. package/dist/iframe.html +1 -1
  25. package/dist/index.js +860 -723
  26. package/dist/index.json +1 -1
  27. package/dist/line-chart/plugins/callout-plugin/helpers.d.ts +0 -11
  28. package/dist/line-chart/plugins/line-markers-plugin/draw.d.ts +39 -0
  29. package/dist/line-chart/plugins/line-markers-plugin/line-markers-plugin.d.ts +10 -0
  30. package/dist/line-chart/plugins/line-markers-plugin/types.d.ts +109 -0
  31. package/dist/line-chart/plugins/{vertical-markers-plugin → line-markers-plugin}/utils.d.ts +17 -0
  32. package/dist/project.json +1 -1
  33. package/dist/src/components/common/common.interface.d.ts +3 -3
  34. package/dist/src/components/common/helpers/callout-helpers/callout-helpers.d.ts +0 -1
  35. package/dist/src/components/line-chart/plugins/callout-plugin/helpers.d.ts +0 -11
  36. package/dist/src/components/line-chart/plugins/line-markers-plugin/draw.d.ts +39 -0
  37. package/dist/src/components/line-chart/plugins/line-markers-plugin/line-markers-plugin.d.ts +10 -0
  38. package/dist/src/components/line-chart/plugins/line-markers-plugin/types.d.ts +109 -0
  39. package/dist/src/components/line-chart/plugins/{vertical-markers-plugin → line-markers-plugin}/utils.d.ts +17 -0
  40. package/package.json +1 -1
  41. package/dist/assets/formatter-EIJCOSYU-BrsmllP3.js +0 -1
  42. package/dist/assets/line-chart-BAzukCgc.js +0 -1
  43. package/dist/assets/line-chart.stories-Bbt0hbp6.js +0 -1211
  44. package/dist/line-chart/plugins/vertical-markers-plugin/draw.d.ts +0 -24
  45. package/dist/line-chart/plugins/vertical-markers-plugin/types.d.ts +0 -42
  46. package/dist/line-chart/plugins/vertical-markers-plugin/vertical-markers-plugin.d.ts +0 -54
  47. package/dist/src/components/line-chart/plugins/vertical-markers-plugin/draw.d.ts +0 -24
  48. package/dist/src/components/line-chart/plugins/vertical-markers-plugin/types.d.ts +0 -42
  49. package/dist/src/components/line-chart/plugins/vertical-markers-plugin/vertical-markers-plugin.d.ts +0 -54
@@ -1,24 +0,0 @@
1
- import { Chart } from 'chart.js';
2
- import { TStickSide, TVerticalMarkerTick } from './types.ts';
3
- export type TDrawLineArgs = {
4
- chart: Chart;
5
- xPx: number;
6
- y1: number;
7
- y2: number;
8
- color: string;
9
- opacity: number;
10
- lineWidth: number;
11
- lineDash: number[];
12
- };
13
- export declare const drawVerticalLine: ({ chart, xPx, y1, y2, color, opacity, lineWidth, lineDash, }: TDrawLineArgs) => number;
14
- export type TDrawTickArgs = {
15
- ctx: CanvasRenderingContext2D;
16
- x: number;
17
- y: number;
18
- side: TStickSide;
19
- reverse?: boolean;
20
- tick: TVerticalMarkerTick;
21
- defaultColor: string;
22
- defaultFont: string;
23
- };
24
- export declare const drawTick: (args: TDrawTickArgs) => void;
@@ -1,42 +0,0 @@
1
- export type TStickSide = 'left' | 'right';
2
- export type TVerticalMarkerTick = {
3
- label?: string | string[];
4
- color?: string;
5
- font?: string;
6
- labelOffsetPx?: number;
7
- };
8
- export type TVerticalMarkerItem = {
9
- id?: string;
10
- xScaleID?: string;
11
- yScaleID?: string;
12
- xValue?: number;
13
- yStartValue?: number;
14
- value?: number;
15
- label?: string | string[];
16
- font?: string;
17
- labelOffsetPx?: number;
18
- stickToEdge?: boolean;
19
- stickSide?: TStickSide;
20
- reverse?: boolean;
21
- color?: string;
22
- opacity?: number;
23
- lineWidth?: number;
24
- lineDash?: number[];
25
- display?: boolean;
26
- };
27
- export type TVerticalMarkersOptions = {
28
- enabled?: boolean;
29
- itemGapPx?: number;
30
- edgePaddingPx?: number;
31
- stickToEdge?: boolean;
32
- stickSide?: TStickSide;
33
- reverse?: boolean;
34
- xValue?: number;
35
- yStartValue?: number;
36
- color?: string;
37
- opacity?: number;
38
- lineWidth?: number;
39
- lineDash?: number[];
40
- items?: TVerticalMarkerItem[];
41
- };
42
- export type IVerticalMarkersAnnotation = TVerticalMarkersOptions;
@@ -1,54 +0,0 @@
1
- import { ChartType, Plugin } from 'chart.js';
2
- import { TVerticalMarkersOptions } from './types';
3
- /**
4
- * Vertical Markers Plugin
5
- *
6
- * This plugin draws vertical helper lines on top of the chart.
7
- * with a small triangle end cap ("boot") and a text label.
8
- *
9
- * Where to configure:
10
- * - Enable switch: options.plugins.verticalMarkersPlugin.enabled
11
- * - Data and style: options.annotations.verticalMarkersAnnotation
12
- *
13
- * Global props (verticalMarkersAnnotation):
14
- * - enabled: Turn markers on or off.
15
- * - items: List of marker objects to draw.
16
- * - itemGapPx: Space in pixels between marker lines.
17
- * - edgePaddingPx: Distance from chart left/right edge when sticky mode is used.
18
- * - stickToEdge: If true, use chart edge as base X position.
19
- * - stickSide: Which edge to use in sticky mode: 'left' or 'right'.
20
- * - xValue: Optional base X value from the X scale (used instead of edge).
21
- * - yStartValue: Optional start Y value for all lines (if not set, start from top;
22
- * if reverse is true, start from bottom).
23
- * - reverse: If true, lines go from bottom to top. If false, top to bottom.
24
- * - color: Default line and triangle color.
25
- * - opacity: Default line opacity.
26
- * - lineWidth: Default line width.
27
- * - lineDash: Default dash pattern for lines.
28
- *
29
- * Item props (each object in items):
30
- * - value: Required Y value where the marker line ends and triangle is placed.
31
- * - label: Optional text near the triangle.
32
- * - display: Show or hide this item.
33
- * - stickToEdge: Per-item override of global stickToEdge.
34
- * - stickSide: Per-item override of global stickSide.
35
- * - xValue: Per-item override of global xValue.
36
- * - yStartValue: Per-item override of global yStartValue.
37
- * - reverse: Per-item override of global reverse.
38
- * - color: Per-item override of global color.
39
- * - opacity: Per-item override of global opacity.
40
- * - lineWidth: Per-item override of global lineWidth.
41
- * - lineDash: Per-item override of global lineDash.
42
- * - font: Optional label font.
43
- * - labelOffsetPx: Optional label offset in pixels.
44
- * - xScaleID: Optional custom X scale id for xValue conversion.
45
- * - yScaleID: Optional custom Y scale id for value conversion.
46
- */
47
- declare module 'chart.js' {
48
- interface PluginOptionsByType<TType extends ChartType> {
49
- verticalMarkersPlugin?: {
50
- enabled?: boolean;
51
- } | TVerticalMarkersOptions;
52
- }
53
- }
54
- export declare const verticalMarkersPlugin: Plugin;
@@ -1,24 +0,0 @@
1
- import { Chart } from 'chart.js';
2
- import { TStickSide, TVerticalMarkerTick } from './types.ts';
3
- export type TDrawLineArgs = {
4
- chart: Chart;
5
- xPx: number;
6
- y1: number;
7
- y2: number;
8
- color: string;
9
- opacity: number;
10
- lineWidth: number;
11
- lineDash: number[];
12
- };
13
- export declare const drawVerticalLine: ({ chart, xPx, y1, y2, color, opacity, lineWidth, lineDash, }: TDrawLineArgs) => number;
14
- export type TDrawTickArgs = {
15
- ctx: CanvasRenderingContext2D;
16
- x: number;
17
- y: number;
18
- side: TStickSide;
19
- reverse?: boolean;
20
- tick: TVerticalMarkerTick;
21
- defaultColor: string;
22
- defaultFont: string;
23
- };
24
- export declare const drawTick: (args: TDrawTickArgs) => void;
@@ -1,42 +0,0 @@
1
- export type TStickSide = 'left' | 'right';
2
- export type TVerticalMarkerTick = {
3
- label?: string | string[];
4
- color?: string;
5
- font?: string;
6
- labelOffsetPx?: number;
7
- };
8
- export type TVerticalMarkerItem = {
9
- id?: string;
10
- xScaleID?: string;
11
- yScaleID?: string;
12
- xValue?: number;
13
- yStartValue?: number;
14
- value?: number;
15
- label?: string | string[];
16
- font?: string;
17
- labelOffsetPx?: number;
18
- stickToEdge?: boolean;
19
- stickSide?: TStickSide;
20
- reverse?: boolean;
21
- color?: string;
22
- opacity?: number;
23
- lineWidth?: number;
24
- lineDash?: number[];
25
- display?: boolean;
26
- };
27
- export type TVerticalMarkersOptions = {
28
- enabled?: boolean;
29
- itemGapPx?: number;
30
- edgePaddingPx?: number;
31
- stickToEdge?: boolean;
32
- stickSide?: TStickSide;
33
- reverse?: boolean;
34
- xValue?: number;
35
- yStartValue?: number;
36
- color?: string;
37
- opacity?: number;
38
- lineWidth?: number;
39
- lineDash?: number[];
40
- items?: TVerticalMarkerItem[];
41
- };
42
- export type IVerticalMarkersAnnotation = TVerticalMarkersOptions;
@@ -1,54 +0,0 @@
1
- import { ChartType, Plugin } from 'chart.js';
2
- import { TVerticalMarkersOptions } from './types';
3
- /**
4
- * Vertical Markers Plugin
5
- *
6
- * This plugin draws vertical helper lines on top of the chart.
7
- * with a small triangle end cap ("boot") and a text label.
8
- *
9
- * Where to configure:
10
- * - Enable switch: options.plugins.verticalMarkersPlugin.enabled
11
- * - Data and style: options.annotations.verticalMarkersAnnotation
12
- *
13
- * Global props (verticalMarkersAnnotation):
14
- * - enabled: Turn markers on or off.
15
- * - items: List of marker objects to draw.
16
- * - itemGapPx: Space in pixels between marker lines.
17
- * - edgePaddingPx: Distance from chart left/right edge when sticky mode is used.
18
- * - stickToEdge: If true, use chart edge as base X position.
19
- * - stickSide: Which edge to use in sticky mode: 'left' or 'right'.
20
- * - xValue: Optional base X value from the X scale (used instead of edge).
21
- * - yStartValue: Optional start Y value for all lines (if not set, start from top;
22
- * if reverse is true, start from bottom).
23
- * - reverse: If true, lines go from bottom to top. If false, top to bottom.
24
- * - color: Default line and triangle color.
25
- * - opacity: Default line opacity.
26
- * - lineWidth: Default line width.
27
- * - lineDash: Default dash pattern for lines.
28
- *
29
- * Item props (each object in items):
30
- * - value: Required Y value where the marker line ends and triangle is placed.
31
- * - label: Optional text near the triangle.
32
- * - display: Show or hide this item.
33
- * - stickToEdge: Per-item override of global stickToEdge.
34
- * - stickSide: Per-item override of global stickSide.
35
- * - xValue: Per-item override of global xValue.
36
- * - yStartValue: Per-item override of global yStartValue.
37
- * - reverse: Per-item override of global reverse.
38
- * - color: Per-item override of global color.
39
- * - opacity: Per-item override of global opacity.
40
- * - lineWidth: Per-item override of global lineWidth.
41
- * - lineDash: Per-item override of global lineDash.
42
- * - font: Optional label font.
43
- * - labelOffsetPx: Optional label offset in pixels.
44
- * - xScaleID: Optional custom X scale id for xValue conversion.
45
- * - yScaleID: Optional custom Y scale id for value conversion.
46
- */
47
- declare module 'chart.js' {
48
- interface PluginOptionsByType<TType extends ChartType> {
49
- verticalMarkersPlugin?: {
50
- enabled?: boolean;
51
- } | TVerticalMarkersOptions;
52
- }
53
- }
54
- export declare const verticalMarkersPlugin: Plugin;