We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Clip group with child elements should not show anything with following attrs:
let widthValue = 0; let heightValue = 0; group.setAttrs({ clip: { x: 0, y: 0, width: widthValue, height: heightValue, }, });
https://codesandbox.io/p/sandbox/konva-playground-forked-c2x4hl
Seems like clip attrs are ignored if width and height are 0.
Alternative is to use corresponding clipFunc:
let widthValue = 0; let heightValue = 0; group.clipFunc((ctx) => { ctx.rect(0, 0, widthValue, heightValue) });
The text was updated successfully, but these errors were encountered:
eb4e2b4
Released a fix.
Sorry, something went wrong.
No branches or pull requests
Clip group with child elements should not show anything with following attrs:
https://codesandbox.io/p/sandbox/konva-playground-forked-c2x4hl
Seems like clip attrs are ignored if width and height are 0.
Alternative is to use corresponding clipFunc:
The text was updated successfully, but these errors were encountered: