Skip to content

Commit

Permalink
Fix for console errors upon losing page visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Nov 16, 2016
1 parent d6484a8 commit 39b25c8
Show file tree
Hide file tree
Showing 22 changed files with 1,287 additions and 242 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"d3": "~3.5.5",
"pubnub": "~4.0.10",
"visibilityjs": "~1.2.1",
"c3": "0.4.11-rc4"
"visibilityjs": "^1.2.4",
"c3": "^0.4.11"
}
}
17 changes: 8 additions & 9 deletions bower_components/c3/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@
"Gruntfile.*"
],
"dependencies": {
"d3": "<=3.5.0"
"d3": "~3.5.0"
},
"version": "0.4.11-rc4",
"_release": "0.4.11-rc4",
"version": "0.4.11",
"_release": "0.4.11",
"_resolution": {
"type": "version",
"tag": "0.4.11-rc4",
"commit": "931109f8269688b8d623b4523335670dd813b4dc"
"tag": "0.4.11",
"commit": "223404a79246c61d150d8a209dbdc81f6955083b"
},
"_source": "git://github.com/masayuki0812/c3.git",
"_target": "0.4.11-rc4",
"_originalSource": "c3",
"_direct": true
"_source": "https://github.com/masayuki0812/c3.git",
"_target": "0.4.11",
"_originalSource": "c3"
}
40 changes: 40 additions & 0 deletions bower_components/c3/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Filing an issue

