Skip to content

Commit bc48eea

Browse files
committed
checker > check
1 parent 324e69b commit bc48eea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: src/traces/isosurface/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@ var attrs = module.exports = overrideAll(extendFlat({
166166
},
167167
pattern: {
168168
valType: 'enumerated',
169-
values: ['all', 'checker1', 'checker2', 'A', 'B', 'C', 'AB', 'AC', 'BC', 'ABC'],
169+
values: ['all', 'check1', 'check2', 'A', 'B', 'C', 'AB', 'AC', 'BC', 'ABC'],
170170
dflt: 'all',
171171
role: 'style',
172172
description: [
173173
'Sets the surface pattern of the iso-surface 3-D sections. The default pattern of',
174174
'the surface is `all` meaning that the rest of surface elements would be shaded.',
175-
'The checker options (either 1 or 2) could be used to draw half of the squares',
175+
'The check options (either 1 or 2) could be used to draw half of the squares',
176176
'on the surface. Using various combinations of capital `A`, `B`, and `C` may also',
177177
'be used to reduce the number of triangles on the iso-surfaces and creating other',
178178
'patterns of interest.'

Diff for: src/traces/isosurface/convert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,10 @@ function generateIsosurfaceMesh(data) {
625625
function beginCell(style, p000, p001, p010, p011, p100, p101, p110, p111, min, max, isEven) {
626626
var cellStyle = style;
627627
if(isEven) {
628-
if(drawingSurface && styleIncludes(style, 'checker2')) cellStyle = null;
628+
if(drawingSurface && styleIncludes(style, 'check2')) cellStyle = null;
629629
addCube(cellStyle, p000, p001, p010, p011, p100, p101, p110, p111, min, max);
630630
} else {
631-
if(drawingSurface && styleIncludes(style, 'checker1')) cellStyle = null;
631+
if(drawingSurface && styleIncludes(style, 'check1')) cellStyle = null;
632632
addCube(cellStyle, p111, p110, p101, p100, p011, p010, p001, p000, min, max);
633633
}
634634
}

Diff for: test/image/mocks/gl3d_isosurface_2surfaces-checker_spaceframe.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "isosurface",
44
"colorscale": "Blackbody",
55
"reversescale": true,
6-
"surface": { "show": true, "fill": 1.0, "pattern": "checker1" },
6+
"surface": { "show": true, "fill": 1.0, "pattern": "check1" },
77
"spaceframe": { "show": true, "fill": 0.25 },
88
"slices": {
99
"x": { "show": false },
@@ -678,7 +678,7 @@
678678
}],
679679
"layout": {
680680
"title": {
681-
"text": "isosurface trace with checker pattern and the interior filled with tetras"
681+
"text": "isosurface trace with check pattern and the interior filled with tetras"
682682
},
683683
"width": 1200,
684684
"height": 900,

0 commit comments

Comments
 (0)