基于Fabric.js实现添加背景功能

This commit is contained in:
jingrow 2026-01-20 22:59:01 +08:00
parent e2d7d80231
commit cfc3e13b38
4 changed files with 2375 additions and 13 deletions

812
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -58,6 +58,7 @@
"@vue-flow/minimap": "^1.0.0",
"@vueuse/core": "^13.9.0",
"axios": "^1.5.0",
"fabric": "^7.1.0",
"jquery": "^3.7.0",
"monaco-editor": "^0.54.0",
"naive-ui": "^2.34.0",

View File

@ -51,6 +51,19 @@ function getDefaultTools(): Tool[] {
isDefault: true,
toolName: 'remove_background'
},
{
id: 'add-background',
name: t('Add Background'),
description: t('Add custom background color to images'),
category: 'Image Processing',
icon: 'photo-plus',
color: '#e5e7eb',
type: 'route',
routeName: 'AddBackground',
order: 2,
isDefault: true,
toolName: 'add_background'
},
// 在这里添加更多默认工具,每行一个:
// {
// id: 'tool-id-2',

File diff suppressed because it is too large Load Diff