@cornerstonejs/core 4.5.19 → 4.6.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.
- package/dist/esm/cache/cache.d.ts +2 -2
- package/dist/esm/cache/classes/BaseStreamingImageVolume.d.ts +3 -2
- package/dist/esm/cache/classes/BaseStreamingImageVolume.js +2 -1
- package/dist/esm/types/IBaseStreamingImageVolume.d.ts +3 -0
- package/dist/esm/types/IBaseStreamingImageVolume.js +0 -0
- package/dist/esm/types/ICachedVolume.d.ts +2 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IImage, IGeometry, IImageLoadObject, IVolumeLoadObject, IGeometryLoadObject, ICachedImage, IImageVolume } from '../types';
|
|
1
|
+
import type { IBaseStreamingImageVolume, IImage, IGeometry, IImageLoadObject, IVolumeLoadObject, IGeometryLoadObject, ICachedImage, IImageVolume } from '../types';
|
|
2
2
|
import { ImageQualityStatus } from '../enums';
|
|
3
3
|
declare class Cache {
|
|
4
4
|
private readonly _imageCache;
|
|
@@ -47,7 +47,7 @@ declare class Cache {
|
|
|
47
47
|
getImage: (imageId: string, minQuality?: ImageQualityStatus) => IImage | undefined;
|
|
48
48
|
setPartialImage(imageId: string, partialImage?: IImage): void;
|
|
49
49
|
getImageQuality(imageId: string): ImageQualityStatus;
|
|
50
|
-
getVolume: (volumeId: string, allowPartialMatch?: boolean) => IImageVolume | undefined;
|
|
50
|
+
getVolume: (volumeId: string, allowPartialMatch?: boolean) => IImageVolume | IBaseStreamingImageVolume | undefined;
|
|
51
51
|
getVolumes: () => IImageVolume[];
|
|
52
52
|
filterVolumesByReferenceId: (volumeId: string) => IImageVolume[];
|
|
53
53
|
removeImageLoadObject: (imageId: string, { force }?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageQualityStatus, RequestType } from '../../enums';
|
|
2
2
|
import type { IImagesLoader, ImageLoadRequests, ImageVolumeProps, IStreamingVolumeProperties, ScalingParameters } from '../../types';
|
|
3
3
|
import ImageVolume from './ImageVolume';
|
|
4
|
-
export
|
|
4
|
+
export declare class BaseStreamingImageVolume extends ImageVolume implements IImagesLoader {
|
|
5
5
|
private framesLoaded;
|
|
6
6
|
private framesProcessed;
|
|
7
7
|
private framesUpdated;
|
|
@@ -78,10 +78,11 @@ export default class BaseStreamingImageVolume extends ImageVolume implements IIm
|
|
|
78
78
|
volumeId: string;
|
|
79
79
|
};
|
|
80
80
|
}[];
|
|
81
|
-
getImageLoadRequests(priority
|
|
81
|
+
getImageLoadRequests(priority?: number): ImageLoadRequests[];
|
|
82
82
|
getImageIdsToLoad(): string[];
|
|
83
83
|
loadImages(): Promise<boolean>;
|
|
84
84
|
private _prefetchImageIds;
|
|
85
85
|
private _addScalingToVolume;
|
|
86
86
|
protected checkDimensionGroupCompletion(imageIdIndex: number): void;
|
|
87
87
|
}
|
|
88
|
+
export default BaseStreamingImageVolume;
|
|
@@ -12,7 +12,7 @@ import ProgressiveRetrieveImages from '../../loaders/ProgressiveRetrieveImages';
|
|
|
12
12
|
import { canRenderFloatTextures } from '../../init';
|
|
13
13
|
import { loadAndCacheImage } from '../../loaders/imageLoader';
|
|
14
14
|
const requestTypeDefault = RequestType.Prefetch;
|
|
15
|
-
export
|
|
15
|
+
export class BaseStreamingImageVolume extends ImageVolume {
|
|
16
16
|
constructor(imageVolumeProperties, streamingProperties) {
|
|
17
17
|
super(imageVolumeProperties);
|
|
18
18
|
this.framesLoaded = 0;
|
|
@@ -354,3 +354,4 @@ export default class BaseStreamingImageVolume extends ImageVolume {
|
|
|
354
354
|
}
|
|
355
355
|
checkDimensionGroupCompletion(imageIdIndex) { }
|
|
356
356
|
}
|
|
357
|
+
export default BaseStreamingImageVolume;
|
|
File without changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type IBaseStreamingImageVolume from './IBaseStreamingImageVolume';
|
|
1
2
|
import type IImageVolume from './IImageVolume';
|
|
2
3
|
import type { IVolumeLoadObject } from './ILoadObject';
|
|
3
4
|
interface ICachedVolume {
|
|
4
|
-
volume?: IImageVolume;
|
|
5
|
+
volume?: IImageVolume | IBaseStreamingImageVolume;
|
|
5
6
|
volumeId: string;
|
|
6
7
|
volumeLoadObject: IVolumeLoadObject;
|
|
7
8
|
loaded: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type IBaseStreamingImageVolume from './IBaseStreamingImageVolume';
|
|
1
2
|
import type Cornerstone3DConfig from './Cornerstone3DConfig';
|
|
2
3
|
import type ICamera from './ICamera';
|
|
3
4
|
import type IEnabledElement from './IEnabledElement';
|
|
@@ -103,4 +104,4 @@ import type JumpToSliceOptions from './JumpToSliceOptions';
|
|
|
103
104
|
import type GeometryLoaderFn from './GeometryLoaderFn';
|
|
104
105
|
import type { RenderingEngineModeType } from './RenderingEngineMode';
|
|
105
106
|
import type { VtkOffscreenMultiRenderWindow } from './VtkOffscreenMultiRenderWindow';
|
|
106
|
-
export type { Cornerstone3DConfig, ICamera, IStackViewport, IVideoViewport, IWSIViewport, IVolumeViewport, IEnabledElement, ICache, IVolume, IViewportId, IImageVolume, ImageVolumeProps, IDynamicImageVolume, IRenderingEngine, ScalingParameters, PTScaling, IPointsManager, PolyDataPointConfiguration, Scaling, IStreamingImageVolume, IImage, IImageData, IImageCalibration, CPUIImageData, CPUImageData, EventTypes, ImageLoaderFn, VolumeLoaderFn, IRegisterImageLoader, IStreamingVolumeProperties, IViewport, ViewReference, DataSetOptions as ImageSetOptions, ViewPresentation, ViewPresentationSelector, ReferenceCompatibleOptions, ViewReferenceSpecifier, StackViewportProperties, VolumeViewportProperties, ViewportProperties, PublicViewportInput, VolumeActor, Actor, ActorEntry, ImageActor, ICanvasActor, IImageLoadObject, IVolumeLoadObject, IVolumeInput, VolumeInputCallback, IStackInput, StackInputCallback, ViewportPreset, Metadata, OrientationVectors, AABB2, AABB3, Point2, Point3, PointsXYZ, Point4, Mat3, Plane, ViewportInputOptions, VideoViewportProperties, WSIViewportProperties, VOIRange, VOI, DisplayArea, FlipDirection, ICachedImage, ICachedVolume, CPUFallbackEnabledElement, CPUFallbackViewport, CPUFallbackTransform, CPUFallbackColormapData, CPUFallbackViewportDisplayedArea, CPUFallbackColormapsData, CPUFallbackColormap, TransformMatrix2D, CPUFallbackLookupTable, CPUFallbackLUT, CPUFallbackRenderingTools, CustomEventType, ActorSliceRange, ImageSliceData, IGeometry, IGeometryLoadObject, ICachedGeometry, PublicContourSetData, ContourSetData, ContourData, IContourSet, IContour, PublicSurfaceData, SurfaceData, ISurface, PublicMeshData, MeshData, IMesh, RGB, ColormapPublic, ColormapRegistration, PixelDataTypedArray, PixelDataTypedArrayString, ImagePixelModule, ImagePlaneModule, AffineMatrix, ImageLoadListener, InternalVideoCamera, VideoViewportInput, BoundsIJK, BoundsLPS, Color, ColorLUT, VolumeProps, IImageFrame, DicomDateObject, DicomTimeObject, GeneralSeriesModuleMetadata, ImagePlaneModuleMetadata, SopCommonModuleMetadata, ImagePixelModuleMetadata, PatientStudyModuleMetadata, TransferSyntaxMetadata, LocalVolumeOptions, IVoxelManager, IRLEVoxelMap, RLERun, ViewportInput, ImageLoadRequests, IBaseVolumeViewport, GeometryLoaderFn, ScrollOptions, JumpToSliceOptions, Memo, HistoryMemo, VoxelManager, RLEVoxelMap, RenderingEngineModeType, VtkOffscreenMultiRenderWindow, };
|
|
107
|
+
export type { Cornerstone3DConfig, IBaseStreamingImageVolume, ICamera, IStackViewport, IVideoViewport, IWSIViewport, IVolumeViewport, IEnabledElement, ICache, IVolume, IViewportId, IImageVolume, ImageVolumeProps, IDynamicImageVolume, IRenderingEngine, ScalingParameters, PTScaling, IPointsManager, PolyDataPointConfiguration, Scaling, IStreamingImageVolume, IImage, IImageData, IImageCalibration, CPUIImageData, CPUImageData, EventTypes, ImageLoaderFn, VolumeLoaderFn, IRegisterImageLoader, IStreamingVolumeProperties, IViewport, ViewReference, DataSetOptions as ImageSetOptions, ViewPresentation, ViewPresentationSelector, ReferenceCompatibleOptions, ViewReferenceSpecifier, StackViewportProperties, VolumeViewportProperties, ViewportProperties, PublicViewportInput, VolumeActor, Actor, ActorEntry, ImageActor, ICanvasActor, IImageLoadObject, IVolumeLoadObject, IVolumeInput, VolumeInputCallback, IStackInput, StackInputCallback, ViewportPreset, Metadata, OrientationVectors, AABB2, AABB3, Point2, Point3, PointsXYZ, Point4, Mat3, Plane, ViewportInputOptions, VideoViewportProperties, WSIViewportProperties, VOIRange, VOI, DisplayArea, FlipDirection, ICachedImage, ICachedVolume, CPUFallbackEnabledElement, CPUFallbackViewport, CPUFallbackTransform, CPUFallbackColormapData, CPUFallbackViewportDisplayedArea, CPUFallbackColormapsData, CPUFallbackColormap, TransformMatrix2D, CPUFallbackLookupTable, CPUFallbackLUT, CPUFallbackRenderingTools, CustomEventType, ActorSliceRange, ImageSliceData, IGeometry, IGeometryLoadObject, ICachedGeometry, PublicContourSetData, ContourSetData, ContourData, IContourSet, IContour, PublicSurfaceData, SurfaceData, ISurface, PublicMeshData, MeshData, IMesh, RGB, ColormapPublic, ColormapRegistration, PixelDataTypedArray, PixelDataTypedArrayString, ImagePixelModule, ImagePlaneModule, AffineMatrix, ImageLoadListener, InternalVideoCamera, VideoViewportInput, BoundsIJK, BoundsLPS, Color, ColorLUT, VolumeProps, IImageFrame, DicomDateObject, DicomTimeObject, GeneralSeriesModuleMetadata, ImagePlaneModuleMetadata, SopCommonModuleMetadata, ImagePixelModuleMetadata, PatientStudyModuleMetadata, TransferSyntaxMetadata, LocalVolumeOptions, IVoxelManager, IRLEVoxelMap, RLERun, ViewportInput, ImageLoadRequests, IBaseVolumeViewport, GeometryLoaderFn, ScrollOptions, JumpToSliceOptions, Memo, HistoryMemo, VoxelManager, RLEVoxelMap, RenderingEngineModeType, VtkOffscreenMultiRenderWindow, };
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.
|
|
1
|
+
export declare const version = "4.6.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.6.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Cornerstone3D Core",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"type": "individual",
|
|
98
98
|
"url": "https://ohif.org/donate"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "290f99b7c8a36710a4751c5c905afbf7c27b5786"
|
|
101
101
|
}
|