Skip to content

Commit

Permalink
Simplifly trail slice, see phetsims/number-suite-common#29
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Mar 30, 2023
1 parent d21940a commit 8218ebb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/common/view/CountingCreatorNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ class CountingCreatorNode extends Node {
public getOriginPosition(): Vector2 {

// Trail to coordinateFrameNode, not including the coordinateFrameNode
let trail = this.coordinateFrameNode.getUniqueLeafTrailTo( this.targetNode );
trail = trail.slice( 1, trail.length );
let trail = this.coordinateFrameNode.getUniqueLeafTrailTo( this.targetNode ).slice( 1 );

// Transformed to view coordinates
let origin = this.frontTargetNode.localBounds.center.plus( this.backTargetOffset );
Expand Down

0 comments on commit 8218ebb

Please sign in to comment.