figmatk 0.3.10 → 0.3.11
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.
|
@@ -770,13 +770,19 @@ function renderInstance(deck, node) {
|
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
+
// Render SYMBOL's own fill as background (e.g. dark-blue cover slide)
|
|
774
|
+
const { w, h } = size(symbol.size ? symbol : node);
|
|
775
|
+
const rx = Math.min(symbol.cornerRadius ?? 0, w / 2, h / 2);
|
|
776
|
+
let { defs, bg } = renderRoundedRectFillStack(deck, getFillPaints(symbol), w, h, rx);
|
|
777
|
+
|
|
773
778
|
const inner = childrenSvg(deck, symbol);
|
|
774
779
|
|
|
775
780
|
// Restore mutations
|
|
776
781
|
for (const fn of restores) fn();
|
|
777
782
|
|
|
778
|
-
|
|
779
|
-
|
|
783
|
+
const parts = [defs, bg, inner].filter(Boolean).join('\n');
|
|
784
|
+
if (!parts) return '';
|
|
785
|
+
return `<g transform="translate(${x},${y})">\n${parts}\n</g>`;
|
|
780
786
|
}
|
|
781
787
|
|
|
782
788
|
// ── Dispatcher ────────────────────────────────────────────────────────────────
|
package/manifest.json
CHANGED
package/package.json
CHANGED