Sha256: ab04ed081282823737ff6b067a560dcf4206707352117bb31a4af40c835e3735

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

Unit Conversion
===============

By default, Squib thinks in pixels. This decision was made so that we can have pixel-perfect layouts without automatically scaling everything, even though working in units is sometimes easier. We provide some conversion methods, including looking for strings that end in "in" and "cm" and computing based on the current DPI. The dpi is set on `Squib::Deck.new` (not `config.yml`).

Example is in `samples/units.rb` found [here](https://github.com/andymeneely/squib/tree/master/samples/units.rb)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.10.0 docs/units.rst