@blueprint-chart/lib 0.1.22 → 0.1.24

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.
@@ -0,0 +1,13 @@
1
+ /** Opacity applied to non-targeted marks when a highlight is active. */
2
+ export declare const HIGHLIGHT_DIM_OPACITY = 0.35;
3
+ /** Build the set of highlighted target keys from the DSL highlight directives. */
4
+ export declare function highlightTargetSet(highlights?: {
5
+ target: string;
6
+ }[]): Set<string>;
7
+ /**
8
+ * Opacity for a mark given the active highlight targets:
9
+ * no targets → `base`; this key targeted → `base`; otherwise → HIGHLIGHT_DIM_OPACITY.
10
+ * `base` lets area/line charts pass their own fill/stroke opacity for the
11
+ * emphasised mark while non-targeted marks dim to the shared constant.
12
+ */
13
+ export declare function highlightOpacity(targets: Set<string>, key: string, base?: number): number;