|
|
|
The third case hopefully shows the desired behavior when a rectangle mask and drawview clip() are present.
Yes, the third case is the desired behavior. It is not intuitive that clip=true means: apply a rectangular mask. If I call this.clip() I would expect clip=true to be a no op.
Patch sent to Henry for review. 2 line change suggested.
Index: LzDrawView.as =================================================================== --- LzDrawView.as (revision 1059) +++ LzDrawView.as (working copy) @@ -145,6 +145,8 @@ // @keywords private //------------------------------------------------------------------------------ LzDrawView.prototype.clip = function() { + if (this.mask) + this.removeMask(); // Remove any mask created by clip="true" if (this.__LZmaskClip == null){ this.applyMask(true); } clip() modified to remove any existing mask.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I'm attaching a modified file. Can you take a look at it? There are 3 examples. The first is identical to the code in the bug report. The second is similar, although the size of the view is smaller than the image. The third one calls a method, removeMask(), to simulate what I think you'd like to see.
If the third example shows the correct behavior I'll look into modifying LzDrawView to cancel a rectangular mask when clip() is called.
Thanks!
Phil