@@ -494,16 +494,16 @@ class Drawable {
494
494
495
495
_isTouchingNearest ( vec ) {
496
496
const localPosition = getLocalPosition ( this , vec ) ;
497
- if ( ! this . skin . pointInsideLogicalBounds ( localPosition ) ) return false ;
497
+ if ( ! this . _skin . pointInsideLogicalBounds ( localPosition ) ) return false ;
498
498
if ( this . enabledEffects !== 0 ) EffectTransform . transformPoint ( this , localPosition , localPosition ) ;
499
- return this . skin . _silhouette . isTouchingNearest ( localPosition ) ;
499
+ return this . _skin . _silhouette . isTouchingNearest ( localPosition ) ;
500
500
}
501
501
502
502
_isTouchingLinear ( vec ) {
503
503
const localPosition = getLocalPosition ( this , vec ) ;
504
- if ( ! this . skin . pointInsideLogicalBounds ( localPosition ) ) return false ;
504
+ if ( ! this . _skin . pointInsideLogicalBounds ( localPosition ) ) return false ;
505
505
if ( this . enabledEffects !== 0 ) EffectTransform . transformPoint ( this , localPosition , localPosition ) ;
506
- return this . skin . _silhouette . isTouchingLinear ( localPosition ) ;
506
+ return this . _skin . _silhouette . isTouchingLinear ( localPosition ) ;
507
507
}
508
508
509
509
/**
@@ -767,7 +767,7 @@ class Drawable {
767
767
*/
768
768
static sampleColor4b ( vec , drawable , dst , effectMask ) {
769
769
const localPosition = getLocalPosition ( drawable , vec ) ;
770
- if ( ! this . skin . pointInsideLogicalBounds ( localPosition ) ) {
770
+ if ( ! this . _skin . pointInsideLogicalBounds ( localPosition ) ) {
771
771
dst [ 0 ] = 0 ;
772
772
dst [ 1 ] = 0 ;
773
773
dst [ 2 ] = 0 ;
@@ -780,9 +780,9 @@ class Drawable {
780
780
781
781
const textColor =
782
782
// commenting out to only use nearest for now
783
- // drawable.skin .useNearest(drawable._scale, drawable) ?
784
- drawable . skin . _silhouette . colorAtNearest ( localPosition , dst ) ;
785
- // : drawable.skin ._silhouette.colorAtLinear(localPosition, dst);
783
+ // drawable._skin .useNearest(drawable._scale, drawable) ?
784
+ drawable . _skin . _silhouette . colorAtNearest ( localPosition , dst ) ;
785
+ // : drawable._skin ._silhouette.colorAtLinear(localPosition, dst);
786
786
787
787
if ( drawable . enabledEffects === 0 ) return textColor ;
788
788
return EffectTransform . transformColor ( drawable , textColor , effectMask ) ;
0 commit comments