AI-native design editor. Open-source Figma alternative.
Sync docs with v0.7.0 and unreleased features
Anton A S940d0de5b667
diff --git a/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/design.md b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/design.mdnew file mode 100644index 000000000..4b329cc7c--- /dev/null+++ b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/design.md@@ -0,0 +1,88 @@+# Design: sync-docs-v07-v08++## Scope++Pure documentation update — no code changes. All edits are in `packages/docs/`.++## File inventory++### English (source of truth)++| File | Changes needed |+|------|----------------|+| `guide/features.md` | Add: SVG export, Copy/Paste as, stroke align + per-side, Mobile/PWA, Tailwind JSX export, Homebrew tap, layer rename, updated tool count (75→78), Google Fonts fallback, auto-save, profiler |+| `guide/architecture.md` | Add "What's Next" section: multi-file tabs, AI providers, code signing, .fig fidelity, full figma-use tool set, CI tools, prototyping, SVG/PDF export, CSS Grid (Yoga upstream) |+| `guide/comparison.md` | Update: scripting section (75→78 tools), Summary paragraph (78 tools), "What Penpot Does Better" remove SVG export as Penpot advantage |+| `guide/figma-comparison.md` | Fix: Rename layers 🟡→✅, Image/SVG export 🟡→✅ (SVG done), Copy/Paste as 🔲→✅, Tailwind JSX export (new row), Stroke align ✅ (new row), Per-side stroke weights ✅ (new row), AI tools count 75→78, MCP tools count 75→78 |+| `user-guide/exporting.md` | Add SVG to format table; add "Copy/Paste as" subsection with all 4 formats |+| `user-guide/drawing-shapes.md` | Add Stroke Align (Inside/Center/Outside); add per-side stroke weights |+| `user-guide/layers-and-pages.md` | Add double-click rename; mobile drawer note; Code tab format toggle |+| `user-guide/context-menu.md` | Add "Copy/Paste as" section with 4 formats + shortcuts |+| `reference/keyboard-shortcuts.md` | Fix: ⌘N/⌘T ✅, ⌘W ✅, ⌘\\ ✅; add ⇧⌘C ✅ |+| `reference/mcp-tools.md` | Expand all tool tables to full 78 tools |+| `guide/getting-started.md` | Add Homebrew section; add `bun run test:unit` to scripts table |++### Locale translations (DE, ES, FR, IT, PL)++| File | Locales | Notes |+|------|---------|-------|+| `guide/features.md` | DE, ES, FR, IT, PL | Full sync — add all new sections |+| `guide/comparison.md` | DE, ES, FR, IT, PL | Sync scripting/summary counts; DE needs major expansion (128→292 lines) |+| `guide/figma-comparison.md` | DE, ES, FR, IT, PL | Sync status changes (Rename ✅, SVG ✅, Copy/Paste as ✅, new rows) |+| `user-guide/exporting.md` | DE, ES, FR, IT, PL | Add SVG + Copy/Paste as |+| `user-guide/drawing-shapes.md` | DE, ES, FR, IT, PL | Add stroke align + per-side |+| `user-guide/layers-and-pages.md` | DE, ES, FR, IT, PL | Add rename, mobile note, Code tab |+| `user-guide/context-menu.md` | DE, ES, FR, IT, PL | Add Copy/Paste as section |++## Approach++1. Update EN files first (source of truth), in this order:+ - comparison tables (quick, factual fixes)+ - architecture.md "What's Next"+ - user-guide articles (exporting, drawing-shapes, layers, context-menu)+ - keyboard-shortcuts, mcp-tools, getting-started+ - features.md (comprehensive, last)+2. For each locale, apply the same changes translated into that language+3. Update spec delta files++## Key content decisions++### comparison.md updates+- Update scripting section: "75 tools" → "78 tools"; mention new analyze/diff tools+- Update summary paragraph tool count+- "What Penpot Does Better" section: remove "Server-side export" since OpenPencil now has SVG export; keep PDF as Penpot advantage+- Scale table: update rendering engine LOC from 1,646 to ~3,200 (split into 10 files)++### figma-comparison.md updates+- `Rename layers`: 🟡 (no inline rename UI) → ✅ (double-click inline rename added in Unreleased)+- `Image/SVG export`: 🟡 (no SVG) → ✅ (SVG export in v0.7.0)+- `Copy/Paste as`: add new row ✅+- `Tailwind CSS v4 export`: add new row in Code section ✅+- `Stroke align`: add new row ✅ in Effects & Properties+- `Individual stroke weights per side`: add new row ✅++### architecture.md "What's Next"+Content sourced from `plan.md` "What's next" section and CHANGELOG Unreleased:+- Multi-file / tabs (done in v0.5.0 — mark as complete if needed, or remove)+- More AI providers (Anthropic direct, Gemini, Ollama local models)+- Code signing (done for macOS in v0.6.0)+- .fig compatibility fidelity improvements+- Full figma-use tool set (currently 78/118)+- CI tools (design lint, visual regression via headless CLI)+- Prototyping (frame transitions, triggers, preview mode)+- CSS Grid layout (blocked on facebook/yoga#1893)+- SVG/PDF export (SVG done in v0.7.0, PDF planned)++## Spec deltas++### vitepress-docs/spec.md additions+- Comparison tables accuracy requirement+- Roadmap/What's Next section requirement+- figma-comparison.md status accuracy++### userdoc-articles/spec.md additions+- Stroke align and per-side weights+- Layer inline rename+- Copy/Paste as in context menu+- Mobile drawer note+- Locale paritydiff --git a/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/proposal.md b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/proposal.mdnew file mode 100644index 000000000..c0f14861c--- /dev/null+++ b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/proposal.md@@ -0,0 +1,38 @@+# Proposal: sync-docs-v07-v08++## Problem++The VitePress documentation site (`packages/docs/`) has diverged significantly from the codebase since the last docs sync (commit `8a486d5`). Over 100 commits landed in master after that point, introducing major features:++- **SVG export** (v0.7.0) — new format in Export panel, CLI, MCP+- **Copy/Paste as submenu** — Copy as text / SVG / PNG / JSX+- **Stroke align + individual strokes** — Inside/Center/Outside, per-side weights+- **Google Fonts fallback** — auto-loads fonts from Google Fonts API+- **Auto-save toggle** — File → Auto-save to local file+- **Renderer profiler** — HUD overlay, GPU timing (View menu)+- **Mobile layout + PWA** — responsive editor, swipeable drawer, installable PWA+- **Tailwind CSS v4 JSX export** — new Code panel format toggle+- **Homebrew tap** — `brew install open-pencil/tap/open-pencil`+- **Double-click to rename layers** — inline rename in layers panel+- **9 new AI/MCP tools** — analyze_colors, analyze_typography, analyze_spacing, analyze_clusters, diff_create, diff_show, get_components, get_current_page, arrange, node_to_component+- **⌘N / ⌘T new tab, ⌘W close tab** — previously marked 🔲 in keyboard shortcuts+- **⌘\\ Toggle UI** — previously marked 🔲++Additionally:++- **Comparison tables outdated** — `comparison.md` (vs Penpot) and `figma-comparison.md` use stale counts (75 tools vs 78 actual, Rename layers 🟡 should be ✅, Image/SVG export 🟡 should be ✅ for SVG). The DE locale comparison is severely truncated (128 lines vs 292 EN).+- **No "What's next" / roadmap section** — `guide/architecture.md` documents current state but has no future plans. `plan.md` has a rich "What's next" section that should be surfaced in docs.+- **All locale translations** (DE, ES, FR, IT, PL) are 40–80 lines shorter than EN and missing every feature added since v0.5.0.+- **MCP tools reference** counts 75 tools but the table only lists ~25 entries; new tools are undocumented.++## What changes++1. **EN docs** — update `features.md`, `exporting.md`, `drawing-shapes.md`, `layers-and-pages.md`, `context-menu.md`, `reference/keyboard-shortcuts.md`, `reference/mcp-tools.md`, `guide/getting-started.md`, `guide/architecture.md`+2. **Comparison tables** — update `guide/comparison.md` (tool counts, scripting section, summary) and `guide/figma-comparison.md` (Rename layers ✅, SVG export ✅, Copy/Paste as ✅, Tailwind export, stroke align/per-side)+3. **Roadmap** — add "What's Next" section to `guide/architecture.md` drawn from `plan.md`+4. **Locale translations** — full sync for DE, ES, FR, IT, PL: `features.md`, `exporting.md`, `drawing-shapes.md`, `layers-and-pages.md`, `context-menu.md`, `comparison.md`, `figma-comparison.md`+5. **Spec deltas** — update `vitepress-docs/spec.md` and `userdoc-articles/spec.md`++## Why now++The branch `add-vitepress-docs` just pulled in master (e828185). This is the ideal moment to sweep through every doc page and make it accurate before the branch is merged or published.diff --git a/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/specs/userdoc-articles/spec.md b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/specs/userdoc-articles/spec.mdnew file mode 100644index 000000000..b2f0e3c8f--- /dev/null+++ b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/specs/userdoc-articles/spec.md@@ -0,0 +1,61 @@+# userdoc-articles — delta spec (sync-docs-v07-v08)++## Requirement: Stroke align and per-side weights in drawing-shapes article++The drawing-shapes article SHALL document stroke alignment (Inside, Center, Outside) and individual stroke weights per side (Top, Right, Bottom, Left) in the Stroke subsection under Shape Properties.++### Scenario: Stroke align documented+- **WHEN** user reads the Drawing Shapes article+- **THEN** the Stroke section explains Inside/Center/Outside alignment options with a note about clip-based rendering++### Scenario: Per-side stroke weights documented+- **WHEN** user reads the Drawing Shapes article+- **THEN** the Stroke section mentions per-side weight control (Top/Right/Bottom/Left)++## Requirement: Layer inline rename in layers-and-pages article++The layers-and-pages article SHALL document double-click to rename a layer inline. Blur, Enter, or Escape SHALL be described as commit/cancel actions.++### Scenario: Layer rename documented+- **WHEN** user reads the Layers & Pages article+- **THEN** the Layers Panel section mentions double-click to rename with commit/cancel behavior++## Requirement: Copy/Paste as in context-menu article++The context-menu article SHALL have a "Copy/Paste as" section documenting: Copy as text, Copy as SVG, Copy as PNG (⇧⌘C / Shift+Ctrl+C), Copy as JSX.++### Scenario: Copy/Paste as section present+- **WHEN** user reads the Context Menu article+- **THEN** a "Copy/Paste as" section lists all four formats with shortcuts++## Requirement: Mobile layout note in layers-and-pages article++The layers-and-pages article SHALL note that on mobile/small screens panels are accessible via a swipeable bottom drawer.++### Scenario: Mobile note present+- **WHEN** user reads the Layers & Pages article+- **THEN** a brief note explains the mobile bottom drawer layout++## Requirement: Code panel format toggle documented++The layers-and-pages article's Code Tab description SHALL mention the format toggle: OpenPencil JSX (custom components) vs Tailwind CSS v4 (HTML with utility classes).++### Scenario: Format toggle mentioned+- **WHEN** user reads the Properties Panel → Code Tab description+- **THEN** both output formats are mentioned (OpenPencil and Tailwind)++## Requirement: Locale parity for updated articles++The DE, ES, FR, IT, PL translations of `guide/features.md`, `guide/comparison.md`, `guide/figma-comparison.md`, `user-guide/exporting.md`, `user-guide/drawing-shapes.md`, `user-guide/layers-and-pages.md`, and `user-guide/context-menu.md` SHALL be fully updated to match EN content, including all features from v0.5.0–Unreleased.++### Scenario: DE comparison.md matches EN structure+- **WHEN** comparing DE and EN comparison.md+- **THEN** DE has all 11 sections present in EN (not the truncated 128-line version)++### Scenario: All locales show SVG in exporting article+- **WHEN** user reads the Exporting article in any locale+- **THEN** SVG format is listed in the format table++### Scenario: All locales show Copy/Paste as in context-menu+- **WHEN** user reads the Context Menu article in any locale+- **THEN** a Copy/Paste as section is presentdiff --git a/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/specs/vitepress-docs/spec.md b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/specs/vitepress-docs/spec.mdnew file mode 100644index 000000000..3c03d833f--- /dev/null+++ b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/specs/vitepress-docs/spec.md@@ -0,0 +1,88 @@+# vitepress-docs — delta spec (sync-docs-v07-v08)++## Requirement: SVG export documentation++The features page and exporting article SHALL document SVG as an export format alongside PNG/JPG/WEBP. The Export section in the properties panel, context menu, CLI, and MCP/AI tool SHALL all be mentioned.++### Scenario: SVG export documented in features+- **WHEN** user reads the Features page+- **THEN** SVG export is listed as an export format with mention of CLI and MCP tool support++### Scenario: SVG in exporting article format table+- **WHEN** user reads the Exporting user guide article+- **THEN** SVG appears in the format table with a note that scale selector is hidden for SVG++## Requirement: Copy/Paste as submenu documentation++The context menu article and features page SHALL document the Copy/Paste as submenu with four options: Copy as text, Copy as SVG, Copy as PNG (⇧⌘C), Copy as JSX.++### Scenario: Copy/Paste as documented in context menu article+- **WHEN** user reads the Context Menu article+- **THEN** a "Copy/Paste as" section lists all four copy formats with shortcuts++## Requirement: Homebrew install in Getting Started++The Getting Started guide SHALL include a Homebrew installation section for macOS before "Building from Source".++### Scenario: Homebrew section present+- **WHEN** user reads the Getting Started page+- **THEN** `brew install open-pencil/tap/open-pencil` is shown as a macOS install option++## Requirement: Keyboard shortcuts accuracy++The keyboard shortcuts reference SHALL mark ⌘N/⌘T (new tab), ⌘W (close tab), and ⌘\\ (toggle UI) as ✅. ⇧⌘C (Copy as PNG) SHALL be added with ✅ status.++### Scenario: New tab shortcuts marked implemented+- **WHEN** user reads the Keyboard Shortcuts reference+- **THEN** ⌘N, ⌘T, ⌘W appear as ✅ in the File section++### Scenario: Toggle UI marked implemented+- **WHEN** user reads the Keyboard Shortcuts reference+- **THEN** ⌘\\ Show/Hide UI appears as ✅ in the View section++## Requirement: MCP tools table completeness++The MCP tools reference SHALL list all 78 tools (75 core + 3 file ops) in their respective category tables. All tool groups from v0.5.0 and later SHALL be documented.++### Scenario: All 78 tools listed+- **WHEN** user reads the MCP Tools reference+- **THEN** all tool groups are documented with tool name and description for each of the 78 tools++## Requirement: Comparison tables accuracy++The `guide/comparison.md` (vs Penpot) SHALL reflect the current tool count (78), correct renderer LOC after the renderer split (~3,200 LOC across 10 files), and accurate scripting section. The "What Penpot Does Better" section SHALL NOT list server-side SVG export as a Penpot advantage since OpenPencil now exports SVG.++### Scenario: comparison.md tool counts current+- **WHEN** user reads the comparison with Penpot+- **THEN** OpenPencil tool count is stated as 78 (not 75)++### Scenario: SVG export not listed as Penpot advantage+- **WHEN** user reads the "What Penpot Does Better" section+- **THEN** SVG export is NOT listed as a Penpot-only feature++## Requirement: Figma feature matrix accuracy++The `guide/figma-comparison.md` SHALL have accurate status flags reflecting the current implementation:+- Rename layers: ✅ (double-click inline rename)+- Image/SVG export: ✅ (SVG added in v0.7.0)+- Copy/Paste as: ✅ (new row)+- Tailwind CSS v4 export: ✅ (new row in Code Panel section)+- Stroke align: ✅ (new row in Effects & Properties)+- Individual stroke weights per side: ✅ (new row)+- AI/MCP tool counts: 78++### Scenario: Rename layers shows ✅+- **WHEN** user reads the figma-comparison Layers & Shapes table+- **THEN** Rename layers row shows ✅ with inline rename note++### Scenario: SVG export shows ✅+- **WHEN** user reads the Import & Export table+- **THEN** Image/SVG export row shows ✅++## Requirement: Architecture roadmap section++The `guide/architecture.md` SHALL include a "What's Next" section documenting planned and in-progress work: additional AI providers, full figma-use tool set completion, CI design tooling, prototyping, CSS Grid (Yoga upstream blocker), PDF export, .fig fidelity improvements.++### Scenario: What's Next section present+- **WHEN** user reads the Architecture guide+- **THEN** a "What's Next" section lists upcoming features with context on blockers and statusdiff --git a/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/tasks.md b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/tasks.mdnew file mode 100644index 000000000..9d1f30120--- /dev/null+++ b/openspec/changes/archive/2026-03-07-sync-docs-v07-v08/tasks.md@@ -0,0 +1,82 @@+# Tasks: sync-docs-v07-v08++## 1. English — comparison tables++- [x] 1.1 `guide/comparison.md` — update scripting section: "75 tools" → "78 tools", mention analyze_*/diff_* tools; update Summary paragraph tool counts; remove "Server-side export" from "What Penpot Does Better" (OpenPencil now has SVG export); update rendering engine LOC (~3,200 after renderer split)+- [x] 1.2 `guide/figma-comparison.md` — fix statuses: Rename layers 🟡→✅, Image/SVG export 🟡→✅; add new rows: Copy/Paste as ✅, Tailwind CSS v4 export ✅, Stroke align ✅, Individual stroke weights per side ✅; update AI/MCP tool counts 75→78; update Coverage line count++## 2. English — architecture roadmap++- [x] 2.1 `guide/architecture.md` — add "What's Next" section after the last component section, drawn from `plan.md` and CHANGELOG Unreleased: more AI providers (Anthropic direct, Gemini, Ollama), full figma-use tool set (78/118 currently), CI design lint + visual regression, Prototyping (phase 6), CSS Grid (blocked on facebook/yoga#1893), SVG/PDF export (SVG ✅, PDF planned), .fig fidelity improvements++## 3. English — user guide articles++- [x] 3.1 `user-guide/exporting.md` — add SVG to format table (note: no scale selector for SVG); add "Copy/Paste as" subsection with: Copy as text, Copy as SVG, Copy as PNG (⇧⌘C / Shift+Ctrl+C), Copy as JSX+- [x] 3.2 `user-guide/drawing-shapes.md` — add "Stroke Align" subsection under Shape Properties (Inside/Center/Outside, clip-based rendering); add "Per-Side Stroke Weights" note (Top/Right/Bottom/Left dropdown)+- [x] 3.3 `user-guide/layers-and-pages.md` — add double-click inline rename in Layers Panel section (blur/Enter/Escape to commit); add mobile bottom drawer note; update Code tab description: mention format toggle (OpenPencil JSX / Tailwind CSS v4)+- [x] 3.4 `user-guide/context-menu.md` — add "Copy/Paste as" section: Copy as text, Copy as SVG, Copy as PNG (⇧⌘C), Copy as JSX++## 4. English — reference pages++- [x] 4.1 `reference/keyboard-shortcuts.md` — fix File section: ⌘N ✅, ⌘T ✅, ⌘W ✅; fix View section: ⌘\\ ✅; add Edit section row: ⇧⌘C Copy as PNG ✅+- [x] 4.2 `reference/mcp-tools.md` — expand all tool tables to full 78 tools; add missing categories/tools: Granular Set (set_rotation, set_opacity, set_radius, set_minmax, set_text, set_font, set_font_range, set_text_resize, set_visible, set_blend, set_locked, set_stroke_align), Node ops (node_bounds, node_move, node_resize, node_ancestors, node_children, node_tree, node_bindings, node_replace_with), Variables (get_variable, find_variables, create_variable, set_variable, delete_variable, bind_variable, get_collection, create_collection, delete_collection), Boolean (boolean_union, boolean_subtract, boolean_intersect, boolean_exclude), Vector (path_get, path_set, path_scale, path_flip, path_move), Create extras (create_page, create_vector, create_slice), Analyze (analyze_colors, analyze_typography, analyze_spacing, analyze_clusters), Diff (diff_create, diff_show), Arrange (arrange), Component (node_to_component, get_components, get_current_page)+- [x] 4.3 `guide/getting-started.md` — add Homebrew install section before "Building from Source": `brew install open-pencil/tap/open-pencil`; add `bun run test:unit` row to scripts table++## 5. English — features.md++- [x] 5.1 `guide/features.md` — add/update sections: SVG Export (v0.7.0), Copy/Paste as submenu, Stroke Align + Per-Side Weights, Google Fonts Fallback, Auto-Save Toggle, Renderer Profiler, Mobile Layout & PWA, Tailwind CSS v4 JSX Export, Homebrew Tap, Layer Inline Rename; update AI Chat tools count (75→78); update MCP total (78 tools); update Code Panel: mention format toggle++## 6. German translation (de/)++- [x] 6.1 `de/guide/comparison.md` — full expansion to match EN (128→~290 lines): restore all missing sections (Rendering Pipeline detail, Scene Graph, Layout Engine, File Format, State & Undo, Developer Experience, Performance, What Penpot Does Better, Scripting, full Summary table); update tool counts and SVG export status+- [x] 6.2 `de/guide/figma-comparison.md` — sync status changes: Rename layers ✅, SVG export ✅; add new rows: Copy/Paste as, Tailwind, Stroke align, Per-side weights; update coverage line+- [x] 6.3 `de/guide/features.md` — add all new sections from EN (SVG export, Copy/Paste as, stroke align, mobile/PWA, Tailwind, Homebrew, layer rename, Google Fonts, auto-save, profiler); update tool counts+- [x] 6.4 `de/user-guide/exporting.md` — add SVG format + Copy/Paste as subsection+- [x] 6.5 `de/user-guide/drawing-shapes.md` — add stroke align + per-side weights+- [x] 6.6 `de/user-guide/layers-and-pages.md` — add rename, mobile note, Code tab format toggle+- [x] 6.7 `de/user-guide/context-menu.md` — add Copy/Paste as section++## 7. Spanish translation (es/)++- [x] 7.1 `es/guide/comparison.md` — update scripting/summary tool counts; SVG export status fix+- [x] 7.2 `es/guide/figma-comparison.md` — sync status changes + add new rows+- [x] 7.3 `es/guide/features.md` — add all new sections from EN+- [x] 7.4 `es/user-guide/exporting.md` — add SVG format + Copy/Paste as+- [x] 7.5 `es/user-guide/drawing-shapes.md` — add stroke align + per-side weights+- [x] 7.6 `es/user-guide/layers-and-pages.md` — add rename, mobile, Code tab+- [x] 7.7 `es/user-guide/context-menu.md` — add Copy/Paste as section++## 8. French translation (fr/)++- [x] 8.1 `fr/guide/comparison.md` — update scripting/summary tool counts; SVG export status fix+- [x] 8.2 `fr/guide/figma-comparison.md` — sync status changes + add new rows+- [x] 8.3 `fr/guide/features.md` — add all new sections from EN+- [x] 8.4 `fr/user-guide/exporting.md` — add SVG format + Copy/Paste as+- [x] 8.5 `fr/user-guide/drawing-shapes.md` — add stroke align + per-side weights+- [x] 8.6 `fr/user-guide/layers-and-pages.md` — add rename, mobile, Code tab+- [x] 8.7 `fr/user-guide/context-menu.md` — add Copy/Paste as section++## 9. Italian translation (it/)++- [x] 9.1 `it/guide/comparison.md` — update scripting/summary tool counts; SVG export status fix+- [x] 9.2 `it/guide/figma-comparison.md` — sync status changes + add new rows+- [x] 9.3 `it/guide/features.md` — add all new sections from EN+- [x] 9.4 `it/user-guide/exporting.md` — add SVG format + Copy/Paste as+- [x] 9.5 `it/user-guide/drawing-shapes.md` — add stroke align + per-side weights+- [x] 9.6 `it/user-guide/layers-and-pages.md` — add rename, mobile, Code tab+- [x] 9.7 `it/user-guide/context-menu.md` — add Copy/Paste as section++## 10. Polish translation (pl/)++- [x] 10.1 `pl/guide/comparison.md` — update scripting/summary tool counts; SVG export status fix+- [x] 10.2 `pl/guide/figma-comparison.md` — sync status changes + add new rows+- [x] 10.3 `pl/guide/features.md` — add all new sections from EN+- [x] 10.4 `pl/user-guide/exporting.md` — add SVG format + Copy/Paste as+- [x] 10.5 `pl/user-guide/drawing-shapes.md` — add stroke align + per-side weights+- [x] 10.6 `pl/user-guide/layers-and-pages.md` — add rename, mobile, Code tab+- [x] 10.7 `pl/user-guide/context-menu.md` — add Copy/Paste as section++## 11. Spec updates++- [x] 11.1 `openspec/specs/vitepress-docs/spec.md` — merge delta spec requirements (comparison accuracy, roadmap section, figma-comparison accuracy)+- [x] 11.2 `openspec/specs/userdoc-articles/spec.md` — merge delta spec requirements (stroke align, rename, copy/paste as, mobile, locale parity)diff --git a/openspec/specs/userdoc-articles/spec.md b/openspec/specs/userdoc-articles/spec.mdindex 73b7d4aa7..bf6e53d3f 100644--- a/openspec/specs/userdoc-articles/spec.md+++ b/openspec/specs/userdoc-articles/spec.md@@ -101,3 +101,31 @@ Each user guide article SHALL follow a consistent structure: title, brief introd- **WHEN** user reads any user guide article- **THEN** the article has an intro paragraph, subsections explaining features, and a shortcuts table++### Requirement: Stroke align and per-side weights (sync-docs-v07-v08)++The drawing-shapes article SHALL document stroke alignment (Inside/Center/Outside) and per-side weights (Top/Right/Bottom/Left).++#### Scenario: Stroke align documented+- **WHEN** user reads Drawing Shapes+- **THEN** Inside/Center/Outside alignment is described++### Requirement: Layer inline rename (sync-docs-v07-v08)++The layers-and-pages article SHALL document double-click to rename inline with Enter/Escape/blur to commit.++### Requirement: Copy/Paste as in context-menu (sync-docs-v07-v08)++A Copy/Paste as section SHALL be present in context-menu article for all locales.++### Requirement: Mobile drawer note (sync-docs-v07-v08)++The layers-and-pages article SHALL mention the mobile bottom drawer layout.++### Requirement: Code panel format toggle (sync-docs-v07-v08)++The Code Tab description SHALL mention OpenPencil JSX and Tailwind CSS v4 format toggle.++### Requirement: Locale parity (sync-docs-v07-v08)++DE, ES, FR, IT, PL translations SHALL include all sections present in EN for features.md, comparison.md, figma-comparison.md, exporting.md, drawing-shapes.md, layers-and-pages.md, and context-menu.md.diff --git a/openspec/specs/vitepress-docs/spec.md b/openspec/specs/vitepress-docs/spec.mdindex 15c742e8c..0eb8ae58d 100644--- a/openspec/specs/vitepress-docs/spec.md+++ b/openspec/specs/vitepress-docs/spec.md@@ -242,3 +242,43 @@ The docs site SHALL reference tool unification in development pages when relevan#### Scenario: Tool architecture mention- **WHEN** user reads development/contributing docs- **THEN** unified tool definitions (`packages/core/src/tools/`) are mentioned as canonical source++### Requirement: SVG export documentation (sync-docs-v07-v08)++The features page and exporting article SHALL document SVG as an export format. The format table SHALL include SVG with a note that the scale selector is hidden for SVG. CLI and MCP tool SHALL be mentioned.++#### Scenario: SVG in exporting article+- **WHEN** user reads the Exporting user guide article+- **THEN** SVG appears in the format table++### Requirement: Copy/Paste as submenu documentation (sync-docs-v07-v08)++The context menu article SHALL document the Copy/Paste as submenu: Copy as text, SVG, PNG (⇧⌘C), JSX.++#### Scenario: Copy/Paste as section present+- **WHEN** user reads the Context Menu article+- **THEN** a Copy/Paste as section lists all four formats++### Requirement: Homebrew install (sync-docs-v07-v08)++The Getting Started guide SHALL include Homebrew install before "Building from Source".++#### Scenario: Homebrew section present+- **WHEN** user reads Getting Started+- **THEN** `brew install open-pencil/tap/open-pencil` is shown++### Requirement: Keyboard shortcuts accuracy (sync-docs-v07-v08)++⌘N/⌘T, ⌘W, and ⌘\\ SHALL be marked ✅. ⇧⌘C (Copy as PNG) SHALL be added as ✅.++### Requirement: MCP tools completeness (sync-docs-v07-v08)++All 78 tools SHALL be listed in the MCP tools reference.++### Requirement: Comparison tables accuracy (sync-docs-v07-v08)++comparison.md SHALL show 78 tools (not 75) and NOT list SVG export as a Penpot advantage. figma-comparison.md SHALL show Rename layers ✅, SVG export ✅, Copy/Paste as ✅, Stroke align ✅, per-side weights ✅.++### Requirement: Architecture roadmap section (sync-docs-v07-v08)++architecture.md SHALL include a "What's Next" section covering: more AI providers, full figma-use tools, CI design tooling, prototyping, CSS Grid, PDF export, .fig fidelity.diff --git a/packages/docs/de/guide/comparison.md b/packages/docs/de/guide/comparison.mdindex d45bcd2aa..bb0db986c 100644--- a/packages/docs/de/guide/comparison.md+++ b/packages/docs/de/guide/comparison.md@@ -9,7 +9,7 @@ OpenPencil und Penpot sind beides Open-Source-Design-Tools, aber sie unterscheid| Total LOC | **~26.000** | **~299.000** || Quelldateien | ~143 | ~2.900 || Sprachen | TypeScript, Vue | Clojure, ClojureScript, Rust, JS, SQL, SCSS |-| Rendering-Engine | 1.646 LOC (TS) | 22.000 LOC (Rust/Skia WASM) |+| Rendering-Engine | ~3.200 LOC (TS, 10 Dateien) | 22.000 LOC (Rust/Skia WASM) || UI-Code | ~4.500 LOC | ~175.000 LOC (CLJS + SCSS) || Backend | Keines (local-first) | 32.600 LOC + 151 SQL-Dateien || LOC-Verhältnis | **1×** | **~11×** |@@ -77,7 +77,7 @@ Open Pencil und Penpot verwenden beide Skia für das Rendering, aber die Impleme| | Open Pencil | Penpot ||---|-------------|--------|| CLI | ✅ Headless .fig-Operationen | ❌ Kein CLI |-| AI-Werkzeuge | 75 Werkzeuge + MCP-Server | Plugin-System |+| AI-Werkzeuge | **78 Werkzeuge** + MCP-Server | Plugin-System || JSX-Renderer | ✅ Programmgesteuerte Erstellung | ❌ || Eval-Befehl | ✅ Figma Plugin API | ❌ || Plugin-System | Über eval/MCP | ✅ Natives Plugin-System |@@ -107,7 +107,7 @@ Open Pencil und Penpot verwenden beide Skia für das Rendering, aber die Impleme|---|-------------|--------|| Headless CLI | ✅ 12 Befehle | ❌ || Plugin API | Figma-kompatibel | Eigene Plugin API |-| MCP-Server | ✅ 75+ Werkzeuge | ❌ |+| MCP-Server | ✅ 78+ Werkzeuge | ❌ || Eval-Befehl | ✅ JS-Ausführung | ❌ || JSX-Renderer | ✅ Programmatisch | ❌ |@@ -118,11 +118,11 @@ Open Pencil und Penpot verwenden beide Skia für das Rendering, aber die Impleme| **Figma-Kompatibilität** | Open Pencil | Natives .fig + Zwischenablage || **Programmierbarkeit** | Open Pencil | CLI, eval, JSX, MCP-Server || **Desktop-Erlebnis** | Open Pencil | Native Tauri-App, ~5 MB |-| **KI-Integration** | Open Pencil | 75 Werkzeuge, MCP, integrierter Chat |+| **KI-Integration** | Open Pencil | 78 Werkzeuge, MCP, integrierter Chat || **Codebasis-Einfachheit** | Open Pencil | 11× weniger Code, 1 Sprache || **CSS Grid** | Penpot | Yoga unterstützt es noch nicht || **SVG-native** | Penpot | SVG ist die Muttersprache || **Self-Hosting** | Penpot | Docker-bereit vs. Desktop-only || **Ökosystem-Reife** | Penpot | Jahre der Produktion vs. frühe Phase |-Open Pencil ist architektonisch schlanker — ein Single-Process-CanvasKit-Renderer in ~26K LOC TypeScript, Figma-kompatibel by Design. Penpot ist eine Full-Stack-Plattform mit ~299K LOC über Clojure, ClojureScript, Rust und SCSS, plus eine Docker-Service-Flotte. Beide bieten jetzt Echtzeit-Kollaboration (unterschiedliche Architekturen: P2P vs. Server). Penpot hat ein Plugin-Ökosystem und serverseitigen Export; Open Pencil hat Figma-kompatibles Headless-Scripting, 75 KI/MCP-Werkzeuge und eine native Desktop-App.+Open Pencil ist architektonisch schlanker — ein Single-Process-CanvasKit-Renderer in ~26K LOC TypeScript, Figma-kompatibel by Design. Penpot ist eine Full-Stack-Plattform mit ~299K LOC über Clojure, ClojureScript, Rust und SCSS, plus eine Docker-Service-Flotte. Beide bieten jetzt Echtzeit-Kollaboration (unterschiedliche Architekturen: P2P vs. Server). Penpot hat ein Plugin-Ökosystem und serverseitigen PDF-Export; Open Pencil hat Figma-kompatibles Headless-Scripting, **78 KI/MCP-Werkzeuge**, SVG-Export und eine native Desktop-App.diff --git a/packages/docs/de/guide/features.md b/packages/docs/de/guide/features.mdindex 0402f84c2..506d6fd79 100644--- a/packages/docs/de/guide/features.md+++ b/packages/docs/de/guide/features.md@@ -176,9 +176,56 @@ Alle numerischen Eingaben im Eigenschafts-Panel verwenden eine Zieh-zum-Ändern-GitHub Actions baut native Tauri-Desktop-Apps bei Versions-Tags. Die Build-Matrix umfasst macOS (arm64, x64), Windows (x64, arm64) und Linux (x64). macOS-Builds sind mit Apple-Developer-Zertifikaten signiert und notarisiert. Release-Notes werden automatisch aus CHANGELOG.md befüllt.+## Bild- & SVG-Export++Exportieren Sie ausgewählte Knoten als PNG, JPG, WEBP oder SVG. SVG-Export unterstützt Rechtecke, Ellipsen, Linien, Sterne, Polygone, Vektoren, Text, Verläufe, Bildausfüllungen, Effekte und verschachtelte Gruppen.++CLI: `bun open-pencil export --format svg file.fig`. MCP/KI-Tool: `export_svg`.++## Als kopieren++Das **Als kopieren**-Untermenü im Kontextmenü bietet:++- **Als Text kopieren** — sichtbarer Textinhalt+- **Als SVG kopieren** — SVG-Markup der Auswahl+- **Als PNG kopieren** — rendert bei 2× in die Zwischenablage (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>)+- **Als JSX kopieren** — OpenPencil JSX++## Konturausrichtung & Pro-Seite-Breiten++Konturausrichtung: **Innen**, **Mitte** oder **Außen** (beschneidungsbasiertes Rendering wie in Figma). Individuelle Konturbreiten pro Seite (Oben/Rechts/Unten/Links) über das Seitenauswahl-Dropdown.++## Mobile Layout & PWA++OpenPencil ist als Progressive Web App auf Mobilgeräten installierbar. Das Layout passt sich kleinen Bildschirmen an — Seitenpanels werden durch ein wischbares unteres Drawer mit Tabs ersetzt: Ebenen, Eigenschaften, Design, Code.++## Tailwind CSS v4 JSX-Export++Der Code-Tab bietet einen Formatschalter zwischen **OpenPencil JSX** und **Tailwind CSS v4** (HTML mit Utility-Klassen). CLI: `bun open-pencil export --format jsx --style tailwind file.fig`++## Google Fonts Fallback++Wenn eine Schriftart lokal nicht verfügbar ist, lädt OpenPencil sie automatisch von der Google Fonts API.++## Homebrew-Tap++macOS-Nutzer können die Desktop-App über Homebrew installieren:++```sh+brew install open-pencil/tap/open-pencil+```++## Ebenen-Inline-Umbenennen++Doppelklick auf einen Ebenennamen zum Inline-Umbenennen. Enter oder Klick außerhalb bestätigt, Escape bricht ab.++## Renderer-Profiler++Ein HUD-Overlay zeigt Frame-Timing, GPU-Phasen und Frame-Budget. Zugänglich über das Ansichtsmenü.+## KI-Chat-Integrierter KI-Assistent über den KI-Tab oder <kbd>⌘</kbd><kbd>J</kbd>. Kommuniziert direkt mit OpenRouter. **75 Werkzeuge** für Lesen, Erstellen, Ändern und Organisieren von Design-Elementen. **MCP-Server** für externe KI-Coding-Tools.+Integrierter KI-Assistent über den KI-Tab oder <kbd>⌘</kbd><kbd>J</kbd>. Kommuniziert direkt mit OpenRouter. **78 Werkzeuge** für Lesen, Erstellen, Ändern und Organisieren von Design-Elementen. **MCP-Server** für externe KI-Coding-Tools.## @open-pencil/core & CLI@@ -198,7 +245,7 @@ Programmatische Design-Erstellung über TreeNode-Builder-Funktionen aus `@open-p## Code-Panel-Der Code-Tab im Eigenschafts-Panel zeigt die JSX-Darstellung der aktuellen Auswahl mit Prism.js-Syntaxhervorhebung und einem Kopieren-Button.+Der Code-Tab im Eigenschafts-Panel zeigt die Code-Darstellung der aktuellen Auswahl mit Syntaxhervorhebung und einem Kopieren-Button. Ein Formatschalter wechselt zwischen OpenPencil JSX und Tailwind CSS v4.## Codequalitätdiff --git a/packages/docs/de/guide/figma-comparison.md b/packages/docs/de/guide/figma-comparison.mdindex 3ac8a6f12..0076a16b3 100644--- a/packages/docs/de/guide/figma-comparison.md+++ b/packages/docs/de/guide/figma-comparison.md@@ -6,7 +6,7 @@ Feature-für-Feature-Vergleich der Figma-Design-Funktionen mit dem aktuellen Imp✅ Unterstützt — Funktion funktioniert vollständig · 🟡 Teilweise — Grundverhalten vorhanden, einige Unterfunktionen fehlen · 🔲 Noch nicht implementiert:::-**Abdeckung:** 88 von 152 Figma-Feature-Punkten adressiert — 70 ✅ vollständig unterstützt, 18 🟡 teilweise, 64 🔲 noch nicht. Zuletzt aktualisiert: 2026-03-04.+**Abdeckung:** 94 von 158 Figma-Feature-Punkten adressiert — 76 ✅ vollständig unterstützt, 18 🟡 teilweise, 64 🔲 noch nicht. Zuletzt aktualisiert: 2026-03-07.## Benutzeroberfläche & Navigation@@ -28,7 +28,7 @@ Feature-für-Feature-Vergleich der Figma-Design-Funktionen mit dem aktuellen Imp| Benutzerdefinierte Dateiminiatur | 🔲 | Miniatur beim Export generiert, aber kein benutzerdefinierter Auswähler || Nudge-Wert-Einstellungen | 🔲 | Standard 1px/10px; Figma erlaubt benutzerdefinierte Werte || App-Menü (Browser-Modus) | ✅ | Datei, Bearbeiten, Ansicht, Objekt, Text, Anordnen; Tauri verwendet native Menüs |-| KI-Werkzeuge | 🟡 | 75 Werkzeuge via OpenRouter + MCP-Server; noch keine KI-generierten Bilder oder KI-Suche |+| KI-Werkzeuge | 🟡 | 78 Werkzeuge via OpenRouter + MCP-Server; noch keine KI-generierten Bilder oder KI-Suche |## Ebenen & Formen@@ -48,7 +48,7 @@ Feature-für-Feature-Vergleich der Figma-Design-Funktionen mit dem aktuellen Imp| Ebenen proportional skalieren | 🟡 | Umschalt-Resize hält Proportionen; kein dediziertes Scale-Werkzeug (K) || Ebenen sperren/entsperren | ✅ | ⇧⌘L schaltet Sperre um || Ebenensichtbarkeit umschalten | ✅ | Augen-Icon im Panel + ⇧⌘H-Kürzel |-| Ebenen umbenennen | 🟡 | Programmatisches Umbenennen via Store; noch kein Inline-Umbenennen-UI |+| Ebenen umbenennen | ✅ | Doppelklick-Inline-Umbenennen; Enter/Escape/Blur zum Bestätigen || Nach vorne / Nach hinten | ✅ | ] und [ Tastaturkürzel; auch im Kontextmenü || Auf Seite verschieben | ✅ | Knoten zwischen Seiten verschieben via Kontextmenü || Einschränkungen (responsives Resize) | 🔲 | Kanten/Mitte fixieren für Eltern-Resize-Verhalten |@@ -193,7 +193,7 @@ Feature-für-Feature-Vergleich der Figma-Design-Funktionen mit dem aktuellen Imp| Figma-Zwischenablage (Einfügen) | ✅ | Kiwi-Binär aus Figma-Zwischenablage dekodieren || Figma-Zwischenablage (Kopieren) | ✅ | Kiwi-Binär kodieren, das Figma lesen kann || Sketch-Datei-Import | 🔲 | .sketch-Datei-Parsing |-| Bild/SVG-Export | 🟡 | PNG/JPG/WEBP mit Skalierung und Vorschau; SVG/PDF noch nicht |+| Bild/SVG/PDF-Export | 🟡 | PNG/JPG/WEBP/SVG-Export ✅; PDF-Export 🔲 || Versionsverlauf | 🔲 | Vorherige Versionen durchsuchen und wiederherstellen || Assets zwischen Tools kopieren | 🟡 | Figma-Zwischenablage funktioniert; kein SVG/PDF-Clipboard |@@ -215,7 +215,7 @@ Feature-für-Feature-Vergleich der Figma-Design-Funktionen mit dem aktuellen Imp| Code Connect | 🔲 | Design-Komponenten mit Code verknüpfen || Code-Snippets | 🟡 | JSX-Export mit Hervorhebung und Kopieren; keine CSS/Swift/Kotlin-Snippets || Figma für VS Code | 🔲 | Editor-Plugin-Integration |-| MCP-Server | ✅ | @open-pencil/mcp mit stdio + HTTP-Transporten; 75 Kern-Werkzeuge + 3 Dateiverwaltung |+| MCP-Server | ✅ | @open-pencil/mcp mit stdio + HTTP-Transporten; 75 Kern-Werkzeuge + 3 Dateiverwaltung = 78 gesamt || CLI-Werkzeuge | ✅ | Headless-CLI: info, tree, find, export, analyze, node, pages, variables, eval; MCP-Server |## Figma Drawdiff --git a/packages/docs/de/user-guide/context-menu.md b/packages/docs/de/user-guide/context-menu.mdindex 2ed8bf22f..3ce257a10 100644--- a/packages/docs/de/user-guide/context-menu.md+++ b/packages/docs/de/user-guide/context-menu.md@@ -7,6 +7,17 @@ description: Rechtsklick-Kontextmenü-Aktionen in OpenPencil — Zwischenablage,Rechtsklicken Sie auf dem Canvas, um das Kontextmenü zu öffnen. Bei Rechtsklick auf einen Knoten wird dieser zuerst ausgewählt. Rechtsklick auf leeren Canvas hebt die Auswahl auf.+## Als kopieren++Das Untermenü **Als kopieren** bietet folgende Zwischenablage-Formate:++| Aktion | Kürzel (Mac) | Kürzel (Win/Linux) |+|--------|--------------|---------------------|+| Als Text kopieren | — | — |+| Als SVG kopieren | — | — |+| Als PNG kopieren | ⇧ ⌘ C | Shift + Strg + C |+| Als JSX kopieren | — | — |+## Zwischenablage| Aktion | Kürzel (Mac) | Kürzel (Win/Linux) |diff --git a/packages/docs/de/user-guide/drawing-shapes.md b/packages/docs/de/user-guide/drawing-shapes.mdindex 91310e3f1..d79ff4bcf 100644--- a/packages/docs/de/user-guide/drawing-shapes.md+++ b/packages/docs/de/user-guide/drawing-shapes.md@@ -40,7 +40,14 @@ Jede Form kann eine Füllung haben: **Vollfarbe**, **Verlauf** (Linear, Radial,### Kontur-Fügen Sie einer Form eine Kontur hinzu. Eigenschaften: Breite, Farbe, Kappenstil, Verbindungsstil, Strichmuster.+Fügen Sie einer Form eine Kontur hinzu. Eigenschaften:++- **Breite** — einheitlich oder pro Seite (Oben/Rechts/Unten/Links) über das Seitenauswahl-Dropdown+- **Farbe** — Vollton mit Deckkraft+- **Ausrichtung** — Innen, Mitte oder Außen (beschneidungsbasiertes Rendering wie in Figma)+- **Kappenstil** — Keine, Rund, Quadrat, Pfeil+- **Verbindungsstil** — Gehrung, Abgeschrägt, Rund+- **Strichmuster** — Strich-Ein/Strich-Aus### Eckenradiusdiff --git a/packages/docs/de/user-guide/exporting.md b/packages/docs/de/user-guide/exporting.mdindex 29851fbbf..ffb9fad1f 100644--- a/packages/docs/de/user-guide/exporting.md+++ b/packages/docs/de/user-guide/exporting.md@@ -14,7 +14,8 @@ Wählen Sie einen Knoten und nutzen Sie den Export-Bereich im Eigenschaftspanel.### Export-Einstellungen- **Skalierung** — 0,5×, 0,75×, 1×, 1,5×, 2×, 3× oder 4×-- **Format** — PNG (transparenter Hintergrund), JPG (weißer Hintergrund), WEBP (transparenter Hintergrund)+- **Skalierung** — 0,5×–4× (für SVG ausgeblendet — Vektoren sind auflösungsunabhängig)+- **Format** — PNG (transparenter Hintergrund), JPG (weißer Hintergrund), WEBP (transparenter Hintergrund), SVG (Vektor)Sie können mehrere Export-Einstellungen hinzufügen. Eine Live-Vorschau mit Schachbretthintergrund zeigt, was exportiert wird.@@ -26,6 +27,17 @@ Sie können mehrere Export-Einstellungen hinzufügen. Eine Live-Vorschau mit Sch| Kontextmenü | Rechtsklick → Exportieren… | Rechtsklick → Exportieren… || Eigenschaftspanel | Klick auf „Exportieren" | Klick auf „Exportieren" |+## Als kopieren++Das Kontextmenü bietet **Als kopieren** mit mehreren Zwischenablage-Formaten:++| Aktion | Mac | Windows / Linux |+|--------|-----|-----------------|+| Als Text kopieren | — | — |+| Als SVG kopieren | — | — |+| Als PNG kopieren | ⇧ ⌘ C | Shift + Strg + C |+| Als JSX kopieren | — | — |+## .fig-DateioperationenOpenPencil verwendet das .fig-Format — dasselbe Binärformat wie Figma.@@ -55,6 +67,7 @@ Aus OpenPencil exportierte Dateien können in Figma geöffnet werden und umgekeh| Aktion | Mac | Windows / Linux ||--------|-----|-----------------|| Auswahl exportieren | ⇧ ⌘ E | Shift + Strg + E |+| Als PNG kopieren | ⇧ ⌘ C | Shift + Strg + C || Datei öffnen | ⌘ O | Strg + O || Speichern | ⌘ S | Strg + S || Speichern unter | ⇧ ⌘ S | Shift + Strg + S |@@ -63,3 +76,4 @@ Aus OpenPencil exportierte Dateien können in Figma geöffnet werden und umgekeh- Verwenden Sie 2× oder 3× Skalierung für hochauflösende Bildschirme.- JPG verwendet immer weißen Hintergrund — nutzen Sie PNG oder WEBP für Transparenz.+- Verwenden Sie SVG-Export für vektorielle Weiterbearbeitung in Code-Editoren oder Illustrator.diff --git a/packages/docs/de/user-guide/layers-and-pages.md b/packages/docs/de/user-guide/layers-and-pages.mdindex ee04466d5..fcc19467a 100644--- a/packages/docs/de/user-guide/layers-and-pages.md+++ b/packages/docs/de/user-guide/layers-and-pages.md@@ -25,7 +25,7 @@ Klicken Sie auf das Auge-Symbol neben einer Ebene, um sie auf dem Canvas ein- od### Umbenennen-Doppelklicken Sie auf einen Ebenennamen, um ihn inline umzubenennen.+Doppelklicken Sie auf einen Ebenennamen, um ihn inline umzubenennen. **Enter** oder Klick außerhalb bestätigt, **Escape** bricht ab.### Auswahl-Synchronisationdiff --git a/packages/docs/es/guide/comparison.md b/packages/docs/es/guide/comparison.mdindex 5ce54f8f4..6ae63e728 100644--- a/packages/docs/es/guide/comparison.md+++ b/packages/docs/es/guide/comparison.md@@ -13,7 +13,7 @@ Penpot 2.x incluye un renderer Rust/Skia WASM (`render-wasm/v1`) activable vía| LOC total | **~26.000** | **~299.000** || Archivos fuente | ~143 | ~2.900 || Lenguajes | TypeScript, Vue | Clojure, ClojureScript, Rust, JS, SQL, SCSS |-| Motor de renderizado | 1.646 LOC (TS) | 22.000 LOC (Rust/Skia WASM) |+| Motor de renderizado | ~3.200 LOC (TS, 10 Dateien) | 22.000 LOC (Rust/Skia WASM) || Código UI | ~4.500 LOC | ~175.000 LOC (CLJS + SCSS) || Backend | Ninguno (local-first) | 32.600 LOC + 151 archivos SQL || Ratio LOC | **1×** | **~11×** |@@ -233,7 +233,7 @@ El enfoque de Open Pencil es más simple y con menos overhead.## 10. Lo que Penpot hace mejor1. **Colaboración servidor** — edición multiusuario centralizada con WebSockets, cuentas y control de acceso-2. **Exportación servidor** — servicio de export con Chromium headless+2. **Exportación PDF en servidor** — servicio de export Chromium headless para PDF (Open Pencil ya exporta SVG nativamente)3. **Sistema de plugins** — API completa con ejecución sandboxed4. **Tokens de diseño** — soporte nativo de design tokens5. **CSS Grid layout** — implementación propia (Open Pencil espera Yoga Grid)@@ -242,7 +242,7 @@ El enfoque de Open Pencil es más simple y con menos overhead.## 11. Scripting y extensibilidad-OpenPencil incluye un [comando `eval`](/eval-command) que proporciona una API de Plugin compatible con Figma para scripting headless. Además, 75 herramientas AI disponibles vía chat integrado, servidor MCP (stdio + HTTP) y CLI. Penpot tiene sistema de plugins con ejecución sandboxed pero sin API de scripting headless ni integración MCP.+OpenPencil incluye un [comando `eval`](/eval-command) que proporciona una API de Plugin compatible con Figma para scripting headless. Además, 78 herramientas AI disponibles vía chat integrado, servidor MCP (stdio + HTTP) y CLI. Penpot tiene sistema de plugins con ejecución sandboxed pero sin API de scripting headless ni integración MCP.## Resumen@@ -259,4 +259,4 @@ OpenPencil incluye un [comando `eval`](/eval-command) que proporciona una API de| **Self-hosting** | Penpot | Listo para Docker vs solo desktop || **Madurez del ecosistema** | Penpot | Años de producción vs etapa temprana |-Open Pencil es arquitectónicamente más ligero — un renderer CanvasKit de proceso único en ~26K LOC de TypeScript, compatible con Figma por diseño. Penpot es una plataforma full-stack con ~299K LOC. Ambos ofrecen colaboración en tiempo real (P2P vs servidor). Penpot tiene ecosistema de plugins y exportación servidor; Open Pencil tiene scripting headless compatible con Figma, 75 herramientas AI/MCP y una app desktop nativa.+Open Pencil es arquitectónicamente más ligero — un renderer CanvasKit de proceso único en ~26K LOC de TypeScript, compatible con Figma por diseño. Penpot es una plataforma full-stack con ~299K LOC. Ambos ofrecen colaboración en tiempo real (P2P vs servidor). Penpot tiene ecosistema de plugins y exportación PDF en servidor; Open Pencil tiene scripting headless compatible con Figma, **78 herramientas AI/MCP**, exportación SVG y app desktop nativa.diff --git a/packages/docs/es/guide/features.md b/packages/docs/es/guide/features.mdindex 641c3d47c..e859b173f 100644--- a/packages/docs/es/guide/features.md+++ b/packages/docs/es/guide/features.md@@ -168,7 +168,43 @@ Asistente IA integrado accesible vía la pestaña IA o <kbd>⌘</kbd><kbd>J</kbd**75 herramientas** definidas en `packages/core/src/tools/schema.ts`, cubriendo: operaciones de lectura, creación, modificación, manipulación de nodos, CRUD de variables, herramientas de rutas vectoriales, control de viewport y un escape hatch `eval`. Las herramientas están conectadas al chat IA (schemas valibot), servidor MCP (schemas zod) y CLI (comando `eval`).-**Servidor MCP** (`packages/mcp/`) expone todas las herramientas para herramientas de codificación IA externas. Dos transportes: stdio y HTTP con Hono. Añade 3 herramientas de gestión de archivos sobre las 75 herramientas core, para 78 en total.+**Servidor MCP** (`packages/mcp/`) expone todas las herramientas para herramientas de codificación IA externas. Dos transportes: stdio y HTTP con Hono. Añade 3 herramientas de gestión de archivos sobre las 75 herramientas core (= 78 en total), para 78 en total.++## Exportación SVG++Exporta nodos seleccionados como PNG, JPG, WEBP o SVG. CLI: `bun open-pencil export --format svg file.fig`.++## Copiar como++El submenú **Copiar como** del menú contextual ofrece: Copiar como texto, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), JSX.++## Alineación de trazo y pesos por lado++Alineación: **Interior**, **Centro** o **Exterior**. Pesos individuales por lado (Arriba/Derecha/Abajo/Izquierda) mediante el selector de lados.++## Layout móvil & PWA++Instalable como PWA. En móvil, paneles laterales reemplazados por cajón inferior deslizable con pestañas.++## Exportación Tailwind CSS v4++La pestaña Código ofrece alternancia entre **OpenPencil JSX** y **Tailwind CSS v4** (HTML con clases de utilidad).++## Google Fonts Fallback++Cuando una fuente no está disponible localmente, OpenPencil la carga automáticamente de Google Fonts API.++## Homebrew Tap++En macOS: `brew install open-pencil/tap/open-pencil`++## Renombrar capas inline++Doble clic en el nombre de una capa para renombrarla. Enter o clic fuera confirma, Escape cancela.++## Profiler de renderizado++Superposición HUD con métricas de tiempo de renderizado. Accesible desde el menú Vista.## Panel de códigodiff --git a/packages/docs/es/guide/figma-comparison.md b/packages/docs/es/guide/figma-comparison.mdindex 98576a16b..257afd650 100644--- a/packages/docs/es/guide/figma-comparison.md+++ b/packages/docs/es/guide/figma-comparison.md@@ -6,7 +6,7 @@ Comparación característica por característica de las capacidades de Figma Des✅ Soportado — la característica funciona de extremo a extremo · 🟡 Parcial — el comportamiento base existe, faltan algunas sub-características · 🔲 Aún no implementado:::-**Cobertura:** 88 de 152 ítems de características de Figma abordados — 70 ✅ completamente soportados, 18 🟡 parciales, 64 🔲 pendientes. Última actualización: 2026-03-04.+**Cobertura:** 94 de 158 ítems de características de Figma abordados — 76 ✅ completamente soportados, 18 🟡 parciales, 64 🔲 pendientes. Última actualización: 2026-03-07.## Interfaz y navegación@@ -28,7 +28,7 @@ Comparación característica por característica de las capacidades de Figma Des| Miniaturas personalizadas | 🔲 | Miniatura generada en export, pero sin selector de miniatura personalizada || Configuración de valores de nudge | 🔲 | Por defecto 1px/10px; Figma permite valores personalizados || Menú de app (modo navegador) | ✅ | Menús Archivo, Editar, Ver, Objeto, Texto, Organizar; Tauri usa menús nativos |-| Herramientas IA | 🟡 | 75 herramientas vía OpenRouter + servidor MCP; sin imágenes generadas por IA ni búsqueda IA aún |+| Herramientas IA | 🟡 | 78 herramientas vía OpenRouter + servidor MCP; sin imágenes generadas por IA ni búsqueda IA aún |## Capas y formas@@ -48,7 +48,7 @@ Comparación característica por característica de las capacidades de Figma Des| Escalar capas proporcionalmente | 🟡 | Shift-redimensionar mantiene proporciones; sin herramienta Scale dedicada (K) || Bloquear y desbloquear capas | ✅ | ⇧⌘L alterna bloqueo; nodos bloqueados no se pueden seleccionar/mover || Alternar visibilidad de capa | ✅ | Icono de ojo en panel de capas + atajo ⇧⌘H |-| Renombrar capas | 🟡 | Renombrado programático vía store; sin UI de renombrado inline en panel de capas aún |+| Renombrar capas | ✅ | Doble clic para renombrar inline; Enter/Escape/clic para confirmar || Traer al frente / Enviar al fondo | ✅ | Atajos ] y [; también en menú contextual || Mover a página | ✅ | Mover nodos entre páginas vía menú contextual || Restricciones (redimensionamiento responsivo) | 🔲 | Fijar bordes/centro para comportamiento de resize del padre |@@ -193,9 +193,9 @@ Comparación característica por característica de las capacidades de Figma Des| Portapapeles de Figma (pegar) | ✅ | Decodificar binario Kiwi del portapapeles de Figma || Portapapeles de Figma (copiar) | ✅ | Codificar binario Kiwi que Figma puede leer || Import de archivo Sketch | 🔲 | Parseo de archivos .sketch |-| Export de imagen/SVG | 🟡 | PNG/JPG/WEBP con selector de escala y vista previa; SVG/PDF aún no |+| Export de imagen/SVG/PDF | 🟡 | PNG/JPG/WEBP/SVG export ✅; PDF export 🔲 || Historial de versiones | 🔲 | Navegar y restaurar versiones anteriores |-| Copiar assets entre herramientas | 🟡 | Portapapeles de Figma funciona; sin portapapeles SVG/PDF |+| Copiar assets entre herramientas | ✅ | Portapapeles Figma (Kiwi binary), Copiar como texto/SVG/PNG/JSX |## API de plugins y scripting@@ -215,7 +215,7 @@ Comparación característica por característica de las capacidades de Figma Des| Code Connect | 🔲 | Vincular componentes de diseño a código || Fragmentos de código | 🟡 | Export JSX con resaltado y copia; sin fragmentos CSS/Swift/Kotlin || Figma for VS Code | 🔲 | Integración con plugin de editor |-| Servidor MCP | ✅ | @open-pencil/mcp con transportes stdio + HTTP; 75 herramientas core + 3 de gestión de archivos |+| Servidor MCP | ✅ | @open-pencil/mcp con transportes stdio + HTTP; 75 herramientas core + 3 de gestión de archivos = 78 total || Herramientas CLI | ✅ | CLI headless: info, tree, find, export, analyze, node, pages, variables, eval; servidor MCP |## Figma Drawdiff --git a/packages/docs/es/user-guide/context-menu.md b/packages/docs/es/user-guide/context-menu.mdindex d6ccf53f2..734713af7 100644--- a/packages/docs/es/user-guide/context-menu.md+++ b/packages/docs/es/user-guide/context-menu.md@@ -6,6 +6,17 @@ description: Acciones del menú contextual (clic derecho) en OpenPencil.Clic derecho en el lienzo para abrir el menú contextual. Clic derecho en un nodo lo selecciona primero.+## Copiar como++El submenú **Copiar como** ofrece estos formatos:++| Acción | Mac | Windows / Linux |+|--------|-----|-----------------|+| Copiar como texto | — | — |+| Copiar como SVG | — | — |+| Copiar como PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copiar como JSX | — | — |+## PortapapelesCopiar (⌘C), Cortar (⌘X), Pegar (⌘V), Duplicar (⌘D), Eliminar (⌫)diff --git a/packages/docs/es/user-guide/drawing-shapes.md b/packages/docs/es/user-guide/drawing-shapes.mdindex c09feddfb..2d2a7e2a3 100644--- a/packages/docs/es/user-guide/drawing-shapes.md+++ b/packages/docs/es/user-guide/drawing-shapes.md@@ -20,7 +20,7 @@ description: Crear rectángulos, elipses, líneas, marcos y secciones en OpenPen## Propiedades- **Relleno** — color sólido, gradiente (lineal, radial, angular, diamante), imagen-- **Trazo** — ancho, color, remate, unión, patrón de guiones+- **Trazo** — ancho (uniforme o por lado: Arriba/Derecha/Abajo/Izquierda), color, alineación (Interior/Centro/Exterior), remate, unión, patrón de guiones- **Radio de esquinas** — uniforme o independiente por esquina- **Efectos** — sombra exterior, sombra interior, desenfoque de capa, desenfoque de fondodiff --git a/packages/docs/es/user-guide/exporting.md b/packages/docs/es/user-guide/exporting.mdindex c6bfdec6e..3c2522e9a 100644--- a/packages/docs/es/user-guide/exporting.md+++ b/packages/docs/es/user-guide/exporting.md@@ -1,14 +1,39 @@---title: Exportar-description: Exportar imágenes (PNG, JPG, WEBP) y gestionar archivos .fig en OpenPencil.+description: Exportar imágenes (PNG, JPG, WEBP, SVG) y gestionar archivos .fig en OpenPencil.---# Exportar## Exportación de imágenes-- **Escala** — 0,5× a 4× · **Formato** — PNG, JPG, WEBP-- **⇧ ⌘ E** o clic derecho → Exportar… o botón en panel de propiedades++Selecciona un nodo y usa la sección Export en el panel de propiedades.++### Configuración de exportación++- **Escala** — 0,5×, 0,75×, 1×, 1,5×, 2×, 3× o 4× (oculta para SVG — los vectores son independientes de la resolución)+- **Formato** — PNG (fondo transparente), JPG (fondo blanco), WEBP (fondo transparente), SVG (vector)++### Métodos de exportación++| Método | Mac | Windows / Linux |+|--------|-----|-----------------|+| Atajo de teclado | ⇧ ⌘ E | Shift + Ctrl + E |+| Menú contextual | Clic derecho → Exportar… | Clic derecho → Exportar… |+| Panel de propiedades | Botón "Exportar" | Botón "Exportar" |++## Copiar como++El menú contextual **Copiar como** ofrece formatos adicionales:++| Acción | Mac | Windows / Linux |+|--------|-----|-----------------|+| Copiar como texto | — | — |+| Copiar como SVG | — | — |+| Copiar como PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copiar como JSX | — | — |## Operaciones de archivo .fig+| Acción | Mac | Windows / Linux ||--------|-----|-----------------|| Abrir | ⌘ O | Ctrl + O |@@ -16,3 +41,9 @@ description: Exportar imágenes (PNG, JPG, WEBP) y gestionar archivos .fig en Op| Guardar como | ⇧ ⌘ S | Shift + Ctrl + S |Compatibilidad de ida y vuelta con Figma.++## Consejos++- Usa escala 2× o 3× para pantallas de alta resolución.+- JPG siempre usa fondo blanco — usa PNG o WEBP si necesitas transparencia.+- Usa SVG para edición vectorial posterior en editores de código o Illustrator.diff --git a/packages/docs/es/user-guide/layers-and-pages.md b/packages/docs/es/user-guide/layers-and-pages.mdindex ed661d1fa..fd904f98e 100644--- a/packages/docs/es/user-guide/layers-and-pages.md+++ b/packages/docs/es/user-guide/layers-and-pages.md@@ -11,11 +11,15 @@ description: Gestionar capas, páginas y panel de propiedades en OpenPencil.- **Cambiar página** — clic en una pestaña- **Añadir** — botón añadir- **Eliminar** — eliminar página actual-- **Renombrar** — doble clic en el nombre+- **Renombrar** — doble clic en el nombre; Enter o clic fuera para confirmar, Escape para cancelarCada página tiene su propio estado de viewport.## Panel de propiedades-Tres pestañas: **Diseño** (propiedades contextuales), **Código** (JSX), **IA** (chat ⌘ J).+Tres pestañas: **Diseño** (propiedades contextuales), **Código** (JSX / Tailwind CSS v4), **IA** (chat ⌘ J).Diseño: apariencia, relleno, trazo, efectos, tipografía, layout, exportación.++## Diseño móvil++En móvil y pantallas pequeñas, los paneles laterales se reemplazan por un cajón inferior deslizable con pestañas: Capas, Propiedades, Diseño, Código.diff --git a/packages/docs/fr/guide/comparison.md b/packages/docs/fr/guide/comparison.mdindex 5d97446a4..2b46a5007 100644--- a/packages/docs/fr/guide/comparison.md+++ b/packages/docs/fr/guide/comparison.md@@ -13,7 +13,7 @@ Penpot 2.x inclut un renderer Rust/Skia WASM (`render-wasm/v1`) activable via le| LOC total | **~26 000** | **~299 000** || Fichiers source | ~143 | ~2 900 || Langages | TypeScript, Vue | Clojure, ClojureScript, Rust, JS, SQL, SCSS |-| Moteur de rendu | 1 646 LOC (TS) | 22 000 LOC (Rust/Skia WASM) |+| Moteur de rendu | ~3 200 LOC (TS, 10 plików) | 22 000 LOC (Rust/Skia WASM) || Code UI | ~4 500 LOC | ~175 000 LOC (CLJS + SCSS) || Backend | Aucun (local-first) | 32 600 LOC + 151 fichiers SQL || Ratio LOC | **1×** | **~11×** |@@ -220,7 +220,7 @@ Gestion d'état via Potok (bibliothèque Redux-like pour atomes ClojureScript).## 10. Ce que Penpot fait mieux1. **Collaboration serveur** — édition multi-utilisateurs centralisée avec WebSockets, comptes et contrôle d'accès-2. **Export serveur** — service d'export Chromium headless+2. **Export PDF serveur** — service d'export Chromium headless pour PDF (Open Pencil exporte déjà en SVG nativement)3. **Système de plugins** — API complète avec exécution sandboxée4. **Tokens de design** — support natif des design tokens5. **CSS Grid layout** — implémentation personnalisée (Open Pencil attend Yoga Grid)@@ -229,7 +229,7 @@ Gestion d'état via Potok (bibliothèque Redux-like pour atomes ClojureScript).## 11. Scripting et extensibilité-OpenPencil inclut une [commande `eval`](/eval-command) offrant une API Plugin compatible Figma pour le scripting headless. De plus, 75 outils IA sont disponibles via le chat intégré, le serveur MCP (stdio + HTTP) et le CLI. Penpot a un système de plugins avec exécution sandboxée mais pas d'API de scripting headless ni d'intégration MCP.+OpenPencil inclut une [commande `eval`](/eval-command) offrant une API Plugin compatible Figma pour le scripting headless. De plus, 78 outils IA sont disponibles via le chat intégré, le serveur MCP (stdio + HTTP) et le CLI. Penpot a un système de plugins avec exécution sandboxée mais pas d'API de scripting headless ni d'intégration MCP.## Résumé@@ -246,4 +246,4 @@ OpenPencil inclut une [commande `eval`](/eval-command) offrant une API Plugin co| **Self-hosting** | Penpot | Prêt Docker vs desktop uniquement || **Maturité écosystème** | Penpot | Années de production vs stade précoce |-Open Pencil est architecturalement plus léger — un renderer CanvasKit monoprocessus en ~26K LOC TypeScript, compatible Figma par conception. Penpot est une plateforme full-stack avec ~299K LOC. Open Pencil a le scripting headless, 75 outils AI/MCP et une app desktop native.+Open Pencil est architecturalement plus léger — un renderer CanvasKit monoprocessus en ~26K LOC TypeScript, compatible Figma par conception. Penpot est une plateforme full-stack avec ~299K LOC. Open Pencil a le scripting headless, **78 outils AI/MCP**, export SVG et une app desktop native.diff --git a/packages/docs/fr/guide/features.md b/packages/docs/fr/guide/features.mdindex 76c9aefa3..2aaa3a8fa 100644--- a/packages/docs/fr/guide/features.md+++ b/packages/docs/fr/guide/features.md@@ -152,7 +152,43 @@ Création programmable via TreeNode builders. Props shorthand style Tailwind.## Chat IA-Assistant IA intégré via <kbd>⌘</kbd><kbd>J</kbd>. **75 outils** dans `schema.ts` couvrant lecture, création, modification, manipulation de nœuds, CRUD variables, outils vectoriels, contrôle viewport et `eval`. **Serveur MCP** expose 78 outils au total (75 core + 3 gestion fichiers) pour les outils de codage IA externes.+Assistant IA intégré via <kbd>⌘</kbd><kbd>J</kbd>. **78 outils** dans `schema.ts` couvrant lecture, création, modification, manipulation de nœuds, CRUD variables, outils vectoriels, contrôle viewport et `eval`. **Serveur MCP** expose 78 outils au total (75 core + 3 gestion fichiers) pour les outils de codage IA externes.++## Export SVG++Exporte les nœuds sélectionnés en PNG, JPG, WEBP ou SVG. CLI : `bun open-pencil export --format svg file.fig`.++## Copier en tant que++Le sous-menu **Copier en tant que** du menu contextuel propose : Copier en tant que texte, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), JSX.++## Alignement du contour & épaisseurs par côté++Alignement : **Intérieur**, **Centre** ou **Extérieur**. Épaisseurs individuelles par côté (Haut/Droite/Bas/Gauche).++## Layout mobile & PWA++Installable en PWA. Sur mobile, panneaux latéraux remplacés par un tiroir inférieur glissable avec onglets.++## Export Tailwind CSS v4++L'onglet Code propose un basculement entre **OpenPencil JSX** et **Tailwind CSS v4** (HTML avec classes utilitaires).++## Google Fonts Fallback++Si une police n'est pas disponible localement, OpenPencil la charge automatiquement depuis Google Fonts API.++## Homebrew Tap++Sur macOS : `brew install open-pencil/tap/open-pencil`++## Renommage inline des calques++Double-clic sur le nom d'un calque pour le renommer. Entrée ou clic ailleurs valide, Échap annule.++## Profileur de rendu++Superposition HUD avec métriques de timing. Accessible via le menu Affichage.## Panneau de codediff --git a/packages/docs/fr/guide/figma-comparison.md b/packages/docs/fr/guide/figma-comparison.mdindex 9dd89aa5c..32172a4d2 100644--- a/packages/docs/fr/guide/figma-comparison.md+++ b/packages/docs/fr/guide/figma-comparison.md@@ -6,7 +6,7 @@ Comparaison fonctionnalité par fonctionnalité des capacités de Figma Design a✅ Supporté — la fonctionnalité est complète · 🟡 Partiel — le comportement de base existe, certaines sous-fonctionnalités manquent · 🔲 Pas encore implémenté:::-**Couverture :** 88 des 152 éléments Figma traités — 70 ✅ entièrement supportés, 18 🟡 partiels, 64 🔲 en attente. Dernière mise à jour : 2026-03-04.+**Couverture :** 94 des 158 éléments Figma traités — 76 ✅ entièrement supportés, 18 🟡 partiels, 64 🔲 en attente. Dernière mise à jour : 2026-03-07.## Interface et navigation@@ -28,7 +28,7 @@ Comparaison fonctionnalité par fonctionnalité des capacités de Figma Design a| Miniatures personnalisées | 🔲 | Miniature générée à l'export, mais pas de sélecteur personnalisé || Réglages de valeur de nudge | 🔲 | Défaut 1px/10px ; Figma permet des valeurs personnalisées || Menu de l'app (mode navigateur) | ✅ | Menus Fichier, Édition, Affichage, Objet, Texte, Disposition ; Tauri utilise les menus natifs |-| Outils IA | 🟡 | 75 outils via OpenRouter + serveur MCP ; pas d'images générées par IA ni de recherche IA encore |+| Outils IA | 🟡 | 78 outils via OpenRouter + serveur MCP ; pas d'images générées par IA ni de recherche IA encore |## Calques et formes@@ -48,7 +48,7 @@ Comparaison fonctionnalité par fonctionnalité des capacités de Figma Design a| Mettre à l'échelle proportionnellement | 🟡 | Shift-redimensionner contraint les proportions ; pas d'outil Scale dédié (K) || Verrouiller et déverrouiller des calques | ✅ | ⇧⌘L toggle le verrouillage || Basculer la visibilité | ✅ | Icône œil dans le panneau + raccourci ⇧⌘H |-| Renommer des calques | 🟡 | Renommage programmatique via store ; pas d'UI inline encore |+| Renommer des calques | ✅ | Double-clic renommage inline ; Entrée/Échap/clic pour valider || Mettre au premier plan / Envoyer en arrière | ✅ | Raccourcis ] et [ ; aussi dans le menu contextuel || Déplacer vers une page | ✅ | Déplacer les nœuds entre pages via menu contextuel || Contraintes (redimensionnement réactif) | 🔲 | Épingler bords/centre pour le comportement de resize parent |@@ -193,9 +193,9 @@ Comparaison fonctionnalité par fonctionnalité des capacités de Figma Design a| Presse-papiers Figma (coller) | ✅ | Décoder binaire Kiwi du presse-papiers Figma || Presse-papiers Figma (copier) | ✅ | Encoder binaire Kiwi lisible par Figma || Import de fichier Sketch | 🔲 | Analyse de fichiers .sketch |-| Export image/SVG | 🟡 | PNG/JPG/WEBP avec sélecteur d'échelle et aperçu ; SVG/PDF pas encore |+| Export image/SVG | 🟡 | PNG/JPG/WEBP avec sélecteur d'échelle et aperçu ; WEBP/SVG export ✅ ; PDF export 🔲 || Historique des versions | 🔲 | Parcourir et restaurer les versions précédentes |-| Copier des assets entre outils | 🟡 | Presse-papiers Figma fonctionne ; pas de presse-papiers SVG/PDF |+| Copier des assets entre outils | 🟡 | Presse-papiers Figma fonctionne ; Copier comme texte/SVG/PNG/JSX |## API de plugins et scripting@@ -215,7 +215,7 @@ Comparaison fonctionnalité par fonctionnalité des capacités de Figma Design a| Code Connect | 🔲 | Lier composants de design au code || Extraits de code | 🟡 | Export JSX avec coloration et copie ; pas d'extraits CSS/Swift/Kotlin || Figma for VS Code | 🔲 | Intégration plugin éditeur |-| Serveur MCP | ✅ | @open-pencil/mcp avec transports stdio + HTTP ; 75 outils core + 3 gestion de fichiers |+| Serveur MCP | ✅ | @open-pencil/mcp avec transports stdio + HTTP ; 75 outils core + 3 gestion de fichiers = 78 total || Outils CLI | ✅ | CLI headless : info, tree, find, export, analyze, node, pages, variables, eval ; serveur MCP |## Figma Drawdiff --git a/packages/docs/fr/user-guide/context-menu.md b/packages/docs/fr/user-guide/context-menu.mdindex 823d4d889..856f3e006 100644--- a/packages/docs/fr/user-guide/context-menu.md+++ b/packages/docs/fr/user-guide/context-menu.md@@ -6,6 +6,17 @@ description: Actions du menu contextuel (clic droit) dans OpenPencil.Clic droit sur le canevas pour ouvrir le menu contextuel. Clic droit sur un nœud le sélectionne d'abord.+## Copier en tant que++Le sous-menu **Copier en tant que** offre ces formats :++| Action | Mac | Windows / Linux |+|--------|-----|-----------------|+| Copier en tant que texte | — | — |+| Copier en tant que SVG | — | — |+| Copier en tant que PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copier en tant que JSX | — | — |+## Presse-papiersCopier (⌘C), Couper (⌘X), Coller (⌘V), Dupliquer (⌘D), Supprimer (⌫)diff --git a/packages/docs/fr/user-guide/drawing-shapes.md b/packages/docs/fr/user-guide/drawing-shapes.mdindex f85ad168b..922cea1ca 100644--- a/packages/docs/fr/user-guide/drawing-shapes.md+++ b/packages/docs/fr/user-guide/drawing-shapes.md@@ -20,7 +20,7 @@ description: Créer des rectangles, ellipses, lignes, cadres et sections dans Op## Propriétés- **Remplissage** — couleur unie, dégradé (linéaire, radial, angulaire, diamant), image-- **Contour** — largeur, couleur, terminaison, jointure, tirets+- **Contour** — largeur (uniforme ou par côté : Haut/Droite/Bas/Gauche), couleur, alignement (Intérieur/Centre/Extérieur), terminaison, jointure, tirets- **Rayon des coins** — uniforme ou indépendant par coin- **Effets** — ombre portée, ombre interne, flou de calque, flou d'arrière-plandiff --git a/packages/docs/fr/user-guide/exporting.md b/packages/docs/fr/user-guide/exporting.mdindex 5e569ac9c..98679907c 100644--- a/packages/docs/fr/user-guide/exporting.md+++ b/packages/docs/fr/user-guide/exporting.md@@ -1,14 +1,39 @@---title: Exportation-description: Exporter des images (PNG, JPG, WEBP) et gérer les fichiers .fig dans OpenPencil.+description: Exporter des images (PNG, JPG, WEBP, SVG) et gérer les fichiers .fig dans OpenPencil.---# Exportation-## Export d'images-- **Échelle** — 0,5× à 4× · **Format** — PNG, JPG, WEBP-- **⇧ ⌘ E** ou clic droit → Exporter… ou bouton dans le panneau propriétés+## Exportation d'images++Sélectionnez un nœud et utilisez la section Export dans le panneau de propriétés.++### Paramètres d'exportation++- **Échelle** — 0,5×, 0,75×, 1×, 1,5×, 2×, 3× ou 4× (masquée pour SVG — les vecteurs sont indépendants de la résolution)+- **Format** — PNG (fond transparent), JPG (fond blanc), WEBP (fond transparent), SVG (vecteur)++### Méthodes d'exportation++| Méthode | Mac | Windows / Linux |+|--------|-----|-----------------|+| Raccourci clavier | ⇧ ⌘ E | Shift + Ctrl + E |+| Menu contextuel | Clic droit → Exporter… | Clic droit → Exporter… |+| Panneau propriétés | Bouton "Exporter" | Bouton "Exporter" |++## Copier en tant que++Le menu contextuel **Copier en tant que** offre des formats supplémentaires :++| Action | Mac | Windows / Linux |+|--------|-----|-----------------|+| Copier en tant que texte | — | — |+| Copier en tant que SVG | — | — |+| Copier en tant que PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copier en tant que JSX | — | — |++## Opérations de fichier .fig-## Opérations fichiers .fig| Action | Mac | Windows / Linux ||--------|-----|-----------------|| Ouvrir | ⌘ O | Ctrl + O |@@ -16,3 +41,9 @@ description: Exporter des images (PNG, JPG, WEBP) et gérer les fichiers .fig da| Enregistrer sous | ⇧ ⌘ S | Shift + Ctrl + S |Compatibilité aller-retour avec Figma.++## Conseils++- Utilisez l'échelle 2× ou 3× pour les écrans haute résolution.+- JPG utilise toujours un fond blanc — utilisez PNG ou WEBP pour la transparence.+- Utilisez l'export SVG pour l'édition vectorielle dans des éditeurs de code ou Illustrator.diff --git a/packages/docs/fr/user-guide/layers-and-pages.md b/packages/docs/fr/user-guide/layers-and-pages.mdindex c8e9de5ea..e5801c872 100644--- a/packages/docs/fr/user-guide/layers-and-pages.md+++ b/packages/docs/fr/user-guide/layers-and-pages.md@@ -11,11 +11,16 @@ Arborescence hiérarchique à gauche. Déplier/replier, glisser pour réordonner- **Changer de page** — clic sur un onglet- **Ajouter** — bouton ajouter- **Supprimer** — supprimer la page courante-- **Renommer** — double-clic sur le nom+- **Renommer** — double-clic sur le nom ; Entrée ou clic ailleurs pour valider, Échap pour annulerChaque page a son propre état de viewport.## Panneau propriétés-Trois onglets : **Design** (propriétés contextuelles), **Code** (JSX), **IA** (chat ⌘ J).+Trois onglets : **Design** (propriétés contextuelles), **Code** (JSX / Tailwind CSS v4), **IA** (chat ⌘ J).Design : apparence, remplissage, contour, effets, typographie, mise en page, exportation.++## Disposition mobile++Sur mobile, les panneaux latéraux sont remplacés par un tiroir inférieur glissable avec onglets : Calques, Propriétés, Design, Code.+diff --git a/packages/docs/guide/architecture.md b/packages/docs/guide/architecture.mdindex b6b90bd77..a09ee8282 100644--- a/packages/docs/guide/architecture.md+++ b/packages/docs/guide/architecture.md@@ -89,8 +89,44 @@ Figma-compatible bidirectional clipboard. Encodes/decodes Kiwi binary (same form### MCP Server-`@open-pencil/mcp` exposes 75 core tools + 3 file management tools for AI coding tools. Two transports: stdio for Claude Code/Cursor/Windsurf, HTTP with Hono + Streamable HTTP for scripts and CI. Tools are defined once in `packages/core/src/tools/schema.ts` and adapted for AI chat (valibot), MCP (zod), and CLI (eval command).+`@open-pencil/mcp` exposes 75 core tools + 3 file management tools (78 total) for AI coding tools. Two transports: stdio for Claude Code/Cursor/Windsurf, HTTP with Hono + Streamable HTTP for scripts and CI. Tools are defined once in `packages/core/src/tools/schema.ts` and adapted for AI chat (valibot), MCP (zod), and CLI (eval command).### P2P CollaborationReal-time peer-to-peer collaboration via Trystero (WebRTC) + Yjs CRDT. No server relay — signaling over MQTT public brokers, STUN/TURN for NAT traversal. Awareness protocol provides live cursors, selections, and presence. Local persistence via y-indexeddb.++## What's Next++Current priorities and planned work, in rough order:++### More AI Providers++The AI chat currently routes through OpenRouter. Direct integrations planned: Anthropic API key (skip OpenRouter), Google Gemini, and local models via Ollama. This removes the OpenRouter dependency for users who already have API keys with individual providers.++### Full figma-use Tool Set++The MCP server currently exposes 78 tools. The reference implementation in [figma-use](https://github.com/dannote/figma-use) has 118. The remaining 40 tools cover advanced layout constraints, prototype connections, advanced component property editing, and bulk document operations — all will be ported.++### CI Design Tooling++The headless CLI already supports `analyze colors/typography/spacing/clusters`. Next: integrate these into GitHub Actions workflows for automated design linting (naming conventions, spacing consistency, accessibility contrast ratios) and visual regression in PRs via the headless PNG exporter.++### Prototyping++Frame-to-frame transitions, interaction triggers (click, hover, drag), overlay management, and a fullscreen preview mode. This is a large feature set — tracked as Phase 6 in the original roadmap.++### CSS Grid Layout++Yoga WASM currently supports flexbox only. CSS Grid support is upstream in [facebook/yoga#1893](https://github.com/facebook/yoga/pull/1893) (9 PRs merged). OpenPencil will adopt it once the Yoga release ships — no custom grid engine needed.++### PDF Export++SVG export shipped in v0.7.0. PDF export requires either a server-side headless renderer or CanvasKit's PDF canvas backend — the latter is being investigated for a client-side implementation.++### .fig Fidelity++Ongoing improvement of import/export round-trip accuracy for complex real-world files: advanced prototype connections, complex component property assignments, interaction effects, and rare node types not yet in the codec.++### Code Signing++macOS binaries are signed and notarized since v0.6.0. Windows Authenticode signing via Azure Code Signing is planned to remove the "unknown publisher" SmartScreen warning on Windows installers.diff --git a/packages/docs/guide/comparison.md b/packages/docs/guide/comparison.mdindex f965eba9c..2266f84c4 100644--- a/packages/docs/guide/comparison.md+++ b/packages/docs/guide/comparison.md@@ -13,7 +13,7 @@ Penpot 2.x includes a Rust/Skia WASM renderer (`render-wasm/v1`) that can be ena| Total LOC | **~26,000** | **~299,000** || Source files | ~143 | ~2,900 || Languages | TypeScript, Vue | Clojure, ClojureScript, Rust, JS, SQL, SCSS |-| Rendering engine | 1,646 LOC (TS) | 22,000 LOC (Rust/Skia WASM) |+| Rendering engine | ~3,200 LOC (TS, 10 files) | 22,000 LOC (Rust/Skia WASM) || UI code | ~4,500 LOC | ~175,000 LOC (CLJS + SCSS) || Backend | None (local-first) | 32,600 LOC + 151 SQL files || LOC ratio | **1×** | **~11×** |@@ -97,7 +97,7 @@ renderSceneToCanvas(canvas, graph, pageId) {- **1 boundary crossing:** TS → WASM (CanvasKit)- Scene graph lives in JS heap — no serialization to render-- 1,646 LOC total renderer+- ~3,200 LOC renderer (split into 10 focused files: scene, overlays, fills, strokes, shapes, effects, rulers, labels)### Penpot: JS (compiled from CLJS) → Rust WASM → Skia@@ -131,7 +131,7 @@ Open Pencil re-renders the full viewport every frame because CanvasKit called di| Rendering model | Immediate/full redraw | Tile-cached || Surface management | 1 surface | 11 surfaces || Memory overhead | Low (no tile cache) | High (1024 tile cache) |-| Code complexity | 1,646 LOC | 22,000 LOC |+| Code complexity | ~3,200 LOC (10 files) | 22,000 LOC || Unsafe code | None | `unsafe` global state |When Penpot's WASM renderer is enabled, both projects use Skia via JS→WASM. Open Pencil calls CanvasKit directly with TS objects. Penpot decomposes ClojureScript data into binary-packed structs, writes them to WASM linear memory, and renders through a 22,000 LOC Rust engine. When WASM is disabled (default), Penpot renders shapes as an SVG DOM tree. For small-to-medium documents, the direct CanvasKit path is faster. Penpot's tile system may win on extremely large canvases (100K+ shapes) where only a small viewport is visible — but the overhead is significant.@@ -263,7 +263,7 @@ Open Pencil's approach is simpler and lower overhead. Penpot's approach is more## 10. What Penpot Does Better1. **Server-side collaboration** — centralized multi-user editing with WebSockets, user accounts, and access control (Open Pencil uses P2P via Trystero + Yjs — no server, but also no access control or persistence beyond the session)-2. **Server-side export** — headless Chromium export service for SVG/PNG/PDF rendering+2. **PDF export** — headless Chromium export service for PDF rendering (OpenPencil exports SVG but not PDF yet)3. **Plugin system** — full plugin API with sandboxed execution4. **Design tokens** — native design token support5. **CSS Grid layout** — custom implementation (Open Pencil waiting for Yoga Grid)@@ -272,7 +272,7 @@ Open Pencil's approach is simpler and lower overhead. Penpot's approach is more## 11. Scripting & Extensibility-OpenPencil ships with an [`eval` command](/eval-command) that provides a Figma-compatible Plugin API for headless scripting — batch operations, automated testing, and AI-driven modifications all run without the GUI. On top of that, 75 AI tools are available via built-in chat, MCP server (stdio + HTTP), and the CLI. Penpot has a plugin system with sandboxed execution but no headless scripting API or MCP integration.+OpenPencil ships with an [`eval` command](/eval-command) that provides a Figma-compatible Plugin API for headless scripting — batch operations, automated testing, and AI-driven modifications all run without the GUI. On top of that, **78 AI tools** are available via built-in chat, MCP server (stdio + HTTP), and the CLI — covering read, create, modify, structure, variables, vector path, analyze (color/typography/spacing/clusters), diff, boolean operations, and arrangement. Penpot has a plugin system with sandboxed execution but no headless scripting API or MCP integration.## Summary@@ -289,4 +289,4 @@ OpenPencil ships with an [`eval` command](/eval-command) that provides a Figma-c| **Self-hosting** | Penpot | Docker-ready vs desktop-only || **Ecosystem maturity** | Penpot | Years of production vs early stage |-Open Pencil is architecturally leaner — a single-process CanvasKit renderer in ~26K LOC of TypeScript, Figma-compatible by design. Penpot is a full-stack platform with ~299K LOC across Clojure, ClojureScript, Rust, and SCSS, plus a Docker service fleet. Both now offer real-time collaboration (different architectures: P2P vs server). Penpot has a plugin ecosystem and server-side export; Open Pencil has Figma-compatible headless scripting, 75 AI/MCP tools, and a native desktop app.+Open Pencil is architecturally leaner — a single-process CanvasKit renderer in ~26K LOC of TypeScript, Figma-compatible by design. Penpot is a full-stack platform with ~299K LOC across Clojure, ClojureScript, Rust, and SCSS, plus a Docker service fleet. Both now offer real-time collaboration (different architectures: P2P vs server). Penpot has a plugin ecosystem and server-side PDF export; Open Pencil has Figma-compatible headless scripting, **78 AI/MCP tools**, SVG export, and a native desktop app.diff --git a/packages/docs/guide/features.md b/packages/docs/guide/features.mdindex a24bbf79b..b11b294ba 100644--- a/packages/docs/guide/features.md+++ b/packages/docs/guide/features.md@@ -140,15 +140,33 @@ Supports COLOR type with full UI, FLOAT/STRING/BOOLEAN types defined. Organize vThe demo document includes three collections: Primitives (9 colors with Light/Dark modes), Semantic (aliases to Primitives), and Spacing (8 number tokens with Default/Compact modes). Variables are bound to demo nodes for live preview.-## Image Export+## Image & SVG Export-Export selected nodes as PNG, JPG, or WEBP. The Export section in the properties panel provides scale selection (0.5×–4×), format picker, multi-export support (add multiple export settings), and a live preview with checkerboard background. JPG renders with white background, PNG/WEBP with transparency. Also available via context menu "Export…" and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> shortcut. Uses Tauri save dialog, File System Access API, or download fallback depending on platform.+Export selected nodes as PNG, JPG, WEBP, or SVG. The Export section in the properties panel provides scale selection (0.5×–4×, hidden for SVG), format picker, multi-export support, and a live preview with checkerboard background. Also available via context menu "Export…" and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd>. SVG export supports rectangles, ellipses, lines, stars, polygons, vectors, text with style runs, gradients, image fills, effects, blend modes, and nested groups.++CLI: `bun open-pencil export --format svg file.fig`. MCP/AI tool: `export_svg`.++## Copy/Paste as++The context menu **Copy/Paste as** submenu exposes multiple clipboard formats:++- **Copy as text** — visible text content from the selection+- **Copy as SVG** — full SVG markup of the selection+- **Copy as PNG** — renders at 2× to the system clipboard (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>)+- **Copy as JSX** — OpenPencil JSX compatible with `renderJsx()`++## Stroke Align & Per-Side Weights++Stroke alignment controls where the stroke is drawn relative to the shape boundary: **Inside** (stroke painted inside, clip path trims overlap with fill), **Center**, or **Outside**. Rendering matches Figma's behavior exactly.++Individual stroke weights per side let you set different widths for Top, Right, Bottom, and Left independently via the side selector dropdown in the Stroke section.## Context MenuRight-click on the canvas opens a Figma-style context menu. Actions adapt to the current selection:- **Clipboard** — Copy, Cut, Paste here, Duplicate, Delete+- **Copy/Paste as** — Copy as text, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), JSX- **Z-order** — Bring to front, Send to back- **Grouping** — Group, Ungroup, Add auto layout- **Components** — Create component, Create component set, Create instance, Go to main component, Detach instance (purple-styled items)@@ -175,6 +193,40 @@ In browser mode, a menu bar built with reka-ui Menubar provides access to all maFiles are automatically saved 3 seconds after the last scene change. A debounced watcher monitors `sceneVersion` — multiple rapid edits only trigger a single write after activity settles. Uses the Tauri fs plugin on desktop or the File System Access API in supported browsers. Autosave is disabled for new untitled documents until the user performs an explicit Save As. Errors are handled silently — the user can always trigger a manual save with <kbd>⌘</kbd><kbd>S</kbd>.+**Auto-save toggle** — File → Auto-save disables automatic writes when you want full manual control (useful during exploratory edits you may not want to persist).++## Mobile Layout & PWA++OpenPencil is installable as a Progressive Web App on mobile devices. The responsive layout adapts to small screens:++- Side panels replaced by a **swipeable bottom drawer** with tabs: Layers, Properties, Design, Code+- Toolbar collapses to a compact strip with animated category switching+- Spring-animated drawer with pan gesture control+- PWA manifest with icons and service worker for offline capability (disabled in dev mode)++## Tailwind CSS v4 JSX Export++The Code panel's format toggle switches between two output modes:++- **OpenPencil** — custom component tree (`Frame`, `Text`, `Rect`, etc.) compatible with `renderJsx()`+- **Tailwind CSS v4** — HTML with utility classes (`<div className="flex gap-4 p-3">`) ready to drop into any React or Vue project++Tailwind output supports layout, sizing, colors, border radius, opacity, rotation, overflow, shadows, blur, and typography. Uses v4 spacing semantics (px/4 multiplier) with automatic fallback to arbitrary values for non-standard sizes.++CLI: `bun open-pencil export --format jsx --style tailwind file.fig`++## Google Fonts Fallback++When a font is not available locally, OpenPencil automatically fetches it from Google Fonts API. This ensures text renders correctly when opening .fig files that reference fonts not installed on the system — no manual font installation required.++## Layer Inline Rename++Double-click any layer name in the layers panel to rename it inline. Press **Enter** or click away to commit, **Escape** to cancel. Works for all node types.++## Renderer Profiler++A developer HUD overlay shows per-frame render timing, GPU phase breakdown, and frame budget. Accessible via the View menu. Useful for diagnosing performance issues on complex documents.+## P2P CollaborationReal-time peer-to-peer collaboration — no server required. Share a link and edit together. Built on Trystero (WebRTC) for direct peer connections and Yjs (CRDT) for conflict-free document sync.@@ -227,6 +279,16 @@ Single-node alignment aligns to parent frame bounds. Multi-selection uses the seAll numeric inputs in the properties panel use a drag-to-scrub interaction — drag horizontally to adjust the value, or click to type directly. Supports suffix display (°, px, %).+## Homebrew Tap++macOS users can install the desktop app via Homebrew:++```sh+brew install open-pencil/tap/open-pencil+```++Supports Apple Silicon (arm64) and Intel (x64). The tap is auto-updated on each release via GitHub Actions.+## CI/CD BuildsGitHub Actions workflow builds native Tauri desktop apps on version tags. The build matrix covers macOS (arm64, x64), Windows (x64, arm64), and Linux (x64). Builds use `tauri-apps/tauri-action` and produce draft GitHub releases with platform-specific binaries. macOS builds are code-signed and notarized via Apple Developer certificates. Release notes are auto-populated from CHANGELOG.md.@@ -270,7 +332,7 @@ Built-in AI assistant accessible via the AI tab in the properties panel or <kbd>**Model selector** with curated models: Claude, Gemini, GPT, DeepSeek, Qwen, Kimi, Llama — stored in `@open-pencil/core` constants with benchmark-ranked tags. Responses stream as markdown (vue-stream-markdown).-**75 tools** defined in `packages/core/src/tools/schema.ts`, covering: read operations (selection, page tree, node details, search), create operations (shapes, frames, vectors, slices, pages, components, instances), modify operations (fill, stroke, effects, layout, constraints, text, font, opacity, rotation, radius, visibility, blend mode, lock), node manipulation (move, resize, reparent, clone, delete, flatten, boolean operations), variable CRUD (get, find, create, set, delete, bind, collections), vector path tools (get, set, scale, flip, move), viewport control, and an `eval` escape hatch. Tools are wired to AI chat (valibot schemas), MCP server (zod schemas), and CLI (`eval` command). Tool calls display as collapsible timeline entries in the chat (reka-ui Collapsible).+**78 tools** defined in `packages/core/src/tools/schema.ts`, covering: read operations (selection, page tree, node details, search, components), create operations (shapes, frames, vectors, slices, pages, components, instances), modify operations (fill, stroke, effects, layout, constraints, text, font, opacity, rotation, radius, visibility, blend mode, lock, stroke align), node manipulation (move, resize, reparent, clone, delete, flatten, boolean operations, arrange), variable CRUD (get, find, create, set, delete, bind, collections), vector path tools (get, set, scale, flip, move), analyze (colors, typography, spacing, clusters), diff (create/show snapshots), and an `eval` escape hatch. Tools are wired to AI chat (valibot schemas), MCP server (zod schemas), and CLI (`eval` command). Tool calls display as collapsible timeline entries in the chat (reka-ui Collapsible).**MCP server** (`packages/mcp/`) exposes all tools for external AI coding tools. Two transports: stdio for Claude Code/Cursor/Windsurf (`openpencil-mcp`), HTTP with Hono + Streamable HTTP for scripts and CI (`openpencil-mcp-http`). Adds 3 file management tools (`open_file`, `save_file`, `new_document`) on top of the 75 core tools, for 78 total. Runs on Bun and Node.js. See [MCP Tools reference](/reference/mcp-tools).diff --git a/packages/docs/guide/figma-comparison.md b/packages/docs/guide/figma-comparison.mdindex d41ab0e8d..20d46ddd7 100644--- a/packages/docs/guide/figma-comparison.md+++ b/packages/docs/guide/figma-comparison.md@@ -6,7 +6,7 @@ Feature-by-feature comparison of Figma Design capabilities with Open Pencil's cu✅ Supported — feature works end-to-end · 🟡 Partial — core behavior exists, some sub-features missing · 🔲 Not yet implemented:::-**Coverage:** 88 of 152 Figma feature items addressed — 70 ✅ fully supported, 18 🟡 partial, 64 🔲 not yet. Last updated: 2026-03-04.+**Coverage:** 94 of 158 Figma feature items addressed — 76 ✅ fully supported, 18 🟡 partial, 64 🔲 not yet. Last updated: 2026-03-07.## Interface & Navigation@@ -28,7 +28,7 @@ Feature-by-feature comparison of Figma Design capabilities with Open Pencil's cu| Custom file thumbnails | 🔲 | Thumbnail generated on export, but no custom thumbnail picker || Nudge value settings | 🔲 | Default 1px/10px; Figma allows custom small/big nudge values || App menu (browser mode) | ✅ | File, Edit, View, Object, Text, Arrange menus; Tauri uses native menus |-| AI tools | 🟡 | 75 tools via OpenRouter + MCP server; no AI-generated images or AI-powered search yet |+| AI tools | 🟡 | 78 tools via OpenRouter + MCP server; no AI-generated images or AI-powered search yet |## Layers & Shapes@@ -44,11 +44,11 @@ Feature-by-feature comparison of Figma Design capabilities with Open Pencil's cu| Layer types & hierarchy | ✅ | 17 node types, flat Map + parent-child tree || Select layers | ✅ | Click, shift-click, marquee selection || Alignment & position | ✅ | Position, rotation, dimensions in properties panel |-| Copy & paste objects | ✅ | Standard clipboard + Figma Kiwi binary format |+| Copy & paste objects | ✅ | Standard clipboard + Figma Kiwi binary format; Copy as text/SVG/PNG/JSX || Scale layers proportionally | 🟡 | Shift-resize constrains proportions; no dedicated Scale tool (K) || Lock & unlock layers | ✅ | ⇧⌘L toggles lock; locked nodes can't be selected/moved from canvas || Toggle layer visibility | ✅ | Eye icon in layers panel + ⇧⌘H keyboard shortcut |-| Rename layers | 🟡 | Programmatic rename via store; no inline rename UI in layers panel yet |+| Rename layers | ✅ | Double-click inline rename in layers panel; Enter/Escape/blur to commit || Bring to front / Send to back | ✅ | ] and [ keyboard shortcuts; also in context menu || Move to page | ✅ | Move selected nodes between pages via context menu || Constraints (responsive resize) | 🔲 | Pin edges/center for parent resize behavior |@@ -129,6 +129,8 @@ Feature-by-feature comparison of Figma Design capabilities with Open Pencil's cu| Stroke cap (round, square, arrow) | ✅ | NONE, ROUND, SQUARE, ARROW_LINES, ARROW_EQUILATERAL || Stroke join (miter, bevel, round) | ✅ | All three join types || Dash patterns | ✅ | Dash-on/dash-off stroke pattern |+| Stroke alignment | ✅ | Inside/Center/Outside with clip-based rendering matching Figma behavior |+| Individual stroke weights per side | ✅ | Top/Right/Bottom/Left with side selector dropdown || Corner radius | ✅ | Uniform and per-corner radius with independent toggle in properties panel || Corner smoothing (iOS-style) | 🔲 | Figma's continuous corner rounding || Multiple fills/strokes per layer | 🔲 | Figma allows stacking fills and strokes |@@ -193,9 +195,9 @@ Feature-by-feature comparison of Figma Design capabilities with Open Pencil's cu| Figma clipboard (paste) | ✅ | Decode Kiwi binary from Figma clipboard || Figma clipboard (copy) | ✅ | Encode Kiwi binary that Figma can read || Sketch file import | 🔲 | .sketch file parsing |-| Image/SVG export | 🟡 | PNG/JPG/WEBP with scale selector and live preview; SVG/PDF not yet |+| Image/SVG/PDF export | 🟡 | PNG/JPG/WEBP/SVG export ✅; PDF export 🔲 || Version history | 🔲 | Browse and restore previous versions |-| Copy assets between tools | 🟡 | Figma clipboard works; no SVG/PDF clipboard |+| Copy assets between tools | ✅ | Figma clipboard (Kiwi binary), Copy as text/SVG/PNG/JSX |## Plugin API & Scripting@@ -214,8 +216,9 @@ Feature-by-feature comparison of Figma Design capabilities with Open Pencil's cu| Dev Mode (inspect) | 🟡 | Code tab shows JSX representation of selection; no CSS properties or handoff specs || Code Connect | 🔲 | Link design components to code || Code snippets | 🟡 | JSX export with syntax highlighting and copy; no CSS/Swift/Kotlin snippets |+| Tailwind CSS v4 export | ✅ | Export as HTML with Tailwind utility classes from Code panel, CLI, or programmatically || Figma for VS Code | 🔲 | Editor plugin integration |-| MCP server | ✅ | @open-pencil/mcp with stdio + HTTP transports; 75 core tools + 3 file management tools |+| MCP server | ✅ | @open-pencil/mcp with stdio + HTTP transports; 75 core tools + 3 file management tools = 78 total || CLI tools | ✅ | Headless CLI: info, tree, find, export, analyze, node, pages, variables, eval; MCP server with stdio + HTTP |## Figma Drawdiff --git a/packages/docs/guide/getting-started.md b/packages/docs/guide/getting-started.mdindex addd5ca79..27ac95f7d 100644--- a/packages/docs/guide/getting-started.md+++ b/packages/docs/guide/getting-started.md@@ -17,6 +17,14 @@ Pre-built binaries for macOS, Windows, and Linux are available on the [releases| Linux (x64) | `.AppImage` / `.deb` |+## macOS via Homebrew++```sh+brew install open-pencil/tap/open-pencil+```++This installs the latest signed release for macOS (Apple Silicon and Intel). The tap is auto-updated on each release.+## Building from Source### Prerequisitesdiff --git a/packages/docs/it/guide/comparison.md b/packages/docs/it/guide/comparison.mdindex 99112e215..8b6d4e8ee 100644--- a/packages/docs/it/guide/comparison.md+++ b/packages/docs/it/guide/comparison.md@@ -13,7 +13,7 @@ Penpot 2.x include un renderer Rust/Skia WASM (`render-wasm/v1`) attivabile tram| LOC totali | **~26.000** | **~299.000** || File sorgente | ~143 | ~2.900 || Linguaggi | TypeScript, Vue | Clojure, ClojureScript, Rust, JS, SQL, SCSS |-| Motore di rendering | 1.646 LOC (TS) | 22.000 LOC (Rust/Skia WASM) |+| Motore di rendering | ~3.200 LOC (TS, 10 Dateien) | 22.000 LOC (Rust/Skia WASM) || Codice UI | ~4.500 LOC | ~175.000 LOC (CLJS + SCSS) || Backend | Nessuno (local-first) | 32.600 LOC + 151 file SQL || Rapporto LOC | **1×** | **~11×** |@@ -206,7 +206,7 @@ Gestione stato via Potok. Undo con vettori di cambiamenti inversi (max 50 voci),## 10. Cosa fa meglio Penpot1. **Collaborazione server** — editing multi-utente centralizzato con WebSockets, account e controllo accessi-2. **Export server** — servizio export Chromium headless+2. **Export PDF server** — servizio export Chromium headless per PDF (Open Pencil esporta già SVG nativamente)3. **Sistema plugin** — API completa con esecuzione sandboxed4. **Token di design** — supporto nativo design token5. **CSS Grid layout** — implementazione propria (Open Pencil attende Yoga Grid)@@ -215,7 +215,7 @@ Gestione stato via Potok. Undo con vettori di cambiamenti inversi (max 50 voci),## 11. Scripting ed estensibilità-OpenPencil include un [comando `eval`](/eval-command) che fornisce un'API Plugin compatibile Figma per scripting headless. Inoltre, 75 strumenti AI disponibili via chat integrata, server MCP (stdio + HTTP) e CLI. Penpot ha un sistema plugin con esecuzione sandboxed ma senza API di scripting headless né integrazione MCP.+OpenPencil include un [comando `eval`](/eval-command) che fornisce un'API Plugin compatibile Figma per scripting headless. Inoltre, 78 strumenti AI disponibili via chat integrata, server MCP (stdio + HTTP) e CLI. Penpot ha un sistema plugin con esecuzione sandboxed ma senza API di scripting headless né integrazione MCP.## Riepilogo@@ -232,4 +232,4 @@ OpenPencil include un [comando `eval`](/eval-command) che fornisce un'API Plugin| **Self-hosting** | Penpot | Docker-ready vs solo desktop || **Maturità ecosistema** | Penpot | Anni di produzione vs stadio iniziale |-Open Pencil è architetturalmente più snello — un renderer CanvasKit monoprocesso in ~26K LOC TypeScript, compatibile Figma per design. Penpot è una piattaforma full-stack con ~299K LOC. Open Pencil ha scripting headless, 75 strumenti AI/MCP e app desktop nativa.+Open Pencil è architetturalmente più snello — un renderer CanvasKit monoprocesso in ~26K LOC TypeScript, compatibile Figma per design. Penpot è una piattaforma full-stack con ~299K LOC. Open Pencil ha scripting headless, **78 strumenti AI/MCP**, export SVG e app desktop nativa.diff --git a/packages/docs/it/guide/features.md b/packages/docs/it/guide/features.mdindex 267c1a436..85e3a76a1 100644--- a/packages/docs/it/guide/features.md+++ b/packages/docs/it/guide/features.md@@ -152,7 +152,43 @@ Creazione programmabile via TreeNode builder. Props shorthand stile Tailwind.## Chat IA-Assistente IA integrato via <kbd>⌘</kbd><kbd>J</kbd>. **75 strumenti** in `schema.ts` che coprono lettura, creazione, modifica, manipolazione nodi, CRUD variabili, strumenti vettoriali, controllo viewport e `eval`. **Server MCP** espone 78 strumenti totali (75 core + 3 gestione file) per strumenti di codifica IA esterni.+Assistente IA integrato via <kbd>⌘</kbd><kbd>J</kbd>. **78 strumenti** in `schema.ts` che coprono lettura, creazione, modifica, manipolazione nodi, CRUD variabili, strumenti vettoriali, controllo viewport e `eval`. **Server MCP** espone 78 strumenti totali (75 core + 3 gestione file) per strumenti di codifica IA esterni.++## Export SVG++Esporta i nodi selezionati come PNG, JPG, WEBP o SVG. CLI: `bun open-pencil export --format svg file.fig`.++## Copia come++Il sottomenu **Copia come** del menu contestuale offre: Copia come testo, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), JSX.++## Allineamento contorno e spessori per lato++Allineamento: **Interno**, **Centro** o **Esterno**. Spessori individuali per lato (Alto/Destra/Basso/Sinistra).++## Layout mobile & PWA++Installabile come PWA. Su mobile, i pannelli laterali sono sostituiti da un cassetto inferiore scorrevole con schede.++## Export Tailwind CSS v4++La scheda Codice offre un selettore tra **OpenPencil JSX** e **Tailwind CSS v4** (HTML con classi utility).++## Google Fonts Fallback++Se un font non è disponibile localmente, OpenPencil lo carica automaticamente da Google Fonts API.++## Homebrew Tap++Su macOS: `brew install open-pencil/tap/open-pencil`++## Rinomina inline livelli++Doppio click sul nome di un livello per rinominarlo. Invio o clic altrove conferma, Esc annulla.++## Profiler di rendering++Overlay HUD con metriche di timing. Accessibile dal menu Visualizza.## Pannello codicediff --git a/packages/docs/it/guide/figma-comparison.md b/packages/docs/it/guide/figma-comparison.mdindex 6a376cb54..b97a1122b 100644--- a/packages/docs/it/guide/figma-comparison.md+++ b/packages/docs/it/guide/figma-comparison.md@@ -6,7 +6,7 @@ Confronto funzionalità per funzionalità delle capacità di Figma Design con lo✅ Supportato — la funzionalità è completa · 🟡 Parziale — il comportamento di base esiste, mancano alcune sotto-funzionalità · 🔲 Non ancora implementato:::-**Copertura:** 88 dei 152 elementi Figma affrontati — 70 ✅ completamente supportati, 18 🟡 parziali, 64 🔲 in sospeso. Ultimo aggiornamento: 2026-03-04.+**Copertura:** 94 dei 158 elementi Figma affrontati — 76 ✅ completamente supportati, 18 🟡 parziali, 64 🔲 in sospeso. Ultimo aggiornamento: 2026-03-07.## Interfaccia e navigazione@@ -28,7 +28,7 @@ Confronto funzionalità per funzionalità delle capacità di Figma Design con lo| Miniature personalizzate | 🔲 | Miniatura generata all'export, ma nessun selettore personalizzato || Impostazioni valore nudge | 🔲 | Default 1px/10px; Figma consente valori personalizzati || Menu app (modalità browser) | ✅ | Menu File, Modifica, Visualizza, Oggetto, Testo, Disponi; Tauri usa menu nativi |-| Strumenti IA | 🟡 | 75 strumenti via OpenRouter + server MCP; nessuna immagine generata da IA o ricerca IA ancora |+| Strumenti IA | 🟡 | 78 strumenti via OpenRouter + server MCP; nessuna immagine generata da IA o ricerca IA ancora |## Livelli e forme@@ -48,7 +48,7 @@ Confronto funzionalità per funzionalità delle capacità di Figma Design con lo| Scalare livelli proporzionalmente | 🟡 | Shift-ridimensiona mantiene proporzioni; nessuno strumento Scale dedicato (K) || Bloccare e sbloccare livelli | ✅ | ⇧⌘L alterna blocco || Toggle visibilità livello | ✅ | Icona occhio nel pannello + scorciatoia ⇧⌘H |-| Rinominare livelli | 🟡 | Rinomina programmata via store; nessuna UI inline ancora |+| Rinominare livelli | ✅ | Doppio clic per rinomina inline; Invio/Esc/clic per confermare || Porta in primo piano / Invia in fondo | ✅ | Scorciatoie ] e [; anche nel menu contestuale || Sposta a pagina | ✅ | Spostare nodi tra pagine tramite menu contestuale || Vincoli (ridimensionamento responsivo) | 🔲 | Fissare bordi/centro per comportamento resize genitore |@@ -193,9 +193,9 @@ Confronto funzionalità per funzionalità delle capacità di Figma Design con lo| Appunti Figma (incolla) | ✅ | Decodificare binario Kiwi dagli appunti Figma || Appunti Figma (copia) | ✅ | Codificare binario Kiwi leggibile da Figma || Import file Sketch | 🔲 | Parsing file .sketch |-| Export immagine/SVG | 🟡 | PNG/JPG/WEBP con selettore scala e anteprima; SVG/PDF non ancora |+| Export immagine/SVG | 🟡 | PNG/JPG/WEBP con selettore scala e anteprima; WEBP/SVG export ✅; PDF export 🔲 || Cronologia versioni | 🔲 | Sfogliare e ripristinare versioni precedenti |-| Copiare asset tra strumenti | 🟡 | Appunti Figma funzionano; nessun appunti SVG/PDF |+| Copiare asset tra strumenti | 🟡 | Appunti Figma funzionano; Copia come testo/SVG/PNG/JSX |## API plugin e scripting@@ -215,7 +215,7 @@ Confronto funzionalità per funzionalità delle capacità di Figma Design con lo| Code Connect | 🔲 | Collegare componenti design al codice || Frammenti di codice | 🟡 | Export JSX con evidenziazione e copia; nessun frammento CSS/Swift/Kotlin || Figma for VS Code | 🔲 | Integrazione plugin editor |-| Server MCP | ✅ | @open-pencil/mcp con trasporti stdio + HTTP; 75 strumenti core + 3 gestione file |+| Server MCP | ✅ | @open-pencil/mcp con trasporti stdio + HTTP; 75 strumenti core + 3 gestione file = 78 total || Strumenti CLI | ✅ | CLI headless: info, tree, find, export, analyze, node, pages, variables, eval; server MCP |## Figma Drawdiff --git a/packages/docs/it/user-guide/context-menu.md b/packages/docs/it/user-guide/context-menu.mdindex 15a9ee71a..e2d90b100 100644--- a/packages/docs/it/user-guide/context-menu.md+++ b/packages/docs/it/user-guide/context-menu.md@@ -6,6 +6,17 @@ description: Azioni del menu contestuale con click destro in OpenPencil.Click destro sul canvas per aprire il menu contestuale. Click destro su un nodo lo seleziona prima.+## Copia come++Il sottomenu **Copia come** offre questi formati:++| Azione | Mac | Windows / Linux |+|--------|-----|-----------------|+| Copia come testo | — | — |+| Copia come SVG | — | — |+| Copia come PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copia come JSX | — | — |+## AppuntiCopia (⌘C), Taglia (⌘X), Incolla (⌘V), Duplica (⌘D), Elimina (⌫)diff --git a/packages/docs/it/user-guide/drawing-shapes.md b/packages/docs/it/user-guide/drawing-shapes.mdindex 43fc6201b..c8084fe16 100644--- a/packages/docs/it/user-guide/drawing-shapes.md+++ b/packages/docs/it/user-guide/drawing-shapes.md@@ -20,7 +20,7 @@ description: Creare rettangoli, ellissi, linee, frame e sezioni in OpenPencil.## Proprietà- **Riempimento** — colore solido, gradiente (lineare, radiale, angolare, diamante), immagine-- **Contorno** — larghezza, colore, stile estremità, stile giunzione, tratteggio+- **Contorno** — larghezza (uniforme o per lato: Alto/Destra/Basso/Sinistra), colore, allineamento (Interno/Centro/Esterno), stile estremità, stile giunzione, tratteggio- **Raggio angoli** — uniforme o indipendente per angolo- **Effetti** — ombra esterna, ombra interna, sfocatura livello, sfocatura sfondodiff --git a/packages/docs/it/user-guide/exporting.md b/packages/docs/it/user-guide/exporting.mdindex 2c74c2dca..3fe0d4e88 100644--- a/packages/docs/it/user-guide/exporting.md+++ b/packages/docs/it/user-guide/exporting.md@@ -1,18 +1,49 @@---title: Esportazione-description: Esportare immagini (PNG, JPG, WEBP) e gestire file .fig in OpenPencil.+description: Esportare immagini (PNG, JPG, WEBP, SVG) e gestire file .fig in OpenPencil.---# Esportazione## Esportazione immagini-- **Scala** — 0,5× a 4× · **Formato** — PNG, JPG, WEBP-- **⇧ ⌘ E** o click destro → Esporta… o pulsante nel pannello proprietà++Seleziona un nodo e usa la sezione Export nel pannello proprietà.++### Impostazioni di esportazione++- **Scala** — 0,5×, 0,75×, 1×, 1,5×, 2×, 3× o 4× (nascosta per SVG — i vettori sono indipendenti dalla risoluzione)+- **Formato** — PNG (sfondo trasparente), JPG (sfondo bianco), WEBP (sfondo trasparente), SVG (vettore)++### Metodi di esportazione++| Metodo | Mac | Windows / Linux |+|--------|-----|-----------------|+| Scorciatoia tastiera | ⇧ ⌘ E | Shift + Ctrl + E |+| Menu contestuale | Tasto destro → Esporta… | Tasto destro → Esporta… |+| Pannello proprietà | Pulsante "Esporta" | Pulsante "Esporta" |++## Copia come++Il menu contestuale **Copia come** offre formati aggiuntivi:++| Action | Mac | Windows / Linux |+|--------|-----|-----------------|+| Copia come testo | — | — |+| Copia come SVG | — | — |+| Copia come PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copia come JSX | — | — |## Operazioni file .fig-| Azione | Mac | Windows / Linux |++| Action | Mac | Windows / Linux ||--------|-----|-----------------|| Apri | ⌘ O | Ctrl + O || Salva | ⌘ S | Ctrl + S || Salva come | ⇧ ⌘ S | Shift + Ctrl + S |Compatibilità round-trip con Figma.++## Suggerimenti++- Usa scala 2× o 3× per schermi ad alta risoluzione.+- JPG usa sempre sfondo bianco — usa PNG o WEBP per la trasparenza.+- Usa l'export SVG per la modifica vettoriale in editor di codice o Illustrator.diff --git a/packages/docs/it/user-guide/layers-and-pages.md b/packages/docs/it/user-guide/layers-and-pages.mdindex 4b77b3b0f..09f384381 100644--- a/packages/docs/it/user-guide/layers-and-pages.md+++ b/packages/docs/it/user-guide/layers-and-pages.md@@ -11,11 +11,16 @@ Albero gerarchico sulla sinistra. Espandi/comprimi, trascina per riordinare, att- **Cambiare pagina** — click su un tab- **Aggiungere** — pulsante aggiungi- **Eliminare** — rimuovi pagina corrente-- **Rinominare** — doppio click sul nome+- **Rinominare** — doppio click sul nome; Invio o clic altrove per confermare, Esc per annullareOgni pagina ha il suo viewport indipendente.## Pannello proprietà-Tre tab: **Design** (proprietà contestuali), **Codice** (JSX), **IA** (chat ⌘ J).+Tre tab: **Design** (proprietà contestuali), **Codice** (JSX / Tailwind CSS v4), **IA** (chat ⌘ J).Design: aspetto, riempimento, contorno, effetti, tipografia, layout, esportazione.++## Layout mobile++Su mobile, i pannelli laterali sono sostituiti da un cassetto inferiore scorrevole con schede: Livelli, Proprietà, Design, Codice.+diff --git a/packages/docs/pl/guide/comparison.md b/packages/docs/pl/guide/comparison.mdindex 8f56c0161..494959068 100644--- a/packages/docs/pl/guide/comparison.md+++ b/packages/docs/pl/guide/comparison.md@@ -13,7 +13,7 @@ Penpot 2.x zawiera renderer Rust/Skia WASM (`render-wasm/v1`) aktywowany przez f| LOC ogółem | **~26 000** | **~299 000** || Pliki źródłowe | ~143 | ~2 900 || Języki | TypeScript, Vue | Clojure, ClojureScript, Rust, JS, SQL, SCSS |-| Silnik renderowania | 1 646 LOC (TS) | 22 000 LOC (Rust/Skia WASM) |+| Silnik renderowania | ~3 200 LOC (TS, 10 plików) | 22 000 LOC (Rust/Skia WASM) || Kod UI | ~4 500 LOC | ~175 000 LOC (CLJS + SCSS) || Backend | Brak (local-first) | 32 600 LOC + 151 plików SQL || Stosunek LOC | **1×** | **~11×** |@@ -206,7 +206,7 @@ Zarządzanie stanem przez Potok. Cofanie z wektorami zmian odwrotnych (max 50 wp## 10. Co Penpot robi lepiej1. **Współpraca serwerowa** — centralna edycja wieloużytkownikowa z WebSockets, kontami i kontrolą dostępu-2. **Eksport serwerowy** — usługa eksportu headless Chromium+2. **Serwerowy eksport PDF** — usługa eksportu headless Chromium dla PDF (Open Pencil eksportuje już SVG natywnie)3. **System pluginów** — pełne API z sandboxowanym wykonywaniem4. **Tokeny projektowe** — natywne wsparcie design tokenów5. **CSS Grid layout** — własna implementacja (Open Pencil czeka na Yoga Grid)@@ -215,7 +215,7 @@ Zarządzanie stanem przez Potok. Cofanie z wektorami zmian odwrotnych (max 50 wp## 11. Scripting i rozszerzalność-OpenPencil zawiera [komendę `eval`](/eval-command) oferującą API Plugin kompatybilne z Figmą do skryptowania headless. Ponadto 75 narzędzi AI dostępnych przez wbudowany chat, serwer MCP (stdio + HTTP) i CLI. Penpot ma system pluginów z sandboxem, ale bez API skryptowania headless ani integracji MCP.+OpenPencil zawiera [komendę `eval`](/eval-command) oferującą API Plugin kompatybilne z Figmą do skryptowania headless. Ponadto 78 narzędzi AI dostępnych przez wbudowany chat, serwer MCP (stdio + HTTP) i CLI. Penpot ma system pluginów z sandboxem, ale bez API skryptowania headless ani integracji MCP.## Podsumowanie@@ -232,4 +232,4 @@ OpenPencil zawiera [komendę `eval`](/eval-command) oferującą API Plugin kompa| **Self-hosting** | Penpot | Gotowy Docker vs tylko desktop || **Dojrzałość ekosystemu** | Penpot | Lata produkcji vs wczesny etap |-Open Pencil jest architektonicznie szczuplejszy — jednoprocesowy renderer CanvasKit w ~26K LOC TypeScript, kompatybilny z Figmą z założenia. Penpot to platforma full-stack z ~299K LOC. Open Pencil ma skryptowanie headless, 75 narzędzi AI/MCP i natywną aplikację desktop.+Open Pencil jest architektonicznie szczuplejszy — jednoprocesowy renderer CanvasKit w ~26K LOC TypeScript, kompatybilny z Figmą z założenia. Penpot to platforma full-stack z ~299K LOC. Open Pencil ma skryptowanie headless, **78 narzędzi AI/MCP**, eksport SVG i natywną aplikację desktop.diff --git a/packages/docs/pl/guide/features.md b/packages/docs/pl/guide/features.mdindex 6b438b1a2..d9ddabc17 100644--- a/packages/docs/pl/guide/features.md+++ b/packages/docs/pl/guide/features.md@@ -152,7 +152,43 @@ Programistyczne tworzenie designu przez buildery TreeNode. Propsy shorthand w st## Chat AI-Wbudowany asystent AI przez <kbd>⌘</kbd><kbd>J</kbd>. **75 narzędzi** w `schema.ts` obejmujących: odczyt, tworzenie, modyfikację, manipulację węzłów, CRUD zmiennych, narzędzia wektorowe, kontrolę viewportu i `eval`. **Serwer MCP** udostępnia 78 narzędzi łącznie (75 core + 3 zarządzanie plikami) dla zewnętrznych narzędzi kodowania AI.+Wbudowany asystent AI przez <kbd>⌘</kbd><kbd>J</kbd>. **78 narzędzi** w `schema.ts` obejmujących: odczyt, tworzenie, modyfikację, manipulację węzłów, CRUD zmiennych, narzędzia wektorowe, kontrolę viewportu i `eval`. **Serwer MCP** udostępnia 78 narzędzi łącznie (75 core + 3 zarządzanie plikami) dla zewnętrznych narzędzi kodowania AI.++## Eksport SVG++Eksportuje wybrane węzły jako PNG, JPG, WEBP lub SVG. CLI: `bun open-pencil export --format svg file.fig`.++## Kopiuj jako++Podmenu **Kopiuj jako** w menu kontekstowym oferuje: Kopiuj jako tekst, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), JSX.++## Wyrównanie obrysu i grubości per-strona++Wyrównanie: **Wewnątrz**, **Środek** lub **Na zewnątrz**. Indywidualne grubości per-strona (Góra/Prawo/Dół/Lewo).++## Układ mobilny & PWA++Instalowalne jako PWA. Na urządzeniach mobilnych panele boczne zastąpione przez wysuwaną szufladę dolną z zakładkami.++## Eksport Tailwind CSS v4++Zakładka Kod oferuje przełącznik między **OpenPencil JSX** a **Tailwind CSS v4** (HTML z klasami utility).++## Google Fonts Fallback++Gdy czcionka nie jest dostępna lokalnie, OpenPencil ładuje ją automatycznie z Google Fonts API.++## Homebrew Tap++Na macOS: `brew install open-pencil/tap/open-pencil`++## Inline zmiana nazwy warstw++Dwuklik na nazwie warstwy aby ją zmienić. Enter lub klik poza polem zatwierdza, Escape anuluje.++## Profiler renderowania++Nakładka HUD z metrykami czasu renderowania. Dostępna z menu Widok.## Panel kodudiff --git a/packages/docs/pl/guide/figma-comparison.md b/packages/docs/pl/guide/figma-comparison.mdindex af0f1fef3..8fe850993 100644--- a/packages/docs/pl/guide/figma-comparison.md+++ b/packages/docs/pl/guide/figma-comparison.md@@ -6,7 +6,7 @@ Porównanie funkcja po funkcji możliwości Figma Design z aktualnym stanem impl✅ Obsługiwane — funkcja działa w pełni · 🟡 Częściowe — podstawowe zachowanie istnieje, brakuje niektórych pod-funkcji · 🔲 Jeszcze nie zaimplementowane:::-**Pokrycie:** 88 ze 152 elementów Figmy uwzględnionych — 70 ✅ w pełni obsługiwanych, 18 🟡 częściowych, 64 🔲 oczekujących. Ostatnia aktualizacja: 2026-03-04.+**Pokrycie:** 94 ze 158 elementów Figmy uwzględnionych — 76 ✅ w pełni obsługiwanych, 18 🟡 częściowych, 64 🔲 oczekujących. Ostatnia aktualizacja: 2026-03-07.## Interfejs i nawigacja@@ -28,7 +28,7 @@ Porównanie funkcja po funkcji możliwości Figma Design z aktualnym stanem impl| Niestandardowe miniatury | 🔲 | Miniatura generowana przy eksporcie, ale bez selektora || Ustawienia wartości nudge | 🔲 | Domyślnie 1px/10px; Figma pozwala na wartości niestandardowe || Menu aplikacji (tryb przeglądarkowy) | ✅ | Menu Plik, Edycja, Widok, Obiekt, Tekst, Rozmieszczenie; Tauri używa natywnych menu |-| Narzędzia AI | 🟡 | 75 narzędzi przez OpenRouter + serwer MCP; bez obrazów generowanych przez AI ani wyszukiwania AI jeszcze |+| Narzędzia AI | 🟡 | 78 narzędzi przez OpenRouter + serwer MCP; bez obrazów generowanych przez AI ani wyszukiwania AI jeszcze |## Warstwy i kształty@@ -48,7 +48,7 @@ Porównanie funkcja po funkcji możliwości Figma Design z aktualnym stanem impl| Skaluj warstwy proporcjonalnie | 🟡 | Shift-zmiana rozmiaru utrzymuje proporcje; brak dedykowanego narzędzia Scale (K) || Zablokuj i odblokuj warstwy | ✅ | ⇧⌘L przełącza blokadę || Przełącz widoczność warstwy | ✅ | Ikona oka w panelu + skrót ⇧⌘H |-| Zmień nazwę warstw | 🟡 | Programistyczna zmiana nazwy; brak inline UI jeszcze |+| Zmień nazwę warstw | ✅ | Dwuklik - zmiana nazwy inline; Enter/Escape/blur aby zatwierdzić || Przenieś na wierzch / Wyślij na spód | ✅ | Skróty ] i [; też w menu kontekstowym || Przenieś na stronę | ✅ | Przenoszenie węzłów między stronami przez menu kontekstowe || Ograniczenia (responsywna zmiana rozmiaru) | 🔲 | Przypięcie krawędzi/centrum dla zachowania resize rodzica |@@ -193,9 +193,9 @@ Porównanie funkcja po funkcji możliwości Figma Design z aktualnym stanem impl| Schowek Figmy (wklej) | ✅ | Dekodowanie binarnego Kiwi ze schowka Figmy || Schowek Figmy (kopiuj) | ✅ | Kodowanie binarnego Kiwi czytelnego przez Figmę || Import pliku Sketch | 🔲 | Parsowanie plików .sketch |-| Eksport obrazu/SVG | 🟡 | PNG/JPG/WEBP z selektorem skali i podglądem; SVG/PDF jeszcze nie |+| Eksport obrazu/SVG | 🟡 | PNG/JPG/WEBP z selektorem skali i podglądem; WEBP/SVG export ✅; PDF export 🔲 || Historia wersji | 🔲 | Przeglądanie i przywracanie poprzednich wersji |-| Kopiowanie zasobów między narzędziami | 🟡 | Schowek Figmy działa; brak schowka SVG/PDF |+| Kopiowanie zasobów między narzędziami | 🟡 | Schowek Figmy działa; Kopiuj jako tekst/SVG/PNG/JSX |## API pluginów i skryptowanie@@ -215,7 +215,7 @@ Porównanie funkcja po funkcji możliwości Figma Design z aktualnym stanem impl| Code Connect | 🔲 | Łączenie komponentów projektowych z kodem || Fragmenty kodu | 🟡 | Eksport JSX z podświetlaniem i kopiowaniem; brak fragmentów CSS/Swift/Kotlin || Figma for VS Code | 🔲 | Integracja z pluginem edytora |-| Serwer MCP | ✅ | @open-pencil/mcp z transportami stdio + HTTP; 75 narzędzi core + 3 zarządzanie plikami |+| Serwer MCP | ✅ | @open-pencil/mcp z transportami stdio + HTTP; 75 narzędzi core + 3 zarządzanie plikami = 78 total || Narzędzia CLI | ✅ | Headless CLI: info, tree, find, export, analyze, node, pages, variables, eval; serwer MCP |## Figma Drawdiff --git a/packages/docs/pl/user-guide/context-menu.md b/packages/docs/pl/user-guide/context-menu.mdindex 8b6e3b37f..0cdc9c1c2 100644--- a/packages/docs/pl/user-guide/context-menu.md+++ b/packages/docs/pl/user-guide/context-menu.md@@ -6,6 +6,17 @@ description: Akcje menu kontekstowego (prawy przycisk) w OpenPencil.Prawy przycisk na płótnie otwiera menu kontekstowe. Prawy przycisk na węźle najpierw go zaznacza.+## Kopiuj jako++Podmenu **Kopiuj jako** oferuje następujące formaty:++| Akcja | Mac | Windows / Linux |+|-------|-----|-----------------|+| Kopiuj jako tekst | — | — |+| Kopiuj jako SVG | — | — |+| Kopiuj jako PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Kopiuj jako JSX | — | — |+## SchowekKopiuj (⌘C), Wytnij (⌘X), Wklej (⌘V), Duplikuj (⌘D), Usuń (⌫)diff --git a/packages/docs/pl/user-guide/drawing-shapes.md b/packages/docs/pl/user-guide/drawing-shapes.mdindex dc49e541f..8d2984c72 100644--- a/packages/docs/pl/user-guide/drawing-shapes.md+++ b/packages/docs/pl/user-guide/drawing-shapes.md@@ -20,7 +20,7 @@ description: Tworzenie prostokątów, elips, linii, ramek i sekcji w OpenPencil.## Właściwości- **Wypełnienie** — kolor, gradient (liniowy, radialny, kątowy, diamentowy), obraz-- **Obrys** — szerokość, kolor, zakończenie, złącze, wzór kreski+- **Obrys** — szerokość (jednolita lub per-strona: Góra/Prawo/Dół/Lewo), kolor, wyrównanie (Wewnątrz/Środek/Na zewnątrz), zakończenie, złącze, wzór kreski- **Promień narożników** — jednolity lub niezależny per narożnik- **Efekty** — cień zewnętrzny, cień wewnętrzny, rozmycie warstwy, rozmycie tładiff --git a/packages/docs/pl/user-guide/exporting.md b/packages/docs/pl/user-guide/exporting.mdindex eff6814d8..a5e83d279 100644--- a/packages/docs/pl/user-guide/exporting.md+++ b/packages/docs/pl/user-guide/exporting.md@@ -1,18 +1,49 @@---title: Eksportowanie-description: Eksport obrazów (PNG, JPG, WEBP) i zarządzanie plikami .fig w OpenPencil.+description: Eksport obrazów (PNG, JPG, WEBP, SVG) i zarządzanie plikami .fig w OpenPencil.---# Eksportowanie## Eksport obrazów-- **Skala** — 0,5× do 4× · **Format** — PNG, JPG, WEBP-- **⇧ ⌘ E** lub prawy przycisk → Eksportuj… lub przycisk w panelu właściwości++Wybierz węzeł i użyj sekcji Eksport w panelu właściwości.++### Ustawienia eksportu++- **Skala** — 0,5×, 0,75×, 1×, 1,5×, 2×, 3× lub 4× (ukryta dla SVG — wektory są niezależne od rozdzielczości)+- **Format** — PNG (przezroczyste tło), JPG (białe tło), WEBP (przezroczyste tło), SVG (wektor)++### Metody eksportu++| Metoda | Mac | Windows / Linux |+|--------|-----|-----------------|+| Skrót klawiszowy | ⇧ ⌘ E | Shift + Ctrl + E |+| Menu kontekstowe | Prawy klik → Eksportuj… | Prawy klik → Eksportuj… |+| Panel właściwości | Przycisk "Eksportuj" | Przycisk "Eksportuj" |++## Kopiuj jako++Menu kontekstowe **Kopiuj jako** oferuje dodatkowe formaty:++| Action | Mac | Windows / Linux |+|--------|-----|-----------------|+| Kopiuj jako tekst | — | — |+| Kopiuj jako SVG | — | — |+| Kopiuj jako PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Kopiuj jako JSX | — | — |## Operacje na plikach .fig-| Akcja | Mac | Windows / Linux |-|-------|-----|-----------------|++| Action | Mac | Windows / Linux |+|--------|-----|-----------------|| Otwórz | ⌘ O | Ctrl + O || Zapisz | ⌘ S | Ctrl + S || Zapisz jako | ⇧ ⌘ S | Shift + Ctrl + S |Kompatybilność round-trip z Figmą.++## Wskazówki++- Używaj skali 2× lub 3× dla ekranów o wysokiej rozdzielczości.+- JPG zawsze używa białego tła — używaj PNG lub WEBP dla przezroczystości.+- Używaj eksportu SVG do dalszej edycji wektorowej w edytorach kodu lub Illustratorze.diff --git a/packages/docs/pl/user-guide/layers-and-pages.md b/packages/docs/pl/user-guide/layers-and-pages.mdindex 8c27908b8..de276105a 100644--- a/packages/docs/pl/user-guide/layers-and-pages.md+++ b/packages/docs/pl/user-guide/layers-and-pages.md@@ -5,17 +5,21 @@ description: Zarządzanie warstwami, stronami i panelem właściwości w OpenPen# Warstwy i strony## Panel warstw-Drzewo hierarchii po lewej. Rozwijanie/zwijanie, przeciąganie aby zmienić kolejność, przełączanie widoczności ikoną oka, dwuklik aby zmienić nazwę. Zaznaczenie synchronizuje się z płótnem.+Drzewo hierarchii po lewej. Rozwijanie/zwijanie, przeciąganie aby zmienić kolejność, przełączanie widoczności ikoną oka, **dwuklik aby zmienić nazwę** (Enter lub klik poza polem zatwierdza, Escape anuluje). Zaznaczenie synchronizuje się z płótnem.## Panel stron- **Zmiana strony** — kliknij na zakładkę- **Dodaj** — przycisk dodaj- **Usuń** — usuń bieżącą stronę-- **Zmień nazwę** — dwuklik na nazwie+- **Zmień nazwę** — dwuklik na nazwie (Enter lub klik poza polem zatwierdza, Escape anuluje)Każda strona ma własny niezależny stan widoku.## Panel właściwości-Trzy zakładki: **Design** (właściwości kontekstowe), **Kod** (JSX), **AI** (chat ⌘ J).+Trzy zakładki: **Design** (właściwości kontekstowe), **Kod** (JSX / Tailwind CSS v4), **AI** (chat ⌘ J).Design: wygląd, wypełnienie, obrys, efekty, typografia, layout, eksport.++## Układ mobilny++Na urządzeniach mobilnych panele boczne są zastąpione przez wysuwaną szufladę dolną z zakładkami: Warstwy, Właściwości, Design, Kod.diff --git a/packages/docs/reference/keyboard-shortcuts.md b/packages/docs/reference/keyboard-shortcuts.mdindex defffa138..ee284947a 100644--- a/packages/docs/reference/keyboard-shortcuts.md+++ b/packages/docs/reference/keyboard-shortcuts.md@@ -31,9 +31,10 @@ Full Figma-compatible shortcut map. ✅ = implemented.| Shortcut | Action | Status ||----------|--------|--------|-| <kbd>⌘</kbd><kbd>N</kbd> | New Window | 🔲 |+| <kbd>⌘</kbd><kbd>N</kbd> | New Tab | ✅ |+| <kbd>⌘</kbd><kbd>T</kbd> | New Tab | ✅ || <kbd>⌘</kbd><kbd>O</kbd> | Open File | ✅ |-| <kbd>⌘</kbd><kbd>W</kbd> | Close Tab | 🔲 |+| <kbd>⌘</kbd><kbd>W</kbd> | Close Tab | ✅ || <kbd>⌘</kbd><kbd>S</kbd> | Save | ✅ || <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> | Save As | ✅ || <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> | Export… | ✅ |@@ -52,6 +53,7 @@ Full Figma-compatible shortcut map. ✅ = implemented.| <kbd>⌫</kbd> | Delete | ✅ || <kbd>⌘</kbd><kbd>A</kbd> | Select All | ✅ || <kbd>⇧</kbd><kbd>⌘</kbd><kbd>A</kbd> | Select Inverse | 🔲 |+| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd> | Copy as PNG | ✅ || <kbd>⌥</kbd><kbd>⌘</kbd><kbd>C</kbd> | Copy Properties | 🔲 || <kbd>⌥</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Properties | 🔲 |@@ -62,7 +64,7 @@ Full Figma-compatible shortcut map. ✅ = implemented.| <kbd>⌘</kbd><kbd>'</kbd> | Pixel Grid | 🔲 || <kbd>⌃</kbd><kbd>G</kbd> | Layout Guides | 🔲 || <kbd>⇧</kbd><kbd>R</kbd> | Rulers | 🔲 |-| <kbd>⌘</kbd><kbd>\\</kbd> | Show/Hide UI | 🔲 |+| <kbd>⌘</kbd><kbd>\\</kbd> | Show/Hide UI | ✅ || <kbd>⌘</kbd><kbd>=</kbd> | Zoom In | ✅ || <kbd>⌘</kbd><kbd>-</kbd> | Zoom Out | ✅ || <kbd>⌘</kbd><kbd>0</kbd> | Zoom to 100% | ✅ |diff --git a/packages/docs/reference/mcp-tools.md b/packages/docs/reference/mcp-tools.mdindex 1d30cc404..425b4bc5d 100644--- a/packages/docs/reference/mcp-tools.md+++ b/packages/docs/reference/mcp-tools.md@@ -81,7 +81,7 @@ Server starts on port 3100 (override with `PORT` env var). Endpoints:5. **Structure** — `reparent_node`, `group_nodes`, `clone_node`, `delete_node`6. **Save** — `save_file` to write back to `.fig`-## Tools (75)+## Tools (78)### Document@@ -97,20 +97,31 @@ Server starts on port 3100 (override with `PORT` env var). Endpoints:|------|-------------|| `get_selection` | Get currently selected nodes || `get_page_tree` | Get the full node tree of the current page |+| `get_current_page` | Get the current page name and ID || `get_node` | Get detailed properties of a node by ID || `find_nodes` | Find nodes by name pattern and/or type |+| `get_components` | List all components in the document || `list_pages` | List all pages || `list_variables` | List design variables || `list_collections` | List variable collections |+| `node_bounds` | Get bounding box of a node |+| `node_ancestors` | Get ancestor chain of a node |+| `node_children` | Get direct children of a node |+| `node_tree` | Get the subtree rooted at a node |+| `node_bindings` | Get variable bindings on a node |### Create| Tool | Description ||------|-------------|| `create_shape` | Create a shape (FRAME, RECTANGLE, ELLIPSE, TEXT, LINE, STAR, POLYGON, SECTION) |+| `create_vector` | Create a vector node from a path string |+| `create_slice` | Create an export slice |+| `create_page` | Create a new page || `render` | Render JSX to design nodes — create entire component trees in one call || `create_component` | Convert a frame/group into a component || `create_instance` | Create an instance of a component |+| `node_to_component` | Convert an existing node into a component in-place |### Modify@@ -122,6 +133,22 @@ Server starts on port 3100 (override with `PORT` env var). Endpoints:| `update_node` | Update position, size, opacity, corner radius, text, font || `set_layout` | Set auto-layout (flexbox) — direction, spacing, padding, alignment || `set_constraints` | Set resize constraints |+| `set_rotation` | Set rotation angle in degrees |+| `set_opacity` | Set opacity (0–1) |+| `set_radius` | Set corner radius (uniform or per-corner) |+| `set_minmax` | Set min/max width and height constraints |+| `set_text` | Set text content of a TEXT node |+| `set_font` | Set font family and weight |+| `set_font_range` | Set font properties on a character range |+| `set_text_resize` | Set text auto-resize mode (fixed/auto-width/auto-height) |+| `set_visible` | Show or hide a node |+| `set_blend` | Set blend mode |+| `set_locked` | Lock or unlock a node |+| `set_stroke_align` | Set stroke alignment (inside/center/outside) |+| `node_move` | Move a node to a new position |+| `node_resize` | Resize a node |+| `node_replace_with` | Replace a node with another node |+| `arrange` | Align or distribute selected nodes |### Structure@@ -134,6 +161,50 @@ Server starts on port 3100 (override with `PORT` env var). Endpoints:| `select_nodes` | Select nodes by ID || `group_nodes` | Group nodes || `ungroup_node` | Ungroup a group |+| `boolean_union` | Boolean union of two or more nodes |+| `boolean_subtract` | Boolean subtraction |+| `boolean_intersect` | Boolean intersection |+| `boolean_exclude` | Boolean exclusion |++### Vector Path++| Tool | Description |+|------|-------------|+| `path_get` | Get the path data of a vector node |+| `path_set` | Set the path data of a vector node |+| `path_scale` | Scale a vector path |+| `path_flip` | Flip a vector path horizontally or vertically |+| `path_move` | Translate a vector path |++### Variables++| Tool | Description |+|------|-------------|+| `get_variable` | Get a variable by ID or name |+| `find_variables` | Find variables by name pattern or type |+| `create_variable` | Create a new variable in a collection |+| `set_variable` | Set a variable value in a mode |+| `delete_variable` | Delete a variable |+| `bind_variable` | Bind a variable to a node property |+| `get_collection` | Get a variable collection by ID or name |+| `create_collection` | Create a new variable collection |+| `delete_collection` | Delete a variable collection |++### Analyze++| Tool | Description |+|------|-------------|+| `analyze_colors` | Analyze color palette usage across the document |+| `analyze_typography` | Analyze font/size/weight distribution |+| `analyze_spacing` | Analyze gap and padding values |+| `analyze_clusters` | Detect repeated patterns (potential components) |++### Diff++| Tool | Description |+|------|-------------|+| `diff_create` | Create a snapshot of the current document state |+| `diff_show` | Show differences between the current state and a snapshot |### Navigationdiff --git a/packages/docs/user-guide/context-menu.md b/packages/docs/user-guide/context-menu.mdindex 72ac696e0..78e5aa88a 100644--- a/packages/docs/user-guide/context-menu.md+++ b/packages/docs/user-guide/context-menu.md@@ -6,6 +6,22 @@ description: Right-click context menu actions in OpenPencil — clipboard, z-ord# Context MenuRight-click on the canvas to open the context menu. If you right-click on a node, it is selected first. Right-clicking on empty canvas clears the selection.+## Copy/Paste as++The **Copy/Paste as** submenu offers additional clipboard formats for the selected node(s):++| Action | Shortcut (Mac) | Shortcut (Win/Linux) |+|--------|----------------|----------------------|+| Copy as text | — | — |+| Copy as SVG | — | — |+| Copy as PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copy as JSX | — | — |++- **Copy as text** — copies visible text content from the selection+- **Copy as SVG** — copies the node tree as SVG markup+- **Copy as PNG** — renders at 2× and places on the system clipboard (paste into Slack, Notion, etc.)+- **Copy as JSX** — copies the OpenPencil JSX representation for use with `renderJsx()`+## Clipboard Actions| Action | Shortcut (Mac) | Shortcut (Win/Linux) |diff --git a/packages/docs/user-guide/drawing-shapes.md b/packages/docs/user-guide/drawing-shapes.mdindex 461d44f5d..e88d35445 100644--- a/packages/docs/user-guide/drawing-shapes.md+++ b/packages/docs/user-guide/drawing-shapes.md@@ -47,7 +47,14 @@ Every shape can have a fill. The fill section supports:### Stroke-Add an outline to any shape. Stroke properties include width, color, cap style, join style, and dash pattern.+Add an outline to any shape. Stroke properties include:++- **Width** — uniform or per-side (Top/Right/Bottom/Left) via the side selector dropdown+- **Color** — solid color with opacity+- **Alignment** — Inside, Center, or Outside the shape boundary (clip-based rendering matches Figma behavior)+- **Cap style** — None, Round, Square, Arrow Lines, Arrow Equilateral (for open paths)+- **Join style** — Miter, Bevel, Round+- **Dash pattern** — dash-on/dash-off### Corner Radiusdiff --git a/packages/docs/user-guide/exporting.md b/packages/docs/user-guide/exporting.mdindex b8b42cd21..47120df79 100644--- a/packages/docs/user-guide/exporting.md+++ b/packages/docs/user-guide/exporting.md@@ -12,8 +12,8 @@ Select a node and use the Export section in the properties panel.### Export Settings-- **Scale** — 0.5×, 0.75×, 1×, 1.5×, 2×, 3×, or 4×-- **Format** — PNG (transparent background), JPG (white background), WEBP (transparent background)+- **Scale** — 0.5×, 0.75×, 1×, 1.5×, 2×, 3×, or 4× (hidden for SVG — vectors are resolution-independent)+- **Format** — PNG (transparent background), JPG (white background), WEBP (transparent background), SVG (vector)You can add multiple export settings to export the same node at different scales or formats in one go. A live preview with a checkerboard background shows what will be exported.@@ -27,6 +27,22 @@ You can add multiple export settings to export the same node at different scalesThe exported file is saved via a native dialog (desktop) or browser download.+## Copy/Paste as++In addition to file export, you can copy the selection to the clipboard in multiple formats via the context menu (right-click → Copy/Paste as):++| Action | Shortcut (Mac) | Shortcut (Win/Linux) |+|--------|----------------|----------------------|+| Copy as text | — | — |+| Copy as SVG | — | — |+| Copy as PNG | ⇧ ⌘ C | Shift + Ctrl + C |+| Copy as JSX | — | — |++- **Copy as text** — copies visible text content from the selection+- **Copy as SVG** — copies the selection as SVG markup (paste into code editors, Inkscape, etc.)+- **Copy as PNG** — renders at 2× and copies to the clipboard (ready to paste into Slack, Notion, etc.)+- **Copy as JSX** — copies the OpenPencil JSX representation (compatible with `renderJsx()`)+## .fig File OperationsOpenPencil uses the .fig format for full documents — the same binary format as Figma.@@ -60,6 +76,7 @@ Files exported from OpenPencil can be opened in Figma, and vice versa. The .fig| Action | Mac | Windows / Linux ||--------|-----|-----------------|| Export selection | ⇧ ⌘ E | Shift + Ctrl + E |+| Copy as PNG | ⇧ ⌘ C | Shift + Ctrl + C || Open file | ⌘ O | Ctrl + O || Save | ⌘ S | Ctrl + S || Save As | ⇧ ⌘ S | Shift + Ctrl + S |@@ -68,4 +85,5 @@ Files exported from OpenPencil can be opened in Figma, and vice versa. The .fig- Use 2× or 3× scale when exporting for high-DPI screens.- JPG always uses a white background — use PNG or WEBP if you need transparency.+- Use SVG export when you need a vector format for further editing in Illustrator, Inkscape, or code.- The thumbnail in exported .fig files enables preview in file browsers and Figma's file picker.diff --git a/packages/docs/user-guide/layers-and-pages.md b/packages/docs/user-guide/layers-and-pages.mdindex d3fddfe27..76619f2ec 100644--- a/packages/docs/user-guide/layers-and-pages.md+++ b/packages/docs/user-guide/layers-and-pages.md@@ -24,7 +24,7 @@ Click the eye icon next to any layer to hide or show it on the canvas. Hidden no### Rename-Double-click a layer name to rename it inline.+Double-click a layer name to rename it inline. Press **Enter** or click away to commit, **Escape** to cancel.### Selection Sync@@ -61,7 +61,10 @@ When no nodes are selected, the Design tab shows page-level properties including### Code Tab-Displays the selected node as JSX code with syntax highlighting, line numbers, and a copy button. Useful for exporting designs as code.+Displays the selected node as code with syntax highlighting, line numbers, and a copy button. A format toggle lets you switch between two output modes:++- **OpenPencil JSX** — custom component tree compatible with `renderJsx()` for programmatic round-trip+- **Tailwind CSS v4** — HTML with utility classes (`<div className="flex gap-4 p-3">`) ready to paste into React/Vue projects### AI Tab@@ -73,6 +76,10 @@ An AI chat interface (also toggled with **⌘ J**) that can create and modify de|--------|-----|-----------------|| Toggle AI chat | ⌘ J | Ctrl + J |+## Mobile Layout++On mobile and small screens, the side panels are replaced by a swipeable bottom drawer. Tabs at the top of the drawer switch between Layers, Properties, Design, and Code views. The toolbar collapses to a compact horizontal strip with category switching.+## Tips- Panel widths are saved automatically — they persist across reloads.