Use @ alias imports. Formatted files.

This commit is contained in:
Jay
2025-08-01 23:28:56 -04:00
parent 68c7486725
commit f639876604
20 changed files with 82 additions and 42 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { useRef, useCallback } from "react";
import { useCallback, useRef } from "react";
export function useSmoothAnimation() {
const animationRef = useRef<number | null>(null);
+2 -2
View File
@@ -1,13 +1,13 @@
import { useCallback, useEffect, useRef, useState } from "react";
import type { Dispatch, SetStateAction } from "react";
import type { CartesianSpace } from "../types";
import type { CartesianSpace } from "@/types";
import {
extractEventCoordinates,
isLeftMouseButton,
isTouchEvent,
minmax,
} from "../util";
} from "@/util";
if (typeof TouchEvent === "undefined") {
// @ts-ignore - intentionally creating global
+1 -1
View File
@@ -5,7 +5,7 @@ import {
extractEventCoordinates,
isLeftMouseButton,
isTouchEvent,
} from "../util";
} from "@/util";
type DragAction<T> =
| { type: "resetItems"; items: T[] }
+1 -1
View File
@@ -1,4 +1,4 @@
import { useState, useRef, useEffect, useCallback } from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import type { RefObject } from "react";
export function handleScroll(
+3 -2
View File
@@ -1,13 +1,14 @@
import { useCallback, useEffect, useRef, useState } from "react";
import type { Dispatch, SetStateAction } from "react";
import type { CartesianSpace } from "../types";
import type { CartesianSpace } from "@/types";
import {
extractEventCoordinates,
isLeftMouseButton,
isTouchEvent,
minmax,
} from "../util";
} from "@/util";
import { useScroll } from "./scroll";
if (typeof TouchEvent === "undefined") {
+2 -1
View File
@@ -1,6 +1,7 @@
import { useEffect, useRef, useState } from "react";
import type { CartesianSpace } from "../../types";
import type { CartesianSpace } from "@/types";
import { useCrosshair } from "../crosshair";
// Test Fixtures
+2 -1
View File
@@ -1,6 +1,7 @@
import { useState } from "react";
import clsx from "clsx";
import { motion } from "motion/react";
import { useState } from "react";
import { useDragAndDrop } from "../dragAndDrop";
import styles from "./dragAndDropTest.module.css";
+2 -1
View File
@@ -1,6 +1,7 @@
import { useEffect, useRef, useState } from "react";
import type { CartesianSpace } from "../../types";
import type { CartesianSpace } from "@/types";
import { Direction, useSlider } from "../slider";
// Test Fixtures