UNPKG

@loaders.gl/potree

Version:

potree loaders for large point clouds.

23 lines (22 loc) 649 B
// loaders.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { PotreeNodesSource } from "./lib/potree-node-source.js"; const VERSION = '1.7'; /** * Creates point cloud data sources for Potree urls */ export const PotreeSource = { name: 'Potree', id: 'potree', module: 'potree', version: VERSION, extensions: ['bin', 'las', 'laz'], mimeTypes: ['application/octet-stream'], options: { url: undefined, potree: {} }, type: 'potree', fromUrl: true, fromBlob: true, testURL: (url) => url.endsWith('.js'), createDataSource: (url, props) => new PotreeNodesSource(url, props) };