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 ca4560f commit 5daee0bCopy full SHA for 5daee0b
plotly/src/traces/mesh3d.rs
@@ -389,17 +389,17 @@ where
389
x: Vec<X>,
390
y: Vec<Y>,
391
z: Vec<Z>,
392
- i: Vec<usize>,
393
- j: Vec<usize>,
394
- k: Vec<usize>,
+ i: Option<Vec<usize>>,
+ j: Option<Vec<usize>>,
+ k: Option<Vec<usize>>,
395
) -> Box<Self> {
396
Box::new(Self {
397
x: Some(x),
398
y: Some(y),
399
z: Some(z),
400
- i: Some(i),
401
- j: Some(j),
402
- k: Some(k),
+ i,
+ j,
+ k,
403
..Default::default()
404
})
405
}
@@ -484,9 +484,9 @@ mod tests {
484
vec![0.0, 1.0, 2.0],
485
vec![3.0, 4.0, 5.0],
486
vec![6.0, 7.0, 8.0],
487
- vec![0],
488
- vec![1],
489
- vec![2],
+ Some(vec![0]),
+ Some(vec![1]),
+ Some(vec![2]),
490
)
491
.name("trace_name")
492
.visible(Visible::True)
0 commit comments