Add SVG/PNG/draw.io export for rack concepts, center the add-device hint
- Extract the elevation's <svg> body into inc/elevation_svg_content.html, shared by the on-page elevation and a new standalone export template so they never drift apart. - Add "Export" dropdown above the elevation: Front/Rear as standalone SVG (self-contained inline styles, no dependency on the page's CSS, absolute device-type image URLs so the file still works once saved elsewhere), Front/Rear as PNG (rasterized entirely client-side via <canvas> from that same SVG - no new server-side image dependency), and the whole concept as a draw.io (.drawio / mxGraph XML) diagram with both faces side by side, reusing the identical block geometry. - Center the "+ Add device" hint on empty units instead of right-aligning it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,11 @@ Dazu:
|
||||
unverkabelten Komponente wird sie mit einem Concept Cable verbunden. Ein „Add
|
||||
Components"-Dropdown (genau wie am echten Gerät) legt neue Komponenten pro Typ an —
|
||||
nötig für Platzhalter ohne Gerätetyp, die nichts zum Syncen haben.
|
||||
* **Export** – Button **„Export"** über der Elevation: Front bzw. Rear jeweils als
|
||||
eigenständige **SVG**- oder **PNG**-Datei, sowie das ganze Konzept (beide Seiten) als
|
||||
**Draw.io**-Diagramm (`.drawio`, per Datei > Öffnen oder Extras > Diagramm bearbeiten
|
||||
in diagrams.net einlesbar). PNG wird komplett im Browser aus dem SVG gerastert —
|
||||
dafür ist keine zusätzliche Bildbibliothek auf dem Server nötig.
|
||||
* Vollständige REST-API, Filter, CSV-Import/-Export, Bulk-Edit, Changelog, Journal,
|
||||
Tags, Custom Fields und globale Suche — wie bei jedem Core-Objekt.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user