Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
import type { ToolId } from '@workbench/canvas-engine/api';
import { filterOperationForm } from '@workbench/widgets/canvas/tool-options/FilterOptions';
import { bboxForm, moveForm, transformForm } from '@workbench/widgets/canvas/tool-options/geometryForm';
import { gradientForm } from '@workbench/widgets/canvas/tool-options/GradientOptions';
import { brushForm, eraserForm } from '@workbench/widgets/canvas/tool-options/paintForm';
import { selectObjectOperationForm } from '@workbench/widgets/canvas/tool-options/SamOptions';
import { lassoForm, marqueeForm } from '@workbench/widgets/canvas/tool-options/selectionForm';
import { shapeForm } from '@workbench/widgets/canvas/tool-options/ShapeOptions';
import { SplineSettings } from '@workbench/widgets/canvas/tool-options/SplineOptions';
import { textForm } from '@workbench/widgets/canvas/tool-options/textForm';
import type { CanvasOperationKind, OperationPropertyForm, ToolPropertyForm } from './toolFormContracts';
const splineForm: ToolPropertyForm = {
id: 'spline',
groups: [{ body: SplineSettings, id: 'spline-points', labelKey: 'widgets.layers.vector.pointsTitle' }],
};
export const TOOL_PRESENTATION_ADAPTERS: Readonly<Record<ToolId, ToolPropertyForm>> = {
bbox: bboxForm,
brush: brushForm,
colorPicker: { groups: [], id: 'colorPicker' },
eraser: eraserForm,
gradient: gradientForm,
lasso: lassoForm,
marquee: marqueeForm,
move: moveForm,
sam: { groups: [], id: 'sam' },
shape: shapeForm,
spline: splineForm,
text: textForm,
transform: transformForm,
view: { groups: [], id: 'view' },
};
export const OPERATION_PRESENTATION_ADAPTERS: Readonly<Record<CanvasOperationKind, OperationPropertyForm>> = {
filter: filterOperationForm,
'select-object': selectObjectOperationForm,
};