Skip to content

Commit

Permalink
fix bounding box cache keys causing ele distortions in texture caches #…
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkfranz committed Apr 28, 2016
1 parent 9ecba0c commit a814966
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/collection/dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,22 +617,22 @@ var boundingBoxImpl = function( ele, options ){
return bounds;
};

var appendTfStr = function( str, val ){
var tf = function( val ){
if( val ){
str += 't';
return 't';
} else {
str += 'f';
return 'f';
}
};

var getKey = function( opts ){
var key = '';

appendTfStr( key, opts.incudeNodes );
appendTfStr( key, opts.includeEdges );
appendTfStr( key, opts.includeLabels );
appendTfStr( key, opts.includeShadows );
appendTfStr( key, opts.includeOverlays );
key += tf( opts.incudeNodes );
key += tf( opts.includeEdges );
key += tf( opts.includeLabels );
key += tf( opts.includeShadows );
key += tf( opts.includeOverlays );

return key;
};
Expand Down

0 comments on commit a814966

Please sign in to comment.