bump and build for 1.1.1 release
Esse commit está contido em:
externo
+10
-12
@@ -1,7 +1,7 @@
|
|||||||
/*!
|
/*!
|
||||||
* Chart.js
|
* Chart.js
|
||||||
* http://chartjs.org/
|
* http://chartjs.org/
|
||||||
* Version: 1.1.0
|
* Version: 1.1.1
|
||||||
*
|
*
|
||||||
* Copyright 2015 Nick Downie
|
* Copyright 2015 Nick Downie
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
@@ -40,8 +40,6 @@
|
|||||||
var width = this.width = computeDimension(context.canvas,'Width') || context.canvas.width;
|
var width = this.width = computeDimension(context.canvas,'Width') || context.canvas.width;
|
||||||
var height = this.height = computeDimension(context.canvas,'Height') || context.canvas.height;
|
var height = this.height = computeDimension(context.canvas,'Height') || context.canvas.height;
|
||||||
|
|
||||||
width = this.width = context.canvas.width;
|
|
||||||
height = this.height = context.canvas.height;
|
|
||||||
this.aspectRatio = this.width / this.height;
|
this.aspectRatio = this.width / this.height;
|
||||||
//High pixel density displays - multiply the size of the canvas height/width by the device pixel ratio, then scale.
|
//High pixel density displays - multiply the size of the canvas height/width by the device pixel ratio, then scale.
|
||||||
helpers.retinaScale(this);
|
helpers.retinaScale(this);
|
||||||
@@ -2290,7 +2288,7 @@
|
|||||||
barDatasetSpacing : 1,
|
barDatasetSpacing : 1,
|
||||||
|
|
||||||
//String - A legend template
|
//String - A legend template
|
||||||
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].fillColor%>\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>"
|
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span class=\"<%=name.toLowerCase()%>-legend-icon\" style=\"background-color:<%=datasets[i].fillColor%>\"></span><span class=\"<%=name.toLowerCase()%>-legend-text\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>"
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2369,10 +2367,10 @@
|
|||||||
value : dataPoint,
|
value : dataPoint,
|
||||||
label : data.labels[index],
|
label : data.labels[index],
|
||||||
datasetLabel: dataset.label,
|
datasetLabel: dataset.label,
|
||||||
strokeColor : (typeof dataset.strokeColor != 'string') ? dataset.strokeColor[index] : dataset.strokeColor,
|
strokeColor : (typeof dataset.strokeColor == 'object') ? dataset.strokeColor[index] : dataset.strokeColor,
|
||||||
fillColor : (typeof dataset.fillColor != 'string') ? dataset.fillColor[index] : dataset.fillColor,
|
fillColor : (typeof dataset.fillColor == 'object') ? dataset.fillColor[index] : dataset.fillColor,
|
||||||
highlightFill : (dataset.highlightFill) ? (typeof dataset.highlightFill != 'string') ? dataset.highlightFill[index] : dataset.highlightFill : (typeof dataset.fillColor != 'string') ? dataset.fillColor[index] : dataset.fillColor,
|
highlightFill : (dataset.highlightFill) ? (typeof dataset.highlightFill == 'object') ? dataset.highlightFill[index] : dataset.highlightFill : (typeof dataset.fillColor == 'object') ? dataset.fillColor[index] : dataset.fillColor,
|
||||||
highlightStroke : (dataset.highlightStroke) ? (typeof dataset.highlightStroke != 'string') ? dataset.highlightStroke[index] : dataset.highlightStroke : (typeof dataset.strokeColor != 'string') ? dataset.strokeColor[index] : dataset.strokeColor
|
highlightStroke : (dataset.highlightStroke) ? (typeof dataset.highlightStroke == 'object') ? dataset.highlightStroke[index] : dataset.highlightStroke : (typeof dataset.strokeColor == 'object') ? dataset.strokeColor[index] : dataset.strokeColor
|
||||||
}));
|
}));
|
||||||
},this);
|
},this);
|
||||||
|
|
||||||
@@ -2590,7 +2588,7 @@
|
|||||||
animateScale : false,
|
animateScale : false,
|
||||||
|
|
||||||
//String - A legend template
|
//String - A legend template
|
||||||
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>"
|
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span class=\"<%=name.toLowerCase()%>-legend-icon\" style=\"background-color:<%=segments[i].fillColor%>\"></span><span class=\"<%=name.toLowerCase()%>-legend-text\"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>"
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2803,7 +2801,7 @@
|
|||||||
datasetFill : true,
|
datasetFill : true,
|
||||||
|
|
||||||
//String - A legend template
|
//String - A legend template
|
||||||
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>",
|
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span class=\"<%=name.toLowerCase()%>-legend-icon\" style=\"background-color:<%=datasets[i].strokeColor%>\"></span><span class=\"<%=name.toLowerCase()%>-legend-text\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>",
|
||||||
|
|
||||||
//Boolean - Whether to horizontally center the label and point dot inside the grid
|
//Boolean - Whether to horizontally center the label and point dot inside the grid
|
||||||
offsetGridLines : false
|
offsetGridLines : false
|
||||||
@@ -3184,7 +3182,7 @@
|
|||||||
animateScale : false,
|
animateScale : false,
|
||||||
|
|
||||||
//String - A legend template
|
//String - A legend template
|
||||||
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>"
|
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span class=\"<%=name.toLowerCase()%>-legend-icon\" style=\"background-color:<%=segments[i].fillColor%>\"></span><span class=\"<%=name.toLowerCase()%>-legend-text\"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -3453,7 +3451,7 @@
|
|||||||
datasetFill : true,
|
datasetFill : true,
|
||||||
|
|
||||||
//String - A legend template
|
//String - A legend template
|
||||||
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>"
|
legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span class=\"<%=name.toLowerCase()%>-legend-icon\" style=\"background-color:<%=datasets[i].strokeColor%>\"></span><span class=\"<%=name.toLowerCase()%>-legend-text\"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>"
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
externo
+3
-3
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
+2
-2
@@ -17,5 +17,5 @@
|
|||||||
"package.json"
|
"package.json"
|
||||||
],
|
],
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"version": "1.1.0"
|
"version": "1.1.1"
|
||||||
}
|
}
|
||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
"name": "chart.js",
|
"name": "chart.js",
|
||||||
"homepage": "http://www.chartjs.org",
|
"homepage": "http://www.chartjs.org",
|
||||||
"description": "Simple HTML5 charts using the canvas element.",
|
"description": "Simple HTML5 charts using the canvas element.",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"main": "Chart.js",
|
"main": "Chart.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -27,4 +27,4 @@
|
|||||||
"spm": {
|
"spm": {
|
||||||
"main": "Chart.js"
|
"main": "Chart.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Referência em uma Nova Issue
Bloquear um usuário