const FacetedTrait:
Trait<{ segments?: number | VectorLike | TensorArray | undefined; indices?: number | VectorLike | TensorArray | undefined; } & { positions?: VectorLikes | VectorLikes[], segments?: VectorLikes, indices?: VectorLikes },
OutputTypes<{ segments: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, indices: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined }> & { positions?: TypedArray, chunks?: VectorLike, groups?: VectorLike, formats: Record<string, string>, schema: ArchetypeSchema, tensor?: number[], ragged?: Ragged }>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / plot / src / traits.ts