d3_gram_renderer


gram.js API / Exports / d3-gram-renderer

Module: d3-gram-renderer

Table of contents

Functions

Functions

draw

Constdraw(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


ConstupdateLinks(links: any): void

Parameters:

Name Type
links any

Returns: void

Defined in: src/d3-gram-renderer.ts:114


updateNodes

ConstupdateNodes(nodes: any): void

Parameters:

Name Type
nodes any

Returns: void

Defined in: src/d3-gram-renderer.ts:130