{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.checked ? (hex ?? '#000000') : null })} /> {label}
apply({ [key]: e.currentTarget.value })} /> {#if on && !hex}
{typeof paint === 'string' ? paint : 'Gradient'}
{/if} {#if style?.mixed[key]}
Mixed
{/if}
{/each} {#if style}
{/if}
Width
{ const n = parseFloat(e.currentTarget.value); if (Number.isFinite(n) && n >= 0) apply({ strokeWidth: n }); }} />
Align
apply({ strokeAlign: e.currentTarget.value })}> {#each aligns as a (a)}
{VECTOR_STROKE_ALIGN_LABELS[a]}
{/each}
{#if style?.mixed.strokeAlign}
Mixed
{/if}
Profile
{ if (e.currentTarget.value !== 'custom') setProfile(e.currentTarget.value as VectorWidthPreset); }} > {#each VECTOR_WIDTH_PRESETS as p (p.id)}
{p.label}
{/each} {#if source.widthProfile === 'custom'}
Custom
{/if}
setProfile('uniform')} > ═
{#if style?.mixed.widthProfile}
Mixed
{/if}
{#if source.hasOpenPath} {#each ends as { key, scaleKey, label } (key)}
{label}
apply({ [key]: e.currentTarget.value || null })}>
None
{#each VECTOR_ARROWHEADS as h (h)}
{VECTOR_ARROWHEAD_LABELS[h]}
{/each}
{ const n = parseFloat(e.currentTarget.value); if (Number.isFinite(n) && n > 0) apply({ [scaleKey]: n }); }} />
{/each} {#if source.startArrow || source.endArrow}
Heads
apply({ arrowAlign: e.currentTarget.value })}>
Tip past end
Tip at end
{/if} {/if} {#if source.corners > 0}
Corners
{ const n = parseFloat(e.currentTarget.value); if (Number.isFinite(n) && n >= 0) setCorners({ radius: n }); }} />
setCorners({ kind: e.currentTarget.value as VectorCornerKind })}> {#each VECTOR_CORNER_KINDS as k (k)}
{VECTOR_CORNER_KIND_LABELS[k]}
{/each}
{#if style?.mixed.cornerRadius}
Mixed
{/if}
{/if} {#if style && source.corners > 0 && source.cornerKind === 'round' && source.cornerRadius > 0}
Smoothing
controller.setCornerSmoothing(parseFloat(e.currentTarget.value), { merge: 'corner-smoothing' })} onpointerup={() => controller.endMergedEdit()} />
{/if}
{#if style}
Opacity
apply({ opacity: parseFloat(e.currentTarget.value) })} />
{/if}