You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
519 B
25 lines
519 B
import { app } from "../../scripts/app.js"; |
|
|
|
const id = "Comfy.LinkRenderMode"; |
|
const ext = { |
|
name: id, |
|
async setup(app) { |
|
app.ui.settings.addSetting({ |
|
id, |
|
name: "Link Render Mode", |
|
defaultValue: 2, |
|
type: "combo", |
|
options: LiteGraph.LINK_RENDER_MODES.map((m, i) => ({ |
|
value: i, |
|
text: m, |
|
selected: i == app.canvas.links_render_mode, |
|
})), |
|
onChange(value) { |
|
app.canvas.links_render_mode = +value; |
|
app.graph.setDirtyCanvas(true); |
|
}, |
|
}); |
|
}, |
|
}; |
|
|
|
app.registerExtension(ext);
|
|
|