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) }, })