From c51cd973fc4488381d689b514b2c0f7632cf7230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Thu, 13 Aug 2026 14:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A8=A1=E5=9D=97=E7=BB=84?= =?UTF-8?q?=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 重构Transform类型路径 --- .../{transform-utils => utils/transform}/tf2css.test.tsx | 2 +- .../ui-editor/{transform-utils => utils/transform}/tf2css.ts | 2 +- .../components/Inspector/Transform}/TransformEditor.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename apps/ai-game-creator-shell/src/features/ui-editor/{transform-utils => utils/transform}/tf2css.test.tsx (98%) rename apps/ai-game-creator-shell/src/features/ui-editor/{transform-utils => utils/transform}/tf2css.ts (97%) rename apps/ai-game-creator-shell/src/{features/ui-editor/transform-utils => view/ui-editor/components/Inspector/Transform}/TransformEditor.tsx (99%) diff --git a/apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/tf2css.test.tsx b/apps/ai-game-creator-shell/src/features/ui-editor/utils/transform/tf2css.test.tsx similarity index 98% rename from apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/tf2css.test.tsx rename to apps/ai-game-creator-shell/src/features/ui-editor/utils/transform/tf2css.test.tsx index 9cd239099..131384c4b 100644 --- a/apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/tf2css.test.tsx +++ b/apps/ai-game-creator-shell/src/features/ui-editor/utils/transform/tf2css.test.tsx @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import type { Transform } from '../types'; +import type { Transform } from '../../types/Transform'; import { tf2css } from './tf2css'; const STRETCH_TRANSFORM: Transform = { diff --git a/apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/tf2css.ts b/apps/ai-game-creator-shell/src/features/ui-editor/utils/transform/tf2css.ts similarity index 97% rename from apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/tf2css.ts rename to apps/ai-game-creator-shell/src/features/ui-editor/utils/transform/tf2css.ts index c3dfe4cef..2114b18f0 100644 --- a/apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/tf2css.ts +++ b/apps/ai-game-creator-shell/src/features/ui-editor/utils/transform/tf2css.ts @@ -1,6 +1,6 @@ import type { CSSProperties } from 'react'; -import type { Transform } from '../types'; +import type { Transform } from '../../types/Transform'; type TransformVectorField = keyof Transform; diff --git a/apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/TransformEditor.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Transform/TransformEditor.tsx similarity index 99% rename from apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/TransformEditor.tsx rename to apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Transform/TransformEditor.tsx index 2ec720f05..6176d31db 100644 --- a/apps/ai-game-creator-shell/src/features/ui-editor/transform-utils/TransformEditor.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Transform/TransformEditor.tsx @@ -10,7 +10,7 @@ import { } from 'lucide-react'; import { useEffect, useMemo, useRef, useState } from 'react'; -import type { Transform } from '../types'; +import type { Transform } from '../../../../../features/ui-editor/types/Transform'; export type TransformEditorParentSize = { width: number;