style(icons): 三个插件改用指定 lucide 图标(标注 pencil-ruler / 抠图 scissors / 白底图 vector-square)
- 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 后刷新即生效。
This commit is contained in:
1 parent
68af559a57
commit
c31c92d07a
7 files changed
+24
-16
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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('请先选中一个带图的节点'))
|
||||
|
||||
@@ -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("请先选中一个带图的节点"));
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{
|
||||
"name": "@iwb-plugin/white-bg-800",
|
||||
"private": true,
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "白底图:把节点图等比缩放居中合成到正方形画布,按格式/质量/体积上限编码,输出 <name>_<size>x<size>.<ext>;可开双版本出透明 PNG + 白底 JPG",
|
||||
"ibwPlugin": { "id": "white-bg-800", "entry": "src/index.js", "apiVersion": 1 }
|
||||
"ibwPlugin": {
|
||||
"id": "white-bg-800",
|
||||
"entry": "src/index.js",
|
||||
"apiVersion": 1
|
||||
}
|
||||
}
|
||||
@@ -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('请先选中一个带图的节点'))
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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) },
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user