Skip to content

Commit abe7664

Browse files
committed
scatterpolargl-strict trace
1 parent 666871e commit abe7664

File tree

7 files changed

+31
-3
lines changed

7 files changed

+31
-3
lines changed

draftlogs/6083_add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- Add CSP compliance to regl traces - scattergl, scatterpolargl, splom, and parcoords. [[#6083](https://github.com/plotly/plotly.js/pull/6083)]
1+
- Add CSP compliance to regl traces - scattergl, scatterpolargl, splom, and parcoords with -strict suffix. [[#6083](https://github.com/plotly/plotly.js/pull/6083)]
22
- Add regl codegen tool. [[#6083](https://github.com/plotly/plotly.js/pull/6083)]

lib/index-strict.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var Plotly = require('./core');
44

55
Plotly.register([
66
require('./splom-strict'),
7+
require('./scatterpolargl-strict'),
78
require('./scattergl-strict'),
89
require('./parcoords-strict'),
910
// traces
@@ -48,7 +49,6 @@ Plotly.register([
4849
require('./ohlc'),
4950
require('./candlestick'),
5051
require('./scatterpolar'),
51-
require('./scatterpolargl'),
5252
require('./barpolar'),
5353
require('./scattersmith'),
5454

lib/scatterpolargl-strict.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
module.exports = require('../src/traces/scatterpolargl-strict');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
var index = require('../scatterpolargl/index');
4+
5+
index.plot = require('../scatterpolargl/plot-strict');
6+
7+
module.exports = index;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
3+
var plot = require('./plot');
4+
5+
var reglPrecompiled = require('./regl_precompiled');
6+
7+
var reglPrecompiledDep = require('../scattergl/regl_precompiled');
8+
9+
Object.assign(plot.reglPrecompiled, reglPrecompiled);
10+
11+
Object.assign(plot.reglPrecompiled, reglPrecompiledDep);
12+
13+
module.exports = plot;

src/traces/scatterpolargl/plot.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ var Lib = require('../../lib');
1111

1212
var TOO_MANY_POINTS = require('../scattergl/constants').TOO_MANY_POINTS;
1313

14+
var reglPrecompiled = {};
15+
1416
module.exports = function plot(gd, subplot, cdata) {
1517
if(!cdata.length) return;
1618

@@ -126,3 +128,5 @@ module.exports = function plot(gd, subplot, cdata) {
126128

127129
return scatterglPlot(gd, subplot, cdata);
128130
};
131+
132+
module.exports.reglPrecompiled = reglPrecompiled;

tasks/util/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var allTraces = fs.readdirSync(path.join(pathToSrc, 'traces'))
2727
var excludedTraces = [
2828
'parcoords-strict',
2929
'scattergl-strict',
30+
'scatterpolargl-strict',
3031
'splom-strict',
3132
];
3233

@@ -153,7 +154,7 @@ var partialBundleTraces = {
153154
'scattergeo',
154155
'scattermapbox',
155156
'scatterpolar',
156-
'scatterpolargl',
157+
'scatterpolargl-strict',
157158
'scattersmith',
158159
'scatterternary',
159160
'splom-strict',

0 commit comments

Comments
 (0)