Skip to content

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.

build(webv2): fold the text font helpers into the shared canvas chunk

Josh Corbettc6a460bd4361
diff --git a/invokeai/frontend/webv2/performance/browser-baseline.json b/invokeai/frontend/webv2/performance/browser-baseline.json
index 0b4c49c3a5..234e9a1bc4 100644
--- a/invokeai/frontend/webv2/performance/browser-baseline.json
+++ b/invokeai/frontend/webv2/performance/browser-baseline.json
@@ -2979,6 +2979,7 @@
"source:src/workbench/widgets/canvas/settingsContribution.ts",
"source:src/workbench/widgets/canvas/stagingPreview.ts",
"source:src/workbench/widgets/canvas/surfaceFocus.ts",
+ "source:src/workbench/widgets/canvas/textFontStyle.tsx",
"source:src/workbench/widgets/canvas/tool-options/BrushOptions.tsx",
"source:src/workbench/widgets/canvas/tool-options/CanvasOptionsBar.tsx",
"source:src/workbench/widgets/canvas/tool-options/FilterOptions.tsx",
diff --git a/invokeai/frontend/webv2/vite.config.mts b/invokeai/frontend/webv2/vite.config.mts
index 9fbc487d25..52ecc8779f 100644
--- a/invokeai/frontend/webv2/vite.config.mts
+++ b/invokeai/frontend/webv2/vite.config.mts
@@ -145,6 +145,7 @@ const CANVAS_LAYER_SHARED_MODULES = [
'/workbench/widgets/canvas/color-system/colorPair.ts',
'/workbench/widgets/canvas/color-system/useActiveColors.ts',
'/workbench/widgets/canvas/engineStoreHooks.ts',
+ '/workbench/widgets/canvas/textFontStyle.tsx',
'/workbench/widgets/canvas/tool-presentation/FormControls.tsx',
'/workbench/widgets/canvas/tool-presentation/PropertyPrimitives.tsx',
'/workbench/widgets/canvas/tool-presentation/propertyGroupStore.ts',