From 61e0688f737d3ca90e837953f949951d780c62ca Mon Sep 17 00:00:00 2001 From: znetsixe Date: Wed, 22 Apr 2026 13:00:16 +0200 Subject: [PATCH] Make starter SVG diagrams round-trippable in draw.io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each .drawio.svg now has the corresponding .drawio XML embedded as content="..." on the root element. Opening the SVG in draw.io (File → Open, or drag-drop) loads the full editable model — no need to keep the .drawio file around for editing. Updated diagrams/README.md to reflect that both file formats are now round-trippable from the start. Co-Authored-By: Claude Opus 4.7 (1M context) --- wiki/diagrams/README.md | 4 +- wiki/diagrams/basin-model.drawio.svg | 110 ++++++++++++++++++++++++- wiki/diagrams/control-zones.drawio.svg | 103 ++++++++++++++++++++++- wiki/diagrams/safety-rules.drawio.svg | 59 ++++++++++++- 4 files changed, 272 insertions(+), 4 deletions(-) diff --git a/wiki/diagrams/README.md b/wiki/diagrams/README.md index 92f4d66..34f7841 100644 --- a/wiki/diagrams/README.md +++ b/wiki/diagrams/README.md @@ -66,4 +66,6 @@ Use a descriptive `alt` text; it's the fallback if the SVG fails and it shows up ## These starters are rough -The `.drawio` files committed here by Claude are **placeholders** — layout is approximate, colors and fonts are defaults, no fine alignment. They compile to a valid SVG you can see rendered on the page, but they're meant to be a starting point. Open them in draw.io, refine the layout, re-export. +The `.drawio` files and their matching `.drawio.svg` exports committed here are **placeholders** — layout is approximate, colors and fonts are defaults, no fine alignment. They're meant to be a starting point; open them in draw.io and refine. + +Both formats are round-trippable: open either the `.drawio` or the `.drawio.svg` in draw.io and it will load the editable model. (The SVG has the drawio XML embedded in a `content="…"` attribute on the root `` element — that's what lets draw.io re-open its own SVG exports.) diff --git a/wiki/diagrams/basin-model.drawio.svg b/wiki/diagrams/basin-model.drawio.svg index ab0dd8f..b21784b 100644 --- a/wiki/diagrams/basin-model.drawio.svg +++ b/wiki/diagrams/basin-model.drawio.svg @@ -1,5 +1,113 @@ - + Basin model — physical layout + control thresholds diff --git a/wiki/diagrams/control-zones.drawio.svg b/wiki/diagrams/control-zones.drawio.svg index 4016861..2ffdfb0 100644 --- a/wiki/diagrams/control-zones.drawio.svg +++ b/wiki/diagrams/control-zones.drawio.svg @@ -1,5 +1,106 @@ - + levelbased mode — three zones diff --git a/wiki/diagrams/safety-rules.drawio.svg b/wiki/diagrams/safety-rules.drawio.svg index b1bae39..7866580 100644 --- a/wiki/diagrams/safety-rules.drawio.svg +++ b/wiki/diagrams/safety-rules.drawio.svg @@ -1,5 +1,62 @@ - + Safety rules — asymmetric by direction Safety rules — asymmetric by direction