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

visgl / deck.gl / 14785476361

01 May 2025 11:33PM CUT coverage: 91.632%. Remained the same
14785476361

Pull #9611

github

web-flow
Merge f528ddc47 into cc09f8b75
Pull Request #9611: docs(widgets): GeocoderWidget docs

6756 of 7419 branches covered (91.06%)

Branch coverage included in aggregate %.

55751 of 60796 relevant lines covered (91.7%)

14500.91 hits per line

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

0.0
/modules/core/src/lib/effect.ts
1
// deck.gl
×
2
// SPDX-License-Identifier: MIT
×
3
// Copyright (c) vis.gl contributors
×
4

×
5
import type Deck from './deck';
×
6
import type Layer from './layer';
×
7
import type {LayersPassRenderOptions} from '../passes/layers-pass';
×
8
import type {Device} from '@luma.gl/core';
×
9
import type {Framebuffer} from '@luma.gl/core';
×
10

×
11
export type PreRenderOptions = LayersPassRenderOptions;
×
12
export type PostRenderOptions = LayersPassRenderOptions & {
×
13
  inputBuffer: Framebuffer;
×
14
  swapBuffer: Framebuffer;
×
15
};
×
16
export type EffectContext = {
×
17
  deck: Deck<any>;
×
18
  device: Device;
×
19
};
×
20

×
21
export interface Effect {
×
22
  id: string;
×
23
  props: any;
×
24
  /** If true, this effect will also be used when rendering to the picking buffer */
×
25
  useInPicking?: boolean;
×
26
  /** Effects with smaller value gets executed first. If not provided, will get executed in the order added. */
×
27
  order?: number;
×
28

×
29
  // / Render methods
×
30
  /** Called before layers are rendered to screen */
×
31
  preRender(opts: PreRenderOptions): void;
×
32
  /** Called after layers are rendered to screen */
×
33
  postRender?(opts: PostRenderOptions): Framebuffer | null;
×
34
  /** Module settings passed to models */
×
35
  getShaderModuleProps?(layer: Layer, otherShaderModuleProps: Record<string, any>): any;
×
36

×
37
  // / Lifecycle methods
×
38
  /** Called when this effect is added */
×
39
  setup(context: EffectContext): void;
×
40
  /** Called when the effect's props are updated. */
×
41
  setProps?(props: any): void;
×
42
  /** Called when this effect is removed */
×
43
  cleanup(context: EffectContext): void;
×
44
}
×
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

© 2025 Coveralls, Inc