const PointTraits:
Trait<{ color?: ColorLike, colors?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | ColorLike[] | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource, opacity?: number } & { size?: number | undefined; sizes?: VectorLike | TensorArray | ShaderSource | undefined; } & { position?: VectorLike | undefined; positions?: TensorArray | VectorLikes | ShaderSource | undefined; depth?: number | undefined; depths?: VectorLike | TensorArray | ShaderSource | undefined; zBias?: number | undefined; zBiases?: VectorLike | TensorArray | ShaderSource | undefined; id?: number | undefined; ids?: VectorLike | TensorArray | ShaderSource | undefined; lookup?: number | undefined; lookups?: VectorLike | TensorArray | ShaderSource | undefined; } & { shape?: string | undefined; hollow?: boolean | undefined; outline?: number | undefined; } & { size?: number | undefined; depth?: number | undefined; } & { alphaToCoverage?: boolean | undefined; blend?: string | undefined; depthWrite?: boolean | undefined; depthTest?: boolean | undefined; mode?: string | undefined; } & { zIndex?: number | undefined; },
{ color?: vec4, colors?: Float32Array } & OutputTypes<{ size: (t?: number) => number | undefined, sizes: (t: A | ShaderSource) => Float32Array | undefined }> & OutputTypes<{ position: (t?: VectorLike) => Float32Array | [number, number, number, number] | undefined, positions: (t: A | ShaderSource) => Float32Array | undefined, depth: (t?: number) => number | undefined, depths: (t: A | ShaderSource) => Float32Array | undefined, zBias: (t?: number) => number | undefined, zBiases: (t: A | ShaderSource) => Float32Array | undefined, id: (t?: number) => number | undefined, ids: (t: A | ShaderSource) => Float32Array | undefined, lookup: (t?: number) => number | undefined, lookups: (t: A | ShaderSource) => Float32Array | undefined }> & { formats?: Record<string, string>, sources?: Record<string, any>, tensor?: VectorLike, ragged?: Ragged } & OutputTypes<{ shape: (t?: string) => | "left" | "right" | "circle" | "diamond" | "square" | "up" | "down" | undefined, hollow: (t?: boolean) => boolean | undefined, outline: (t?: number) => number | undefined }> & OutputTypes<{ size: (value?: number) => number, depth: (t?: number) => number | 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<{ zIndex: (value?: number) => number }>>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / plot / src / traits.ts