Permalink
Browse files

update to support new API

  • Loading branch information...
NicolasRannou committed Aug 15, 2013
1 parent 3bc67a0 commit 5ce836e4a57d0e94ceb7de431dc8f18b0ce5ee8e
Showing with 3 additions and 3 deletions.
  1. +3 −3 13/demo.js
View
@@ -100,11 +100,11 @@ window.onload = function() {
// the indexX,Y,Z are the currently displayed slice indices in the range
// 0..dimensions-1
var sliceXController = volumegui.add(volume, 'indexX', 0,
- volume.dimensions[0] - 1);
+ volume.range[0] - 1);
var sliceYController = volumegui.add(volume, 'indexY', 0,
- volume.dimensions[1] - 1);
+ volume.range[1] - 1);
var sliceZController = volumegui.add(volume, 'indexZ', 0,
- volume.dimensions[2] - 1);
+ volume.range[2] - 1);
volumegui.open();
};

0 comments on commit 5ce836e

Please sign in to comment.