From fb7fab66867e5d0ac8ec970fefedfdabc03ebe79 Mon Sep 17 00:00:00 2001 From: Simon Stijnen <113850648+SimonStnn@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:25:12 +0200 Subject: [PATCH] Revert "Add size option to default balloon close #249" This reverts commit a19c0d3471657462f5b57ad472f78a304c514343. --- src/balloons/default.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/balloons/default.ts b/src/balloons/default.ts index c7defa3f..12190a69 100644 --- a/src/balloons/default.ts +++ b/src/balloons/default.ts @@ -31,12 +31,6 @@ export type BalloonOptions = { * If not provided, the default sound will be used. */ popSoundUrl: string; - /** - * The size of the balloon. - * - * The first value is the minimum size and the second value is the maximum size. - */ - size: [number, number]; /** * The duration thresholds for the rise animation. * @@ -73,7 +67,6 @@ export default class Default extends Balloon { dir_name: this.name, imageUrl: this.originalPath('/icon.png'), popSoundUrl: this.originalPath('/pop.mp3'), - size: [50, 75], riseDurationThreshold: [10000, 15000], swingDurationThreshold: [2, 4], swingOffset: 15, @@ -128,8 +121,8 @@ export default class Default extends Balloon { } public build() { + const size = random(50, 75); const positionX = random(5, 95); - const size = random(this.options.size[0], this.options.size[1]); const riseDuration = random( this.options.riseDurationThreshold[0], this.options.riseDurationThreshold[1]