Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
gka committed Nov 18, 2020
1 parent 4541c82 commit 6a656f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions build/d3-jetpack.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://github.com/gka/d3-jetpack#readme Version 2.1.0. Copyright 2020 Gregor Aisch.
// https://github.com/gka/d3-jetpack#readme Version 2.1.1. Copyright 2020 Gregor Aisch.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-selection'), require('d3-transition'), require('d3-array'), require('d3-axis'), require('d3-scale'), require('d3-collection'), require('d3-queue'), require('d3-request'), require('d3-timer')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3-selection', 'd3-transition', 'd3-array', 'd3-axis', 'd3-scale', 'd3-collection', 'd3-queue', 'd3-request', 'd3-timer'], factory) :
Expand Down Expand Up @@ -99,8 +99,8 @@ var selectAppend = function(name) {

var tspans = function(lines, lh) {
return this.selectAll('tspan')
.data(function(d) {
return (typeof(lines) == 'function' ? lines(d) : lines)
.data(function(d, i) {
return (typeof(lines) === 'function' ? lines.call(this, d, i) : lines)
.map(function(l) {
return { line: l, parent: d };
});
Expand All @@ -109,7 +109,7 @@ var tspans = function(lines, lh) {
.append('tspan')
.text(function(d) { return d.line; })
.attr('x', 0)
.attr('dy', function(d, i) { return i ? (typeof(lh) == 'function' ? lh(d.parent, d.line, i) : lh) || 15 : 0; });
.attr('dy', function(d, i) { return i ? (typeof(lh) === 'function' ? lh.call(this, d.parent, d.line, i) : lh) || 15 : 0; });
};

var appendMany = function(name, data){
Expand Down
6 changes: 3 additions & 3 deletions build/d3v4+jetpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -21776,8 +21776,8 @@ var selectAppend = function(name) {

var tspans = function(lines, lh) {
return this.selectAll('tspan')
.data(function(d) {
return (typeof(lines) == 'function' ? lines(d) : lines)
.data(function(d, i) {
return (typeof(lines) === 'function' ? lines.call(this, d, i) : lines)
.map(function(l) {
return { line: l, parent: d };
});
Expand All @@ -21786,7 +21786,7 @@ var tspans = function(lines, lh) {
.append('tspan')
.text(function(d) { return d.line; })
.attr('x', 0)
.attr('dy', function(d, i) { return i ? (typeof(lh) == 'function' ? lh(d.parent, d.line, i) : lh) || 15 : 0; });
.attr('dy', function(d, i) { return i ? (typeof(lh) === 'function' ? lh.call(this, d.parent, d.line, i) : lh) || 15 : 0; });
};

var appendMany = function(name, data){
Expand Down

0 comments on commit 6a656f5

Please sign in to comment.