lyb-pixi-js 1.4.10 → 1.4.11

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.
@@ -1,4 +1,4 @@
1
- import type { Container, DisplayObjectEvents } from "pixi.js";
1
+ import type { Container, DisplayObjectEvents, FederatedPointerEvent } from "pixi.js";
2
2
  /** @description 事件注册
3
3
  * @param v 事件容器
4
4
  * @param eventName 事件名称
@@ -7,4 +7,4 @@ import type { Container, DisplayObjectEvents } from "pixi.js";
7
7
  * @returns 停止监听
8
8
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiEvent-事件注册
9
9
  */
10
- export declare const libPixiEvent: (v: Container, eventName: keyof DisplayObjectEvents, callback: (...args: any) => void, once?: boolean) => () => void;
10
+ export declare const libPixiEvent: (v: Container, eventName: keyof DisplayObjectEvents, callback: (event: FederatedPointerEvent) => void, once?: boolean) => () => void;
@@ -1,8 +1,8 @@
1
- import type { Container, DisplayObjectEvents } from "pixi.js";
1
+ import type { Container, DisplayObjectEvents, FederatedPointerEvent } from "pixi.js";
2
2
  /** @description 设置可关闭的事件监听,调用自身后不再触发
3
3
  * @param container 事件容器
4
4
  * @param eventName 事件名称
5
5
  * @param callback 事件回调
6
6
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiEventControlled-可关闭的事件
7
7
  */
8
- export declare const libPixiEventControlled: (container: Container, eventName: keyof DisplayObjectEvents, callback: (...args: any) => void) => () => void;
8
+ export declare const libPixiEventControlled: (container: Container, eventName: keyof DisplayObjectEvents, callback: (e: FederatedPointerEvent) => void) => () => void;
package/libPixiJs.d.ts CHANGED
@@ -106,14 +106,14 @@ export declare const Utils: {
106
106
  * @param once 是否只执行一次
107
107
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiEvent-事件注册
108
108
  */
109
- libPixiEvent: (v: import("pixi.js").Container, eventName: keyof import("pixi.js").DisplayObjectEvents, callback: (...args: any) => void, once?: boolean) => () => void;
109
+ libPixiEvent: (v: import("pixi.js").Container, eventName: keyof import("pixi.js").DisplayObjectEvents, callback: (event: import("pixi.js").FederatedPointerEvent) => void, once?: boolean) => () => void;
110
110
  /** @description 设置可关闭的事件监听,调用自身后不再触发
111
111
  * @param container 事件容器
112
112
  * @param eventName 事件名称
113
113
  * @param callback 事件回调
114
114
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiEventControlled-可关闭的事件
115
115
  */
116
- libPixiEventControlled: (container: import("pixi.js").Container, eventName: keyof import("pixi.js").DisplayObjectEvents, callback: (...args: any) => void) => () => void;
116
+ libPixiEventControlled: (container: import("pixi.js").Container, eventName: keyof import("pixi.js").DisplayObjectEvents, callback: (e: import("pixi.js").FederatedPointerEvent) => void) => () => void;
117
117
  /** @description 滤镜
118
118
  * @param filterName 滤镜名称
119
119
  * @param v 滤镜值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {