Skip to content

Commit

Permalink
fix: Graphic set internal width/height from ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Oct 1, 2024
1 parent f506da4 commit 217b33d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engine/Graphics/Graphic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ export abstract class Graphic {
this.opacity = options.opacity ?? this.opacity;
this.scale = options.scale ?? this.scale;
this.tint = options.tint ?? this.tint;
if (options.width) {
this._width = options.width;
}

if (options.height) {
this._height = options.height;
}
}
}

Expand Down

0 comments on commit 217b33d

Please sign in to comment.