summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-13 04:40:48 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-13 05:01:51 +0200
commit5a2aaf3601b6b050603f51e487a31fb07862a21f (patch)
tree1c1acdfb3a6c8210d90af181af62975624999155 /apps/web/src/components/editor
parent108d3f4ecad4c0ead14941c2067a21546750fedc (diff)
downloadopencut-5a2aaf3601b6b050603f51e487a31fb07862a21f.tar.gz
feat: cinematic bars, diamond, heart, and star masks
Made-with: Cursor
Diffstat (limited to 'apps/web/src/components/editor')
-rw-r--r--apps/web/src/components/editor/panels/properties/tabs/masks-tab.tsx38
1 files changed, 38 insertions, 0 deletions
diff --git a/apps/web/src/components/editor/panels/properties/tabs/masks-tab.tsx b/apps/web/src/components/editor/panels/properties/tabs/masks-tab.tsx
index 8148b457..cfc69720 100644
--- a/apps/web/src/components/editor/panels/properties/tabs/masks-tab.tsx
+++ b/apps/web/src/components/editor/panels/properties/tabs/masks-tab.tsx
@@ -450,6 +450,44 @@ function MaskParamsFields({
</SectionField>
)}
+ {definition.features.sizeMode === "height-only" &&
+ "height" in mask.params && (
+ <SectionField label="Height">
+ <MaskNumberField
+ icon="H"
+ param={getNumberParamDefinition({
+ definition,
+ key: "height",
+ })}
+ value={getMaskNumber({
+ params: mask.params,
+ key: "height",
+ })}
+ onPreview={previewNumberParam("height")}
+ onCommit={onCommit}
+ />
+ </SectionField>
+ )}
+
+ {definition.features.sizeMode === "width-only" &&
+ "width" in mask.params && (
+ <SectionField label="Width">
+ <MaskNumberField
+ icon="W"
+ param={getNumberParamDefinition({
+ definition,
+ key: "width",
+ })}
+ value={getMaskNumber({
+ params: mask.params,
+ key: "width",
+ })}
+ onPreview={previewNumberParam("width")}
+ onCommit={onCommit}
+ />
+ </SectionField>
+ )}
+
{definition.features.sizeMode === "uniform" && "scale" in mask.params && (
<SectionField label="Scale">
<MaskNumberField