🎥 Make videos programmatically with React
move cutPath to internals for now
Jonny Burger8209d08e6c4b
diff --git a/packages/example/src/Paths/SlicePath.tsx b/packages/example/src/Paths/SlicePath.tsxindex 26fec99f0c..a8aab11d4f 100644--- a/packages/example/src/Paths/SlicePath.tsx+++ b/packages/example/src/Paths/SlicePath.tsx@@ -1,4 +1,4 @@-import {cutPath, getLength} from '@remotion/paths';+import {PathInternals, getLength} from '@remotion/paths';import {makeStar} from '@remotion/shapes';import React from 'react';import {interpolate, useCurrentFrame} from 'remotion';@@ -16,7 +16,7 @@ export const SlicePath: React.FC = () => {const progress = interpolate(frame, [0, 100], [0, 1]);const length = getLength(path.path);- const cut = cutPath(path.path, length * progress);+ const cut = PathInternals.cutPath(path.path, length * progress);return (<svg viewBox={`0 0 ${path.width} ${path.height}`}>diff --git a/packages/paths/src/index.ts b/packages/paths/src/index.tsindex 1b06eeb4c3..8a1aa8ae98 100644--- a/packages/paths/src/index.ts+++ b/packages/paths/src/index.ts@@ -1,7 +1,7 @@-import {getBoundingBoxFromInstructions} from './get-bounding-box';-import {cutPath} from './cut-path';import {debugPath} from './debug-path';+import {getBoundingBoxFromInstructions} from './get-bounding-box';+export {evolvePath} from './evolve-path';export {extendViewBox} from './extend-viewbox';export {getBoundingBox} from './get-bounding-box';