Skip to content

Commit 463897c

Browse files
committed
regen functions using unchecked regl
1 parent 781db35 commit 463897c

File tree

33 files changed

+23003
-23468
lines changed

33 files changed

+23003
-23468
lines changed

devtools/regl_codegen/server.js

+7-20
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ var devtools = browserify(path.join(devtoolsPath, 'devtools.js'), {
6666
// Start the server up!
6767
server.listen(PORT);
6868

69-
var reglTraceList = getReglTraces();
69+
var reglTraceList = [
70+
'parcoords',
71+
'scattergl',
72+
'scatterpolargl',
73+
'splom'
74+
];
75+
7076
purgeGeneratedCode(reglTraceList);
7177

7278
// Build and bundle all the things!
@@ -91,25 +97,6 @@ function getMockFiles() {
9197
});
9298
}
9399

94-
function getReglTraces() {
95-
return constants.allTraces.filter(function(trace) {
96-
var indexPath = constants.pathToSrc + '/traces/' + trace + '/index.js';
97-
98-
// get categories
99-
var indexContents = fs.readFileSync(indexPath, 'utf8');
100-
var categories = indexContents.match(/^\s*categories:\s*\[([^\]]+)\]/m);
101-
if(categories) {
102-
categories = categories[1].split(',').map(function(c) {
103-
return c.trim().replace(/^['"]|['"]$/g, '');
104-
});
105-
}
106-
107-
if(categories && categories.indexOf('regl') !== -1) {
108-
return true;
109-
}
110-
});
111-
}
112-
113100
function readFiles(files) {
114101
var promises = files.map(function(file) {
115102
var filePath = path.join(constants.pathToTestImageMocks, file);

0 commit comments

Comments
 (0)