From 2c38950cb79db112778db528574ff333b943b281 Mon Sep 17 00:00:00 2001 From: igurielidze Date: Mon, 30 Mar 2026 22:36:47 +0400 Subject: [PATCH] Add Ignition SCADA JSON export (ia.shapes.svg format) New "SCADA" button generates Ignition-compatible JSON that can be directly pasted into Ignition Perspective views. Converts SVG elements to Ignition's ia.shapes.svg JSON format with: - Proper element types (group, rect, path, text, polyline, circle) - Fill/stroke as {paint, width} objects - Text style as {fontFamily, fontWeight, fontSize} objects - color, state, priority, tagpaths as top-level element properties - Correct viewBox, meta, position structure Co-Authored-By: Claude Opus 4.6 (1M context) --- svelte-app/src/components/Toolbar.svelte | 5 +- svelte-app/src/lib/export.ts | 185 ++++++++++++++++++++++- 2 files changed, 186 insertions(+), 4 deletions(-) diff --git a/svelte-app/src/components/Toolbar.svelte b/svelte-app/src/components/Toolbar.svelte index e654c8a..d19a81b 100644 --- a/svelte-app/src/components/Toolbar.svelte +++ b/svelte-app/src/components/Toolbar.svelte @@ -1,6 +1,6 @@