Skip to content

Commit

Permalink
fix(types): Adding missing types (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlopes90 authored Jul 5, 2024
1 parent e3e10fa commit 0fb4e16
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 102 deletions.
144 changes: 115 additions & 29 deletions common/reviews/api/tools.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ declare namespace aabb {
// @public (undocumented)
function acceptAutogeneratedInterpolations(annotationGroupSelector: AnnotationGroupSelector, selector: AcceptInterpolationSelector): void;

// @public (undocumented)
type AcceptInterpolationSelector = {
toolNames?: string[];
segmentationId?: string;
segmentIndex?: number;
sliceIndex?: number;
};

declare namespace activeSegmentation {
export {
getActiveSegmentationRepresentation,
Expand Down Expand Up @@ -1261,7 +1269,7 @@ export class CircleScissorsTool extends BaseTool {
function clearParentAnnotation(annotation: Annotation): void;

// @public (undocumented)
function clip(a: any, b: any, box: any, da?: any, db?: any): 1 | 0;
function clip(a: any, b: any, box: any, da?: any, db?: any): 0 | 1;

// @public (undocumented)
function clip_2(val: number, low: number, high: number): number;
Expand Down Expand Up @@ -1603,6 +1611,27 @@ type ContourAnnotationData = {
onInterpolationComplete?: () => void;
};

// @public (undocumented)
type ContourConfig = {
outlineWidthAutoGenerated?: number;
outlineWidthActive?: number;
outlineWidthInactive?: number;
outlineOpacity?: number;
outlineOpacityInactive?: number;
outlineDashActive?: string;
outlineDashInactive?: string;
activeSegmentOutlineWidthDelta?: number;
outlineDashAutoGenerated?: string;
renderOutline?: boolean;
renderFill?: boolean;
fillAlpha?: number;
fillAlphaInactive?: number;
fillAlphaAutoGenerated?: number;
};

// @public (undocumented)
type ContourRenderingConfig = {};

declare namespace contours {
export {
areCoplanarContours,
Expand Down Expand Up @@ -1662,6 +1691,16 @@ type ContourSegmentationData = {
annotationUIDsMap?: Map<number, Set<string>>;
};

// @public (undocumented)
enum ContourWindingDirection {
// (undocumented)
Clockwise = 1,
// (undocumented)
CounterClockwise = -1,
// (undocumented)
Unknown = 0
}

// @public (undocumented)
type ControlPointInfo = {
index: number;
Expand Down Expand Up @@ -3347,6 +3386,9 @@ type LabelmapToolOperationData = {
toolGroupId: string;
};

// @public (undocumented)
type LabelmapToolOperationDataAny = LabelmapToolOperationDataVolume | LabelmapToolOperationDataStack;

// @public (undocumented)
type LabelmapToolOperationDataStack = LabelmapToolOperationData & LabelmapSegmentationDataStack;

Expand Down Expand Up @@ -4740,6 +4782,16 @@ type RepresentationPublicInput = {
options?: RepresentationPublicInputOptions;
};

// @public (undocumented)
type RepresentationPublicInputOptions = {
segmentationRepresentationUID?: string;
colorLUTOrIndex?: Types_2.ColorLUT | number;
polySeg?: {
enabled: boolean;
options?: any;
};
};

// @public (undocumented)
function resetAnnotationManager(): void;

Expand Down Expand Up @@ -4966,6 +5018,15 @@ type SegmentationModifiedEventDetail = {
// @public (undocumented)
type SegmentationModifiedEventType = Types_2.CustomEventType<SegmentationModifiedEventDetail>;

// @public (undocumented)
type SegmentationPublicInput = {
segmentationId: string;
representation: {
type: Enums.SegmentationRepresentations;
data?: LabelmapSegmentationData | ContourSegmentationData | SurfaceSegmentationData;
};
};

// @public (undocumented)
type SegmentationRemovedEventDetail = {
segmentationId: string;
Expand Down Expand Up @@ -5079,6 +5140,11 @@ export class SegmentSelectTool extends BaseTool {
static toolName: any;
}

// @public (undocumented)
type SegmentSpecificRepresentationConfig = {
[key: number | string]: RepresentationConfig;
};

declare namespace selection {
export {
setAnnotationSelected,
Expand Down Expand Up @@ -5802,6 +5868,9 @@ type ToolGroupSpecificLabelmapRepresentation = ToolGroupSpecificRepresentationSt
// @public (undocumented)
type ToolGroupSpecificRepresentation = ToolGroupSpecificLabelmapRepresentation | ToolGroupSpecificContourRepresentation;

// @public (undocumented)
type ToolGroupSpecificRepresentations = Array<ToolGroupSpecificRepresentation>;

// @public (undocumented)
type ToolGroupSpecificRepresentationState = {
segmentationRepresentationUID: string;
Expand All @@ -5816,6 +5885,13 @@ type ToolGroupSpecificRepresentationState = {
};
};

// @public (undocumented)
type ToolGroupSpecificSurfaceRepresentation = ToolGroupSpecificRepresentationState & {
config: SurfaceRenderingConfig;
segmentationRepresentationSpecificConfig?: RepresentationConfig;
segmentSpecificConfig?: SegmentSpecificRepresentationConfig;
};

// @public (undocumented)
type ToolHandle = AnnotationHandle | TextBoxHandle;

Expand Down Expand Up @@ -6031,68 +6107,78 @@ function triggerSegmentationRepresentationRemoved(toolGroupId: string, segmentat

declare namespace Types {
export {
AcceptInterpolationSelector,
Annotation,
AnnotationGroupSelector,
AnnotationState,
AnnotationStyle,
Annotations,
ContourAnnotationData,
ContourAnnotation,
ContourSegmentationAnnotationData,
ContourSegmentationAnnotation,
BidirectionalData,
CanvasCoordinates,
ContourAnnotation,
ContourAnnotationData,
ContourSegmentationAnnotation,
ContourSegmentationAnnotationData,
ContourWindingDirection,
GroupSpecificAnnotations,
IAnnotationManager,
InterpolationViewportData,
ImageInterpolationData,
GroupSpecificAnnotations,
AnnotationState,
AnnotationStyle,
ToolSpecificAnnotationTypes,
InterpolationViewportData,
JumpToSliceOptions,
AnnotationGroupSelector,
ToolSpecificAnnotationTypes,
AnnotationRenderContext,
PlanarBoundingBox,
ToolProps,
PublicToolProps,
ToolConfiguration,
ToolProps,
EventTypes_2 as EventTypes,
IDistance,
IPoints,
ITouchPoints,
IDistance,
IToolBinding,
SetToolBindingsType,
ToolOptionsType,
InteractionTypes,
SetToolBindingsType,
ToolAction,
ToolGroup as IToolGroup,
IToolClassReference,
ISynchronizerEventHandler,
ToolHandle,
ToolOptionsType,
AnnotationHandle,
ISculptToolShape,
ISynchronizerEventHandler,
IToolClassReference,
ToolGroup as IToolGroup,
TextBoxHandle,
ToolHandle,
LabelmapTypes,
RepresentationConfig,
RepresentationPublicInput,
RepresentationPublicInputOptions,
SegmentSpecificRepresentationConfig,
Segmentation,
SegmentationState,
SegmentationRepresentationData,
SegmentationPublicInput,
SegmentationRepresentationConfig,
RepresentationConfig,
ToolGroupSpecificRepresentationState,
SegmentationRepresentationData,
SegmentationState,
ToolGroupSpecificContourRepresentation,
ToolGroupSpecificLabelmapRepresentation,
ToolGroupSpecificRepresentation,
RepresentationPublicInput,
LabelmapTypes,
ToolGroupSpecificRepresentationState,
ToolGroupSpecificRepresentations,
ToolGroupSpecificSurfaceRepresentation,
SVGCursorDescriptor,
SVGPoint_2 as SVGPoint,
ScrollOptions_2 as ScrollOptions,
CINETypes,
BoundsIJK_2 as BoundsIJK,
CINETypes,
SVGDrawingHelper,
FloodFillResult,
FloodFillGetter,
FloodFillOptions,
FloodFillResult,
ContourConfig,
ContourRenderingConfig,
ContourSegmentationData,
ISculptToolShape,
Statistics,
NamedStatistics,
Statistics,
LabelmapToolOperationData,
LabelmapToolOperationDataAny,
LabelmapToolOperationDataStack,
LabelmapToolOperationDataVolume,
CardinalSplineProps,
Expand Down
Loading

0 comments on commit 0fb4e16

Please sign in to comment.