lyb-pixi-js 1.4.1 → 1.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {
@@ -1,15 +0,0 @@
1
- import type { Container } from "pixi.js";
2
- /** @description 事件总线更新实例汇总 */
3
- export declare class LibGlobalUpdater<Instances> {
4
- /** 实例列表 */
5
- private instances;
6
- /** @description 存储实例
7
- * @param key 实例key
8
- * @param instance 实例
9
- */
10
- setInstance(key: Instances, instance: Container): void;
11
- /** @description 获取实例
12
- * @param key 实例key
13
- */
14
- getInstance<T>(key: Instances): T;
15
- }
@@ -1,21 +0,0 @@
1
- /** @description 事件总线更新实例汇总 */
2
- export class LibGlobalUpdater {
3
- constructor() {
4
- /** 实例列表 */
5
- this.instances = new Map();
6
- }
7
- /** @description 存储实例
8
- * @param key 实例key
9
- * @param instance 实例
10
- */
11
- setInstance(key, instance) {
12
- this.instances.has(key) && this.instances.delete(key);
13
- this.instances.set(key, instance);
14
- }
15
- /** @description 获取实例
16
- * @param key 实例key
17
- */
18
- getInstance(key) {
19
- return this.instances.get(key);
20
- }
21
- }