@synergenius/flow-weaver 0.9.4 → 0.10.0
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/dist/cli/flow-weaver.mjs +402 -100
- package/dist/diagram/geometry.js +5 -5
- package/dist/diagram/html-viewer.d.ts +2 -1
- package/dist/diagram/html-viewer.js +401 -99
- package/dist/diagram/renderer.js +8 -0
- package/package.json +1 -1
package/dist/diagram/renderer.js
CHANGED
|
@@ -84,6 +84,14 @@ export function renderSVG(graph, options = {}) {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
parts.push(`</g>`);
|
|
87
|
+
// Watermark (logo + text)
|
|
88
|
+
const wmX = vbX + vbWidth - 16;
|
|
89
|
+
const wmY = vbY + vbHeight - 14;
|
|
90
|
+
const wmBrand = themeName === 'dark' ? '#8e9eff' : '#5468ff';
|
|
91
|
+
parts.push(`<g opacity="0.5">`);
|
|
92
|
+
parts.push(` <svg x="${wmX - 118}" y="${wmY - 18}" width="22" height="22" viewBox="0 0 256 256" fill="none"><path d="M80 128C134 128 122 49 176 49" stroke="${wmBrand}" stroke-width="14" stroke-linecap="round"/><path d="M80 128C134 128 122 207 176 207" stroke="${wmBrand}" stroke-width="14" stroke-linecap="round"/><rect x="28" y="102" width="52" height="52" rx="10" stroke="${wmBrand}" stroke-width="14"/><rect x="176" y="23" width="52" height="52" rx="10" stroke="${wmBrand}" stroke-width="14"/><rect x="176" y="181" width="52" height="52" rx="10" stroke="${wmBrand}" stroke-width="14"/></svg>`);
|
|
93
|
+
parts.push(` <text x="${wmX}" y="${wmY}" text-anchor="end" font-size="14" font-weight="700" fill="${wmBrand}" font-family="Montserrat, 'Segoe UI', Roboto, sans-serif">Flow Weaver</text>`);
|
|
94
|
+
parts.push(`</g>`);
|
|
87
95
|
parts.push(`</svg>`);
|
|
88
96
|
return parts.join('\n');
|
|
89
97
|
}
|
package/package.json
CHANGED