cylindertransport-web.py

changeset 19
32de35694e56
parent 18
ff1941c85fd3
child 21
41083328ca82
--- a/cylindertransport-web.py	Thu Apr 06 16:21:21 2017 +0200
+++ b/cylindertransport-web.py	Thu Apr 06 17:18:24 2017 +0200
@@ -29,6 +29,7 @@
         img_str = base64.b64encode(buffer.getvalue())
         print json.dumps({
             "objects": calc.circles,
+            "offset": (calc.width - (2 * calc.margin)) / 2,
             "scale3d": config.SCALE3D,
             "image": img_str
             })

mercurial