Skip to content

Commit

Permalink
chore(version): bump to v0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jul 6, 2018
1 parent a47d066 commit 46cf7c6
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 64 deletions.
4 changes: 2 additions & 2 deletions .bmp.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
version: 0.6.2
version: 0.6.3
commit: 'chore(version): bump to v%.%.%'
files:
src/core.js: 'version: "%.%.%"'
src/util.js: 'version: "%.%.%"'
package.json: '"version": "%.%.%"'
component.json: '"version": "%.%.%"'
2 changes: 1 addition & 1 deletion c3.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-- Chart --*/
.c3 svg {
font: 10px sans-serif;
-webkit-tap-highlight-color: transparent; }
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

.c3 path, .c3 line {
fill: none;
Expand Down
104 changes: 51 additions & 53 deletions c3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license C3.js v0.6.2 | (c) C3 Team and other contributors | http://c3js.org/ */
/* @license C3.js v0.6.3 | (c) C3 Team and other contributors | http://c3js.org/ */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -84,6 +84,16 @@
INCLUDED: '_included_'
};

function ChartInternal(api) {
var $$ = this;
$$.d3 = window.d3 ? window.d3 : typeof require !== 'undefined' ? require("d3") : undefined;
$$.api = api;
$$.config = $$.getDefaultConfig();
$$.data = {};
$$.cache = {};
$$.axes = {};
}

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
Expand Down Expand Up @@ -135,6 +145,43 @@
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};

var c3 = { version: "0.6.3",
chart: {
fn: Chart.prototype,
internal: {
fn: ChartInternal.prototype
}
}
};

function Chart(config) {
var $$ = this.internal = new ChartInternal(this);
$$.loadConfig(config);

$$.beforeInit(config);
$$.init();
$$.afterInit(config);

// bind "this" to nested API
(function bindThis(fn, target, argThis) {
Object.keys(fn).forEach(function (key) {
target[key] = fn[key].bind(argThis);
if (Object.keys(fn[key]).length > 0) {
bindThis(fn[key], target[key], argThis);
}
});
})(c3.chart.fn, this, this);
}

c3.generate = function (config) {
return new Chart(config);
};

function Component(owner, componentKey, fn) {
this.owner = owner;
c3.chart.internal[componentKey] = fn;
}

var isValue = function isValue(v) {
return v || v === 0;
};
Expand Down Expand Up @@ -166,7 +213,7 @@
return typeof o === 'undefined' || o === null || isString(o) && o.length === 0 || (typeof o === 'undefined' ? 'undefined' : _typeof(o)) === 'object' && Object.keys(o).length === 0;
};
var notEmpty = function notEmpty(o) {
return !c3_chart_internal_fn.isEmpty(o);
return !c3.chart.internal.fn.isEmpty(o);
};
var getOption = function getOption(options, key, defaultValue) {
return isDefined(options[key]) ? options[key] : defaultValue;
Expand Down Expand Up @@ -1023,55 +1070,9 @@
$$.axes.subx.style("opacity", isHidden ? 0 : 1).call($$.subXAxis, transition);
};

var c3 = { version: "0.6.2" };

var c3_chart_fn;
var c3_chart_internal_fn;

function Component(owner, componentKey, fn) {
this.owner = owner;
c3.chart.internal[componentKey] = fn;
}

function Chart(config) {
var $$ = this.internal = new ChartInternal(this);
$$.loadConfig(config);

$$.beforeInit(config);
$$.init();
$$.afterInit(config);

// bind "this" to nested API
(function bindThis(fn, target, argThis) {
Object.keys(fn).forEach(function (key) {
target[key] = fn[key].bind(argThis);
if (Object.keys(fn[key]).length > 0) {
bindThis(fn[key], target[key], argThis);
}
});
})(c3_chart_fn, this, this);
}

function ChartInternal(api) {
var $$ = this;
$$.d3 = window.d3 ? window.d3 : typeof require !== 'undefined' ? require("d3") : undefined;
$$.api = api;
$$.config = $$.getDefaultConfig();
$$.data = {};
$$.cache = {};
$$.axes = {};
}

c3.generate = function (config) {
return new Chart(config);
};

c3.chart = {
fn: Chart.prototype,
internal: {
fn: ChartInternal.prototype
}
};
c3_chart_fn = c3.chart.fn;
c3_chart_internal_fn = c3.chart.internal.fn;

Expand Down Expand Up @@ -4603,9 +4604,7 @@
return;
}
$$.d3.select(this).selectAll('path').transition().duration($$.expandDuration(d.data.id)).attr("d", $$.svgArcExpanded).transition().duration($$.expandDuration(d.data.id) * 2).attr("d", $$.svgArcExpandedSub).each(function (d) {
if ($$.isDonutType(d.data)) {
// callback here
}
if ($$.isDonutType(d.data)) ;
});
});
};
Expand Down Expand Up @@ -4866,8 +4865,7 @@
if (hasGaugeType) {
var index = 0;
backgroundArc = $$.arcs.select('g.' + CLASS.chartArcsBackground).selectAll('path.' + CLASS.chartArcsBackground).data($$.data.targets);
backgroundArc.enter().append("path");
backgroundArc.attr("class", function (d, i) {
backgroundArc.enter().append("path").attr("class", function (d, i) {
return CLASS.chartArcsBackground + ' ' + CLASS.chartArcsBackground + '-' + i;
}).attr("d", function (d1) {
if ($$.hiddenTargetIds.indexOf(d1.id) >= 0) {
Expand Down
4 changes: 2 additions & 2 deletions c3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "c3",
"repo": "masayuki0812/c3",
"description": "A D3-based reusable chart library",
"version": "0.6.2",
"version": "0.6.3",
"keywords": [],
"dependencies": {
"mbostock/d3": "v5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion docs/css/c3.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-- Chart --*/
.c3 svg {
font: 10px sans-serif;
-webkit-tap-highlight-color: transparent; }
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

.c3 path, .c3 line {
fill: none;
Expand Down
4 changes: 4 additions & 0 deletions docs/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@

%h3 Change Log
%ul
%li
<a href="https://github.com/c3js/c3/releases/tag/v0.6.3">v0.6.3</a><span class="gray">&nbsp;-&nbsp;2018-07-06</span>
%ul
%li Fix a bug of gauge.
%li
<a href="https://github.com/c3js/c3/releases/tag/v0.6.2">v0.6.2</a><span class="gray">&nbsp;-&nbsp;2018-06-08</span>
%ul
Expand Down
4 changes: 2 additions & 2 deletions docs/js/c3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "c3",
"version": "0.6.2",
"version": "0.6.3",
"description": "D3-based reusable chart library",
"main": "c3.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ChartInternal} from './chart-internal';

export var c3 = { version: "0.6.2" ,
export var c3 = { version: "0.6.3" ,
chart: {
fn: Chart.prototype,
internal: {
Expand Down

0 comments on commit 46cf7c6

Please sign in to comment.