🎥 Make videos programmatically with React
remove width and height
Jonny Burger6a43ca7b9a3b
diff --git a/packages/shapes/src/components/star.tsx b/packages/shapes/src/components/star.tsxindex eb334fc0e7..0afef4b911 100644--- a/packages/shapes/src/components/star.tsx+++ b/packages/shapes/src/components/star.tsx@@ -7,8 +7,6 @@ import {RenderSvg} from './render-svg';export type StarProps = MakeStarProps & Omit<AllShapesProps, 'points'>;export const Star: React.FC<StarProps> = ({- width,- height,innerRadius,outerRadius,points,@@ -19,8 +17,6 @@ export const Star: React.FC<StarProps> = ({return (<RenderSvg{...makeStar({- height,- width,innerRadius,outerRadius,points,diff --git a/packages/shapes/src/utils/make-star.ts b/packages/shapes/src/utils/make-star.tsindex 1dcff6b881..4aa3763483 100644--- a/packages/shapes/src/utils/make-star.ts+++ b/packages/shapes/src/utils/make-star.ts@@ -4,8 +4,6 @@ import type {ShapeInfo} from './shape-info';import {star} from './star';export type MakeStarProps = {- width: number;- height: number;points: number;innerRadius: number;outerRadius: number;@@ -14,14 +12,15 @@ export type MakeStarProps = {};export const makeStar = ({- width,- height,points,innerRadius,outerRadius,cornerRadius,edgeRoundness,}: MakeStarProps): ShapeInfo => {+ const width = outerRadius * 2;+ const height = outerRadius * 2;+const centerX = width / 2;const centerY = height / 2;