const ArrowTraits:
Trait<{ color?: string | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | ColorLike[], colors?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | ColorLike[] | ColorLikes[] | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource, opacity?: number } & { width?: number | VectorLike | TensorArray | undefined; widths?: TensorArray | VectorLikes | ShaderSource | undefined; size?: number | VectorLike | TensorArray | undefined; sizes?: TensorArray | VectorLikes | ShaderSource | undefined; } & { positions?: TensorArray | VectorLikes | ShaderSource | VectorLikes[] | VectorLikes[][] | undefined; depth?: number | VectorLike | TensorArray | undefined; depths?: TensorArray | VectorLikes | ShaderSource | undefined; zBias?: number | VectorLike | TensorArray | undefined; zBiases?: TensorArray | VectorLikes | ShaderSource | undefined; id?: number | VectorLike | TensorArray | undefined; ids?: TensorArray | VectorLikes | ShaderSource | undefined; lookup?: number | VectorLike | TensorArray | undefined; lookups?: TensorArray | VectorLikes | ShaderSource | undefined; } & { segments?: number | VectorLike | TensorArray | undefined; } & { positions?: TensorArray | VectorLikes | VectorLikes[] | ShaderSource, segments?: TensorArray | VectorLikes | ShaderSource } & { loop?: boolean | undefined; loops?: VectorLike | boolean[] | undefined; } & { start?: boolean | undefined; starts?: VectorLike | boolean[] | undefined; end?: boolean | undefined; ends?: VectorLike | boolean[] | undefined; } & { size?: number | undefined; flat?: boolean | undefined; } & { alphaToCoverage?: boolean | undefined; blend?: string | undefined; depthWrite?: boolean | undefined; depthTest?: boolean | undefined; mode?: string | undefined; } & { join?: string | undefined; dash?: VectorLike | TensorArray | undefined; proximity?: number | undefined; } & { zIndex?: number | undefined; },
{ color?: Float32Array, colors?: Float32Array } & OutputTypes<{ width: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, widths: (t: A | ShaderSource) => Float32Array | undefined, size: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, sizes: (t: A | ShaderSource) => Float32Array | undefined }> & OutputTypes<{ positions: (t: A | ShaderSource) => Float32Array | undefined, depth: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, depths: (t: A | ShaderSource) => Float32Array | undefined, zBias: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, zBiases: (t: A | ShaderSource) => Float32Array | undefined, id: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, ids: (t: A | ShaderSource) => Float32Array | undefined, lookup: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, lookups: (t: A | ShaderSource) => Float32Array | undefined }> & { formats?: Record<string, string>, sources?: Record<string, any>, tensor?: VectorLike, ragged?: Ragged } & 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 } & OutputTypes<{ size: (value?: number) => number, flat: (t?: boolean) => boolean | undefined }> & OutputTypes<{ alphaToCoverage: (t?: boolean) => boolean | undefined, blend: (t?: string) => | "none" | "alpha" | "premultiply" | "add" | "subtract" | "multiply" | undefined, depthWrite: (t?: boolean) => boolean | undefined, depthTest: (t?: boolean) => boolean | undefined, mode: (t?: string) => string | undefined }> & OutputTypes<{ join: (t?: string) => "miter" | "round" | "bevel" | undefined, dash: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => Float32Array | undefined, proximity: (t?: number) => number | undefined }> & OutputTypes<{ zIndex: (value?: number) => number }>>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / plot / src / traits.ts