@opendata-ai/openchart-core 7.2.2 → 7.2.3

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.
package/dist/index.d.ts CHANGED
@@ -813,6 +813,10 @@ interface RefLineAnnotation extends AnnotationBase {
813
813
  labelOffset?: AnnotationOffset;
814
814
  /** Anchor direction for the reference line label. */
815
815
  labelAnchor?: AnnotationAnchor;
816
+ /** Label font size in pixels. Default: 11. */
817
+ fontSize?: number;
818
+ /** Label font weight. Default: 400. */
819
+ fontWeight?: number;
816
820
  }
817
821
  /** Discriminated union of all annotation types. */
818
822
  type Annotation = TextAnnotation | RangeAnnotation | RefLineAnnotation;
@@ -875,6 +879,10 @@ interface ThemeConfig {
875
879
  small?: number;
876
880
  /** Axis tick labels. Default: 11. */
877
881
  axisTick?: number;
882
+ /** KPI metric uppercase label. Default: 10. */
883
+ metricLabel?: number;
884
+ /** KPI metric primary value. Default: 22. Delta/secondary derive from this. */
885
+ metricValue?: number;
878
886
  };
879
887
  };
880
888
  /** Spacing overrides in pixels. */
@@ -2222,6 +2230,11 @@ interface ThemeFontSizes {
2222
2230
  small: number;
2223
2231
  /** Axis tick label font size in pixels. */
2224
2232
  axisTick: number;
2233
+ /** KPI metric uppercase label font size in pixels. */
2234
+ metricLabel: number;
2235
+ /** KPI metric primary value font size in pixels. The delta and secondary
2236
+ * values derive from this (each ~0.55x), so scaling this scales the whole cell. */
2237
+ metricValue: number;
2225
2238
  }
2226
2239
  /** Font weight presets. */
2227
2240
  interface ThemeFontWeights {
package/dist/index.js CHANGED
@@ -839,7 +839,9 @@ var DEFAULT_THEME = {
839
839
  subtitle: 14,
840
840
  body: 13,
841
841
  small: 11,
842
- axisTick: 11
842
+ axisTick: 11,
843
+ metricLabel: 10,
844
+ metricValue: 22
843
845
  },
844
846
  weights: {
845
847
  normal: 450,