@elicdavis/node-flow 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -359,6 +359,7 @@ declare class Publisher {
359
359
  constructor(config?: PublisherConfig);
360
360
  nodes(): Map<string, FlowNodeConfig>;
361
361
  register(nodeType: string, config: FlowNodeConfig): void;
362
+ unregister(nodeType: string): boolean;
362
363
  contextMenu(graph: NodeSubsystem, position: Vector2): ContextMenuConfig;
363
364
  create(nodeType: string): FlowNode;
364
365
  }
package/dist/index.d.ts CHANGED
@@ -359,6 +359,7 @@ declare class Publisher {
359
359
  constructor(config?: PublisherConfig);
360
360
  nodes(): Map<string, FlowNodeConfig>;
361
361
  register(nodeType: string, config: FlowNodeConfig): void;
362
+ unregister(nodeType: string): boolean;
362
363
  contextMenu(graph: NodeSubsystem, position: Vector2): ContextMenuConfig;
363
364
  create(nodeType: string): FlowNode;
364
365
  }
package/dist/index.js CHANGED
@@ -3109,6 +3109,9 @@ var Publisher = class {
3109
3109
  register(nodeType, config) {
3110
3110
  __privateGet(this, _registeredNodes).set(nodeType, config);
3111
3111
  }
3112
+ unregister(nodeType) {
3113
+ return __privateGet(this, _registeredNodes).delete(nodeType);
3114
+ }
3112
3115
  contextMenu(graph, position) {
3113
3116
  return __privateMethod(this, _Publisher_instances, recurseBuildMenu_fn).call(this, graph, __privateGet(this, _name3), __privateGet(this, _registeredNodes), position);
3114
3117
  }