lyb-pixi-js 1.11.27 → 1.11.29

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.
@@ -42,6 +42,10 @@ export declare class LibPixiScrollContainerY extends LibPixiContainer {
42
42
  private _scrollbarDragging;
43
43
  /** 滚动条拖动偏移量 */
44
44
  private _scrollbarDragOffset;
45
+ /** 滚动条右边距 */
46
+ private _scrollbarRgiht;
47
+ /** 滚动条宽度 */
48
+ private _scrollbarWidth;
45
49
  /** 滚动容器 */
46
50
  _scrollContent: Container;
47
51
  /** 遮罩 */
@@ -8,7 +8,7 @@ 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, bgColor, bottomMargin = 0, } = params;
11
+ const { width, height, scrollbar = false, scrollContent, scrollbarRgiht = 0, scrollbarWidth = 10, scrollbarColor = "#ffffff", onScroll, bgColor, bottomMargin = 0, } = params;
12
12
  super(width, height, bgColor);
13
13
  /** 开始位置 */
14
14
  this._startY = 0;
@@ -26,6 +26,8 @@ export class LibPixiScrollContainerY extends LibPixiContainer {
26
26
  this._scrollbarDragging = false;
27
27
  /** 滚动条拖动偏移量 */
28
28
  this._scrollbarDragOffset = 0;
29
+ this._scrollbarRgiht = scrollbarRgiht;
30
+ this._scrollbarWidth = scrollbarWidth;
29
31
  this._scrollContent = scrollContent;
30
32
  this._scrollbarColor = scrollbarColor;
31
33
  this._onScroll = onScroll;
@@ -96,7 +98,7 @@ export class LibPixiScrollContainerY extends LibPixiContainer {
96
98
  this._maskGraphics.drawRect(0, 0, width, height);
97
99
  this._maskGraphics.endFill();
98
100
  this.setSize(width, height);
99
- this._scrollbar.x = width - 50;
101
+ this._scrollbar.x = width - (this._scrollbarRgiht || this._scrollbarWidth);
100
102
  }
101
103
  /** @description 返回顶部 */
102
104
  scrollToTop() {
@@ -1,6 +1,6 @@
1
1
  /** @description 设置滤镜 */
2
2
  import { ColorMatrixFilter, BlurFilter } from "pixi.js";
3
- export type LibPixiSetFilterFilterName = "brightness" | "blur" | "desaturate" | "contrast";
3
+ export type LibPixiSetFilterFilterName = "brightness" | "blur" | "desaturate" | "contrast" | "saturate";
4
4
  /** @description 滤镜
5
5
  * @param filterName 滤镜名称
6
6
  * @param v 滤镜值
package/lyb-pixi.js CHANGED
@@ -49284,7 +49284,7 @@ void main(void)\r
49284
49284
  height,
49285
49285
  scrollbar = false,
49286
49286
  scrollContent,
49287
- scrollbarRgiht,
49287
+ scrollbarRgiht = 0,
49288
49288
  scrollbarWidth = 10,
49289
49289
  scrollbarColor = "#ffffff",
49290
49290
  onScroll,
@@ -49300,6 +49300,8 @@ void main(void)\r
49300
49300
  this._isDragging = false;
49301
49301
  this._scrollbarDragging = false;
49302
49302
  this._scrollbarDragOffset = 0;
49303
+ this._scrollbarRgiht = scrollbarRgiht;
49304
+ this._scrollbarWidth = scrollbarWidth;
49303
49305
  this._scrollContent = scrollContent;
49304
49306
  this._scrollbarColor = scrollbarColor;
49305
49307
  this._onScroll = onScroll;
@@ -49371,7 +49373,7 @@ void main(void)\r
49371
49373
  this._maskGraphics.drawRect(0, 0, width, height);
49372
49374
  this._maskGraphics.endFill();
49373
49375
  this.setSize(width, height);
49374
- this._scrollbar.x = width - 50;
49376
+ this._scrollbar.x = width - (this._scrollbarRgiht || this._scrollbarWidth);
49375
49377
  }
49376
49378
  /** @description 返回顶部 */
49377
49379
  scrollToTop() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.27",
3
+ "version": "1.11.29",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {