cleanup
This commit is contained in:
parent
9246ef4fc1
commit
5aa187a4fd
@ -26,7 +26,7 @@
|
||||
{"thumb": "thumbnails/viewer.png", "label": "Basic Viewer", "url": "viewer.html"},
|
||||
{"thumb": "thumbnails/features_sorvilier.png", "label": "Features (Sorvilier)", "url": "features_sorvilier.html"},
|
||||
{"thumb": "thumbnails/features_ca13.png", "label": "Features (CA13)", "url": "features_ca13.html"},
|
||||
{"thumb": "thumbnails/arena4d.png", "label": "Arena4D", "url": "arena4d.html"},
|
||||
{"thumb": "thumbnails/arena4d.png", "label": "Arena4D", "url": "arena4d.html"}
|
||||
],
|
||||
"showcase": [
|
||||
{"thumb": "thumbnails/chiller.jpg", "label": "Chiller", "url": "showcase/chiller.html"},
|
||||
|
||||
@ -3,15 +3,10 @@ const path = require('path');
|
||||
const gulp = require('gulp');
|
||||
const exec = require('child_process').exec;
|
||||
|
||||
|
||||
const fs = require("fs");
|
||||
const fsp = fs.promises;
|
||||
const concat = require('gulp-concat');
|
||||
//const gutil = require('gulp-util');
|
||||
//const through = require('through');
|
||||
//const File = gutil.File;
|
||||
const connect = require('gulp-connect');
|
||||
//const watch = require('glob-watcher');
|
||||
const {watch} = gulp;
|
||||
|
||||
|
||||
@ -46,7 +41,7 @@ let workers = {
|
||||
],
|
||||
"EptZstandardDecoderWorker": [
|
||||
"src/workers/EptZstandardDecoderWorker.js"
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
let shaders = [
|
||||
|
||||
@ -2,15 +2,16 @@ window = { };
|
||||
document = { };
|
||||
importScripts('/libs/zstd-codec/bundle.js', '/libs/ept/ParseBuffer.js');
|
||||
|
||||
onmessage = function(event) {
|
||||
new Promise(resolve => window.ZstdCodec.run(resolve))
|
||||
.then(zstd => {
|
||||
let streaming = new zstd.Streaming();
|
||||
let arr = new Uint8Array(event.data.buffer);
|
||||
const decompressed = streaming.decompress(arr);
|
||||
onmessage = async function(event) {
|
||||
|
||||
const zstd = await new Promise(resolve => window.ZstdCodec.run(resolve));
|
||||
|
||||
const streaming = new zstd.Streaming();
|
||||
const arr = new Uint8Array(event.data.buffer);
|
||||
const decompressed = streaming.decompress(arr);
|
||||
|
||||
event.data.buffer = decompressed.buffer
|
||||
parseEpt(event);
|
||||
})
|
||||
}
|
||||
event.data.buffer = decompressed.buffer
|
||||
parseEpt(event);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user