const ElementTrait:
Trait<Defaulted<InputTypes<{ width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, aspect: (t?: number) => number | undefined, radius: (t?: MarginLike) => XYZW | undefined, border: (t?: MarginLike) => XYZW | undefined, stroke: (t?: ColorLike) => Float32Array | [number, number, number, number] | undefined, fill: (t?: ColorLike) => Float32Array | [number, number, number, number] | undefined, texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, image: (t?: Defaulted<InputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }>, Partial<InputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }>>>) => | OutputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }> | undefined, zIndex: (value?: number) => number }>, Partial<InputTypes<{ width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, aspect: (t?: number) => number | undefined, radius: (t?: MarginLike) => XYZW | undefined, border: (t?: MarginLike) => XYZW | undefined, stroke: (t?: ColorLike) => Float32Array | [number, number, number, number] | undefined, fill: (t?: ColorLike) => Float32Array | [number, number, number, number] | undefined, texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, image: (t?: Defaulted<InputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }>, Partial<InputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }>>>) => | OutputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }> | undefined, zIndex: (value?: number) => number }>>>,
OutputTypes<{ width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, aspect: (t?: number) => number | undefined, radius: (t?: MarginLike) => XYZW | undefined, border: (t?: MarginLike) => XYZW | undefined, stroke: (t?: ColorLike) => Float32Array | [number, number, number, number] | undefined, fill: (t?: ColorLike) => Float32Array | [number, number, number, number] | undefined, texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, image: (t?: Defaulted<InputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }>, Partial<InputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }>>>) => | OutputTypes<{ texture: (t?: ShaderSource) => | StorageSource | ParsedBundle<any> | ParsedModule<any> | LambdaSource<ShaderModule<any>> | TextureSource | null | undefined, width: (t?: string | number) => string | number | null | undefined, height: (t?: string | number) => string | number | null | undefined, fit: (s?: string) => Fit, repeat: (s?: string) => Repeat, align: (x?: AnchorLike) => [Anchor, Anchor] }> | undefined, zIndex: (value?: number) => number }>>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / layout / src / traits.ts