(
{ width, height }: Props,
{ glSizable }: SurfaceContext
)
| 105 | obj && typeof obj === "object" && obj.type === "TextureSize"; |
| 106 | |
| 107 | const nodeWidthHeight = ( |
| 108 | { width, height }: Props, |
| 109 | { glSizable }: SurfaceContext |
| 110 | ): [number, number] => { |
| 111 | if (width && height) return [width, height]; |
| 112 | const [cw, ch] = glSizable.getGLSize(); |
| 113 | return [width || cw, height || ch]; |
| 114 | }; |
| 115 | |
| 116 | const mapBlendFunc = ( |
| 117 | gl: WebGLRenderingContext, |
no test coverage detected
searching dependent graphs…