const FaceTraits:
Trait<{ color?: string | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | ColorLike[] | TensorArray, colors?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | ColorLike[] | TensorArray | ColorLikes[], opacity?: number } & { positions?: TensorArray | VectorLikes | VectorLikes[] | VectorLikes[][] | undefined; id?: number | VectorLike | TensorArray | undefined; ids?: TensorArray | VectorLikes | undefined; lookup?: number | VectorLike | TensorArray | undefined; lookups?: TensorArray | VectorLikes | undefined; } & object & { positions?: VectorLikes | VectorLikes[] | VectorLikes[][] } & { flat?: boolean | undefined; side?: string | undefined; } & { blend?: string | undefined; } & { zIndex?: number | undefined; },
{ color?: string | string[], colors?: string[] } & OutputTypes<{ positions: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | VectorLike[] | VectorLikes[] | VectorLikes[][]) => Float32Array<ArrayBuffer> | undefined, id: (t?: number | number[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray) => number | Float32Array<ArrayBuffer> | undefined, ids: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | VectorLike[]) => Float32Array<ArrayBuffer> | undefined, lookup: (t?: number | number[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray) => number | Float32Array<ArrayBuffer> | undefined, lookups: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | VectorLike[]) => Float32Array<ArrayBuffer> | undefined }> & { formats?: Record<string, string>, tensor?: VectorLike, ragged?: Ragged } & { positions?: TypedArray, chunks?: VectorLike, groups?: VectorLike, formats: Record<string, string>, schema: ArchetypeSchema, tensor?: number[], ragged?: Ragged } & OutputTypes<{ flat: (t?: boolean) => boolean | undefined, side: (t?: string) => "both" | "front" | "back" | undefined }> & OutputTypes<{ blend: (t?: string) => | "none" | "alpha" | "premultiply" | "add" | "subtract" | "multiply" | undefined }> & OutputTypes<{ zIndex: (value?: number) => number }>>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / 2d-plot / src / traits.ts