Skip to content

Commit aaa42c6

Browse files
committed
Provide selection scaffold
1 parent 4470447 commit aaa42c6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/plots/cartesian/select.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
9191
for(i = 0; i < gd.calcdata.length; i++) {
9292
cd = gd.calcdata[i];
9393
trace = cd[0].trace;
94+
9495
if(trace.visible !== true || !trace._module || !trace._module.selectPoints) continue;
9596

9697
if(dragOptions.subplot) {
@@ -106,6 +107,18 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
106107
yaxis: dragOptions.yaxes[0]
107108
});
108109
}
110+
} else if(trace.type === 'splom') {
111+
// FIXME: make sure we don't have more than single axis for splom
112+
if(trace.xaxes.indexOf(xAxisIds[0]) === -1) continue;
113+
if(trace.yaxes.indexOf(yAxisIds[0]) === -1) continue;
114+
115+
searchTraces.push({
116+
selectPoints: trace._module.selectPoints,
117+
style: trace._module.style,
118+
cd: cd,
119+
xaxis: dragOptions.xaxes[0],
120+
yaxis: dragOptions.yaxes[0]
121+
});
109122
} else {
110123
if(xAxisIds.indexOf(trace.xaxis) === -1) continue;
111124
if(yAxisIds.indexOf(trace.yaxis) === -1) continue;

src/traces/splom/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ function selectPoints(searchInfo, polygon) {
252252
// var x = stash.x;
253253
// var y = stash.y;
254254
// var scene = stash.scene;
255+
256+
return [];
255257
}
256258

257259

0 commit comments

Comments
 (0)