lyb-pixi-js 1.12.21 → 1.12.23
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.
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
2
|
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
3
3
|
interface Params {
|
|
4
|
-
/** 舞台 */
|
|
5
|
-
stage: Container;
|
|
6
4
|
/** 宽度 */
|
|
7
5
|
width: number;
|
|
8
6
|
/** 高度 */
|
|
@@ -42,6 +40,8 @@ interface Params {
|
|
|
42
40
|
}
|
|
43
41
|
/** @description 动态缩放移动输入框 */
|
|
44
42
|
export declare class LibPixiInput extends LibPixiContainer {
|
|
43
|
+
/** 舞台 */
|
|
44
|
+
static stage: Container;
|
|
45
45
|
/** 参数 */
|
|
46
46
|
private _params;
|
|
47
47
|
/** 只读输入框 */
|
|
@@ -158,7 +158,7 @@ export class LibPixiInput extends LibPixiContainer {
|
|
|
158
158
|
this._input.style.width = `${width}px`;
|
|
159
159
|
this._input.style.height = `${height}px`;
|
|
160
160
|
this._input.style.fontSize = `${height * fontSizeRatio}px`;
|
|
161
|
-
if (
|
|
161
|
+
if (LibPixiInput.stage.rotation === 0) {
|
|
162
162
|
this._input.style.left = `${x}px`;
|
|
163
163
|
this._input.style.top = `${y}px`;
|
|
164
164
|
this._input.style.width = `${width}px`;
|
package/lyb-pixi.js
CHANGED
|
@@ -58338,7 +58338,7 @@ void main(void){
|
|
|
58338
58338
|
this._input.style.width = `${width}px`;
|
|
58339
58339
|
this._input.style.height = `${height}px`;
|
|
58340
58340
|
this._input.style.fontSize = `${height * fontSizeRatio}px`;
|
|
58341
|
-
if (
|
|
58341
|
+
if (LibPixiInput.stage.rotation === 0) {
|
|
58342
58342
|
this._input.style.left = `${x2}px`;
|
|
58343
58343
|
this._input.style.top = `${y2}px`;
|
|
58344
58344
|
this._input.style.width = `${width}px`;
|