import { VisualProperties, VisualUniforms } from "./visual"; import type { Color, uint32 } from "../types"; import * as p from "../properties"; import * as mixins from "../property_mixins"; import type { Context2d, CanvasPatternRepetition } from "../util/canvas"; export interface Hatch extends Readonly { } export declare class Hatch extends VisualProperties { protected _hatch_image: CanvasImageSource | null; protected _hatch_svg: CanvasImageSource | null; protected _update_iteration: number; update(): void; get doit(): boolean; apply(ctx: Context2d, path_or_rule?: Path2D | CanvasFillRule, rule?: CanvasFillRule): boolean; set_value(ctx: Context2d): void; pattern(ctx: Context2d): CanvasPattern | null; repetition(): CanvasPatternRepetition; ComputedValues: { scale: number; pattern: string; }; computed_values(): this["ComputedValues"]; get_hatch_color(): Color | null; get_hatch_alpha(): number; get_hatch_scale(): number; get_hatch_pattern(): string | null; get_hatch_weight(): number; get_hatch_extra(): mixins.HatchExtra; } export declare class HatchScalar extends VisualUniforms { readonly hatch_color: p.UniformScalar; readonly hatch_alpha: p.UniformScalar; readonly hatch_scale: p.UniformScalar; readonly hatch_pattern: p.UniformScalar; readonly hatch_weight: p.UniformScalar; readonly hatch_extra: p.UniformScalar; protected _hatch_image: p.UniformScalar; protected _static_doit: boolean; protected _compute_static_doit(): boolean; protected _update_iteration: number; update(): void; get doit(): boolean; apply(ctx: Context2d, path_or_rule?: Path2D | CanvasFillRule, rule?: CanvasFillRule): boolean; set_value(ctx: Context2d): void; pattern(ctx: Context2d): CanvasPattern | null; repetition(): CanvasPatternRepetition; } export declare class HatchVector extends VisualUniforms { readonly hatch_color: p.Uniform; readonly hatch_alpha: p.Uniform; readonly hatch_scale: p.Uniform; readonly hatch_pattern: p.Uniform; readonly hatch_weight: p.Uniform; readonly hatch_extra: p.UniformScalar; protected _hatch_image: p.Uniform; protected _static_doit: boolean; protected _compute_static_doit(): boolean; protected _update_iteration: number; update(): void; get doit(): boolean; v_doit(i: number): boolean; apply(ctx: Context2d, i: number, path_or_rule?: Path2D | CanvasFillRule, rule?: CanvasFillRule): boolean; set_vectorize(ctx: Context2d, i: number): void; pattern(ctx: Context2d, i: number): CanvasPattern | null; repetition(i: number): CanvasPatternRepetition; } //# sourceMappingURL=hatch.d.ts.map