Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(colorbar): add viewport colorbar #825

Merged
merged 14 commits into from
Oct 25, 2023
43 changes: 43 additions & 0 deletions common/reviews/api/core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ function cancelLoadImage(imageId: string): void;
// @public (undocumented)
function cancelLoadImages(imageIds: Array<string>): void;

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

declare namespace colormap {
export {
getColormap,
Expand Down Expand Up @@ -644,6 +647,13 @@ export { Enums }
// @public (undocumented)
const EPSILON = 0.001;

declare namespace eventListener {
export {
TargetEventListeners,
MultiTargetEventListenerManager
}
}

// @public (undocumented)
export enum EVENTS {
// (undocumented)
Expand Down Expand Up @@ -868,6 +878,9 @@ function getTransferFunctionNodes(transferFunction: any): any[];
// @public (undocumented)
function getViewportImageCornersInWorld(viewport: IStackViewport | IVolumeViewport): Point3[];

// @public (undocumented)
function getViewportModality(viewport: IViewport, volumeId?: string): string;

// @public (undocumented)
function getViewportsWithImageURI(imageURI: string, renderingEngineId?: string): Array<Viewport_2>;

Expand Down Expand Up @@ -1332,6 +1345,9 @@ interface IImageVolume {
vtkOpenGLTexture: any;
}

// @public (undocumented)
type ImageActor = vtkImageSlice;

// @public (undocumented)
type ImageCacheImageAddedEvent = CustomEvent_2<ImageCacheImageAddedEventDetail>;

Expand Down Expand Up @@ -2040,6 +2056,16 @@ const metadataProvider: {
// @public (undocumented)
const mprCameraValues: any;

// @public (undocumented)
class MultiTargetEventListenerManager {
// (undocumented)
addEventListener(target: EventTarget, type: string, callback: EventListener, options?: AddEventListenerOptions): void;
// (undocumented)
removeEventListener(target: EventTarget, type: string, callback?: EventListener, options?: EventListenerOptions): void;
// (undocumented)
reset(): void;
}

// @public (undocumented)
enum OrientationAxis {
// (undocumented)
Expand Down Expand Up @@ -2460,6 +2486,19 @@ type SurfaceData = {
polys: number[];
};

// @public (undocumented)
class TargetEventListeners {
constructor(target: EventTarget);
// (undocumented)
addEventListener(type: string, callback: EventListener, options?: AddEventListenerOptions): void;
// (undocumented)
get isEmpty(): boolean;
// (undocumented)
removeEventListener(type: string, callback?: EventListener, options?: EventListenerOptions): void;
// (undocumented)
reset(): void;
}

// @public (undocumented)
function threePlaneIntersection(firstPlane: Plane, secondPlane: Plane, thirdPlane: Plane): Point3;

Expand Down Expand Up @@ -2527,6 +2566,7 @@ declare namespace Types {
VolumeActor,
Actor,
ActorEntry,
ImageActor,
IImageLoadObject,
IVolumeLoadObject,
IVolumeInput,
Expand Down Expand Up @@ -2586,6 +2626,7 @@ function unregisterAllImageLoaders(): void;

declare namespace utilities {
export {
eventListener,
invertRgbTransferFunction,
createSigmoidRGBTransferFunction,
getVoiFromSigmoidRGBTransferFunction,
Expand All @@ -2594,6 +2635,7 @@ declare namespace utilities {
triggerEvent,
imageIdToURI,
metadataProvider as calibratedPixelSpacingMetadataProvider,
clamp,
uuidv4,
planar,
getMinMax,
Expand All @@ -2604,6 +2646,7 @@ declare namespace utilities {
createUint8SharedArray,
createUint16SharedArray,
createInt16SharedArray,
getViewportModality,
windowLevel,
getClosestImageId,
getSpacingInNormalDirection,
Expand Down
Loading