Skip to content

gene-tooltips


Interfaces

GeneInfo

Defined in: parser.ts:6

Defines the structure for gene information extracted from an element.

Properties

symbol

symbol: string

Defined in: parser.ts:7

taxid

taxid: number

Defined in: parser.ts:8

Functions

findGeneElements()

findGeneElements(selector): HTMLElement[]

Defined in: parser.ts:16

Finds all elements matching the selector and expands gene lists.

Parameters

selector

string

The CSS selector for gene elements.

Returns

HTMLElement[]

An array of elements to attach tooltips to.


getGeneInfoFromElement()

getGeneInfoFromElement(el): GeneInfo | null

Defined in: parser.ts:63

Extracts gene information from a DOM element.

Parameters

el

HTMLElement

The DOM element.

Returns

GeneInfo | null

An object with symbol and taxid, or null.