@gjzq/sdk 1.6.3-beta.1 → 1.7.0-beta.2
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.
|
@@ -7444,22 +7444,16 @@ function nativeViewSet(options) {
|
|
|
7444
7444
|
* @returns {Promise<NativeViewParameters>}
|
|
7445
7445
|
*/
|
|
7446
7446
|
function nativeViewParametersGet() {
|
|
7447
|
-
return
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
screenHeight = res.screenHeight, webViewHeight = res.webViewHeight;
|
|
7458
|
-
return [2 /*return*/, _assign(_assign({}, res), {
|
|
7459
|
-
isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
|
|
7460
|
-
})];
|
|
7461
|
-
}
|
|
7462
|
-
});
|
|
7447
|
+
return new Promise(function (resolve, reject) {
|
|
7448
|
+
nativeIOOperation(3046, {
|
|
7449
|
+
checkWebHeight: '1'
|
|
7450
|
+
}).then(function (res) {
|
|
7451
|
+
var screenHeight = res.screenHeight,
|
|
7452
|
+
webViewHeight = res.webViewHeight;
|
|
7453
|
+
resolve(_assign(_assign({}, res), {
|
|
7454
|
+
isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
|
|
7455
|
+
}));
|
|
7456
|
+
}).catch(reject);
|
|
7463
7457
|
});
|
|
7464
7458
|
}
|
|
7465
7459
|
|
package/dist/index.js
CHANGED
package/dist/pure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __assign as _assign } from '../node_modules/tslib/tslib.es6.mjs';
|
|
2
2
|
import { nativeIOOperation } from '../nativeIOOperation/index.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -7,22 +7,16 @@ import { nativeIOOperation } from '../nativeIOOperation/index.mjs';
|
|
|
7
7
|
* @returns {Promise<NativeViewParameters>}
|
|
8
8
|
*/
|
|
9
9
|
function nativeViewParametersGet() {
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
screenHeight = res.screenHeight, webViewHeight = res.webViewHeight;
|
|
21
|
-
return [2 /*return*/, _assign(_assign({}, res), {
|
|
22
|
-
isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
|
|
23
|
-
})];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
10
|
+
return new Promise(function (resolve, reject) {
|
|
11
|
+
nativeIOOperation(3046, {
|
|
12
|
+
checkWebHeight: '1'
|
|
13
|
+
}).then(function (res) {
|
|
14
|
+
var screenHeight = res.screenHeight,
|
|
15
|
+
webViewHeight = res.webViewHeight;
|
|
16
|
+
resolve(_assign(_assign({}, res), {
|
|
17
|
+
isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
|
|
18
|
+
}));
|
|
19
|
+
}).catch(reject);
|
|
26
20
|
});
|
|
27
21
|
}
|
|
28
22
|
|