Browse Source

chore(version): bump to v0.4.19

pull/2292/head v0.4.19
Yoshiya Hinosawa 7 years ago
parent
commit
bef54384c1
  1. 2
      .bmp.yml
  2. 33
      c3.js
  3. 3
      c3.min.js
  4. 2
      component.json
  5. 2
      package.json
  6. 2
      src/core.js

2
.bmp.yml

@ -1,5 +1,5 @@
---
version: 0.4.18
version: 0.4.19
commit: 'chore(version): bump to v%.%.%'
files:
src/core.js: 'version: "%.%.%"'

33
c3.js

@ -1,3 +1,4 @@
/* @license C3.js v0.4.19 | (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) :
@ -628,9 +629,9 @@ c3_axis_fn.init = function init() {
$$.axes.y = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisY).attr("clip-path", config.axis_y_inner ? "" : $$.clipPathForYAxis).attr("transform", $$.getTranslate('y')).style("visibility", config.axis_y_show ? 'visible' : 'hidden');
$$.axes.y.append("text").attr("class", CLASS.axisYLabel).attr("transform", config.axis_rotated ? "" : "rotate(-90)").style("text-anchor", this.textAnchorForYAxisLabel.bind(this));
$$.axes.y2 = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisY2
$$.axes.y2 = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisY2)
// clip-path?
).attr("transform", $$.getTranslate('y2')).style("visibility", config.axis_y2_show ? 'visible' : 'hidden');
.attr("transform", $$.getTranslate('y2')).style("visibility", config.axis_y2_show ? 'visible' : 'hidden');
$$.axes.y2.append("text").attr("class", CLASS.axisY2Label).attr("transform", config.axis_rotated ? "" : "rotate(-90)").style("text-anchor", this.textAnchorForY2AxisLabel.bind(this));
};
c3_axis_fn.getXAxis = function getXAxis(scale, orient, tickFormat, tickValues, withOuterTick, withoutTransition, withoutRotateTickText) {
@ -1001,14 +1002,14 @@ c3_axis_fn.redraw = function redraw(transitions, isHidden) {
transitions.axisSubX.call($$.subXAxis);
};
var c3$1 = { version: "0.4.18" };
var c3 = { version: "0.4.19" };
var c3_chart_fn;
var c3_chart_internal_fn;
function Component(owner, componentKey, fn) {
this.owner = owner;
c3$1.chart.internal[componentKey] = fn;
c3.chart.internal[componentKey] = fn;
}
function Chart(config) {
@ -1040,18 +1041,18 @@ function ChartInternal(api) {
$$.axes = {};
}
c3$1.generate = function (config) {
c3.generate = function (config) {
return new Chart(config);
};
c3$1.chart = {
c3.chart = {
fn: Chart.prototype,
internal: {
fn: ChartInternal.prototype
}
};
c3_chart_fn = c3$1.chart.fn;
c3_chart_internal_fn = c3$1.chart.internal.fn;
c3_chart_fn = c3.chart.fn;
c3_chart_internal_fn = c3.chart.internal.fn;
c3_chart_internal_fn.beforeInit = function () {
// can do something
@ -1287,8 +1288,8 @@ c3_chart_internal_fn.initWithData = function (data) {
/*-- Main Region --*/
// text when empty
main.append("text").attr("class", CLASS.text + ' ' + CLASS.empty).attr("text-anchor", "middle" // horizontal centering of text at x position in all browsers.
).attr("dominant-baseline", "middle"); // vertical centering of text at y position in all browsers, except IE.
main.append("text").attr("class", CLASS.text + ' ' + CLASS.empty).attr("text-anchor", "middle") // horizontal centering of text at x position in all browsers.
.attr("dominant-baseline", "middle"); // vertical centering of text at y position in all browsers, except IE.
// Regions
$$.initRegion();
@ -2165,8 +2166,6 @@ if (!Function.prototype.bind) {
// changes which were implemented in Firefox 43 and Chrome 46.
(function () {
"use strict";
if (!("SVGPathSeg" in window)) {
// Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSeg
window.SVGPathSeg = function (type, typeAsLetter, owningPathSegList) {
@ -4736,8 +4735,8 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
};
}).attr("transform", withTransform ? "scale(1)" : "").style("fill", function (d) {
return $$.levelColor ? $$.levelColor(d.data.values[0].value) : $$.color(d.data.id);
} // Where gauge reading color would receive customization.
).call($$.endall, function () {
}) // Where gauge reading color would receive customization.
.call($$.endall, function () {
$$.transiting = false;
});
mainArc.exit().transition().duration(durationForExit).style('opacity', 0).remove();
@ -7466,8 +7465,8 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
texts = $$.legend.selectAll('text').data(targetIds).text(function (id) {
return isDefined(config.data_names[id]) ? config.data_names[id] : id;
} // MEMO: needed for update
).each(function (id, i) {
}) // MEMO: needed for update
.each(function (id, i) {
updatePositions(this, id, i);
});
(withTransition ? texts.transition() : texts).attr('x', xForLegendText).attr('y', yForLegendText);
@ -9250,6 +9249,6 @@ c3_chart_internal_fn.redrawForZoom = function () {
config.zoom_onzoom.call($$.api, x.orgDomain());
};
return c3$1;
return c3;
})));

3
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
component.json

@ -2,7 +2,7 @@
"name": "c3",
"repo": "masayuki0812/c3",
"description": "A D3-based reusable chart library",
"version": "0.4.18",
"version": "0.4.19",
"keywords": [],
"dependencies": {
"mbostock/d3": "v3.5.6"

2
package.json

@ -1,6 +1,6 @@
{
"name": "c3",
"version": "0.4.18",
"version": "0.4.19",
"description": "D3-based reusable chart library",
"main": "c3.js",
"scripts": {

2
src/core.js

@ -2,7 +2,7 @@ import Axis from './axis';
import CLASS from './class';
import { isValue, isFunction, isString, isUndefined, isDefined, ceil10, asHalfPixel, diffDomain, isEmpty, notEmpty, getOption, hasValue, sanitise, getPathBox } from './util';
export var c3 = { version: "0.4.18" };
export var c3 = { version: "0.4.19" };
export var c3_chart_fn;
export var c3_chart_internal_fn;

Loading…
Cancel
Save