evented-graph:具有变异事件的图结构

时间:2021-05-01 06:14:12
【文件属性】:
文件名称:evented-graph:具有变异事件的图结构
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-01 06:14:12
JavaScript Evented-graph是从EventEmitter继承的 ,与纯图形相比,它在某些实际情况下更有用。 事件图发出mutator事件: add , delete , clear , connect , disconnect 。 对于每个实际的突变,它也会发出change 。 用法 var Graph = require ( 'evented-graph' ) ; var graph = new Graph ( ) ; graph . on ( 'add' , function ( node ) { console . log ( 'Add a new node ' , node ) ; } ) ; graph . add ( 1 ) ; 有关的 -具有禁欲API的通用图结构。 —具有以流表示的节点和与管道的连接的图。 —连接的pcm流的图。 —数组,从EventEmitter继承
【文件预览】:
evented-graph-master
----index.js(2KB)
----test.js(1KB)
----package.json(750B)
----readme.md(1KB)
----.gitignore(1KB)

网友评论