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 { WidgetManifest } from '@workbench/widgetContracts';
import { LayersIcon } from 'lucide-react';
import { COLOR_PANE_DEFAULTS, LAYER_EDITOR_PANE_DEFAULTS } from './panes/editorPaneLayout';
export const layersWidgetManifest: WidgetManifest = {
allowMultiple: false,
allowedRegions: ['right'],
// The rail context menu still offers close/move; the panel body is the chrome.
chrome: { body: 'fill', header: 'hidden' },
failurePolicy: { isolateRenderFailure: true, onRegistrationFailure: 'disable' },
icon: LayersIcon,
id: 'layers',
label: (t) => t('widgets.labels.layers'),
load: () => import('./implementation').then((module) => module.widgetImplementation),
state: {
createInitial: () => ({ colorPane: { ...COLOR_PANE_DEFAULTS }, editorPanes: { ...LAYER_EDITOR_PANE_DEFAULTS } }),
persistence: 'project',
version: 1,
},
version: 1,
};