Skip to content

🎥 Make videos programmatically with React

Update make-heart.ts

Jonny Burger4c9905a148b4
diff --git a/packages/shapes/src/utils/make-heart.ts b/packages/shapes/src/utils/make-heart.ts
index f6a2edee89..59b6a714b9 100644
--- a/packages/shapes/src/utils/make-heart.ts
+++ b/packages/shapes/src/utils/make-heart.ts
@@ -4,9 +4,9 @@ import type {ShapeInfo} from './shape-info';
export type MakeHeartProps = {
height: number;
- aspectRatio: number;
- bottomRoundnessAdjustment: number;
- depthAdjustment: number;
+ aspectRatio?: number;
+ bottomRoundnessAdjustment?: number;
+ depthAdjustment?: number;
};
/**
@@ -16,7 +16,7 @@ export type MakeHeartProps = {
*/
export const makeHeart = ({
height,
- aspectRatio,
+ aspectRatio = 1.1,
bottomRoundnessAdjustment = 0,
depthAdjustment = 0,
}: MakeHeartProps): ShapeInfo => {