🎥 Make videos programmatically with React
remove commas
Jonny Burger00e4fc4e2a0d
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsxindex 1f5d4ce8c2..b7685c52b3 100644--- a/packages/example/src/Video.tsx+++ b/packages/example/src/Video.tsx@@ -19,7 +19,7 @@ import InfinityVideo from './ReallyLongVideo';import RemoteVideo from './RemoteVideo';import {Scripts} from './Scripts';import CircleTest from './Shapes/CircleTest';-import RectTest from './Shapes/SquareTest';+import RectTest from './Shapes/RectTest';import TriangleTest from './Shapes/TriangleTest';import {SkipZeroFrame} from './SkipZeroFrame';import {BaseSpring, SpringWithDuration} from './Spring/base-spring';diff --git a/packages/shapes/src/circle.tsx b/packages/shapes/src/circle.tsxindex 4acb92e742..43b3570526 100644--- a/packages/shapes/src/circle.tsx+++ b/packages/shapes/src/circle.tsx@@ -25,7 +25,7 @@ export const Circle: React.FC<CircleProps> = ({viewBox={`0 0 ${width} ${height}`}xmlns="http://www.w3.org/2000/svg"style={style}- data-shape-type="circle"+ data-shape-type="ellipse"><pathd={makeCircle({diff --git a/packages/shapes/src/make-circle.ts b/packages/shapes/src/make-circle.tsindex 49246a0372..3ce28b42d4 100644--- a/packages/shapes/src/make-circle.ts+++ b/packages/shapes/src/make-circle.ts@@ -9,7 +9,7 @@ export const makeCircle = ({cy = 50,radius = 50,}: MakeCircleProps) => {- return `M ${cx} ${cy} m -${radius}, 0 a ${radius},${radius} 0 1,0 ${+ return `M ${cx} ${cy} m -${radius} 0 a ${radius} ${radius} 0 1 0 ${(radius as number) * 2- },0 ${radius},${radius} 0 1,0 ${-radius * 2},0`;+ } 0 ${radius} ${radius} 0 1 0 ${-radius * 2} 0`;};diff --git a/packages/shapes/src/test/circle.test.tsx b/packages/shapes/src/test/circle.test.tsxindex 11eea30f43..17adc24b2f 100644--- a/packages/shapes/src/test/circle.test.tsx+++ b/packages/shapes/src/test/circle.test.tsx@@ -15,8 +15,8 @@ test('Should be able to make a circle svg', () => {// assert shape typeexpect(container.querySelector('svg')?.getAttribute('data-shape-type')- ).toEqual('circle');+ ).toEqual('ellipse');expect(container.querySelector('path')?.getAttribute('d')).toEqual(- 'M 50 50 m -50, 0 a 50,50 0 1,0 100,0 50,50 0 1,0 -100,0'+ 'M 50 50 m -50 0 a 50 50 0 1 0 100 0 50 50 0 1 0 -100 0');});diff --git a/packages/shapes/src/test/make-circle.test.ts b/packages/shapes/src/test/make-circle.test.tsindex 774962e994..253df96899 100644--- a/packages/shapes/src/test/make-circle.test.ts+++ b/packages/shapes/src/test/make-circle.test.ts@@ -4,6 +4,6 @@ import {makeCircle} from '../make-circle';test('Should be able to make a circle path', () => {const circlePath = makeCircle({cx: 50, cy: 50, radius: 50});expect(circlePath).toEqual(- 'M 50 50 m -50, 0 a 50,50 0 1,0 100,0 50,50 0 1,0 -100,0'+ 'M 50 50 m -50 0 a 50 50 0 1 0 100 0 50 50 0 1 0 -100 0');});