{"action":"closed","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/3507","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/3507/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/3507/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/3507/events","html_url":"https://github.com/kangax/fabric.js/issues/3507","id":194086418,"number":3507,"title":"Clone function since 1.7","user":{"login":"CSI68","id":2900776,"avatar_url":"https://avatars.githubusercontent.com/u/2900776?v=3","gravatar_id":"","url":"https://api.github.com/users/CSI68","html_url":"https://github.com/CSI68","followers_url":"https://api.github.com/users/CSI68/followers","following_url":"https://api.github.com/users/CSI68/following{/other_user}","gists_url":"https://api.github.com/users/CSI68/gists{/gist_id}","starred_url":"https://api.github.com/users/CSI68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSI68/subscriptions","organizations_url":"https://api.github.com/users/CSI68/orgs","repos_url":"https://api.github.com/users/CSI68/repos","events_url":"https://api.github.com/users/CSI68/events{/privacy}","received_events_url":"https://api.github.com/users/CSI68/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T15:51:04Z","updated_at":"2016-12-07T16:24:55Z","closed_at":"2016-12-07T16:24:55Z","body":"Hi,\r\n\r\nSince 1.7 there is an update that I don't understand.\r\n\r\nIn 1.6 my canvas is clipto a svg shape, all worked like a charm. Now nothing is clipped and I don't know why.\r\n\r\nHere is the part of code where I think the modif is needed: \r\n\r\n`custengine.support.moveTo(1);\r\n\r\n\t\t\t\t// Overhand\r\n\t\t\t\tcustengine.support.clone(function(clone){\r\n\r\n\t\t\t\t\tcustengine.overhand=clone;\r\n\r\n\t\t\t\t\tcustengine.overhand.setFill('transparent').setShadow(0).set({\r\n\t\t\t\t\t\tid:'ctzOverhand',\r\n\t\t\t\t\t\tperPixelTargetFind: true,\r\n\t\t\t\t\t\tselectable:false,\r\n\t\t\t\t\t\topacity:0.1,\r\n\t\t\t\t\t\tclipTo: function(ctx) {\r\n\t\t\t\t\t\t\tctx.save();\r\n\t\t\t\t\t\t\tctx.setTransform(1, 0, 0, 1, 0, 0);\r\n\t\t\t\t\t\t\tcustengine.support.clone(function(c) {\r\n\t\t\t\t\t\t\t\tc.set({\r\n\t\t\t\t\t\t\t\t\tscaleX: c.getScaleX()*window.devicePixelRatio,\r\n\t\t\t\t\t\t\t\t\tscaleY: c.getScaleY()*window.devicePixelRatio,\r\n\t\t\t\t\t\t\t\t\ttop: c.getTop()*window.devicePixelRatio,\r\n\t\t\t\t\t\t\t\t\tleft: c.getLeft()*window.devicePixelRatio,\r\n\t\t\t\t\t\t\t\t\tfill:'transparent',\r\n\t\t\t\t\t\t\t\t\tshadow:{}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tc.render(ctx);\r\n\t\t\t\t\t\t\t\tctx.restore();\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tif($('#ctz-button-display-overhand').hasClass('active')){\r\n\t\t\t\t\t\tcustengine.overhand.set({visible:true});\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tcustengine.overhand.set({visible:false});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (var i = 0; i < custengine.overhand.paths.length; i++) {\r\n\t\t\t\t\t\tcustengine.overhand.paths[i].setFill('transparent').set({\r\n\t\t\t\t\t\t\tperPixelTargetFind: true,\r\n\t\t\t\t\t\t\tshadow:0,\r\n\t\t\t\t\t\t\tstroke:'#000000'\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}`\r\n\r\nThanks for your help"}}
{"actor":{"display_login":"CSI68"}}