lyb-pixi-js 1.11.8 → 1.11.10

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.
@@ -29,5 +29,7 @@ export interface LibPixiTextParams {
29
29
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiText-文本
30
30
  */
31
31
  export declare class LibPixiText extends Text {
32
+ /** 字体 */
33
+ static fontFamily: string;
32
34
  constructor(options: LibPixiTextParams);
33
35
  }
@@ -14,7 +14,7 @@ export class LibPixiText extends Text {
14
14
  breakWords: !!wordWrapWidth,
15
15
  fill: fontColor,
16
16
  align,
17
- fontFamily: fontFamily,
17
+ fontFamily: LibPixiText.fontFamily || fontFamily,
18
18
  stroke: stroke ? stroke : "transparent",
19
19
  strokeThickness: strokeThickness ? strokeThickness : 0,
20
20
  lineJoin: "round",
@@ -16,7 +16,7 @@ export declare class LibPixiDialog extends LibPixiBaseContainer {
16
16
  static durationIn: number;
17
17
  static durationOut: number;
18
18
  /** 是否支持横竖版 */
19
- static adaptation: boolean;
19
+ static adaptation: "hv" | "h" | "v";
20
20
  /** 蒙版UI */
21
21
  private _maskUI;
22
22
  /** 内容容器 */
@@ -63,7 +63,7 @@ export class LibPixiDialog extends LibPixiBaseContainer {
63
63
  duration: LibPixiDialog.durationIn,
64
64
  alpha: 1,
65
65
  });
66
- const resize = new LibJsResizeWatcher(LibPixiDialog.adaptation ? "hv" : "h");
66
+ const resize = new LibJsResizeWatcher(LibPixiDialog.adaptation);
67
67
  this._offResize = resize.on((w, h) => {
68
68
  const halfW = 1920 / 2;
69
69
  const halfH = 1080 / 2;
@@ -126,4 +126,4 @@ LibPixiDialog.bgAlpha = 0.5;
126
126
  LibPixiDialog.durationIn = 0.5;
127
127
  LibPixiDialog.durationOut = 0.5;
128
128
  /** 是否支持横竖版 */
129
- LibPixiDialog.adaptation = true;
129
+ LibPixiDialog.adaptation = "hv";
package/lyb-pixi.js CHANGED
@@ -31852,7 +31852,7 @@ void main(void)\r
31852
31852
  breakWords: !!wordWrapWidth,
31853
31853
  fill: fontColor,
31854
31854
  align,
31855
- fontFamily,
31855
+ fontFamily: LibPixiText.fontFamily || fontFamily,
31856
31856
  stroke: stroke ? stroke : "transparent",
31857
31857
  strokeThickness: strokeThickness ? strokeThickness : 0,
31858
31858
  lineJoin: "round"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.8",
3
+ "version": "1.11.10",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {