my_wins 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3 -8
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -9,22 +9,17 @@ const defaultSettings = {
|
|
|
9
9
|
width: 500,
|
|
10
10
|
screenWidth:1920,
|
|
11
11
|
screenHeight:1080,
|
|
12
|
+
wy_total : 12,
|
|
13
|
+
wx_total : 3,
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
function makeWinsArray(settings, ) {
|
|
15
17
|
let winsArray = settings.winsArray || [];
|
|
16
|
-
let {x,y,width, height, screenWidth, screenHeight} = settings;
|
|
18
|
+
let {x,y,width, height, screenWidth, screenHeight, wy_total, wx_total} = settings;
|
|
17
19
|
const scr_sz = keysender.getScreenSize();
|
|
18
20
|
if(!screenWidth) screenWidth = scr_sz.width;
|
|
19
21
|
if(!screenHeight) screenHeight = scr_sz.height;
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
// for(let i=0;i<1000;i++) {
|
|
23
|
-
// y += settings.height;
|
|
24
|
-
// winsArray.push({x,y, width, height});
|
|
25
|
-
// }
|
|
26
|
-
const wy_total = 10;
|
|
27
|
-
const wx_total = 4;
|
|
28
23
|
const wy_step = Math.round( screenHeight*1.0/wy_total);
|
|
29
24
|
const wx_step = Math.round(screenWidth*1.0/wx_total);
|
|
30
25
|
for(let wy = 0; wy<wy_total;wy++ ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my_wins",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Automates starting and laying out your console windows for tsc, babel, tests, verdaccio, etc...",
|
|
5
5
|
"keywords": ["automation","cmd","keysender","windows","autostart","autorun"],
|
|
6
6
|
"main": "./index.js",
|