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

fix(types): Adding missing types #1367

Merged
merged 3 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1259,7 +1267,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 @@ -1601,6 +1609,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 @@ -1660,6 +1689,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 @@ -3345,6 +3384,9 @@ type LabelmapToolOperationData = {
toolGroupId: string;
};

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

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

Expand Down Expand Up @@ -4717,6 +4759,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 @@ -4943,6 +4995,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 @@ -5056,6 +5117,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 @@ -5779,6 +5845,9 @@ type ToolGroupSpecificLabelmapRepresentation = ToolGroupSpecificRepresentationSt
// @public (undocumented)
type ToolGroupSpecificRepresentation = ToolGroupSpecificLabelmapRepresentation | ToolGroupSpecificContourRepresentation;

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

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

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

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

Expand Down Expand Up @@ -6008,68 +6084,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