Add LiteGraph.Canvas.LowQualityRenderingZoomThreshold setting (#2412)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-02-03 17:28:07 -08:00
committed by GitHub
parent 90914a40ba
commit 98c197e8b1
9 changed files with 50 additions and 1 deletions

View File

@@ -142,6 +142,17 @@ watchEffect(() => {
}
})
watchEffect(() => {
const lowQualityRenderingZoomThreshold = settingStore.get(
'LiteGraph.Canvas.LowQualityRenderingZoomThreshold'
)
if (canvasStore.canvas) {
canvasStore.canvas.low_quality_zoom_threshold =
lowQualityRenderingZoomThreshold
canvasStore.canvas.setDirty(/* fg */ true, /* bg */ true)
}
})
watchEffect(() => {
const linkMarkerShape = settingStore.get('Comfy.Graph.LinkMarkers')
const { canvas } = canvasStore