Skip to content

Commit c3dcf7d

Browse files
committed
Add support for permutations of direct array support - test cases
1 parent 5838ca9 commit c3dcf7d

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

src/traces/pointcloud/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ proto.updateFast = function(options) {
8383
var y = this.yData = this.pickYData = options.y;
8484

8585
var xy = options.xy;
86-
var userBounds = options.xbounds && options.ybounds
86+
var userBounds = options.xbounds && options.ybounds;
8787
var index = options.indices;
8888

8989
var len,

test/image/mocks/gl2d_pointcloud-basic.json

+58
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,64 @@
4444
"opacity": 0.7,
4545
"x": [3, 4.5, 6],
4646
"y": [9, 9, 9]
47+
},
48+
{
49+
"type": "pointcloud",
50+
"mode": "markers",
51+
"marker": {
52+
"sizemin": 0.5,
53+
"sizemax": 100,
54+
"color": "yellow",
55+
"opacity": 0.8,
56+
"blend": true
57+
},
58+
"opacity": 0.7,
59+
"xy": new Float32Array([1, 3, 9, 3]),
60+
"indices": new Int32Array([0, 1]),
61+
"xbounds": [1, 9],
62+
"ybounds": [3, 3]
63+
},
64+
{
65+
"type": "pointcloud",
66+
"mode": "markers",
67+
"marker": {
68+
"sizemin": 0.5,
69+
"sizemax": 100,
70+
"color": "orange",
71+
"opacity": 0.8,
72+
"blend": true
73+
},
74+
"opacity": 0.7,
75+
"xy": new Float32Array([1, 4, 9, 4]),
76+
"indices": new Int32Array([0, 1])
77+
},
78+
{
79+
"type": "pointcloud",
80+
"mode": "markers",
81+
"marker": {
82+
"sizemin": 0.5,
83+
"sizemax": 100,
84+
"color": "darkorange",
85+
"opacity": 0.8,
86+
"blend": true
87+
},
88+
"opacity": 0.7,
89+
"xy": new Float32Array([1, 5, 9, 5]),
90+
"xbounds": [1, 9],
91+
"ybounds": [5, 5]
92+
},
93+
{
94+
"type": "pointcloud",
95+
"mode": "markers",
96+
"marker": {
97+
"sizemin": 0.5,
98+
"sizemax": 100,
99+
"color": "red",
100+
"opacity": 0.8,
101+
"blend": true
102+
},
103+
"opacity": 0.7,
104+
"xy": new Float32Array([1, 6, 9, 6])
47105
}
48106
],
49107
"layout": {

0 commit comments

Comments
 (0)