Skip to content

🎥 Make videos programmatically with React

makeCircle()

Jonny Burger62e610707bb5
diff --git a/packages/shapes/src/test/circle.test.tsx b/packages/shapes/src/test/circle.test.tsx
index 46b4f7a1e5..f38f6e37ce 100644
--- a/packages/shapes/src/test/circle.test.tsx
+++ b/packages/shapes/src/test/circle.test.tsx
@@ -8,6 +8,6 @@ test('Should be able to make a circle svg', () => {
);
expect(container.querySelector('path')?.getAttribute('d')).toEqual(
- 'M 100 100 m -100 0 a 100 100 0 1 0 200 0 a 100 100 0 1 0 -200 0 z'
+ 'M 0 100 a 100 100 0 1 0 200 0 a 100 100 0 1 0 -200 0 z'
);
});
diff --git a/packages/shapes/src/test/make-circle.test.ts b/packages/shapes/src/test/make-circle.test.ts
index 357b29a843..a413758a00 100644
--- a/packages/shapes/src/test/make-circle.test.ts
+++ b/packages/shapes/src/test/make-circle.test.ts
@@ -6,11 +6,10 @@ test('Should be able to make a circle path', () => {
expect(circlePath).toEqual({
height: 100,
width: 100,
- path: 'M 50 50 m -50 0 a 50 50 0 1 0 100 0 a 50 50 0 1 0 -100 0 z',
+ path: 'M 0 50 a 50 50 0 1 0 100 0 a 50 50 0 1 0 -100 0 z',
transformOrigin: '50 50',
instructions: [
- {type: 'M', x: 50, y: 50},
- {type: 'm', x: -50, y: 0},
+ {type: 'M', x: 0, y: 50},
{
type: 'a',
rx: 50,