{style ? 'Selection' : 'New shapes'}

{#each paints as { key, label } (key)} {@const paint = source[key]} {@const hex = vectorPaintToHex(paint)} {@const on = paint !== null && paint !== 'none'}
apply({ [key]: e.currentTarget.value })} /> {#if on && !hex}{typeof paint === 'string' ? paint : 'Gradient'}{/if} {#if style?.mixed[key]}Mixed{/if}
{/each} {#if style}{/if}
Profile {#if style?.mixed.widthProfile}Mixed{/if}
{#if source.hasOpenPath} {#each ends as { key, scaleKey, label } (key)}
{label} { const n = parseFloat(e.currentTarget.value); if (Number.isFinite(n) && n > 0) apply({ [scaleKey]: n }); }} />
{/each} {#if source.startArrow || source.endArrow} {/if} {/if} {#if source.corners > 0}
Corners { const n = parseFloat(e.currentTarget.value); if (Number.isFinite(n) && n >= 0) setCorners({ radius: n }); }} /> {#if style?.mixed.cornerRadius}Mixed{/if}
{/if} {#if style && source.corners > 0 && source.cornerKind === 'round' && source.cornerRadius > 0} {/if} {#if style} {/if}