From fd674abadb85415776e9cbb5930e0c8c6867ac40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Alcaraz=20Mart=C3=ADnez?= Date: Thu, 30 Jun 2022 18:12:08 +0200 Subject: [PATCH] refactor: padding definition --- js/simplegen.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/js/simplegen.js b/js/simplegen.js index de2d7017..0ade354f 100644 --- a/js/simplegen.js +++ b/js/simplegen.js @@ -146,12 +146,14 @@ var components = { accent: accent, }; -const padding = new Object(); -padding.width = 7; -padding.height = 7; -padding.internal = new Object(); -padding.internal.x = 3; -padding.internal.y = 5; +const padding = { + width: 7, + height: 7, + internal:{ + x: 3, + y: 5 + } +}; Object.freeze(padding); var global = {