StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/plotly.js/tasks/util/strict_d3.js

27 lines
909 B

var path = require('path');
var transformTools = require('browserify-transform-tools');
var constants = require('./constants');
var pathToStrictD3Module = path.join(
constants.pathToImageTest,
'strict-d3.js'
);
/**
* Transform `require('d3')` expressions to `require(/path/to/strict-d3.js)`
*/
module.exports = transformTools.makeRequireTransform('requireTransform',
{ evaluateArguments: true, jsFilesOnly: true },
function(args, opts, cb) {
var pathIn = args[0];
var pathOut;
if(pathIn === 'd3' && opts.file !== pathToStrictD3Module) {
// JSON.stringify: fix npm-scripts for windows users, for whom
// path has \ in it, without stringify that turns into control chars.
pathOut = 'require(' + JSON.stringify(pathToStrictD3Module) + ')';
}
if(pathOut) return cb(null, pathOut);
else return cb();
});