| context.js | |
| bbop. | This package contains an often used set of tools to tease apart a specially structured hash to get things like readable names and colors. |
| Functions | |
| context | Initial take from go-mme/js/bbop-mme-context.js |
| readable | Returns a human readable form of the inputted string. |
| color | Return the string of a color of a rel. |
| relation_glyph | Return the string indicating the glyph to use for the edge marking. |
| priority | Return a number representing the relative priority of the entity under consideration. |
| all_entities | Return a list of the currently known entities. |
| all_known | Return a list of the currently known entities and their aliases. |
This package contains an often used set of tools to tease apart a specially structured hash to get things like readable names and colors.
| Functions | |
| context | Initial take from go-mme/js/bbop-mme-context.js |
| readable | Returns a human readable form of the inputted string. |
| color | Return the string of a color of a rel. |
| relation_glyph | Return the string indicating the glyph to use for the edge marking. |
| priority | Return a number representing the relative priority of the entity under consideration. |
| all_entities | Return a list of the currently known entities. |
| all_known | Return a list of the currently known entities and their aliases. |
Initial take from go-mme/js/bbop-mme-context.js
bbop.context = function( entities, default_color )
Returns a human readable form of the inputted string.
this.readable = function( ind )
Return the string of a color of a rel.
this.color = function( ind )
Return a number representing the relative priority of the entity under consideration.
this.priority = function( ind )
Return a list of the currently known entities.
this.all_entities = function()
Return a list of the currently known entities and their aliases.
this.all_known = function()