Add UI-agnostic model layer: typed grouped properties (string/int/float/ bool/enum/color/catalogue item(s)/value list), catalogue registry, port relations with color schemes and compatibility rules, ports, node/edge models, and DiagramDocument with change signals and JSON round-trip. Include a starter node library (source/tank/pump/valve/junction/consumer/ transformer) with matching SVG symbols, plus model+document tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 lines
538 B
XML
9 lines
538 B
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
<path d="M18 25 L50 50 L18 75 Z" fill="#cfd8dc" stroke="#455a64" stroke-width="4"/>
|
|
<path d="M82 25 L50 50 L82 75 Z" fill="#cfd8dc" stroke="#455a64" stroke-width="4"/>
|
|
<line x1="50" y1="50" x2="50" y2="22" stroke="#455a64" stroke-width="4"/>
|
|
<rect x="38" y="12" width="24" height="10" rx="3" fill="#455a64"/>
|
|
<line x1="4" y1="50" x2="18" y2="50" stroke="#455a64" stroke-width="5"/>
|
|
<line x1="82" y1="50" x2="96" y2="50" stroke="#455a64" stroke-width="5"/>
|
|
</svg>
|