mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
Add possibility to refresh points map while loading binary data
This commit is contained in:
@@ -582,6 +582,8 @@ export default {
|
||||
sequenceBinaryDataFinal: { positions: new Float32Array(0), values: [], udv: 3 },
|
||||
sequenceDataTStamp: null,
|
||||
loadingProgress: null,
|
||||
//loadingRefreshInterval: 6000, // Refresh sequenceBinaryData* every six seconds while loading
|
||||
loadingRefreshInterval: 0,
|
||||
viewState: {},
|
||||
viewStateDefaults: {
|
||||
//maxZoom: 18,
|
||||
@@ -1081,6 +1083,12 @@ export default {
|
||||
this.loadingProgress = ++count/sequenceCount*100;
|
||||
//console.log("PRG", count, sequenceCount, this.loadingProgress, );
|
||||
this.sequenceDataElements.push(Object.freeze(value));
|
||||
if (this.loadingRefreshInterval > 0) {
|
||||
setTimeout( () => {
|
||||
transferData();
|
||||
this.render();
|
||||
}, this.loadingRefreshInterval );
|
||||
}
|
||||
}
|
||||
|
||||
transferData();
|
||||
|
||||
Reference in New Issue
Block a user