MCPcopy
hub / github.com/gre/gl-react / VisitorLike

Interface VisitorLike

packages/gl-react/src/Visitor.ts:5–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import type Bus from "./Bus";
4
5export interface VisitorLike {
6 onSurfaceMount(surface: Surface): void;
7 onSurfaceUnmount(surface: Surface): void;
8 onSurfaceGLContextChange(
9 surface: Surface,
10 gl: WebGLRenderingContext | null
11 ): void;
12 onSurfaceDrawSkipped(surface: Surface): void;
13 onSurfaceDrawStart(surface: Surface): void;
14 onSurfaceDrawError(e: Error): any;
15 onSurfaceDrawEnd(surface: Surface): void;
16 onNodeDrawSkipped(node: Node): void;
17 onNodeDrawStart(node: Node): void;
18 onNodeSyncDeps(
19 node: Node,
20 additions: Array<Node | Bus>,
21 deletions: Array<Node | Bus>
22 ): void;
23 onNodeDraw(node: Node, preparedUniforms: Array<any>): void;
24 onNodeDrawEnd(node: Node): void;
25}
26
27export default class Visitor {
28 onSurfaceMount(surface: Surface) {}

Callers 13

componentDidMountMethod · 0.65
componentWillUnmountMethod · 0.65
_destroyGLMethod · 0.65
_prepareGLMethod · 0.65
_drawMethod · 0.65
_drawMethod · 0.65
_drawMethod · 0.65
_drawMethod · 0.65
_drawMethod · 0.65
_drawMethod · 0.65
_drawMethod · 0.65
_drawMethod · 0.65

Implementers 2

InspectorManagerpackages/cookbook/src/components/GLIns
Visitorpackages/gl-react/src/Visitor.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…