@gjzq/sdk 1.7.0-beta.1 → 1.7.0-beta.3
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,17 @@ 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
|
-
|
|
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 result = (res === null || res === void 0 ? void 0 : res.result) || {};
|
|
7452
|
+
var screenHeight = result.screenHeight,
|
|
7453
|
+
webViewHeight = result.webViewHeight;
|
|
7454
|
+
resolve(_assign(_assign({}, result), {
|
|
7455
|
+
isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
|
|
7456
|
+
}));
|
|
7457
|
+
}).catch(reject);
|
|
7463
7458
|
});
|
|
7464
7459
|
}
|
|
7465
7460
|
|
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,17 @@ 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
|
-
|
|
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 result = (res === null || res === void 0 ? void 0 : res.result) || {};
|
|
15
|
+
var screenHeight = result.screenHeight,
|
|
16
|
+
webViewHeight = result.webViewHeight;
|
|
17
|
+
resolve(_assign(_assign({}, result), {
|
|
18
|
+
isFull: !!screenHeight && !!webViewHeight && screenHeight === webViewHeight
|
|
19
|
+
}));
|
|
20
|
+
}).catch(reject);
|
|
26
21
|
});
|
|
27
22
|
}
|
|
28
23
|
|