Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 901b379

Browse files
authored
Merge pull request #15 from rreusser/better-strict-d3
Better strict-d3
2 parents f01bb64 + 8a5d795 commit 901b379

File tree

3 files changed

+2
-78
lines changed

3 files changed

+2
-78
lines changed

assets/strict-d3.js

Lines changed: 0 additions & 74 deletions
This file was deleted.

lib/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ function startServer (opts) {
9494
)
9595
}
9696

97-
var transforms = [brfs, es2040]
97+
var transforms = [brfs, es2040, require(plotlyPath + '/tasks/util/strict_d3')]
9898

9999
if (!opts.keepMeta) {
100-
transforms.push(require('plotly.js/tasks/util/compress_attributes'))
100+
transforms.push(require(plotlyPath + '/tasks/util/compress_attributes'))
101101
}
102102

103103
return budo(path.join(__dirname, 'dummy.js'), {

lib/viewer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ module.exports = function (config) {
1010

1111
// Make sure it's global, I guess?
1212
window.Plotly = Plotly
13-
require('../assets/strict-d3')
14-
1513
window.d3 = Plotly.d3
1614

1715
console.groupCollapsed('📊📊 %cplotly.js mock viewer (expand for instructions)%c 📊📊', 'background-color:rgb(65,120,223);color:white;font-weight:bold', 'background-color:none')

0 commit comments

Comments
 (0)