Enhance canvas functionality with new node types and validation

- Added support for new canvas node types: curves, color-adjust, light-adjust, detail-adjust, and render.
- Implemented validation for adjustment nodes to restrict incoming edges to one.
- Updated canvas connection validation to improve user feedback on invalid connections.
- Enhanced node creation and rendering logic to accommodate new node types and their properties.
- Refactored related components and utilities for better maintainability and performance.
This commit is contained in:
Matthias
2026-04-02 11:39:05 +02:00
parent 9bab9bb93d
commit f3c5c2d8f1
52 changed files with 5755 additions and 44 deletions

View File

@@ -17,10 +17,12 @@ import type * as export_ from "../export.js";
import type * as freepik from "../freepik.js";
import type * as helpers from "../helpers.js";
import type * as http from "../http.js";
import type * as node_type_validator from "../node_type_validator.js";
import type * as nodes from "../nodes.js";
import type * as openrouter from "../openrouter.js";
import type * as pexels from "../pexels.js";
import type * as polar from "../polar.js";
import type * as presets from "../presets.js";
import type * as storage from "../storage.js";
import type * as users from "../users.js";
@@ -40,10 +42,12 @@ declare const fullApi: ApiFromModules<{
freepik: typeof freepik;
helpers: typeof helpers;
http: typeof http;
node_type_validator: typeof node_type_validator;
nodes: typeof nodes;
openrouter: typeof openrouter;
pexels: typeof pexels;
polar: typeof polar;
presets: typeof presets;
storage: typeof storage;
users: typeof users;
}>;