fix(promptlib): 1.6.19 拖拽落点=鼠标位置(节点左上角,对齐风格库)
validate / validate (push) Canceled after 0s

This commit is contained in:
qiqi committed 2026-11-22 22:22:05 +08:00
1 parent 4539668c06
commit 5d4bdf5400
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@iwb-plugin/promptlib",
"private": true,
"version": "1.6.18",
"version": "1.6.19",
"description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供",
"ibwPlugin": {
"id": "promptlib",
+3 -3
View File
@@ -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 },