Chevron Down
Table of Contents
Chevron DownAPI Reference

DracoLoader

The DracoLoader decodes a mesh or point cloud (maps of attributes) using DRACO compression.

LoaderCharacteristic
File Extension.drc
File TypeBinary
File FormatDraco
Data FormatMesh
Decoder TypeSynchronous
Worker Thread SupportYes
Streaming SupportNo

Usage

import {DracoLoader} from '@loaders.gl/draco';
import {load} from '@loaders.gl/core';

const data = await load(url, DracoLoader, options);

Options

OptionTypeDefaultDescription