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