lyb-pixi-js 1.11.9 → 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",
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.9",
3
+ "version": "1.11.10",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {