// momentum

tracking since W49

// why it's here

  • Active: last commit today
  • Built almost entirely by one person
  • Around since 2010 and still shipping

// how to help

// readme

prawn-svg

An SVG renderer for the Prawn PDF library.

This will take an SVG document as input and render it into your PDF, along with whatever else you build with Prawn.

prawn-svg requires Prawn 2.3.0 or later, and Ruby 2.7 or later.

Using prawn-svg

Prawn::Document.generate("test.pdf") do
  svg '<svg><rect width="100" height="100" fill="red"></rect></svg>'
end

prawn-svg will do something sensible if you call it with only an SVG document, but you can also pass the following options to tailor its operation. Unknown options raise ArgumentError.

  • :at
    Type: [x, y] Β· Default: none
    Location on the page to draw the SVG.

  • :position
    Type: :left, :center, :right, integer Β· Default: :left
    Horizontal position, if :at isn’t given.

  • :vposition
    Type: :top, :center, :bottom, integer Β· Default: current cursor position
    Vertical position, if :at isn’t given.

  • :width
    Type: integer Β· Default: horizontal space available
    Desired width of the SVG.

  • :height
    Type: integer Β· Default: vertical space available
    Desired height of the SVG.

Read the full README on GitHub β†—

Health score

Is the project alive and maintained right now? A 0–100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity β€” divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated