You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
m.initialize has a bug setting the subsize if the array input is array of data views
To Reproduce
data=[newDataView(newArrayBuffer(10))];plot.overlay_array(data);//throw "subsize must be provided with type 2000 files";
Expected behavior
The code allows arrays of Dataviews to be set and attempts to get the length for the subsize using data[0].length. However, dataviews it should be data[0].byteLength
Additional context
Fix should be
elseif(Array.isArray(data)&&(Array.isArray(data[0])||ArrayBuffer.isView(data[0]))){//If this is a 2-D array automatically set subsizehcb.type=2000;hcb.subsize=ArrayBuffer.isView(data[0]) ? data[0].byteLength: data[0].length;hcb.size=data.length;}
The text was updated successfully, but these errors were encountered:
Describe the bug
m.initialize has a bug setting the subsize if the array input is array of data views
To Reproduce
Expected behavior
The code allows arrays of Dataviews to be set and attempts to get the length for the subsize using data[0].length. However, dataviews it should be data[0].byteLength
Additional context
Fix should be
The text was updated successfully, but these errors were encountered: