Skip to main content

init

Callable

  • init(configuration?: {}): Promise<boolean>

  • Initialize the cornerstone-core. If the browser has a webgl context and the detected gpu (by detect-gpu library) indicates the GPU is not low end we will use webgl GPU rendering. Otherwise we will use cpu rendering.


    Parameters

    • configuration: {} = {}

      A configuration object

    Returns Promise<boolean>

    A promise that resolves to true cornerstone has been initialized successfully.