Skip to content

🎥 Make videos programmatically with React

circle path

Jonny Burger7076583114cd
diff --git a/packages/shapes/src/test/circle.test.tsx b/packages/shapes/src/test/circle.test.tsx
index 07e641b4e7..ca7c8deb0e 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 0 100 a 100 100 0 1 0 200 0 a 100 100 0 1 0 -200 0 Z',
+ 'M 100 0 a 100 100 0 1 1 0 200 a 100 100 0 1 1 0 -200 Z',
);
});
diff --git a/packages/shapes/src/test/make-circle.test.ts b/packages/shapes/src/test/make-circle.test.ts
index 56ea6ffe96..d791c2184e 100644
--- a/packages/shapes/src/test/make-circle.test.ts
+++ b/packages/shapes/src/test/make-circle.test.ts
@@ -6,19 +6,19 @@ test('Should be able to make a circle path', () => {
expect(circlePath).toEqual({
height: 100,
width: 100,
- path: 'M 0 50 a 50 50 0 1 0 100 0 a 50 50 0 1 0 -100 0 Z',
+ path: 'M 50 0 a 50 50 0 1 1 0 100 a 50 50 0 1 1 0 -100 Z',
transformOrigin: '50 50',
instructions: [
- {type: 'M', x: 0, y: 50},
+ {type: 'M', x: 50, y: 0},
{
type: 'a',
rx: 50,
ry: 50,
xAxisRotation: 0,
largeArcFlag: true,
- sweepFlag: false,
- dx: 100,
- dy: 0,
+ sweepFlag: true,
+ dx: 0,
+ dy: 100,
},
{
type: 'a',
@@ -26,9 +26,9 @@ test('Should be able to make a circle path', () => {
ry: 50,
xAxisRotation: 0,
largeArcFlag: true,
- sweepFlag: false,
- dx: -100,
- dy: 0,
+ sweepFlag: true,
+ dx: 0,
+ dy: -100,
},
{
type: 'Z',