chore: 本轮改造的共享契约与占位——ToolId/ShapeKind/LayerKind 扩充、Dropdown 壳、形状表、三个菜单与两个 composable 的桩

This commit is contained in:
2026-09-05 17:56:10 +08:00
parent 3a3798e37b
commit 19c8c604cb
17 changed files with 512 additions and 28 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ function onPointerDown(e: PointerEvent) {
const scene = c.getScenePoint(e);
void p;
if (tool.value === "text") addText();
else if (tool.value === "rect") addRect({ x: scene.x, y: scene.y });
if (tool.value !== "image") {
else if (tool.value === "shape") addRect({ x: scene.x, y: scene.y });
if (tool.value !== "background") {
tool.value = "select";
commit();
}