Skip to content

Commit

Permalink
more ts-ignore and "as any" workarounds, #404
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 21, 2021
1 parent 6afc279 commit c2ed78b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions js/common/view/RAPScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ class RAPScreenView extends ScreenView {
Utils.clamp( interpolatedDistance, 0, 1 )
);
}

// @ts-ignore
backgroundNode.setFill( color );
} );

Expand Down
2 changes: 1 addition & 1 deletion js/create/view/CreateScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class CreateScreenView extends RAPScreenView {
this.addChild( tickMarkRangeComboBoxParent );

// pdom
this.pdomPlayAreaNode.pdomOrder = this.pdomPlayAreaNode.pdomOrder.concat( [
this.pdomPlayAreaNode.pdomOrder = ( this.pdomPlayAreaNode as any ).pdomOrder.concat( [
this.tickMarkRangeComboBoxNode,
tickMarkRangeComboBoxParent,
myChallengeAccordionBox,
Expand Down
2 changes: 1 addition & 1 deletion js/discover/view/DiscoverScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DiscoverScreenView extends RAPScreenView {
// the dimensions of the scalingUILayerNode to make it too big. Discovered in https://github.com/phetsims/ratio-and-proportion/issues/273
this.addChild( comboBoxListBoxParent );

this.pdomPlayAreaNode.pdomOrder = this.pdomPlayAreaNode.pdomOrder.concat( [ this.comboBoxContainer, comboBoxListBoxParent ] );
this.pdomPlayAreaNode.pdomOrder = ( this.pdomPlayAreaNode as any ).pdomOrder.concat( [ this.comboBoxContainer, comboBoxListBoxParent ] );

// set this after the supertype has initialized the view code needed to create the screen summary
this.setScreenSummaryContent( new DiscoverScreenSummaryNode(
Expand Down

0 comments on commit c2ed78b

Please sign in to comment.