-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I have two regl-scatterplot instances in different components. When selection is performed on one of the plots (doesn't matter if selection is done via lasso tool or without holding Shift button), then second plot throws the following error during zooming/panning:
regl-scatterplot.esm.js?6a7f:400 Uncaught TypeError: Cannot read property '0' of null
at transformMat4 (regl-scatterplot.esm.js?6a7f:400)
at getScatterGlPos (regl-scatterplot.esm.js?6a7f:2639)
at raycast (regl-scatterplot.esm.js?6a7f:2645)
at mouseMoveHandler (regl-scatterplot.esm.js?6a7f:2818)UPDATE: the issue occurs only if backgroundImage property is set for the plot that throws the exception:
const regl = this.scatterplot.get("regl");
const img = new Image();
img.crossOrigin = "";
img.src = this.channelStackImage as any;
img.onload = () => {
this.scatterplot.set({
backgroundImage: regl.texture(img),
});
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working