9 lines
240 B
TypeScript
9 lines
240 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);
|
|
}
|