Skip to content

Conversation

@tomcur
Copy link
Member

@tomcur tomcur commented Jan 5, 2026

This follows up on #1332, implementing dashed stroke clipping as well.

The first commit here does just that (plus rejigging some of the control flow), the second factors out stroking logic shared with Scene::stroke to a new private method.

Comment on lines +421 to +424
#[cfg(feature = "bump_estimate")]
self.estimator
.count_path(shape.path_elements(SHAPE_TOLERANCE), &t, Some(style));
self.encoding.encode_shape(shape, false)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to tackle (or think about) tolerances here, and this is just lifted directly from the code in main, but I'm not entirely sure this is correct... The Estimator::count_path call gets SHAPE_TOLERANCE passed in (with a value of 0.01), but the Encoding::encode_shape call has a hard-coded 0.1 tolerance.

Additionally, as the note about tolerances in Scene::stroke says, this does nothing for handling tolerance under scaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant