@retikz/vanilla 0.3.0-alpha.1 → 0.3.0-alpha.2

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.
@@ -6,7 +6,7 @@ export type RenderInput = Scene | IR | Figure;
6
6
  * 两个入口共享的选项
7
7
  * @description `idPrefix`:SVG 资源 id 前缀,确定性(SSR↔客户端一致),缺省 `'r'`。`width`/`height`:写回根
8
8
  * `<svg>` 的显示尺寸(adapter 职责,`@retikz/render/svg` 只产 viewBox);缺省不写、由 CSS/容器定。其余继承 core
9
- * `CompileOptions`(`measureText` / `shapes` / `arrows` / `patterns` / `pathGenerators` / `padding` /
9
+ * `CompileOptions`(`measureText` / `shapes` / `arrows` / `patterns` / `pathGenerators` / `composites` / `padding` /
10
10
  * `precision` / `nodeDistance` / `onWarn`)——收 `ir` 时透传给 `compileToScene`,收 `scene` 时忽略。
11
11
  */
12
12
  export type CommonOptions = {
@@ -6,7 +6,7 @@ export type RenderInput = Scene | IR | Figure;
6
6
  * 两个入口共享的选项
7
7
  * @description `idPrefix`:SVG 资源 id 前缀,确定性(SSR↔客户端一致),缺省 `'r'`。`width`/`height`:写回根
8
8
  * `<svg>` 的显示尺寸(adapter 职责,`@retikz/render/svg` 只产 viewBox);缺省不写、由 CSS/容器定。其余继承 core
9
- * `CompileOptions`(`measureText` / `shapes` / `arrows` / `patterns` / `pathGenerators` / `padding` /
9
+ * `CompileOptions`(`measureText` / `shapes` / `arrows` / `patterns` / `pathGenerators` / `composites` / `padding` /
10
10
  * `precision` / `nodeDistance` / `onWarn`)——收 `ir` 时透传给 `compileToScene`,收 `scene` 时忽略。
11
11
  */
12
12
  export type CommonOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retikz/vanilla",
3
- "version": "0.3.0-alpha.1",
3
+ "version": "0.3.0-alpha.2",
4
4
  "description": "Framework-free runtime for retikz: mount Scene/IR to SVG DOM, or render to SVG string for SSR.",
5
5
  "type": "module",
6
6
  "author": "Pionpill",
@@ -39,8 +39,8 @@
39
39
  "dist/**/*"
40
40
  ],
41
41
  "dependencies": {
42
- "@retikz/core": "0.3.0-alpha.1",
43
- "@retikz/render": "0.3.0-alpha.1"
42
+ "@retikz/render": "0.3.0-alpha.2",
43
+ "@retikz/core": "0.3.0-alpha.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^25.6.0",
@@ -48,7 +48,8 @@
48
48
  "vite": "^8.0.10",
49
49
  "vite-plugin-dts": "^4.5.4",
50
50
  "vite-tsconfig-paths": "^6.1.1",
51
- "vitest": "^4.1.5"
51
+ "vitest": "^4.1.5",
52
+ "zod": "^3.23.8"
52
53
  },
53
54
  "scripts": {
54
55
  "dev": "vite",