GeneModelProps
Defined in: packages/components/src/components/GeneModel/types.ts:29
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Default value | Description | Inherited from |
|---|---|---|---|---|
gene |
Annotation |
undefined |
The gene, with its transcripts and their exons/CDSs nested under children. |
SimpleGeneModelProps.gene |
width? |
number |
500 |
Width in pixels. | SimpleGeneModelProps.width |
colorSeed? |
string |
"42" |
Seeds the gene’s colours. | SimpleGeneModelProps.colorSeed |
showScale? |
boolean |
true |
Show a genomic-position ruler. | SimpleGeneModelProps.showScale |
exonPopoverFn? |
(interval) => ReactNode |
every GFF3 field |
Popover content for a clicked exon/CDS. | SimpleGeneModelProps.exonPopoverFn |
viewport? |
Viewport |
the gene plus 10% padding either side |
The visible genomic window. | SimpleGeneModelProps.viewport |
onViewportChange? |
(next) => void |
undefined |
Called with the next window on every pan/zoom. | SimpleGeneModelProps.onViewportChange |
defaultViewport? |
Viewport |
undefined |
Seeds the visible window when uncontrolled. | - |
viewportStore? |
StoreController<Viewport> |
undefined |
Keeps the visible window in an external store. | - |
panMin? |
number |
undefined |
:::caution[Deprecated] Use defaultViewport. Percentage (0–100) of the gene where the view starts; seeds the window when neither viewport nor defaultViewport is given. ::: |
- |
panMax? |
number |
undefined |
:::caution[Deprecated] Use defaultViewport. Percentage (0–100) of the gene where the view ends. ::: |
- |