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

visgl / deck.gl / 12770409056

14 Jan 2025 03:02PM CUT coverage: 91.672%. Remained the same
12770409056

Pull #9351

github

web-flow
Merge cdce0b6b1 into 665f981d6
Pull Request #9351: chore: pin ubuntu CI version to fix release workflow

6679 of 7315 branches covered (91.31%)

Branch coverage included in aggregate %.

54039 of 58919 relevant lines covered (91.72%)

14897.12 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