Automatic shader prop for the dimensions of the Node being rendered

Shader's who's rendering depends on the dimensions of the Node being rendered should extend this interface from their Prop interface type.

interface ShaderEffectValueMap {
    $alpha?: number;
    $dimensions?: Dimensions;
    hasProgramValueUpdater: boolean;
    hasValidator: boolean;
    method:
        | "uniform1f"
        | "uniform1i"
        | "uniform2f"
        | "uniform2i"
        | "uniform3f"
        | "uniform3i"
        | "uniform4f"
        | "uniform4i"
        | "uniform1fv"
        | "uniform1iv"
        | "uniform2fv"
        | "uniform2iv"
        | "uniform3fv"
        | "uniform3iv"
        | "uniform4fv"
        | "uniform4iv"
        | "uniformMatrix2fv"
        | "uniformMatrix3fv"
        | "uniformMatrix4fv";
    programValue: undefined | number | Float32Array;
    setUniformValue?: (() => null | void);
    updateOnBind: boolean;
    validatedValue?: number | number[];
    value:
        | string
        | number
        | boolean
        | number[];
}

Hierarchy (view full)

Properties

$alpha?: number

Alpha of the Node being rendered (Auto-set by the renderer)

DO NOT SET THIS. It is set automatically by the renderer. Any values set here will be ignored.

$dimensions?: Dimensions

Dimensions of the Node being rendered (Auto-set by the renderer)

DO NOT SET THIS. It is set automatically by the renderer. Any values set here will be ignored.

hasProgramValueUpdater: boolean
hasValidator: boolean
method:
    | "uniform1f"
    | "uniform1i"
    | "uniform2f"
    | "uniform2i"
    | "uniform3f"
    | "uniform3i"
    | "uniform4f"
    | "uniform4i"
    | "uniform1fv"
    | "uniform1iv"
    | "uniform2fv"
    | "uniform2iv"
    | "uniform3fv"
    | "uniform3iv"
    | "uniform4fv"
    | "uniform4iv"
    | "uniformMatrix2fv"
    | "uniformMatrix3fv"
    | "uniformMatrix4fv"
programValue: undefined | number | Float32Array
setUniformValue?: (() => null | void)
updateOnBind: boolean
validatedValue?: number | number[]
value:
    | string
    | number
    | boolean
    | number[]