Skip to content

Commit 671bf65

Browse files
committed
chore(version): bump to v0.5.2
1 parent 022d0f4 commit 671bf65

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

.bmp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: 0.5.1
2+
version: 0.5.2
33
commit: 'chore(version): bump to v%.%.%'
44
files:
55
src/core.js: 'version: "%.%.%"'

c3.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @license C3.js v0.5.1 | (c) C3 Team and other contributors | http://c3js.org/ */
1+
/* @license C3.js v0.5.2 | (c) C3 Team and other contributors | http://c3js.org/ */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
44
typeof define === 'function' && define.amd ? define(factory) :
@@ -978,7 +978,7 @@
978978
$$.axes.subx.style("opacity", isHidden ? 0 : 1).call($$.subXAxis, transition);
979979
};
980980

981-
var c3 = { version: "0.5.1" };
981+
var c3 = { version: "0.5.2" };
982982

983983
var c3_chart_fn;
984984
var c3_chart_internal_fn;
@@ -4861,8 +4861,11 @@
48614861
return i < config.axis_x_categories.length ? config.axis_x_categories[i] : i;
48624862
};
48634863

4864+
c3_chart_internal_fn.generateTargetClass = function (targetId) {
4865+
return targetId || targetId === 0 ? ('-' + targetId).replace(/\s/g, '-') : '';
4866+
};
48644867
c3_chart_internal_fn.generateClass = function (prefix, targetId) {
4865-
return " " + prefix + " " + prefix + this.getTargetSelectorSuffix(targetId);
4868+
return " " + prefix + " " + prefix + this.generateTargetClass(targetId);
48664869
};
48674870
c3_chart_internal_fn.classText = function (d) {
48684871
return this.generateClass(CLASS.text, d.index);
@@ -4943,7 +4946,7 @@
49434946
return CLASS.chartArc + this.classTarget(d.data.id);
49444947
};
49454948
c3_chart_internal_fn.getTargetSelectorSuffix = function (targetId) {
4946-
return targetId || targetId === 0 ? ('-' + targetId).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g, '-') : '';
4949+
return this.generateTargetClass(targetId).replace(/([?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g, '\\$1');
49474950
};
49484951
c3_chart_internal_fn.selectorTarget = function (id, prefix) {
49494952
return (prefix || '') + '.' + CLASS.target + this.getTargetSelectorSuffix(id);
@@ -7864,7 +7867,7 @@
78647867
}
78657868
return function (d) {
78667869
var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values,
7867-
x = isSub ? $$.x : $$.subX,
7870+
x = isSub ? $$.subX : $$.x,
78687871
y = yScaleGetter.call($$, d.id),
78697872
x0 = 0,
78707873
y0 = 0,

c3.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "c3",
33
"repo": "masayuki0812/c3",
44
"description": "A D3-based reusable chart library",
5-
"version": "0.5.1",
5+
"version": "0.5.2",
66
"keywords": [],
77
"dependencies": {
88
"mbostock/d3": "v3.5.6"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "c3",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "D3-based reusable chart library",
55
"main": "c3.js",
66
"scripts": {

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Axis from './axis';
22
import CLASS from './class';
33
import { isValue, isFunction, isString, isUndefined, isDefined, ceil10, asHalfPixel, diffDomain, isEmpty, notEmpty, getOption, hasValue, sanitise, getPathBox } from './util';
44

5-
export var c3 = { version: "0.5.1" };
5+
export var c3 = { version: "0.5.2" };
66

77
export var c3_chart_fn;
88
export var c3_chart_internal_fn;

0 commit comments

Comments
 (0)