@senad-d/drawme 0.1.5 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +9 -9
- package/assets/references/diagram-types.md +24 -0
- package/assets/references/troubleshooting.md +1 -1
- package/assets/references/xml-authoring.md +45 -2
- package/docs/reference.md +9 -5
- package/example/drawme-extension-waterfall-overview.drawio +32 -32
- package/example/drawme-how-it-works.drawio +16 -16
- package/example/drawme-installation-guide.drawio +13 -13
- package/example/drawme-validation-decision-tree.drawio +211 -0
- package/example/git-graph-example.drawio +77 -69
- package/package.json +2 -2
- package/src/drawio.ts +12 -3
- package/src/geometry.ts +30 -14
- package/src/index.ts +14 -8
- package/src/validate.ts +293 -6
- package/src/workflow.ts +30 -22
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,25 @@ All notable changes to this project are documented here. The format is based on
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
+
- `drawio_validate` no longer stays silent about what it cannot see: auto-routed edges (no explicit
|
|
12
|
+
waypoints) are reported as an actionable warning naming each edge, because the renderer routes them
|
|
13
|
+
blindly and the route-through/crossing checks skip them — the main way visibly broken routing used to
|
|
14
|
+
pass a "clean" validation. New deterministic edge-label checks: an estimated box for each inline edge
|
|
15
|
+
label (and the practical box of separate edge-label vertices) is tested against shapes and reported as
|
|
16
|
+
"likely overlaps", and a labeled edge with neither a label offset nor `labelBackgroundColor` is flagged
|
|
17
|
+
as sitting directly on its line. Edge waypoints and routes now honor the parent container's origin
|
|
18
|
+
(they are stored parent-relative), fixing route checks and content bounds for edges inside containers.
|
|
19
|
+
Example diagrams carry explicit waypoints so route checks engage on them; their remaining reviewed
|
|
20
|
+
findings are baselined in the test suite.
|
|
21
|
+
|
|
22
|
+
- `drawio_validate` now warns when a pinned source exit or target entry faces away from its adjacent
|
|
23
|
+
waypoint (or its peer on an auto-route) and includes a complete side-center `exit*` or `entry*` repair hint. Auto-routed edges whose direct connection line
|
|
24
|
+
pierces an unrelated shape gain a focused informational observation for preview review while retaining
|
|
25
|
+
the existing unchecked-route warning. The readability score adds an `anchors` dimension, and explicit
|
|
26
|
+
font sizes below 11px for nodes or 10px for connector labels are reported as very small. Authoring
|
|
27
|
+
guidance now defaults to 14px node and 12px connector labels, documents facing-side anchor selection,
|
|
28
|
+
and recommends snug boxes without penalizing intentional uniform peer sizing.
|
|
29
|
+
|
|
11
30
|
- New `drawio_fit_canvas` tool: deterministically resizes each page's canvas to its visible content plus
|
|
12
31
|
a margin (default 40px) and shifts content to the margin origin — the fix for cramped pages where
|
|
13
32
|
elements overlap because they were squeezed into a too-small canvas. The workflow now defers page
|
|
@@ -17,6 +36,27 @@ All notable changes to this project are documented here. The format is based on
|
|
|
17
36
|
|
|
18
37
|
### Changed
|
|
19
38
|
|
|
39
|
+
- The visual review now runs as gated passes with visually verified fixes. When the active model can view
|
|
40
|
+
images, three focused passes — fit and sizing, element placement, connections — each answer explicit
|
|
41
|
+
questions on their own preview (per page for multi-page files), followed by a holistic pass covering
|
|
42
|
+
typography (every label read word for word), semantics, the diagram type's review checklist, and
|
|
43
|
+
regressions; a pass must be clean before the next one starts, and all passes before final export. Each
|
|
44
|
+
pass names the concrete rendered defects to hunt (overlapping or clipped labels, text struck through by
|
|
45
|
+
lines, floating or buried edge endpoints, asymmetric or off-center anchors, stacked edges, unreadable
|
|
46
|
+
full-diagram previews, …), findings go into a numbered ledger naming the affected cells and planned fix,
|
|
47
|
+
and every correction is judged by comparing the replacement preview against the previous image with an
|
|
48
|
+
explicit fixed / not fixed / regressed verdict — an XML edit alone never counts as a fix. `drawio_export`
|
|
49
|
+
replacement previews prompt that before/after comparison directly in the tool result. The automatic
|
|
50
|
+
correction limit rises from 5 to 8 retries to give the gated passes room to actually resolve findings.
|
|
51
|
+
The diagram-types reference gains a per-type `Review:` checklist for the holistic pass, and the XML
|
|
52
|
+
authoring reference a defect→fix recipe table (including edge-label offset positioning), so vision
|
|
53
|
+
findings map to concrete source edits. Multi-page files are now reviewed and finally exported page by
|
|
54
|
+
page (`pageIndex`), closing the gap where only page 1 of e.g. a multi-page C4 file was ever inspected.
|
|
55
|
+
`ExportResult` gains `replacedPreview`, true whenever a preview supersedes an earlier tracked one —
|
|
56
|
+
including a re-export over the same output path — so the replacement-preview verdict prompt no longer
|
|
57
|
+
misses same-name re-exports. Models that cannot view images skip the visual passes entirely and review
|
|
58
|
+
structurally, as before. The golden asset baseline was intentionally refreshed for these reference
|
|
59
|
+
changes.
|
|
20
60
|
- `/drawme` now pre-loads its context: the command handler resolves the draw.io CLI itself and embeds the
|
|
21
61
|
check result plus the diagram-types, XML-authoring, and (v30+) Mermaid references directly into the
|
|
22
62
|
injected workflow message. The references remain editable Markdown files under `assets/references/`;
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ DrawMe is a native Pi **extension** for diagram authoring. Describe a diagram an
|
|
|
36
36
|
</table>
|
|
37
37
|
|
|
38
38
|
- **Natural-language authoring:** flowcharts, architecture, UML, BPMN, ERD, C4, network, ML — as native `.drawio`, or as Mermaid with automatic layout on v30+.
|
|
39
|
-
- **Guided workflow:** CLI detection, planning, authoring, validation, a
|
|
39
|
+
- **Guided workflow:** CLI detection, planning, authoring, validation, a gated multi-pass visual review (fit/sizing → element placement → connections → holistic confirmation), and final export run end to end from a single `/drawme` — no approval pauses.
|
|
40
40
|
- **Deterministic validation:** a structural linter catches dangling edges, duplicate/reserved ids, malformed geometry, page/container overflow, inadequate margins, conservative readability defects, overlaps, and explicit edge-routing defects before you look at a pixel.
|
|
41
41
|
- **Vision-aware previews:** successful PNG previews attach the actual image only when the active model can view images — the result text says which case applies — so text-only models get an honest structural-review path instead of a placeholder; each replacement removes the previous same-source preview file so only the latest remains on disk.
|
|
42
42
|
- **Exact shapes, not guesses:** search 10k+ official AWS/Azure/GCP/Cisco/Kubernetes/UML/BPMN styles from a bundled local index.
|
|
@@ -69,7 +69,7 @@ DrawMe is a native Pi **extension** for diagram authoring. Describe a diagram an
|
|
|
69
69
|
This checkout implements the DrawMe core loop as a Pi extension:
|
|
70
70
|
|
|
71
71
|
- Nine model-callable tools (`drawio_check`, `drawio_export`, `drawio_validate`, `drawio_fit_canvas`, `drawio_shapesearch`, `drawio_from_mermaid`, `drawio_layout`, `drawio_explain`, `drawio_open`) and three commands (`/drawme`, `/drawme-check`, `/drawme-export`).
|
|
72
|
-
- A guided `/drawme` workflow that steers authoring, validation after every edit, a
|
|
72
|
+
- A guided `/drawme` workflow that steers authoring, validation after every edit, a gated multi-pass visual review, and autonomous final multi-format export.
|
|
73
73
|
- Pure-TypeScript structural linting, `-e` PNG IEND repair, shape search over a bundled index, and diagram-to-Markdown description — no Python runtime required.
|
|
74
74
|
- draw.io binary resolution across macOS/Linux/Windows/WSL, headless-Linux `xvfb-run` handling, and version-gated Mermaid conversion + ELK auto-layout (draw.io v30+).
|
|
75
75
|
- Validation pipeline: golden asset-integrity check, TypeScript typecheck, ESLint, a custom format check, and unit + real-CLI integration tests.
|
|
@@ -139,7 +139,7 @@ pi --no-extensions -e .
|
|
|
139
139
|
|
|
140
140
|
| Command | Description |
|
|
141
141
|
| --- | --- |
|
|
142
|
-
| `/drawme <description>` | Kick off authoring, per-edit validation,
|
|
142
|
+
| `/drawme <description>` | Kick off authoring, per-edit validation, the gated multi-pass visual review, and autonomous final export. |
|
|
143
143
|
| `/drawme-check` | Report whether the draw.io CLI is available, its version, and v30+ feature support. |
|
|
144
144
|
| `/drawme-export <file> [png\|svg\|pdf\|jpg]` | One-shot final export of an existing `.drawio`. |
|
|
145
145
|
|
|
@@ -151,7 +151,7 @@ Registered for the model to call directly.
|
|
|
151
151
|
| --- | --- |
|
|
152
152
|
| `drawio_check` | Resolve the draw.io binary, version, and whether it supports Mermaid import / `--layout` (v30+). |
|
|
153
153
|
| `drawio_export` | Export a `.drawio` to PNG/SVG/PDF/JPG. `mode:"preview"` → clean width-capped PNG returned as text/metadata, with the image block attached when the active model can view images (the text states which); each successful preview removes the previous same-source preview file so only the latest remains. `mode:"final"` → embedded editable deliverable, with truncated PNG repair and cleanup of the remaining preview. |
|
|
154
|
-
| `drawio_validate` | Deterministic lint
|
|
154
|
+
| `drawio_validate` | Deterministic lint for XML structure, geometry, page/container bounds, margins, overlap, explicit route-through/crossings, anchors facing away from their route, edge-label collisions, labels on connector lines, small fonts, and unchecked auto-routes. Likely direct-path obstructions for auto-routed edges are preview-review observations. The readability score reports route-through, crossings, overlaps, and anchors separately. |
|
|
155
155
|
| `drawio_fit_canvas` | Fit each page's canvas to its content plus a margin (default 40px): grows cramped pages, tightens oversized ones, and shifts content to the margin origin — instead of shrinking or cramming elements. Deterministic, no CLI. |
|
|
156
156
|
| `drawio_shapesearch` | Exact official `style=` strings for 10k+ AWS/Azure/GCP/Cisco/Kubernetes/UML/BPMN shapes, from a bundled local index. Use instead of guessing a style. |
|
|
157
157
|
| `drawio_from_mermaid` | Convert Mermaid text (inline or a `.mmd`) to a native `.drawio` with automatic layout. Requires draw.io **v30+**. |
|
|
@@ -179,13 +179,13 @@ The extension factory in `src/index.ts` registers the tools and commands. Render
|
|
|
179
179
|
2. **Plan** — pick the diagram type, relationships, finite canvas, and layout direction.
|
|
180
180
|
3. **Author** — write editable uncompressed XML (or Mermaid on v30+), using exact searched shapes and optional ELK layout.
|
|
181
181
|
4. **Validate after every edit** — fix all errors; fix each warning or record why it is reviewed and acceptable.
|
|
182
|
-
5. **Visual review
|
|
183
|
-
6. **Fix and
|
|
184
|
-
7. **Bound corrections** —
|
|
182
|
+
5. **Visual review in gated passes** — with the preview image attached (one preview per page for multi-page files), the model runs three focused passes, each answering explicit questions on its own preview: **fit and sizing** (does the diagram fit its page; does the canvas or an element need resizing), **element placement** (is every element positioned correctly; is there a visibly better arrangement), and **connections** (is every connection correct, cleanly routed, symmetric where the layout is symmetric, and anchored to the middle of the facing element side where possible). A fourth **holistic pass** reads every label word for word, checks contrast, semantics, and the diagram type's own review checklist, and re-checks the earlier passes for regressions. Concrete defects to hunt (overlapping or clipped text, labels struck through by lines, floating endpoints, edges through unrelated shapes, …) are spelled out per pass, and each finding lands in a numbered ledger naming the affected cells and planned fix. Without the image, the model reviews structurally with validation and explanation instead of describing renders.
|
|
183
|
+
6. **Fix and verify before the next pass** — a pass's findings become targeted edits, validation, and a replacement preview; the new image is compared against the previous one and every addressed finding gets an explicit verdict (fixed / not fixed / regressed) — a fix counts only when the new render shows the defect gone, and the next pass starts only when the current one is clean. Each successful preview removes the previous preview file, leaving only the current image.
|
|
184
|
+
7. **Bound corrections** — pass inspection previews do not count as retries; permit at most eight targeted edit → validation → replacement-preview correction retries total. If a finding is still open at the limit, the run keeps the best validated state, finishes the remaining passes as inspection-only, continues to final export, and names the unresolved finding, its pass, and its last verdict in the report; `drawio_open` is offered afterwards for manual fine-tuning.
|
|
185
185
|
8. **No human gate** — the run never pauses for approval or feedback; if the user interrupts with feedback, it is handled as new critique findings and the run continues.
|
|
186
|
-
9. **Final export** — immediately after the holistic confirmation, export requested embedded/editable formats, remove the one remaining latest review preview, and report deliverables (including any unresolved finding from the correction limit) plus cleanup warnings.
|
|
186
|
+
9. **Final export** — immediately after the holistic confirmation, export requested embedded/editable formats (each page of a multi-page file separately), remove the one remaining latest review preview, and report deliverables (including any unresolved finding from the correction limit) plus cleanup warnings.
|
|
187
187
|
|
|
188
|
-
Deterministic checks cover XML contracts, IDs/references, finite page and container bounds, outer margins, overlaps, explicit waypoint routes,
|
|
188
|
+
Deterministic checks cover XML contracts, IDs/references, finite page and container bounds, outer margins, overlaps, explicit waypoint routes, edge-label placement, conservative font/wrapping cases, and pinned anchors that face away from their adjacent waypoint or auto-routed peer. Auto-routed edges remain renderer-dependent: validation warns that their route is unchecked and adds a focused observation when the direct connection line pierces a shape, but the preview remains the final arbiter. Rendered clipping and wrapping, contrast, typography at full-diagram scale, visual balance, semantics, and draw.io's automatic connector routes can only be judged from the preview image, so they are critiqued when the active model can view images and reported as unverified when it cannot. Vision's job in the loop is to narrow every rendered defect down to specific cells (the authoring reference maps each defect to a source fix) and then to confirm from the replacement image that the defect is actually gone. A 2000px preview that makes labels unreadable requires a tighter/simpler layout, page splitting, or a focused re-export — it must never be accepted as-is.
|
|
189
189
|
|
|
190
190
|
## Bundled References and Assets
|
|
191
191
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
When the user requests a specific diagram type, apply the matching preset below for shapes, styles, and layout conventions. These presets focus on **structural** style keywords, such as ERD's `shape=table;childLayout=tableLayout`; adapt colors and typography to the user's requested visual style.
|
|
4
4
|
|
|
5
|
+
Each preset ends with a **Review:** line — the type-specific defects to hunt during the visual review's holistic pass, on top of the generic fit, placement, connection, and typography checks.
|
|
6
|
+
|
|
5
7
|
Read this file when:
|
|
6
8
|
- The user names one of these diagram types (ERD, UML class, sequence, C4, architecture, ML/DL model, flowchart, SysML, BPMN, network topology, cross-functional/swimlane)
|
|
7
9
|
- You're choosing shape vocabulary or layout direction for a new diagram
|
|
@@ -18,6 +20,8 @@ For SQL DDL, derive tables, primary keys, foreign keys, and crow's-foot relation
|
|
|
18
20
|
| FK relationship | Dashed edge: `dashed=1;endArrow=ERmandOne;startArrow=ERmandOne;` | Use ER notation arrows |
|
|
19
21
|
| Layout | TB, tables spaced 300px apart | Group related tables vertically |
|
|
20
22
|
|
|
23
|
+
**Review:** every column row fully readable inside its table; relationship lines meet tables at row level on the sides, never through the title band; ER end markers visible at both ends and clear of the table border; PK/FK markers present; relationship lines don't cross tables they don't join.
|
|
24
|
+
|
|
21
25
|
## UML Class Diagram
|
|
22
26
|
|
|
23
27
|
| Element | Style | Notes |
|
|
@@ -30,6 +34,8 @@ For SQL DDL, derive tables, primary keys, foreign keys, and crow's-foot relation
|
|
|
30
34
|
| Aggregation | `endArrow=diamondThin;endFill=0;` | Hollow diamond |
|
|
31
35
|
| Layout | TB, classes 250px apart | Interfaces above implementations |
|
|
32
36
|
|
|
37
|
+
**Review:** all three compartments visible with separators intact; attribute/method text left-aligned and unclipped; hollow inheritance triangles point at the parent; diamonds sit at the owning end; multiplicity labels clear of their lines and of each other.
|
|
38
|
+
|
|
33
39
|
## Sequence Diagram
|
|
34
40
|
|
|
35
41
|
Prefer Mermaid conversion for a standard sequence diagram on draw.io 30+. Use the styles below for custom XML diagrams that require exact lifelines, activation bars, message placement, or interaction frames.
|
|
@@ -43,6 +49,8 @@ Prefer Mermaid conversion for a standard sequence diagram on draw.io 30+. Use th
|
|
|
43
49
|
| Activation box | `shape=umlFrame;whiteSpace=wrap;` on the lifeline | Narrow rectangle on lifeline |
|
|
44
50
|
| Layout | LR, lifelines spaced 200px apart | Time flows top to bottom |
|
|
45
51
|
|
|
52
|
+
**Review:** lifelines parallel, evenly spaced, and long enough for every message; messages horizontal with each label just above its own arrow, touching nothing; message order reads top→bottom as the described flow; activation boxes span exactly the messages they cover; returns dashed and grey.
|
|
53
|
+
|
|
46
54
|
## C4 Model (System Context / Container / Component)
|
|
47
55
|
|
|
48
56
|
Use the styles below for C4 diagrams. A Mermaid C4 sketch works for a standard single view on draw.io 30+; use XML when exact C4 styling, multiple pages, or drill-down links are required:
|
|
@@ -60,6 +68,8 @@ Use the styles below for C4 diagrams. A Mermaid C4 sketch works for a standard s
|
|
|
60
68
|
| Drill-down | wrap the element in `<UserObject link="data:page/id,<pageId>">` | Click jumps to the child page in draw.io / viewer |
|
|
61
69
|
| Layout | TB, one `<diagram>` page per level | Export a single page with `--page-index <n>` (1-based) |
|
|
62
70
|
|
|
71
|
+
**Review:** every element shows its full three-line label inside the shape; relationship labels readable on their white background and clear of other lines; person shapes unclipped; one consistent color per C4 level; external systems visibly grey.
|
|
72
|
+
|
|
63
73
|
## Architecture Diagram
|
|
64
74
|
|
|
65
75
|
| Element | Style | Notes |
|
|
@@ -72,6 +82,8 @@ Use the styles below for C4 diagrams. A Mermaid C4 sketch works for a standard s
|
|
|
72
82
|
| External | `rounded=1;dashed=1;fillColor=#f5f5f5;strokeColor=#666666;` | Dashed border for external systems |
|
|
73
83
|
| Layout | TB or LR by tier count; ≥4 tiers → TB | Hub nodes centered |
|
|
74
84
|
|
|
85
|
+
**Review:** every child fully inside its tier container with padding on all sides; tier titles not overlapped by children or edges; hub/bus nodes reachable with short direct edges; no edge passes through an unrelated service; colors match the legend.
|
|
86
|
+
|
|
75
87
|
## ML / Deep Learning Model Diagram
|
|
76
88
|
|
|
77
89
|
For neural network architecture diagrams — ideal for papers targeting NeurIPS, ICML, ICLR.
|
|
@@ -91,6 +103,8 @@ For neural network architecture diagrams — ideal for papers targeting NeurIPS,
|
|
|
91
103
|
|
|
92
104
|
**Tensor shape convention:** annotate each layer with input/output tensor dimensions in `(B, C, H, W)` or `(B, T, D)` format. Place dimensions as the second line of the label using `
`.
|
|
93
105
|
|
|
106
|
+
**Review:** layer blocks aligned on the flow axis; both label lines (name + tensor shape) readable in every block; skip connections curve clear of blocks and labels; encoder/decoder swimlanes don't clip their children; colors follow the layer-type mapping.
|
|
107
|
+
|
|
94
108
|
## SysML (Block Definition / Internal Block / Requirement / Parametric)
|
|
95
109
|
|
|
96
110
|
draw.io ships a native SysML 1.x shape library (`mxgraph.sysml.*`, ~60 shapes). Call `drawio_shapesearch` with `sysml <keyword>` for any element not listed below. Stereotype labels use guillemets as the first label line: `«block»` (HTML entities for « »). SysML behavioral diagrams (activity, state machine, use case, sequence) reuse the UML presets above; search for `sysml activity` or `sysml state` for notation-specific variants.
|
|
@@ -137,6 +151,8 @@ draw.io ships a native SysML 1.x shape library (`mxgraph.sysml.*`, ~60 shapes).
|
|
|
137
151
|
| Value property | `rounded=0;whiteSpace=wrap;html=1;` | Label `name : Type` |
|
|
138
152
|
| Layout | LR, value properties on the outside, constraints centered | |
|
|
139
153
|
|
|
154
|
+
**Review (all SysML views):** guillemets render as « » (not raw `«`); stereotype line visible on every element; compartment text unclipped; connector end symbols (diamonds, hollow triangles, crosshair circle) fully visible at the correct end; ports pinned on borders without overlapping labels; dashed dependency labels (`«satisfy»`, `«verify»`, …) clear of their lines.
|
|
155
|
+
|
|
140
156
|
## BPMN (Business Process)
|
|
141
157
|
|
|
142
158
|
draw.io ships ~200 native BPMN 2.0 shapes (`mxgraph.bpmn.*`). The official styles carry a long `points=[...]` connection-point list — call `drawio_shapesearch` with `bpmn <element>` for the full string; the styles below omit it for brevity and still render correctly.
|
|
@@ -158,6 +174,8 @@ draw.io ships ~200 native BPMN 2.0 shapes (`mxgraph.bpmn.*`). The official style
|
|
|
158
174
|
| Annotation | `html=1;shape=mxgraph.flowchart.annotation_2;align=left;labelPosition=right;` | Open bracket + dashed line |
|
|
159
175
|
| Layout | LR inside lanes, events/gateways vertically centered on the flow line | Sequence flows never cross pool borders; message flows never stay inside one |
|
|
160
176
|
|
|
177
|
+
**Review:** event and gateway labels sit below their symbols without touching lanes or flows; every gateway branch labeled; sequence flows stay inside their pool and message flows only run between pools; lane titles readable; the flow line runs through the vertical center of events and gateways.
|
|
178
|
+
|
|
161
179
|
## Network Topology
|
|
162
180
|
|
|
163
181
|
Generic vocabulary is the `mxgraph.networks` library — one shared style prefix, per-element `shape=`. For **vendor-specific** icons (Cisco `mxgraph.cisco19`/`cisco_safe`, rack `mxgraph.rack`, cloud vendors), call `drawio_shapesearch` with specific vendor and device keywords.
|
|
@@ -180,6 +198,8 @@ Shared prefix (every node below): `fontColor=#0066CC;verticalAlign=top;verticalL
|
|
|
180
198
|
| Logical/VPN link | `html=1;endArrow=none;dashed=1;` | Dashed |
|
|
181
199
|
| Layout | TB by tier: Internet → edge (router/firewall) → distribution (switch/LB) → servers/clients | Group each subnet in a zone container; label links with CIDR/port |
|
|
182
200
|
|
|
201
|
+
**Review:** device labels below their icons, fully readable, and clear of links; every zone container fully encloses its devices with padding; link labels (interface/VLAN/CIDR) beside the line, never on it; tiers read top→bottom; no link passes through a device it doesn't terminate at.
|
|
202
|
+
|
|
183
203
|
## Cross-Functional Flowchart (Swimlane)
|
|
184
204
|
|
|
185
205
|
A flowchart split by **who does what** — one lane per role/department. Node vocabulary reuses the Flowchart preset below; only the container skeleton differs.
|
|
@@ -192,6 +212,8 @@ A flowchart split by **who does what** — one lane per role/department. Node vo
|
|
|
192
212
|
| Handoff edge | `edgeStyle=orthogonalEdgeStyle;html=1;rounded=1;` | Edges crossing lanes are the handoffs — the diagram's point |
|
|
193
213
|
| Layout | LR flow inside horizontal lanes; time flows left → right | Keep each step inside its actor's lane; ≥160px horizontal spacing |
|
|
194
214
|
|
|
215
|
+
**Review:** every step fully inside its own lane; lane titles readable and unobstructed; handoff edges cross lane borders cleanly instead of running along them; the flow reads left→right without backtracking; decision branches labeled.
|
|
216
|
+
|
|
195
217
|
## Flowchart (enhanced)
|
|
196
218
|
|
|
197
219
|
| Element | Style | Notes |
|
|
@@ -203,3 +225,5 @@ A flowchart split by **who does what** — one lane per role/department. Node vo
|
|
|
203
225
|
| Subprocess | `rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;` + double border | Purple |
|
|
204
226
|
| Yes/No labels | `value="Yes"` / `value="No"` on decision edges | Always label decision branches |
|
|
205
227
|
| Layout | TB, 200px vertical gap | Decisions branch LR, merge back to center |
|
|
228
|
+
|
|
229
|
+
**Review:** flow reads top→bottom without backtracking; every decision has labeled Yes/No branches leaving different sides, with each label beside its own line; merge-back edges route around nodes through free corridors; start and end shapes visually distinct from process steps.
|
|
@@ -13,7 +13,7 @@ Read this when something looks wrong in the output (rendering, export, layout, e
|
|
|
13
13
|
| Overlapping shapes | Scale spacing with complexity (200–350px) and leave routing corridors; move elements apart and run `drawio_fit_canvas` so the page grows around the content — never shrink elements to fit the page |
|
|
14
14
|
| Edges crossing through shapes | Add waypoints, distribute entry/exit points, or increase spacing |
|
|
15
15
|
| Arrowhead overlaps bend | Final edge segment before target must be ≥20px — increase spacing or add waypoints |
|
|
16
|
-
| Automatic correction loop reaches its limit |
|
|
16
|
+
| Automatic correction loop reaches its limit | Pass inspection previews (the first preview of each review pass) do not consume retries. Allow at most **8 correction retries total**; each retry is one targeted source edit → `drawio_validate` → replacement preview cycle. If a finding remains at the limit, stop editing, keep the best validated state, finish the remaining passes as inspection-only, continue to final export, and name the unresolved finding and its pass in the final report — never loop or wait for input. |
|
|
17
17
|
| `command not found: draw.io` after `brew install --cask drawio` | Homebrew installs the binary as `drawio` (no dot). Use `drawio --version`, not `draw.io --version`. The dot-name only exists inside the `.app` bundle (`/Applications/draw.io.app/Contents/MacOS/draw.io`) and on Windows (`draw.io.exe`). |
|
|
18
18
|
| Export command not found on macOS | Try full path `/Applications/draw.io.app/Contents/MacOS/draw.io` |
|
|
19
19
|
| Vision reports that the preview dimensions are too large | Re-export with `drawio_export` in preview mode and set a smaller `width`. If a 2000px full-diagram preview makes labels unreadable, tighten the canvas, simplify or split the layout, or use a focused review artifact. |
|
|
@@ -41,13 +41,43 @@ Background for manual sizing (what the fit computes): visible top-level vertex/c
|
|
|
41
41
|
|
|
42
42
|
### Typography, padding, and labels
|
|
43
43
|
|
|
44
|
-
-
|
|
44
|
+
- Default to **14px for body/node labels** and **12px for connector labels** — set `fontSize=14;` on nodes and `fontSize=12;` on connectors instead of relying on draw.io's smaller default. Headings and title/hub nodes usually need 16–18px. Compact border ports and notation-mandated annotations may use 9–10px when their short labels remain legible; record the exception during review.
|
|
45
45
|
- Add `whiteSpace=wrap;html=1;` to labeled nodes. Use about 10–16px visual padding (`spacing=10;` or directional spacing) between text and shape borders.
|
|
46
46
|
- Size a node for the rendered lines, not only character count. A conservative height is `line count × (fontSize × 1.25) + top/bottom padding`; allow additional room for container title bands and icon shapes.
|
|
47
|
-
- Estimate width from the longest line (`characters × fontSize × 0.6 + left/right padding`), then verify by preview. Insert deliberate `
` breaks for long labels rather than forcing a very wide node.
|
|
47
|
+
- Estimate width from the longest line (`characters × fontSize × 0.6 + left/right padding`), then verify by preview. Keep boxes visually snug: for a short label, prefer the estimated width plus about 24px total padding over a large reused default. Preserve intentional uniform sizing among peer nodes when it improves alignment. Insert deliberate `
` breaks for long labels rather than forcing a very wide node.
|
|
48
48
|
- Prefer two or three concise lines. If a label remains long, enlarge the node, shorten the wording without changing meaning, or split details into a note/legend. Never reduce important body text merely to fit existing geometry.
|
|
49
49
|
- A 2000px full-diagram preview scales the entire page. If labels become unreadable at that width, simplify the layout, tighten the canvas, split the diagram into pages, or use a focused review export; never accept an unreadable full view as passing typography.
|
|
50
50
|
|
|
51
|
+
### Fix recipes: visual defect → source edit
|
|
52
|
+
|
|
53
|
+
When the preview critique narrows a finding down to specific cells, apply the matching recipe — then validate, re-export, and confirm the defect is gone in the new image:
|
|
54
|
+
|
|
55
|
+
| Visual defect (seen in the preview) | Fix |
|
|
56
|
+
|-------------------------------------|-----|
|
|
57
|
+
| Two shapes (or their labels) touch or overlap | Move the shapes apart per the spacing table, then `drawio_fit_canvas` — never shrink content |
|
|
58
|
+
| Label text touches or crosses its own shape border | Enlarge the node per the sizing formulas above, add `spacing=10;`, or insert `
` breaks |
|
|
59
|
+
| Label text clipped / cut off mid-word | Same as above — the node is too small for the rendered lines |
|
|
60
|
+
| Edge label struck through by its own line, or hugging it | Lift the label off the line with an offset in the edge's label geometry (example below) and add `labelBackgroundColor=#ffffff;` |
|
|
61
|
+
| Edge label overlaps another edge, label, or shape | Slide it along the edge (geometry `x` between `-1` and `1`) toward a clear stretch, plus the offset/background above |
|
|
62
|
+
| Any text with a line running underneath it | Reroute the edge around the text with waypoints, or move the label — text over lines is never acceptable |
|
|
63
|
+
| Arrowhead buried in a bend or hidden by a shape | Keep the final segment before the target ≥20px: move the last waypoint or increase spacing |
|
|
64
|
+
| Edge passes through a shape it does not connect | Add waypoints around it, or move the shape out of the routing corridor |
|
|
65
|
+
| Two edges stacked on the same path | Spread their entry/exit points (see the distribution table below) |
|
|
66
|
+
| Edge detours or makes needless 90° bends | Re-pin its exit/entry to the side facing the peer (see the facing table below); add waypoints only if a shape still blocks the corridor |
|
|
67
|
+
| Box has excessive empty side margins | Tighten it using the label-width estimate while preserving deliberate uniform sizing among peer nodes, then `drawio_fit_canvas` |
|
|
68
|
+
| Icon shape's label overlaps the icon artwork | Move the label outside: `verticalLabelPosition=bottom;verticalAlign=top;labelBackgroundColor=#ffffff;` |
|
|
69
|
+
| Content touching a page edge, uneven margins, or big empty areas | Re-space the elements if needed, then run `drawio_fit_canvas` |
|
|
70
|
+
|
|
71
|
+
**Positioning an edge label** — the edge's own label is placed by its geometry: `x` runs along the edge from `-1` (source) through `0` (center) to `1` (target), and an `<mxPoint as="offset">` shifts it in page pixels (negative `y` = up):
|
|
72
|
+
|
|
73
|
+
```xml
|
|
74
|
+
<mxCell id="e2" value="HTTP/REST" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="2" target="3">
|
|
75
|
+
<mxGeometry x="-0.25" relative="1" as="geometry">
|
|
76
|
+
<mxPoint as="offset" x="0" y="-12" />
|
|
77
|
+
</mxGeometry>
|
|
78
|
+
</mxCell>
|
|
79
|
+
```
|
|
80
|
+
|
|
51
81
|
### Shape types (vertex)
|
|
52
82
|
|
|
53
83
|
| Style keyword | Use for |
|
|
@@ -157,6 +187,19 @@ When multiple edges connect to the same shape, assign different entry/exit point
|
|
|
157
187
|
|
|
158
188
|
**Rule:** if a shape has N connections on one side, space them evenly (e.g., 3 connections on bottom → exitX = 0.25, 0.5, 0.75)
|
|
159
189
|
|
|
190
|
+
### Choosing the anchor side by relative position
|
|
191
|
+
|
|
192
|
+
Before spreading multiple edges on one side, pick the side that faces the peer. A wrong side forces the connector to backtrack around the shape, adding length and bends. Use the dominant center-to-center direction from source to target:
|
|
193
|
+
|
|
194
|
+
| Target relative to source | Source exit | Target entry |
|
|
195
|
+
|---------------------------|-------------|--------------|
|
|
196
|
+
| Right (`dx` dominant) | `exitX=1` | `entryX=0` |
|
|
197
|
+
| Left (`dx` dominant) | `exitX=0` | `entryX=1` |
|
|
198
|
+
| Below (`dy` dominant) | `exitY=1` | `entryY=0` |
|
|
199
|
+
| Above (`dy` dominant) | `exitY=0` | `entryY=1` |
|
|
200
|
+
|
|
201
|
+
`drawio_validate` warns when a pinned border anchor faces away from its adjacent waypoint, or from its peer when the edge has no waypoints, and suggests complete side-center `exit*` or `entry*` properties. Keep the facing side when distributing several connections; spread their positions along that side rather than moving them to non-facing sides. Leave the anchor unpinned when the relative direction is genuinely ambiguous so draw.io can choose it.
|
|
202
|
+
|
|
160
203
|
### Color palette (fillColor / strokeColor)
|
|
161
204
|
|
|
162
205
|
*Used only when no user style preset is active (see `references/style-presets.md` → "Applying a preset").*
|
package/docs/reference.md
CHANGED
|
@@ -30,7 +30,7 @@ Commands are user-facing shortcuts. Use the model-callable tools when you need e
|
|
|
30
30
|
|
|
31
31
|
| Command | Functionality |
|
|
32
32
|
| --- | --- |
|
|
33
|
-
| `/drawme <description>` | Starts the full autonomous workflow: check, plan, author, validate,
|
|
33
|
+
| `/drawme <description>` | Starts the full autonomous workflow: check, plan, author, validate, gated multi-pass visual review (fit/sizing → element placement → connections → holistic confirmation), and final export — no human intervention once started. The command pre-resolves the draw.io CLI and embeds the diagram-types, XML-authoring, and (on v30+) Mermaid references into the injected message, so the run starts without tool calls or file reads; only the troubleshooting reference is read on demand. |
|
|
34
34
|
| `/drawme-check` | Displays the detected draw.io path and version, or reports that the CLI is unavailable. |
|
|
35
35
|
| `/drawme-export <file> [png\|svg\|pdf\|jpg]` | Performs a final export of an existing `.drawio`; format defaults to PNG. |
|
|
36
36
|
|
|
@@ -110,7 +110,7 @@ Additional behavior:
|
|
|
110
110
|
- An explicit `width` replaces raster scaling.
|
|
111
111
|
- `scale` is ignored in preview mode and for vector formats.
|
|
112
112
|
- `transparent` has no effect outside PNG.
|
|
113
|
-
- Preview mode defaults to unembedded output suitable for visual inspection. When the current model can view images, a successful PNG preview tool result contains its normal text/metadata block followed by an `image/png` base64 image block; otherwise the image is omitted. The result text always states which case applies, and the output path in the text stays usable either way.
|
|
113
|
+
- Preview mode defaults to unembedded output suitable for visual inspection. When the current model can view images, a successful PNG preview tool result contains its normal text/metadata block followed by an `image/png` base64 image block; otherwise the image is omitted. The result text always states which case applies, and the output path in the text stays usable either way. A first preview asks for a critique against the current review pass's checklist; a preview that replaces an earlier one instead asks for a before/after comparison with a fixed / not fixed / regressed verdict per addressed finding.
|
|
114
114
|
- Final exports stay text-only; final PNG, SVG, and PDF default to embedded/editable output.
|
|
115
115
|
- JPG cannot carry editable XML; never set `embed: true` for JPG.
|
|
116
116
|
- Embedded PNG exports are checked for draw.io's known truncated IEND chunk and repaired automatically when necessary.
|
|
@@ -174,17 +174,21 @@ Actionable warnings include:
|
|
|
174
174
|
- a canvas conservatively detected as substantially larger than its visible content;
|
|
175
175
|
- very small explicit label fonts and long labels in narrow nodes without wrapping;
|
|
176
176
|
- explicitly waypointed edges routed through unrelated vertices or crossing one another;
|
|
177
|
+
- pinned source exits or target entries that face away from their adjacent waypoint, or their peer on an auto-route;
|
|
178
|
+
- edge labels likely overlapping shapes or sitting directly on their own connector;
|
|
179
|
+
- auto-routed edges whose missing waypoints prevent deterministic route checks;
|
|
177
180
|
- compressed pages that cannot be inspected.
|
|
178
181
|
|
|
179
|
-
Informational observations identify checks intentionally skipped for infinite canvases or omitted/invalid page dimensions. All normal-page diagnostics are page-specific. Content bounds account for nested container offsets, visible nodes/containers, explicit waypoints, and separately sized edge labels on resolvable explicit routes where practical.
|
|
182
|
+
Informational observations identify checks intentionally skipped for infinite canvases or omitted/invalid page dimensions. They also identify auto-routed edges whose direct connection line pierces an unrelated shape so the rendered route can receive focused preview review. All normal-page diagnostics are page-specific. Content bounds account for nested container offsets, visible nodes/containers, explicit waypoints, and separately sized edge labels on resolvable explicit routes where practical.
|
|
180
183
|
|
|
181
184
|
The result text and details also include a readability score:
|
|
182
185
|
|
|
183
186
|
- route through vertex: 20 points;
|
|
184
187
|
- edge crossing: 10 points;
|
|
185
|
-
- overlap: 5 points
|
|
188
|
+
- overlap: 5 points;
|
|
189
|
+
- anchor facing away from its next route direction: 8 points.
|
|
186
190
|
|
|
187
|
-
Lower is better, but scores are meaningful only when comparing layout variants of the same graph. Canvas, containment, and
|
|
191
|
+
Lower is better, but scores are meaningful only when comparing layout variants of the same graph. Canvas, containment, typography, and predicted auto-route observations do not affect the score. The text result separately reports error, unresolved-warning, and observation counts.
|
|
188
192
|
|
|
189
193
|
#### Use
|
|
190
194
|
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<mxfile host="drawio" version="31.1.5">
|
|
3
3
|
<diagram id="drawme-waterfall" name="High-level overview">
|
|
4
|
-
<mxGraphModel dx="1640" dy="1040" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="
|
|
4
|
+
<mxGraphModel dx="1640" dy="1040" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1620" pageHeight="1040" math="0" shadow="0">
|
|
5
5
|
<root>
|
|
6
|
-
<mxCell id="0"
|
|
7
|
-
<mxCell id="1" parent="0"
|
|
6
|
+
<mxCell id="0"/>
|
|
7
|
+
<mxCell id="1" parent="0"/>
|
|
8
8
|
|
|
9
9
|
<mxCell id="title" value="DrawMe Pi Extension" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;fontSize=30;fontStyle=1;fontColor=#173B67;strokeColor=none;fillColor=none;spacing=0;" vertex="1" parent="1">
|
|
10
|
-
<mxGeometry x="
|
|
10
|
+
<mxGeometry x="40" y="40" width="900" height="40" as="geometry"/>
|
|
11
11
|
</mxCell>
|
|
12
|
-
<mxCell id="subtitle" value="High-level waterfall overview | request
|
|
13
|
-
<mxGeometry x="
|
|
12
|
+
<mxCell id="subtitle" value="High-level waterfall overview | request → governed authoring → editable deliverables" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=middle;fontSize=16;fontColor=#52657A;strokeColor=none;fillColor=none;spacing=0;" vertex="1" parent="1">
|
|
13
|
+
<mxGeometry x="40" y="90" width="980" height="30" as="geometry"/>
|
|
14
14
|
</mxCell>
|
|
15
15
|
<mxCell id="cli-badge" value="draw.io CLI 31.1.5 | v30+ features active" style="rounded=1;arcSize=24;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontSize=13;fontStyle=1;fontColor=#23623B;fillColor=#E8F6EC;strokeColor=#3A9D5D;strokeWidth=1;spacing=8;" vertex="1" parent="1">
|
|
16
|
-
<mxGeometry x="
|
|
16
|
+
<mxGeometry x="1280" y="50" width="300" height="40" as="geometry"/>
|
|
17
17
|
</mxCell>
|
|
18
18
|
|
|
19
|
-
<mxCell id="stage-01" value="<b><font style="font-size:18px">01</font>
|
|
20
|
-
<mxGeometry x="
|
|
19
|
+
<mxCell id="stage-01" value="<b><font style="font-size:18px">01</font> Request</b><br><font color="#40566F">Natural-language intent arrives through <b>/drawme</b> in the Pi agent.</font>" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#173B67;fillColor=#EAF2FF;strokeColor=#4C78C2;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
|
|
20
|
+
<mxGeometry x="40" y="170" width="280" height="110" as="geometry"/>
|
|
21
21
|
</mxCell>
|
|
22
|
-
<mxCell id="stage-02" value="<b><font style="font-size:18px">02</font>
|
|
23
|
-
<mxGeometry x="
|
|
22
|
+
<mxCell id="stage-02" value="<b><font style="font-size:18px">02</font> Guided orchestration</b><br><font color="#40566F"><b>workflow.ts</b> injects the nine-step autonomous process.</font>" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#173B67;fillColor=#EAF2FF;strokeColor=#4C78C2;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
|
|
23
|
+
<mxGeometry x="250" y="290" width="280" height="110" as="geometry"/>
|
|
24
24
|
</mxCell>
|
|
25
|
-
<mxCell id="stage-03" value="<b><font style="font-size:18px">03</font>
|
|
26
|
-
<mxGeometry x="
|
|
25
|
+
<mxCell id="stage-03" value="<b><font style="font-size:18px">03</font> Author editable source</b><br><font color="#6B4A21">Uncompressed XML or Mermaid; exact shape search and optional ELK layout.</font>" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#7A4515;fillColor=#FFF1E6;strokeColor=#E67E22;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
|
|
26
|
+
<mxGeometry x="460" y="410" width="280" height="110" as="geometry"/>
|
|
27
27
|
</mxCell>
|
|
28
|
-
<mxCell id="stage-04" value="<b><font style="font-size:18px">04</font>
|
|
29
|
-
<mxGeometry x="
|
|
28
|
+
<mxCell id="stage-04" value="<b><font style="font-size:18px">04</font> Validate every revision</b><br><font color="#66551D"><b>validate.ts</b> blocks broken IDs, bad geometry, unsafe routes and anchors, overlaps, and label collisions.</font>" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
|
|
29
|
+
<mxGeometry x="670" y="530" width="280" height="110" as="geometry"/>
|
|
30
30
|
</mxCell>
|
|
31
|
-
<mxCell id="stage-05" value="<b><font style="font-size:18px">05</font>
|
|
32
|
-
<mxGeometry x="
|
|
31
|
+
<mxCell id="stage-05" value="<b><font style="font-size:18px">05</font> Preview, critique, refine</b><br><font color="#66551D">Four gated review passes; targeted fixes are revalidated (max 8 corrections).</font>" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
|
|
32
|
+
<mxGeometry x="880" y="650" width="280" height="110" as="geometry"/>
|
|
33
33
|
</mxCell>
|
|
34
|
-
<mxCell id="stage-06" value="<b><font style="font-size:18px">06</font>
|
|
35
|
-
<mxGeometry x="
|
|
34
|
+
<mxCell id="stage-06" value="<b><font style="font-size:18px">06</font> Holistic confirmation</b><br><font color="#66551D">The latest holistic preview is re-checked across all categories; the run continues straight to final export.</font>" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#66500E;fillColor=#FFF8DD;strokeColor=#C89B1D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
|
|
35
|
+
<mxGeometry x="1090" y="770" width="280" height="110" as="geometry"/>
|
|
36
36
|
</mxCell>
|
|
37
|
-
<mxCell id="stage-07" value="<b><font style="font-size:18px">07</font>
|
|
38
|
-
<mxGeometry x="
|
|
37
|
+
<mxCell id="stage-07" value="<b><font style="font-size:18px">07</font> Export deliverables</b><br><font color="#2B5D3C"><b>drawio.ts</b> invokes the local CLI → .drawio source plus PNG / SVG / PDF / JPG; XML embedded where supported.</font>" style="rounded=1;arcSize=18;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=14;fontColor=#23623B;fillColor=#E8F6EC;strokeColor=#3A9D5D;strokeWidth=2;spacing=14;shadow=1;" vertex="1" parent="1">
|
|
38
|
+
<mxGeometry x="1300" y="890" width="280" height="110" as="geometry"/>
|
|
39
39
|
</mxCell>
|
|
40
40
|
|
|
41
41
|
<mxCell id="edge-01-02" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-01" target="stage-02">
|
|
42
|
-
<mxGeometry relative="1" as="geometry"
|
|
42
|
+
<mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="355" y="258"/></Array></mxGeometry>
|
|
43
43
|
</mxCell>
|
|
44
44
|
<mxCell id="edge-02-03" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-02" target="stage-03">
|
|
45
|
-
<mxGeometry relative="1" as="geometry"
|
|
45
|
+
<mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="565" y="378"/></Array></mxGeometry>
|
|
46
46
|
</mxCell>
|
|
47
47
|
<mxCell id="edge-03-04" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-03" target="stage-04">
|
|
48
|
-
<mxGeometry relative="1" as="geometry"
|
|
48
|
+
<mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="775" y="498"/></Array></mxGeometry>
|
|
49
49
|
</mxCell>
|
|
50
50
|
<mxCell id="edge-04-05" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-04" target="stage-05">
|
|
51
|
-
<mxGeometry relative="1" as="geometry"
|
|
51
|
+
<mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="985" y="618"/></Array></mxGeometry>
|
|
52
52
|
</mxCell>
|
|
53
53
|
<mxCell id="edge-05-06" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-05" target="stage-06">
|
|
54
|
-
<mxGeometry relative="1" as="geometry"
|
|
54
|
+
<mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1195" y="738"/></Array></mxGeometry>
|
|
55
55
|
</mxCell>
|
|
56
56
|
<mxCell id="edge-06-07" value="" style="edgeStyle=none;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;endArrow=blockThin;endFill=1;endSize=10;strokeColor=#60738A;strokeWidth=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="stage-06" target="stage-07">
|
|
57
|
-
<mxGeometry relative="1" as="geometry"
|
|
57
|
+
<mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1405" y="858"/></Array></mxGeometry>
|
|
58
58
|
</mxCell>
|
|
59
59
|
|
|
60
|
-
<mxCell id="surface-note" value="<b><font style="font-size:17px">Extension surface</font></b><br><br><b>3 commands</b> /drawme
|
|
61
|
-
<mxGeometry x="
|
|
60
|
+
<mxCell id="surface-note" value="<b><font style="font-size:17px">Extension surface</font></b><br><br><b>3 commands</b> /drawme · /drawme-check · /drawme-export<br><b>9 model tools</b> check · export · validate · fit · shapes · Mermaid · layout · explain · open<br><b>Pure TypeScript</b> validation · canvas fit · shape search · explanation<br><b>CLI adapter</b> render · convert · layout · open · PNG repair" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fontSize=13;fontColor=#34495E;fillColor=#F7F9FC;strokeColor=#A9B7C6;strokeWidth=1;spacing=16;shadow=0;" vertex="1" parent="1">
|
|
61
|
+
<mxGeometry x="40" y="450" width="400" height="220" as="geometry"/>
|
|
62
62
|
</mxCell>
|
|
63
|
-
<mxCell id="legend" value="<b>Color key</b><br><font color="#4C78C2">
|
|
64
|
-
<mxGeometry x="
|
|
63
|
+
<mxCell id="legend" value="<b>Color key</b><br><font color="#4C78C2">■</font> Interface and control <font color="#E67E22">■</font> Authoring<br><font color="#C89B1D">■</font> Quality and confirmation <font color="#3A9D5D">■</font> Deliverable" style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#34495E;fillColor=#FFFFFF;strokeColor=#C8D1DC;strokeWidth=1;spacing=14;" vertex="1" parent="1">
|
|
64
|
+
<mxGeometry x="40" y="710" width="420" height="100" as="geometry"/>
|
|
65
65
|
</mxCell>
|
|
66
66
|
<mxCell id="trust-note" value="<b>Trust boundary</b><br>Pi may use the configured model; diagram files, structural validation, the shape index, and draw.io CLI execution remain on the local machine." style="rounded=1;arcSize=12;whiteSpace=wrap;html=1;align=left;verticalAlign=middle;fontSize=13;fontColor=#44546A;fillColor=#F4F6F8;strokeColor=#8996A5;strokeWidth=1;dashed=1;dashPattern=6 4;spacing=14;" vertex="1" parent="1">
|
|
67
|
-
<mxGeometry x="
|
|
67
|
+
<mxGeometry x="40" y="850" width="720" height="100" as="geometry"/>
|
|
68
68
|
</mxCell>
|
|
69
69
|
</root>
|
|
70
70
|
</mxGraphModel>
|