unioffice: github.com/unidoc/unioffice/measurement Index | Files

package measurement

import "github.com/unidoc/unioffice/measurement"

Index

Package Files

distance.go

Constants

const (
    Zero           Distance = 0
    Point                   = 1
    Pixel72                 = 1.0 / 72.0 * Inch
    Pixel96                 = 1.0 / 96.0 * Inch
    HalfPoint               = 1.0 / 2.0 * Point
    Character               = 7 * Point
    Millimeter              = 2.83465 * Point
    Centimeter              = 10 * Millimeter
    Inch                    = 72 * Point
    Foot                    = 12 * Inch
    Twips                   = 1.0 / 20.0 * Point
    EMU                     = 1.0 / 914400.0 * Inch
    HundredthPoint          = 1 / 100.0
    Dxa                     = Twips
)

Constants for various distance units

type Distance Uses

type Distance float64

Distance represents a distance and is automatically converted to the units needed internally in the various ECMA 376 formats.

Package measurement is imported by 39 packages. Updated 2019-07-26. Refresh now. Tools for package owners.