Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors on hovering over keys for feature ID values #178

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions erdblick_app/app/feature.panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,7 @@ export class FeaturePanelComponent implements OnInit, AfterViewInit, OnDestroy
}
}

onValueHover(event: any, rowData: any) {
event.stopPropagation();
private highlightHoveredEntry(rowData: any) {
if (rowData["type"] == this.InspectionValueType.FEATUREID.value) {
this.jumpService.highlightByJumpTargetFilter(
rowData["mapId"],
Expand All @@ -413,6 +412,11 @@ export class FeaturePanelComponent implements OnInit, AfterViewInit, OnDestroy
}
}

onValueHover(event: any, rowData: any) {
event.stopPropagation();
this.highlightHoveredEntry(rowData);
}

onValueHoverExit(event: any, rowData: any) {
event.stopPropagation();
if (rowData["type"] == this.InspectionValueType.FEATUREID.value) {
Expand All @@ -422,12 +426,7 @@ export class FeaturePanelComponent implements OnInit, AfterViewInit, OnDestroy

onKeyHover(event: any, rowData: any) {
event.stopPropagation();
if (rowData["hoverId"]) {
this.mapService.highlightFeatures([{
mapTileKey: this.inspectionService.selectedFeatures[rowData["featureIndex"]].featureTile.mapTileKey,
featureId: rowData["hoverId"]
}], false, coreLib.HighlightMode.HOVER_HIGHLIGHT).then();
}
this.highlightHoveredEntry(rowData);
}

onKeyHoverExit(event: any, rowData: any) {
Expand Down
Loading