const TickTraits:
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 } & { width?: number | VectorLike | TensorArray | undefined; widths?: TensorArray | VectorLikes | ShaderSource | undefined; tangent?: VectorLike | undefined; tangents?: TensorArray | VectorLikes | 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; } & { width?: 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<{ width: (t?: number | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | number[] | TensorArray) => number | Float32Array | undefined, widths: (t: A | ShaderSource) => Float32Array | undefined, tangent: (t?: VectorLike) => Float32Array | [number, number, number, number] | undefined, tangents: (t?: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | TensorArray | VectorLike[]) => 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<{ width: (t?: number) => number | undefined, 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