lyb-pixi-js 1.11.28 → 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() {
package/lyb-pixi.js CHANGED
@@ -1907,15 +1907,7 @@
1907
1907
  };
1908
1908
  var implementation = implementation$1;
1909
1909
  var functionBind = Function.prototype.bind || implementation;
1910
- var functionCall;
1911
- var hasRequiredFunctionCall;
1912
- function requireFunctionCall() {
1913
- if (hasRequiredFunctionCall)
1914
- return functionCall;
1915
- hasRequiredFunctionCall = 1;
1916
- functionCall = Function.prototype.call;
1917
- return functionCall;
1918
- }
1910
+ var functionCall = Function.prototype.call;
1919
1911
  var functionApply;
1920
1912
  var hasRequiredFunctionApply;
1921
1913
  function requireFunctionApply() {
@@ -1928,12 +1920,12 @@
1928
1920
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
1929
1921
  var bind$2 = functionBind;
1930
1922
  var $apply$1 = requireFunctionApply();
1931
- var $call$2 = requireFunctionCall();
1923
+ var $call$2 = functionCall;
1932
1924
  var $reflectApply = reflectApply;
1933
1925
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
1934
1926
  var bind$1 = functionBind;
1935
1927
  var $TypeError$4 = type;
1936
- var $call$1 = requireFunctionCall();
1928
+ var $call$1 = functionCall;
1937
1929
  var $actualApply = actualApply;
1938
1930
  var callBindApplyHelpers = function callBindBasic2(args) {
1939
1931
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -2051,7 +2043,7 @@
2051
2043
  var $ObjectGPO = requireObject_getPrototypeOf();
2052
2044
  var $ReflectGPO = requireReflect_getPrototypeOf();
2053
2045
  var $apply = requireFunctionApply();
2054
- var $call = requireFunctionCall();
2046
+ var $call = functionCall;
2055
2047
  var needsEval = {};
2056
2048
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2057
2049
  var INTRINSICS = {
@@ -49292,7 +49284,7 @@ void main(void)\r
49292
49284
  height,
49293
49285
  scrollbar = false,
49294
49286
  scrollContent,
49295
- scrollbarRgiht,
49287
+ scrollbarRgiht = 0,
49296
49288
  scrollbarWidth = 10,
49297
49289
  scrollbarColor = "#ffffff",
49298
49290
  onScroll,
@@ -49308,6 +49300,8 @@ void main(void)\r
49308
49300
  this._isDragging = false;
49309
49301
  this._scrollbarDragging = false;
49310
49302
  this._scrollbarDragOffset = 0;
49303
+ this._scrollbarRgiht = scrollbarRgiht;
49304
+ this._scrollbarWidth = scrollbarWidth;
49311
49305
  this._scrollContent = scrollContent;
49312
49306
  this._scrollbarColor = scrollbarColor;
49313
49307
  this._onScroll = onScroll;
@@ -49379,7 +49373,7 @@ void main(void)\r
49379
49373
  this._maskGraphics.drawRect(0, 0, width, height);
49380
49374
  this._maskGraphics.endFill();
49381
49375
  this.setSize(width, height);
49382
- this._scrollbar.x = width - 50;
49376
+ this._scrollbar.x = width - (this._scrollbarRgiht || this._scrollbarWidth);
49383
49377
  }
49384
49378
  /** @description 返回顶部 */
49385
49379
  scrollToTop() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.28",
3
+ "version": "1.11.29",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {