-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove cellTextFontSize option from NuclideChartCell. Create nuclide …
…chart in static function in NuclideChartNode. Create chartTransform in static function in NuclideChartAccordionBox. Create icon node for Nuclide Chart, CompleteNuclideChartIconNode. See #46.
- Loading branch information
Showing
4 changed files
with
78 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2023, University of Colorado Boulder | ||
|
||
/** | ||
* Icon node for NuclideChart. | ||
* | ||
* @author Luisa Vargas | ||
* @author Marla Schulz (PhET Interactive Simulations) | ||
*/ | ||
|
||
import buildANucleus from '../../buildANucleus.js'; | ||
import NuclideChartNode from './NuclideChartNode.js'; | ||
import NuclideChartAccordionBox from './NuclideChartAccordionBox.js'; | ||
import { Node } from '../../../../scenery/js/imports.js'; | ||
|
||
class CompleteNuclideChartIconNode extends Node { | ||
|
||
public constructor() { | ||
|
||
const cellLayerNode = new Node(); | ||
const smallChartTransform = NuclideChartAccordionBox.getChartTransform( 5 ); | ||
NuclideChartNode.createNuclideChart( cellLayerNode, smallChartTransform, smallChartTransform.modelToViewDeltaX( 1 ) ); | ||
|
||
super( { children: [ cellLayerNode ] } ); | ||
} | ||
} | ||
|
||
buildANucleus.register( 'CompleteNuclideChartIconNode', CompleteNuclideChartIconNode ); | ||
export default CompleteNuclideChartIconNode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters