Skip to content

GenomeSpy Core API / EmbedFunction

Type Alias: EmbedFunction

EmbedFunction = (el, spec, options?) => Promise<EmbedResult>

Embeds GenomeSpy into the DOM

Parameters

Parameter Type Description
el HTMLElement | string HTMLElement or a query selector
spec RootSpec | string A spec object or an URL to a JSON spec
options? EmbedOptions Options

Returns

Promise<EmbedResult>