mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
change(web): adjsut .edgeKey, .splitClusteringKey for insert-edge handling
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
This commit is contained in:
parent
5775854855
commit
9bd0afa5a0
1 changed files with 3 additions and 9 deletions
|
|
@ -530,9 +530,7 @@ export abstract class SearchQuotientSpur extends SearchQuotientNode {
|
|||
* ancestry properly handle quotient-path variance in unit tests.
|
||||
*/
|
||||
get edgeKey(): string {
|
||||
const inputSrc = this.inputSource;
|
||||
const segment = inputSrc.segment;
|
||||
return `E${inputSrc.subsetId}:${segment.start}${segment.end !== undefined ? `-${segment.end}` : ''}`;
|
||||
return `E${this.inputSource?.subsetId ?? ''}:${this.splitClusteringKey}`;
|
||||
}
|
||||
|
||||
isSameNode(space: SearchQuotientNode): boolean {
|
||||
|
|
@ -559,11 +557,7 @@ export abstract class SearchQuotientSpur extends SearchQuotientNode {
|
|||
|
||||
// Used to identify cluster-compatible components of SearchPaths during SearchCluster split operations.
|
||||
get splitClusteringKey(): string {
|
||||
const pathSrc = this.inputSource;
|
||||
if(!pathSrc) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return `${pathSrc.segment.start}${pathSrc.segment.end == undefined ? '' : `-${pathSrc.segment.end}`}`;
|
||||
const spurSeg = this.inputSource?.segment;
|
||||
return `${spurSeg?.start ?? 0}${spurSeg?.end == undefined ? '' : `-${spurSeg.end}`}`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue