🎥 Make videos programmatically with React
document and export `Instruction`
Jonny Burgerc75a12dc47ff
diff --git a/packages/docs/components/shapes/shapes-info.tsx b/packages/docs/components/shapes/shapes-info.tsxindex 2b30613500..0abb6d7e75 100644--- a/packages/docs/components/shapes/shapes-info.tsx+++ b/packages/docs/components/shapes/shapes-info.tsx@@ -230,6 +230,14 @@ export const MakeShapeReturnType: React.FC<{The height of the {shapeComponent.shape.toLowerCase()}. Suitable fordefining the <code>viewBox</code> of an <code>{"<svg>"}</code> tag.</p>+ <h3>+ <code>instructions</code>+ </h3>+ <p>+ An array with SVG instructions. The type for a instruction can be seen+ by importing <code>Instruction</code> from <code>@remotion/shapes</code>+ .+ </p><h3><code>transformOrigin</code></h3>diff --git a/packages/shapes/src/index.ts b/packages/shapes/src/index.tsindex 13a10a692f..38897c6709 100644--- a/packages/shapes/src/index.ts+++ b/packages/shapes/src/index.ts@@ -2,6 +2,7 @@ export {Circle, CircleProps} from './components/circle';export {Ellipse, EllipseProps} from './components/ellipse';export {Rect, RectProps} from './components/rect';export {Triangle, TriangleProps} from './components/triangle';+export {Instruction} from './utils/instructions';export {makeCircle, MakeCircleProps} from './utils/make-circle';export {makeEllipse, MakeEllipseOptions} from './utils/make-ellipse';export {makeRect, MakeRectOptions} from './utils/make-rect';