Skip to content

Commit

Permalink
docs: Update stack-scroll example page (#1350)
Browse files Browse the repository at this point in the history
Co-authored-by: Philippe <[email protected]>
Co-authored-by: Erik Ziegler <[email protected]>
  • Loading branch information
3 people authored Aug 3, 2021
1 parent 95e05ad commit 76aff1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/tools/stack-scroll.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ const series = [
'image_2.dcm'
]

const imageIds = series.map(seriesImage => `${scheme}:${baseUrl}${seriesImage}`
const imageIds = series.map(seriesImage => `${scheme}:${baseUrl}${seriesImage}`)

// Add our tool, and set it's mode
const StackScrollTool = cornerstoneTools.StackScrollTool

//define the stack
const stack = {
currentImageIdIndex: 0,
imageIds
imageIds: imageIds
}

// load images and set the stack
Expand All @@ -37,7 +37,7 @@ cornerstone.loadImage(imageIds[0]).then((image) => {
cornerstoneTools.addToolState(element, 'stack', stack)
})

cornerstoneTools.addTool(StackScrollToolTool)
cornerstoneTools.setToolActive('StackScrollTool', { mouseButtonMask: 1 })
cornerstoneTools.addTool(StackScrollTool)
cornerstoneTools.setToolActive('StackScroll', { mouseButtonMask: 1 })

{% endhighlight %}

0 comments on commit 76aff1e

Please sign in to comment.