Refactor of draw.py (#150)

* Major refactor of draw.py
* Also addresses Issue #70, Issue #85, Issue #120, partial to Issue #6
* Make the label information more available so it can be picked up easier by the website frontend
* Add Avery Presta 94211 labels, label names
* Add tab-height to make easier calculations
* height is now the full height of the label.  tab-height is the portion used for the tab.
   (By doing this, adding labels is more intuitive and requires fewer calculations.)
* Fix for issue #239 The fix changes this to now include the original expansion in this case.  So now this results in the original expansion expansion being printed with the upgrade expansion cards included as well.
This commit is contained in:
Wendel Voigt authored and Peter committed 2019-01-01 20:55:35 -08:00
1 parent 1240b68c6c
commit 7c4c010fba
4 files changed
+1118 -491

No files matched your search

+23 -3
View File
@@ -4,14 +4,15 @@
"height": 1.27,
"margin-left": 0.75,
"margin-top": 1.27,
"name": "Label Avery 8867 Letter",
"names": [
"8867",
"5167",
"5267",
"5667",
"5967",
"8167",
"8667",
"8867",
"8927",
"15267",
"15667",
@@ -34,6 +35,7 @@
"height": 1.69,
"margin-left": 1.02,
"margin-top": 1.08,
"name": "Label Avery L4732 A4",
"names": [
"L4732",
"L7632"
@@ -41,15 +43,16 @@
"pad-horizontal": 0.1,
"pad-vertical": 0.1,
"paper": "A4",
"tab-height": 1.2,
"tab-only": true,
"width": 3.56
},{
"body-height": 1.055,
"gap-horizontal": 0.295,
"gap-vertical": 0.0,
"height": 1.06,
"height": 2.115,
"margin-left": 0.95,
"margin-top": 2.15,
"name": "Label Avery L4736 A4",
"names": [
"L4736",
"L6113"
@@ -57,7 +60,24 @@
"pad-horizontal": 0.1,
"pad-vertical": 0.1,
"paper": "A4",
"tab-height": 1.0,
"tab-only": false,
"width": 4.53
},{
"gap-horizontal": 0.96,
"gap-vertical": 0.42,
"height": 5.93,
"margin-left": 1.74,
"margin-top": 1.47,
"name": "Label Avery Presta 94211 Letter",
"names": [
"94211"
],
"pad-horizontal": 0.1,
"pad-vertical": 0.1,
"paper": "LETTER",
"tab-height": 0.9,
"tab-only": false,
"width": 8.57
}
]