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

visgl / loaders.gl / 23748981362

30 Mar 2026 02:05PM UTC coverage: 35.2% (-0.05%) from 35.25%
23748981362

push

github

web-flow
feat(textures) Add composite texture loaders (#3328)

1208 of 2027 branches covered (59.6%)

Branch coverage included in aggregate %.

375 of 1137 new or added lines in 21 files covered. (32.98%)

13 existing lines in 4 files now uncovered.

38504 of 110792 relevant lines covered (34.75%)

0.79 hits per line

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

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

1✔
5
import type {LoaderContext, LoaderWithParser} from '@loaders.gl/loader-utils';
1✔
6
import type {Texture} from '@loaders.gl/schema';
1✔
7
import type {TextureLoaderOptions as TextureApiLoaderOptions} from './lib/texture-api/texture-api-types';
1✔
8
import {VERSION} from './lib/utils/version';
1✔
9
import {
1✔
10
  parseCompositeImageManifest,
1✔
11
  testCompositeImageManifestShape,
1✔
12
  type ImageTextureCubeArrayManifest
1✔
13
} from './lib/composite-image/parse-composite-image';
1✔
14

1✔
15
export type TextureCubeArrayLoaderOptions = TextureApiLoaderOptions;
1✔
16
export type {ImageTextureCubeArrayManifest as TextureCubeArrayManifest};
1✔
17

1✔
18
export const TextureCubeArrayLoader = {
1✔
19
  dataType: null as unknown as Texture,
1✔
20
  batchType: null as never,
1✔
21
  id: 'texture-cube-array',
1✔
22
  name: 'Texture Cube Array',
1✔
23
  module: 'textures',
1✔
24
  version: VERSION,
1✔
25
  extensions: [],
1✔
26
  mimeTypes: [],
1✔
27
  text: true,
1✔
28
  worker: false,
1✔
29
  testText: (text: string) => testCompositeImageManifestShape(text, 'image-texture-cube-array'),
1✔
30
  options: {
1✔
31
    image: {}
1✔
32
  },
1✔
33
  parse: async (
1✔
NEW
34
    arrayBuffer: ArrayBuffer,
×
NEW
35
    options?: TextureCubeArrayLoaderOptions,
×
NEW
36
    context?: LoaderContext
×
NEW
37
  ) =>
×
NEW
38
    await parseCompositeImageManifest(
×
NEW
39
      new TextDecoder().decode(arrayBuffer),
×
NEW
40
      'image-texture-cube-array',
×
NEW
41
      options,
×
NEW
42
      context
×
NEW
43
    ),
×
44
  parseText: async (
1✔
NEW
45
    text: string,
×
NEW
46
    options?: TextureCubeArrayLoaderOptions,
×
NEW
47
    context?: LoaderContext
×
NEW
48
  ) => await parseCompositeImageManifest(text, 'image-texture-cube-array', options, context)
×
49
} as const satisfies LoaderWithParser<Texture, never, TextureCubeArrayLoaderOptions>;
1✔
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