This commit is contained in:
joylink_fanyuhong 2024-10-14 09:40:45 +08:00
parent 3214ef1cc4
commit 2a2a4ce488
3 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,7 @@ export interface GraphicQueryStore {
* @param type * @param type
*/ */
queryByCodeAndTypeAmbiguous<T extends JlGraphic>(code: string, type: string): T[]; queryByCodeAndTypeAmbiguous<T extends JlGraphic>(code: string, type: string): T[];
checkIdExist(v: number): boolean;
} }
/** /**
* *
@ -87,4 +88,5 @@ export declare class GraphicStore implements GraphicQueryStore {
* *
*/ */
clear(): void; clear(): void;
checkIdExist(id: number): boolean;
} }

2
lib/index.d.ts vendored
View File

@ -1,4 +1,4 @@
/// <reference path="../global.d.ts" /> /// <reference types="global" />
export * as GraphicsExtras from '@pixi/graphics-extras'; export * as GraphicsExtras from '@pixi/graphics-extras';
export * from './app'; export * from './app';
export * from './core'; export * from './core';

View File

@ -4446,6 +4446,9 @@ class GraphicStore {
this.relationManage.clear(); this.relationManage.clear();
this.store.clear(); this.store.clear();
} }
checkIdExist(id) {
return this.store.has(id);
}
} }
//基础图形对象扩展 //基础图形对象扩展