{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/2078","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/2078/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/2078/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/2078/events","html_url":"https://github.com/kangax/fabric.js/issues/2078","id":65899179,"number":2078,"title":"Removing controls programmaticaly","user":{"login":"sathio","id":1990816,"avatar_url":"https://avatars.githubusercontent.com/u/1990816?v=3","gravatar_id":"","url":"https://api.github.com/users/sathio","html_url":"https://github.com/sathio","followers_url":"https://api.github.com/users/sathio/followers","following_url":"https://api.github.com/users/sathio/following{/other_user}","gists_url":"https://api.github.com/users/sathio/gists{/gist_id}","starred_url":"https://api.github.com/users/sathio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sathio/subscriptions","organizations_url":"https://api.github.com/users/sathio/orgs","repos_url":"https://api.github.com/users/sathio/repos","events_url":"https://api.github.com/users/sathio/events{/privacy}","received_events_url":"https://api.github.com/users/sathio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-02T10:25:20Z","updated_at":"2015-04-02T10:46:31Z","closed_at":"2015-04-02T10:32:05Z","body":"Hi, great library, I'm very happy to have found it.\r\nI'd like to make sure that when calling this function all controls from objects are removed.\r\nI left bl:true as a test and via console.log i can see that they are correctly set. only problem is that they're still there, I think I should call some canvas.renderAll(); function, but it doesn't re-render.\r\n\r\n    function rasterize(){\r\n\r\n      obj = canvas.getObjects();\r\n\r\n      for(i=0;i<obj.length;i++){\r\n        obj[0].hasControls=false;\r\n        obj[0].setControlsVisibility({\r\n                tl: false,\r\n                tr: false,\r\n                br: false,\r\n                bl: true,\r\n                ml: false,\r\n                mt: false,\r\n                mr: false,\r\n                mb: false,\r\n                mtr: false\r\n            });\r\n\r\n      }\r\n      canvas.renderAll();\r\n      //window.open(canvas.toDataURL('png'));\r\n    }\r\n\r\n\r\n    _controlsVisibility: Object\r\n    bl: true\r\n    br: false\r\n    mb: false\r\n    ml: false\r\n    mr: false\r\n    mt: false\r\n    mtr: false\r\n    tl: false\r\n    tr: false\r\n"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/88863792","html_url":"https://github.com/kangax/fabric.js/issues/2078#issuecomment-88863792","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/2078","id":88863792,"user":{"login":"sathio","id":1990816,"avatar_url":"https://avatars.githubusercontent.com/u/1990816?v=3","gravatar_id":"","url":"https://api.github.com/users/sathio","html_url":"https://github.com/sathio","followers_url":"https://api.github.com/users/sathio/followers","following_url":"https://api.github.com/users/sathio/following{/other_user}","gists_url":"https://api.github.com/users/sathio/gists{/gist_id}","starred_url":"https://api.github.com/users/sathio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sathio/subscriptions","organizations_url":"https://api.github.com/users/sathio/orgs","repos_url":"https://api.github.com/users/sathio/repos","events_url":"https://api.github.com/users/sathio/events{/privacy}","received_events_url":"https://api.github.com/users/sathio/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T10:46:31Z","updated_at":"2015-04-02T10:46:31Z","body":"I'll also tattoo it on my wrist. \r\n\r\nciao  :)"}}