@lynx-js/lynxtron 0.0.2 → 0.0.4
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/apis/api/lynx-window.d.ts +12 -3
- package/package.json +1 -1
- package/utils/env-config.js +2 -2
|
@@ -26,6 +26,15 @@ export interface LynxWindowConstructorOptions {
|
|
|
26
26
|
* Window's height in pixels. Default is `600`.
|
|
27
27
|
*/
|
|
28
28
|
height?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Device scale factor used by windowless rendering. Default is `1`.
|
|
31
|
+
*/
|
|
32
|
+
deviceScaleFactor?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to create the Lynx view with a windowless renderer instead of a
|
|
35
|
+
* native parent window. Default is `false`.
|
|
36
|
+
*/
|
|
37
|
+
windowless?: boolean;
|
|
29
38
|
/**
|
|
30
39
|
* (**required** if y is used) Window's left offset from screen. Default is to
|
|
31
40
|
* center the window.
|
|
@@ -247,18 +256,18 @@ export interface LynxWindowConstructorOptions {
|
|
|
247
256
|
}
|
|
248
257
|
|
|
249
258
|
export interface LynxBridgeInvokeEvent {
|
|
250
|
-
sendReply(result?:
|
|
259
|
+
sendReply(result?: any): boolean;
|
|
251
260
|
}
|
|
252
261
|
|
|
253
262
|
export type LynxBridgeInvokeListener = (
|
|
254
263
|
event: LynxBridgeInvokeEvent,
|
|
255
264
|
methodName: string,
|
|
256
|
-
params:
|
|
265
|
+
params: any
|
|
257
266
|
) => void | Promise<void>;
|
|
258
267
|
|
|
259
268
|
export type LynxBridgeMessageListener = (
|
|
260
269
|
methodName: string,
|
|
261
|
-
params:
|
|
270
|
+
params: any
|
|
262
271
|
) => void;
|
|
263
272
|
|
|
264
273
|
export declare class LynxWindow extends BaseWindow {
|
package/package.json
CHANGED
package/utils/env-config.js
CHANGED
|
@@ -13,8 +13,8 @@ function getPlatformPath (platform) {
|
|
|
13
13
|
return 'lynxtron.app/Contents/MacOS/lynxtron';
|
|
14
14
|
// case 'freebsd':
|
|
15
15
|
// case 'openbsd':
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
case 'linux':
|
|
17
|
+
return 'lynxtron';
|
|
18
18
|
case 'win32':
|
|
19
19
|
return 'lynxtron.exe';
|
|
20
20
|
default:
|