fix gap in drawing
This commit is contained in:
parent
31963968cc
commit
08f680c07c
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class StrokeSlice {
|
||||||
constructor(stroke, i_in, i_out) {
|
constructor(stroke, i_in, i_out) {
|
||||||
this.stroke = stroke; // Stroke
|
this.stroke = stroke; // Stroke
|
||||||
this.i_in = typeof i_in === 'undefined' ? 0 : i_in;
|
this.i_in = typeof i_in === 'undefined' ? 0 : i_in;
|
||||||
this.i_out = typeof i_out === 'undefined' ? this.stroke.points.length : i_out;
|
this.i_out = typeof i_out === 'undefined' ? this.stroke.points.length-1 : i_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
getSliceId() {
|
getSliceId() {
|
||||||
|
@ -100,7 +100,7 @@ class StrokeSlice {
|
||||||
|
|
||||||
// compatible with Stroke()
|
// compatible with Stroke()
|
||||||
get points() {
|
get points() {
|
||||||
return this.stroke.points.slice(this.i_in, this.i_out);
|
return this.stroke.points.slice(this.i_in, this.i_out+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// compatible with Stroke()
|
// compatible with Stroke()
|
||||||
|
|
Loading…
Reference in a new issue