Skip to content

Commit

Permalink
fix(reader): Use itk infrastructure to read file
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed May 29, 2017
1 parent e7f7b54 commit 10a27fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build": "webpack --progress --colors",
"build:debug": "webpack --progress --colors --display-modules",
"build:release": "export NODE_ENV=production && npm run build -- -p",
"postbuild:release": "npm run bundle",
"postbuild:release": "npm run bundle && cp -r ./node_modules/itk/dist/* ./dist/",
"bundle": "StandaloneHTML ./dist/index.html ./dist/ItkVtkImageViewer.html",
"commit": "git cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
Expand Down
2 changes: 1 addition & 1 deletion src/dataHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const processData = (container, { file, ext }) => {
// Create VTK Image Data
const imageData = vtkImageData.newInstance(vtkImage);
const scalar = vtkDataArray.newInstance(array);
imageData.setDimension(...dimensions);
imageData.setDimensions(...dimensions);
imageData.getPointData().setScalars(scalar);

viewer.createViewer(container, {
Expand Down

0 comments on commit 10a27fa

Please sign in to comment.