We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a31bc5a commit 2529960Copy full SHA for 2529960
src/lib/index.js
@@ -63,9 +63,18 @@ function renderTraceIcon(trace, prefix = 'Plot') {
63
return null;
64
}
65
const gl = 'gl';
66
+
67
+ let tempTrace = trace;
68
+ if (tempTrace === 'cone') {
69
+ tempTrace = 'scatter3d';
70
+ } else if (tempTrace === 'streamtube') {
71
+ tempTrace = 'line3d';
72
+ }
73
74
const componentName = `${prefix}${pascalCase(
- trace.endsWith(gl) ? trace.slice(0, -gl.length) : trace
75
+ tempTrace.endsWith(gl) ? tempTrace.slice(0, -gl.length) : tempTrace
76
)}Icon`;
77
78
return PlotlyIcons[componentName]
79
? PlotlyIcons[componentName]
80
: PlotlyIcons.PlotLineIcon;
0 commit comments