feat(canvas-v3): P2 第三批 gen Canvas 化

This commit is contained in:
qiqi committed 2026-12-01 00:28:02 +08:00
1 parent 6a79eb432f
commit db50733876
3 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@
// 标题
ctx.fillStyle = text
ctx.font = '600 ' + Math.max(10, 12 / scale * 0.9) + 'px -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif'
const title = String((n.data && (n.data.title || n.data.name)) || ({ ref: '参考图', prompt: '提示词', textout: '文本', combine: '组合', batch: '连接', relay: '中继' }[n.type] || '节点'))
const title = String((n.data && (n.data.title || n.data.name)) || ({ ref: '参考图', prompt: '提示词', textout: '文本', combine: '组合', batch: '连接', relay: '中继', gen: '生成配置' }[n.type] || '节点'))
ctx.save()
ctx.beginPath(); ctx.rect(x + 10, y, Math.max(0, nw - 20), headH); ctx.clip()
ctx.fillText(title, x + 12, y + 21)