diff --git a/src/engine/Graphics/Graphic.ts b/src/engine/Graphics/Graphic.ts index a66f392db..398bb2f13 100644 --- a/src/engine/Graphics/Graphic.ts +++ b/src/engine/Graphics/Graphic.ts @@ -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; + } } }