Begin d3 v4 update

This commit is contained in:
Tom MacWright
2016-08-12 10:29:00 -04:00
parent 36a90b4f86
commit cdb533fa84
137 changed files with 842 additions and 6691 deletions
+6 -4
View File
@@ -1,4 +1,6 @@
import * as d3 from 'd3';
import { setTransform } from '../util/index';
import { getDimensions } from '../util/dimensions';
export function Tail() {
var text,
container,
@@ -10,11 +12,11 @@ export function Tail() {
if (!text) return;
d3.select(window)
.on('resize.tail', function() { selectionSize = selection.dimensions(); });
.on('resize.tail', function() { selectionSize = getDimensions(selection); });
function show() {
container.style('display', 'block');
tooltipSize = container.dimensions();
tooltipSize = getDimensions(container);
}
function mousemove() {
@@ -53,8 +55,8 @@ export function Tail() {
container
.on('mousemove.tail', mousemove);
tooltipSize = container.dimensions();
selectionSize = selection.dimensions();
tooltipSize = getDimensions(container);
selectionSize = getDimensions(selection);
}
tail.off = function(selection) {