* feat: Add adapter mappings for RectangleROI and Angle and save same PR comments * fix: Rehydrate check on non core measurement adapters
13 lines
248 B
TypeScript
13 lines
248 B
TypeScript
import { addTool } from '@cornerstonejs/tools';
|
|
|
|
export default function addToolInstance(
|
|
name: string,
|
|
toolClass,
|
|
configuration?
|
|
): void {
|
|
class InstanceClass extends toolClass {
|
|
static toolName = name;
|
|
}
|
|
addTool(InstanceClass);
|
|
}
|