@nodescript/core
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -17,2 +17,3 @@ import { GraphSpec } from '../types/model.js'; | ||
isSubgraph(): boolean; | ||
ancestors(): Iterable<GraphView>; | ||
isNodeExists(id: string): boolean; | ||
@@ -19,0 +20,0 @@ getNodeById(id: string): NodeView | null; |
@@ -32,2 +32,8 @@ import { clone } from '../util/clone.js'; | ||
} | ||
*ancestors() { | ||
if (this.parentNode) { | ||
yield* this.parentNode.graph.ancestors(); | ||
} | ||
yield this; | ||
} | ||
isNodeExists(id) { | ||
@@ -34,0 +40,0 @@ return this.graphSpec.nodes[id] != null; |
{ | ||
"name": "@nodescript/core", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Visual programming language for Browser and Node", |
Sorry, the diff of this file is not supported yet
192979
3361