From fb8720e3afb026c1df29d99ab99932dcd5f3e489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 5 Sep 2026 12:42:42 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E8=B5=84=E6=BA=90=E9=A1=B5=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E5=85=B1=E4=BA=AB=20CanvasWorld?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除项目开发页自有 world 变换与动态矩形尺寸 通过共享 CanvasWorld 提供资源卡控件反向缩放变量 --- apps/ai-game-creator-shell/src/styles.css | 10 ++++++++++ .../src/view/project-development/index.tsx | 12 ++++------- .../image-canvas-react/src/CanvasWorld.tsx | 20 ++++++++++++------- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index dbac2f8dc..b1748b822 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -5900,6 +5900,16 @@ iframe.preview-frame { text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 8px 18px rgb(96 62 47 / 20%); + transform: scale(var(--genarrative-image-canvas-inverse-scale, 1)); + transform-origin: top right; +} + +.game-resource-card-media-control, +.game-resource-card-placeholder > svg, +.game-resource-card-version-visual > svg, +.game-resource-card-audio-visual > svg { + transform: scale(var(--genarrative-image-canvas-inverse-scale, 1)); + transform-origin: center; } .game-resource-card-open { diff --git a/apps/ai-game-creator-shell/src/view/project-development/index.tsx b/apps/ai-game-creator-shell/src/view/project-development/index.tsx index f539fc02f..6735ec1b4 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/index.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/index.tsx @@ -3,6 +3,7 @@ import { type CanvasViewport, resolveViewportFromWheel, } from '@genarrative/image-canvas-core'; +import { CanvasWorld } from '@genarrative/image-canvas-react'; import { Code2, FileText, @@ -4906,17 +4907,12 @@ export default function ProjectDevelopmentView({ >