Optional preview options when rendering a PAT pattern to SVG.

interface AcDbPatPreviewOptions {
    background?: string;
    height?: number;
    stroke?: string;
    strokeWidth?: number;
    width?: number;
}

Properties

background?: string

Background fill color.

Accepts any valid CSS color value.

height?: number

SVG viewport height in pixels.

stroke?: string

Stroke color.

Accepts any valid CSS color value (for example #1f2937, rgb(...), red).

strokeWidth?: number

Stroke width in pixels.

width?: number

SVG viewport width in pixels.