• 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

75.0
/modules/textures/src/texture-array-loader-with-parser.ts
1
// loaders.gl
2
// SPDX-License-Identifier: MIT
3
// Copyright (c) vis.gl contributors
4

5
import type {LoaderContext, LoaderWithParser} from '@loaders.gl/loader-utils';
6
import type {Texture} from '@loaders.gl/schema';
7
import type {TextureLoaderOptions as TextureApiLoaderOptions} from './lib/texture-api/texture-api-types';
8
import {
9
  parseCompositeImageManifest,
10
  type ImageTextureArrayManifest
11
} from './lib/composite-image/parse-composite-image';
12
import {TextureArrayLoader as TextureArrayLoaderMetadata} from './texture-array-loader';
13

14
const {preload: _TextureArrayLoaderPreload, ...TextureArrayLoaderMetadataWithoutPreload} =
15
  TextureArrayLoaderMetadata;
2✔
16

17
export type TextureArrayLoaderOptions = TextureApiLoaderOptions;
18
export type {ImageTextureArrayManifest as TextureArrayManifest};
19

20
export const TextureArrayLoaderWithParser = {
2✔
21
  ...TextureArrayLoaderMetadataWithoutPreload,
22
  parse: async (
23
    arrayBuffer: ArrayBuffer,
24
    options?: TextureArrayLoaderOptions,
25
    context?: LoaderContext
26
  ) =>
NEW
27
    await parseCompositeImageManifest(
×
28
      new TextDecoder().decode(arrayBuffer),
29
      'image-texture-array',
30
      options,
31
      context
32
    ),
33
  parseText: async (text: string, options?: TextureArrayLoaderOptions, context?: LoaderContext) =>
34
    await parseCompositeImageManifest(text, 'image-texture-array', options, context)
6✔
35
} as const satisfies LoaderWithParser<Texture, never, TextureArrayLoaderOptions>;
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