diff --git a/plugins/index.json b/plugins/index.json index 893a63f..73bc951 100644 --- a/plugins/index.json +++ b/plugins/index.json @@ -44,9 +44,9 @@ "dir": "promptlib", "main": "main.js", "style": "styles.css", - "version": "1.6.18", + "version": "1.6.19", "files": { - "main.js": "0efdfbbfe7e9318610bb94330c0a3c361a0aa38f2b3a44c243c872f0e02a09e8", + "main.js": "541fd18a8f34a8d3720b96f27e2e0ce278a6361f650f4f52a68664e560fc7139", "styles.css": "1fdad04e2ffe1c8ba2a991a88072f780b65238096f9ccd1b5adba671ff2c9cb3" } }, diff --git a/plugins/promptlib/main.js b/plugins/promptlib/main.js index 9ca33d5..dfc4153 100644 --- a/plugins/promptlib/main.js +++ b/plugins/promptlib/main.js @@ -771,10 +771,10 @@ if (!w) return var vd = varsOf(st.p) if (vd.length) { - api2.createNode('ptpl', w.x - 210, w.y - 20, { promptId: '', name: st.p.name || '提示词模板', tpl: st.p.text || '', vdefs: vd, vars: {}, cover: st.p.cover || '', refOn: false, text: st.p.text || '', outKind: 'prompt' }) + api2.createNode('ptpl', w.x, w.y, { promptId: '', name: st.p.name || '提示词模板', tpl: st.p.text || '', vdefs: vd, vars: {}, cover: st.p.cover || '', refOn: false, text: st.p.text || '', outKind: 'prompt' }) notify('已插入模板节点:' + (st.p.name || '')) } else { - api2.createNode('prompt', w.x - 132, w.y - 20, { text: st.p.text || '', title: st.p.name || '' }) + api2.createNode('prompt', w.x, w.y, { text: st.p.text || '', title: st.p.name || '' }) notify('已插入提示词:' + (st.p.name || '')) } } catch (err) { notify('拖拽插入失败:' + ((err && err.message) || err), 'err') } @@ -1594,7 +1594,7 @@ global.IWBPluginHost.register({ id: 'promptlib', name: '提示词库', - version: '1.6.18', + version: '1.6.19', apiVersion: 1, capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'], data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 }, diff --git a/plugins/promptlib/manifest.json b/plugins/promptlib/manifest.json index b3a908b..9757210 100644 --- a/plugins/promptlib/manifest.json +++ b/plugins/promptlib/manifest.json @@ -1,7 +1,7 @@ { "id": "promptlib", "name": "提示词库", - "version": "1.6.18", + "version": "1.6.19", "apiVersion": 1, "main": "main.js", "style": "styles.css", @@ -13,7 +13,7 @@ "提示词" ], "files": { - "main.js": "0efdfbbfe7e9318610bb94330c0a3c361a0aa38f2b3a44c243c872f0e02a09e8", + "main.js": "541fd18a8f34a8d3720b96f27e2e0ce278a6361f650f4f52a68664e560fc7139", "styles.css": "1fdad04e2ffe1c8ba2a991a88072f780b65238096f9ccd1b5adba671ff2c9cb3" } }