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

keplergl / kepler.gl / 23878360207

02 Apr 2026 12:56AM UTC coverage: 60.659% (-1.0%) from 61.699%
23878360207

Pull #3271

github

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

6517 of 12785 branches covered (50.97%)

Branch coverage included in aggregate %.

271 of 739 new or added lines in 50 files covered. (36.67%)

102 existing lines in 12 files now uncovered.

13281 of 19853 relevant lines covered (66.9%)

79.45 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