@blueprint-chart/lib 2.12.0 → 2.13.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.
@@ -1,6 +1,7 @@
1
- import { LineSymbolConfig } from './types';
1
+ import { ChartOptions, LineSymbolConfig } from './types';
2
2
  import * as d3 from 'd3';
3
3
  export declare function shouldShowSymbol(index: number, total: number, showOn: LineSymbolConfig['showOn']): boolean;
4
+ export declare function shouldShowValueLabel(index: number, total: number, categoryIndex: number, points: ChartOptions['valueLabelPoints'], every?: number): boolean;
4
5
  export declare function renderLineSymbols(parent: d3.Selection<SVGGElement, unknown, null, undefined>, points: {
5
6
  cx: number;
6
7
  cy: number;
@@ -5,8 +5,7 @@ export interface ArcLabelDatum {
5
5
  startAngle: number;
6
6
  endAngle: number;
7
7
  color: string;
8
- percentage?: number;
9
- displayAsPercentage?: boolean;
8
+ valueText: string;
10
9
  showLabel?: boolean;
11
10
  showValue?: boolean;
12
11
  }
@@ -4,3 +4,4 @@ export interface ThemeEntry {
4
4
  description: string;
5
5
  }
6
6
  export declare function listThemes(): ThemeEntry[];
7
+ export declare function darkSchemeQuery(): MediaQueryList | null;
@@ -50,6 +50,7 @@ export interface AxisOptions {
50
50
  export interface FrameOptions {
51
51
  title?: string;
52
52
  description?: string;
53
+ altText?: string;
53
54
  byline?: string;
54
55
  note?: string;
55
56
  source?: string;
@@ -58,6 +59,8 @@ export interface FrameOptions {
58
59
  aspectRatio?: number;
59
60
  padding?: string;
60
61
  transparentBackground?: boolean;
62
+ getTheData?: boolean;
63
+ data?: ChartData;
61
64
  }
62
65
  export interface AreaFillConfig {
63
66
  from: string;
@@ -166,6 +169,8 @@ export interface ChartOptions {
166
169
  areaLines?: boolean;
167
170
  valueLabels?: boolean | 'percent';
168
171
  valueLabelPosition?: ValueLabelPosition;
172
+ valueLabelPoints?: SymbolShowOn | 'everyN';
173
+ valueLabelEvery?: number;
169
174
  tooltips?: boolean;
170
175
  crosshair?: boolean;
171
176
  crosshairDirection?: CrosshairDirection;
@@ -251,6 +256,8 @@ export interface ChartTypeOptions {
251
256
  horizontalRangeMax: string;
252
257
  valueLabels: boolean | 'percent';
253
258
  valueLabelPosition: string;
259
+ valueLabelPoints: string;
260
+ valueLabelEvery: string;
254
261
  tooltips: boolean;
255
262
  crosshair: boolean;
256
263
  crosshairDirection: string;
package/dist/embed.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, o as n, r, t as i } from "./runtime-D_vHKSyR.js";
1
+ import { a as e, i as t, o as n, r, t as i } from "./runtime-CT02Shsd.js";
2
2
  export { r as ERROR_MESSAGE, t as RESIZE_MESSAGE, i as buildSrcdoc, e as isErrorMessage, n as readResizeHeight };
package/dist/index.d.ts CHANGED
@@ -47,5 +47,6 @@ export { ChartParseError, PngBrowserUnsupportedError, MissingNodeRenderDepsError
47
47
  export { buildFrameSvg } from './render';
48
48
  export type { FrameSvgLayout, FrameSvgTextBlock, FrameSvgPlot, ChartAccessibility } from './render';
49
49
  export { buildSrcdoc } from './runtime/runtime';
50
+ export { RESIZE_MESSAGE } from './runtime/messages';
50
51
  export { SceneTransition, getSceneTransition, featureJoin, snapshotLiveAttrs, BC_TRANSITION_NAME, } from './transitions';
51
52
  export type { CommitOptions, TransitionMode, SceneTransitionState, FeatureRole, FeatureJoinConfig, AttrMap, AttrValue, } from './transitions';