Skip to content

Commit

Permalink
Improve common code jsdoc to help RAP Typescript conversion, phetsims…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 22, 2021
1 parent 53d9f48 commit 2797ab4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions js/keyboard/help/KeyboardHelpIconFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class KeyboardHelpIconFactory {
* Get two icons horizontally aligned and separated by 'or' text.
* @public
*
* @param {Node} iconA - to the left of 'or' text
* @param {Node} iconB - to the right of 'or' text
* @param {../../../../scenery/js/nodes/Node} iconA - to the left of 'or' text
* @param {../../../../scenery/js/nodes/Node} iconB - to the right of 'or' text
* @param {Object} [options]
*
* @returns {HBox}
Expand All @@ -59,8 +59,8 @@ class KeyboardHelpIconFactory {
* Get two icons horizontally aligned and separated by '-' text. This is useful for a range, like 0-9.
* @public
*
* @param {Node} iconA - to the left of '-' text
* @param {Node} iconB - to the right of '-' text
* @param {../../../../scenery/js/nodes/Node} iconA - to the left of '-' text
* @param {../../../../scenery/js/nodes/Node} iconB - to the right of '-' text
* @param {Object} [options]
*
* @returns {HBox}
Expand All @@ -85,8 +85,8 @@ class KeyboardHelpIconFactory {
* Get two icons horizontally aligned and separated by '+' text.
* @public
*
* @param {Node} iconA - to the left of '+' text
* @param {Node} iconB - to the right of '+' text
* @param {../../../../scenery/js/nodes/Node} iconA - to the left of '+' text
* @param {../../../../scenery/js/nodes/Node} iconB - to the right of '+' text
* @param {Object} [options]
*
* @returns {HBox}
Expand Down Expand Up @@ -115,7 +115,7 @@ class KeyboardHelpIconFactory {
* of shift, plus icon, and desired icon.
* @public
*
* @param {Node} icon - icon to right of 'shift +'
* @param {../../../../scenery/js/nodes/Node} icon - icon to right of 'shift +'
* @param {Object} [options]
*
* @returns {HBox}
Expand Down Expand Up @@ -145,7 +145,7 @@ class KeyboardHelpIconFactory {
/**
* "Space or Enter" icon
* @public
* @returns {Node}
* @returns {../../../../scenery/js/nodes/Node}
*/
static spaceOrEnter() {
return KeyboardHelpIconFactory.iconOrIcon( TextKeyNode.space(), TextKeyNode.enter() );
Expand All @@ -154,15 +154,15 @@ class KeyboardHelpIconFactory {
/**
* "Up or down" icon
* @public
* @returns {Node}
* @returns {../../../../scenery/js/nodes/Node}
*/
static upOrDown() {
return KeyboardHelpIconFactory.iconOrIcon( new ArrowKeyNode( 'up' ), new ArrowKeyNode( 'down' ) );
}

/**
* @public
* @param {Node[]} icons
* @param {../../../../scenery/js/nodes/Node[]} icons
* @param {Object} [options]
*/
static iconRow( icons, options ) {
Expand Down

0 comments on commit 2797ab4

Please sign in to comment.