const SurfaceTraits:
Trait<{ color?: string | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | ColorLike[], colors?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | ColorLike[] | ColorLikes[] | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource, opacity?: number } & { loopX?: boolean | undefined; loopY?: boolean | undefined; } & { positions?: TensorArray | VectorLikes | ShaderSource | VectorLikes[] | VectorLikes[][] | undefined; depth?: number | VectorLike | TensorArray | undefined; depths?: TensorArray | VectorLikes | ShaderSource | undefined; zBias?: number | VectorLike | TensorArray | undefined; zBiases?: TensorArray | VectorLikes | ShaderSource | undefined; id?: number | VectorLike | TensorArray | undefined; ids?: TensorArray | VectorLikes | ShaderSource | undefined; lookup?: number | VectorLike | TensorArray | undefined; lookups?: TensorArray | VectorLikes | ShaderSource | undefined; } & { size?: VectorLike | TensorArray | undefined; } & { color?: VectorLike | string, opacity?: number } & { flat?: boolean | undefined; shaded?: boolean | undefined; side?: string | undefined; shadow?: boolean | undefined; } & { alphaToCoverage?: boolean | undefined; blend?: string | undefined; depthWrite?: boolean | undefined; depthTest?: boolean | undefined; mode?: string | undefined; } & { join?: string | undefined; dash?: VectorLike | TensorArray | undefined; proximity?: number | undefined; } & { zIndex?: number | undefined; },
{ color?: Float32Array, colors?: Float32Array } & OutputTypes<{ loopX: (t?: boolean) => boolean | undefined, loopY: (t?: boolean) => boolean | undefined }> & OutputTypes<{ positions: (t: A | ShaderSource) => Float32Array | undefined, depth: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, depths: (t: A | ShaderSource) => Float32Array | undefined, zBias: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, zBiases: (t: A | ShaderSource) => Float32Array | undefined, id: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, ids: (t: A | ShaderSource) => Float32Array | undefined, lookup: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, lookups: (t: A | ShaderSource) => Float32Array | undefined }> & { formats?: Record<string, string>, sources?: Record<string, any>, tensor?: VectorLike, ragged?: Ragged } & OutputTypes<{ size: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => Float32Array | undefined }> & { color?: VectorLike } & OutputTypes<{ flat: (t?: boolean) => boolean | undefined, shaded: (t?: boolean) => boolean | undefined, side: (t?: string) => "both" | "front" | "back" | undefined, shadow: (t?: boolean) => boolean | undefined }> & OutputTypes<{ alphaToCoverage: (t?: boolean) => boolean | undefined, blend: (t?: string) => | "none" | "alpha" | "premultiply" | "add" | "subtract" | "multiply" | undefined, depthWrite: (t?: boolean) => boolean | undefined, depthTest: (t?: boolean) => boolean | undefined, mode: (t?: string) => string | undefined }> & OutputTypes<{ join: (t?: string) => "miter" | "round" | "bevel" | undefined, dash: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => Float32Array | undefined, proximity: (t?: number) => number | undefined }> & OutputTypes<{ zIndex: (value?: number) => number }>>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / plot / src / traits.ts