Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed Sep 3, 2023
1 parent 69a083f commit c27a846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/StyleController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export class StyleController

this.styles.aspectRatio = styles?.aspectRatio ?? this.styles.aspectRatio ?? 'static';

this.visible = styles?.visible ?? this.styles.visible ?? true;
this.styles.visible = styles?.visible ?? this.styles.visible ?? true;
this.visible = this.styles.visible;

this._textStyle = stylesToPixiTextStyles(styles);

Expand Down
1 change: 1 addition & 0 deletions src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export type Styles = Partial<TextStyle> & {
anchorY?: GradeToOne;
aspectRatio?: AspectRatio;
wordWrap?: boolean;
visible?: boolean;
};

export type LayoutStyles = {
Expand Down

0 comments on commit c27a846

Please sign in to comment.