-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
absolutePositioned
with objects nested in groups
#7142
Comments
I think the problem is that |
Hi. I think it works as intended. |
this is a though one. It is working as intented from what i can see in the fiddle, but the point is that it does not invalidate the group cache on movement. Not sure if this in an edge case that deserve fixing or not. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I found a work around const __drawClipPath = fabric.Object.prototype._drawClipPath;
fabric.util.object.extend(fabric.Object.prototype, {
_drawClipPath: function (ctx: CanvasRenderingContext2D) {
__drawClipPath.call(this, ctx);
// render stuff here
}
// consider overriding the following method as well:
// isCacheDirty: () => true
}) Now I am able to render many clip paths with varying |
fixed by the rewrite |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Version
latest
Test Case
http://jsfiddle.net/2185reh6/19/
Information about environment
browser chrome
Steps to reproduce
Add an
absolutePositioned
clip path to an object inside a groupExpected Behavior
Clip path should be positioned relative to canvas, http://fabricjs.com/docs/fabric.Object.html#absolutePositioned
Actual Behavior
Because group manages it's own plane the clip path is relative to the group
The text was updated successfully, but these errors were encountered: