mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:37: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 },
|
sequenceBinaryDataFinal: { positions: new Float32Array(0), values: [], udv: 3 },
|
||||||
sequenceDataTStamp: null,
|
sequenceDataTStamp: null,
|
||||||
loadingProgress: null,
|
loadingProgress: null,
|
||||||
|
//loadingRefreshInterval: 6000, // Refresh sequenceBinaryData* every six seconds while loading
|
||||||
|
loadingRefreshInterval: 0,
|
||||||
viewState: {},
|
viewState: {},
|
||||||
viewStateDefaults: {
|
viewStateDefaults: {
|
||||||
//maxZoom: 18,
|
//maxZoom: 18,
|
||||||
@@ -1081,6 +1083,12 @@ export default {
|
|||||||
this.loadingProgress = ++count/sequenceCount*100;
|
this.loadingProgress = ++count/sequenceCount*100;
|
||||||
//console.log("PRG", count, sequenceCount, this.loadingProgress, );
|
//console.log("PRG", count, sequenceCount, this.loadingProgress, );
|
||||||
this.sequenceDataElements.push(Object.freeze(value));
|
this.sequenceDataElements.push(Object.freeze(value));
|
||||||
|
if (this.loadingRefreshInterval > 0) {
|
||||||
|
setTimeout( () => {
|
||||||
|
transferData();
|
||||||
|
this.render();
|
||||||
|
}, this.loadingRefreshInterval );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
transferData();
|
transferData();
|
||||||
|
|||||||
Reference in New Issue
Block a user