const LineSegmentsTrait:
Trait<{ segments?: number | VectorLike | TensorArray | undefined; } & { positions?: TensorArray | VectorLikes | VectorLikes[] | ShaderSource, segments?: TensorArray | VectorLikes | ShaderSource } & { loop?: boolean | undefined; loops?: VectorLike | boolean[] | undefined; },
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 } & OutputTypes<{ loop: (t?: boolean) => boolean | undefined, loops: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | boolean[]) => Uint8Array | undefined }> & { chunks?: VectorLike, groups?: VectorLike, loop?: boolean | TypedArray, loops?: TypedArray, count?: number, segment?: number, segments?: TypedArray, unwelds?: TypedArray, slices?: TypedArray }>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / plot / src / traits.ts