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),
});
};
I have two
regl-scatterplotinstances 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:UPDATE: the issue occurs only if
backgroundImageproperty is set for the plot that throws the exception: