chore: 本轮改造的共享契约与占位——ToolId/ShapeKind/LayerKind 扩充、Dropdown 壳、形状表、三个菜单与两个 composable 的桩
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user