87,910
社区成员
发帖
与我相关
我的任务
分享
import csTools from 'cornerstone-tools';
const BaseTool = csTools.importInternal('base/BaseTool');
// NOTE: if you're creating a tool inside the CornerstoneTools repository
// you can import BaseTool directly from `src/tools/base`.
export default class HelloWorldTool extends BaseTool {
constructor(name = 'HelloWorld') {
super({
name,
supportedInteractionTypes: ['Mouse'],
});
}
}