fika-editor 3.0.5 → 3.0.6
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,7 +1,14 @@
|
|
|
1
|
-
import type { PPTChartElement, PPTCodeElement, PPTMermaidElement } from '../types/slides';
|
|
1
|
+
import type { PPTChartElement, PPTCodeElement, PPTLatexElement, PPTMermaidElement } from '../types/slides';
|
|
2
2
|
type Raster = ImageBitmap | HTMLCanvasElement;
|
|
3
3
|
export declare const getChartRaster: (element: PPTChartElement, colors: string[], textColor: string, lineColor: string, invalidate: () => void) => Raster | undefined;
|
|
4
4
|
export declare const getMermaidRaster: (element: PPTMermaidElement, invalidate: () => void) => Raster | undefined;
|
|
5
5
|
export declare const getCodeRaster: (element: PPTCodeElement, invalidate: () => void) => Raster | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* MathLive typeset of a formula element, mirroring `LatexContent`'s DOM
|
|
8
|
+
* (flex-centered box, 36px stage scaled uniformly into the authored box).
|
|
9
|
+
* html-to-image is used instead of a bare foreignObject because SVG-as-image
|
|
10
|
+
* cannot load the MathLive web fonts.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getLatexRaster: (element: PPTLatexElement, invalidate: () => void) => Raster | undefined;
|
|
6
13
|
export declare const clearSlideRasterResources: () => void;
|
|
7
14
|
export {};
|