{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/3518","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/3518/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/3518/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/3518/events","html_url":"https://github.com/kangax/fabric.js/issues/3518","id":194740761,"number":3518,"title":"Is there any way to have a clickable object on canvas and link it to external files / urls","user":{"login":"AbhijitParate","id":10205652,"avatar_url":"https://avatars.githubusercontent.com/u/10205652?v=3","gravatar_id":"","url":"https://api.github.com/users/AbhijitParate","html_url":"https://github.com/AbhijitParate","followers_url":"https://api.github.com/users/AbhijitParate/followers","following_url":"https://api.github.com/users/AbhijitParate/following{/other_user}","gists_url":"https://api.github.com/users/AbhijitParate/gists{/gist_id}","starred_url":"https://api.github.com/users/AbhijitParate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbhijitParate/subscriptions","organizations_url":"https://api.github.com/users/AbhijitParate/orgs","repos_url":"https://api.github.com/users/AbhijitParate/repos","events_url":"https://api.github.com/users/AbhijitParate/events{/privacy}","received_events_url":"https://api.github.com/users/AbhijitParate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-10T03:07:48Z","updated_at":"2016-12-11T10:40:42Z","closed_at":"2016-12-11T10:40:42Z","body":"Hi,\r\n\r\nI would like to create a link or object on canvas onclick of which should open a file or url.\r\nFor example, if I'm annotating an image and I want to put some context info at a particular point in the image which can be a file or an url (ex. Wiki links). Is there any way I can do it? May be by creating a custom object? Can you please provide some guidance?"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/266274813","html_url":"https://github.com/kangax/fabric.js/issues/3518#issuecomment-266274813","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/3518","id":266274813,"user":{"login":"asturur","id":1194048,"avatar_url":"https://avatars.githubusercontent.com/u/1194048?v=3","gravatar_id":"","url":"https://api.github.com/users/asturur","html_url":"https://github.com/asturur","followers_url":"https://api.github.com/users/asturur/followers","following_url":"https://api.github.com/users/asturur/following{/other_user}","gists_url":"https://api.github.com/users/asturur/gists{/gist_id}","starred_url":"https://api.github.com/users/asturur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asturur/subscriptions","organizations_url":"https://api.github.com/users/asturur/orgs","repos_url":"https://api.github.com/users/asturur/repos","events_url":"https://api.github.com/users/asturur/events{/privacy}","received_events_url":"https://api.github.com/users/asturur/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T10:40:42Z","updated_at":"2016-12-11T10:40:42Z","body":"you have to hookup a `mouse:down` event on the object.\r\n\r\n```javascript\r\nobject.on('mouse:down', function(opt) {\r\n  // inside opt you found `e`\r\n  // you should be able to calculate where you clicked\r\n  var pointClicked = opt.target.canvas.getPointer(opt.e);\r\n});\r\n```"}}
{"actor":{"display_login":"asturur"}}