feat: layer effects, bucket fill, simple brush

This commit is contained in:
2026-05-21 00:02:12 +07:00
parent bcf4650c70
commit e7dd9420e7
47 changed files with 1675 additions and 1038 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
import type { EditorToolId } from "../store/editor-store";
import type { EditorToolId } from "@pien-studio/editor-core";
export type ToolModeController = {
kind: "mode";
@@ -22,6 +22,8 @@ type CreateEditorToolControllersOptions = {
pointer: string;
pan: string;
face: string;
fill: string;
brush: string;
text: string;
image: string;
};
@@ -32,6 +34,8 @@ export function createEditorToolControllers(options: CreateEditorToolControllers
{ kind: "mode", id: "pointer", label: options.labels.pointer },
{ kind: "mode", id: "hand", label: options.labels.pan },
{ kind: "mode", id: "face", label: options.labels.face },
{ kind: "mode", id: "fill", label: options.labels.fill },
{ kind: "mode", id: "brush", label: options.labels.brush },
{ kind: "action", id: "add-text", label: options.labels.text, run: options.onAddTextLayer },
{ kind: "action", id: "import-image", label: options.labels.image, run: options.onImportImage },
];