[canviz] r479 committed - reinitialize some variables in parse() rather than only in the constru...

1 view
Skip to first unread message

can...@googlecode.com

unread,
Sep 6, 2013, 9:22:45 PM9/6/13
to canviz-...@googlegroups.com
Revision: 479
Author: ryandesign.com
Date: Sat Sep 7 01:22:37 2013 UTC
Log: reinitialize some variables in parse() rather than only in the
constructor

http://code.google.com/p/canviz/source/detail?r=479

Modified:
/canviz/trunk/src/Canviz.js

=======================================
--- /canviz/trunk/src/Canviz.js Sat Sep 7 01:19:33 2013 UTC
+++ /canviz/trunk/src/Canviz.js Sat Sep 7 01:22:37 2013 UTC
@@ -30,8 +30,6 @@
if (this.ctx.fillText) textModes.push('canvas');
this.setTextMode(textModes[0]);
this.setScale(1);
- this.marginX = this.marginY = this.numImages = this.numImagesFinished =
0;
- this.paddingX = this.paddingY = XDOT_DPI * 0.0555;
this.dashLength = 6;
this.dotSpacing = 4;
this.graphs = [];
@@ -103,7 +101,9 @@
if (IS_BROWSER) document.getElementById('debug_output').innerHTML = '';

this.graphs = [];
- this.width = this.height = this.maxWidth = this.maxHeight =
this.bbEnlarge = 0;
+ this.images = {};
+ this.width = this.height = this.maxWidth = this.maxHeight =
this.bbEnlarge = this.marginX = this.marginY = this.numImages =
this.numImagesFinished = 0;
+ this.paddingX = this.paddingY = XDOT_DPI * 0.0555;
this.dpi = 96;
this.bgcolor = {opacity: 1};
this.bgcolor.canvasColor = this.bgcolor.textColor = '#ffffff';
Reply all
Reply to author
Forward
0 new messages