/** * Generate SVG markup for hatch lines clipped to a face polygon. * * @param {number[]} pts - Flat [x0,y0,x1,y1,...] array of projected face corners * @param {HatchOptions} hatch * @param {string|null} pathD - Occluded face path data; when non-null, clips to this shape instead of the full quad * @param {Object|null} faceStyle - Face style object (used for stroke/strokeWidth defaults) * @returns {string} SVG markup: line elements */ export function buildHatchSVG(pts: number[], hatch: HatchOptions, pathD: string | null, faceStyle: any | null): string; export type HatchOptions = { /** * - Hatch line angle in degrees */ angle?: number; /** * - Spacing between hatch lines in pixels */ period?: number; /** * - Hatch line color (defaults to face stroke or "currentColor") */ stroke?: string; /** * - Hatch line width (defaults to face strokeWidth) */ strokeWidth?: number; /** * - Hatch line opacity */ opacity?: number; };