bkestelman / graph-theory

Draw graphs n stuff
1 stars 0 forks source link

Redesign towards plugins #20

Open bkestelman opened 5 years ago

bkestelman commented 5 years ago

Redesign to make Graph, Vertex, and Edge extensible such that functionality and attributes can be added externally without worrying about the socket connection, event handling, etc. i.e. should be able to add color property to Vertex (see #8) without having to change any code in socket.js

bkestelman commented 5 years ago

Done: Created ColorPlugin which uses hooks exposed by CanvasGraph Todo: Set up way for plugins to add hooks, instead of exposing a single hook to overwrite

bkestelman commented 5 years ago

Create a generic Plugin class to clarify how plugins can hook in