console-gui-tools
Advanced tools
Comparing version 1.1.8 to 1.1.9
{ | ||
"name": "console-gui-tools", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "A simple library to draw option menu, text popup or other widgets and layout on a Node.js console.", | ||
@@ -5,0 +5,0 @@ "main": "src/ConsoleGui.js", |
@@ -13,3 +13,3 @@ # console-gui-tools | ||
![Animation](https://user-images.githubusercontent.com/14907987/164765317-062c0fe9-7af3-4aa5-a96e-9407a9245341.gif) | ||
![Animation](https://user-images.githubusercontent.com/14907987/164886106-b9c1e295-f4bf-4cc3-9065-365e1141dfd9.gif) | ||
@@ -16,0 +16,0 @@ |
@@ -270,3 +270,3 @@ import { EventEmitter } from "events" | ||
if (colIndex === row.length - 1) { | ||
content += " ".repeat(emptySpace / 2) + "│\n" | ||
content += " ".repeat(!emptySpace % 2 ? emptySpace / 2 : Math.round(emptySpace / 2)) + "│\n" | ||
} else { | ||
@@ -276,3 +276,3 @@ content += " ".repeat(spaceBetweenButtons) | ||
} else if (colIndex === row.length) { | ||
content += " ".repeat(emptySpace / 2) + "│\n" | ||
content += " ".repeat(!emptySpace % 2 ? emptySpace / 2 : Math.round(emptySpace / 2)) + "│\n" | ||
} | ||
@@ -279,0 +279,0 @@ }) |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
133602
1