keytops-game-framework 1.0.20 → 1.0.21
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.
|
@@ -109,13 +109,13 @@ export declare class ViewManager {
|
|
|
109
109
|
openTouch(token?: TouchLockToken): void;
|
|
110
110
|
/**
|
|
111
111
|
* 关闭当前场景的可交互性
|
|
112
|
-
* @param maskViewConfig 可选参数,默认为空白,要显示的遮罩试图。
|
|
113
112
|
* @param delay 可选参数,默认200毫秒,显示maskView的延迟时间。
|
|
113
|
+
* @param maskViewConfig 可选参数,默认为空白,要显示的遮罩试图。
|
|
114
114
|
* @returns 当前触摸锁令牌,可传给openTouch精确释放本次锁。
|
|
115
115
|
*/
|
|
116
|
-
closeTouch(maskViewConfig?: {
|
|
116
|
+
closeTouch(delay?: number, maskViewConfig?: {
|
|
117
117
|
prototype: IView;
|
|
118
|
-
} | ViewConfig | string
|
|
118
|
+
} | ViewConfig | string): Promise<TouchLockToken>;
|
|
119
119
|
private _lockTouch;
|
|
120
120
|
private _applyTouchState;
|
|
121
121
|
private _showMaskView;
|
package/dist/index.js
CHANGED
|
@@ -6990,11 +6990,11 @@ class ViewManager {
|
|
|
6990
6990
|
}
|
|
6991
6991
|
/**
|
|
6992
6992
|
* 关闭当前场景的可交互性
|
|
6993
|
-
* @param maskViewConfig 可选参数,默认为空白,要显示的遮罩试图。
|
|
6994
6993
|
* @param delay 可选参数,默认200毫秒,显示maskView的延迟时间。
|
|
6994
|
+
* @param maskViewConfig 可选参数,默认为空白,要显示的遮罩试图。
|
|
6995
6995
|
* @returns 当前触摸锁令牌,可传给openTouch精确释放本次锁。
|
|
6996
6996
|
*/
|
|
6997
|
-
closeTouch(
|
|
6997
|
+
closeTouch(delay = 200, maskViewConfig = null) {
|
|
6998
6998
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6999
6999
|
const token = this._lockTouch();
|
|
7000
7000
|
let config = maskViewConfig == null ? this._defaultMaskViewConfig : this._getViewConfig(maskViewConfig);
|