Skip to content

Commit d9dc593

Browse files
committed
handle typed arrays in scatter3d text
1 parent 0fe1414 commit d9dc593

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/traces/scatter3d/convert.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,11 @@ function convertPlotlyOptions(scene, data) {
227227
}
228228

229229
// convert text
230-
if(Lib.isArrayOrTypedArray(data.text)) text = data.text;
231-
else if(data.text !== undefined) {
230+
if(Array.isArray(data.text)) {
231+
text = data.text;
232+
} else if(Lib.isTypedArray(data.text)) {
233+
text = Array.from(data.text);
234+
} else if(data.text !== undefined) {
232235
text = new Array(len);
233236
for(i = 0; i < len; i++) text[i] = data.text;
234237
}

0 commit comments

Comments
 (0)