fika-editor 3.0.42 → 3.0.44

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.
@@ -203,6 +203,7 @@ export declare const useSlidesStore: import("zustand").UseBoundStore<Omit<import
203
203
  options?: {
204
204
  lineSmooth?: boolean;
205
205
  stack?: boolean;
206
+ fontSize?: number;
206
207
  };
207
208
  outline?: {
208
209
  style?: import("../types/slides").LineStyleType;
@@ -986,6 +987,7 @@ export declare const useSlidesStore: import("zustand").UseBoundStore<Omit<import
986
987
  options?: {
987
988
  lineSmooth?: boolean;
988
989
  stack?: boolean;
990
+ fontSize?: number;
989
991
  };
990
992
  outline?: {
991
993
  style?: import("../types/slides").LineStyleType;
@@ -1824,6 +1826,7 @@ export declare const useSlidesStore: import("zustand").UseBoundStore<Omit<import
1824
1826
  options?: {
1825
1827
  lineSmooth?: boolean;
1826
1828
  stack?: boolean;
1829
+ fontSize?: number;
1827
1830
  };
1828
1831
  outline?: {
1829
1832
  style?: import("../types/slides").LineStyleType;
@@ -2607,6 +2610,7 @@ export declare const useSlidesStore: import("zustand").UseBoundStore<Omit<import
2607
2610
  options?: {
2608
2611
  lineSmooth?: boolean;
2609
2612
  stack?: boolean;
2613
+ fontSize?: number;
2610
2614
  };
2611
2615
  outline?: {
2612
2616
  style?: import("../types/slides").LineStyleType;
@@ -345,6 +345,11 @@ export type ChartType = 'bar' | 'column' | 'line' | 'pie' | 'ring' | 'area' | 'r
345
345
  export interface ChartOptions {
346
346
  lineSmooth?: boolean;
347
347
  stack?: boolean;
348
+ /**
349
+ * Label font size in slide px — axis ticks, legend, pie/radar labels.
350
+ * Legend swatches, gaps and margins scale with it. Defaults to 12.
351
+ */
352
+ fontSize?: number;
348
353
  }
349
354
  export interface ChartData {
350
355
  labels: string[];
@@ -3,6 +3,7 @@ import type { BarSeriesOption, LineSeriesOption, PieSeriesOption, ScatterSeriesO
3
3
  import type { GridComponentOption, LegendComponentOption, RadarComponentOption } from 'echarts/components';
4
4
  import type { ChartData, ChartType } from '../../../../types/slides';
5
5
  type EChartOption = ComposeOption<BarSeriesOption | LineSeriesOption | PieSeriesOption | ScatterSeriesOption | RadarSeriesOption | GridComponentOption | LegendComponentOption | RadarComponentOption>;
6
+ export declare const DEFAULT_CHART_FONT_SIZE = 12;
6
7
  export declare const expandChartThemeColors: (themeColors: string[]) => string[];
7
8
  export interface ChartOptionPayload {
8
9
  type: ChartType;
@@ -12,6 +13,9 @@ export interface ChartOptionPayload {
12
13
  lineColor?: string;
13
14
  lineSmooth?: boolean;
14
15
  stack?: boolean;
16
+ fontSize?: number;
17
+ /** Rendered chart width in px — lets category labels wrap inside their band. */
18
+ width?: number;
15
19
  }
16
- export declare const getChartOption: ({ type, data, themeColors, textColor, lineColor, lineSmooth, stack }: ChartOptionPayload) => EChartOption | null;
20
+ export declare const getChartOption: ({ type, data, themeColors, textColor, lineColor, lineSmooth, stack, fontSize, width }: ChartOptionPayload) => EChartOption | null;
17
21
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.0.42",
3
+ "version": "3.0.44",
4
4
  "description": "Fika presentation editor embed bundle with a typed agentic bridge.",
5
5
  "type": "module",
6
6
  "main": "dist/embed/fika-embed.js",