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
chore(release): bump to 0.1.1 and update CAD analysis-to-2D docs
codingFeng101dec6100acd38
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ac79976..ce5356c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.The format is based on Keep a Changelog, and the project aims to follow Semantic Versioning.+## [0.1.1] - 2026-03-06++### Changed++- CAD workflow now supports an analysis-first entry: requirement/planning -> analysis images -> 2D editing.+- CAD 2D generation (`cad_svg_agent`) now consumes the two analysis images as visual references when available.+- CAD analysis image agents now accept language as an explicit prompt variable and follow UI language settings.+## [0.1.0] - 2026-02-19### Addeddiff --git a/README.md b/README.mdindex ad615e6..90010c1 100644--- a/README.md+++ b/README.md@@ -35,15 +35,16 @@ CanvasAnvil is a multi-canvas AI creation platform that turns a single requireme## Capability Overview (User View)- `Flow`: flowchart generation and partial edits (draw.io XML)-- `CAD`: interior design plans, 2D floor plans, render tasks, and BOM+- `CAD`: interior design planning, analysis boards, 2D floor plans, render tasks, and BOM- `PPT`: presentation draft generation and iterative editing## Typical Workflow1. Enter your requirement-2. Generate a first draft with AI-3. Apply partial edits and iterate-4. Export outputs (diagrams / lists / slides)+2. Generate/iterate on design plan+3. Generate analysis boards and confirm strategy+4. Generate and edit 2D floor plan+5. Export outputs (diagrams / lists / slides)## Quick Start@@ -82,7 +83,7 @@ Key improvements:## Core Capabilities (Developer View)- Flow: chat-driven flowchart generation, patch/replace, one-click apply, snapshot restore-- CAD: `cad_plan` output, 2D SVG partial updates, concurrent render jobs, BOM export+- CAD: `cad_plan` output, parallel analysis-board generation, 2D SVG partial updates with analysis-image references, concurrent render jobs, BOM export- PPT: structured content generation, page-level incremental edits, streaming iteration## Tech Stackdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 4d93202..7a317e2 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -35,15 +35,16 @@ CanvasAnvil 是一个多画布 AI 创作平台,用一句需求就能完成从## 能力总览(用户视角)- `Flow`:流程图生成与局部编辑(draw.io XML)-- `CAD`:室内装修方案、2D 平面图、装修图与物料清单(BOM)+- `CAD`:室内装修方案、分析图、2D 平面图、装修图与物料清单(BOM)- `PPT`:演示文稿草稿生成与迭代编辑## 典型使用路径1. 输入需求-2. AI 生成初稿-3. 局部修改与迭代-4. 导出结果(图纸 / 清单 / 演示稿)+2. 生成并迭代方案+3. 生成分析图并确认策略+4. 生成并编辑 2D 平面图+5. 导出结果(图纸 / 清单 / 演示稿)## 快速开始@@ -82,7 +83,7 @@ npm run build## 核心能力(开发视角)- Flow:对话生成流程图,支持 patch/replace,一键应用代码块,支持历史恢复-- CAD:`cad_plan` 方案生成、2D SVG 局部修改、装修图并发出图、BOM 导出+- CAD:`cad_plan` 方案生成、分析图并发生成、参考分析图进行 2D SVG 修改、装修图并发出图、BOM 导出- PPT:结构化内容生成、页级增量编辑、图文流式生成与迭代## 技术栈diff --git a/agent/cad/svg/patch.md b/agent/cad/svg/patch.mdindex 66fd197..69e601e 100644--- a/agent/cad/svg/patch.md+++ b/agent/cad/svg/patch.md@@ -10,13 +10,15 @@ I will provide:- User request text- "Current 2D SVG" (verbatim; source of truth)- Optional `cad_plan` for consistency checks+- Optional analysis image references (overall analysis + key strategy) as multimodal image inputs# S - Steps1. Confirm current 2D SVG exists and request is a local change.-2. Locate the smallest exact SVG snippets to edit.-3. Copy each `search` snippet exactly from current SVG.-4. Produce `replace` snippets that preserve valid SVG and drafting consistency.-5. Output exactly one JSON code block.+2. If analysis images are provided, extract spatial intent/functional strategy from them and keep edits aligned.+3. Locate the smallest exact SVG snippets to edit.+4. Copy each `search` snippet exactly from current SVG.+5. Produce `replace` snippets that preserve valid SVG and drafting consistency.+6. Output exactly one JSON code block.# N - NarrowingConstraints (CRITICAL):@@ -34,6 +36,9 @@ Constraints (CRITICAL):6. Keep untouched content unchanged.7. Language policy:- Follow UI language policy from system messages for human-readable labels.+8. If analysis image references are present:+ - Use them as strategy guidance only.+ - Do not copy textual labels from images verbatim into the SVG unless requested.# CAD Engineering Rules (for touched content)# ARCHITECTURAL DRAFTING RULES (APPLY ONLY TO TOUCHED CONTENT)diff --git a/agent/cad/svg/replace.md b/agent/cad/svg/replace.mdindex c59d9a5..344bfe8 100644--- a/agent/cad/svg/replace.md+++ b/agent/cad/svg/replace.md@@ -10,12 +10,14 @@ I will provide:- User request text- Optional `cad_plan` JSON- Optional current 2D SVG (reference only)+- Optional analysis image references (overall analysis + key strategy) as multimodal image inputs# S - Steps1. Determine target 2D floor-plan structure from request + plan.-2. Produce one complete, renderable SVG with coherent layers/geometry.-3. Keep geometry buildable and drafting-valid.-4. Self-check SVG validity and consistency before output.+2. If analysis images are provided, align zoning/circulation/priority decisions with their strategy intent.+3. Produce one complete, renderable SVG with coherent layers/geometry.+4. Keep geometry buildable and drafting-valid.+5. Self-check SVG validity and consistency before output.# N - NarrowingConstraints (CRITICAL):@@ -29,6 +31,9 @@ Constraints (CRITICAL):- Escape `"` and control characters in the SVG string.6. Language policy:- Follow UI language policy from system messages for labels/notes.+7. If analysis image references are present:+ - Use them as design-strategy guidance only.+ - Do not copy textual labels from images verbatim into the SVG unless requested.# CAD Engineering Rules (MANDATORY)# CRITICAL ARCHITECTURAL DRAFTING RULES (MANDATORY)diff --git a/package-lock.json b/package-lock.jsonindex 315be26..00f72f0 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "canvasanvil",- "version": "0.0.0",+ "version": "0.1.1","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "canvasanvil",- "version": "0.0.0",+ "version": "0.1.1","dependencies": {"@ai-sdk/openai": "^2.0.19","@ai-sdk/react": "^2.0.107",diff --git a/package.json b/package.jsonindex 169df8d..fa551d9 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "canvasanvil","private": true,- "version": "0.0.0",+ "version": "0.1.1","type": "module","scripts": {"dev": "vite",