From 07ed4c239f53164f88b4a50d573f32f465fe6cfc Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 5 Dec 2022 14:30:13 -0700 Subject: [PATCH] delete unused ParticleNode.ts, https://github.com/phetsims/beers-law-lab/issues/276 --- js/concentration/view/ParticleNode.ts | 39 --------------------------- 1 file changed, 39 deletions(-) delete mode 100644 js/concentration/view/ParticleNode.ts diff --git a/js/concentration/view/ParticleNode.ts b/js/concentration/view/ParticleNode.ts deleted file mode 100644 index 9544b4fe..00000000 --- a/js/concentration/view/ParticleNode.ts +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2013-2022, University of Colorado Boulder - -/** - * ParticleNode is the base class for drawing a particle. - * Origin is at the center of the particle. - * - * @author Chris Malley (PixelZoom, Inc.) - */ - -import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransform2.js'; -import { Rectangle } from '../../../../scenery/js/imports.js'; -import beersLawLab from '../../beersLawLab.js'; -import SoluteParticle from '../model/SoluteParticle.js'; - -export default class ParticleNode extends Rectangle { - - public readonly particle: SoluteParticle; - - public constructor( particle: SoluteParticle, modelViewTransform: ModelViewTransform2 ) { - - const viewSize = modelViewTransform.modelToViewDeltaX( particle.size ); - - super( -viewSize / 2, -viewSize / 2, viewSize, viewSize, { - fill: particle.color, - stroke: particle.color.darkerColor(), - lineWidth: 1 - } ); - - this.particle = particle; - - this.rotation = particle.orientation; - - particle.positionProperty.link( () => { - this.translation = modelViewTransform.modelToViewPosition( particle.positionProperty.value ); - } ); - } -} - -beersLawLab.register( 'ParticleNode', ParticleNode ); \ No newline at end of file