@netless/telebox-insider 0.3.0-beta.12 → 0.3.0-beta.13
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/package.json
CHANGED
|
@@ -495,12 +495,12 @@ export class TeleBoxManager {
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
public get maxForceTopBox(): TeleBox | undefined {
|
|
498
|
-
return this.boxes.reduce((maxTopBox, box) => {
|
|
498
|
+
return this.boxes.reduce<TeleBox | undefined>((maxTopBox, box) => {
|
|
499
499
|
if (box.forceTop && box.zIndex > (maxTopBox?.zIndex ?? 0)) {
|
|
500
500
|
return box;
|
|
501
501
|
}
|
|
502
502
|
return maxTopBox;
|
|
503
|
-
});
|
|
503
|
+
}, undefined);
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
public get forceNormalBoxes(): TeleBox | undefined {
|