lyb-pixi-js 1.9.15 → 1.9.17

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.
@@ -4,7 +4,7 @@ import { HTMLText, } from "pixi.js";
4
4
  */
5
5
  export class LibPixiHtmlText extends HTMLText {
6
6
  constructor(options) {
7
- const { text, fontSize = 36, fontColor = 0xffffff, stroke, strokeThickness, fontFamily = "Arial", fontWeight = "normal", wordWrapWidth = 100, lineHeight = 1.25, align = "left", shadow, } = options;
7
+ const { text, fontSize = 36, fontColor = 0xffffff, stroke, strokeThickness, fontFamily = "Arial", fontWeight = "normal", wordWrapWidth, lineHeight = 1.25, align = "left", shadow, } = options;
8
8
  super(text.toString(), {
9
9
  fontSize,
10
10
  wordWrap: !!wordWrapWidth,
@@ -4,7 +4,7 @@ import { Text, TextStyle, } from "pixi.js";
4
4
  */
5
5
  export class LibPixiText extends Text {
6
6
  constructor(options) {
7
- const { text, fontSize = 36, fontColor = 0xffffff, stroke, strokeThickness, fontFamily = "Arial", fontWeight = "normal", wordWrapWidth, lineHeight = 1.25, align = "left", indent = 0, shadow, } = options;
7
+ const { text, fontSize = 36, fontColor = 0xffffff, stroke, strokeThickness, fontFamily = "Arial", fontWeight = "normal", wordWrapWidth, lineHeight = 1, align = "left", indent = 0, shadow, } = options;
8
8
  const style = new TextStyle({
9
9
  fontSize,
10
10
  wordWrap: !!wordWrapWidth,
package/README.md CHANGED
@@ -193,8 +193,6 @@ interface LibPixiTextParams {
193
193
  fontFamily?: string;
194
194
  /** 字体粗细 */
195
195
  fontWeight?: TextStyleFontWeight;
196
- /** 是否换行 */
197
- wordWrap?: boolean;
198
196
  /** 换行宽度 */
199
197
  wordWrapWidth?: number;
200
198
  /** 行高 */
@@ -233,8 +231,6 @@ interface LibPixiHtmlTextParams {
233
231
  fontFamily?: string;
234
232
  /** 字体粗细 */
235
233
  fontWeight?: TextStyleFontWeight;
236
- /** 是否换行 */
237
- wordWrap?: boolean;
238
234
  /** 换行宽度 */
239
235
  wordWrapWidth?: number;
240
236
  /** 行高 */
package/lyb-pixi.js CHANGED
@@ -31862,7 +31862,7 @@ void main(void)\r
31862
31862
  fontFamily = "Arial",
31863
31863
  fontWeight = "normal",
31864
31864
  wordWrapWidth,
31865
- lineHeight = 1.25,
31865
+ lineHeight = 1,
31866
31866
  align = "left",
31867
31867
  indent = 0,
31868
31868
  shadow
@@ -55017,7 +55017,7 @@ void main(void){
55017
55017
  strokeThickness,
55018
55018
  fontFamily = "Arial",
55019
55019
  fontWeight = "normal",
55020
- wordWrapWidth = 100,
55020
+ wordWrapWidth,
55021
55021
  lineHeight = 1.25,
55022
55022
  align = "left",
55023
55023
  shadow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.9.15",
3
+ "version": "1.9.17",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {