jon.recoil.org

Module Svg_types.Unit

SVG defines several units to measure time, length, angles.

type 'a quantity = float * 'a option
type angle = [ `Deg | `Grad | `Rad ] Svg_types.Unit.quantity
type length = [ `Em | `Ex | `Px | `In | `Cm | `Mm | `Pt | `Pc | `Percent ] Svg_types.Unit.quantity
type time = [ `S | `Ms ] Svg_types.Unit.quantity
type frequency = [ `Hz | `KHz ] Svg_types.Unit.quantity