Skip to content

Commit

Permalink
fix(2d): Fix usage of use2D attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jun 1, 2017
1 parent 1f7308c commit b318ed0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Binary file added doc/content/docs/2dViewer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions doc/content/docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,10 @@ $ ItkVtkImageViewer -p
```

![ItkVtkImageViewer](./viewer.jpg)

### Force 2D viewer

To force the 2D viewer on 3D dataset, just add `?use2D` at the end of the URL.

![ItkVtkImageViewer](./2dViewer.jpg)

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function processParameters(container, addOnParameters = {}, keyName = 'fi
if (userParams.fullscreen) {
helper.applyStyle(myContainer, helper.STYLES.fullScreen);
}
return createViewer(myContainer, userParams[keyName]);
return createViewer(myContainer, userParams[keyName], !!userParams.use2D);
}
return null;
}
Expand Down

0 comments on commit b318ed0

Please sign in to comment.