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

visgl / loaders.gl / 24793222805

22 Apr 2026 05:38PM UTC coverage: 59.007% (+1.9%) from 57.099%
24793222805

push

github

web-flow
chore: Run full tests on node (#3397)

11088 of 20586 branches covered (53.86%)

Branch coverage included in aggregate %.

22864 of 36953 relevant lines covered (61.87%)

16255.47 hits per line

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

20.0
/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 {LoaderWithParser} from '@loaders.gl/loader-utils';
6
import type {ArrowTable} from '@loaders.gl/schema';
7

8
import {OBJLoaderOptions, OBJWorkerLoader} from './obj-loader';
9
import {convertMeshToTable} from '@loaders.gl/schema-utils';
10
import {parseOBJ} from './lib/parse-obj';
11

12
/**
13
 * Worker loader for OBJ - Point Cloud Data
14
 */
15
export const OBJArrowLoader = {
12✔
16
  ...OBJWorkerLoader,
17
  dataType: null as unknown as ArrowTable,
18
  batchType: null as never,
19
  worker: false,
20
  parse: async (arrayBuffer: ArrayBuffer) => {
21
    const text = new TextDecoder().decode(arrayBuffer);
×
22
    const mesh = parseOBJ(text);
×
23
    const arrowTable = convertMeshToTable(mesh, 'arrow-table');
×
24
    return arrowTable;
×
25
  }
26
} as const satisfies LoaderWithParser<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