javascript - FabricJS ClipTo Issue for multiple objects like group -
My code
I'm taking the value from the red dotted box and applies to the clip where multiple Mask
My problem is taking all the properties but not rotation for all
canvas.clipTo = function (ctx) {ctx.beginPath ( ); For (var i = 0; i I will rotate all the rectangles
I just get some code to replace the rotation for the clip like ctx.rotate (50); But I will not work because I want to walk with everyone with my own values
Please guide me for that
And decided that I have to stop doing ctx.beginPath all the time:
Canvas.clipTo = function (Ctx) {var skip = false; // Make the clip with optional solution // // clip to make possible. Group variable oldBeginPath = ctx.beginPath; Ctx.beginPath = function () {if (Skip!) {OldBeginPath.apply (this, argument); Skip = true; SetTimeout (function () {skip = false;}, 0); }} Group.render (ctx)}; / html>
Comments
Post a Comment