border radius for all shape

This commit is contained in:
hamid zarghami
2026-07-05 15:52:39 +03:30
parent 46926c66e7
commit 368cace143
8 changed files with 169 additions and 63 deletions
@@ -31,6 +31,17 @@ const SizeSettings = ({ selectedObject, onUpdate, defaultWidth = 100, defaultHei
})
}
/>
<Input
label="گردی گوشه"
type="number"
value={selectedObject.borderRadius ?? 0}
onChange={(e) =>
onUpdate(selectedObject.id, {
borderRadius: Math.max(0, parseInt(e.target.value) || 0),
})
}
min={0}
/>
</>
);
};