Files
wraith-executioner-year-2-c…/js/utils/graph-context.js
T
wraith_executioner_year_2andCursor eb7bcaa385 ✨ ForEach / End ForEach と stabilize 共通化・Prettier 導入
- combined のリスト実行ループ(ForEach / End ForEach)を追加
- ForEach 出力 * と End ForEach value は接続後も常に *
- attachStabilizeHooks / pinWildcardSlot / scheduleStabilizeRetries で JS を整理
- Prettier(JS は trailing comma なし)、README 開発セクションを整理

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 03:11:45 +09:00

15 lines
391 B
JavaScript

import { app } from "../../../scripts/app.js";
/**
* ノードが属する LGraph(メイングラフ / ExportWorkflowImage 等のオフスクリーン複製)。
*
* @param {object|null|undefined} node
* @returns {object|null}
*/
export function getNodeGraph(node) {
if (node?.graph) {
return node.graph;
}
return app?.canvas?.getCurrentGraph?.() ?? app?.graph ?? null;
}