The VS Code of video editing, built for agents.
TypeScript
Enhance StrokeInspector with visual icons and slider functionality
konstantin-paulus09f227f49e8f
diff --git a/apps/web/src/assets/icons/stroke.miter.svg b/apps/web/src/assets/icons/stroke.miter.svgnew file mode 100644index 00000000..11aabf5f--- /dev/null+++ b/apps/web/src/assets/icons/stroke.miter.svg@@ -0,0 +1,5 @@+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M7.5 17.5L10.63 9.5H13.37L16.5 17.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>+<path opacity="0.5" d="M10.63 9.5L12 6L13.37 9.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1 1.5"/>+<path opacity="0.5" d="M6.5 9.5H17.5" stroke="currentColor" stroke-linecap="round"/>+</svg>diff --git a/apps/web/src/assets/icons/stroke.weight.svg b/apps/web/src/assets/icons/stroke.weight.svgnew file mode 100644index 00000000..283694d2--- /dev/null+++ b/apps/web/src/assets/icons/stroke.weight.svg@@ -0,0 +1,5 @@+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M15.5 14.1499C16.0523 14.1499 16.5 14.5976 16.5 15.1499V15.3501C16.4999 15.9023 16.0522 16.3501 15.5 16.3501H7.5C6.94778 16.3501 6.50011 15.9023 6.5 15.3501V15.1499C6.5 14.5976 6.94772 14.1499 7.5 14.1499H15.5Z" fill="currentColor"/>+<path d="M15.75 10.6499C16.1642 10.6499 16.5 10.9857 16.5 11.3999C16.5 11.8141 16.1642 12.1499 15.75 12.1499H7.25C6.83579 12.1499 6.5 11.8141 6.5 11.3999C6.5 10.9857 6.83579 10.6499 7.25 10.6499H15.75Z" fill="currentColor"/>+<path d="M16 7.6499C16.2761 7.6499 16.5 7.87376 16.5 8.1499C16.5 8.42604 16.2761 8.6499 16 8.6499H7C6.72386 8.6499 6.5 8.42604 6.5 8.1499C6.5 7.87376 6.72386 7.6499 7 7.6499H16Z" fill="currentColor"/>+</svg>diff --git a/apps/web/src/components/sidebar-right/inspector/stroke-inspector.tsx b/apps/web/src/components/sidebar-right/inspector/stroke-inspector.tsxindex 9ce0c64e..a89f5dcf 100644--- a/apps/web/src/components/sidebar-right/inspector/stroke-inspector.tsx+++ b/apps/web/src/components/sidebar-right/inspector/stroke-inspector.tsx@@ -141,11 +141,13 @@ export function StrokeInspector(props: StrokeInspectorProps) {<ControlRow label="Weight"><ControlledTextField+ icon={<Icon name="stroke.weight" />}value={width()}onNumber={editWidth}step={1}min={0}autoSelect+ sliderEnabledlimitEventskeyframe={<Keyframe target={props.stroke} property="width" />}/>@@ -163,11 +165,13 @@ export function StrokeInspector(props: StrokeInspectorProps) {<ControlRow label="Miter"><ControlledTextField+ icon={<Icon name="stroke.miter" />}value={miterLimit()}onNumber={editMiterLimit}step={1}min={1}autoSelect+ sliderEnabledlimitEvents/></ControlRow>