Skip to content

🎥 Make videos programmatically with React

get part at length

Jonny Burgera09f7ea48286
diff --git a/packages/paths/src/get-point-at-length.ts b/packages/paths/src/get-point-at-length.ts
index b36ba43935..c738353be6 100644
--- a/packages/paths/src/get-point-at-length.ts
+++ b/packages/paths/src/get-point-at-length.ts
@@ -1,5 +1,5 @@
-import {getPartAtLength} from './get-part-at-length';
import {construct} from './helpers/construct';
+import {getPartAtLength} from './helpers/get-part-at-length';
export const getPointAtLength = (p: string, fractionLength: number) => {
const constructed = construct(p);
diff --git a/packages/paths/src/get-properties-at-length.ts b/packages/paths/src/get-properties-at-length.ts
index e35cb2e035..083af446b3 100644
--- a/packages/paths/src/get-properties-at-length.ts
+++ b/packages/paths/src/get-properties-at-length.ts
@@ -1,5 +1,5 @@
-import {getPartAtLength} from './get-length';
import {construct} from './helpers/construct';
+import {getPartAtLength} from './helpers/get-part-at-length';
export const getPropertiesAtLength = (p: string, fractionLength: number) => {
const constructed = construct(p);
diff --git a/packages/paths/src/get-tangent-at-length.ts b/packages/paths/src/get-tangent-at-length.ts
index efae1944dc..73eba222d6 100644
--- a/packages/paths/src/get-tangent-at-length.ts
+++ b/packages/paths/src/get-tangent-at-length.ts
@@ -1,5 +1,5 @@
-import {getPartAtLength} from './get-part-at-length';
import {construct} from './helpers/construct';
+import {getPartAtLength} from './helpers/get-part-at-length';
export const getTangentAtLength = (p: string, fractionLength: number) => {
const constructed = construct(p);
diff --git a/packages/paths/src/helpers/arc.ts b/packages/paths/src/helpers/arc.ts
index f834f41b86..65f6642d97 100644
--- a/packages/paths/src/helpers/arc.ts
+++ b/packages/paths/src/helpers/arc.ts
@@ -1,5 +1,6 @@
// Copied from: https://github.com/rveciana/svg-path-properties
-import type {Point, PointProperties, Properties} from '../types';
+
+import type {Point, PointProperties, Properties} from './types';
export const makeArc = ({
x0,
diff --git a/packages/paths/src/get-part-at-length.ts b/packages/paths/src/helpers/get-part-at-length.ts
similarity index 90%
rename from packages/paths/src/get-part-at-length.ts
rename to packages/paths/src/helpers/get-part-at-length.ts
index 79048c179f..45695a47c5 100644
--- a/packages/paths/src/get-part-at-length.ts
+++ b/packages/paths/src/helpers/get-part-at-length.ts
@@ -1,4 +1,4 @@
-import {construct} from './helpers/construct';
+import {construct} from './construct';
export const getPartAtLength = (p: string, fractionLength: number) => {
const constructed = construct(p);
diff --git a/packages/paths/src/index.ts b/packages/paths/src/index.ts
index 9d45602393..472da041ac 100644
--- a/packages/paths/src/index.ts
+++ b/packages/paths/src/index.ts
@@ -1,5 +1,4 @@
export {getLength} from './get-length';
-export {getPartAtLength} from './get-part-at-length';
export {getParts} from './get-parts';
export {getPointAtLength} from './get-point-at-length';
export {getPropertiesAtLength} from './get-properties-at-length';