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

keplergl / kepler.gl / 23948930176

03 Apr 2026 02:04PM UTC coverage: 60.018% (-1.7%) from 61.699%
23948930176

Pull #3271

github

web-flow
Merge 194def22d into bc59e880b
Pull Request #3271: chore: deck.gl 9.2 upgrade & loaders.gl, luma.gl upgrades

6517 of 12945 branches covered (50.34%)

Branch coverage included in aggregate %.

310 of 960 new or added lines in 57 files covered. (32.29%)

122 existing lines in 17 files now uncovered.

13299 of 20072 relevant lines covered (66.26%)

78.7 hits per line

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

69.23
/src/effects/src/utils.ts
1
// SPDX-License-Identifier: MIT
2
// Copyright contributors to the kepler.gl project
3

4
import {Effect as EffectInterface, EffectPropsPartial} from '@kepler.gl/types';
5
import {LIGHT_AND_SHADOW_EFFECT, DISTANCE_FOG_TYPE, SURFACE_FOG_TYPE} from '@kepler.gl/constants';
6

7
import LightingEffect from './lighting-effect';
8
import PostProcessEffect from './post-processing-effect';
9
import DistanceFogEffect from './distance-fog-effect';
10
import SurfaceFogEffect from './surface-fog-effect';
11

12
export function createEffect(params: EffectPropsPartial): EffectInterface {
13
  if (params?.type === LIGHT_AND_SHADOW_EFFECT.type) {
28✔
14
    return new LightingEffect(params);
7✔
15
  }
16
  if (params?.type === DISTANCE_FOG_TYPE) {
21!
NEW
17
    return new DistanceFogEffect(params);
×
18
  }
19
  if (params?.type === SURFACE_FOG_TYPE) {
21!
NEW
20
    return new SurfaceFogEffect(params);
×
21
  }
22
  return new PostProcessEffect(params);
21✔
23
}
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