larvitar 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  * rendering images in html canvas using cornerstone
4
4
  */
5
5
  import cornerstone from "cornerstone-core";
6
- import { Series, StoreViewport, StoreViewportOptions, Viewport } from "./types";
6
+ import { RenderProps, Series, StoreViewport, Viewport } from "./types";
7
7
  /**
8
8
  * Purge the cornestone internal cache
9
9
  * If seriesId is passed as argument only imageIds of the series are purged from internal cache
@@ -92,13 +92,10 @@ export declare const resizeViewport: (elementId: string | HTMLElement) => void;
92
92
  * @function renderImage
93
93
  * @param {Object} seriesStack - The original series data object
94
94
  * @param {String} elementId - The html div id used for rendering or its DOM HTMLElement
95
- * @param {Object | undefined} options - Optional properties
95
+ * @param {RenderProps | undefined} options - Optional properties
96
96
  * @return {Promise} Return a promise which will resolve when image is displayed
97
97
  */
98
- export declare const renderImage: (seriesStack: Series, elementId: string | HTMLElement, options?: {
99
- defaultProps?: StoreViewportOptions;
100
- cached?: boolean;
101
- }) => Promise<true>;
98
+ export declare const renderImage: (seriesStack: Series, elementId: string | HTMLElement, options?: RenderProps) => Promise<true>;
102
99
  /**
103
100
  * Redraw the cornerstone image
104
101
  * @instance
@@ -191,9 +188,9 @@ export declare const updateTemporalViewportData: (seriesStack: Series, elementId
191
188
  * Get series metadata from default props and series' metadata
192
189
  * @instance
193
190
  * @function getSeriesData
194
- * @param {Object} series - The parsed data series
195
- * @param {Object} defaultProps - Optional default properties
191
+ * @param {Series} series - The parsed data series
192
+ * @param {RenderProps} renderOptions - Optional default properties
196
193
  * @return {StoreViewport} data - A data dictionary with parsed tags' values
197
194
  */
198
- declare const getSeriesData: (series: Series, defaultProps: StoreViewportOptions) => StoreViewport;
195
+ declare const getSeriesData: (series: Series, renderOptions: RenderProps) => StoreViewport;
199
196
  export {};
@@ -16,10 +16,10 @@ declare const initializeCSTools: (settings?: ToolSettings, style?: ToolStyle) =>
16
16
  * Create stack object to sync stack tools
17
17
  * @function csToolsCreateStack
18
18
  * @param {HTMLElement} element - The target html element.
19
- * @param {Array?} imageIds - Stack image ids.
19
+ * @param {Array} imageIds - Stack image ids.
20
20
  * @param {number?} currentImageIndex - The current image id.
21
21
  */
22
- declare const csToolsCreateStack: (element: HTMLElement, imageIds?: string[], currentImageIndex?: number) => void;
22
+ declare const csToolsCreateStack: (element: HTMLElement, imageIds: string[], currentImageIndex?: number) => void;
23
23
  /**
24
24
  * Update stack object to sync stack tools
25
25
  * @function csToolsUpdateImageIds