Permalink
Browse files

update to support new API

  • Loading branch information...
NicolasRannou committed Aug 15, 2013
1 parent 9c6ff9c commit 3bc67a07c88ee54924f460fc0316d3499e3deecc
Showing with 3 additions and 3 deletions.
  1. +3 −3 11/demo.js
View
@@ -45,11 +45,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();
// and this configures the gui for interacting with the label map overlay

0 comments on commit 3bc67a0

Please sign in to comment.