mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 13:10:24 +00:00
Add Reroute SplineOffset setting (#3292)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -39,6 +39,10 @@ test.describe('Reroute Node', () => {
|
||||
})
|
||||
|
||||
test.describe('LiteGraph Native Reroute Node', () => {
|
||||
test.beforeEach(async ({ comfyPage }) => {
|
||||
await comfyPage.setSetting('LiteGraph.Reroute.SplineOffset', 80)
|
||||
})
|
||||
|
||||
test('loads from workflow', async ({ comfyPage }) => {
|
||||
await comfyPage.loadWorkflow('reroute/native_reroute')
|
||||
await expect(comfyPage.canvas).toHaveScreenshot('native_reroute.png')
|
||||
|
||||
@@ -116,4 +116,10 @@ export const useLitegraphSettings = () => {
|
||||
'LiteGraph.ContextMenu.Scaling'
|
||||
)
|
||||
})
|
||||
|
||||
watchEffect(() => {
|
||||
LiteGraph.Reroute.maxSplineOffset = settingStore.get(
|
||||
'LiteGraph.Reroute.SplineOffset'
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -752,5 +752,17 @@ export const CORE_SETTINGS: SettingParams[] = [
|
||||
type: 'boolean',
|
||||
defaultValue: true,
|
||||
versionAdded: '1.10.5'
|
||||
},
|
||||
{
|
||||
id: 'LiteGraph.Reroute.SplineOffset',
|
||||
name: 'Reroute spline offset',
|
||||
tooltip: 'The bezier control point offset from the reroute centre point',
|
||||
type: 'slider',
|
||||
defaultValue: 20,
|
||||
attrs: {
|
||||
min: 0,
|
||||
max: 400
|
||||
},
|
||||
versionAdded: '1.15.7'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -713,7 +713,8 @@
|
||||
"EditTokenWeight": "Edit Token Weight",
|
||||
"CustomColorPalettes": "Custom Color Palettes",
|
||||
"UV": "UV",
|
||||
"ContextMenu": "Context Menu"
|
||||
"ContextMenu": "Context Menu",
|
||||
"Reroute": "Reroute"
|
||||
},
|
||||
"serverConfigItems": {
|
||||
"listen": {
|
||||
|
||||
@@ -333,6 +333,10 @@
|
||||
"LiteGraph_Node_TooltipDelay": {
|
||||
"name": "Tooltip Delay"
|
||||
},
|
||||
"LiteGraph_Reroute_SplineOffset": {
|
||||
"name": "Reroute spline offset",
|
||||
"tooltip": "The bezier control point offset from the reroute centre point"
|
||||
},
|
||||
"pysssss_SnapToGrid": {
|
||||
"name": "Always snap to grid"
|
||||
}
|
||||
|
||||
@@ -835,6 +835,7 @@
|
||||
"Pointer": "Puntero",
|
||||
"Queue": "Cola",
|
||||
"QueueButton": "Botón de Cola",
|
||||
"Reroute": "Reenrutar",
|
||||
"RerouteBeta": "Reroute Beta",
|
||||
"Server": "Servidor",
|
||||
"Server-Config": "Configuración del Servidor",
|
||||
|
||||
@@ -333,6 +333,10 @@
|
||||
"LiteGraph_Node_TooltipDelay": {
|
||||
"name": "Retraso de la información sobre herramientas"
|
||||
},
|
||||
"LiteGraph_Reroute_SplineOffset": {
|
||||
"name": "Desvío de la compensación de la spline",
|
||||
"tooltip": "El punto de control bezier desplazado desde el punto central de reenrutamiento"
|
||||
},
|
||||
"pysssss_SnapToGrid": {
|
||||
"name": "Siempre ajustar a la cuadrícula"
|
||||
}
|
||||
|
||||
@@ -835,6 +835,7 @@
|
||||
"Pointer": "Pointeur",
|
||||
"Queue": "File d'Attente",
|
||||
"QueueButton": "Bouton de File d'Attente",
|
||||
"Reroute": "Réacheminement",
|
||||
"RerouteBeta": "Reroute Beta",
|
||||
"Server": "Serveur",
|
||||
"Server-Config": "Config-Serveur",
|
||||
|
||||
@@ -333,6 +333,10 @@
|
||||
"LiteGraph_Node_TooltipDelay": {
|
||||
"name": "Délai d'infobulle"
|
||||
},
|
||||
"LiteGraph_Reroute_SplineOffset": {
|
||||
"name": "Réacheminement décalage de spline",
|
||||
"tooltip": "Le point de contrôle de Bézier est décalé par rapport au point central de réacheminement"
|
||||
},
|
||||
"pysssss_SnapToGrid": {
|
||||
"name": "Toujours aligner sur la grille"
|
||||
}
|
||||
|
||||
@@ -835,6 +835,7 @@
|
||||
"Pointer": "ポインタ",
|
||||
"Queue": "キュー",
|
||||
"QueueButton": "キューボタン",
|
||||
"Reroute": "リルート",
|
||||
"RerouteBeta": "ルート変更ベータ",
|
||||
"Server": "サーバー",
|
||||
"Server-Config": "サーバー設定",
|
||||
|
||||
@@ -333,6 +333,10 @@
|
||||
"LiteGraph_Node_TooltipDelay": {
|
||||
"name": "ツールチップ遅延"
|
||||
},
|
||||
"LiteGraph_Reroute_SplineOffset": {
|
||||
"name": "リルートスプラインオフセット",
|
||||
"tooltip": "リルート中心点からのベジエ制御点のオフセット"
|
||||
},
|
||||
"pysssss_SnapToGrid": {
|
||||
"name": "常にグリッドにスナップ"
|
||||
}
|
||||
|
||||
@@ -835,6 +835,7 @@
|
||||
"Pointer": "포인터",
|
||||
"Queue": "실행 큐",
|
||||
"QueueButton": "실행 큐 버튼",
|
||||
"Reroute": "재경로",
|
||||
"RerouteBeta": "경로재설정 베타",
|
||||
"Server": "서버",
|
||||
"Server-Config": "서버 구성",
|
||||
|
||||
@@ -333,6 +333,10 @@
|
||||
"LiteGraph_Node_TooltipDelay": {
|
||||
"name": "툴팁 지연"
|
||||
},
|
||||
"LiteGraph_Reroute_SplineOffset": {
|
||||
"name": "Reroute 스플라인 오프셋",
|
||||
"tooltip": "재경로 중심점에서 베지어 제어점까지의 오프셋"
|
||||
},
|
||||
"pysssss_SnapToGrid": {
|
||||
"name": "항상 그리드에 스냅"
|
||||
}
|
||||
|
||||
@@ -835,6 +835,7 @@
|
||||
"Pointer": "Указатель",
|
||||
"Queue": "Очередь",
|
||||
"QueueButton": "Кнопка очереди",
|
||||
"Reroute": "Перенаправление",
|
||||
"RerouteBeta": "Бета-версия перенаправления",
|
||||
"Server": "Сервер",
|
||||
"Server-Config": "Настройки сервера",
|
||||
|
||||
@@ -333,6 +333,10 @@
|
||||
"LiteGraph_Node_TooltipDelay": {
|
||||
"name": "Задержка всплывающей подсказки"
|
||||
},
|
||||
"LiteGraph_Reroute_SplineOffset": {
|
||||
"name": "Перераспределение смещения сплайна",
|
||||
"tooltip": "Смещение контрольной точки Безье от центральной точки перераспределения"
|
||||
},
|
||||
"pysssss_SnapToGrid": {
|
||||
"name": "Всегда привязываться к сетке"
|
||||
}
|
||||
|
||||
@@ -835,6 +835,7 @@
|
||||
"Pointer": "指针",
|
||||
"Queue": "队列",
|
||||
"QueueButton": "执行按钮",
|
||||
"Reroute": "重新路由",
|
||||
"RerouteBeta": "转接点 Beta",
|
||||
"Server": "服务器",
|
||||
"Server-Config": "服务器配置",
|
||||
|
||||
@@ -333,6 +333,10 @@
|
||||
"LiteGraph_Node_TooltipDelay": {
|
||||
"name": "工具提示延迟"
|
||||
},
|
||||
"LiteGraph_Reroute_SplineOffset": {
|
||||
"name": "重新路由样条偏移",
|
||||
"tooltip": "贝塞尔控制点从重新路由中心点的偏移"
|
||||
},
|
||||
"pysssss_SnapToGrid": {
|
||||
"name": "始终吸附到网格"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user