@akairos/typeset-studio 0.2.1 → 0.2.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.
- package/README.md +2 -3
- package/dist/assets/index-DDeEGeHD.js +317 -0
- package/dist/index.html +1 -1
- package/dist/lib/adapter.js +82 -234
- package/dist/lib/index.js +82 -234
- package/package.json +2 -5
- package/src/adapter.ts +85 -267
- package/src/core/canvas-draw.ts +9 -9
- package/src/core/engine.ts +14 -22
- package/src/core/pretext.ts +0 -8
- package/src/core/template.ts +1 -1
- package/src/core/typography.ts +0 -14
- package/src/index.ts +2 -2
- package/src/server/index.ts +1 -1
- package/src/server/routes/fonts.ts +1 -1
- package/src/server/routes/templates.ts +4 -14
- package/src/web/App.tsx +0 -2
- package/src/web/components/EditorSidebar.tsx +24 -48
- package/src/web/components/Header.tsx +1 -1
- package/src/web/components/TemplateModal.tsx +3 -14
- package/src/web/hooks/useTypeset.ts +21 -69
- package/dist/assets/index-Dpnz-F2g.js +0 -317
package/README.md
CHANGED
|
@@ -80,7 +80,6 @@
|
|
|
80
80
|
| **`react` / `react-dom`** | `^19.0.0` | 现代化声明式组件与状态管理 |
|
|
81
81
|
| **`tailwindcss`** | `^3.4.17` | 高性能极简黑白美学原子化样式 |
|
|
82
82
|
| **`lucide-react`** | `^1.16.0` | 精致图标库 |
|
|
83
|
-
| **`html-to-image`** | `^1.11.11` | 前端画布超清 2x 导出 |
|
|
84
83
|
|
|
85
84
|
---
|
|
86
85
|
|
|
@@ -148,7 +147,7 @@ const STUDIO_URL = process.env.TYPESET_STUDIO_URL || "http://localhost:4890";
|
|
|
148
147
|
|
|
149
148
|
export const typesetStudioAdapter: ImageRenderPlugin = {
|
|
150
149
|
name: "typeset-studio",
|
|
151
|
-
version: "0.
|
|
150
|
+
version: "0.2.2",
|
|
152
151
|
|
|
153
152
|
doctor: async () => {
|
|
154
153
|
try {
|
|
@@ -238,7 +237,7 @@ export default typesetStudioAdapter;
|
|
|
238
237
|
### 1. 服务健康检查 (`GET /api/health`)
|
|
239
238
|
```bash
|
|
240
239
|
curl http://localhost:4890/api/health
|
|
241
|
-
# {"status":"ok","name":"Typeset Studio Server","version":"0.
|
|
240
|
+
# {"status":"ok","name":"Typeset Studio Server","version":"0.2.2"}
|
|
242
241
|
```
|
|
243
242
|
|
|
244
243
|
### 2. 槽位解析与排版 (`POST /api/render`)
|