From c31c92d07ace70e34dc6398db9fca3526c7560d8 Mon Sep 17 00:00:00 2001 From: qiqi Date: Sun, 1 Nov 2026 22:42:05 +0800 Subject: [PATCH] =?UTF-8?q?style(icons):=20=E4=B8=89=E4=B8=AA=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=94=B9=E7=94=A8=E6=8C=87=E5=AE=9A=20lucide=20?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=EF=BC=88=E6=A0=87=E6=B3=A8=20pencil-ruler=20?= =?UTF-8?q?/=20=E6=8A=A0=E5=9B=BE=20scissors=20/=20=E7=99=BD=E5=BA=95?= =?UTF-8?q?=E5=9B=BE=20vector-square=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - image-annotate:plugin/glue.js 的命令与节点操作 icon: layer → pencil-ruler(已重新构建 src/index.js)1.0.2 → 1.0.3 - xianyi-cutout:两条注册 icon: ref → scissors,1.0.2 → 1.0.3 - white-bg-800:两条注册 icon: fit → vector-square,1.2.0 → 1.2.1 - npm run validate:7/7 通过 注:宿主已内置同名图标(pencil-ruler / scissors / vector-square),发布到 KV 后刷新即生效。 --- image-annotate/package.json | 2 +- image-annotate/plugin/glue.js | 4 ++-- image-annotate/src/index.js | 6 +++--- white-bg-800/package.json | 8 ++++++-- white-bg-800/src/index.js | 6 +++--- xianyi-cutout/package.json | 8 ++++++-- xianyi-cutout/src/index.js | 6 +++--- 7 files changed, 24 insertions(+), 16 deletions(-) diff --git a/image-annotate/package.json b/image-annotate/package.json index ee8a59c..ac77181 100644 --- a/image-annotate/package.json +++ b/image-annotate/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/image-annotate", "private": true, - "version": "1.0.2", + "version": "1.0.3", "description": "IWB 插件:图片标注 / 修图(编辑器移植自 iwb-plaus 扩展,纯 Canvas 2D)", "ibwPlugin": { "id": "image-annotate", diff --git a/image-annotate/plugin/glue.js b/image-annotate/plugin/glue.js index 6912762..1e7d7c1 100644 --- a/image-annotate/plugin/glue.js +++ b/image-annotate/plugin/glue.js @@ -105,7 +105,7 @@ export function createGlue(ctx, css) { ctx.nodeActions.register({ id: 'annotate-node', title: '标注 / 修图', - icon: 'layer', + icon: 'pencil-ruler', appliesTo: appliesTo, run: function (node) { return openEditor(node) }, }) @@ -113,7 +113,7 @@ export function createGlue(ctx, css) { ctx.commands.register({ id: 'annotate-selected', title: '标注 / 修图:选中节点', - icon: 'layer', + icon: 'pencil-ruler', run: function () { const selected = ctx.canvas.getSelectedNode() if (!selected) return Promise.reject(new Error('请先选中一个带图的节点')) diff --git a/image-annotate/src/index.js b/image-annotate/src/index.js index df848eb..219b47b 100644 --- a/image-annotate/src/index.js +++ b/image-annotate/src/index.js @@ -9,7 +9,7 @@ var __IWB_ANNOTATE_MANIFEST__ = { id: 'image-annotate', name: '标注 / 修图', - version: '1.0.2', + version: '1.0.3', apiVersion: 1, capabilities: ['commands', 'nodeActions', 'canvas', 'canvasWrite'], } @@ -4580,7 +4580,7 @@ var __IWB_ANNOTATE_MANIFEST__ = { ctx.nodeActions.register({ id: "annotate-node", title: "标注 / 修图", - icon: "layer", + icon: "pencil-ruler", appliesTo, run: function(node) { return openEditor(node); @@ -4589,7 +4589,7 @@ var __IWB_ANNOTATE_MANIFEST__ = { ctx.commands.register({ id: "annotate-selected", title: "标注 / 修图:选中节点", - icon: "layer", + icon: "pencil-ruler", run: function() { const selected = ctx.canvas.getSelectedNode(); if (!selected) return Promise.reject(new Error("请先选中一个带图的节点")); diff --git a/white-bg-800/package.json b/white-bg-800/package.json index 9dfdcb2..39992fe 100644 --- a/white-bg-800/package.json +++ b/white-bg-800/package.json @@ -1,7 +1,11 @@ { "name": "@iwb-plugin/white-bg-800", "private": true, - "version": "1.2.0", + "version": "1.2.1", "description": "白底图:把节点图等比缩放居中合成到正方形画布,按格式/质量/体积上限编码,输出 _x.;可开双版本出透明 PNG + 白底 JPG", - "ibwPlugin": { "id": "white-bg-800", "entry": "src/index.js", "apiVersion": 1 } + "ibwPlugin": { + "id": "white-bg-800", + "entry": "src/index.js", + "apiVersion": 1 + } } diff --git a/white-bg-800/src/index.js b/white-bg-800/src/index.js index 0d69e32..1fcd8a0 100644 --- a/white-bg-800/src/index.js +++ b/white-bg-800/src/index.js @@ -145,7 +145,7 @@ global.IWBPluginHost.register({ id: 'white-bg-800', name: '白底图', - version: '1.2.0', + version: '1.2.1', apiVersion: 1, capabilities: ['commands', 'canvas', 'canvasWrite', 'nodeActions'], settings: { @@ -292,7 +292,7 @@ ctx.nodeActions.register({ id: 'white-bg-node', title: '白底图', - icon: 'fit', + icon: 'vector-square', appliesTo: function (node) { return Boolean(node) && node.type === 'ref' }, run: function (node) { return runOne(node.id, node.name) }, }) @@ -300,7 +300,7 @@ ctx.commands.register({ id: 'white-bg-selected', title: '白底图:选中节点', - icon: 'fit', + icon: 'vector-square', run: function () { const selected = ctx.canvas.getSelectedNode() if (!selected) return Promise.reject(new Error('请先选中一个带图的节点')) diff --git a/xianyi-cutout/package.json b/xianyi-cutout/package.json index 2b35ce1..7b349d9 100644 --- a/xianyi-cutout/package.json +++ b/xianyi-cutout/package.json @@ -1,7 +1,11 @@ { "name": "@iwb-plugin/xianyi-cutout", "private": true, - "version": "1.0.2", + "version": "1.0.3", "description": "鲜艺抠图:调用本机 30092 的 /rmbg 把节点图抠成透明底", - "ibwPlugin": { "id": "xianyi-cutout", "entry": "src/index.js", "apiVersion": 1 } + "ibwPlugin": { + "id": "xianyi-cutout", + "entry": "src/index.js", + "apiVersion": 1 + } } diff --git a/xianyi-cutout/src/index.js b/xianyi-cutout/src/index.js index d4b6baf..724cc8c 100644 --- a/xianyi-cutout/src/index.js +++ b/xianyi-cutout/src/index.js @@ -37,7 +37,7 @@ global.IWBPluginHost.register({ id: 'xianyi-cutout', name: '鲜艺抠图', - version: '1.0.2', + version: '1.0.3', apiVersion: 1, capabilities: ['commands', 'canvas', 'canvasWrite', 'nodeActions'], settings: { @@ -86,7 +86,7 @@ ctx.commands.register({ id: 'cutout-selected', title: '抠图:选中节点', - icon: 'ref', + icon: 'scissors', run: function () { const selected = ctx.canvas.getSelectedNode() if (!selected) return Promise.reject(new Error('请先选中一个带图的节点')) @@ -97,7 +97,7 @@ ctx.nodeActions.register({ id: 'cutout-node', title: '抠图', - icon: 'ref', + icon: 'scissors', appliesTo: function (node) { return Boolean(node) && node.type === 'ref' }, run: function (node) { return cutoutOne(node.id) }, })