@formulaxjs/renderer-kity 0.3.0 → 0.3.1

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,17 @@
1
+ import { FormulaRenderOptions, FormulaRenderer, FormulaRenderResult } from '@formulaxjs/renderer';
2
+ import { KityEditorAssets } from '@formulaxjs/kity-runtime';
3
+
4
+ interface KityFormulaRenderOptions extends FormulaRenderOptions {
5
+ height?: number | string;
6
+ assets?: Partial<KityEditorAssets>;
7
+ assetCacheKey?: string;
8
+ }
9
+
10
+ declare function createKityFormulaRenderer(defaults?: KityFormulaRenderOptions): FormulaRenderer;
11
+ declare function renderLatexToSvgMarkup(latex: string, options?: KityFormulaRenderOptions): Promise<FormulaRenderResult>;
12
+
13
+ declare function findKityFormulaSvg(root: HTMLElement): SVGSVGElement | null;
14
+ declare function serializeKityFormulaFromRoot(root: HTMLElement): string;
15
+ declare function waitForKityFormulaSvgLayout(root: HTMLElement): Promise<void>;
16
+
17
+ export { type KityFormulaRenderOptions, createKityFormulaRenderer, findKityFormulaSvg, renderLatexToSvgMarkup, serializeKityFormulaFromRoot, waitForKityFormulaSvgLayout };
@@ -0,0 +1,17 @@
1
+ import { FormulaRenderOptions, FormulaRenderer, FormulaRenderResult } from '@formulaxjs/renderer';
2
+ import { KityEditorAssets } from '@formulaxjs/kity-runtime';
3
+
4
+ interface KityFormulaRenderOptions extends FormulaRenderOptions {
5
+ height?: number | string;
6
+ assets?: Partial<KityEditorAssets>;
7
+ assetCacheKey?: string;
8
+ }
9
+
10
+ declare function createKityFormulaRenderer(defaults?: KityFormulaRenderOptions): FormulaRenderer;
11
+ declare function renderLatexToSvgMarkup(latex: string, options?: KityFormulaRenderOptions): Promise<FormulaRenderResult>;
12
+
13
+ declare function findKityFormulaSvg(root: HTMLElement): SVGSVGElement | null;
14
+ declare function serializeKityFormulaFromRoot(root: HTMLElement): string;
15
+ declare function waitForKityFormulaSvgLayout(root: HTMLElement): Promise<void>;
16
+
17
+ export { type KityFormulaRenderOptions, createKityFormulaRenderer, findKityFormulaSvg, renderLatexToSvgMarkup, serializeKityFormulaFromRoot, waitForKityFormulaSvgLayout };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formulaxjs/renderer-kity",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "require": "./dist/index.cjs"
28
28
  }
29
29
  },
30
- "unpkg": "./dist/browser/index.global.js",
30
+ "unpkg": "./dist/index.global.js",
31
31
  "files": [
32
32
  "dist"
33
33
  ],
@@ -35,8 +35,8 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@formulaxjs/renderer": "0.2.0",
39
- "@formulaxjs/kity-runtime": "0.5.0"
38
+ "@formulaxjs/renderer": "0.2.1",
39
+ "@formulaxjs/kity-runtime": "0.5.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsup --config ../../tsup.config.mjs",