@baklavajs/core
Advanced tools
Comparing version 2.0.2-alpha.1 to 2.0.2-alpha.3
@@ -35,3 +35,3 @@ "use strict"; | ||
this.connectionEvents = (0, events_1.createProxy)(); | ||
this.graphs = new Set(); | ||
this._graphs = new Set(); | ||
this._nodeTypes = new Map(); | ||
@@ -53,2 +53,6 @@ this._graph = new graph_1.Graph(this); | ||
} | ||
/** Set of all graphs in the editor, including subgraphs */ | ||
get graphs() { | ||
return this._graphs; | ||
} | ||
/** | ||
@@ -123,3 +127,3 @@ * Register a new node type | ||
this.events.registerGraph.emit(graph); | ||
this.graphs.add(graph); | ||
this._graphs.add(graph); | ||
} | ||
@@ -133,3 +137,3 @@ unregisterGraph(graph) { | ||
this.events.unregisterGraph.emit(graph); | ||
this.graphs.delete(graph); | ||
this._graphs.delete(graph); | ||
} | ||
@@ -136,0 +140,0 @@ /** |
@@ -110,3 +110,3 @@ import { PreventableBaklavaEvent, BaklavaEvent, SequentialHook, IBaklavaEventEmitter, IBaklavaTapable } from "@baklavajs/events"; | ||
}>; | ||
private graphs; | ||
private _graphs; | ||
private _nodeTypes; | ||
@@ -121,2 +121,4 @@ private _graph; | ||
get graphTemplates(): ReadonlyArray<GraphTemplate>; | ||
/** Set of all graphs in the editor, including subgraphs */ | ||
get graphs(): ReadonlySet<Graph>; | ||
/** | ||
@@ -123,0 +125,0 @@ * Register a new node type |
@@ -32,3 +32,3 @@ import { PreventableBaklavaEvent, BaklavaEvent, SequentialHook, createProxy, } from "@baklavajs/events"; | ||
this.connectionEvents = createProxy(); | ||
this.graphs = new Set(); | ||
this._graphs = new Set(); | ||
this._nodeTypes = new Map(); | ||
@@ -50,2 +50,6 @@ this._graph = new Graph(this); | ||
} | ||
/** Set of all graphs in the editor, including subgraphs */ | ||
get graphs() { | ||
return this._graphs; | ||
} | ||
/** | ||
@@ -120,3 +124,3 @@ * Register a new node type | ||
this.events.registerGraph.emit(graph); | ||
this.graphs.add(graph); | ||
this._graphs.add(graph); | ||
} | ||
@@ -130,3 +134,3 @@ unregisterGraph(graph) { | ||
this.events.unregisterGraph.emit(graph); | ||
this.graphs.delete(graph); | ||
this._graphs.delete(graph); | ||
} | ||
@@ -133,0 +137,0 @@ /** |
{ | ||
"name": "@baklavajs/core", | ||
"version": "2.0.2-alpha.1", | ||
"version": "2.0.2-alpha.3", | ||
"description": "Core logic of BaklavaJS, a graph editor / node editor for the web", | ||
@@ -49,3 +49,3 @@ "author": "newcat <freddy.wagner@web.de>", | ||
}, | ||
"gitHead": "c57a6bc697510860941044433acdbe28007cef88" | ||
"gitHead": "f41b8b24d2a0123b99fc799831a6588a9b4bc55d" | ||
} |
99803
2540