Skip to content

Commit

Permalink
Make d3Click accept svg (#84)
Browse files Browse the repository at this point in the history
* Make d3Click accept svg

* Update package version

* Compile with node 12
  • Loading branch information
natalya-smirnova authored Dec 21, 2021
1 parent 94a2f33 commit 860ad56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-utils-testutils",
"version": "2.4.1",
"version": "2.4.2",
"description": "powerbi-visuals-utils-testutils",
"main": "lib/index.js",
"module": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export enum MouseEventType {
mouseout,
}

export function d3Click(element: JQuery | HTMLElement, x: number, y: number, eventType?: ClickEventType, button?: number): void {
export function d3Click(element: JQuery | HTMLElement | SVGElement, x: number, y: number, eventType?: ClickEventType, button?: number): void {
mouseEvent.call(element, MouseEventType.click, x, y, eventType, button);
}

Expand Down

0 comments on commit 860ad56

Please sign in to comment.