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
Create a new circle raster and add it to an actor with the following code.
const baseCircle = new Circle({ radius: 100 lineWidth: 50, color: Color.White, strokeColor: Color.White.darken(0.2), quality: 2 }); this.graphics.add("Base", baseCircle); this.graphics.show("Base");
The bounding box is given extra padding based on the line width so that it is not clipped.
The line generated by the raster graphic is clipped by the bounding box.
Explicitly defining a 'padding' value solves the clipping problem, but the raster renderer should take this into account implicitly.
const baseCircle = new Circle({ radius: 100 lineWidth: 50, color: Color.White, strokeColor: Color.White.darken(0.2), padding: 25, quality: 2 });
The text was updated successfully, but these errors were encountered:
Hi @CTLaChance, thanks for the issue!
Totally agree, this is unexpected
Sorry, something went wrong.
This issue hasn't had any recent activity lately and is being marked as stale automatically.
One workaround here may be to set the Circle.padding to increase the size of the underlying bitmap.
Circle.padding
fix: [#2490] Circle lineWidth now factored
5dcd30b
fix: [#2490] Circle lineWidth now factored (#2662)
0d5a41f
Closes #2490 The PR adjusts the underlying padding dynamically to account for lineWidth in the `Circle` constructor
Successfully merging a pull request may close this issue.
Steps to Reproduce
Create a new circle raster and add it to an actor with the following code.
Expected Result
The bounding box is given extra padding based on the line width so that it is not clipped.
Actual Result
The line generated by the raster graphic is clipped by the bounding box.
Workarounds
Explicitly defining a 'padding' value solves the clipping problem, but the raster renderer should take this into account implicitly.
Environment
The text was updated successfully, but these errors were encountered: