mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Built Files
This commit is contained in:
parent
c5020c3e5a
commit
2f5e0924ef
12
dist/Chart.bundle.js
vendored
12
dist/Chart.bundle.js
vendored
@ -8180,8 +8180,6 @@ module.exports = function(Chart) {
|
||||
|
||||
module.exports = function() {
|
||||
|
||||
var helpers = require('./core.helpers')
|
||||
|
||||
//Occupy the global variable of Chart, and create a simple base class
|
||||
var Chart = function(context, config) {
|
||||
this.config = config;
|
||||
@ -8203,8 +8201,8 @@ module.exports = function() {
|
||||
// If the canvas has a specified width and height, we use those else
|
||||
// we look to see if the canvas node has a CSS width and height.
|
||||
// If there is still no height, fill the parent container
|
||||
this.width = context.canvas.width || parseInt(helpers.getStyle(context.canvas, 'width')) || helpers.getMaximumWidth(context.canvas);
|
||||
this.height = context.canvas.height || parseInt(helpers.getStyle(context.canvas, 'height')) || helpers.getMaximumHeight(context.canvas);
|
||||
this.width = context.canvas.width || parseInt(Chart.helpers.getStyle(context.canvas, 'width')) || Chart.helpers.getMaximumWidth(context.canvas);
|
||||
this.height = context.canvas.height || parseInt(Chart.helpers.getStyle(context.canvas, 'height')) || Chart.helpers.getMaximumHeight(context.canvas);
|
||||
|
||||
this.aspectRatio = this.width / this.height;
|
||||
|
||||
@ -8220,7 +8218,7 @@ module.exports = function() {
|
||||
this.originalCanvasStyleHeight = context.canvas.style.height;
|
||||
|
||||
// High pixel density displays - multiply the size of the canvas height/width by the device pixel ratio, then scale.
|
||||
helpers.retinaScale(this);
|
||||
Chart.helpers.retinaScale(this);
|
||||
|
||||
if (config) {
|
||||
this.controller = new Chart.Controller(this);
|
||||
@ -8228,7 +8226,7 @@ module.exports = function() {
|
||||
|
||||
// Always bind this so that if the responsive state changes we still work
|
||||
var _this = this;
|
||||
helpers.addResizeListener(context.canvas.parentNode, function() {
|
||||
Chart.helpers.addResizeListener(context.canvas.parentNode, function() {
|
||||
if (_this.controller && _this.controller.config.options.responsive) {
|
||||
_this.controller.resize();
|
||||
}
|
||||
@ -8283,7 +8281,7 @@ module.exports = function() {
|
||||
|
||||
};
|
||||
|
||||
},{"./core.helpers":25}],27:[function(require,module,exports){
|
||||
},{}],27:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
2
dist/Chart.bundle.min.js
vendored
2
dist/Chart.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
12
dist/Chart.js
vendored
12
dist/Chart.js
vendored
@ -4986,8 +4986,6 @@ module.exports = function(Chart) {
|
||||
|
||||
module.exports = function() {
|
||||
|
||||
var helpers = require('./core.helpers')
|
||||
|
||||
//Occupy the global variable of Chart, and create a simple base class
|
||||
var Chart = function(context, config) {
|
||||
this.config = config;
|
||||
@ -5009,8 +5007,8 @@ module.exports = function() {
|
||||
// If the canvas has a specified width and height, we use those else
|
||||
// we look to see if the canvas node has a CSS width and height.
|
||||
// If there is still no height, fill the parent container
|
||||
this.width = context.canvas.width || parseInt(helpers.getStyle(context.canvas, 'width')) || helpers.getMaximumWidth(context.canvas);
|
||||
this.height = context.canvas.height || parseInt(helpers.getStyle(context.canvas, 'height')) || helpers.getMaximumHeight(context.canvas);
|
||||
this.width = context.canvas.width || parseInt(Chart.helpers.getStyle(context.canvas, 'width')) || Chart.helpers.getMaximumWidth(context.canvas);
|
||||
this.height = context.canvas.height || parseInt(Chart.helpers.getStyle(context.canvas, 'height')) || Chart.helpers.getMaximumHeight(context.canvas);
|
||||
|
||||
this.aspectRatio = this.width / this.height;
|
||||
|
||||
@ -5026,7 +5024,7 @@ module.exports = function() {
|
||||
this.originalCanvasStyleHeight = context.canvas.style.height;
|
||||
|
||||
// High pixel density displays - multiply the size of the canvas height/width by the device pixel ratio, then scale.
|
||||
helpers.retinaScale(this);
|
||||
Chart.helpers.retinaScale(this);
|
||||
|
||||
if (config) {
|
||||
this.controller = new Chart.Controller(this);
|
||||
@ -5034,7 +5032,7 @@ module.exports = function() {
|
||||
|
||||
// Always bind this so that if the responsive state changes we still work
|
||||
var _this = this;
|
||||
helpers.addResizeListener(context.canvas.parentNode, function() {
|
||||
Chart.helpers.addResizeListener(context.canvas.parentNode, function() {
|
||||
if (_this.controller && _this.controller.config.options.responsive) {
|
||||
_this.controller.resize();
|
||||
}
|
||||
@ -5089,7 +5087,7 @@ module.exports = function() {
|
||||
|
||||
};
|
||||
|
||||
},{"./core.helpers":25}],27:[function(require,module,exports){
|
||||
},{}],27:[function(require,module,exports){
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
2
dist/Chart.min.js
vendored
2
dist/Chart.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user