Skip to content

Instantly share code, notes, and snippets.

@mattmutt
Created April 21, 2016 21:53
Show Gist options
  • Save mattmutt/804841c7122a5c83bd64f6446a0e30e8 to your computer and use it in GitHub Desktop.
Save mattmutt/804841c7122a5c83bd64f6446a0e30e8 to your computer and use it in GitHub Desktop.
// 6 x 9 flyer
var fl6x9 = {
// face side of the product
metrics: {
// bleed sizing
bleed: {
shape: "rectangle",
measurement: "mm",
dimensions: {
width: 234.95,
height: 158.75
}
}
},
zones: [
// stamp
{
id: 1,
label: "Stamp",
description: "Postage Stamp",
geometry: {
shape: "rectangle",
left: 206.25,
top: 0,
width: 28.70,
height: 29.20
}
},
// barcode
{
id: 2,
label: "Barcode",
description: "Post office barcode marking only",
geometry: {
shape: "rectangle",
left: 111.00,
top: 139.45,
width: 123.95,
height: 19.30
}
},
// addressee
{
id: 3,
label: "Addressee",
description: "For mailing address only",
geometry: {
shape: "rectangle",
left: 161.80,
top: 95.50,
width: 57.66,
height: 44.20
}
}
]
};
// 5 x 7 flyer
var fl5x7 = {
// face side of the product
metrics: {
// bleed sizing
bleed: {
shape: "rectangle",
measurement: "mm",
dimensions: {
width: 184.15,
height: 133.35
}
}
},
zones: [
// stamp
{
id: 1,
label: "Stamp",
decription: "Postage Stamp",
geometry: {
shape: "rectangle",
left: 152.4,
top: 0,
// width: 31.82,
width: 28.63,
height: 28.63
}
},
// barcode
{
id: 2,
label: "Barcode",
description: "Post office barcode marking only",
geometry: {
shape: "rectangle",
left: 57.15,
top: 111.18,
width: 123.88,
height: 19.05
}
},
// addressee
{
id: 3,
label: "Addressee",
description: "For mailing address only",
geometry: {
shape: "rectangle",
left: 107.95,
top: 66.73,
width: 57.15,
height: 44.45
}
}
]
};
// 6 x 11 flyer
var fl6x11 = {
// face side of the product
metrics: {
// bleed sizing
bleed: {
shape: "rectangle",
measurement: "mm",
dimensions: {
width: 285.75,
height: 158.75
}
}
},
zones: [
// stamp
{
id: 1,
label: "Stamp",
decription: "Postage Stamp",
geometry: {
shape: "rectangle",
left: 254,
top: 0,
// width: 31.82,
width: 28.63,
height: 28.63
}
},
// barcode
{
id: 2,
label: "Barcode",
description: "Post office barcode marking only",
geometry: {
shape: "rectangle",
left: 158.75,
top: 136.98,
width: 123.88,
height: 18.65
}
},
// addressee
{
id: 3,
label: "Addressee",
description: "For mailing address only",
geometry: {
shape: "rectangle",
left: 209.55,
top: 92.13,
width: 57.15,
height: 44.45
}
}
]
};
// 4.25 x 5.5" postcard
var pc4x55 = {
// face side of the product
metrics: {
// bleed sizing
bleed: {
shape: "rectangle",
measurement: "mm",
dimensions: {
width: 146.05,
height: 114.3
}
}
},
zones: [
// stamp
{
id: 1,
label: "Stamp",
decription: "Postage Stamp",
geometry: {
shape: "rectangle",
left: 114.55,
top: 0,
width: 28.38,
height: 28.38
}
},
// barcode
{
id: 2,
label: "Barcode",
description: "Post office barcode marking only",
geometry: {
shape: "rectangle",
left: 19.05,
top: 92.28,
width: 123.88,
height: 18.65
}
},
// addressee
{
id: 3,
label: "Addressee",
description: "For mailing address only",
geometry: {
shape: "rectangle",
left: 69.85,
top: 47.68,
width: 57.15,
height: 44.45
}
}
]
};
// postcard 5.5 x 8.5
var pc55x85 = {
// face side of the product
metrics: {
// bleed sizing
bleed: {
shape: "rectangle",
measurement: "mm",
dimensions: {
width: 222.25,
height: 146.05
}
}
},
zones: [
// stamp
{
id: 1,
label: "Stamp",
decription: "Postage Stamp",
geometry: {
shape: "rectangle",
left: 190.5,
top: 0,
width: 28.63,
height: 28.63
}
},
// barcode
{
id: 2,
label: "Barcode",
description: "Post office barcode marking only",
geometry: {
shape: "rectangle",
left: 95.25,
top: 123.88,
width: 123.88,
height: 18.65
}
},
// addressee
{
id: 3,
label: "Addressee",
description: "For mailing address only",
geometry: {
shape: "rectangle",
left: 146.05,
top: 79.43,
width: 57.15,
height: 44.45
}
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment