@@ -280,7 +280,7 @@ to interpolated endpoints (a breaking change)
280
280
*/
281
281
class SplineSegment extends Segment {
282
282
#vertexCapacity = Infinity ;
283
- _splineEnds = constants . SHOW ;
283
+ _splineEnds = constants . INCLUDE ;
284
284
_splineTightness = 0 ;
285
285
286
286
get vertexCapacity ( ) {
@@ -296,15 +296,15 @@ class SplineSegment extends Segment {
296
296
}
297
297
298
298
get canOverrideAnchor ( ) {
299
- return this . _splineEnds === constants . HIDE ;
299
+ return this . _splineEnds === constants . EXCLUDE ;
300
300
}
301
301
302
302
// assuming for now that the first interpolated vertex is always
303
303
// the second vertex passed to splineVertex()
304
304
// if this spline segment doesn't follow another segment,
305
305
// the first vertex is in an anchor
306
306
get _firstInterpolatedVertex ( ) {
307
- if ( this . _splineEnds === constants . HIDE ) {
307
+ if ( this . _splineEnds === constants . EXCLUDE ) {
308
308
return this . _comesAfterSegment ?
309
309
this . vertices [ 1 ] :
310
310
this . vertices [ 0 ] ;
@@ -331,7 +331,7 @@ class SplineSegment extends Segment {
331
331
this . _splineEnds = shape . _splineEnds ;
332
332
this . _splineTightness = shape . _splineTightness ;
333
333
334
- if ( this . _splineEnds !== constants . HIDE ) return added ;
334
+ if ( this . _splineEnds !== constants . EXCLUDE ) return added ;
335
335
336
336
let verticesPushed = ! this . _belongsToShape ;
337
337
let lastPrimitive = shape . at ( - 1 , - 1 ) ;
@@ -367,9 +367,9 @@ class SplineSegment extends Segment {
367
367
368
368
// override method on base class
369
369
getEndVertex ( ) {
370
- if ( this . _splineEnds === constants . SHOW ) {
370
+ if ( this . _splineEnds === constants . INCLUDE ) {
371
371
return super . getEndVertex ( ) ;
372
- } else if ( this . _splineEnds === constants . HIDE ) {
372
+ } else if ( this . _splineEnds === constants . EXCLUDE ) {
373
373
return this . vertices . at ( - 2 ) ;
374
374
} else {
375
375
return this . getStartVertex ( ) ;
@@ -389,7 +389,7 @@ class SplineSegment extends Segment {
389
389
}
390
390
391
391
const prevVertex = this . getStartVertex ( ) ;
392
- if ( this . _splineEnds === constants . SHOW ) {
392
+ if ( this . _splineEnds === constants . INCLUDE ) {
393
393
points . unshift ( prevVertex ) ;
394
394
points . push ( this . vertices . at ( - 1 ) ) ;
395
395
} else if ( this . _splineEnds === constants . JOIN ) {
@@ -584,7 +584,7 @@ class Shape {
584
584
_splineTightness = 0 ;
585
585
kind = null ;
586
586
contours = [ ] ;
587
- _splineEnds = constants . SHOW ;
587
+ _splineEnds = constants . INCLUDE ;
588
588
userVertexProperties = null ;
589
589
590
590
constructor (
@@ -1078,7 +1078,7 @@ class PrimitiveToPath2DConverter extends PrimitiveVisitor {
1078
1078
const shape = splineSegment . _shape ;
1079
1079
1080
1080
if (
1081
- splineSegment . _splineEnds === constants . HIDE &&
1081
+ splineSegment . _splineEnds === constants . EXCLUDE &&
1082
1082
! splineSegment . _comesAfterSegment
1083
1083
) {
1084
1084
let startVertex = splineSegment . _firstInterpolatedVertex ;
0 commit comments