Skip to content

Commit c823c05

Browse files
committed
test(volume-rendering): bound the slider step at 1/256 of the color range
1 parent 5092f27 commit c823c05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/utils/__tests__/mappingRangeSliders.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('mappingRangeSliders', () => {
1010
(fullWidth) => {
1111
const { step, shift, width } = mappingRangeSliders(fullWidth);
1212
expect(step).toBeGreaterThan(0);
13-
expect(step).toBeLessThanOrEqual(Math.min(1, fullWidth / 2));
13+
expect(step).toBeLessThanOrEqual(Math.min(1, fullWidth / 256));
1414
expect(width[0]).toBeLessThan(fullWidth);
1515
expect(width[1]).toBe(2 * fullWidth);
1616
expect(shift[0]).toBe(-shift[1]);

0 commit comments

Comments
 (0)