lyb-pixi-js 1.11.24 → 1.11.25

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.
@@ -11,8 +11,8 @@ export const libPixiIntervalTrigger = (callback, interval, immediately = true) =
11
11
  // 创建一个新的 Ticker 实例
12
12
  const ticker = new Ticker();
13
13
  // 创建回调函数
14
- const tickerCallback = (deltaTime) => {
15
- elapsedTime += deltaTime * ticker.deltaMS;
14
+ const tickerCallback = () => {
15
+ elapsedTime += ticker.elapsedMS;
16
16
  let intervalNum = 0;
17
17
  if (Array.isArray(interval)) {
18
18
  intervalNum = libJsRandom(interval[0], interval[1], 2);
package/lyb-pixi.js CHANGED
@@ -1908,18 +1908,10 @@
1908
1908
  var implementation = implementation$1;
1909
1909
  var functionBind = Function.prototype.bind || implementation;
1910
1910
  var functionCall = Function.prototype.call;
1911
- var functionApply;
1912
- var hasRequiredFunctionApply;
1913
- function requireFunctionApply() {
1914
- if (hasRequiredFunctionApply)
1915
- return functionApply;
1916
- hasRequiredFunctionApply = 1;
1917
- functionApply = Function.prototype.apply;
1918
- return functionApply;
1919
- }
1911
+ var functionApply = Function.prototype.apply;
1920
1912
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
1921
1913
  var bind$2 = functionBind;
1922
- var $apply$1 = requireFunctionApply();
1914
+ var $apply$1 = functionApply;
1923
1915
  var $call$2 = functionCall;
1924
1916
  var $reflectApply = reflectApply;
1925
1917
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
@@ -2042,7 +2034,7 @@
2042
2034
  var getProto = requireGetProto();
2043
2035
  var $ObjectGPO = requireObject_getPrototypeOf();
2044
2036
  var $ReflectGPO = requireReflect_getPrototypeOf();
2045
- var $apply = requireFunctionApply();
2037
+ var $apply = functionApply;
2046
2038
  var $call = functionCall;
2047
2039
  var needsEval = {};
2048
2040
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
@@ -54487,8 +54479,8 @@ void main(void)\r
54487
54479
  const libPixiIntervalTrigger = (callback, interval, immediately = true) => {
54488
54480
  let elapsedTime = 0;
54489
54481
  const ticker2 = new Ticker();
54490
- const tickerCallback = (deltaTime) => {
54491
- elapsedTime += deltaTime * ticker2.deltaMS;
54482
+ const tickerCallback = () => {
54483
+ elapsedTime += ticker2.elapsedMS;
54492
54484
  let intervalNum = 0;
54493
54485
  if (Array.isArray(interval)) {
54494
54486
  intervalNum = libJsRandom(interval[0], interval[1], 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.24",
3
+ "version": "1.11.25",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {