lyb-pixi-js 1.9.8 → 1.9.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.
@@ -14,7 +14,7 @@ export class LibPixiHtmlText extends HTMLText {
14
14
  breakWords: wordWrap,
15
15
  fill: fontColor,
16
16
  align,
17
- whiteSpace: "normal",
17
+ whiteSpace: "pre-line",
18
18
  fontFamily: fontFamily,
19
19
  stroke: stroke ? strokeColor : "transparent",
20
20
  strokeThickness: stroke ? strokeThickness : 0,
@@ -5,6 +5,8 @@ export interface LibPixiScrollContainerXParams {
5
5
  width: number;
6
6
  /** 高度 */
7
7
  height: number;
8
+ /** 背景色,用于定位 */
9
+ bgColor?: string;
8
10
  /** 滚动内容 */
9
11
  scrollContent: Container;
10
12
  }
@@ -6,8 +6,8 @@ import { LibPixiContainer } from "../Base/LibPixiContainer";
6
6
  */
7
7
  export class LibPixiScrollContainerX extends LibPixiContainer {
8
8
  constructor(params) {
9
- const { width, height, scrollContent } = params;
10
- super(width, height);
9
+ const { width, height, scrollContent, bgColor } = params;
10
+ super(width, height, bgColor);
11
11
  /** 开始位置 */
12
12
  this._startX = 0;
13
13
  /** 惯性速度 */
@@ -5,6 +5,8 @@ export interface LibPixiScrollContainerYParams {
5
5
  width: number;
6
6
  /** 高度 */
7
7
  height: number;
8
+ /** 背景色,用于定位 */
9
+ bgColor?: string;
8
10
  /** 滚动内容 */
9
11
  scrollContent: Container;
10
12
  /** 是否需要滚动条 */
@@ -8,8 +8,8 @@ import { LibPixiRectangle } from "../Base/LibPixiRectangle";
8
8
  */
9
9
  export class LibPixiScrollContainerY extends LibPixiContainer {
10
10
  constructor(params) {
11
- const { width, height, scrollbar = false, scrollContent, scrollbarRgiht, scrollbarWidth = 10, scrollbarColor = "#ffffff", onScroll, } = params;
12
- super(width, height);
11
+ const { width, height, scrollbar = false, scrollContent, scrollbarRgiht, scrollbarWidth = 10, scrollbarColor = "#ffffff", onScroll, bgColor, } = params;
12
+ super(width, height, bgColor);
13
13
  /** 开始位置 */
14
14
  this._startY = 0;
15
15
  /** 惯性速度 */
package/lyb-pixi.js CHANGED
@@ -49093,8 +49093,8 @@ void main(void)\r
49093
49093
  }
49094
49094
  class LibPixiScrollContainerX extends LibPixiContainer {
49095
49095
  constructor(params) {
49096
- const { width, height, scrollContent } = params;
49097
- super(width, height);
49096
+ const { width, height, scrollContent, bgColor } = params;
49097
+ super(width, height, bgColor);
49098
49098
  this._startX = 0;
49099
49099
  this._velocity = 0;
49100
49100
  this._startTime = 0;
@@ -49243,9 +49243,10 @@ void main(void)\r
49243
49243
  scrollbarRgiht,
49244
49244
  scrollbarWidth = 10,
49245
49245
  scrollbarColor = "#ffffff",
49246
- onScroll
49246
+ onScroll,
49247
+ bgColor
49247
49248
  } = params;
49248
- super(width, height);
49249
+ super(width, height, bgColor);
49249
49250
  this._startY = 0;
49250
49251
  this._velocity = 0;
49251
49252
  this._startTime = 0;
@@ -55004,7 +55005,7 @@ void main(void){
55004
55005
  breakWords: wordWrap,
55005
55006
  fill: fontColor,
55006
55007
  align,
55007
- whiteSpace: "normal",
55008
+ whiteSpace: "pre-line",
55008
55009
  fontFamily,
55009
55010
  stroke: stroke ? strokeColor : "transparent",
55010
55011
  strokeThickness: stroke ? strokeThickness : 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.9.8",
3
+ "version": "1.9.10",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {