@dwlf/charting 1.3.0 → 1.4.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.
@@ -22,6 +22,26 @@ export interface SeriesStyle {
22
22
  markerFontSize?: number;
23
23
  markerTextColor?: string;
24
24
  markerTextOffsetY?: number;
25
+ /**
26
+ * 'filled' (default) renders the marker as a solid shape.
27
+ * 'outline' renders just the stroke (hollow ring for circles).
28
+ */
29
+ markerVariant?: 'filled' | 'outline';
30
+ /**
31
+ * Stroke width in pixels for the 'outline' variant. Defaults to 1.5.
32
+ * Has no effect on the 'filled' variant.
33
+ */
34
+ markerStrokeWidth?: number;
35
+ /**
36
+ * If > 0, draws a soft halo (a translucent concentric circle) behind
37
+ * the marker. The halo's outer radius is `markerSize + markerHaloSize`.
38
+ * Defaults to 0 (no halo).
39
+ */
40
+ markerHaloSize?: number;
41
+ /**
42
+ * Opacity of the halo, 0..1. Defaults to 0.25.
43
+ */
44
+ markerHaloOpacity?: number;
25
45
  riskColor?: string;
26
46
  rewardColor?: string;
27
47
  bubbleColor?: string;
@@ -15,12 +15,18 @@ import { default as PropTypes } from 'prop-types';
15
15
  * - fontSize : number – optional font size for the text label
16
16
  * - textColor : string – optional text color for the label
17
17
  * - textOffsetY : number – optional Y-offset for the text label
18
+ * - variant : 'filled' (default) | 'outline' – fill style. 'outline' draws
19
+ * just the stroke for a hollow ring effect on circles.
20
+ * - strokeWidth : number – stroke width for the 'outline' variant (default 1.5)
21
+ * - haloSize : number – if > 0, draws a soft halo (translucent concentric
22
+ * circle) behind the marker. Outer radius = size + haloSize.
23
+ * - haloOpacity : number – opacity of the halo (default 0.25)
18
24
  * - onMarkerClick : function – optional click handler (receives point data)
19
25
  * - animationPhase : string – current animation phase for drop-in effects
20
26
  * - staggerDelay : number – delay in ms between each marker animation
21
27
  * - staggerStartIndex : number – base index offset for staggered animation
22
28
  */
23
- declare function MarkerOverlay({ points, xScale, yScale, xBandwidth, shape, size, color, offsetY, text, fontSize, textColor, textOffsetY, onMarkerClick, animationPhase, staggerDelay, staggerStartIndex, }: {
29
+ declare function MarkerOverlay({ points, xScale, yScale, xBandwidth, shape, size, color, offsetY, text, fontSize, textColor, textOffsetY, variant, strokeWidth, haloSize, haloOpacity, onMarkerClick, animationPhase, staggerDelay, staggerStartIndex, }: {
24
30
  points?: never[] | undefined;
25
31
  xScale: any;
26
32
  yScale: any;
@@ -33,6 +39,10 @@ declare function MarkerOverlay({ points, xScale, yScale, xBandwidth, shape, size
33
39
  fontSize?: number | undefined;
34
40
  textColor?: any;
35
41
  textOffsetY?: number | undefined;
42
+ variant?: string | undefined;
43
+ strokeWidth?: number | undefined;
44
+ haloSize?: number | undefined;
45
+ haloOpacity?: number | undefined;
36
46
  onMarkerClick: any;
37
47
  animationPhase: any;
38
48
  staggerDelay?: number | undefined;
@@ -57,6 +67,10 @@ declare namespace MarkerOverlay {
57
67
  let fontSize: PropTypes.Requireable<number>;
58
68
  let textColor: PropTypes.Requireable<string>;
59
69
  let textOffsetY: PropTypes.Requireable<number>;
70
+ let variant: PropTypes.Requireable<string>;
71
+ let strokeWidth: PropTypes.Requireable<number>;
72
+ let haloSize: PropTypes.Requireable<number>;
73
+ let haloOpacity: PropTypes.Requireable<number>;
60
74
  let onMarkerClick: PropTypes.Requireable<(...args: any[]) => any>;
61
75
  let animationPhase: PropTypes.Requireable<string>;
62
76
  let staggerDelay: PropTypes.Requireable<number>;