mirror of
https://github.com/typst/typst
synced 2025-08-24 11:44:12 +08:00
Fix misleading comments
This commit is contained in:
parent
ffb02a0446
commit
81a820f2bd
@ -1309,8 +1309,10 @@ impl ControlPoints {
|
||||
|
||||
/// Draw the cap at the beginning of the segment.
|
||||
///
|
||||
/// If this corner has a radius, or has a stroke before it,
|
||||
/// If this corner has a stroke before it,
|
||||
/// a default "butt" cap is used.
|
||||
///
|
||||
/// NOTE: doesn't support the case where the corner has a radius.
|
||||
pub fn start_cap(&self, curve: &mut Curve, cap_type: LineCap) {
|
||||
if self.stroke_before != Abs::zero()
|
||||
|| self.radius != Abs::zero()
|
||||
@ -1343,8 +1345,10 @@ impl ControlPoints {
|
||||
|
||||
/// Draw the cap at the end of the segment.
|
||||
///
|
||||
/// If this corner has a radius, or has a stroke after it,
|
||||
/// If this corner has a stroke before it,
|
||||
/// a default "butt" cap is used.
|
||||
///
|
||||
/// NOTE: doesn't support the case where the corner has a radius.
|
||||
pub fn end_cap(&self, curve: &mut Curve, cap_type: LineCap) {
|
||||
if self.stroke_after != Abs::zero()
|
||||
|| self.radius != Abs::zero()
|
||||
|
Loading…
x
Reference in New Issue
Block a user