Compare commits

...

6 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
joylink_zhaoerwei
38045a1027 测试类型报错 2024-10-09 17:23:16 +08:00
5 changed files with 13 additions and 2 deletions

View File

@ -52,6 +52,7 @@ export interface GraphicQueryStore {
* @param type
*/
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;
checkIdExist(id: number): boolean;
}

2
lib/index.d.ts vendored
View File

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

View File

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

View File

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

View File

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