Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Oct 22, 2024
1 parent 7b327cb commit fc84fda
Show file tree
Hide file tree
Showing 6 changed files with 159 additions and 177 deletions.
155 changes: 73 additions & 82 deletions dist/xeokit-sdk.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -111114,8 +111114,8 @@ function validateWorkerVersion(worker, coreVersion = VERSION$9) {
var ChildProcessProxy = {};

var node = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': ChildProcessProxy
__proto__: null,
'default': ChildProcessProxy
});

const VERSION$8 = "3.2.6" ;
Expand Down Expand Up @@ -111180,7 +111180,7 @@ async function loadLibraryFromFile(libraryUrl) {

function loadLibraryFromString(scriptSource, id) {
if (!isBrowser$3) {
return undefined ;
return undefined && undefined(scriptSource, id);
}

if (isWorker) {
Expand Down Expand Up @@ -113614,7 +113614,7 @@ function getLoadersFromContext(loaders, context) {
return candidateLoaders && candidateLoaders.length ? candidateLoaders : null;
}

async function parse$2(data, loaders, options, context) {
async function parse$3(data, loaders, options, context) {
assert$4(!context || typeof context === 'object');

if (loaders && !Array.isArray(loaders) && !isLoaderObject(loaders)) {
Expand All @@ -113639,7 +113639,7 @@ async function parse$2(data, loaders, options, context) {
options = normalizeOptions(options, loader, candidateLoaders, url);
context = getLoaderContext({
url,
parse: parse$2,
parse: parse$3,
loaders: candidateLoaders
}, options, context);
return await parseWithLoader(loader, data, options, context);
Expand Down Expand Up @@ -113678,7 +113678,7 @@ async function parseWithLoader(loader, data, options, context) {
}

if (canParseWithWorker(loader, options)) {
return await parseWithWorker(loader, data, options, context, parse$2);
return await parseWithWorker(loader, data, options, context, parse$3);
}

if (loader.parseText && typeof data === 'string') {
Expand Down Expand Up @@ -115337,9 +115337,9 @@ async function decodeMeshoptBufferView(scenegraph, bufferView) {
}

var EXT_meshopt_compression = /*#__PURE__*/Object.freeze({
__proto__: null,
name: name$6,
decode: decode$4
__proto__: null,
name: name$6,
decode: decode$4
});

const EXT_TEXTURE_WEBP = 'EXT_texture_webp';
Expand Down Expand Up @@ -115373,9 +115373,9 @@ function preprocess$3(gltfData, options) {
}

var EXT_texture_webp = /*#__PURE__*/Object.freeze({
__proto__: null,
name: name$5,
preprocess: preprocess$3
__proto__: null,
name: name$5,
preprocess: preprocess$3
});

const KHR_TEXTURE_BASISU = 'KHR_texture_basisu';
Expand All @@ -115400,9 +115400,9 @@ function preprocess$2(gltfData, options) {
}

var KHR_texture_basisu = /*#__PURE__*/Object.freeze({
__proto__: null,
name: name$4,
preprocess: preprocess$2
__proto__: null,
name: name$4,
preprocess: preprocess$2
});

const VERSION$1 = "3.2.6" ;
Expand Down Expand Up @@ -116454,11 +116454,23 @@ function initializeDracoDecoder(DracoDecoderModule, wasmBinary) {
});
});
}

({
id: isBrowser$3 ? 'draco-writer' : 'draco-writer-nodejs',
name: 'Draco compressed geometry writer',
module: 'draco',
version: VERSION$1,
worker: true,
options: {
draco: {},
source: null
}
});
const DracoLoader = { ...DracoLoader$1,
parse: parse$1
parse: parse$2
};

async function parse$1(arrayBuffer, options) {
async function parse$2(arrayBuffer, options) {
const {
draco
} = await loadDracoDecoderModule(options);
Expand Down Expand Up @@ -116666,11 +116678,11 @@ function* makeMeshPrimitiveIterator(scenegraph) {
}

var KHR_draco_mesh_compression = /*#__PURE__*/Object.freeze({
__proto__: null,
name: name$3,
preprocess: preprocess$1,
decode: decode$3,
encode: encode$3
__proto__: null,
name: name$3,
preprocess: preprocess$1,
decode: decode$3,
encode: encode$3
});

const KHR_LIGHTS_PUNCTUAL = 'KHR_lights_punctual';
Expand Down Expand Up @@ -116721,10 +116733,10 @@ async function encode$2(gltfData) {
}

var KHR_lights_punctual = /*#__PURE__*/Object.freeze({
__proto__: null,
name: name$2,
decode: decode$2,
encode: encode$2
__proto__: null,
name: name$2,
decode: decode$2,
encode: encode$2
});

const KHR_MATERIALS_UNLIT = 'KHR_materials_unlit';
Expand Down Expand Up @@ -116764,10 +116776,10 @@ function encode$1(gltfData) {
}

var KHR_materials_unlit = /*#__PURE__*/Object.freeze({
__proto__: null,
name: name$1,
decode: decode$1,
encode: encode$1
__proto__: null,
name: name$1,
decode: decode$1,
encode: encode$1
});

const KHR_TECHNIQUES_WEBGL = 'KHR_techniques_webgl';
Expand Down Expand Up @@ -116838,10 +116850,10 @@ function resolveValues(technique, gltfScenegraph) {
}

var KHR_techniques_webgl = /*#__PURE__*/Object.freeze({
__proto__: null,
name: name,
decode: decode,
encode: encode
__proto__: null,
name: name,
decode: decode,
encode: encode
});

const EXTENSIONS = [EXT_meshopt_compression, EXT_texture_webp, KHR_texture_basisu, KHR_draco_mesh_compression, KHR_lights_punctual, KHR_materials_unlit, KHR_techniques_webgl];
Expand Down Expand Up @@ -117861,7 +117873,7 @@ const GLTFLoader = {
text: true,
binary: true,
tests: ['glTF'],
parse: parse$3,
parse: parse$1,
options: {
gltf: {
normalize: true,
Expand All @@ -117882,7 +117894,7 @@ const GLTFLoader = {
}
}
};
async function parse$3(arrayBuffer, options = {}, context) {
async function parse$1(arrayBuffer, options = {}, context) {
options = { ...GLTFLoader.options,
...options
};
Expand All @@ -117896,29 +117908,6 @@ async function parse$3(arrayBuffer, options = {}, context) {
return await parseGLTF$1(gltf, arrayBuffer, byteOffset, options, context);
}

const VERSION = "3.2.6" ;
const DEFAULT_LAS_OPTIONS = {
las: {
shape: 'mesh',
fp64: false,
skip: 1,
colorDepth: 8
}
};
const LASLoader = {
name: 'LAS',
id: 'las',
module: 'las',
version: VERSION,
worker: true,
extensions: ['las', 'laz'],
mimeTypes: ['application/octet-stream'],
text: true,
binary: true,
tests: ['LAS'],
options: DEFAULT_LAS_OPTIONS
};

/**
* @private
*/
Expand Down Expand Up @@ -117994,7 +117983,7 @@ function getBasePath(src) {
function parseGLTF(plugin, src, gltf, metaModelJSON, options, sceneModel, ok) {
const spinner = plugin.viewer.scene.canvas.spinner;
spinner.processes++;
parse$2(gltf, GLTFLoader, {
parse$3(gltf, GLTFLoader, {
baseUri: options.basePath
}).then((gltfData) => {
const ctx = {
Expand Down Expand Up @@ -131790,9 +131779,7 @@ const ParserV10 = {
parse: function (viewer, options, elements, sceneModel, metaModel, manifestCtx) {
const deflatedData = extract(elements);
const inflatedData = inflate(deflatedData);
window._timestamp("ParserV10::decode");
load$1(viewer, options, inflatedData, sceneModel, metaModel, manifestCtx);
window._timestamp("ParserV10::load");
}
};

Expand Down Expand Up @@ -132438,9 +132425,7 @@ const ParserV11 = {
version: 11,
parseArrayBuffer: function (viewer, options, arrayBuffer, sceneModel, metaModel, manifestCtx) {
const inflatedData = decodeData(arrayBuffer);
window._timestamp("ParserV11::decode");
load(viewer, options, inflatedData, sceneModel, metaModel, manifestCtx);
window._timestamp("ParserV11::load");
}
};

Expand Down Expand Up @@ -133552,26 +133537,9 @@ class XKTLoaderPlugin extends Plugin {
}

_loadModel(src, options, sceneModel, metaModel, manifestCtx, done, error) {
window._timestamp = (function() {
const start = performance.now();
let t = null;
const f = n => n.toFixed(2) + " ms";
return function(msg) {
const now = performance.now();
if (t === null) {
console.log(msg, f(now - start));
} else {
console.log(msg, f(now - t), "[total " + f(now - start) + "]");
}
t = now;
};
})();

this._dataSource.getXKT(src, (arrayBuffer) => {
window._timestamp("dataSource.getXKT (arrayBuffer.byteLength " + arrayBuffer.byteLength + ")");
this._parseModel(arrayBuffer, options, sceneModel, metaModel, manifestCtx);
sceneModel.preFinalize();
window._timestamp("preFinalize");
done();
}, error);
}
Expand Down Expand Up @@ -137397,6 +137365,29 @@ class LASDefaultDataSource {
}
}

const VERSION = "3.2.6" ;
const DEFAULT_LAS_OPTIONS = {
las: {
shape: 'mesh',
fp64: false,
skip: 1,
colorDepth: 8
}
};
const LASLoader = {
name: 'LAS',
id: 'las',
module: 'las',
version: VERSION,
worker: true,
extensions: ['las', 'laz'],
mimeTypes: ['application/octet-stream'],
text: true,
binary: true,
tests: ['LAS'],
options: DEFAULT_LAS_OPTIONS
};

//import * as epsgCheck from 'epsg-index/all.json';

const headerBlockItems = [
Expand Down Expand Up @@ -138179,7 +138170,7 @@ class LASLoaderPlugin extends Plugin {

const lasHeader = loadLASHeader(arrayBuffer);

parse$2(arrayBuffer, LASLoader, options).then((parsedData) => {
parse$3(arrayBuffer, LASLoader, options).then((parsedData) => {

const attributes = parsedData.attributes;
const loaderData = parsedData.loaderData;
Expand Down
Loading

0 comments on commit fc84fda

Please sign in to comment.