lyb-pixi-js 1.12.63 → 1.12.65
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/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
2
|
/** @description 获取本地边界坐标
|
|
3
|
-
*
|
|
3
|
+
* @param stage 舞台
|
|
4
|
+
* @param mode 模式:hv 横竖屏都适用,h 横屏,v 竖屏
|
|
4
5
|
*/
|
|
5
|
-
export declare const libPixiLocalBoundary: (
|
|
6
|
+
export declare const libPixiLocalBoundary: (stage: Container, mode: string) => {
|
|
6
7
|
isMobile: boolean;
|
|
7
8
|
isLandscape: boolean;
|
|
8
9
|
leftTop: import("pixi.js").Point;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { libJsIsMobile } from "lyb-js/Browser/LibJsIsMobile.js";
|
|
2
2
|
import { libJsIsPad } from "lyb-js/Browser/LibJsIsPad.js";
|
|
3
|
+
import { libJsHorizontal } from "lyb-js/Misc/LibJsHorizontal.js";
|
|
3
4
|
/** @description 获取本地边界坐标
|
|
4
|
-
*
|
|
5
|
+
* @param stage 舞台
|
|
6
|
+
* @param mode 模式:hv 横竖屏都适用,h 横屏,v 竖屏
|
|
5
7
|
*/
|
|
6
|
-
export const libPixiLocalBoundary = (
|
|
8
|
+
export const libPixiLocalBoundary = (stage, mode) => {
|
|
9
|
+
const { w, h } = libJsHorizontal(mode);
|
|
7
10
|
const isMobile = libJsIsMobile() || libJsIsPad();
|
|
8
11
|
const isLandscape = w > h;
|
|
9
12
|
const rightTarget = isMobile
|