diff --git a/src/jlgraphic/app/JlGraphicApp.ts b/src/jlgraphic/app/JlGraphicApp.ts index 804ad45..0c770a3 100644 --- a/src/jlgraphic/app/JlGraphicApp.ts +++ b/src/jlgraphic/app/JlGraphicApp.ts @@ -276,6 +276,8 @@ export class SelectedChangeEvent { export interface GraphicAppEvents extends GlobalMixins.GraphicAppEvents { graphicstored: [graphic: JlGraphic]; graphicdeleted: [graphic: JlGraphic]; + // 数据加载完成后,额外的逻辑处理阶段 + postdataloaded: []; loadfinish: []; 'interaction-plugin-resume': [plugin: InteractionPlugin]; // 交互插件启用 'interaction-plugin-pause': [plugin: InteractionPlugin]; // 交互插件停止 @@ -653,6 +655,8 @@ export class GraphicApp extends EventEmitter { .pop() ?? 0; // console.log('最大值', max) GraphicIdGenerator.initSerial(max); + // 数据加载完成后 + this.emit('postdataloaded'); // 加载完成通知 this.emit('loadfinish'); }