@raydiant/playlist-window-manager 0.0.0-test-5 → 0.0.0-test-6
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.
|
@@ -94,21 +94,15 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
94
94
|
});
|
|
95
95
|
this.proxySettings = null;
|
|
96
96
|
opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor1 ".concat(JSON.stringify(opts.bounds)));
|
|
97
|
+
// TODO zlv added
|
|
98
|
+
this.offscreenWindow.setFullScreen(true);
|
|
97
99
|
// TODO zlv commented out
|
|
98
100
|
// this.offscreenWindow.setBounds(opts.bounds);
|
|
99
|
-
// TODO zlv added
|
|
100
|
-
this.offscreenWindow.setContentBounds(opts.bounds);
|
|
101
101
|
opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ".concat(JSON.stringify({
|
|
102
102
|
bounds: this.offscreenWindow.getBounds(),
|
|
103
103
|
normalBounds: this.offscreenWindow.getNormalBounds(),
|
|
104
104
|
contentBounds: this.offscreenWindow.getContentBounds(),
|
|
105
105
|
})));
|
|
106
|
-
this.offscreenWindow.maximize(); // TODO zlv added
|
|
107
|
-
opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor3 ".concat(JSON.stringify({
|
|
108
|
-
bounds: this.offscreenWindow.getBounds(),
|
|
109
|
-
normalBounds: this.offscreenWindow.getNormalBounds(),
|
|
110
|
-
contentBounds: this.offscreenWindow.getContentBounds(),
|
|
111
|
-
})));
|
|
112
106
|
if (opts.proxySettings) {
|
|
113
107
|
this.proxySettings = opts.proxySettings;
|
|
114
108
|
}
|
|
@@ -194,15 +188,17 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
194
188
|
// Electron issue: https://github.com/electron/electron/issues/20357
|
|
195
189
|
window.view.setBackgroundColor(backgroundColor === 'transparent' ? '#00000000' : backgroundColor);
|
|
196
190
|
}
|
|
191
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow4: ".concat(JSON.stringify(window.bounds)));
|
|
192
|
+
// TODO zlv added
|
|
197
193
|
if (window.view instanceof electron_1.BrowserWindow) {
|
|
198
|
-
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts
|
|
199
|
-
window.view.
|
|
194
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5: setFullScreen");
|
|
195
|
+
window.view.setFullScreen(true);
|
|
200
196
|
}
|
|
201
197
|
else {
|
|
202
|
-
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts
|
|
198
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow6: setBounds");
|
|
203
199
|
window.view.setBounds(window.bounds);
|
|
204
200
|
}
|
|
205
|
-
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts
|
|
201
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow7: ".concat(JSON.stringify(window.view.getBounds())));
|
|
206
202
|
if (!this.proxySettings) return [3 /*break*/, 2];
|
|
207
203
|
return [4 /*yield*/, window.view.webContents.session.setProxy(this.proxySettings)];
|
|
208
204
|
case 1:
|
|
@@ -253,7 +249,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
253
249
|
// y: window.bounds.y + this.opts.bounds.y,
|
|
254
250
|
// });
|
|
255
251
|
// TODO zlv added
|
|
256
|
-
window.view.
|
|
252
|
+
window.view.setFullScreen(true);
|
|
257
253
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds3: ".concat(JSON.stringify({
|
|
258
254
|
bounds: window.view.getBounds(),
|
|
259
255
|
normalBounds: window.view.getNormalBounds(),
|
package/package.json
CHANGED
|
@@ -77,10 +77,10 @@ export default class BrowserWindowRenderer
|
|
|
77
77
|
opts.bounds
|
|
78
78
|
)}`
|
|
79
79
|
);
|
|
80
|
+
// TODO zlv added
|
|
81
|
+
this.offscreenWindow.setFullScreen(true);
|
|
80
82
|
// TODO zlv commented out
|
|
81
83
|
// this.offscreenWindow.setBounds(opts.bounds);
|
|
82
|
-
// TODO zlv added
|
|
83
|
-
this.offscreenWindow.setContentBounds(opts.bounds);
|
|
84
84
|
opts.logger.info(
|
|
85
85
|
`playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ${JSON.stringify(
|
|
86
86
|
{
|
|
@@ -90,16 +90,7 @@ export default class BrowserWindowRenderer
|
|
|
90
90
|
}
|
|
91
91
|
)}`
|
|
92
92
|
);
|
|
93
|
-
|
|
94
|
-
opts.logger.info(
|
|
95
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts constructor3 ${JSON.stringify(
|
|
96
|
-
{
|
|
97
|
-
bounds: this.offscreenWindow.getBounds(),
|
|
98
|
-
normalBounds: this.offscreenWindow.getNormalBounds(),
|
|
99
|
-
contentBounds: this.offscreenWindow.getContentBounds(),
|
|
100
|
-
}
|
|
101
|
-
)}`
|
|
102
|
-
);
|
|
93
|
+
|
|
103
94
|
if (opts.proxySettings) {
|
|
104
95
|
this.proxySettings = opts.proxySettings;
|
|
105
96
|
}
|
|
@@ -238,23 +229,25 @@ export default class BrowserWindowRenderer
|
|
|
238
229
|
);
|
|
239
230
|
}
|
|
240
231
|
|
|
232
|
+
this.logger.info(
|
|
233
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow4: ${JSON.stringify(
|
|
234
|
+
window.bounds
|
|
235
|
+
)}`
|
|
236
|
+
);
|
|
237
|
+
// TODO zlv added
|
|
241
238
|
if (window.view instanceof BrowserWindow) {
|
|
242
239
|
this.logger.info(
|
|
243
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts
|
|
244
|
-
window.bounds
|
|
245
|
-
)}`
|
|
240
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5: setFullScreen`
|
|
246
241
|
);
|
|
247
|
-
window.view.
|
|
242
|
+
window.view.setFullScreen(true);
|
|
248
243
|
} else {
|
|
249
244
|
this.logger.info(
|
|
250
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts
|
|
251
|
-
window.bounds
|
|
252
|
-
)}`
|
|
245
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow6: setBounds`
|
|
253
246
|
);
|
|
254
247
|
window.view.setBounds(window.bounds);
|
|
255
248
|
}
|
|
256
249
|
this.logger.info(
|
|
257
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts
|
|
250
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow7: ${JSON.stringify(
|
|
258
251
|
window.view.getBounds()
|
|
259
252
|
)}`
|
|
260
253
|
);
|
|
@@ -313,11 +306,7 @@ export default class BrowserWindowRenderer
|
|
|
313
306
|
// y: window.bounds.y + this.opts.bounds.y,
|
|
314
307
|
// });
|
|
315
308
|
// TODO zlv added
|
|
316
|
-
window.view.
|
|
317
|
-
...window.bounds,
|
|
318
|
-
x: window.bounds.x + this.opts.bounds.x,
|
|
319
|
-
y: window.bounds.y + this.opts.bounds.y,
|
|
320
|
-
});
|
|
309
|
+
window.view.setFullScreen(true);
|
|
321
310
|
|
|
322
311
|
this.logger.info(
|
|
323
312
|
`playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds3: ${JSON.stringify(
|