- combined のリスト実行ループ(ForEach / End ForEach)を追加 - ForEach 出力 * と End ForEach value は接続後も常に * - attachStabilizeHooks / pinWildcardSlot / scheduleStabilizeRetries で JS を整理 - Prettier(JS は trailing comma なし)、README 開発セクションを整理 Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
391 B
JavaScript
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;
|
|
}
|