合入小壹 P2-3 画布流程提速
This commit is contained in:
commit
5c3da9269e
@ -1017,8 +1017,6 @@ export class DetailPiAgent {
|
||||
this.copyFieldsTargets = (references??[]).filter(ref=>ref.layerKind==='Type'&&ref.component==='layer')
|
||||
.map(ref=>ref.nativeLayerId);
|
||||
this.activityScope = activityScope(this.store.identity, this.canvas, begun);
|
||||
this.heartbeat = setInterval(() => { this.canvas.read().then(state => { if(this.nativeUI && typeof state?.editorText==='string')this.nativeUI.editorText=state.editorText; }).catch(() => {}); }, 2000);
|
||||
this.heartbeat.unref();
|
||||
}
|
||||
try {
|
||||
const production=this.productionGoal;
|
||||
@ -1087,7 +1085,6 @@ export class DetailPiAgent {
|
||||
throw error;
|
||||
} finally {
|
||||
await closeProductionTurn(this).catch(()=>{});
|
||||
if (this.heartbeat) clearInterval(this.heartbeat);
|
||||
}
|
||||
}
|
||||
async loadProductionKnowledge(selection, signal, pins) {
|
||||
@ -1213,7 +1210,6 @@ export class DetailPiAgent {
|
||||
async dispose() {
|
||||
this.disposed = true;
|
||||
if (this.nativeUI) this.nativeUI.active = false;
|
||||
if (this.heartbeat) clearInterval(this.heartbeat);
|
||||
try {
|
||||
try { await this.session?.abort(); } finally { this.session?.dispose(); }
|
||||
} finally {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user