문제

I am using Parallel Coordinates in D3 in my application. I want to add a zoom function programmatically.

Zoom function working well now but I am still have a little problem which is: I want to zoom to the mouse position.

I have the X and Y of the mouse in an array but i do not know how to use them later to zoom in this position.

What I get till now is SVG zoomed but the screen is always in the left and top of the page.

How can I use the mouse position coordinates in zooming to get the area around the mouse cursor on the screen?

도움이 되었습니까?

해결책

i could do what i want by using window.scrollTo(x,y), so that i can zoom and place the screen to mouse position. maybe i was not clear in my question but that what i want. Thanks,

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top