diff --git a/src/stores/linkStore.ts b/src/stores/linkStore.ts index 1940e2fe1e7..06ddae6c701 100644 --- a/src/stores/linkStore.ts +++ b/src/stores/linkStore.ts @@ -175,8 +175,9 @@ export const useLinkStore = defineStore('link', () => { } /** - * @returns The registered topology, or `undefined` when its ID or - * non-floating target slot is occupied. + * @returns The registered topology. Re-registering the same raw topology + * under the same owner returns the incumbent; `undefined` means a distinct + * topology occupies its ID or non-floating target slot. */ function registerLink( scope: GraphScope, diff --git a/src/stores/nodeDataStore.ts b/src/stores/nodeDataStore.ts index 03c5b884a31..1b19a4ad9a7 100644 --- a/src/stores/nodeDataStore.ts +++ b/src/stores/nodeDataStore.ts @@ -43,7 +43,9 @@ export const useNodeDataStore = defineStore('nodeData', () => { } /** - * @returns The registered state, or `undefined` when the node ID is occupied. + * @returns The registered state. Re-registering the same raw state under the + * same owner returns the incumbent; `undefined` means a distinct state + * occupies the node ID. */ function registerNode( graphScope: GraphScope, diff --git a/src/stores/rerouteStore.ts b/src/stores/rerouteStore.ts index 82405c0e85c..9d50801f399 100644 --- a/src/stores/rerouteStore.ts +++ b/src/stores/rerouteStore.ts @@ -111,7 +111,9 @@ export const useRerouteStore = defineStore('reroute', () => { } /** - * @returns The registered chain, or `undefined` when its ID is occupied. + * @returns The registered chain. Re-registering the same raw chain under the + * same owner returns the incumbent; `undefined` means a distinct chain + * occupies its ID. */ function registerReroute( scope: GraphScope,