Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1c803d0965 | ||
|
0106643c1a | ||
|
2a2a4ce488 | ||
|
3214ef1cc4 | ||
|
78507c2b91 | ||
|
38045a1027 |
2
lib/core/GraphicStore.d.ts
vendored
2
lib/core/GraphicStore.d.ts
vendored
@ -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
2
lib/index.d.ts
vendored
@ -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';
|
||||
|
@ -4446,6 +4446,9 @@ class GraphicStore {
|
||||
this.relationManage.clear();
|
||||
this.store.clear();
|
||||
}
|
||||
checkIdExist(id) {
|
||||
return this.store.has(id);
|
||||
}
|
||||
}
|
||||
|
||||
//基础图形对象扩展
|
||||
|
@ -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>",
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user