UNPKG

ng-cornerstone

Version:

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.git

16 lines (15 loc) 911 B
/** * Similar to {@link addVolumesToViewports} it adds volumes to viewports; however, * this method will Set the volumes on the viewports which means that the previous * volumes will be removed. * * @param renderingEngine - The rendering engine to use to get viewports from * @param volumeInputs - Array of volume inputs including volumeId. Other properties * such as visibility, callback, blendMode, slabThickness are optional * @param viewportIds - Array of viewport IDs to add the volume to * @param immediateRender - If true, the volumes will be rendered immediately * @returns A promise that resolves when all volumes have been added */ import { Types } from '@cornerstonejs/core'; declare function setStacksForViewports(renderingEngine: Types.IRenderingEngine, viewportIds: Array<string>, imageIds: Array<string>, currentImageIdIndex?: number): Promise<void>; export { setStacksForViewports };