Before filing an issue, please [search the queue](https://github.com/masayuki0812/c3/issues) to make sure it hasn't already been reported.

If a bug, please include the following —

1. What version of C3?
1. What browsers have you confirmed it in?
1. Can you isolate the issue by providing a jsFiddle demonstrating it in a minimalist capacity?

Please *do not* ask for support using the issue queue. For support, please ask [on chat](https://gitter.im/masayuki0812/c3) or [the mailing list](groups.google.com/forum/#!forum/c3js).

##Building C3 from sources

1. **Clone the repo from GitHub**

git clone https://github.com/masayuki0812/c3.git
cd c3

2. **Acquire build dependencies.** Make sure you have [Node.js](http://nodejs.org/) installed on your workstation. This is only needed to _build_ C3 from sources. C3 itself has no dependency on Node.js once it is built. Now run:

npm install -g grunt-cli
npm install

The first `npm` command sets up the popular [Grunt](http://gruntjs.com/) build tool. You might need to run this command with `sudo` if you're on Linux or Mac OS X, or in an Administrator command prompt on Windows. The second `npm` command fetches the remaining build dependencies.

3. **Run the build tool**

grunt

Now you'll find the built files in `c3.js`, `c3.min.js`, `c3.css` & `c3.min.css`.

## Running the tests
The `grunt` script will automatically run the specification suite and report its results.

Or, if you want to run the specs in a browser (e.g., for debugging), simply open `spec/runner.html` in your browser.

## Contributing your changes

Add something about PRs here, indicate that PRs should not bump the version number & the build output files (`c3.js`, `c3.min.js`, `c3.css` & `c3.min.css`) should be excluded
17 changes: 8 additions & 9 deletions bower_components/c3/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
c3 [![Build Status](https://travis-ci.org/masayuki0812/c3.svg?branch=master)](https://travis-ci.org/masayuki0812/c3) [![Dependency Status](https://david-dm.org/masayuki0812/c3.svg)](https://david-dm.org/masayuki0812/c3) [![devDependency Status](https://david-dm.org/masayuki0812/c3/dev-status.svg)](https://david-dm.org/masayuki0812/c3#info=devDependencies) [![license](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://github.com/masayuki0812/c3/blob/master/LICENSE)
c3 [![Build Status](https://travis-ci.org/c3js/c3.svg?branch=master)](https://travis-ci.org/c3js/c3) [![Dependency Status](https://david-dm.org/c3js/c3.svg)](https://david-dm.org/c3js/c3) [![devDependency Status](https://david-dm.org/c3js/c3/dev-status.svg)](https://david-dm.org/c3js/c3#info=devDependencies) [![license](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://github.com/c3js/c3/blob/master/LICENSE) [![codecov.io](https://codecov.io/github/c3js/c3/coverage.svg?branch=master)](https://codecov.io/github/c3js/c3?branch=master)
==

c3 is a D3-based reusable chart library that enables deeper integration of charts into web applications.
Expand All @@ -11,7 +11,7 @@ Follow the link for more information: [http://c3js.org](http://c3js.org/)
+ [Examples](http://c3js.org/examples.html)

Additional samples can be found in this repository:
+ [https://github.com/masayuki0812/c3/tree/master/htdocs/samples](https://github.com/masayuki0812/c3/tree/master/htdocs/samples)
+ [https://github.com/c3js/c3/tree/master/htdocs/samples](https://github.com/c3js/c3/tree/master/htdocs/samples)

You can run these samples as:
```
Expand All @@ -23,13 +23,14 @@ $ python -m SimpleHTTPServer 8080
For general C3.js-related discussion, please visit our [Google Group at https://groups.google.com/forum/#!forum/c3js](https://groups.google.com/forum/#!forum/c3js).

## Gitter
[![Join the chat at https://gitter.im/masayuki0812/c3](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/masayuki0812/c3?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join the chat at https://gitter.im/c3js/c3](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/c3js/c3?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Using the issue queue
The [issue queue](https://github.com/masayuki0812/c3/issues) is to be used for reporting defects and problems with C3.js, in addition to feature requests and ideas. It is **not** a catch-all support forum. **For general support enquiries, please use the [Google Group](https://groups.google.com/forum/#!forum/c3js) at https://groups.google.com/forum/#!forum/c3js.** All questions involving the interplay between C3.js and any other library (such as AngularJS) should be posted there first!
The [issue queue](https://github.com/c3js/c3/issues) is to be used for reporting defects and problems with C3.js, in addition to feature requests and ideas. It is **not** a catch-all support forum. **For general support enquiries, please use the [Google Group](https://groups.google.com/forum/#!forum/c3js) at https://groups.google.com/forum/#!forum/c3js.** All questions involving the interplay between C3.js and any other library (such as AngularJS) should be posted there first!

Before reporting an issue, please do the following:
1. [Search for existing issues](https://github.com/masayuki0812/c3/issues) to ensure you're not posting a duplicate.

1. [Search for existing issues](https://github.com/c3js/c3/issues) to ensure you're not posting a duplicate.

1. [Search the Google Group](https://groups.google.com/forum/#!forum/c3js) to ensure it hasn't been addressed there already.

Expand All @@ -39,16 +40,14 @@ Before reporting an issue, please do the following:

## Pull requests
Pull requests are welcome, though please post an issue first to see whether such a change is desirable.
If you choose to submit a pull request, please do not bump the version number unless asked to, and please include test cases for any new features!
If you choose to submit a pull request, please do not bump the version number unless asked to, and please include test cases for any new features. Squash all your commits as well, please.

## Playground
Please fork this fiddle:
+ [http://jsfiddle.net/masayuki0812/7kYJu/](http://jsfiddle.net/masayuki0812/7kYJu/)

## Dependency
+ [D3.js](https://github.com/mbostock/d3) `<=3.5.0`
+ [D3.js](https://github.com/mbostock/d3) `~3.5.0`

## License
MIT

[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=masayuki0812&url=https://github.com/masayuki0812/c3&title=c3&language=javascript&tags=github&category=software)
2 changes: 1 addition & 1 deletion bower_components/c3/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"Gruntfile.*"
],
"dependencies": {
"d3": "<=3.5.0"
"d3": "~3.5.0"
}
}
12 changes: 8 additions & 4 deletions bower_components/c3/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: rgba(0, 0, 0, 0); }
-webkit-tap-highlight-color: transparent; }

.c3 path, .c3 line {
fill: none;
Expand All @@ -12,7 +12,11 @@
-moz-user-select: none;
user-select: none; }

.c3-legend-item-tile, .c3-xgrid-focus, .c3-ygrid, .c3-event-rect, .c3-bars path {
.c3-legend-item-tile,
.c3-xgrid-focus,
.c3-ygrid,
.c3-event-rect,
.c3-bars path {
shape-rendering: crispEdges; }

.c3-chart-arc path {
Expand Down Expand Up @@ -71,11 +75,11 @@
/*-- Region --*/
.c3-region {
fill: steelblue;
fill-opacity: 0.1; }
fill-opacity: .1; }

/*-- Brush --*/
.c3-brush .extent {
fill-opacity: 0.1; }
fill-opacity: .1; }

/*-- Select - Drag --*/
/*-- Legend --*/
Expand Down
Loading

0 comments on commit 39b25c8

Please sign in to comment.