Skip to content

bio-tooltips


Interfaces ​

ChemicalIdentity ​

Defined in: providers/mychem/formatters.ts:15

Properties ​

badges ​

badges: string[]

Defined in: providers/mychem/formatters.ts:19

matchLabel? ​

optional matchLabel?: string

Defined in: providers/mychem/formatters.ts:20

preferredName ​

preferredName: string

Defined in: providers/mychem/formatters.ts:16

secondaryName? ​

optional secondaryName?: string

Defined in: providers/mychem/formatters.ts:17

synonyms ​

synonyms: string[]

Defined in: providers/mychem/formatters.ts:18


FieldCandidate ​

Defined in: providers/mychem/formatters.ts:9

Properties ​

path ​

path: string

Defined in: providers/mychem/formatters.ts:11

source ​

source: string

Defined in: providers/mychem/formatters.ts:10

url? ​

optional url?: string

Defined in: providers/mychem/formatters.ts:12

Functions ​

asArray() ​

asArray<T>(value): T[]

Defined in: providers/mychem/formatters.ts:55

Type Parameters ​

T ​

T

Parameters ​

value ​

T | T[] | null | undefined

Returns ​

T[]


buildChemicalIdentity() ​

buildChemicalIdentity(data, query?): ChemicalIdentity

Defined in: providers/mychem/formatters.ts:178

Parameters ​

data ​

MyChemInfoResult

query? ​

string

Returns ​

ChemicalIdentity


collectSourceValues() ​

collectSourceValues(data, candidates): SourceValue<string>[]

Defined in: providers/mychem/formatters.ts:106

Parameters ​

data ​

MyChemInfoResult

candidates ​

FieldCandidate[]

Returns ​

SourceValue<string>[]


collectStrings() ​

collectStrings(record, paths): string[]

Defined in: providers/mychem/formatters.ts:102

Parameters ​

record ​

unknown

paths ​

string[]

Returns ​

string[]


escapeAttr() ​

escapeAttr(value): string

Defined in: providers/mychem/formatters.ts:34

Parameters ​

value ​

unknown

Returns ​

string


escapeHTML() ​

escapeHTML(value): string

Defined in: providers/mychem/formatters.ts:25

Parameters ​

value ​

unknown

Returns ​

string


getBestStructureInput() ​

getBestStructureInput(data): { kind: "inchi" | "cid" | "smiles"; value: string; } | undefined

Defined in: providers/mychem/formatters.ts:221

Parameters ​

data ​

MyChemInfoResult

Returns ​

{ kind: "inchi" | "cid" | "smiles"; value: string; } | undefined


getExternalUrl() ​

getExternalUrl(kind, value): string | undefined

Defined in: providers/mychem/formatters.ts:245

Parameters ​

kind ​

string

value ​

string

Returns ​

string | undefined


getFirstString() ​

getFirstString(record, paths): string | undefined

Defined in: providers/mychem/formatters.ts:93

Parameters ​

record ​

unknown

paths ​

string[]

Returns ​

string | undefined


getPathValues() ​

getPathValues(record, path): unknown[]

Defined in: providers/mychem/formatters.ts:76

Parameters ​

record ​

unknown

path ​

string

Returns ​

unknown[]


getPropertyValue() ​

getPropertyValue(data, names): SourceValue<string>[]

Defined in: providers/mychem/formatters.ts:171

Parameters ​

data ​

MyChemInfoResult

names ​

string[]

Returns ​

SourceValue<string>[]


getPubChemCid() ​

getPubChemCid(data): string | undefined

Defined in: providers/mychem/formatters.ts:217

Parameters ​

data ​

MyChemInfoResult

Returns ​

string | undefined


resolveField() ​

resolveField(label, values, options?): ResolvedField<string> | undefined

Defined in: providers/mychem/formatters.ts:126

Parameters ​

label ​

string

values ​

SourceValue<string>[]

options? ​
numeric? ​

boolean

precision? ​

number

Returns ​

ResolvedField<string> | undefined


sanitizeInlineHTML() ​

sanitizeInlineHTML(value): string

Defined in: providers/mychem/formatters.ts:38

Parameters ​

value ​

unknown

Returns ​

string


uniqueStrings() ​

uniqueStrings(values): string[]

Defined in: providers/mychem/formatters.ts:60

Parameters ​

values ​

unknown[]

Returns ​

string[]