Compare commits

..

5 Commits

Author SHA1 Message Date
joylink_zhaoerwei
1c803d0965 类型报错处理 2024-10-14 13:37:02 +08:00
joylink_fanyuhong
0106643c1a 更改版本号 2024-10-14 09:42:30 +08:00
joylink_fanyuhong
2a2a4ce488 打包 2024-10-14 09:40:45 +08:00
joylink_fanyuhong
3214ef1cc4 Merge branch 'master' of https://gitea.joylink.club/joylink/graphic-pixi 2024-10-14 09:39:51 +08:00
joylink_fanyuhong
78507c2b91 添加查询id是否存在 2024-10-14 09:39:50 +08:00
4 changed files with 12 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;
} }

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);
}
} }
//基础图形对象扩展 //基础图形对象扩展

View File

@ -1,6 +1,6 @@
{ {
"name": "graphic-pixi", "name": "graphic-pixi",
"version": "0.1.16", "version": "0.1.18",
"description": "基于pixijs的图形应用、绘制应用框架", "description": "基于pixijs的图形应用、绘制应用框架",
"productName": "Graphic-pixi", "productName": "Graphic-pixi",
"author": "walker <shengxuqiang@joylink.club>", "author": "walker <shengxuqiang@joylink.club>",

View File

@ -60,6 +60,8 @@ export interface GraphicQueryStore {
code: string, code: string,
type: string type: string
): T[]; ): T[];
checkIdExist(v: number): boolean;
} }
/** /**
@ -208,4 +210,8 @@ export class GraphicStore implements GraphicQueryStore {
this.relationManage.clear(); this.relationManage.clear();
this.store.clear(); this.store.clear();
} }
checkIdExist(id: number) {
return this.store.has(id)
}
} }