Skip to content

Commit

Permalink
refactor: padding definition
Browse files Browse the repository at this point in the history
  • Loading branch information
palcarazm committed Jun 30, 2022
1 parent 00fa85e commit fd674ab
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions js/simplegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit fd674ab

Please sign in to comment.