Skip to content

Commit 14fed21

Browse files
committed
handle typed array fix rendering of contour_transposed-irregular
1 parent d44d2d2 commit 14fed21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/heatmap/make_bound_array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks,
2222
// and extend it linearly based on the last two points
2323
if(len <= numbricks) {
2424
// contour plots only want the centers
25-
if(isContour || isGL2D) arrayOut = arrayIn.slice(0, numbricks);
25+
if(isContour || isGL2D) arrayOut = Array.from(arrayIn).slice(0, numbricks);
2626
else if(numbricks === 1) {
2727
arrayOut = [arrayIn[0] - 0.5, arrayIn[0] + 0.5];
2828
} else {

0 commit comments

Comments
 (0)