const ImplicitSurfaceTraits:
Trait<{ color?: VectorLike | string, opacity?: number } & { flat?: boolean | undefined; shaded?: boolean | undefined; side?: string | undefined; shadow?: boolean | undefined; } & { loopX?: boolean | undefined; loopY?: boolean | undefined; loopZ?: boolean | undefined; } & { alphaToCoverage?: boolean | undefined; blend?: string | undefined; depthWrite?: boolean | undefined; depthTest?: boolean | undefined; mode?: string | undefined; } & { zIndex?: number | undefined; } & { range?: ArrayLike[] | undefined; values?: VectorLike | TensorArray | undefined; normals?: TensorArray | VectorLikes | undefined; size?: VectorLike | TensorArray | undefined; method?: string | undefined; level?: number | undefined; padding?: number | undefined; id?: number | undefined; zBias?: number | undefined; },
{ color?: VectorLike } & { formats?: Record<string, string>, sources?: Record<string, any>, tensor?: VectorLike, ragged?: Ragged } & OutputTypes<{ flat: (t?: boolean) => boolean | undefined, shaded: (t?: boolean) => boolean | undefined, side: (t?: string) => "both" | "front" | "back" | undefined, shadow: (t?: boolean) => boolean | undefined }> & OutputTypes<{ loopX: (t?: boolean) => boolean | undefined, loopY: (t?: boolean) => boolean | undefined, loopZ: (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<{ zIndex: (value?: number) => number }> & OutputTypes<{ range: (t?: ArrayLike[]) => vec2[] | undefined, values: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => Float32Array | undefined, normals: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | VectorLike[]) => Float32Array | undefined, size: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => Float32Array | undefined, method: (s?: string) => string, level: (value?: number) => number, padding: (value?: number) => number, id: (value?: number) => number, zBias: (value?: number) => number }>>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / plot / src / traits.ts