d3_gram_renderer
gram.js API / Exports / d3-gram-renderer
Module: d3-gram-renderer
Table of contents
Functions
Functions
draw
▸ Const
draw(graph
: GramGraphData, selector
: any, configuration?
: Partial<D3GramDrawConfiguration>): object
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
graph |
GramGraphData | - | gram source text |
selector |
any | - | dom selector for an svg element |
configuration |
Partial<D3GramDrawConfiguration> | … | - |
Returns: object
Name | Type |
---|---|
linkSelection |
Selection<any, GramLinkDatum, any, unknown> |
nodeSelection |
Selection<any, GramNodeDatum, any, unknown> |
Defined in: src/d3-gram-renderer.ts:150
updateLinks
▸ Const
updateLinks(links
: any): void
Parameters:
Name | Type |
---|---|
links |
any |
Returns: void
Defined in: src/d3-gram-renderer.ts:114
updateNodes
▸ Const
updateNodes(nodes
: any): void
Parameters:
Name | Type |
---|---|
nodes |
any |
Returns: void
Defined in: src/d3-gram-renderer.ts:130