CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.
TypeScript ai-agentsai-diagramai-presentationbomcadcanvasdiagramdiagram-generatordrawioflowchartinfographicspptppt-generatorpresentation-generatorreactsvgedittext-to-diagramtypescriptworkflow
readme_fix
codingFeng101e738b3ed047c
diff --git a/README.md b/README.mdindex 71e57af..4619a18 100644--- a/README.md+++ b/README.md@@ -1,192 +1,211 @@<p align="center">- <img src="public/logo.png" alt="CanvasAnvil hero" width="100%" />+ <img src="public/logo.png" alt="CanvasAnvil hero" width="92%" /></p><h1 align="center">CanvasAnvil</h1><p align="center">- <strong>A multi-canvas AI creation platform for Flow, CAD, PPT, Poster, Infographic, and Product storytelling.</strong>+ <strong>AI-powered multi-canvas creation for Flow, CAD, PPT, Poster, Infographic, and Product storytelling.</strong></p><p align="center">- <a href="README.md">English</a> |- <a href="README.zh-CN.md">Simplified Chinese</a>+ <img alt="version" src="https://img.shields.io/badge/version-v2.0.0-blue" />+ <img alt="license" src="https://img.shields.io/badge/license-AGPL--3.0-green" />+ <img alt="React" src="https://img.shields.io/badge/React-18.3-61dafb?logo=react&logoColor=white" />+ <img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5.8-3178c6?logo=typescript&logoColor=white" />+ <img alt="Vite" src="https://img.shields.io/badge/Vite-6.3-646cff?logo=vite&logoColor=white" />+ <img alt="workspaces" src="https://img.shields.io/badge/workspaces-6-orange" />+ <img alt="PRs welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen" /></p><p align="center">- <img alt="version" src="https://img.shields.io/badge/version-v2.0.0-2563eb?style=for-the-badge" />- <img alt="workspaces" src="https://img.shields.io/badge/workspaces-6-0f766e?style=for-the-badge" />- <img alt="license" src="https://img.shields.io/badge/license-AGPL--3.0-f97316?style=for-the-badge" />- <img alt="stack" src="https://img.shields.io/badge/stack-Vite%20%2B%20React%20%2B%20TypeScript-7c3aed?style=for-the-badge" />+ <a href="#creative-canvases">Canvases</a> ·+ <a href="#skills">Skills</a> ·+ <a href="#ppt-canvas">PPT Showcase</a> ·+ <a href="#quick-start">Quick Start</a> ·+ <a href="README.zh-CN.md">Chinese</a></p>> CanvasAnvil brings diagramming, interior design workflows, presentation production, poster creation, infographic composition, and product storytelling into one unified workspace.-## Release+## ✦ ReleaseCurrent release: `v2.0.0`-- `v2.0.0`: added Poster, Infographic, and Product canvases, added local workflow skills, embedded the editable PPT editor, and expanded compatibility across more models and providers-- `v1.0.2`: moved PPT to an image-first workflow and deferred OCR/text refill to editable PPT export-- `v1.0.1`: improved persistence stability for PPT and CAD assets--## What's New in v2.0.0--- Added three new canvases: `Poster`, `Infographic`, and `Product`-- Embedded `pptist-lab` directly inside the PPT workspace for editable PPT authoring-- Updated editable PPT export to run through `text box review -> text extraction -> start editing`-- Kept both the original slide image and the `textless background` version available during PPT review-- Improved extracted text mapping so more of the original size, color, weight, spacing, alignment, and line-height carry into the embedded editor-- Expanded compatibility across more AI models and providers for more flexible workspace configuration- Added local workflow skills for `Flow`, `CAD`, `PPT`, `Poster`, `Infographic`, and `Product`-- Added script-backed skill workflows for diagram export, CAD bundles, PPT template/deck generation, image generation, PDF export, and image-based PPT export-- Standardized skill image-generation configuration through `config/image-provider.json`-- Updated CAD skill BOM output to `cad_bom.csv`-- Updated Flow skill bundles to skip standalone HTML preview generation by default+- Added the embedded PPT editor for editable presentation workflows+- Improved Flow generation continuity so oversized diagrams can continue after truncation+- Expanded canvas editing with better partial modification workflows+- Added built-in icon-library support for richer visual composition-## Example Assets+## ◇ Creative Canvases-Each canvas has a dedicated example-asset directory under `public/examples/`.--| Canvas | Example directory | Suggested naming |+| Workspace | Focus | Typical output || --- | --- | --- |-| `Flow` | `public/examples/flow/` | `01.png`, `02.png`, `03.png`, `04.png` |-| `CAD` | `public/examples/cad/` | `01.png` through `09.png` |-| `PPT` | `public/examples/ppt/` | `01.png` through `09.png` |-| `Poster` | `public/examples/poster/` | `01.png` through `04.png` |-| `Infographic` | `public/examples/infographic/` | `01.png` through `04.png` |-| `Product` | `public/examples/product/` | `01.png` through `04.png` |+| `Flow` | structured diagram generation and partial editing | flowcharts, architecture diagrams, logic diagrams |+| `CAD` | interior planning, drawing coordination, and delivery packaging | concept boards, 2D drawings, render briefs, material lists |+| `PPT` | structured presentation generation and mixed export workflows | presentations, pitch decks, editable decks, report slides |+| `Poster` | single-frame visual communication | event posters, promotional posters, campaign key visuals |+| `Infographic` | information design and visual explanation | explainer graphics, thematic information boards, comparison charts |+| `Product` | product storytelling and feature communication | product showcase pages, selling-point visuals, launch pages |-Keep example images lightweight and web-ready. The README showcase tables read from these paths.+## ⚙ Skills-## Workspace Overview+CanvasAnvil includes dedicated local skills for each canvas so workflows stay opinionated, repeatable, and easier to maintain.-| Workspace | Focus | Typical output |-| --- | --- | --- |-| `Flow` | structured diagram generation and partial editing | flowcharts, architecture diagrams, logic diagrams |-| `CAD` | interior workflow planning and spatial analysis | boards, 2D plans, render tasks, BOM |-| `PPT` | structured slide generation and editable export | presentations, pitch decks, visual slides |-| `Poster` | single-surface visual composition | posters, key visuals, campaign graphics |-| `Infographic` | structured visual storytelling | data summaries, explainers, information boards |-| `Product` | product-intro storytelling | feature pages, launch visuals, product narratives |+- `flow-skill` · Diagram generation and packaging+ Outputs clean diagram assets and skips standalone HTML preview by default.+- `cad-skill` · Interior-delivery workflow+ Exports drawing bundles and a CSV material list for downstream delivery.+- `ppt-skill` · Full presentation production+ Enforces outline review before generation and supports editable PPT, PDF, and image-based PPT output.+- `poster-skill` · Single-frame campaign visuals+ Focuses on strong composition, typography, and poster-ready output.+- `infographic-skill` · Information-to-visual translation+ Organizes dense content into readable infographic layouts.+- `product-skill` · Feature-led product storytelling+ Builds showcase visuals around positioning, selling points, and launch messaging.++All skills use the host text model by default. Only image generation requires explicit provider configuration.-## Flow Canvas+## ◎ Flow Canvas-Turn structured prompts into clean diagrams, then keep iterating on layout, labels, and node relationships inside the same canvas.+Turn structured prompts into clear diagrams for research, systems, delivery plans, and teaching maps, then keep refining layout, labels, and node relationships in one place.### Showcase<table><tr>- <td width="50%" align="center"><img src="public/examples/flow/01.png" alt="Flow example 1" width="100%" /><br/>System architecture</td>- <td width="50%" align="center"><img src="public/examples/flow/02.png" alt="Flow example 2" width="100%" /><br/>Business process</td>+ <td width="50%" align="center"><img src="public/examples/flow/01.png" alt="Flow example: academic research framework" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>Academic Research Framework</strong></td>+ <td width="50%" align="center"><img src="public/examples/flow/02.png" alt="Flow example: intelligent Q&A system architecture" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>Intelligent Q&A System Architecture</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/flow/03.png" alt="Flow example 3" width="100%" /><br/>Data pipeline</td>- <td width="50%" align="center"><img src="public/examples/flow/04.png" alt="Flow example 4" width="100%" /><br/>Logic mapping</td>+ <td width="50%" align="center"><img src="public/examples/flow/03.png" alt="Flow example: project implementation roadmap" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>Project Implementation Roadmap</strong></td>+ <td width="50%" align="center"><img src="public/examples/flow/04.png" alt="Flow example: course design mind map" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>Course Design Mind Map</strong></td></tr></table>-## Interior Design Canvas+## ◫ Interior Design Canvas-Build interior-design workflows that connect planning boards, 2D layouts, material thinking, render orchestration, and BOM-oriented outputs.+Move from concept framing to drawable outputs by combining planning boards, 2D layouts, render briefs, and material-list delivery in one workflow.### Showcase<table><tr>- <td width="33.33%" align="center"><img src="public/examples/cad/01.png" alt="CAD example 1" width="100%" /><br/>Planning board</td>- <td width="33.33%" align="center"><img src="public/examples/cad/02.png" alt="CAD example 2" width="100%" /><br/>2D layout</td>- <td width="33.33%" align="center"><img src="public/examples/cad/03.png" alt="CAD example 3" width="100%" /><br/>Living room concept</td>+ <td width="33.33%" align="center"><img src="public/examples/cad/01.png" alt="CAD renovation plan layout" width="100%" /><br/><strong>Renovation Plan Layout</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/02.png" alt="CAD floor finish plan" width="100%" /><br/><strong>Floor Finish Plan</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/03.png" alt="CAD reflected ceiling plan" width="100%" /><br/><strong>Reflected Ceiling Plan</strong></td></tr><tr>- <td width="33.33%" align="center"><img src="public/examples/cad/04.png" alt="CAD example 4" width="100%" /><br/>Material board</td>- <td width="33.33%" align="center"><img src="public/examples/cad/05.png" alt="CAD example 5" width="100%" /><br/>Lighting strategy</td>- <td width="33.33%" align="center"><img src="public/examples/cad/06.png" alt="CAD example 6" width="100%" /><br/>Render task</td>+ <td width="33.33%" align="center"><img src="public/examples/cad/04.png" alt="CAD wall setting out plan" width="100%" /><br/><strong>Wall Setting-Out Plan</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/05.png" alt="CAD MEP plan" width="100%" /><br/><strong>MEP Coordination Plan</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/06.png" alt="CAD elevation index and interior elevations" width="100%" /><br/><strong>Elevation Index + Interior Elevations</strong></td></tr><tr>- <td width="33.33%" align="center"><img src="public/examples/cad/07.png" alt="CAD example 7" width="100%" /><br/>Functional zoning</td>- <td width="33.33%" align="center"><img src="public/examples/cad/08.png" alt="CAD example 8" width="100%" /><br/>BOM-oriented summary</td>- <td width="33.33%" align="center"><img src="public/examples/cad/09.png" alt="CAD example 9" width="100%" /><br/>Final presentation board</td>+ <td width="33.33%" align="center"><img src="public/examples/cad/07.png" alt="CAD detail drawings" width="100%" /><br/><strong>Detail Drawings</strong></td>+ <td width="33.33%" align="center"></td>+ <td width="33.33%" align="center"></td></tr></table>-## PPT Canvas+## ▣ PPT Canvas-Generate structured decks, iterate in an image-first workflow, review text boxes before extraction, and continue editing inside the embedded PPT editor.+Generate full presentations through a controlled pipeline: outline first, visual production second, then export as editable PPT, PDF, or image-based PPT.### Showcase<table><tr>- <td width="33.33%" align="center"><img src="public/examples/ppt/01.png" alt="PPT example 1" width="100%" /><br/>Cover slide</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/02.png" alt="PPT example 2" width="100%" /><br/>Agenda slide</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/03.png" alt="PPT example 3" width="100%" /><br/>Business layout</td>- </tr>- <tr>- <td width="33.33%" align="center"><img src="public/examples/ppt/04.png" alt="PPT example 4" width="100%" /><br/>Data storytelling</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/05.png" alt="PPT example 5" width="100%" /><br/>Teaching slide</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/06.png" alt="PPT example 6" width="100%" /><br/>Tech presentation</td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt1/01.png" alt="AI content creation workflow slide 1" width="100%" /></td><td><img src="public/examples/ppt/ppt1/02.png" alt="AI content creation workflow slide 2" width="100%" /></td><td><img src="public/examples/ppt/ppt1/03.png" alt="AI content creation workflow slide 3" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt1/04.png" alt="AI content creation workflow slide 4" width="100%" /></td><td><img src="public/examples/ppt/ppt1/05.png" alt="AI content creation workflow slide 5" width="100%" /></td><td><img src="public/examples/ppt/ppt1/06.png" alt="AI content creation workflow slide 6" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt1/07.png" alt="AI content creation workflow slide 7" width="100%" /></td><td><img src="public/examples/ppt/ppt1/08.png" alt="AI content creation workflow slide 8" width="100%" /></td><td><img src="public/examples/ppt/ppt1/09.png" alt="AI content creation workflow slide 9" width="100%" /></td></tr>+ </table>+ <strong>AI Content Creation Workflow</strong>+ </td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt2/01.png" alt="Intelligent collaboration growth slide 1" width="100%" /></td><td><img src="public/examples/ppt/ppt2/02.png" alt="Intelligent collaboration growth slide 2" width="100%" /></td><td><img src="public/examples/ppt/ppt2/03.png" alt="Intelligent collaboration growth slide 3" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt2/04.png" alt="Intelligent collaboration growth slide 4" width="100%" /></td><td><img src="public/examples/ppt/ppt2/05.png" alt="Intelligent collaboration growth slide 5" width="100%" /></td><td><img src="public/examples/ppt/ppt2/06.png" alt="Intelligent collaboration growth slide 6" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt2/07.png" alt="Intelligent collaboration growth slide 7" width="100%" /></td><td><img src="public/examples/ppt/ppt2/08.png" alt="Intelligent collaboration growth slide 8" width="100%" /></td><td><img src="public/examples/ppt/ppt2/09.png" alt="Intelligent collaboration growth slide 9" width="100%" /></td></tr>+ </table>+ <strong>Intelligent Collaboration Growth</strong>+ </td></tr><tr>- <td width="33.33%" align="center"><img src="public/examples/ppt/07.png" alt="PPT example 7" width="100%" /><br/>Product deck</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/08.png" alt="PPT example 8" width="100%" /><br/>Infographic slide</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/09.png" alt="PPT example 9" width="100%" /><br/>Editable export result</td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt3/01.png" alt="AI-driven business innovation slide 1" width="100%" /></td><td><img src="public/examples/ppt/ppt3/02.png" alt="AI-driven business innovation slide 2" width="100%" /></td><td><img src="public/examples/ppt/ppt3/03.png" alt="AI-driven business innovation slide 3" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt3/04.png" alt="AI-driven business innovation slide 4" width="100%" /></td><td><img src="public/examples/ppt/ppt3/05.png" alt="AI-driven business innovation slide 5" width="100%" /></td><td><img src="public/examples/ppt/ppt3/06.png" alt="AI-driven business innovation slide 6" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt3/07.png" alt="AI-driven business innovation slide 7" width="100%" /></td><td><img src="public/examples/ppt/ppt3/08.png" alt="AI-driven business innovation slide 8" width="100%" /></td><td><img src="public/examples/ppt/ppt3/09.png" alt="AI-driven business innovation slide 9" width="100%" /></td></tr>+ </table>+ <strong>AI-Driven Business Innovation</strong>+ </td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt4/01.png" alt="Low-carbon smart campus transformation slide 1" width="100%" /></td><td><img src="public/examples/ppt/ppt4/02.png" alt="Low-carbon smart campus transformation slide 2" width="100%" /></td><td><img src="public/examples/ppt/ppt4/03.png" alt="Low-carbon smart campus transformation slide 3" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt4/04.png" alt="Low-carbon smart campus transformation slide 4" width="100%" /></td><td><img src="public/examples/ppt/ppt4/05.png" alt="Low-carbon smart campus transformation slide 5" width="100%" /></td><td><img src="public/examples/ppt/ppt4/06.png" alt="Low-carbon smart campus transformation slide 6" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt4/07.png" alt="Low-carbon smart campus transformation slide 7" width="100%" /></td><td><img src="public/examples/ppt/ppt4/08.png" alt="Low-carbon smart campus transformation slide 8" width="100%" /></td><td><img src="public/examples/ppt/ppt4/09.png" alt="Low-carbon smart campus transformation slide 9" width="100%" /></td></tr>+ </table>+ <strong>Low-Carbon Smart Campus Transformation</strong>+ </td></tr></table>-## Poster Canvas+## ✺ Poster Canvas-Create single-frame campaign visuals with fast composition, strong typography, and poster-oriented layout control.+Create high-impact single-frame visuals built for announcements, campaigns, events, and brand moments where composition has to carry fast.### Showcase<table><tr>- <td width="50%" align="center"><img src="public/examples/poster/01.png" alt="Poster example 1" width="100%" /><br/>Campaign poster</td>- <td width="50%" align="center"><img src="public/examples/poster/02.png" alt="Poster example 2" width="100%" /><br/>Event poster</td>+ <td width="50%" align="center"><img src="public/examples/poster/01.png" alt="Poster example: Youth Design Forum 2026" width="100%" /><br/><strong>Youth Design Forum 2026</strong></td>+ <td width="50%" align="center"><img src="public/examples/poster/02.png" alt="Poster example: Jiangnan Guochao Culture Festival" width="100%" /><br/><strong>Jiangnan Guochao Culture Festival</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/poster/03.png" alt="Poster example 3" width="100%" /><br/>Brand visual</td>- <td width="50%" align="center"><img src="public/examples/poster/04.png" alt="Poster example 4" width="100%" /><br/>Launch poster</td>+ <td width="50%" align="center"><img src="public/examples/poster/03.png" alt="Poster example: Urban Summer Indie Music Festival" width="100%" /><br/><strong>Urban Summer Indie Music Festival</strong></td>+ <td width="50%" align="center"><img src="public/examples/poster/04.png" alt="Poster example: Future Intelligent Technology Summit 2026" width="100%" /><br/><strong>Future Intelligent Technology Summit 2026</strong></td></tr></table>-## Infographic Canvas+## ◈ Infographic Canvas-Translate information-heavy content into structured visual narratives that stay readable and presentation-ready.+Translate dense information into visual explanation boards that stay readable, structured, and presentation-ready.### Showcase<table><tr>- <td width="50%" align="center"><img src="public/examples/infographic/01.png" alt="Infographic example 1" width="100%" /><br/>Data summary</td>- <td width="50%" align="center"><img src="public/examples/infographic/02.png" alt="Infographic example 2" width="100%" /><br/>Process explainer</td>+ <td width="50%" align="center"><img src="public/examples/infographic/01.png" alt="Infographic example: AI computing power growth trend" width="100%" /><br/><strong>AI Computing Power Growth Trend</strong></td>+ <td width="50%" align="center"><img src="public/examples/infographic/02.png" alt="Infographic example: smart car user priorities" width="100%" /><br/><strong>Smart Car User Priorities</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/infographic/03.png" alt="Infographic example 3" width="100%" /><br/>Comparison board</td>- <td width="50%" align="center"><img src="public/examples/infographic/04.png" alt="Infographic example 4" width="100%" /><br/>Timeline layout</td>+ <td width="50%" align="center"><img src="public/examples/infographic/03.png" alt="Infographic example: healthy daily routine guide" width="100%" /><br/><strong>Healthy Daily Routine Guide</strong></td>+ <td width="50%" align="center"><img src="public/examples/infographic/04.png" alt="Infographic example: low-carbon lifestyle guide" width="100%" /><br/><strong>Low-Carbon Lifestyle Guide</strong></td></tr></table>-## Product Canvas+## ⬢ Product Canvas-Present products through feature-focused layouts that combine specifications, key selling points, and hero imagery.+Present products through feature-led layouts that combine hero imagery, selling points, and narrative structure for launch and showcase use.### Showcase<table><tr>- <td width="50%" align="center"><img src="public/examples/product/01.png" alt="Product example 1" width="100%" /><br/>Product hero page</td>- <td width="50%" align="center"><img src="public/examples/product/02.png" alt="Product example 2" width="100%" /><br/>Feature comparison</td>+ <td width="50%" align="center"><img src="public/examples/product/01.png" alt="Product example: wireless noise-cancelling earbuds" width="100%" /><br/><strong>Wireless Noise-Cancelling Earbuds</strong></td>+ <td width="50%" align="center"><img src="public/examples/product/02.png" alt="Product example: flagship gaming laptop" width="100%" /><br/><strong>Flagship Gaming Laptop</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/product/03.png" alt="Product example 3" width="100%" /><br/>Spec sheet</td>- <td width="50%" align="center"><img src="public/examples/product/04.png" alt="Product example 4" width="100%" /><br/>Launch narrative</td>+ <td width="50%" align="center"><img src="public/examples/product/03.png" alt="Product example: brightening essence skincare" width="100%" /><br/><strong>Brightening Essence Skincare</strong></td>+ <td width="50%" align="center"><img src="public/examples/product/04.png" alt="Product example: intelligent electric SUV" width="100%" /><br/><strong>Intelligent Electric SUV</strong></td></tr></table>-## Quick Start+## ▶ Quick Start1. Install dependencies@@ -196,23 +215,16 @@ npm install2. Start local development-CanvasAnvil uses two dev services during editable PPT work:--- Main app on `5173`-- `pptist-lab` on `5174`+CanvasAnvil has both a web app and a local API service. Use the combined dev command so the frontend proxy routes and local API endpoints are available.```bash-npm run dev--cd pptist-lab-npm install-npm run dev -- --host 127.0.0.1 --port 5174+npm run dev:full```Default URLs:-- Main app: `http://127.0.0.1:5173`-- PPT editor service: `http://127.0.0.1:5174`+- Web app: `http://127.0.0.1:5173`+- API service: `http://127.0.0.1:8080`3. Run type checks@@ -226,34 +238,27 @@ npm run checknpm run build```-## Useful Scripts+## ⌘ Common Commands-- `npm run dev`: start the main Vite app on the root project-- `npm run dev:full`: start the web and API dev servers together-- `npm run dev:web`: start the frontend dev server-- `npm run dev:api`: start the API dev server-- `cd pptist-lab && npm run dev -- --host 127.0.0.1 --port 5174`: start the embedded PPT editor service+- `npm run dev:full`: start the web app and local API service together- `npm run check`: run TypeScript checks-- `npm run lint`: run ESLint-- `npm run build`: build for production-- `npm run preview`: preview the built app-- `npm start`: run the API server+- `npm run build`: build the production bundle-## Development Notes+## ☰ Development Notes-- AI configuration is read from local app settings and can be routed to custom providers-- PPT local development depends on the local `/api/ppt-ai` proxy route+- AI configuration is read from local app settings; image-generation workflows use the configured image provider+- Local development depends on the API service for routes such as `/api/ppt-ai`- After changing local API route wiring in `vite.config.ts`, restart the dev server-## Docs+## ⌂ Docs- Deployment guide: [deploy/README.md](deploy/README.md)-## License+## ⚖ LicenseCanvasAnvil is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).See [LICENSE](LICENSE) for the full license text.-## Contact+## ✉ Contactdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 6b73490..09192f6 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -1,192 +1,211 @@<p align="center">- <img src="public/logo.png" alt="CanvasAnvil 主视觉" width="100%" />+ <img src="public/logo.png" alt="CanvasAnvil 主视觉" width="92%" /></p><h1 align="center">CanvasAnvil</h1><p align="center">- <strong>面向流程绘制、室内设计、PPT、海报、信息图与产品介绍的多画布 AI 创作平台。</strong>+ <strong>面向流程绘制、室内设计、PPT、海报、信息图与产品介绍的 AI 多画布创作平台。</strong></p><p align="center">- <a href="README.md">English</a> |- <a href="README.zh-CN.md">简体中文</a>+ <img alt="version" src="https://img.shields.io/badge/version-v2.0.0-blue" />+ <img alt="license" src="https://img.shields.io/badge/license-AGPL--3.0-green" />+ <img alt="React" src="https://img.shields.io/badge/React-18.3-61dafb?logo=react&logoColor=white" />+ <img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5.8-3178c6?logo=typescript&logoColor=white" />+ <img alt="Vite" src="https://img.shields.io/badge/Vite-6.3-646cff?logo=vite&logoColor=white" />+ <img alt="workspaces" src="https://img.shields.io/badge/workspaces-6-orange" />+ <img alt="PRs welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen" /></p><p align="center">- <img alt="version" src="https://img.shields.io/badge/version-v2.0.0-2563eb?style=for-the-badge" />- <img alt="workspaces" src="https://img.shields.io/badge/workspaces-6-0f766e?style=for-the-badge" />- <img alt="license" src="https://img.shields.io/badge/license-AGPL--3.0-f97316?style=for-the-badge" />- <img alt="stack" src="https://img.shields.io/badge/stack-Vite%20%2B%20React%20%2B%20TypeScript-7c3aed?style=for-the-badge" />+ <a href="#创作画布">创作画布</a> ·+ <a href="#skills">Skills</a> ·+ <a href="#ppt-演示画布">PPT 展示</a> ·+ <a href="#快速开始">快速开始</a> ·+ <a href="README.md">English</a></p>> CanvasAnvil 将流程图、室内设计工作流、PPT 制作、海报、信息图和产品介绍整合到一个统一工作区中。-## 版本发布+## ✦ 版本发布当前版本:`v2.0.0`-- `v2.0.0`:新增海报、信息图、产品介绍 3 个画布,新增本地 workflow skills,内嵌可编辑 PPT 编辑器,并扩展了更多模型与供应商适配-- `v1.0.2`:PPT 切换为图片优先工作流,并将 OCR/文字回填延后到可编辑 PPT 导出阶段-- `v1.0.1`:提升 PPT 与 CAD 资源持久化稳定性+- 新增 `Flow`、`CAD`、`PPT`、`Poster`、`Infographic`、`Product` 六个画布的本地 workflow skills+- 新增嵌入式 PPT 编辑器,支持可编辑演示文稿流程+- 优化流程画布的超长内容续生成能力,截断后可以继续生成+- 强化画布局部修改能力,提升局部编辑体验+- 新增内置图标库支持,方便更丰富的视觉表达-## v2.0.0 更新内容+## ◇ 创作画布-- 新增 `海报`、`信息图`、`产品介绍` 3 个画布-- 在 PPT 工作区内直接嵌入 `pptist-lab`,支持可编辑 PPT 继续加工-- 可编辑 PPT 导出流程调整为 `文本框校对 -> 提取文本 -> 开始编辑`-- PPT 校对阶段同时保留原始幻灯片版本与 `无字底图` 版本-- 提取后的文本会尽量保留字号、颜色、字重、字距、对齐和行高并带入嵌入式编辑器-- 扩展了更多 AI 模型与供应商适配,支持更灵活的模型配置-- 新增 `Flow`、`CAD`、`PPT`、`Poster`、`Infographic`、`Product` 的本地 workflow skills-- 新增脚本化 skill 工作流,覆盖图表导出、CAD 打包、PPT 模板/整套页面生成、图片生成、PDF 导出和图片版 PPT 导出-- 统一通过 `config/image-provider.json` 配置 skill 的生图模型-- CAD skill 的 BOM 输出改为 `cad_bom.csv`-- Flow skill 默认打包时不再生成独立 HTML 预览文件--## 示例资源目录--每个画布都有独立的示例资源目录,统一放在 `public/examples/` 下。--| 画布 | 示例目录 | 建议命名 |+| 画布 | 核心能力 | 常见输出 || --- | --- | --- |-| `Flow` | `public/examples/flow/` | `01.png`、`02.png`、`03.png`、`04.png` |-| `CAD` | `public/examples/cad/` | `01.png` 到 `09.png` |-| `PPT` | `public/examples/ppt/` | `01.png` 到 `09.png` |-| `Poster` | `public/examples/poster/` | `01.png` 到 `04.png` |-| `Infographic` | `public/examples/infographic/` | `01.png` 到 `04.png` |-| `Product` | `public/examples/product/` | `01.png` 到 `04.png` |+| `流程绘制` | 结构化图表生成与局部编辑 | 流程图、架构图、逻辑图 |+| `室内设计` | 室内方案规划、图纸协同与交付打包 | 概念板、二维图纸、渲染任务单、材料清单 |+| `PPT 演示` | 结构化演示文稿生成与多种导出 | 演示文稿、汇报幻灯片、可编辑演示稿、提案稿 |+| `海报` | 单张视觉传达与版式表达 | 活动海报、宣传海报、主视觉物料 |+| `信息图` | 信息设计与可视化讲解 | 讲解型信息图、主题信息板、对比图表 |+| `产品介绍` | 产品叙事与卖点表达 | 产品展示页、卖点视觉页、上线宣传页 |-示例图片应尽量保持轻量、适合网页展示。README 中的成品实例表格会从这些路径读取图片。+## ⚙ Skills-## 画布概览+CanvasAnvil 为每个画布都提供了专用本地 skill,用来保证工作流稳定、输出一致,而不是把所有任务都塞进同一条通用提示链。-| 画布 | 核心能力 | 常见输出 |-| --- | --- | --- |-| `Flow` | 结构化图表生成与局部编辑 | 流程图、架构图、逻辑图 |-| `CAD` | 室内设计流程规划与空间分析 | 分析板、2D 平面图、渲染任务、BOM |-| `PPT` | 结构化演示文稿生成与可编辑导出 | 演示文稿、汇报 deck、视觉化幻灯片 |-| `Poster` | 单页视觉编排 | 海报、主视觉、活动物料 |-| `Infographic` | 结构化信息可视化表达 | 信息图、讲解图、数据总结 |-| `Product` | 产品介绍与卖点叙事 | 产品页、卖点页、发布物料 |+- `flow-skill` · 流程图生成与打包+ 输出整洁的图表资源,并默认跳过独立 HTML 预览。+- `cad-skill` · 室内设计交付流程+ 导出图纸打包结果与 CSV 材料清单,便于后续交付。+- `ppt-skill` · 完整演示稿生产+ 强制先确认大纲,再生成整套演示稿,并导出可编辑 PPT、PDF 或图片版 PPT。+- `poster-skill` · 单张海报视觉生成+ 强调海报级构图、字体层次和成品表达。+- `infographic-skill` · 信息图组织与讲解+ 负责高密度信息整理、视觉讲解和信息图版式。+- `product-skill` · 产品卖点展示物料+ 围绕产品定位、卖点和展示视觉组织内容。-## 流程绘制画布+所有 skill 默认使用宿主文本模型。只有生图能力需要单独配置图片生成供应商。-将结构化提示快速转成清晰图表,并在同一画布中持续迭代布局、节点关系与说明文案。+## ◎ 流程绘制画布++将结构化提示快速转成清晰图表,适合学术框架、系统架构、实施路线和课程导图,并在同一画布中持续迭代布局、节点关系与说明文案。### 成品实例<table><tr>- <td width="50%" align="center"><img src="public/examples/flow/01.png" alt="流程绘制示例 1" width="100%" /><br/>系统架构图</td>- <td width="50%" align="center"><img src="public/examples/flow/02.png" alt="流程绘制示例 2" width="100%" /><br/>业务流程图</td>+ <td width="50%" align="center"><img src="public/examples/flow/01.png" alt="流程图示例:学术研究框架图" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>学术研究框架图</strong></td>+ <td width="50%" align="center"><img src="public/examples/flow/02.png" alt="流程图示例:智能问答系统架构图" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>智能问答系统架构图</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/flow/03.png" alt="流程绘制示例 3" width="100%" /><br/>数据管线图</td>- <td width="50%" align="center"><img src="public/examples/flow/04.png" alt="流程绘制示例 4" width="100%" /><br/>逻辑映射图</td>+ <td width="50%" align="center"><img src="public/examples/flow/03.png" alt="流程图示例:项目实施路线图" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>项目实施路线图</strong></td>+ <td width="50%" align="center"><img src="public/examples/flow/04.png" alt="流程图示例:课程设计思维导图" width="100%" height="340" style="object-fit:contain;border-radius:10px;background:#ffffff;" /><br/><strong>课程设计思维导图</strong></td></tr></table>-## 室内设计画布+## ◫ 室内设计画布-打通规划板、2D 布局、材质方案、渲染编排和 BOM 输出来完成完整的室内设计工作流。+把规划板、2D 布局、材质方案、渲染编排和材料清单输出串成一条完整的室内设计交付链路。### 成品实例<table><tr>- <td width="33.33%" align="center"><img src="public/examples/cad/01.png" alt="室内设计示例 1" width="100%" /><br/>规划板</td>- <td width="33.33%" align="center"><img src="public/examples/cad/02.png" alt="室内设计示例 2" width="100%" /><br/>2D 平面布局</td>- <td width="33.33%" align="center"><img src="public/examples/cad/03.png" alt="室内设计示例 3" width="100%" /><br/>客厅概念方案</td>+ <td width="33.33%" align="center"><img src="public/examples/cad/01.png" alt="装修平面布置图" width="100%" /><br/><strong>装修平面布置图</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/02.png" alt="地面铺装图" width="100%" /><br/><strong>地面铺装图</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/03.png" alt="顶棚平面图" width="100%" /><br/><strong>顶棚平面图</strong></td></tr><tr>- <td width="33.33%" align="center"><img src="public/examples/cad/04.png" alt="室内设计示例 4" width="100%" /><br/>材质板</td>- <td width="33.33%" align="center"><img src="public/examples/cad/05.png" alt="室内设计示例 5" width="100%" /><br/>灯光策略</td>- <td width="33.33%" align="center"><img src="public/examples/cad/06.png" alt="室内设计示例 6" width="100%" /><br/>渲染任务</td>+ <td width="33.33%" align="center"><img src="public/examples/cad/04.png" alt="墙体定位图" width="100%" /><br/><strong>墙体定位图</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/05.png" alt="机电综合图" width="100%" /><br/><strong>机电综合图</strong></td>+ <td width="33.33%" align="center"><img src="public/examples/cad/06.png" alt="立面索引图和室内立面图" width="100%" /><br/><strong>立面索引图 + 室内立面图</strong></td></tr><tr>- <td width="33.33%" align="center"><img src="public/examples/cad/07.png" alt="室内设计示例 7" width="100%" /><br/>功能分区</td>- <td width="33.33%" align="center"><img src="public/examples/cad/08.png" alt="室内设计示例 8" width="100%" /><br/>BOM 汇总页</td>- <td width="33.33%" align="center"><img src="public/examples/cad/09.png" alt="室内设计示例 9" width="100%" /><br/>最终展示板</td>+ <td width="33.33%" align="center"><img src="public/examples/cad/07.png" alt="节点详图" width="100%" /><br/><strong>节点详图</strong></td>+ <td width="33.33%" align="center"></td>+ <td width="33.33%" align="center"></td></tr></table>-## PPT 演示画布+## ▣ PPT 演示画布-支持结构化生成演示文稿、图片优先迭代、文本框校对,并在嵌入式 PPT 编辑器中继续编辑。+通过“先大纲、后视觉”的方式生成完整演示文稿,并导出可编辑 PPT、PDF 或图片版 PPT。### 成品实例<table><tr>- <td width="33.33%" align="center"><img src="public/examples/ppt/01.png" alt="PPT 示例 1" width="100%" /><br/>封面页</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/02.png" alt="PPT 示例 2" width="100%" /><br/>目录页</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/03.png" alt="PPT 示例 3" width="100%" /><br/>商业汇报页</td>- </tr>- <tr>- <td width="33.33%" align="center"><img src="public/examples/ppt/04.png" alt="PPT 示例 4" width="100%" /><br/>数据讲述页</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/05.png" alt="PPT 示例 5" width="100%" /><br/>教学演示页</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/06.png" alt="PPT 示例 6" width="100%" /><br/>科技风方案页</td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt1/01.png" alt="AI 时代的高效内容创作第 1 页" width="100%" /></td><td><img src="public/examples/ppt/ppt1/02.png" alt="AI 时代的高效内容创作第 2 页" width="100%" /></td><td><img src="public/examples/ppt/ppt1/03.png" alt="AI 时代的高效内容创作第 3 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt1/04.png" alt="AI 时代的高效内容创作第 4 页" width="100%" /></td><td><img src="public/examples/ppt/ppt1/05.png" alt="AI 时代的高效内容创作第 5 页" width="100%" /></td><td><img src="public/examples/ppt/ppt1/06.png" alt="AI 时代的高效内容创作第 6 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt1/07.png" alt="AI 时代的高效内容创作第 7 页" width="100%" /></td><td><img src="public/examples/ppt/ppt1/08.png" alt="AI 时代的高效内容创作第 8 页" width="100%" /></td><td><img src="public/examples/ppt/ppt1/09.png" alt="AI 时代的高效内容创作第 9 页" width="100%" /></td></tr>+ </table>+ <strong>AI 时代的高效内容创作</strong>+ </td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt2/01.png" alt="智能协作驱动未来增长第 1 页" width="100%" /></td><td><img src="public/examples/ppt/ppt2/02.png" alt="智能协作驱动未来增长第 2 页" width="100%" /></td><td><img src="public/examples/ppt/ppt2/03.png" alt="智能协作驱动未来增长第 3 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt2/04.png" alt="智能协作驱动未来增长第 4 页" width="100%" /></td><td><img src="public/examples/ppt/ppt2/05.png" alt="智能协作驱动未来增长第 5 页" width="100%" /></td><td><img src="public/examples/ppt/ppt2/06.png" alt="智能协作驱动未来增长第 6 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt2/07.png" alt="智能协作驱动未来增长第 7 页" width="100%" /></td><td><img src="public/examples/ppt/ppt2/08.png" alt="智能协作驱动未来增长第 8 页" width="100%" /></td><td><img src="public/examples/ppt/ppt2/09.png" alt="智能协作驱动未来增长第 9 页" width="100%" /></td></tr>+ </table>+ <strong>智能协作驱动未来增长</strong>+ </td></tr><tr>- <td width="33.33%" align="center"><img src="public/examples/ppt/07.png" alt="PPT 示例 7" width="100%" /><br/>产品介绍页</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/08.png" alt="PPT 示例 8" width="100%" /><br/>信息图演示页</td>- <td width="33.33%" align="center"><img src="public/examples/ppt/09.png" alt="PPT 示例 9" width="100%" /><br/>可编辑导出结果</td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt3/01.png" alt="AI 驱动业务创新第 1 页" width="100%" /></td><td><img src="public/examples/ppt/ppt3/02.png" alt="AI 驱动业务创新第 2 页" width="100%" /></td><td><img src="public/examples/ppt/ppt3/03.png" alt="AI 驱动业务创新第 3 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt3/04.png" alt="AI 驱动业务创新第 4 页" width="100%" /></td><td><img src="public/examples/ppt/ppt3/05.png" alt="AI 驱动业务创新第 5 页" width="100%" /></td><td><img src="public/examples/ppt/ppt3/06.png" alt="AI 驱动业务创新第 6 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt3/07.png" alt="AI 驱动业务创新第 7 页" width="100%" /></td><td><img src="public/examples/ppt/ppt3/08.png" alt="AI 驱动业务创新第 8 页" width="100%" /></td><td><img src="public/examples/ppt/ppt3/09.png" alt="AI 驱动业务创新第 9 页" width="100%" /></td></tr>+ </table>+ <strong>AI 驱动业务创新</strong>+ </td>+ <td width="50%" align="center" valign="top">+ <table cellspacing="0" cellpadding="2">+ <tr><td><img src="public/examples/ppt/ppt4/01.png" alt="绿色低碳转型与智慧园区建设第 1 页" width="100%" /></td><td><img src="public/examples/ppt/ppt4/02.png" alt="绿色低碳转型与智慧园区建设第 2 页" width="100%" /></td><td><img src="public/examples/ppt/ppt4/03.png" alt="绿色低碳转型与智慧园区建设第 3 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt4/04.png" alt="绿色低碳转型与智慧园区建设第 4 页" width="100%" /></td><td><img src="public/examples/ppt/ppt4/05.png" alt="绿色低碳转型与智慧园区建设第 5 页" width="100%" /></td><td><img src="public/examples/ppt/ppt4/06.png" alt="绿色低碳转型与智慧园区建设第 6 页" width="100%" /></td></tr>+ <tr><td><img src="public/examples/ppt/ppt4/07.png" alt="绿色低碳转型与智慧园区建设第 7 页" width="100%" /></td><td><img src="public/examples/ppt/ppt4/08.png" alt="绿色低碳转型与智慧园区建设第 8 页" width="100%" /></td><td><img src="public/examples/ppt/ppt4/09.png" alt="绿色低碳转型与智慧园区建设第 9 页" width="100%" /></td></tr>+ </table>+ <strong>绿色低碳转型与智慧园区建设</strong>+ </td></tr></table>-## 海报画布+## ✺ 海报画布-适合快速完成单页视觉编排,支持更强的版式控制、字体层次与海报型构图表达。+适合快速完成高冲击力的单页视觉表达,重点处理版式、字体层次和海报级构图。### 成品实例<table><tr>- <td width="50%" align="center"><img src="public/examples/poster/01.png" alt="海报示例 1" width="100%" /><br/>品牌活动海报</td>- <td width="50%" align="center"><img src="public/examples/poster/02.png" alt="海报示例 2" width="100%" /><br/>展会海报</td>+ <td width="50%" align="center"><img src="public/examples/poster/01.png" alt="海报示例:青年设计论坛 2026" width="100%" /><br/><strong>青年设计论坛 2026</strong></td>+ <td width="50%" align="center"><img src="public/examples/poster/02.png" alt="海报示例:江南国潮文化艺术节" width="100%" /><br/><strong>江南国潮文化艺术节</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/poster/03.png" alt="海报示例 3" width="100%" /><br/>主视觉海报</td>- <td width="50%" align="center"><img src="public/examples/poster/04.png" alt="海报示例 4" width="100%" /><br/>新品发布海报</td>+ <td width="50%" align="center"><img src="public/examples/poster/03.png" alt="海报示例:城市夏日独立音乐节" width="100%" /><br/><strong>城市夏日独立音乐节</strong></td>+ <td width="50%" align="center"><img src="public/examples/poster/04.png" alt="海报示例:未来智能科技峰会 2026" width="100%" /><br/><strong>未来智能科技峰会 2026</strong></td></tr></table>-## 信息图画布+## ◈ 信息图画布-将信息密度较高的内容整理成清晰的视觉叙事,兼顾可读性与展示效果。+将信息密度较高的内容整理成清晰的视觉讲解版面,兼顾可读性、结构性与展示效果。### 成品实例<table><tr>- <td width="50%" align="center"><img src="public/examples/infographic/01.png" alt="信息图示例 1" width="100%" /><br/>数据总结图</td>- <td width="50%" align="center"><img src="public/examples/infographic/02.png" alt="信息图示例 2" width="100%" /><br/>流程讲解图</td>+ <td width="50%" align="center"><img src="public/examples/infographic/01.png" alt="信息图示例:AI 算力增长趋势" width="100%" /><br/><strong>AI 算力增长趋势</strong></td>+ <td width="50%" align="center"><img src="public/examples/infographic/02.png" alt="信息图示例:智能汽车用户关注点" width="100%" /><br/><strong>智能汽车用户关注点</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/infographic/03.png" alt="信息图示例 3" width="100%" /><br/>对比分析图</td>- <td width="50%" align="center"><img src="public/examples/infographic/04.png" alt="信息图示例 4" width="100%" /><br/>时间线布局</td>+ <td width="50%" align="center"><img src="public/examples/infographic/03.png" alt="信息图示例:健康作息指南" width="100%" /><br/><strong>健康作息指南</strong></td>+ <td width="50%" align="center"><img src="public/examples/infographic/04.png" alt="信息图示例:低碳生活方式" width="100%" /><br/><strong>低碳生活方式</strong></td></tr></table>-## 产品介绍画布+## ⬢ 产品介绍画布-围绕产品卖点、规格和主视觉组织信息,适合输出产品介绍、上线页与营销讲述内容。+围绕产品主视觉、卖点和叙事结构组织信息,适合输出产品介绍页、上线宣传页和展示视觉。### 成品实例<table><tr>- <td width="50%" align="center"><img src="public/examples/product/01.png" alt="产品介绍示例 1" width="100%" /><br/>产品首页</td>- <td width="50%" align="center"><img src="public/examples/product/02.png" alt="产品介绍示例 2" width="100%" /><br/>功能对比页</td>+ <td width="50%" align="center"><img src="public/examples/product/01.png" alt="产品示例:无线降噪耳机" width="100%" /><br/><strong>无线降噪耳机</strong></td>+ <td width="50%" align="center"><img src="public/examples/product/02.png" alt="产品示例:旗舰游戏本" width="100%" /><br/><strong>旗舰游戏本</strong></td></tr><tr>- <td width="50%" align="center"><img src="public/examples/product/03.png" alt="产品介绍示例 3" width="100%" /><br/>规格页</td>- <td width="50%" align="center"><img src="public/examples/product/04.png" alt="产品介绍示例 4" width="100%" /><br/>发布叙事页</td>+ <td width="50%" align="center"><img src="public/examples/product/03.png" alt="产品示例:焕亮精华液" width="100%" /><br/><strong>焕亮精华液</strong></td>+ <td width="50%" align="center"><img src="public/examples/product/04.png" alt="产品示例:智能纯电 SUV" width="100%" /><br/><strong>智能纯电 SUV</strong></td></tr></table>-## 快速开始+## ▶ 快速开始1. 安装依赖@@ -196,23 +215,16 @@ npm install2. 启动本地开发-可编辑 PPT 场景下需要同时启动两个服务:--- 主应用运行在 `5173`-- `pptist-lab` 运行在 `5174`+CanvasAnvil 本地开发需要同时启动 Web 应用和本地 API 服务,这样前端代理路由和本地接口才能正常工作。```bash-npm run dev--cd pptist-lab-npm install-npm run dev -- --host 127.0.0.1 --port 5174+npm run dev:full```默认访问地址:-- 主应用:`http://127.0.0.1:5173`-- PPT 编辑器服务:`http://127.0.0.1:5174`+- Web 应用:`http://127.0.0.1:5173`+- API 服务:`http://127.0.0.1:8080`3. 运行类型检查@@ -226,34 +238,27 @@ npm run checknpm run build```-## 常用脚本+## ⌘ 常用命令-- `npm run dev`:启动主应用 Vite 开发服务-- `npm run dev:full`:同时启动 Web 与 API 开发服务-- `npm run dev:web`:仅启动前端开发服务-- `npm run dev:api`:仅启动 API 开发服务-- `cd pptist-lab && npm run dev -- --host 127.0.0.1 --port 5174`:启动嵌入式 PPT 编辑器服务+- `npm run dev:full`:同时启动 Web 应用和本地 API 服务- `npm run check`:执行 TypeScript 检查-- `npm run lint`:执行 ESLint- `npm run build`:构建生产版本-- `npm run preview`:预览构建产物-- `npm start`:启动 API 服务-## 开发说明+## ☰ 开发说明-- AI 配置读取本地应用设置,可切换到自定义供应商-- PPT 本地开发依赖 `/api/ppt-ai` 代理路由+- AI 配置读取本地应用设置;生图工作流使用已配置的图片生成供应商+- 本地开发依赖 API 服务提供 `/api/ppt-ai` 等接口- 修改 `vite.config.ts` 中的本地 API 路由后,需要重启开发服务-## 文档+## ⌂ 文档- 部署说明:[deploy/README.md](deploy/README.md)-## 许可证+## ⚖ 许可证CanvasAnvil 采用 GNU Affero General Public License v3.0(AGPL-3.0)协议发布。完整协议内容请查看 [LICENSE](LICENSE)。-## 联系方式+## ✉ 联系方式diff --git a/public/examples/cad/01.png b/public/examples/cad/01.pngnew file mode 100644index 0000000..293af7aBinary files /dev/null and b/public/examples/cad/01.png differdiff --git a/public/examples/cad/02.png b/public/examples/cad/02.pngnew file mode 100644index 0000000..d4ea47aBinary files /dev/null and b/public/examples/cad/02.png differdiff --git a/public/examples/cad/03.png b/public/examples/cad/03.pngnew file mode 100644index 0000000..df0c4c9Binary files /dev/null and b/public/examples/cad/03.png differdiff --git a/public/examples/cad/04.png b/public/examples/cad/04.pngnew file mode 100644index 0000000..affd207Binary files /dev/null and b/public/examples/cad/04.png differdiff --git a/public/examples/cad/05.png b/public/examples/cad/05.pngnew file mode 100644index 0000000..22a07cfBinary files /dev/null and b/public/examples/cad/05.png differdiff --git a/public/examples/cad/06.png b/public/examples/cad/06.pngnew file mode 100644index 0000000..f414be0Binary files /dev/null and b/public/examples/cad/06.png differdiff --git a/public/examples/cad/07.png b/public/examples/cad/07.pngnew file mode 100644index 0000000..fb6509bBinary files /dev/null and b/public/examples/cad/07.png differdiff --git a/public/examples/flow/01.png b/public/examples/flow/01.pngnew file mode 100644index 0000000..2a14104Binary files /dev/null and b/public/examples/flow/01.png differdiff --git a/public/examples/flow/02.png b/public/examples/flow/02.pngnew file mode 100644index 0000000..5b89611Binary files /dev/null and b/public/examples/flow/02.png differdiff --git a/public/examples/flow/03.png b/public/examples/flow/03.pngnew file mode 100644index 0000000..a4a54daBinary files /dev/null and b/public/examples/flow/03.png differdiff --git a/public/examples/flow/04.png b/public/examples/flow/04.pngnew file mode 100644index 0000000..6deae2cBinary files /dev/null and b/public/examples/flow/04.png differdiff --git a/public/examples/infographic/01.png b/public/examples/infographic/01.pngnew file mode 100644index 0000000..8d4d4abBinary files /dev/null and b/public/examples/infographic/01.png differdiff --git a/public/examples/infographic/02.png b/public/examples/infographic/02.pngnew file mode 100644index 0000000..272dd2dBinary files /dev/null and b/public/examples/infographic/02.png differdiff --git a/public/examples/infographic/03.png b/public/examples/infographic/03.pngnew file mode 100644index 0000000..e572d2aBinary files /dev/null and b/public/examples/infographic/03.png differdiff --git a/public/examples/infographic/04.png b/public/examples/infographic/04.pngnew file mode 100644index 0000000..54844daBinary files /dev/null and b/public/examples/infographic/04.png differdiff --git a/public/examples/poster/01.png b/public/examples/poster/01.pngnew file mode 100644index 0000000..f37b79cBinary files /dev/null and b/public/examples/poster/01.png differdiff --git a/public/examples/poster/02.png b/public/examples/poster/02.pngnew file mode 100644index 0000000..29a24baBinary files /dev/null and b/public/examples/poster/02.png differdiff --git a/public/examples/poster/03.png b/public/examples/poster/03.pngnew file mode 100644index 0000000..b4c862dBinary files /dev/null and b/public/examples/poster/03.png differdiff --git a/public/examples/poster/04.png b/public/examples/poster/04.pngnew file mode 100644index 0000000..e9bd506Binary files /dev/null and b/public/examples/poster/04.png differdiff --git a/public/examples/ppt/ppt1/01.png b/public/examples/ppt/ppt1/01.pngnew file mode 100644index 0000000..b6fc0a7Binary files /dev/null and b/public/examples/ppt/ppt1/01.png differdiff --git a/public/examples/ppt/ppt1/02.png b/public/examples/ppt/ppt1/02.pngnew file mode 100644index 0000000..2c5d9deBinary files /dev/null and b/public/examples/ppt/ppt1/02.png differdiff --git a/public/examples/ppt/ppt1/03.png b/public/examples/ppt/ppt1/03.pngnew file mode 100644index 0000000..4c176b3Binary files /dev/null and b/public/examples/ppt/ppt1/03.png differdiff --git a/public/examples/ppt/ppt1/04.png b/public/examples/ppt/ppt1/04.pngnew file mode 100644index 0000000..867ecddBinary files /dev/null and b/public/examples/ppt/ppt1/04.png differdiff --git a/public/examples/ppt/ppt1/05.png b/public/examples/ppt/ppt1/05.pngnew file mode 100644index 0000000..52fc959Binary files /dev/null and b/public/examples/ppt/ppt1/05.png differdiff --git a/public/examples/ppt/ppt1/06.png b/public/examples/ppt/ppt1/06.pngnew file mode 100644index 0000000..a56dca4Binary files /dev/null and b/public/examples/ppt/ppt1/06.png differdiff --git a/public/examples/ppt/ppt1/07.png b/public/examples/ppt/ppt1/07.pngnew file mode 100644index 0000000..b98d950Binary files /dev/null and b/public/examples/ppt/ppt1/07.png differdiff --git a/public/examples/ppt/ppt1/08.png b/public/examples/ppt/ppt1/08.pngnew file mode 100644index 0000000..8935b47Binary files /dev/null and b/public/examples/ppt/ppt1/08.png differdiff --git a/public/examples/ppt/ppt1/09.png b/public/examples/ppt/ppt1/09.pngnew file mode 100644index 0000000..c187452Binary files /dev/null and b/public/examples/ppt/ppt1/09.png differdiff --git a/public/examples/ppt/ppt2/01.png b/public/examples/ppt/ppt2/01.pngnew file mode 100644index 0000000..07b1163Binary files /dev/null and b/public/examples/ppt/ppt2/01.png differdiff --git a/public/examples/ppt/ppt2/02.png b/public/examples/ppt/ppt2/02.pngnew file mode 100644index 0000000..57547ccBinary files /dev/null and b/public/examples/ppt/ppt2/02.png differdiff --git a/public/examples/ppt/ppt2/03.png b/public/examples/ppt/ppt2/03.pngnew file mode 100644index 0000000..5da5daeBinary files /dev/null and b/public/examples/ppt/ppt2/03.png differdiff --git a/public/examples/ppt/ppt2/04.png b/public/examples/ppt/ppt2/04.pngnew file mode 100644index 0000000..fb3c961Binary files /dev/null and b/public/examples/ppt/ppt2/04.png differdiff --git a/public/examples/ppt/ppt2/05.png b/public/examples/ppt/ppt2/05.pngnew file mode 100644index 0000000..4210adeBinary files /dev/null and b/public/examples/ppt/ppt2/05.png differdiff --git a/public/examples/ppt/ppt2/06.png b/public/examples/ppt/ppt2/06.pngnew file mode 100644index 0000000..ad2e67cBinary files /dev/null and b/public/examples/ppt/ppt2/06.png differdiff --git a/public/examples/ppt/ppt2/07.png b/public/examples/ppt/ppt2/07.pngnew file mode 100644index 0000000..50952f8Binary files /dev/null and b/public/examples/ppt/ppt2/07.png differdiff --git a/public/examples/ppt/ppt2/08.png b/public/examples/ppt/ppt2/08.pngnew file mode 100644index 0000000..4d261e9Binary files /dev/null and b/public/examples/ppt/ppt2/08.png differdiff --git a/public/examples/ppt/ppt2/09.png b/public/examples/ppt/ppt2/09.pngnew file mode 100644index 0000000..813e21cBinary files /dev/null and b/public/examples/ppt/ppt2/09.png differdiff --git a/public/examples/ppt/ppt3/01.png b/public/examples/ppt/ppt3/01.pngnew file mode 100644index 0000000..5382bb3Binary files /dev/null and b/public/examples/ppt/ppt3/01.png differdiff --git a/public/examples/ppt/ppt3/02.png b/public/examples/ppt/ppt3/02.pngnew file mode 100644index 0000000..6181ae5Binary files /dev/null and b/public/examples/ppt/ppt3/02.png differdiff --git a/public/examples/ppt/ppt3/03.png b/public/examples/ppt/ppt3/03.pngnew file mode 100644index 0000000..4bcf43fBinary files /dev/null and b/public/examples/ppt/ppt3/03.png differdiff --git a/public/examples/ppt/ppt3/04.png b/public/examples/ppt/ppt3/04.pngnew file mode 100644index 0000000..8e2a111Binary files /dev/null and b/public/examples/ppt/ppt3/04.png differdiff --git a/public/examples/ppt/ppt3/05.png b/public/examples/ppt/ppt3/05.pngnew file mode 100644index 0000000..6e82e7eBinary files /dev/null and b/public/examples/ppt/ppt3/05.png differdiff --git a/public/examples/ppt/ppt3/06.png b/public/examples/ppt/ppt3/06.pngnew file mode 100644index 0000000..8e9fae1Binary files /dev/null and b/public/examples/ppt/ppt3/06.png differdiff --git a/public/examples/ppt/ppt3/07.png b/public/examples/ppt/ppt3/07.pngnew file mode 100644index 0000000..d6d8742Binary files /dev/null and b/public/examples/ppt/ppt3/07.png differdiff --git a/public/examples/ppt/ppt3/08.png b/public/examples/ppt/ppt3/08.pngnew file mode 100644index 0000000..5a9efd2Binary files /dev/null and b/public/examples/ppt/ppt3/08.png differdiff --git a/public/examples/ppt/ppt3/09.png b/public/examples/ppt/ppt3/09.pngnew file mode 100644index 0000000..f012c7bBinary files /dev/null and b/public/examples/ppt/ppt3/09.png differdiff --git a/public/examples/ppt/ppt4/01.png b/public/examples/ppt/ppt4/01.pngnew file mode 100644index 0000000..6a8bd55Binary files /dev/null and b/public/examples/ppt/ppt4/01.png differdiff --git a/public/examples/ppt/ppt4/02.png b/public/examples/ppt/ppt4/02.pngnew file mode 100644index 0000000..f5c9700Binary files /dev/null and b/public/examples/ppt/ppt4/02.png differdiff --git a/public/examples/ppt/ppt4/03.png b/public/examples/ppt/ppt4/03.pngnew file mode 100644index 0000000..dbc7c85Binary files /dev/null and b/public/examples/ppt/ppt4/03.png differdiff --git a/public/examples/ppt/ppt4/04.png b/public/examples/ppt/ppt4/04.pngnew file mode 100644index 0000000..f31267fBinary files /dev/null and b/public/examples/ppt/ppt4/04.png differdiff --git a/public/examples/ppt/ppt4/05.png b/public/examples/ppt/ppt4/05.pngnew file mode 100644index 0000000..1a59186Binary files /dev/null and b/public/examples/ppt/ppt4/05.png differdiff --git a/public/examples/ppt/ppt4/06.png b/public/examples/ppt/ppt4/06.pngnew file mode 100644index 0000000..9bbc42cBinary files /dev/null and b/public/examples/ppt/ppt4/06.png differdiff --git a/public/examples/ppt/ppt4/07.png b/public/examples/ppt/ppt4/07.pngnew file mode 100644index 0000000..f3382fcBinary files /dev/null and b/public/examples/ppt/ppt4/07.png differdiff --git a/public/examples/ppt/ppt4/08.png b/public/examples/ppt/ppt4/08.pngnew file mode 100644index 0000000..a6398efBinary files /dev/null and b/public/examples/ppt/ppt4/08.png differdiff --git a/public/examples/ppt/ppt4/09.png b/public/examples/ppt/ppt4/09.pngnew file mode 100644index 0000000..2995c15Binary files /dev/null and b/public/examples/ppt/ppt4/09.png differdiff --git a/public/examples/product/01.png b/public/examples/product/01.pngnew file mode 100644index 0000000..8a1a0f5Binary files /dev/null and b/public/examples/product/01.png differdiff --git a/public/examples/product/02.png b/public/examples/product/02.pngnew file mode 100644index 0000000..c297fb2Binary files /dev/null and b/public/examples/product/02.png differdiff --git a/public/examples/product/03.png b/public/examples/product/03.pngnew file mode 100644index 0000000..843ad78Binary files /dev/null and b/public/examples/product/03.png differdiff --git a/public/examples/product/04.png b/public/examples/product/04.pngnew file mode 100644index 0000000..dc1ec52Binary files /dev/null and b/public/examples/product/04.png differ