From f2538de05565df1522e40785664ecd05b3790be4 Mon Sep 17 00:00:00 2001 From: Mikey Gower Date: Mon, 6 Nov 2023 16:00:47 -0500 Subject: [PATCH] use consistent variable names in Icon class --- src/renderers/webgl/objects/icon.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderers/webgl/objects/icon.ts b/src/renderers/webgl/objects/icon.ts index 67f1b607..70ded1b7 100644 --- a/src/renderers/webgl/objects/icon.ts +++ b/src/renderers/webgl/objects/icon.ts @@ -103,8 +103,8 @@ export class Icon { } private createImageIcon(style: ImageIcon) { - const sprite = new Sprite(this.imageIconTexture.create(style)) - sprite.scale.set(style.scale ?? 1) - return sprite + const icon = new Sprite(this.imageIconTexture.create(style)) + icon.scale.set(style.scale ?? 1) + return icon } }