@loaders.gl/pcd
Version:
Framework-independent loader for the PCD format
30 lines • 798 B
JavaScript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import { parsePCD } from "./lib/parse-pcd.js";
import { PCDFormat } from "./pcd-format.js";
// __VERSION__ is injected by babel-plugin-version-inline
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
const VERSION = typeof "4.4.2" !== 'undefined' ? "4.4.2" : 'latest';
/**
* Worker loader for PCD - Point Cloud Data
*/
export const PCDWorkerLoader = {
...PCDFormat,
dataType: null,
batchType: null,
version: VERSION,
worker: true,
options: {
pcd: {}
}
};
/**
* Loader for PCD - Point Cloud Data
*/
export const PCDLoader = {
...PCDWorkerLoader,
parse: async (arrayBuffer) => parsePCD(arrayBuffer),
parseSync: parsePCD
};
//# sourceMappingURL=pcd-loader.js.map