lyb-pixi-js 1.9.10 → 1.9.12
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/LibPixiParticleMove.js +0 -1
- package/Components/Base/LibPixiText.d.ts +0 -2
- package/Components/Base/LibPixiText.js +4 -4
- package/Components/Custom/LibPixiScrollContainerX.d.ts +4 -2
- package/Components/Custom/LibPixiScrollContainerX.js +6 -2
- package/Components/Custom/LibPixiScrollContainerY.d.ts +4 -2
- package/Components/Custom/LibPixiScrollContainerY.js +6 -2
- package/Utils/LibPixiDownScaleAnimation.d.ts +2 -1
- package/Utils/LibPixiDownScaleAnimation.js +3 -2
- package/libPixiJs.d.ts +1 -1
- package/lyb-pixi.js +122 -93
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Text, TextStyle } from "pixi.js";
|
|
1
|
+
import { Text, TextStyle, } from "pixi.js";
|
|
2
2
|
/** @description 自定义文本类
|
|
3
3
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiText-文本
|
|
4
4
|
*/
|
|
5
5
|
export class LibPixiText extends Text {
|
|
6
6
|
constructor(options) {
|
|
7
|
-
const { text, fontSize = 36, fontColor = 0xffffff,
|
|
7
|
+
const { text, fontSize = 36, fontColor = 0xffffff, strokeColor, strokeThickness, fontFamily = "Arial", fontWeight = "normal", wordWrap = false, wordWrapWidth = 100, lineHeight = 1.25, align = "left", indent = 0, shadow, } = options;
|
|
8
8
|
const style = new TextStyle({
|
|
9
9
|
fontSize,
|
|
10
10
|
wordWrap,
|
|
@@ -15,8 +15,8 @@ export class LibPixiText extends Text {
|
|
|
15
15
|
fill: fontColor,
|
|
16
16
|
align,
|
|
17
17
|
fontFamily: fontFamily,
|
|
18
|
-
stroke:
|
|
19
|
-
strokeThickness:
|
|
18
|
+
stroke: strokeColor ? strokeColor : "transparent",
|
|
19
|
+
strokeThickness: strokeThickness ? strokeThickness : 0,
|
|
20
20
|
lineJoin: "round",
|
|
21
21
|
});
|
|
22
22
|
if (shadow) {
|
|
@@ -5,10 +5,12 @@ export interface LibPixiScrollContainerXParams {
|
|
|
5
5
|
width: number;
|
|
6
6
|
/** 高度 */
|
|
7
7
|
height: number;
|
|
8
|
-
/** 背景色,用于定位 */
|
|
9
|
-
bgColor?: string;
|
|
10
8
|
/** 滚动内容 */
|
|
11
9
|
scrollContent: Container;
|
|
10
|
+
/** 背景色,用于定位 */
|
|
11
|
+
bgColor?: string;
|
|
12
|
+
/** 右边距 */
|
|
13
|
+
rightMargin?: number;
|
|
12
14
|
}
|
|
13
15
|
/** @description 支持鼠标滚轮滚动、鼠标拖动、手指滑动,支持惯性滚动及回弹
|
|
14
16
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiScrollContainerX-X 轴滚动容器
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Container, Graphics } from "pixi.js";
|
|
1
|
+
import { Container, Graphics, Sprite, } from "pixi.js";
|
|
2
2
|
import { gsap } from "gsap";
|
|
3
3
|
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
4
4
|
/** @description 支持鼠标滚轮滚动、鼠标拖动、手指滑动,支持惯性滚动及回弹
|
|
@@ -6,7 +6,7 @@ import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
|
6
6
|
*/
|
|
7
7
|
export class LibPixiScrollContainerX extends LibPixiContainer {
|
|
8
8
|
constructor(params) {
|
|
9
|
-
const { width, height, scrollContent, bgColor } = params;
|
|
9
|
+
const { width, height, scrollContent, bgColor, rightMargin = 0 } = params;
|
|
10
10
|
super(width, height, bgColor);
|
|
11
11
|
/** 开始位置 */
|
|
12
12
|
this._startX = 0;
|
|
@@ -25,6 +25,10 @@ export class LibPixiScrollContainerX extends LibPixiContainer {
|
|
|
25
25
|
this._content = new Container();
|
|
26
26
|
this.addChild(this._content);
|
|
27
27
|
this._content.addChild(this._scrollContent);
|
|
28
|
+
//创建右边距
|
|
29
|
+
const rightMarginBox = new Sprite();
|
|
30
|
+
this._content.addChild(rightMarginBox);
|
|
31
|
+
rightMarginBox.height = this._content.width + rightMargin;
|
|
28
32
|
// 创建遮罩
|
|
29
33
|
this._maskGraphics = new Graphics();
|
|
30
34
|
this.addChild(this._maskGraphics);
|
|
@@ -5,10 +5,12 @@ export interface LibPixiScrollContainerYParams {
|
|
|
5
5
|
width: number;
|
|
6
6
|
/** 高度 */
|
|
7
7
|
height: number;
|
|
8
|
-
/** 背景色,用于定位 */
|
|
9
|
-
bgColor?: string;
|
|
10
8
|
/** 滚动内容 */
|
|
11
9
|
scrollContent: Container;
|
|
10
|
+
/** 底部边距 */
|
|
11
|
+
bottomMargin?: number;
|
|
12
|
+
/** 背景色,用于定位 */
|
|
13
|
+
bgColor?: string;
|
|
12
14
|
/** 是否需要滚动条 */
|
|
13
15
|
scrollbar?: boolean;
|
|
14
16
|
/** 滚动靠右坐标 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Container } from "pixi.js";
|
|
1
|
+
import { Container, Sprite } from "pixi.js";
|
|
2
2
|
import { gsap } from "gsap";
|
|
3
3
|
import { libPixiEvent } from "../../Utils/LibPixiEvent";
|
|
4
4
|
import { LibPixiContainer } from "../Base/LibPixiContainer";
|
|
@@ -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, } = params;
|
|
11
|
+
const { width, height, scrollbar = false, scrollContent, scrollbarRgiht, scrollbarWidth = 10, scrollbarColor = "#ffffff", onScroll, bgColor, bottomMargin = 0, } = params;
|
|
12
12
|
super(width, height, bgColor);
|
|
13
13
|
/** 开始位置 */
|
|
14
14
|
this._startY = 0;
|
|
@@ -33,6 +33,10 @@ export class LibPixiScrollContainerY extends LibPixiContainer {
|
|
|
33
33
|
this._content = new Container();
|
|
34
34
|
this.addChild(this._content);
|
|
35
35
|
this._content.addChild(this._scrollContent);
|
|
36
|
+
//创建底部边距
|
|
37
|
+
const bottomMarginBox = new Sprite();
|
|
38
|
+
this._content.addChild(bottomMarginBox);
|
|
39
|
+
bottomMarginBox.height = this._content.height + bottomMargin;
|
|
36
40
|
// 创建遮罩
|
|
37
41
|
this._maskGraphics = new LibPixiRectangle(width, height, "#000");
|
|
38
42
|
this.addChild(this._maskGraphics);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Container } from "pixi.js";
|
|
2
2
|
/** @description 按下放大
|
|
3
3
|
* @param container 要放大的容器
|
|
4
|
+
* @param type 缩放类型
|
|
4
5
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiDownScaleAnimation-按下放大
|
|
5
6
|
*/
|
|
6
|
-
export declare const LibPixiDownScaleAnimation: (container: Container) => void;
|
|
7
|
+
export declare const LibPixiDownScaleAnimation: (container: Container, type?: "small" | "big") => void;
|
|
@@ -2,14 +2,15 @@ import { libPixiEvent } from "./LibPixiEvent";
|
|
|
2
2
|
import gsap from "gsap";
|
|
3
3
|
/** @description 按下放大
|
|
4
4
|
* @param container 要放大的容器
|
|
5
|
+
* @param type 缩放类型
|
|
5
6
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiDownScaleAnimation-按下放大
|
|
6
7
|
*/
|
|
7
|
-
export const LibPixiDownScaleAnimation = (container) => {
|
|
8
|
+
export const LibPixiDownScaleAnimation = (container, type = "big") => {
|
|
8
9
|
libPixiEvent(container, "pointerdown", () => {
|
|
9
10
|
gsap.to(container, {
|
|
10
11
|
duration: 0.1,
|
|
11
12
|
pixi: {
|
|
12
|
-
scale: 1.1,
|
|
13
|
+
scale: type === "big" ? 1.1 : 0.9,
|
|
13
14
|
},
|
|
14
15
|
});
|
|
15
16
|
});
|
package/libPixiJs.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export declare const Utils: {
|
|
|
208
208
|
* @param container 要放大的容器
|
|
209
209
|
* @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiDownScaleAnimation-按下放大
|
|
210
210
|
*/
|
|
211
|
-
LibPixiDownScaleAnimation: (container: import("pixi.js").Container) => void;
|
|
211
|
+
LibPixiDownScaleAnimation: (container: import("pixi.js").Container, type?: "small" | "big") => void;
|
|
212
212
|
/**
|
|
213
213
|
* @description 将元素按照指定的列数和间隔排列成网格布局。
|
|
214
214
|
* @param items 要排列的元素数组
|
package/lyb-pixi.js
CHANGED
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
var ys = arrObjKeys(obj, inspect2);
|
|
1316
1316
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1317
1317
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
1318
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr
|
|
1318
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
1319
1319
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
1320
1320
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
1321
1321
|
if (ys.length === 0) {
|
|
@@ -1337,25 +1337,25 @@
|
|
|
1337
1337
|
return $replace$1.call(String(s2), /"/g, """);
|
|
1338
1338
|
}
|
|
1339
1339
|
function isArray$3(obj) {
|
|
1340
|
-
return toStr
|
|
1340
|
+
return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1341
1341
|
}
|
|
1342
1342
|
function isDate(obj) {
|
|
1343
|
-
return toStr
|
|
1343
|
+
return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1344
1344
|
}
|
|
1345
1345
|
function isRegExp$1(obj) {
|
|
1346
|
-
return toStr
|
|
1346
|
+
return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1347
1347
|
}
|
|
1348
1348
|
function isError(obj) {
|
|
1349
|
-
return toStr
|
|
1349
|
+
return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1350
1350
|
}
|
|
1351
1351
|
function isString(obj) {
|
|
1352
|
-
return toStr
|
|
1352
|
+
return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1353
1353
|
}
|
|
1354
1354
|
function isNumber(obj) {
|
|
1355
|
-
return toStr
|
|
1355
|
+
return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1356
1356
|
}
|
|
1357
1357
|
function isBoolean(obj) {
|
|
1358
|
-
return toStr
|
|
1358
|
+
return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
|
|
1359
1359
|
}
|
|
1360
1360
|
function isSymbol(obj) {
|
|
1361
1361
|
if (hasShammedSymbols) {
|
|
@@ -1391,7 +1391,7 @@
|
|
|
1391
1391
|
function has$3(obj, key) {
|
|
1392
1392
|
return hasOwn$1.call(obj, key);
|
|
1393
1393
|
}
|
|
1394
|
-
function toStr
|
|
1394
|
+
function toStr(obj) {
|
|
1395
1395
|
return objectToString.call(obj);
|
|
1396
1396
|
}
|
|
1397
1397
|
function nameOf(f2) {
|
|
@@ -1700,7 +1700,7 @@
|
|
|
1700
1700
|
var uri = URIError;
|
|
1701
1701
|
var abs$1 = Math.abs;
|
|
1702
1702
|
var floor$1 = Math.floor;
|
|
1703
|
-
var max$
|
|
1703
|
+
var max$1 = Math.max;
|
|
1704
1704
|
var min$1 = Math.min;
|
|
1705
1705
|
var pow$1 = Math.pow;
|
|
1706
1706
|
var round$2 = Math.round;
|
|
@@ -1833,78 +1833,102 @@
|
|
|
1833
1833
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
1834
1834
|
return Object_getPrototypeOf;
|
|
1835
1835
|
}
|
|
1836
|
-
var
|
|
1837
|
-
var
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
1851
|
-
var arr = [];
|
|
1852
|
-
for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
1853
|
-
arr[j2] = arrLike[i2];
|
|
1854
|
-
}
|
|
1855
|
-
return arr;
|
|
1856
|
-
};
|
|
1857
|
-
var joiny = function(arr, joiner) {
|
|
1858
|
-
var str = "";
|
|
1859
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
1860
|
-
str += arr[i2];
|
|
1861
|
-
if (i2 + 1 < arr.length) {
|
|
1862
|
-
str += joiner;
|
|
1836
|
+
var implementation;
|
|
1837
|
+
var hasRequiredImplementation;
|
|
1838
|
+
function requireImplementation() {
|
|
1839
|
+
if (hasRequiredImplementation)
|
|
1840
|
+
return implementation;
|
|
1841
|
+
hasRequiredImplementation = 1;
|
|
1842
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
1843
|
+
var toStr2 = Object.prototype.toString;
|
|
1844
|
+
var max2 = Math.max;
|
|
1845
|
+
var funcType = "[object Function]";
|
|
1846
|
+
var concatty = function concatty2(a2, b2) {
|
|
1847
|
+
var arr = [];
|
|
1848
|
+
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
1849
|
+
arr[i2] = a2[i2];
|
|
1863
1850
|
}
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
if (
|
|
1881
|
-
|
|
1851
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
1852
|
+
arr[j2 + a2.length] = b2[j2];
|
|
1853
|
+
}
|
|
1854
|
+
return arr;
|
|
1855
|
+
};
|
|
1856
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
1857
|
+
var arr = [];
|
|
1858
|
+
for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
1859
|
+
arr[j2] = arrLike[i2];
|
|
1860
|
+
}
|
|
1861
|
+
return arr;
|
|
1862
|
+
};
|
|
1863
|
+
var joiny = function(arr, joiner) {
|
|
1864
|
+
var str = "";
|
|
1865
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
1866
|
+
str += arr[i2];
|
|
1867
|
+
if (i2 + 1 < arr.length) {
|
|
1868
|
+
str += joiner;
|
|
1882
1869
|
}
|
|
1883
|
-
return this;
|
|
1884
1870
|
}
|
|
1885
|
-
return
|
|
1886
|
-
that,
|
|
1887
|
-
concatty(args, arguments)
|
|
1888
|
-
);
|
|
1871
|
+
return str;
|
|
1889
1872
|
};
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
var
|
|
1873
|
+
implementation = function bind2(that) {
|
|
1874
|
+
var target = this;
|
|
1875
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
1876
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1877
|
+
}
|
|
1878
|
+
var args = slicy(arguments, 1);
|
|
1879
|
+
var bound;
|
|
1880
|
+
var binder = function() {
|
|
1881
|
+
if (this instanceof bound) {
|
|
1882
|
+
var result = target.apply(
|
|
1883
|
+
this,
|
|
1884
|
+
concatty(args, arguments)
|
|
1885
|
+
);
|
|
1886
|
+
if (Object(result) === result) {
|
|
1887
|
+
return result;
|
|
1888
|
+
}
|
|
1889
|
+
return this;
|
|
1890
|
+
}
|
|
1891
|
+
return target.apply(
|
|
1892
|
+
that,
|
|
1893
|
+
concatty(args, arguments)
|
|
1894
|
+
);
|
|
1898
1895
|
};
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1896
|
+
var boundLength = max2(0, target.length - args.length);
|
|
1897
|
+
var boundArgs = [];
|
|
1898
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
1899
|
+
boundArgs[i2] = "$" + i2;
|
|
1900
|
+
}
|
|
1901
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
1902
|
+
if (target.prototype) {
|
|
1903
|
+
var Empty = function Empty2() {
|
|
1904
|
+
};
|
|
1905
|
+
Empty.prototype = target.prototype;
|
|
1906
|
+
bound.prototype = new Empty();
|
|
1907
|
+
Empty.prototype = null;
|
|
1908
|
+
}
|
|
1909
|
+
return bound;
|
|
1910
|
+
};
|
|
1911
|
+
return implementation;
|
|
1912
|
+
}
|
|
1913
|
+
var functionBind;
|
|
1914
|
+
var hasRequiredFunctionBind;
|
|
1915
|
+
function requireFunctionBind() {
|
|
1916
|
+
if (hasRequiredFunctionBind)
|
|
1917
|
+
return functionBind;
|
|
1918
|
+
hasRequiredFunctionBind = 1;
|
|
1919
|
+
var implementation2 = requireImplementation();
|
|
1920
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
1921
|
+
return functionBind;
|
|
1922
|
+
}
|
|
1923
|
+
var functionCall;
|
|
1924
|
+
var hasRequiredFunctionCall;
|
|
1925
|
+
function requireFunctionCall() {
|
|
1926
|
+
if (hasRequiredFunctionCall)
|
|
1927
|
+
return functionCall;
|
|
1928
|
+
hasRequiredFunctionCall = 1;
|
|
1929
|
+
functionCall = Function.prototype.call;
|
|
1930
|
+
return functionCall;
|
|
1931
|
+
}
|
|
1908
1932
|
var functionApply;
|
|
1909
1933
|
var hasRequiredFunctionApply;
|
|
1910
1934
|
function requireFunctionApply() {
|
|
@@ -1915,14 +1939,14 @@
|
|
|
1915
1939
|
return functionApply;
|
|
1916
1940
|
}
|
|
1917
1941
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
1918
|
-
var bind$2 =
|
|
1942
|
+
var bind$2 = requireFunctionBind();
|
|
1919
1943
|
var $apply$1 = requireFunctionApply();
|
|
1920
|
-
var $call$2 =
|
|
1944
|
+
var $call$2 = requireFunctionCall();
|
|
1921
1945
|
var $reflectApply = reflectApply;
|
|
1922
1946
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
1923
|
-
var bind$1 =
|
|
1947
|
+
var bind$1 = requireFunctionBind();
|
|
1924
1948
|
var $TypeError$4 = type;
|
|
1925
|
-
var $call$1 =
|
|
1949
|
+
var $call$1 = requireFunctionCall();
|
|
1926
1950
|
var $actualApply = actualApply;
|
|
1927
1951
|
var callBindApplyHelpers = function callBindBasic2(args) {
|
|
1928
1952
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -1991,7 +2015,7 @@
|
|
|
1991
2015
|
hasRequiredHasown = 1;
|
|
1992
2016
|
var call = Function.prototype.call;
|
|
1993
2017
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
1994
|
-
var bind2 =
|
|
2018
|
+
var bind2 = requireFunctionBind();
|
|
1995
2019
|
hasown = bind2.call(call, $hasOwn);
|
|
1996
2020
|
return hasown;
|
|
1997
2021
|
}
|
|
@@ -2006,7 +2030,7 @@
|
|
|
2006
2030
|
var $URIError = uri;
|
|
2007
2031
|
var abs = abs$1;
|
|
2008
2032
|
var floor = floor$1;
|
|
2009
|
-
var max = max$
|
|
2033
|
+
var max = max$1;
|
|
2010
2034
|
var min = min$1;
|
|
2011
2035
|
var pow = pow$1;
|
|
2012
2036
|
var round$1 = round$2;
|
|
@@ -2040,7 +2064,7 @@
|
|
|
2040
2064
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
2041
2065
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
2042
2066
|
var $apply = requireFunctionApply();
|
|
2043
|
-
var $call =
|
|
2067
|
+
var $call = requireFunctionCall();
|
|
2044
2068
|
var needsEval = {};
|
|
2045
2069
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
2046
2070
|
var INTRINSICS = {
|
|
@@ -2210,7 +2234,7 @@
|
|
|
2210
2234
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2211
2235
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2212
2236
|
};
|
|
2213
|
-
var bind =
|
|
2237
|
+
var bind = requireFunctionBind();
|
|
2214
2238
|
var hasOwn = requireHasown();
|
|
2215
2239
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
2216
2240
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
@@ -31833,7 +31857,6 @@ void main(void)\r
|
|
|
31833
31857
|
text,
|
|
31834
31858
|
fontSize = 36,
|
|
31835
31859
|
fontColor = 16777215,
|
|
31836
|
-
stroke,
|
|
31837
31860
|
strokeColor,
|
|
31838
31861
|
strokeThickness,
|
|
31839
31862
|
fontFamily = "Arial",
|
|
@@ -31855,8 +31878,8 @@ void main(void)\r
|
|
|
31855
31878
|
fill: fontColor,
|
|
31856
31879
|
align,
|
|
31857
31880
|
fontFamily,
|
|
31858
|
-
stroke:
|
|
31859
|
-
strokeThickness:
|
|
31881
|
+
stroke: strokeColor ? strokeColor : "transparent",
|
|
31882
|
+
strokeThickness: strokeThickness ? strokeThickness : 0,
|
|
31860
31883
|
lineJoin: "round"
|
|
31861
31884
|
});
|
|
31862
31885
|
if (shadow) {
|
|
@@ -31966,7 +31989,6 @@ void main(void)\r
|
|
|
31966
31989
|
const text = new LibPixiText({
|
|
31967
31990
|
text: index + 1,
|
|
31968
31991
|
fontSize: 20,
|
|
31969
|
-
stroke: true,
|
|
31970
31992
|
strokeColor: "#000",
|
|
31971
31993
|
strokeThickness: 1
|
|
31972
31994
|
});
|
|
@@ -49093,7 +49115,7 @@ void main(void)\r
|
|
|
49093
49115
|
}
|
|
49094
49116
|
class LibPixiScrollContainerX extends LibPixiContainer {
|
|
49095
49117
|
constructor(params) {
|
|
49096
|
-
const { width, height, scrollContent, bgColor } = params;
|
|
49118
|
+
const { width, height, scrollContent, bgColor, rightMargin = 0 } = params;
|
|
49097
49119
|
super(width, height, bgColor);
|
|
49098
49120
|
this._startX = 0;
|
|
49099
49121
|
this._velocity = 0;
|
|
@@ -49105,6 +49127,9 @@ void main(void)\r
|
|
|
49105
49127
|
this._content = new Container();
|
|
49106
49128
|
this.addChild(this._content);
|
|
49107
49129
|
this._content.addChild(this._scrollContent);
|
|
49130
|
+
const rightMarginBox = new Sprite();
|
|
49131
|
+
this._content.addChild(rightMarginBox);
|
|
49132
|
+
rightMarginBox.height = this._content.width + rightMargin;
|
|
49108
49133
|
this._maskGraphics = new Graphics();
|
|
49109
49134
|
this.addChild(this._maskGraphics);
|
|
49110
49135
|
this._maskGraphics.clear();
|
|
@@ -49244,7 +49269,8 @@ void main(void)\r
|
|
|
49244
49269
|
scrollbarWidth = 10,
|
|
49245
49270
|
scrollbarColor = "#ffffff",
|
|
49246
49271
|
onScroll,
|
|
49247
|
-
bgColor
|
|
49272
|
+
bgColor,
|
|
49273
|
+
bottomMargin = 0
|
|
49248
49274
|
} = params;
|
|
49249
49275
|
super(width, height, bgColor);
|
|
49250
49276
|
this._startY = 0;
|
|
@@ -49261,6 +49287,9 @@ void main(void)\r
|
|
|
49261
49287
|
this._content = new Container();
|
|
49262
49288
|
this.addChild(this._content);
|
|
49263
49289
|
this._content.addChild(this._scrollContent);
|
|
49290
|
+
const bottomMarginBox = new Sprite();
|
|
49291
|
+
this._content.addChild(bottomMarginBox);
|
|
49292
|
+
bottomMarginBox.height = this._content.height + bottomMargin;
|
|
49264
49293
|
this._maskGraphics = new LibPixiRectangle(width, height, "#000");
|
|
49265
49294
|
this.addChild(this._maskGraphics);
|
|
49266
49295
|
this.mask = this._maskGraphics;
|
|
@@ -55060,12 +55089,12 @@ void main(void){
|
|
|
55060
55089
|
amountAnimation.progress(1);
|
|
55061
55090
|
};
|
|
55062
55091
|
};
|
|
55063
|
-
const LibPixiDownScaleAnimation = (container) => {
|
|
55092
|
+
const LibPixiDownScaleAnimation = (container, type2 = "big") => {
|
|
55064
55093
|
libPixiEvent(container, "pointerdown", () => {
|
|
55065
55094
|
gsapWithCSS.to(container, {
|
|
55066
55095
|
duration: 0.1,
|
|
55067
55096
|
pixi: {
|
|
55068
|
-
scale: 1.1
|
|
55097
|
+
scale: type2 === "big" ? 1.1 : 0.9
|
|
55069
55098
|
}
|
|
55070
55099
|
});
|
|
55071
55100
|
});
|