diff options
Diffstat (limited to 'js/RrdGfxPdf.js')
-rw-r--r-- | js/RrdGfxPdf.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/RrdGfxPdf.js b/js/RrdGfxPdf.js index 9203020..230d441 100644 --- a/js/RrdGfxPdf.js +++ b/js/RrdGfxPdf.js | |||
@@ -267,7 +267,7 @@ RrdGfxPdf.prototype.moveTo = function (x,y) | |||
267 | 267 | ||
268 | RrdGfxPdf.prototype.lineTo = function (x,y) | 268 | RrdGfxPdf.prototype.lineTo = function (x,y) |
269 | { | 269 | { |
270 | this._lineTo(x, y) | 270 | this._lineTo(x, y); |
271 | }; | 271 | }; |
272 | 272 | ||
273 | RrdGfxPdf.prototype.text = function (x, y, color, font, tabwidth, angle, h_align, v_align, text) | 273 | RrdGfxPdf.prototype.text = function (x, y, color, font, tabwidth, angle, h_align, v_align, text) |
@@ -319,7 +319,7 @@ RrdGfxPdf.prototype.text = function (x, y, color, font, tabwidth, angle, h_align | |||
319 | } | 319 | } |
320 | 320 | ||
321 | x = x*this.k; | 321 | x = x*this.k; |
322 | y = (this.h-y)*this.k | 322 | y = (this.h-y)*this.k; |
323 | 323 | ||
324 | var tm = []; | 324 | var tm = []; |
325 | tm[0] = Math.cos(angle*Math.PI/180.0); | 325 | tm[0] = Math.cos(angle*Math.PI/180.0); |
@@ -834,7 +834,7 @@ RrdGfxPdf.prototype._putstream = function(s) | |||
834 | this._out('stream'); | 834 | this._out('stream'); |
835 | this._out(s); | 835 | this._out(s); |
836 | this._out('endstream'); | 836 | this._out('endstream'); |
837 | }, | 837 | }; |
838 | 838 | ||
839 | RrdGfxPdf.prototype._out = function(s) | 839 | RrdGfxPdf.prototype._out = function(s) |
840 | { | 840 | { |
@@ -964,7 +964,7 @@ RrdGfxPdf.prototype._putcatalog = function() | |||
964 | this._out('/OpenAction [3 0 R /FitH null]'); | 964 | this._out('/OpenAction [3 0 R /FitH null]'); |
965 | else if(this.ZoomMode=='real') | 965 | else if(this.ZoomMode=='real') |
966 | this._out('/OpenAction [3 0 R /XYZ null null 1]'); | 966 | this._out('/OpenAction [3 0 R /XYZ null null 1]'); |
967 | else if(!(typeof this.ZoomMode === 'string')) | 967 | else if(typeof this.ZoomMode !== 'string') |
968 | this._out('/OpenAction [3 0 R /XYZ null null '+sprintf('%.2F',this.ZoomMode/100)+']'); | 968 | this._out('/OpenAction [3 0 R /XYZ null null '+sprintf('%.2F',this.ZoomMode/100)+']'); |
969 | 969 | ||
970 | if(this.LayoutMode=='single') | 970 | if(this.LayoutMode=='single') |