fix: update the `labelPosition` property to restore "no align" (#203)

Allow a special value to be passed to avoid calculating the alignment.
development
Thomas Bouffard 2023-06-08 16:56:03 +02:00 committed by GitHub
parent 900593572b
commit 1ec9b723c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -411,12 +411,13 @@ export type CellStateStyle = {
* - `left` means that the entire label bounds is placed completely just to the left of the vertex.
* - `right` means that the label bounds are adjusted to the right.
* - `center` means that the label bounds are vertically aligned with the bounds of the vertex.
* - `ignore` means that there is no alignment
*
* Note that this value does not affect the positioning of label within the label bounds.
* To move the label bounds horizontally within the label bounds, use {@link align}
* @default 'center'
*/
labelPosition?: AlignValue;
labelPosition?: AlignValue | 'ignore';
/**
* The width of the label if the label position is not `center`.
*/