Skip to content

Commit

Permalink
0.10.0-beta.12
Browse files Browse the repository at this point in the history
Fixed:
- Tooltip position for scrolled body.
- Export plugin global tauCharts dependency.
  • Loading branch information
alexanderby committed Jan 26, 2017
1 parent a1a84de commit e6616ca
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 28 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taucharts",
"version": "0.10.0-beta.11",
"version": "0.10.0-beta.12",
"homepage": "https://github.com/TargetProcess/tauCharts",
"description": "D3 based data-focused charting library",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion build/development/plugins/tauCharts.export.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
else if(typeof exports === 'object')
exports["exportTo"] = factory(require("taucharts"));
else
root["exportTo"] = factory(root["taucharts"]);
root["exportTo"] = factory(root["tauCharts"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down
4 changes: 0 additions & 4 deletions build/development/plugins/tauCharts.tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/* region variables for plugins */
/* endregion */
.graphical-report__tooltip {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
Expand Down Expand Up @@ -35,9 +34,6 @@
padding: 15px 15px 10px 15px;
box-sizing: border-box;
}
.graphical-report__tooltip.stuck {
pointer-events: initial;
}
.graphical-report__tooltip.stuck .graphical-report__tooltip__exclude,
.graphical-report__tooltip.stuck .graphical-report__tooltip__vertical {
width: 26px;
Expand Down
4 changes: 0 additions & 4 deletions build/development/plugins/tauCharts.tooltip.dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/* region variables for plugins */
/* endregion */
.graphical-report__tooltip {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
Expand Down Expand Up @@ -35,9 +34,6 @@
padding: 15px 15px 10px 15px;
box-sizing: border-box;
}
.graphical-report__tooltip.stuck {
pointer-events: initial;
}
.graphical-report__tooltip.stuck .graphical-report__tooltip__exclude,
.graphical-report__tooltip.stuck .graphical-report__tooltip__vertical {
width: 26px;
Expand Down
4 changes: 0 additions & 4 deletions build/development/plugins/tauCharts.tooltip.default.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/* region variables for plugins */
/* endregion */
.graphical-report__tooltip {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
Expand Down Expand Up @@ -35,9 +34,6 @@
padding: 15px 15px 10px 15px;
box-sizing: border-box;
}
.graphical-report__tooltip.stuck {
pointer-events: initial;
}
.graphical-report__tooltip.stuck .graphical-report__tooltip__exclude,
.graphical-report__tooltip.stuck .graphical-report__tooltip__vertical {
width: 26px;
Expand Down
12 changes: 10 additions & 2 deletions build/development/plugins/tauCharts.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,20 +249,28 @@
.forEach(function (node) {

node.on('data-hover', function (sender, e) {
var bodyRect = document.body.getBoundingClientRect();
this.setState({
highlight: (e.data ? {
data: e.data,
cursor: {x: e.event.clientX, y: e.event.clientY},
cursor: {
x: (e.event.clientX - bodyRect.left),
y: (e.event.clientY - bodyRect.top)
},
unit: sender
} : null)
});
}.bind(this));

node.on('data-click', function (sender, e) {
var bodyRect = document.body.getBoundingClientRect();
this.setState(e.data ? {
highlight: {
data: e.data,
cursor: {x: e.event.clientX, y: e.event.clientY},
cursor: {
x: (e.event.clientX - bodyRect.left),
y: (e.event.clientY - bodyRect.top)
},
unit: sender
},
isStuck: true
Expand Down
4 changes: 2 additions & 2 deletions build/development/tauCharts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! taucharts - v0.10.0-beta.11 - 2017-01-25
/*! taucharts - v0.10.0-beta.12 - 2017-01-26
* https://github.com/TargetProcess/tauCharts
* Copyright (c) 2017 Taucraft Limited; Licensed Apache License 2.0 */
(function webpackUniversalModuleDefinition(root, factory) {
Expand Down Expand Up @@ -348,7 +348,7 @@ return /******/ (function(modules) { // webpackBootstrap
}]));

/* global VERSION:false */
var version = ("0.10.0-beta.11");
var version = ("0.10.0-beta.12");
exports.GPL = _tau.GPL;
exports.Plot = _tau2.Plot;
exports.Chart = _tau3.Chart;
Expand Down
4 changes: 2 additions & 2 deletions build/production/tauCharts.dark.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/production/tauCharts.default.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/production/tauCharts.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/production/tauCharts.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": "taucharts",
"version": "0.10.0-beta.11",
"version": "0.10.0-beta.12",
"homepage": "https://github.com/TargetProcess/tauCharts",
"description": "D3 based data-focused charting library",
"author": {
Expand Down

0 comments on commit e6616ca

Please sign in to comment.