"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cm2px = cm2px;
exports.px2cm = px2cm;
exports.mm2px = mm2px;
exports.px2mm = px2mm;
exports.in2px = in2px;
exports.px2in = px2in;
exports.pt2px = pt2px;
exports.px2pt = px2pt;
exports.pc2px = pc2px;
exports.px2pc = px2pc;
exports.mm2cm = mm2cm;
exports.in2cm = in2cm;
exports.pt2cm = pt2cm;
exports.pc2cm = pc2cm;
exports.cm2mm = cm2mm;
exports.in2mm = in2mm;
exports.pt2mm = pt2mm;
exports.pc2mm = pc2mm;
exports.cm2in = cm2in;
exports.mm2in = mm2in;
exports.pt2in = pt2in;
exports.pc2in = pc2in;
exports.cm2pt = cm2pt;
exports.mm2pt = mm2pt;
exports.in2pt = in2pt;
exports.pc2pt = pc2pt;
exports.cm2pc = cm2pc;
exports.mm2pc = mm2pc;
exports.in2pc = in2pc;
exports.pt2pc = pt2pc;
function cm2px(centimeters) {
    return centimeters * 9600 / 254;
}
function px2cm(pixels) {
    return pixels * 254 / 9600;
}
function mm2px(millimeters) {
    return millimeters * 960 / 254;
}
function px2mm(pixels) {
    return pixels * 254 / 960;
}
function in2px(inches) {
    return inches * 960;
}
function px2in(pixels) {
    return pixels / 960;
}
function pt2px(points) {
    return points * 4 / 3;
}
function px2pt(pixels) {
    return pixels / 4 * 3;
}
function pc2px(picas) {
    return picas * 16;
}
function px2pc(pixels) {
    return pixels / 16;
}
//-- cm
function mm2cm(millimeters) {
    return px2cm(mm2px(millimeters));
}
function in2cm(inches) {
    return px2cm(in2px(inches));
}
function pt2cm(points) {
    return px2cm(pt2px(points));
}
function pc2cm(picas) {
    return px2cm(pc2px(picas));
}
//-- mm
function cm2mm(centimeters) {
    return px2mm(cm2px(centimeters));
}
function in2mm(inches) {
    return px2mm(in2px(inches));
}
function pt2mm(points) {
    return px2mm(pt2px(points));
}
function pc2mm(picas) {
    return px2mm(pc2px(picas));
}
//-- in
function cm2in(centimeters) {
    return px2in(cm2px(centimeters));
}
function mm2in(millimeters) {
    return px2in(mm2px(millimeters));
}
function pt2in(points) {
    return px2in(pt2px(points));
}
function pc2in(picas) {
    return px2in(pc2px(picas));
}
//-- pt
function cm2pt(centimeters) {
    return px2pt(cm2px(centimeters));
}
function mm2pt(millimeters) {
    return px2pt(mm2px(millimeters));
}
function in2pt(inches) {
    return px2pt(in2px(inches));
}
function pc2pt(picas) {
    return px2pt(pc2px(picas));
}
//-- pc
function cm2pc(centimeters) {
    return px2pc(cm2px(centimeters));
}
function mm2pc(millimeters) {
    return px2pc(mm2px(millimeters));
}
function in2pc(inches) {
    return px2pc(in2px(inches));
}
function pt2pc(picas) {
    return px2pc(pt2px(picas));
}
//# sourceMappingURL=calc.js.map