Skip to content

Commit

Permalink
Merge pull request #4 from RadicalImaging/feat/exposeFunctions
Browse files Browse the repository at this point in the history
Exposing functionality to be used in OmniView OHIF
  • Loading branch information
ladeirarodolfo authored Dec 4, 2023
2 parents 22bf086 + 22068c4 commit 628af24
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/tools/src/utilities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ import debounce from './debounce';
import throttle from './throttle';
import isObject from './isObject';
import clip from './clip';
import { getModalityUnit } from './getModalityUnit';
import calibrateImageSpacing from './calibrateImageSpacing';
import getCalibratedLengthUnits from './getCalibratedUnits';
import { getCalibratedScale } from './getCalibratedUnits';
import {
getCalibratedAreaUnits,
getCalibratedScale,
getCalibratedLengthUnits,
getCalibratedAspect,
} from './getCalibratedUnits';
import triggerAnnotationRenderForViewportIds from './triggerAnnotationRenderForViewportIds';
import triggerAnnotationRender from './triggerAnnotationRender';
import jumpToSlice from './viewport/jumpToSlice';
Expand Down Expand Up @@ -56,7 +61,10 @@ export {
triggerEvent,
calibrateImageSpacing,
getCalibratedLengthUnits,
getCalibratedAreaUnits,
getCalibratedAspect,
getCalibratedScale,
getModalityUnit,
segmentation,
triggerAnnotationRenderForViewportIds,
triggerAnnotationRender,
Expand Down
2 changes: 2 additions & 0 deletions packages/tools/src/utilities/math/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as ellipse from './ellipse';
import * as lineSegment from './line';
import * as rectangle from './rectangle';
import * as polyline from './polyline';
import * as circle from './circle';
import * as point from './point';
import * as BasicStatsCalculator from './basic';

Expand All @@ -12,6 +13,7 @@ export {
lineSegment,
rectangle,
polyline,
circle,
point,
BasicStatsCalculator,
};
2 changes: 2 additions & 0 deletions packages/tools/src/utilities/math/polyline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
getClosestIntersectionWithPolyline,
} from './getIntersectionWithPolyline';
import getSubPixelSpacingAndXYDirections from './getSubPixelSpacingAndXYDirections';
import { getIntersectionCoordinatesWithPolyline } from './getIntersectionWithPolyline';
import pointsAreWithinCloseContourProximity from './pointsAreWithinCloseContourProximity';
import addCanvasPointsToArray from './addCanvasPointsToArray';
import pointCanProjectOnLine from './pointCanProjectOnLine';
Expand All @@ -11,6 +12,7 @@ import calculateAreaOfPoints from './calculateAreaOfPoints';
export {
getFirstIntersectionWithPolyline,
getClosestIntersectionWithPolyline,
getIntersectionCoordinatesWithPolyline,
getSubPixelSpacingAndXYDirections,
pointsAreWithinCloseContourProximity,
addCanvasPointsToArray,
Expand Down
3 changes: 3 additions & 0 deletions packages/tools/src/utilities/planar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ import filterAnnotationsWithinSlice from './filterAnnotationsWithinSlice';
import getWorldWidthAndHeightFromCorners from './getWorldWidthAndHeightFromCorners';
import filterAnnotationsForDisplay from './filterAnnotationsForDisplay';
import getPointInLineOfSightWithCriteria from './getPointInLineOfSightWithCriteria';
import getWorldWidthAndHeightFromTwoPoints from './getWorldWidthAndHeightFromTwoPoints';

export default {
filterAnnotationsWithinSlice,
getWorldWidthAndHeightFromCorners,
filterAnnotationsForDisplay,
getPointInLineOfSightWithCriteria,
getWorldWidthAndHeightFromTwoPoints,
};

export {
filterAnnotationsWithinSlice,
getWorldWidthAndHeightFromCorners,
filterAnnotationsForDisplay,
getPointInLineOfSightWithCriteria,
getWorldWidthAndHeightFromTwoPoints,
};

0 comments on commit 628af24

Please sign in to comment.