Round stroke caps (#798)

This commit is contained in:
DD Liu 2018-12-14 10:46:37 -05:00 committed by GitHub
parent 1a8178808a
commit 5ae3ade49b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,7 @@ class LineMode extends React.Component {
// If not near other path, start a new path // If not near other path, start a new path
if (!this.path) { if (!this.path) {
this.path = new paper.Path(); this.path = new paper.Path();
this.path.strokeCap = 'round';
stylePath(this.path, this.props.colorState.strokeColor, this.props.colorState.strokeWidth); stylePath(this.path, this.props.colorState.strokeColor, this.props.colorState.strokeWidth);
this.path.add(event.point); this.path.add(event.point);