Clash Blueprint Engine API
    Preparing search index...

    Type Alias Rasterizer

    Rasterizer: (svg: string, options: { scale: number }) => Promise<string>

    Rasterizes an SVG string to a PNG data URL at a scale factor (2 = retina, ~3.125 ≈ 300 DPI). Injected rather than imported, so the pure exporter never depends on a browser or a native rasterizer — the adapter supplies it.

    Type Declaration

      • (svg: string, options: { scale: number }): Promise<string>
      • Parameters

        • svg: string
        • options: { scale: number }

        Returns Promise<string>