Skip to content

Commit

Permalink
Adding Image.imageProperty/Path.shapeProperty usages, see phetsims/sc…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Feb 20, 2024
1 parent add938b commit e1ac3eb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions js/common/view/DebugLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,9 @@ class DebugLayer extends Node {
const wires = model.circuit.wireGroup[ circuitPosition ];

wires.forEach( wire => {
const wirePath = new Path( null, {
this.addChild( new Path( wire.shapeProperty, {
stroke: 'blue'
} );
this.addChild( wirePath );

wire.shapeProperty.link( shape => {
wirePath.shape = shape;
} );
} ) );
} );
} );

Expand Down

0 comments on commit e1ac3eb

Please sign in to comment.