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.
- package/Components/Base/LibPixiHtmlText.js +1 -1
- package/Components/Custom/LibPixiScrollContainerX.d.ts +2 -0
- package/Components/Custom/LibPixiScrollContainerX.js +2 -2
- package/Components/Custom/LibPixiScrollContainerY.d.ts +2 -0
- package/Components/Custom/LibPixiScrollContainerY.js +2 -2
- package/lyb-pixi.js +6 -5
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export class LibPixiHtmlText extends HTMLText {
|
|
|
14
14
|
breakWords: wordWrap,
|
|
15
15
|
fill: fontColor,
|
|
16
16
|
align,
|
|
17
|
-
whiteSpace: "
|
|
17
|
+
whiteSpace: "pre-line",
|
|
18
18
|
fontFamily: fontFamily,
|
|
19
19
|
stroke: stroke ? strokeColor : "transparent",
|
|
20
20
|
strokeThickness: stroke ? strokeThickness : 0,
|
|
@@ -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
|
/** 惯性速度 */
|
|
@@ -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: "
|
|
55008
|
+
whiteSpace: "pre-line",
|
|
55008
55009
|
fontFamily,
|
|
55009
55010
|
stroke: stroke ? strokeColor : "transparent",
|
|
55010
55011
|
strokeThickness: stroke ? strokeThickness : 0
|