• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / loaders.gl / 24907303489

24 Apr 2026 07:12PM UTC coverage: 59.423% (+0.09%) from 59.334%
24907303489

push

github

web-flow
feat: Dynamic import loaders (#3405)

11252 of 20783 branches covered (54.14%)

Branch coverage included in aggregate %.

1164 of 1518 new or added lines in 244 files covered. (76.68%)

41 existing lines in 18 files now uncovered.

23432 of 37585 relevant lines covered (62.34%)

16317.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/modules/obj/src/obj-arrow-loader.ts
1
// loaders.gl
2
// SPDX-License-Identifier: MIT
3
// Copyright (c) vis.gl contributors
4

5
import type {Loader} from '@loaders.gl/loader-utils';
6
import type {ArrowTable} from '@loaders.gl/schema';
7

8
import {OBJLoaderOptions, OBJWorkerLoader} from './obj-loader';
9

10
/**
11
 * Preloads the parser-bearing OBJ Arrow loader implementation.
12
 */
13
async function preload() {
NEW
14
  const {OBJArrowLoaderWithParser} = await import('./obj-arrow-loader-with-parser');
×
NEW
15
  return OBJArrowLoaderWithParser;
×
16
}
17

18
/**
19
 * Metadata-only loader for OBJ - Point Cloud Data
20
 */
21
export const OBJArrowLoader = {
12✔
22
  ...OBJWorkerLoader,
23
  dataType: null as unknown as ArrowTable,
24
  batchType: null as never,
25
  worker: false,
26
  preload
27
} as const satisfies Loader<ArrowTable, never, OBJLoaderOptions>;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc