Skip to content

Commit

Permalink
Merge pull request #11 from cornerstonejs/merge/cs3d-20240425
Browse files Browse the repository at this point in the history
merge: cs3d 20240425
  • Loading branch information
sedghi authored Apr 25, 2024
2 parents 3baf15e + feb95d9 commit 795413a
Show file tree
Hide file tree
Showing 76 changed files with 1,346 additions and 438 deletions.
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,54 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.70.13](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.12...v1.70.13) (2024-04-25)

### Bug Fixes

- **trackball:** return if element is not defined in resize observer ([#1227](https://github.com/cornerstonejs/cornerstone3D/issues/1227)) ([04b25ba](https://github.com/cornerstonejs/cornerstone3D/commit/04b25ba51fe2568049ee261413286638e52a3ebc))

## [1.70.12](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.11...v1.70.12) (2024-04-22)

### Bug Fixes

- **worker-management:** Prevent termination of running workers ([#1221](https://github.com/cornerstonejs/cornerstone3D/issues/1221)) ([cd4a7c0](https://github.com/cornerstonejs/cornerstone3D/commit/cd4a7c09d13fc723b37397e6f45892db84828704))

## [1.70.11](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.10...v1.70.11) (2024-04-22)

### Bug Fixes

- **ipadOS:** for basic rendering of non floats ([#1220](https://github.com/cornerstonejs/cornerstone3D/issues/1220)) ([b6d76e1](https://github.com/cornerstonejs/cornerstone3D/commit/b6d76e154e55d02f187bd2ecb2cfe2eb18f8950d))

## [1.70.10](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.9...v1.70.10) (2024-04-19)

### Bug Fixes

- **wadouri:** custom loaders should register their schema, and add new debounce listener to event target ([#1216](https://github.com/cornerstonejs/cornerstone3D/issues/1216)) ([c1cad64](https://github.com/cornerstonejs/cornerstone3D/commit/c1cad64526678d3ea5cb734ff7147182877bf8c5))

## [1.70.9](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.8...v1.70.9) (2024-04-18)

### Bug Fixes

- **trackball:** Correct typos and enhance TrackballRotateTool functionality ([#1214](https://github.com/cornerstonejs/cornerstone3D/issues/1214)) ([522574e](https://github.com/cornerstonejs/cornerstone3D/commit/522574ee616186ffe021f376c95dbbbd8a754c4e))

## [1.70.8](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.7...v1.70.8) (2024-04-18)

### Bug Fixes

- **iOS:** Implement texture handling for iOS issues in late 16 and 17 ([#1212](https://github.com/cornerstonejs/cornerstone3D/issues/1212)) ([2191ada](https://github.com/cornerstonejs/cornerstone3D/commit/2191adaa4f5d8d6928686c7db862ef22765571d0))

## [1.70.7](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.6...v1.70.7) (2024-04-17)

### Bug Fixes

- **ultrasound-enhancement:** Correct scaling factor and VOI loading issue ([#1211](https://github.com/cornerstonejs/cornerstone3D/issues/1211)) ([7dbfa63](https://github.com/cornerstonejs/cornerstone3D/commit/7dbfa63d910aaf45f5d3ec2b685515e024ab01ae))

## [1.70.6](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.5...v1.70.6) (2024-04-16)

### Bug Fixes

- **misc:** Resolve memory leaks and reference lines issue, update vtk, and improve Advanced Magnify tool ([#1209](https://github.com/cornerstonejs/cornerstone3D/issues/1209)) ([cf613f5](https://github.com/cornerstonejs/cornerstone3D/commit/cf613f5231ab656cfdfdbba99972d2fee43760b2))

## [1.70.5](https://github.com/cornerstonejs/cornerstone3D/compare/v1.70.4...v1.70.5) (2024-04-10)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d7a765cec40393edd59408f567431c3bce04920a
04b25ba51fe2568049ee261413286638e52a3ebc
38 changes: 37 additions & 1 deletion common/reviews/api/core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ function cancelLoadImage(imageId: string): void;
// @public (undocumented)
function cancelLoadImages(imageIds: Array<string>): void;

// @public (undocumented)
export function canRenderFloatTextures(): boolean;

// @public (undocumented)
function clamp(value: number, min: number, max: number): number;

Expand Down Expand Up @@ -377,6 +380,7 @@ function convertVolumeToStackViewport({ viewport, options, }: {
// @public (undocumented)
type Cornerstone3DConfig = {
gpuTier?: TierResult;
isMobile: boolean;
detectGPUConfig: GetGPUTier;
rendering: {
preferSizeOverAccuracy: boolean;
Expand Down Expand Up @@ -819,6 +823,8 @@ export enum EVENTS {
// (undocumented)
ELEMENT_ENABLED = "CORNERSTONE_ELEMENT_ENABLED",
// (undocumented)
ERROR_EVENT = "CORNERSTONE_ERROR",
// (undocumented)
GEOMETRY_CACHE_GEOMETRY_ADDED = "CORNERSTONE_GEOMETRY_CACHE_GEOMETRY_ADDED",
// (undocumented)
IMAGE_CACHE_IMAGE_ADDED = "CORNERSTONE_IMAGE_CACHE_IMAGE_ADDED",
Expand Down Expand Up @@ -1111,6 +1117,9 @@ function getVolumeViewportScrollInfo(viewport: IVolumeViewport, volumeId: string
// @public (undocumented)
export function getWebWorkerManager(): any;

// @public (undocumented)
const hasFloatScalingParameters: (scalingParameters: ScalingParameters) => boolean;

// @public (undocumented)
function hasNaNValues(input: number[] | number): boolean;

Expand Down Expand Up @@ -1420,6 +1429,7 @@ interface IImage {
photometricInterpretation?: string;
// (undocumented)
preScale?: {
enabled: boolean;
scaled?: boolean;
scalingParameters?: {
modality?: string;
Expand Down Expand Up @@ -1691,6 +1701,8 @@ interface ImageLoaderOptions {
// (undocumented)
additionalDetails?: Record<string, unknown>;
// (undocumented)
ignoreCache?: boolean;
// (undocumented)
priority: number;
// (undocumented)
requestType: string;
Expand Down Expand Up @@ -1942,6 +1954,8 @@ type ImageVolumeModifiedEvent = CustomEvent_2<ImageVolumeModifiedEventDetail>;
type ImageVolumeModifiedEventDetail = {
imageVolume: IImageVolume;
FrameOfReferenceUID: string;
numberOfFrames: number;
framesProcessed: number;
};

// @public (undocumented)
Expand Down Expand Up @@ -2132,6 +2146,8 @@ interface IStackViewport extends IViewport {
// (undocumented)
setStack(imageIds: Array<string>, currentImageIdIndex?: number): Promise<string>;
// (undocumented)
stackActorReInitialized: boolean;
// (undocumented)
unsetColormap(): void;
// (undocumented)
worldToCanvas: (worldPos: Point3) => Point2;
Expand Down Expand Up @@ -2234,6 +2250,8 @@ interface IViewport {
// (undocumented)
addActors(actors: Array<ActorEntry>): void;
// (undocumented)
addWidget: (id: string, widget: any) => void;
// (undocumented)
canvas: HTMLCanvasElement;
// (undocumented)
canvasToWorld: (canvasPos: Point2) => Point3;
Expand Down Expand Up @@ -2284,6 +2302,10 @@ interface IViewport {
// (undocumented)
getViewReference(viewRefSpecifier?: ViewReferenceSpecifier): ViewReference;
// (undocumented)
getWidget: (id: string) => any;
// (undocumented)
getWidgets: () => any;
// (undocumented)
getZoom(): number;
// (undocumented)
id: string;
Expand All @@ -2298,6 +2320,8 @@ interface IViewport {
// (undocumented)
removeAllActors(): void;
// (undocumented)
removeWidgets: () => void;
// (undocumented)
render(): void;
// (undocumented)
renderingEngineId: string;
Expand Down Expand Up @@ -3196,6 +3220,7 @@ export class StackViewport extends Viewport implements IStackViewport, IImagesLo
};
useRGBA: boolean;
transferSyntaxUID: any;
useNativeDataType: boolean;
priority: number;
requestType: RequestType;
additionalDetails: {
Expand Down Expand Up @@ -3268,6 +3293,8 @@ export class StackViewport extends Viewport implements IStackViewport, IImagesLo
// (undocumented)
setView(viewRef?: ViewReference, viewPres?: ViewPresentation): void;
// (undocumented)
stackActorReInitialized: boolean;
// (undocumented)
successCallback(imageId: any, image: any): void;
// (undocumented)
unsetColormap: () => void;
Expand Down Expand Up @@ -3609,7 +3636,8 @@ declare namespace utilities {
getViewportImageIds,
getRandomSampleFromArray,
getVolumeId,
color
color,
hasFloatScalingParameters
}
}
export { utilities }
Expand Down Expand Up @@ -3810,6 +3838,8 @@ export class Viewport implements IViewport {
// (undocumented)
addActors(actors: Array<ActorEntry>, resetCameraPanAndZoom?: boolean): void;
// (undocumented)
addWidget: (widgetId: any, widget: any) => void;
// (undocumented)
static boundsRadius(bounds: number[]): number;
// (undocumented)
protected calibration: IImageCalibration;
Expand Down Expand Up @@ -3887,6 +3917,10 @@ export class Viewport implements IViewport {
// (undocumented)
protected getVtkActiveCamera(): vtkCamera | vtkSlabCamera;
// (undocumented)
getWidget: (id: any) => any;
// (undocumented)
getWidgets: () => any[];
// (undocumented)
getZoom(compareCamera?: ICamera): number;
// (undocumented)
protected hasPixelSpacing: boolean;
Expand All @@ -3911,6 +3945,8 @@ export class Viewport implements IViewport {
// (undocumented)
removeAllActors(): void;
// (undocumented)
removeWidgets: () => void;
// (undocumented)
render(): void;
// (undocumented)
readonly renderingEngineId: string;
Expand Down
49 changes: 36 additions & 13 deletions common/reviews/api/tools.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ interface AdvancedMagnifyAnnotation extends Annotation {
zoomFactor: number;
sourceViewportId: string;
magnifyViewportId: string;
isCanvasAnnotation: boolean;
handles: {
points: Types_2.Point3[];
points: [Types_2.Point3, Types_2.Point3, Types_2.Point3, Types_2.Point3];
activeHandleIndex: number | null;
};
};
Expand Down Expand Up @@ -2174,7 +2175,7 @@ export class EllipticalROITool extends AnnotationTool {
// (undocumented)
addNewAnnotation: (evt: EventTypes_2.InteractionEventType) => EllipticalROIAnnotation;
// (undocumented)
_calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any, enabledElement: any) => any;
_calculateCachedStats: (annotation: any, viewport: any, renderingEngine: any) => any;
// (undocumented)
cancel: (element: HTMLDivElement) => any;
// (undocumented)
Expand Down Expand Up @@ -2324,6 +2325,10 @@ enum Events {
// (undocumented)
TOOL_MODE_CHANGED = "CORNERSTONE_TOOLS_TOOL_MODE_CHANGED",
// (undocumented)
TOOLGROUP_VIEWPORT_ADDED = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_ADDED",
// (undocumented)
TOOLGROUP_VIEWPORT_REMOVED = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_REMOVED",
// (undocumented)
TOUCH_DRAG = "CORNERSTONE_TOOLS_TOUCH_DRAG",
// (undocumented)
TOUCH_END = "CORNERSTONE_TOOLS_TOUCH_END",
Expand Down Expand Up @@ -2603,13 +2608,25 @@ function getBrushThresholdForToolGroup(toolGroupId: string): any;
function getBrushToolInstances(toolGroupId: string, toolName?: string): any[];

// @public (undocumented)
const getCalibratedAreaUnits: (handles: any, image: any) => string;
const getCalibratedAspect: (image: any) => any;

// @public (undocumented)
const getCalibratedLengthUnits: (handles: any, image: any) => string;
const getCalibratedLengthUnitsAndScale: (image: any, handles: any) => {
units: string;
areaUnits: string;
scale: number;
};

// @public (undocumented)
const getCalibratedScale: (image: any, handles?: any[]) => any;
const getCalibratedProbeUnitsAndValue: (image: any, handles: any) => {
units: string[];
values: any[];
calibrationType?: undefined;
} | {
units: string[];
values: any[];
calibrationType: string;
};

// @public (undocumented)
function getCanvasEllipseCorners(ellipseCanvasPoints: CanvasCoordinates): Array<Types_2.Point2>;
Expand Down Expand Up @@ -3791,8 +3808,6 @@ export class OrientationMarkerTool extends BaseTool {
// (undocumented)
static AXIS: number;
// (undocumented)
configuration_invalidated: boolean;
// (undocumented)
createAnnotatedCubeActor(): Promise<vtkAnnotatedCubeActor>;
// (undocumented)
static CUBE: number;
Expand All @@ -3815,8 +3830,6 @@ export class OrientationMarkerTool extends BaseTool {
// (undocumented)
polyDataURL: any;
// (undocumented)
reset: () => void;
// (undocumented)
resize: (viewportId: any) => void;
// (undocumented)
_resizeObservers: Map<any, any>;
Expand Down Expand Up @@ -5345,7 +5358,7 @@ type Statistics = {
};

// @public (undocumented)
function stopClip(element: HTMLDivElement, viewportId?: string): void;
function stopClip(element: HTMLDivElement, options?: any): void;

// @public (undocumented)
enum StrategyCallbacks {
Expand Down Expand Up @@ -5842,15 +5855,25 @@ export class TrackballRotateTool extends BaseTool {
// (undocumented)
_dragCallback(evt: EventTypes_2.InteractionEventType): void;
// (undocumented)
_getViewportsInfo: () => any[];
// (undocumented)
mouseDragCallback: (evt: EventTypes_2.InteractionEventType) => void;
// (undocumented)
onSetToolActive: () => void;
// (undocumented)
onSetToolDisabled: () => void;
// (undocumented)
preMouseDownCallback: (evt: EventTypes_2.InteractionEventType) => boolean;
// (undocumented)
_resizeObservers: Map<any, any>;
// (undocumented)
rotateCamera: (viewport: any, centerWorld: any, axis: any, angle: any) => void;
// (undocumented)
static toolName: any;
// (undocumented)
touchDragCallback: (evt: EventTypes_2.InteractionEventType) => void;
// (undocumented)
_viewportAddedListener: (evt: any) => void;
}

// @public (undocumented)
Expand Down Expand Up @@ -6101,9 +6124,9 @@ declare namespace utilities {
touch,
triggerEvent,
calibrateImageSpacing,
getCalibratedLengthUnits,
getCalibratedAreaUnits,
getCalibratedScale,
getCalibratedLengthUnitsAndScale,
getCalibratedProbeUnitsAndValue,
getCalibratedAspect,
segmentation_2 as segmentation,
contours,
triggerAnnotationRenderForViewportIds,
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.70.5",
"version": "1.70.13",
"packages": [
"packages/adapters",
"packages/core",
Expand Down
32 changes: 32 additions & 0 deletions packages/adapters/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,38 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.70.13](https://github.com/dcmjs-org/dcmjs/compare/v1.70.12...v1.70.13) (2024-04-25)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.12](https://github.com/dcmjs-org/dcmjs/compare/v1.70.11...v1.70.12) (2024-04-22)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.11](https://github.com/dcmjs-org/dcmjs/compare/v1.70.10...v1.70.11) (2024-04-22)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.10](https://github.com/dcmjs-org/dcmjs/compare/v1.70.9...v1.70.10) (2024-04-19)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.9](https://github.com/dcmjs-org/dcmjs/compare/v1.70.8...v1.70.9) (2024-04-18)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.8](https://github.com/dcmjs-org/dcmjs/compare/v1.70.7...v1.70.8) (2024-04-18)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.7](https://github.com/dcmjs-org/dcmjs/compare/v1.70.6...v1.70.7) (2024-04-17)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.6](https://github.com/dcmjs-org/dcmjs/compare/v1.70.5...v1.70.6) (2024-04-16)

**Note:** Version bump only for package @cornerstonejs/adapters

## [1.70.5](https://github.com/dcmjs-org/dcmjs/compare/v1.70.4...v1.70.5) (2024-04-10)

**Note:** Version bump only for package @cornerstonejs/adapters
Expand Down
Loading

0 comments on commit 795413a

Please sign in to comment.