@ives_xxz/framework 1.4.14 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -207,11 +207,11 @@ export class FWLayerManager extends FWManager implements FW.LayerManager {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
public clear() {
|
|
210
|
+
this.dataManager.getLayerMap().forEach((v) => this.close(v.controller));
|
|
210
211
|
this.queueManager.clear();
|
|
211
212
|
this.stackManager.clear();
|
|
212
213
|
this.stateManager.clear();
|
|
213
214
|
this.dataManager.clear();
|
|
214
|
-
this.dataManager.getLayerMap().forEach((v) => this.close(v.controller));
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
public onDestroy(): void {
|
|
@@ -20,18 +20,13 @@ export class FWPerformanceManager extends FWManager implements FW.PerformanceMan
|
|
|
20
20
|
|
|
21
21
|
private performanceOptions: FW.PerformanceManagerOptions;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
super();
|
|
25
|
-
|
|
23
|
+
public async initialize(): Promise<void> {
|
|
26
24
|
this.performanceOptions = {
|
|
27
25
|
autoCollect: true,
|
|
28
26
|
dataRetentionTime: 5 * 60 * 1000,
|
|
29
27
|
samplingRate: 1.0,
|
|
30
28
|
warningThreshold: 1000,
|
|
31
29
|
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public async initialize(): Promise<void> {
|
|
35
30
|
if (this.performanceOptions.autoCollect) {
|
|
36
31
|
this.startAutoCleanup();
|
|
37
32
|
}
|