Skip to content

Commit

Permalink
Update mouse-interactive-area.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KleinMichalGit committed Aug 16, 2023
1 parent 433a3b0 commit ae1c923
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/charts/src/core/common/mouse-interactive-area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import { event, mouse } from "d3-selection";
import { BehaviorSubject } from "rxjs";

import { IGNORE_INTERACTION_CLASS } from "../../constants";
import { IAllAround } from "../grid/types";
import { D3Selection, IInteractionEvent, InteractionType } from "./types";
Expand Down Expand Up @@ -51,7 +52,7 @@ export class MouseInteractiveArea<
.classed(MouseInteractiveArea.CONTAINER_CLASS, true);
this.target
.on("mouseover", this.onMouseOver)
.on("mouseout", this.onMouseOut )
.on("mouseout", this.onMouseOut)
.on(InteractionType.MouseDown, () =>
this.onMouseInteraction(InteractionType.MouseDown)
)
Expand Down Expand Up @@ -164,12 +165,12 @@ export class MouseInteractiveArea<
// Remove in v12 - NUI-5827
/** @deprecated - Please use 'onMouseOver' instead */
public onMouseEnter = (): void => {
console.log("to be removed");
this.onMouseOver();
};

// Remove in v12 - NUI-5827
/** @deprecated - Please use 'onMouseOut' instead */
public onMouseLeave = (): void => {
console.log("to be removed");
this.onMouseOut();
};
}

0 comments on commit ae1c923

Please sign in to comment.