lyb-pixi-js 1.10.9 → 1.10.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.
@@ -0,0 +1,5 @@
1
+ /** @description 可控延迟调用函数 */
2
+ export declare const libControlledDelayedCall: (time: number) => {
3
+ start: Promise<void>;
4
+ stop: () => void;
5
+ };
@@ -0,0 +1,20 @@
1
+ import { libPixiTickerTimeout } from "./LibPixiTickerTimeout";
2
+ /** @description 可控延迟调用函数 */
3
+ export const libControlledDelayedCall = (time) => {
4
+ let _resolve;
5
+ let timer;
6
+ const start = new Promise((resolve) => {
7
+ _resolve = resolve;
8
+ timer = libPixiTickerTimeout(() => {
9
+ resolve();
10
+ }, time);
11
+ });
12
+ const stop = () => {
13
+ timer();
14
+ _resolve();
15
+ };
16
+ return {
17
+ start,
18
+ stop,
19
+ };
20
+ };
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$1(obj), 8, -1) : protoTag ? "Object" : "";
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 tag2 = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
1321
1321
  if (ys.length === 0) {
@@ -1340,25 +1340,25 @@
1340
1340
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
1341
1341
  }
1342
1342
  function isArray$3(obj) {
1343
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
1343
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
1344
1344
  }
1345
1345
  function isDate(obj) {
1346
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
1346
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
1347
1347
  }
1348
1348
  function isRegExp$1(obj) {
1349
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
1349
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
1350
1350
  }
1351
1351
  function isError(obj) {
1352
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
1352
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
1353
1353
  }
1354
1354
  function isString(obj) {
1355
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
1355
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
1356
1356
  }
1357
1357
  function isNumber(obj) {
1358
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
1358
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
1359
1359
  }
1360
1360
  function isBoolean(obj) {
1361
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
1361
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
1362
1362
  }
