Comparing version 0.6.12 to 0.6.13
{ | ||
"name": "c3", | ||
"version": "0.6.12", | ||
"version": "0.6.13", | ||
"description": "D3-based reusable chart library", | ||
@@ -70,3 +70,3 @@ "main": "c3.js", | ||
"jshint-stylish": "^2.1.0", | ||
"karma": "^3.1.4", | ||
"karma": "^4.0.1", | ||
"karma-browserify": "^6.0.0", | ||
@@ -78,5 +78,5 @@ "karma-chrome-launcher": "^2.1.1", | ||
"node-static": "^0.7.9", | ||
"nodemon": "^1.18.9", | ||
"nodemon": "^1.18.10", | ||
"npm-run-all": "^4.1.3", | ||
"rollup": "^0.68.0", | ||
"rollup": "^1.0.0", | ||
"rollup-plugin-babel": "^4.0.3", | ||
@@ -83,0 +83,0 @@ "sass": "^1.10.3", |
import {ChartInternal} from './chart-internal'; | ||
/** | ||
* The Chart class | ||
* | ||
* The methods of this class is the public APIs of the chart object. | ||
*/ | ||
export function Chart(config) { | ||
var $$ = this.internal = new ChartInternal(this); | ||
$$.loadConfig(config); | ||
this.internal = new ChartInternal(this); | ||
this.internal.loadConfig(config); | ||
$$.beforeInit(config); | ||
$$.init(); | ||
$$.afterInit(config); | ||
this.internal.beforeInit(config); | ||
this.internal.init(); | ||
this.internal.afterInit(config); | ||
@@ -20,2 +25,2 @@ // bind "this" to nested API | ||
})(Chart.prototype, this, this); | ||
} | ||
} |
@@ -23,3 +23,3 @@ import { | ||
var c3 = { | ||
version: "0.6.12", | ||
version: "0.6.13", | ||
chart: { | ||
@@ -923,2 +923,4 @@ fn: Chart.prototype, | ||
.attr('height', brush.size() ? brush.attr('height') : 0); | ||
// MEMO: parent div's height will be bigger than svg when <!DOCTYPE html> | ||
$$.selectChart.style('max-height', $$.currentHeight + "px"); | ||
}; | ||
@@ -925,0 +927,0 @@ |
@@ -76,3 +76,4 @@ import CLASS from './class'; | ||
ChartInternal.prototype.getParentHeight = function () { | ||
return this.getParentRectValue('height'); | ||
var h = this.selectChart.style('height'); | ||
return h.indexOf('px') > 0 ? +h.replace('px', '') : 0; | ||
}; | ||
@@ -79,0 +80,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
931232
18049