const SegmentsTrait:
Trait<{ segments?: number | VectorLike | TensorArray | undefined; } & { positions?: TensorArray | VectorLikes | VectorLikes[] | ShaderSource, segments?: TensorArray | VectorLikes | ShaderSource },
OutputTypes<{ segments: (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