Refactor: Update import paths with alias

- `@/types` 경로를 사용하여 타입 관련 import 경로를 수정했습니다.
- `@/engine` 경로를 사용하여 엔진 관련 import 경로를 수정했습니다.
- `@/editor` 경로를 사용하여 에디터 관련 import 경로를 수정했습니다.
- `@/components` 경로를 사용하여 컴포넌트 관련 import 경로를 수정했습니다.
- `@/hooks` 경로를 사용하여 훅 관련 import 경로를 수정했습니다.
- `@/utils` 경로를 사용하여 유틸리티 관련 import 경로를 수정했습니다.
This commit is contained in:
BaekRyang 2025-11-06 09:41:12 +09:00
parent d2e83ac9a5
commit c18f3fffb5
6 changed files with 19 additions and 19 deletions

View File

@ -1,13 +1,13 @@
import React, { useEffect, useRef, useState, useCallback } from 'react'; import React, { useEffect, useRef, useState, useCallback } from 'react';
import * as THREE from 'three'; import * as THREE from 'three';
import { type DistortionArea } from '../types'; import { type DistortionArea } from '@/types';
import { ThreeScene } from '../engine/ThreeScene'; import { ThreeScene } from '@/engine/ThreeScene';
import { ShaderManager } from '../engine/ShaderManager'; import { ShaderManager } from '@/engine/ShaderManager';
import { AnimationLoop } from '../engine/AnimationLoop'; import { AnimationLoop } from '@/engine/AnimationLoop';
import { useAnimationFrame } from '../hooks/useAnimationFrame'; import { useAnimationFrame } from '@/hooks/useAnimationFrame';
import { useMouseInteraction } from '../hooks/useMouseInteraction'; import { useMouseInteraction } from '@/hooks/useMouseInteraction';
import { SHADER_CONFIG } from '../utils/constants'; import { SHADER_CONFIG } from '@/utils/constants';
import { MouseInteractionConfig } from '../types/interaction'; import { MouseInteractionConfig } from '@/types/interaction';
/** /**
* ImageDistortion Props * ImageDistortion Props

View File

@ -1,8 +1,8 @@
import React, {useRef, useEffect, useState, useCallback, useMemo} from 'react'; import React, {useRef, useEffect, useState, useCallback, useMemo} from 'react';
import {DistortionArea, Point} from '../../types/area'; import {DistortionArea, Point} from '@/types';
import {ImageDistortion} from '../../components/ImageDistortion'; import {ImageDistortion} from '@/components/ImageDistortion';
import {EditorCanvasStyle} from '../types'; import {EditorCanvasStyle} from '../types';
import {DEFAULT_EDITOR_CANVAS_STYLE} from '../constants'; import {DEFAULT_EDITOR_CANVAS_STYLE} from '@/editor';
interface EditorCanvasProps { interface EditorCanvasProps {
areas: DistortionArea[]; areas: DistortionArea[];

View File

@ -1,5 +1,5 @@
import { Point } from '../types/area'; import { Point } from '@/types';
import { SpringPhysicsConfig, SpringState } from '../types/interaction'; import { SpringPhysicsConfig, SpringState } from '@/types/interaction';
/** /**
* *

View File

@ -1,5 +1,5 @@
import * as THREE from 'three'; import * as THREE from 'three';
import type { ShaderUniforms } from '../types'; import type { ShaderUniforms } from '@/types';
/** /**
* Three.js * Three.js

View File

@ -1,8 +1,8 @@
import { useRef, useCallback, useState } from 'react'; import { useRef, useCallback, useState } from 'react';
import { useMouseVelocity } from './useMouseVelocity'; import { useMouseVelocity } from './useMouseVelocity';
import { SpringPhysics } from '../engine/SpringPhysics'; import { SpringPhysics } from '@/engine/SpringPhysics';
import { DistortionArea, Point } from '../types/area'; import { DistortionArea, Point } from '@/types';
import { MouseInteractionConfig } from '../types/interaction'; import { MouseInteractionConfig } from '@/types/interaction';
/** /**
* *

View File

@ -1,6 +1,6 @@
import { useRef, useCallback, useEffect } from 'react'; import { useRef, useCallback, useEffect } from 'react';
import { Point } from '../types/area'; import { Point } from '@/types';
import { MouseState } from '../types/interaction'; import { MouseState } from '@/types/interaction';
/** /**
* , , * , ,