Skip to content

Commit

Permalink
Refactor methods to reduce the amount of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
adiletelf committed Dec 9, 2024
1 parent 2efb2e3 commit 9a08e5d
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 116 deletions.
2 changes: 1 addition & 1 deletion src/behavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Behavior {
this.options.legendSelection.on("contextmenu", (event: MouseEvent, dataPoint: LegendDataPoint) => {
event.preventDefault();
event.stopPropagation();
this.selectionManager.showContextMenu(dataPoint? dataPoint.identity: {}, {
this.selectionManager.showContextMenu(dataPoint ? dataPoint.identity: {}, {
x: event.clientX,
y: event.clientY,
});
Expand Down
Loading

0 comments on commit 9a08e5d

Please sign in to comment.