chore: rename LabelConfig -> AriaLabelConfig, update dict names

This commit is contained in:
Abbey Yacoe
2025-06-03 15:42:57 +02:00
parent 65e912a755
commit 13b64afbaf
24 changed files with 94 additions and 92 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ import type {
import { type Viewport } from '../types';
import { getNodePositionWithOrigin, isInternalNodeBase } from './graph';
import { defaultLabelConfig, type LabelConfig } from '../constants';
import { defaultAriaLabelConfig, type AriaLabelConfig } from '../constants';
export const clamp = (val: number, min = 0, max = 1): number => Math.min(Math.max(val, min), max);
@@ -421,6 +421,6 @@ export function withResolvers<T>(): {
return { promise, resolve, reject };
}
export function mergeLabelConfig(partial?: Partial<LabelConfig>): LabelConfig {
return { ...defaultLabelConfig, ...(partial || {}) };
export function mergeAriaLabelConfig(partial?: Partial<AriaLabelConfig>): AriaLabelConfig {
return { ...defaultAriaLabelConfig, ...(partial || {}) };
}