1363
1363
  function isSymbol(obj) {
1364
1364
  if (hasShammedSymbols) {
@@ -1394,7 +1394,7 @@
1394
1394
  function has$3(obj, key) {
1395
1395
  return hasOwn$1.call(obj, key);
1396
1396
  }
1397
- function toStr$1(obj) {
1397
+ function toStr(obj) {
1398
1398
  return objectToString.call(obj);
1399
1399
  }
1400
1400
  function nameOf(f2) {
@@ -1703,7 +1703,7 @@
1703
1703
  var uri = URIError;
1704
1704
  var abs$2 = Math.abs;
1705
1705
  var floor$2 = Math.floor;
1706
- var max$3 = Math.max;
1706
+ var max$2 = Math.max;
1707
1707
  var min$2 = Math.min;
1708
1708
  var pow$2 = Math.pow;
1709
1709
  var round$3 = Math.round;
@@ -1836,77 +1836,93 @@
1836
1836
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
1837
1837
  return Object_getPrototypeOf;
1838
1838
  }
1839
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
1840
- var toStr = Object.prototype.toString;
1841
- var max$2 = Math.max;
1842
- var funcType = "[object Function]";
1843
- var concatty = function concatty2(a2, b2) {
1844
- var arr = [];
1845
- for (var i2 = 0; i2 < a2.length; i2 += 1) {
1846
- arr[i2] = a2[i2];
1847
- }
1848
- for (var j2 = 0; j2 < b2.length; j2 += 1) {
1849
- arr[j2 + a2.length] = b2[j2];
1850
- }
1851
- return arr;
1852
- };
1853
- var slicy = function slicy2(arrLike, offset) {
1854
- var arr = [];
1855
- for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
1856
- arr[j2] = arrLike[i2];
1857
- }
1858
- return arr;
1859
- };
1860
- var joiny = function(arr, joiner) {
1861
- var str = "";
1862
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
1863
- str += arr[i2];
1864
- if (i2 + 1 < arr.length) {
1865
- str += joiner;
1839
+ var implementation;
1840
+ var hasRequiredImplementation;
1841
+ function requireImplementation() {
1842
+ if (hasRequiredImplementation)
1843
+ return implementation;
1844
+ hasRequiredImplementation = 1;
1845
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
1846
+ var toStr2 = Object.prototype.toString;
1847
+ var max2 = Math.max;
1848
+ var funcType = "[object Function]";
1849
+ var concatty = function concatty2(a2, b2) {
1850
+ var arr = [];
1851
+ for (var i2 = 0; i2 < a2.length; i2 += 1) {
1852
+ arr[i2] = a2[i2];
1866
1853
  }
1867
- }
1868
- return str;
1869
- };
1870
- var implementation$1 = function bind2(that) {
1871
- var target = this;
1872
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
1873
- throw new TypeError(ERROR_MESSAGE + target);
1874
- }
1875
- var args = slicy(arguments, 1);
1876
- var bound;
1877
- var binder = function() {
1878
- if (this instanceof bound) {
1879
- var result = target.apply(
1880
- this,
1881
- concatty(args, arguments)
1882
- );
1883
- if (Object(result) === result) {
1884
- return result;
1854
+ for (var j2 = 0; j2 < b2.length; j2 += 1) {
1855
+ arr[j2 + a2.length] = b2[j2];
1856
+ }
1857
+ return arr;
1858
+ };
1859
+ var slicy = function slicy2(arrLike, offset) {
1860
+ var arr = [];
1861
+ for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
1862
+ arr[j2] = arrLike[i2];
1863
+ }
1864
+ return arr;
1865
+ };
1866
+ var joiny = function(arr, joiner) {
1867
+ var str = "";
1868
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
1869
+ str += arr[i2];
1870
+ if (i2 + 1 < arr.length) {
1871
+ str += joiner;
1885
1872
  }
1886
- return this;
1887
1873
  }
1888
- return target.apply(
1889
- that,
1890
- concatty(args, arguments)
1891
- );
1874
+ return str;
1892
1875
  };
1893
- var boundLength = max$2(0, target.length - args.length);
1894
- var boundArgs = [];
1895
- for (var i2 = 0; i2 < boundLength; i2++) {
1896
- boundArgs[i2] = "$" + i2;
1897
- }
1898
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1899
- if (target.prototype) {
1900
- var Empty = function Empty2() {
1876
+ implementation = function bind2(that) {
1877
+ var target = this;
1878
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
1879
+ throw new TypeError(ERROR_MESSAGE + target);
1880
+ }
1881
+ var args = slicy(arguments, 1);
1882
+ var bound;
1883
+ var binder = function() {
1884
+ if (this instanceof bound) {
1885
+ var result = target.apply(
1886
+ this,
1887
+ concatty(args, arguments)
1888
+ );
1889
+ if (Object(result) === result) {
1890
+ return result;
1891
+ }
1892
+ return this;
1893
+ }
1894
+ return target.apply(
1895
+ that,
1896
+ concatty(args, arguments)
1897
+ );
1901
1898
  };
1902
- Empty.prototype = target.prototype;
1903
- bound.prototype = new Empty();
1904
- Empty.prototype = null;
1905
- }
1906
- return bound;
1907
- };
1908
- var implementation = implementation$1;
1909
- var functionBind = Function.prototype.bind || implementation;
1899
+ var boundLength = max2(0, target.length - args.length);
1900
+ var boundArgs = [];
1901
+ for (var i2 = 0; i2 < boundLength; i2++) {
1902
+ boundArgs[i2] = "$" + i2;
1903
+ }
1904
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1905
+ if (target.prototype) {
1906
+ var Empty = function Empty2() {
1907
+ };
1908
+ Empty.prototype = target.prototype;
1909
+ bound.prototype = new Empty();
1910
+ Empty.prototype = null;
1911
+ }
1912
+ return bound;
1913
+ };
1914
+ return implementation;
1915
+ }
1916
+ var functionBind;
1917
+ var hasRequiredFunctionBind;
1918
+ function requireFunctionBind() {
1919
+ if (hasRequiredFunctionBind)
1920
+ return functionBind;
1921
+ hasRequiredFunctionBind = 1;
1922
+ var implementation2 = requireImplementation();
1923
+ functionBind = Function.prototype.bind || implementation2;
1924
+ return functionBind;
1925
+ }
1910
1926
  var functionCall;
1911
1927
  var hasRequiredFunctionCall;
1912
1928
  function requireFunctionCall() {
@@ -1926,12 +1942,12 @@
1926
1942
  return functionApply;
1927
1943
  }
1928
1944
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
1929
- var bind$2 = functionBind;
1945
+ var bind$2 = requireFunctionBind();
1930
1946
  var $apply$1 = requireFunctionApply();
1931
1947
  var $call$2 = requireFunctionCall();
1932
1948
  var $reflectApply = reflectApply;
1933
1949
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
1934
- var bind$1 = functionBind;
1950
+ var bind$1 = requireFunctionBind();
1935
1951
  var $TypeError$4 = type;
1936
1952
  var $call$1 = requireFunctionCall();
1937
1953
  var $actualApply = actualApply;
@@ -2002,7 +2018,7 @@
2002
2018
  hasRequiredHasown = 1;
2003
2019
  var call = Function.prototype.call;
2004
2020
  var $hasOwn = Object.prototype.hasOwnProperty;
2005
- var bind2 = functionBind;
2021
+ var bind2 = requireFunctionBind();
2006
2022
  hasown = bind2.call(call, $hasOwn);
2007
2023
  return hasown;
2008
2024
  }
@@ -2017,7 +2033,7 @@
2017
2033
  var $URIError = uri;
2018
2034
  var abs$1 = abs$2;
2019
2035
  var floor$1 = floor$2;
2020
- var max$1 = max$3;
2036
+ var max$1 = max$2;
2021
2037
  var min$1 = min$2;
2022
2038
  var pow$1 = pow$2;
2023
2039
  var round$2 = round$3;
@@ -2222,7 +2238,7 @@
2222
2238
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2223
2239
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2224
2240
  };
2225
- var bind = functionBind;
2241
+ var bind = requireFunctionBind();
2226
2242
  var hasOwn = requireHasown();
2227
2243
  var $concat = bind.call($call, Array.prototype.concat);
2228
2244
  var $spliceApply = bind.call($apply, Array.prototype.splice);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.10.9",
3
+ "version": "1.10.10",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {