{"action":"opened","issue":{"url":"https://api.github.com/repos/msalsbery/OpenSeadragonImagingHelper/issues/7","labels_url":"https://api.github.com/repos/msalsbery/OpenSeadragonImagingHelper/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/msalsbery/OpenSeadragonImagingHelper/issues/7/comments","events_url":"https://api.github.com/repos/msalsbery/OpenSeadragonImagingHelper/issues/7/events","html_url":"https://github.com/msalsbery/OpenSeadragonImagingHelper/issues/7","id":89524568,"number":7,"title":"Trouble with physicalToLogical Y-coord","user":{"login":"MaxDotSouth","id":12965036,"avatar_url":"https://avatars.githubusercontent.com/u/12965036?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxDotSouth","html_url":"https://github.com/MaxDotSouth","followers_url":"https://api.github.com/users/MaxDotSouth/followers","following_url":"https://api.github.com/users/MaxDotSouth/following{/other_user}","gists_url":"https://api.github.com/users/MaxDotSouth/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxDotSouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxDotSouth/subscriptions","organizations_url":"https://api.github.com/users/MaxDotSouth/orgs","repos_url":"https://api.github.com/users/MaxDotSouth/repos","events_url":"https://api.github.com/users/MaxDotSouth/events{/privacy}","received_events_url":"https://api.github.com/users/MaxDotSouth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T10:06:24Z","updated_at":"2015-06-19T10:06:24Z","closed_at":null,"body":"Hi,\r\nmy aim is to draw a circle at the very position I do a mouseclick.\r\n\r\nUsing the code below I get the circle at the correct Xposition but theYposition is only correct when clicking at the top of the image (Y=0). Clicking lower than the top, the circle is above - clicking above the image, the circle is below the click position.\r\n\r\n<pre>\r\n            var logPoint = imagingHelper.physicalToLogicalPoint(event.position);\r\n            var d3Circle = d3.select(overlay.node())\r\n                .append(\"circle\")\r\n                .attr(\"id\", 'circle' + counter++)\r\n                .attr(\"cx\", logPoint.x)\r\n                .attr(\"cy\", logPoint.y)\r\n                .attr(\"r\", 0.04);\r\n</pre>\r\n\r\nWhat did I miss?\r\nKind Regards, Max"}}