aboutsummaryrefslogtreecommitdiffstats
path: root/doc/phpdoc/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-11 11:56:19 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-11 11:56:19 +0200
commit35efaf74e828b738a20324a664cf9c2e08ef47d4 (patch)
tree183b4704c87c61b690010efbd6f3b30218328bcc /doc/phpdoc/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js
parent2350d43a09495db18b22b86ffc815a84eeb35579 (diff)
parent1158d2063f00f38de19a4600566b244a942d86ba (diff)
downloadcandybox-alexichi.tar.gz
candybox-alexichi.tar.bz2
candybox-alexichi.tar.xz
candybox-alexichi.zip
Merge branch 'master' of piernov.org:candybox into alexichialexichi
Conflicts: inc/perso.inc
Diffstat (limited to 'doc/phpdoc/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js')
-rw-r--r--doc/phpdoc/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/phpdoc/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js b/doc/phpdoc/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js
new file mode 100644
index 0000000..4babb74
--- /dev/null
+++ b/doc/phpdoc/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js
@@ -0,0 +1,3 @@
+/* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com
+ jsDate | (c) 2010-2013 Chris Leonello
+ */(function(a){a.jqplot.CanvasAxisLabelRenderer=function(b){this.angle=0;this.axis;this.show=true;this.showLabel=true;this.label="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="11pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=true;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};a.extend(true,this,b);if(b.angle==null&&this.axis!="xaxis"&&this.axis!="x2axis"){this.angle=-90}var c={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};if(this.pt2px){c.pt2px=this.pt2px}if(this.enableFontSupport){if(a.jqplot.support_canvas_text()){this._textRenderer=new a.jqplot.CanvasFontRenderer(c)}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}};a.jqplot.CanvasAxisLabelRenderer.prototype.init=function(b){a.extend(true,this,b);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};a.jqplot.CanvasAxisLabelRenderer.prototype.getWidth=function(d){if(this._elem){return this._elem.outerWidth(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.sin(f.angle)*e)+Math.abs(Math.cos(f.angle)*c);return b}};a.jqplot.CanvasAxisLabelRenderer.prototype.getHeight=function(d){if(this._elem){return this._elem.outerHeight(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.cos(f.angle)*e)+Math.abs(Math.sin(f.angle)*c);return b}};a.jqplot.CanvasAxisLabelRenderer.prototype.getAngleRad=function(){var b=this.angle*Math.PI/180;return b};a.jqplot.CanvasAxisLabelRenderer.prototype.draw=function(c,f){if(this._elem){if(a.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce();this._elem=null}var e=f.canvasManager.getCanvas();this._textRenderer.setText(this.label,c);var b=this.getWidth(c);var d=this.getHeight(c);e.width=b;e.height=d;e.style.width=b;e.style.height=d;e=f.canvasManager.initCanvas(e);this._elem=a(e);this._elem.css({position:"absolute"});this._elem.addClass("jqplot-"+this.axis+"-label");e=null;return this._elem};a.jqplot.CanvasAxisLabelRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}})(jQuery); \ No newline at end of file