d3_gram_types
gram.js API / Exports / d3-gram-types
Module: d3-gram-types
Table of contents
Interfaces
Type aliases
Variables
Functions
Type aliases
PathDatumRecord
Ƭ PathDatumRecord: { [key: string]: any; }
Defined in: src/d3-gram-types.ts:5
Variables
MISSING_ID
• Const
MISSING_ID: missing_id= ‘__missing_id__’
Defined in: src/d3-gram-types.ts:3
Functions
isGramNodeDatum
▸ Const
isGramNodeDatum(o
: any): o is GramNodeDatum
Parameters:
Name | Type |
---|---|
o |
any |
Returns: o is GramNodeDatum
Defined in: src/d3-gram-types.ts:25
makeGramLinkDatum
▸ Const
makeGramLinkDatum(source
: string, target
: string, id?
: string, labels?
: string[], record?
: PathDatumRecord): object
Parameters:
Name | Type |
---|---|
source |
string |
target |
string |
id? |
string |
labels? |
string[] |
record? |
PathDatumRecord |
Returns: object
Name | Type |
---|---|
id |
string |
labels |
string[] |
record |
PathDatumRecord |
source |
string |
target |
string |
Defined in: src/d3-gram-types.ts:35
makeGramNodeDatum
▸ Const
makeGramNodeDatum(id?
: string, labels?
: string[], record?
: PathDatumRecord): object
Parameters:
Name | Type |
---|---|
id? |
string |
labels? |
string[] |
record? |
PathDatumRecord |
Returns: object
Name | Type |
---|---|
id |
string |
labels |
string[] |
record |
PathDatumRecord |
Defined in: src/d3-gram-types.ts:13