diff --git a/src/index.tsx b/src/index.tsx index 3475fc72..ddd6184c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -47,8 +47,8 @@ export type { MovablePointProps } from "./interaction/MovablePoint" export { MovablePointDisplay } from "./display/MovablePointDisplay" export type { MovablePointDisplayProps } from "./display/MovablePointDisplay" -export { useMovable } from "./interaction/useMovementInteraction" -export type { UseMovable, UseMovableArguments } from "./interaction/useMovementInteraction" +export { useMovable } from "./interaction/useMovable" +export type { UseMovable, UseMovableArguments } from "./interaction/useMovable" export { useMovablePoint } from "./interaction/useMovablePoint" export type { diff --git a/src/interaction/MovablePoint.tsx b/src/interaction/MovablePoint.tsx index fad92bcd..54858fbc 100644 --- a/src/interaction/MovablePoint.tsx +++ b/src/interaction/MovablePoint.tsx @@ -1,7 +1,7 @@ import * as React from "react" import { Theme } from "../display/Theme" import { vec } from "../vec" -import { useMovable } from "./useMovementInteraction" +import { useMovable } from "./useMovable" import { MovablePointDisplay } from "../display/MovablePointDisplay" export type ConstraintFunction = (position: vec.Vector2) => vec.Vector2 diff --git a/src/interaction/useMovementInteraction.tsx b/src/interaction/useMovable.tsx similarity index 100% rename from src/interaction/useMovementInteraction.tsx rename to src/interaction/useMovable.tsx