Skip to content

Commit c72264c

Browse files
authored
Merge pull request #5359 from plotly/d3-v3-no-eval-func
Avoid function constructor in d3
2 parents c12a797 + d2f7269 commit c72264c

File tree

186 files changed

+191
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+191
-191
lines changed

devtools/image_viewer/viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var fs = require('fs');
22
var path = require('path');
33

4-
var d3 = require('d3');
4+
var d3 = require('@plotly/d3');
55

66
var $plotlist = document.getElementById('plot-list');
77
var $toggles = document.getElementById('plot-toggles');

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
]
5757
},
5858
"dependencies": {
59+
"@plotly/d3": "^3.5.18",
5960
"@plotly/d3-sankey": "0.7.2",
6061
"@plotly/d3-sankey-circular": "0.33.1",
6162
"@plotly/point-cluster": "^3.1.9",
@@ -70,7 +71,6 @@
7071
"color-rgba": "2.1.1",
7172
"convex-hull": "^1.0.3",
7273
"country-regex": "^1.1.0",
73-
"d3": "^3.5.17",
7474
"d3-force": "^1.2.1",
7575
"d3-hierarchy": "^1.1.9",
7676
"d3-interpolate": "^1.4.0",

src/components/annotations/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
var d3 = require('d3');
11+
var d3 = require('@plotly/d3');
1212

1313
var Registry = require('../../registry');
1414
var Plots = require('../../plots/plots');

src/components/annotations/draw_arrow_head.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
var d3 = require('d3');
12+
var d3 = require('@plotly/d3');
1313

1414
var Color = require('../color');
1515

src/components/colorbar/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
var d3 = require('d3');
11+
var d3 = require('@plotly/d3');
1212
var tinycolor = require('tinycolor2');
1313

1414
var Plots = require('../../plots/plots');

src/components/colorscale/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
'use strict';
1010

11-
var d3 = require('d3');
11+
var d3 = require('@plotly/d3');
1212
var tinycolor = require('tinycolor2');
1313
var isNumeric = require('fast-isnumeric');
1414

src/components/drawing/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
var d3 = require('d3');
12+
var d3 = require('@plotly/d3');
1313
var isNumeric = require('fast-isnumeric');
1414
var tinycolor = require('tinycolor2');
1515

src/components/drawing/symbol_defs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
var d3 = require('d3');
12+
var d3 = require('@plotly/d3');
1313

1414
/** Marker symbol definitions
1515
* users can specify markers either by number or name

src/components/errorbars/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'use strict';
1111

12-
var d3 = require('d3');
12+
var d3 = require('@plotly/d3');
1313
var isNumeric = require('fast-isnumeric');
1414

1515
var Drawing = require('../drawing');

0 commit comments

Comments
 (0)