Skip to content

Commit a07628a

Browse files
committed
Rename StrokeCapEnum.butt to none.
1 parent 8c8a8ad commit a07628a

8 files changed

+28
-28
lines changed

lib/src/api/mixins.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ abstract class DefaultShapeNode extends SceneNode
6464
double strokeWeight = 0,
6565
double strokeMiterLimit = 4.0,
6666
StrokeAlignC strokeAlign = StrokeAlignC.inside,
67-
StrokeCapEnum strokeCap = StrokeCapEnum.butt,
67+
StrokeCapEnum strokeCap = StrokeCapEnum.none,
6868
List<double> dashPattern = const [],
6969
StrokeSide strokeSide = StrokeSide.all,
7070
}) {
@@ -478,7 +478,7 @@ enum StrokeCapEnum {
478478
///
479479
/// Compare to the [square] cap, which has the same shape, but extends past
480480
/// the end of the line by half a stroke width.
481-
butt,
481+
none,
482482

483483
/// Begin and end contours with a half square extension. This is similar to
484484
/// extending each contour by half the stroke width/thickness.
@@ -576,7 +576,7 @@ mixin GeometryMixin on BaseNode {
576576
late StrokeAlignC strokeAlign;
577577

578578
/// Type of line cap to use for the stroke.
579-
@JsonKey(unknownEnumValue: StrokeCapEnum.butt)
579+
@JsonKey(unknownEnumValue: StrokeCapEnum.none)
580580
late StrokeCapEnum strokeCap;
581581

582582
/// The pattern of dashes and gaps to apply to the stroke in case of dashed

lib/src/api/nodes/auto_placeholder_node.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/nodes/canvas_node.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/nodes/frame_node.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/nodes/freeform_placeholder_node.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/nodes/loading_indicator_node.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/nodes/rectangle_node.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/nodes/row_column_node.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)