SimpleDistanceMatrixProps
Defined in: packages/components/src/components/DistanceMatrix/types.ts:44
Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
labels |
string[] |
undefined |
Row/column ids, in matrix order. |
matrix |
readonly readonly number[][] |
undefined |
Symmetric labels.length × labels.length distances. |
labelNames? |
Record<string, string> |
undefined |
Display text for a label id, where it differs from the id (e.g. a renamed sequence). |
width? |
number |
650 |
Width in pixels. |
height? |
number |
500 |
Maximum height in pixels; a small matrix takes less. |
options? |
DistanceMatrixOptions |
undefined |
- |
viewport? |
Viewport |
the top-left corner at the default cell size |
The visible window, in cells (x: columns, y: rows). |
onViewportChange? |
(next) => void |
undefined |
Called with the next window on every pan/zoom. |
rowOrder? |
string[] |
labels order |
Display order of rows and columns, as label ids. Unknown ids are ignored and unlisted rows follow in labels order — the same shape as the MSA’s rowOrder, so one store can order both. |
onRowOrderChange? |
(next) => void |
undefined |
Called with the new order when a row name is dragged. |
panelSizes? |
DistanceMatrixPanelSizes |
a 160px label column |
Panel sizes. |
onPanelSizesChange? |
(next) => void |
undefined |
Called while a panel divider is dragged. |
onHoverChange? |
(hover) => void |
undefined |
Called as the pointer moves over the cells (null when it leaves). |