Skip to content

Commit

Permalink
chore(version): bump to v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jul 29, 2019
1 parent 645e03c commit 78f36e1
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .bmp.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.7.2
version: 0.7.3
commit: 'chore(version): bump to v%.%.%'
files:
src/core.js: 'version: "%.%.%"'
Expand Down
18 changes: 11 additions & 7 deletions c3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license C3.js v0.7.2 | (c) C3 Team and other contributors | http://c3js.org/ */
/* @license C3.js v0.7.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 @@ -979,7 +979,7 @@
if (config.axis_rotated) {
return position.isInner ? "1.2em" : -25 - ($$.config.axis_x_inner ? 0 : this.getMaxTickWidth('x'));
} else {
return position.isInner ? "-0.5em" : config.axis_x_height ? config.axis_x_height - 10 : "3em";
return position.isInner ? "-0.5em" : $$.getHorizontalAxisHeight('x') - 10;
}
};

Expand Down Expand Up @@ -1161,7 +1161,7 @@
};

var c3 = {
version: "0.7.2",
version: "0.7.3",
chart: {
fn: Chart.prototype,
internal: {
Expand Down Expand Up @@ -4863,9 +4863,9 @@
} // unload if needed


if ('unload' in args) {
if (args.unload) {
// TODO: do not unload if target will load (included in url/rows/columns)
$$.unload($$.mapToTargetIds(typeof args.unload === 'boolean' && args.unload ? null : args.unload), function () {
$$.unload($$.mapToTargetIds(args.unload === true ? null : args.unload), function () {
$$.loadFromArgs(args);
});
} else {
Expand Down Expand Up @@ -6441,7 +6441,7 @@

f(url, headers).then(function (data) {
done.call($$, converter.call($$, data, keys));
}).catch(function (error) {
})["catch"](function (error) {
throw error;
});
};
Expand Down Expand Up @@ -9103,6 +9103,10 @@
};

ChartInternal.prototype.isWithinBar = function (mouse, that) {
if (that.pathSegList.numberOfItems < 2) {
return false;
}

var box = that.getBoundingClientRect(),
seg0 = that.pathSegList.getItem(0),
seg1 = that.pathSegList.getItem(1),
Expand Down Expand Up @@ -10277,7 +10281,7 @@
if (position.indexOf('right') >= 0) {
x = $$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width - config.title_padding.right;
} else if (position.indexOf('center') >= 0) {
x = ($$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width) / 2;
x = Math.max(($$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width) / 2, 0);
} else {
// left
x = config.title_padding.left;
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.7.2",
"version": "0.7.3",
"keywords": [],
"dependencies": {
"mbostock/d3": "v5.0.0"
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.7.3">v0.7.3</a><span class="gray">&nbsp;-&nbsp;2019-07-29</span>
%ul
%li Bug fixes.
%li
<a href="https://github.com/c3js/c3/releases/tag/v0.7.2">v0.7.2</a><span class="gray">&nbsp;-&nbsp;2019-07-06</span>
%ul
Expand Down
18 changes: 11 additions & 7 deletions docs/js/c3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license C3.js v0.7.2 | (c) C3 Team and other contributors | http://c3js.org/ */
/* @license C3.js v0.7.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 @@ -979,7 +979,7 @@
if (config.axis_rotated) {
return position.isInner ? "1.2em" : -25 - ($$.config.axis_x_inner ? 0 : this.getMaxTickWidth('x'));
} else {
return position.isInner ? "-0.5em" : config.axis_x_height ? config.axis_x_height - 10 : "3em";
return position.isInner ? "-0.5em" : $$.getHorizontalAxisHeight('x') - 10;
}
};

Expand Down Expand Up @@ -1161,7 +1161,7 @@
};

var c3 = {
version: "0.7.2",
version: "0.7.3",
chart: {
fn: Chart.prototype,
internal: {
Expand Down Expand Up @@ -4863,9 +4863,9 @@
} // unload if needed


if ('unload' in args) {
if (args.unload) {
// TODO: do not unload if target will load (included in url/rows/columns)
$$.unload($$.mapToTargetIds(typeof args.unload === 'boolean' && args.unload ? null : args.unload), function () {
$$.unload($$.mapToTargetIds(args.unload === true ? null : args.unload), function () {
$$.loadFromArgs(args);
});
} else {
Expand Down Expand Up @@ -6441,7 +6441,7 @@

f(url, headers).then(function (data) {
done.call($$, converter.call($$, data, keys));
}).catch(function (error) {
})["catch"](function (error) {
throw error;
});
};
Expand Down Expand Up @@ -9103,6 +9103,10 @@
};

ChartInternal.prototype.isWithinBar = function (mouse, that) {
if (that.pathSegList.numberOfItems < 2) {
return false;
}

var box = that.getBoundingClientRect(),
seg0 = that.pathSegList.getItem(0),
seg1 = that.pathSegList.getItem(1),
Expand Down Expand Up @@ -10277,7 +10281,7 @@
if (position.indexOf('right') >= 0) {
x = $$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width - config.title_padding.right;
} else if (position.indexOf('center') >= 0) {
x = ($$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width) / 2;
x = Math.max(($$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width) / 2, 0);
} else {
// left
x = config.title_padding.left;
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.7.2",
"version": "0.7.3",
"description": "D3-based reusable chart library",
"main": "c3.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from './util';

var c3 = {
version: "0.7.2",
version: "0.7.3",
chart: {
fn: Chart.prototype,
internal: {
Expand Down

0 comments on commit 78f36e1

Please sign in to comment.