| 3 | import type Bus from "./Bus"; |
| 4 | |
| 5 | export 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 | |
| 27 | export default class Visitor { |
| 28 | onSurfaceMount(surface: Surface) {} |
no outgoing calls
no test coverage detected
searching dependent graphs…