🎥 Make videos programmatically with React
star path
Jonny Burger2d09dfa06067
diff --git a/packages/shapes/src/test/make-star.test.ts b/packages/shapes/src/test/make-star.test.tsindex 29d69edabf..298ea85a56 100644--- a/packages/shapes/src/test/make-star.test.ts+++ b/packages/shapes/src/test/make-star.test.ts@@ -1,7 +1,7 @@import {expect, test} from 'vitest';import {makeStar} from '../utils/make-star';-test('Should be able to make a triangle path', () => {+test('Should be able to make a star path', () => {const starPath = makeStar({points: 5,innerRadius: 150,@@ -9,7 +9,7 @@ test('Should be able to make a triangle path', () => {});expect(starPath).toEqual({- path: 'M 200 0 L 288.167787843871 78.64745084375788 L 390.21130325903073 138.19660112501052 L 342.658477444273 246.3525491562421 L 317.55705045849464 361.8033988749895 L 200 350 L 82.4429495415054 361.8033988749895 L 57.34152255572698 246.35254915624213 L 9.788696740969272 138.19660112501055 L 111.83221215612902 78.6474508437579 L 200 0 Z',+ path: 'M 190.21130325903073 0 L 278.3790911029017 78.64745084375788 L 380.42260651806146 138.19660112501052 L 332.8697807033037 246.3525491562421 L 307.7683537175254 361.8033988749895 L 190.21130325903073 350 L 72.65425280053613 361.8033988749895 L 47.55282581475771 246.35254915624213 L 0 138.19660112501055 L 102.04351541515975 78.6474508437579 L 190.21130325903073 0 Z',width: 400,height: 400,transformOrigin: '200 200',diff --git a/packages/shapes/src/test/star.test.tsx b/packages/shapes/src/test/star.test.tsxindex b84c375a8d..a63eb2b392 100644--- a/packages/shapes/src/test/star.test.tsx+++ b/packages/shapes/src/test/star.test.tsx@@ -8,6 +8,6 @@ test('Should be able to make a star svg', () => {);expect(container.querySelector('path')?.getAttribute('d')).toEqual(- 'M 150 0 L 267.55705045849464 -11.803398874989483 L 292.658477444273 103.6474508437579 L 340.21130325903073 211.80339887498948 L 238.16778784387097 271.3525491562421 L 150 350 L 61.832212156129046 271.3525491562421 L -40.2113032590307 211.8033988749895 L 7.341522555726954 103.64745084375791 L 32.44294954150536 -11.803398874989455 L 150 0 Z',+ 'M 190.2113032590307 11.803398874989483 L 307.7683537175253 0 L 332.8697807033037 115.45084971874738 L 380.42260651806146 223.60679774997897 L 278.37909110290167 283.15594803123156 L 190.2113032590307 361.8033988749895 L 102.04351541515975 283.15594803123156 L 0 223.606797749979 L 47.552825814757654 115.45084971874739 L 72.65425280053606 2.842170943040401e-14 L 190.2113032590307 11.803398874989483 Z',);});