添加数据加载完成后阶段事件通知

This commit is contained in:
walker 2023-08-08 10:38:18 +08:00
parent 75f2f2266c
commit defae8c01e

View File

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