UNPKG

@loaders.gl/potree

Version:

potree loaders for large point clouds.

24 lines (23 loc) 715 B
// loaders.gl // SPDX-License-Identifier: MIT // Copyright vis.gl contributors // __VERSION__ is injected by babel-plugin-version-inline // @ts-ignore TS2304: Cannot find name '__VERSION__'. const VERSION = typeof "4.3.2" !== 'undefined' ? "4.3.2" : 'latest'; /** Potree loader */ export const PotreeLoader = { dataType: null, batchType: null, name: 'potree metadata', id: 'potree', module: 'potree', version: VERSION, extensions: ['js'], mimeTypes: ['application/json'], testText: (text) => text.indexOf('octreeDir') >= 0, parse: (data) => JSON.parse(new TextDecoder().decode(data)), parseTextSync: (text) => JSON.parse(text), options: { potree: {} } };