Renders an AcDbPatPattern into a standalone SVG preview string.

The renderer normalizes pattern units to pixels, expands each hatch line family to cover the viewport, resolves dash/gap sequences into explicit segments, and emits a compact <svg> document.

Constructors

Methods

Constructors

Methods

  • Renders a PAT pattern preview as a complete SVG document string.

    The method applies option defaults, computes an automatic unit-to-pixel scale, transforms the pattern to screen space, and combines all line families into one grouped stroke layer over a background rectangle.

    Parameters

    Returns string

    Standalone SVG markup that can be injected directly into DOM or saved as a .svg asset.