Interface: Cornerstone3DConfig
Properties
debug
debug:
object
statsOverlay?
optionalstatsOverlay:boolean
Wether or not to show the stats overlay for debugging purposes, stats include:
- FPS Frames rendered in the last second. The higher the number the better.
- MS Milliseconds needed to render a frame. The lower the number the better.
- MB MBytes of allocated memory. (Run Chrome with --enable-precise-memory-info)
Defined in
packages/core/src/types/Cornerstone3DConfig.ts:60
gpuTier?
optionalgpuTier:object
tier?
optionaltier:number
Defined in
packages/core/src/types/Cornerstone3DConfig.ts:4
isMobile?
optionalisMobile:boolean
Whether the device is mobile or not.
Defined in
packages/core/src/types/Cornerstone3DConfig.ts:8
peerImport()?
optionalpeerImport: (moduleId) =>Promise<any>
This function returns an imported module for the given module id. It allows replacing broken packing system imports with external importers that perform lazy imports.
Parameters
• moduleId: string
Returns
Promise<any>
Defined in
packages/core/src/types/Cornerstone3DConfig.ts:76
rendering?
optionalrendering:object
preferSizeOverAccuracy?
optionalpreferSizeOverAccuracy:boolean
renderingEngineMode?
optionalrenderingEngineMode:RenderingEngineModeType
The rendering engine mode to use. 'contextPool' is the a rendering engine that uses sequential rendering, pararllization and has enhanced support/performance for multi-monitor and high resolution displays. 'tiled' is a rendering engine that uses tiled rendering.
strictZSpacingForVolumeViewport?
optionalstrictZSpacingForVolumeViewport:boolean
flag to control whether to use fallback behavior for z-spacing calculation in volume viewports when the necessary metadata is missing. If enabled, we will fall back to using slice thickness or a default value of 1 to render the volume viewport when z-spacing cannot be calculated from images This can help improve the usability and robustness of the visualization in scenarios where the metadata is incomplete or missing, but it might be wrong assumption in certain scenarios.
useCPURendering?
optionaluseCPURendering:boolean
useLegacyCameraFOV?
optionaluseLegacyCameraFOV:boolean
Use the legacy camera field of view calculation method which uses bounds to calculate the field of view. When false (default), uses the image dimensions directly for more accurate full-screen display.
volumeRendering?
optionalvolumeRendering:object
volumeRendering.sampleDistanceMultiplier?
optionalsampleDistanceMultiplier:number
Multiplier for the calculated sample distance
webGlContextCount?
optionalwebGlContextCount:number
The number of WebGL contexts to create. This is used for parallel rendering. The default value is 7, which is suitable for mobile/desktop.